What does Four Pillars and Double Entry conclude, in numbers, about “What a Single-Entry List Cannot See: Conservation Tests Only Against a Count”?

Answer: Chapters 1 and 2 enumerate nine types of error on the illustrative day: the trial balance finds 12.9 %, four pillars on counted cash find 49.1 %, and the full double-entry close, comparing each account with outside evidence, finds 87.6 %.

Scope of the numbers: With runnable programs this book shows that a single-entry list contains no test of itself: on an illustrative day, leave out a balance payment of 1,500.00 yuan and the spreadsheet stays perfectly consistent; a gap appears only against the bank balance. Parameters are illustrative; all calculations are generated by the book's programs; the book is general analysis, not individualised accounting, tax or legal advice.

中文版

Data table

The numbers below are printed verbatim by the chapter's Python program and can be reproduced by running it.

opening cash (old balance)15,000.00
complete list new in2,850.00 out 3,116.00
list closing14,734.00 | counted 14,734.00 | gap 0.00
list without T08 new in1,350.00 out 3,116.00
list closing13,234.00 | counted 14,734.00 | gap 1,500.00
list without T07 new in2,850.00 out 3,116.00
list closing14,734.00 | counted 14,734.00 | gap 0.00
single-entry list alone: gap is never computed -> no signal
four pillars with a count: T08 gap1,500.00, T07 gap = 0.00
the gap says how much, never which line
Show the full program
# Chapter 1. p11: a single-entry cash list cannot see its own omission.
# Model: one illustrative day of a buying agent, amounts in integer fen
# (1 yuan = 100 fen). A single-entry list only adds its own lines, so
# the closing figure it prints is whatever the lines say. The four-
# pillar test, opening + receipts = payments + closing, becomes a test
# only when "closing" is a physical count (a bank statement or a cash
# count) rather than a number computed from the same list.
# All amounts are illustrative; arithmetic is exact (integers).

OPEN_CASH = 1500000
DAY = (                                   # label, legs (debit +, credit -)
    ("T01 deposit A", (("CASH", 60000), ("DEP", -60000))),
    ("T02 deposit B", (("CASH", 45000), ("DEP", -45000))),
    ("T03 buy for A", (("STOCK", 178560), ("CASH", -178560))),
    ("T04 fx on T03", (("FX", 1240), ("CASH", -1240))),
    ("T05 freight", (("SHIP", 12000), ("CASH", -12000))),
    ("T06 deliver C", (("DEP", 80000), ("AR", 150000),
                       ("REV", -230000))),
    ("T07 cost of C", (("COGS", 170000), ("STOCK", -170000))),
    ("T08 balance C", (("CASH", 150000), ("AR", -150000))),
    ("T09 refund D", (("DEP", 20000), ("CASH", -20000))),
    ("T10 buy for B", (("STOCK", 96300), ("CASH", -96300))),
    ("T11 courier", (("SHIP", 3500), ("CASH", -3500))),
    ("T12 deposit E", (("CASH", 30000), ("DEP", -30000))),
)


def yuan(fen):
    sign = "-" if fen < 0 else ""
    fen = abs(fen)
    return "{}{:,}.{:02d}".format(sign, fen // 100, fen % 100)


def pillars(entries):
    """Return (receipts, payments) of the cash account, in fen."""
    rec, pay = 0, 0
    for _, legs in entries:
        for acct, amt in legs:
            if acct == "CASH" and amt > 0:
                rec += amt
            elif acct == "CASH":
                pay += -amt
    return rec, pay


def report(tag, entries, counted):
    rec, pay = pillars(entries)
    computed = OPEN_CASH + rec - pay
    print("{:<24s} new in {:>10s} out {:>10s}".format(
        tag, yuan(rec), yuan(pay)))
    print("  list closing {:>12s} | counted {:>12s} | gap {:>9s}".format(
        yuan(computed), yuan(counted), yuan(counted - computed)))


if __name__ == "__main__":
    rec, pay = pillars(DAY)
    true_cash = OPEN_CASH + rec - pay
    print("opening cash (old balance)  {}".format(yuan(OPEN_CASH)))
    report("complete list", DAY, true_cash)
    no_t08 = tuple(e for e in DAY if not e[0].startswith("T08"))
    report("list without T08", no_t08, true_cash)
    no_t07 = tuple(e for e in DAY if not e[0].startswith("T07"))
    report("list without T07", no_t07, true_cash)
    print("single-entry list alone: gap is never computed -> no signal")
    print("four pillars with a count: T08 gap = {}, T07 gap = 0.00".format(
        yuan(true_cash - (OPEN_CASH + pillars(no_t08)[0]
                          - pillars(no_t08)[1]))))
    print("the gap says how much, never which line")

Single source and citation

Fan, Y. (2026). The Conservation Algebra of Four-Pillar Settlement and Double-Entry Bookkeeping: Invariants for Error-Free Reconciliation of Buying-Agent Ledgers (Version 1.0.0), Chapter 1: What a Single-Entry List Cannot See: Conservation Tests Only Against a Count. 5D Library. DOI pending

DOI pending · monograph page goes live after publication · 5DL-B-318 · v1.0.0 · CC-BY-NC-ND-4.0

BibTeX
@book{fan2026318,
  author    = {Fan, Yafu},
  title     = {The Conservation Algebra of Four-Pillar Settlement and Double-Entry Bookkeeping: Invariants for Error-Free Reconciliation of Buying-Agent Ledgers},
  year      = {2026},
  publisher = {5D Library},
  edition   = {1.0.0},
  note      = {DOI pending}
}

Other chapter answers in this book