关于「四柱与复式:《明史·食货志》与帕乔利账簿考辨」,《多主体清分与审计就绪账本》给出的定量结论是什么?
结论:第七章考辨《明史·食货志》的四柱式与帕乔利 1494 年的复式账簿:四柱查得出账实不符,却查不出跨册重复;试算平衡对漏记、重复与记错主体的检出率为 0.0000。
数据口径:书中参数为示意,数据为合成;全部计算由书中程序生成。 第一章按 IFRS 15 的控制判断给七类合成交易打分,「到账即收入」有 3 类出错,误差有正有负,合计高估 0.2763。
对照数据表
下表数字由本章 Python 程序原样打印,可重新运行复现。 程序只用 Python 标准库与结论吻合的打印值: 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 |
查看完整验算程序
# 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")唯一数据源与引用
范雅福(Fan, Y.). (2026). 《跨国数字业务多主体清分、跨境税基合规边界与一键审计就绪账本母典》第 7 章「四柱与复式:《明史·食货志》与帕乔利账簿考辨」(版本 1.0.0). 5D Library. DOI 待发布
DOI 待发布 · 专著页正式发布后上线(本站暂无专著页) · 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}
}