What does Multi-Entity Clearing and Audit-Ready Ledgers conclude, in numbers, about “Four Pillars and Double Entry: the Ming Registers and Pacioli's Ledger Examined”?
Answer: Chapter 7 examines the four-pillar form of the History of the Ming and Pacioli's double entry of 1494: the pillars catch differences from the count but not duplicates across books, and the trial balance detects omissions, duplicates and wrong-entity postings at a rate of 0.0000.
Scope of the numbers: The book is a handbook of accounting and compliance routines and is not personal tax advice. Parameters are illustrative, data synthetic, and all calculations come from the book's programs.
Data table
The numbers below are printed verbatim by the chapter's Python program and can be reproduced by running it. standard-library Python onlyprinted values that match the answer: 0.0000
| A. share of 300 trials in which each test sees the error | ||
| error type | trial bal. | outside match |
| one side only | 1.0000 | 1.0000 |
| digits swapped one side | 1.0000 | 1.0000 |
| same wrong amount | 0.0000 | 1.0000 |
| wrong entity | 0.0000 | 1.0000 |
| entry left out | 0.0000 | 1.0000 |
| entry doubled | 0.0000 | 1.0000 |
| wrong revenue account | 0.0000 | 0.0000 |
| B. balance proves arithmetic, not completeness; a wrong | ||
| revenue account escapes both tests and needs review |
Show the full program
# Chapter 7. p72: what a trial balance can and cannot see. A synthetic
# journal of 50 balanced sale entries (debit receivable, credit
# revenue) is posted to a ledger with exactly one error of a given
# type, 300 seeded trials per type. Two tests: the trial balance
# (debits equal credits, after Pacioli's chapter on the balance) and an
# outside match of revenue lines to source documents by id and amount.
import random
from decimal import Decimal
rng = random.Random(40272)
TYPES = ["one side only", "digits swapped one side", "same wrong amount",
"wrong entity", "entry left out", "entry doubled",
"wrong revenue account"]
def journal():
out = []
for i in range(50):
amt = Decimal(rng.randint(1000, 99999)) / 100
out.append(("D{:03d}".format(i), amt))
return out
def post(jr, kind):
# ledger lines: (doc, side, account, entity, amount)
lines = []
k = rng.randrange(len(jr))
for i, (doc, amt) in enumerate(jr):
dr = [doc, "dr", "receivable", "SITE", amt]
cr = [doc, "cr", "revenue:books", "SITE", amt]
if i == k:
if kind == "one side only":
cr = None
elif kind == "digits swapped one side":
s = str(amt).replace(".", "")
sw = s[:-2] + s[-1] + s[-2]
cr[4] = Decimal(sw) / 100 if sw != s else amt + 1
elif kind == "same wrong amount":
dr[4] = cr[4] = amt + Decimal("10.00")
elif kind == "wrong entity":
dr[3] = cr[3] = "SVC"
elif kind == "entry left out":
dr = cr = None
elif kind == "wrong revenue account":
cr[2] = "revenue:reports"
for ln in (dr, cr):
if ln is not None:
lines.append(ln)
if i == k and kind == "entry doubled":
lines += [list(dr), list(cr)]
return lines
def tests(jr, lines):
deb = cre = Decimal(0)
for ln in lines:
if ln[1] == "dr":
deb += ln[4]
else:
cre += ln[4]
tb = deb != cre
src = sorted((d, a) for d, a in jr)
rev = sorted((ln[0], ln[4]) for ln in lines
if ln[1] == "cr" and ln[3] == "SITE")
outside = src != rev
return tb, outside
if __name__ == "__main__":
print("A. share of 300 trials in which each test sees the error")
print(" error type trial bal. outside match")
for kind in TYPES:
tb_hits = out_hits = 0
for _ in range(300):
jr = journal()
tb, outside = tests(jr, post(jr, kind))
tb_hits += 1 if tb else 0
out_hits += 1 if outside else 0
print(" {:<26} {:>8.4f} {:>8.4f}".format(
kind, tb_hits / 300, out_hits / 300))
print("B. balance proves arithmetic, not completeness; a wrong")
print(" revenue account escapes both tests and needs review")Single source and citation
Fan, Y. (2026). Multi-Jurisdiction Digital Revenue Clearing, Cross-Border Tax-Base Compliance Boundaries and Audit-Ready Automated Ledgers (Version 1.0.0), Chapter 7: Four Pillars and Double Entry: the Ming Registers and Pacioli's Ledger Examined. 5D Library. DOI pending
DOI pending · monograph page goes live after publication · 5DL-B-402 · v1.0.0 · CC-BY-NC-ND-4.0
BibTeX
@book{fan2026402,
author = {Fan, Yafu},
title = {Multi-Jurisdiction Digital Revenue Clearing, Cross-Border Tax-Base Compliance Boundaries and Audit-Ready Automated Ledgers},
year = {2026},
publisher = {5D Library},
edition = {1.0.0},
note = {DOI pending}
}Other chapter answers in this book
- Chapter 1 · Gross or Net: Judging the Principal by Control, Not by How the Platform Pays
- Chapter 2 · When the Currency Turns: Transaction-Date Rates, Closing-Rate Remeasurement and Decimal Rounding
- Chapter 3 · Clearing Among Entities: Bilateral and Multilateral Netting and Open Balances
- Chapter 4 · Shared Costs Between Related Entities: the Arm's Length Principle, Allocation Keys and Contemporaneous Documentation
- Chapter 5 · Four-Way Reconciliation: Auto-Match Rate, Tolerance and Cross-Entity Duplicates
- Chapter 6 · Evidence Chains, First-Digit Leads and Month-End Close Time
- Chapter 8 · Field Tools and Checker Specifications: the Month-End Ledger, the Four Kits and a Pre-Registered Test