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 typetrial bal.outside match
one side only1.00001.0000
digits swapped one side1.00001.0000
same wrong amount0.00001.0000
wrong entity0.00001.0000
entry left out0.00001.0000
entry doubled0.00001.0000
wrong revenue account0.00000.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