关于「东西方原典考辨:宋代四柱结算与 Pacioli 的三本账」,《四柱复式守恒代数》给出的定量结论是什么?

结论:第七章考辨宋代四柱结算法与 Pacioli 1494 年刊印的复式记账论述,用程序检验四柱链条与三本账之间的核对各能发现什么。

数据口径:本书用可运行的程序说明,单式流水本身不含任何检验:在一个示意日上漏记一笔 1,500.00 元的尾款,表格依旧自洽,只有拿银行余额来比才出现差额。 书中参数为示意;全部计算由书中程序生成;本书属于非个人化的会计、税务或法律建议。

English version

对照数据表

下表数字由本章 Python 程序原样打印,可重新运行复现。

present balance computed:
pergoodoldrecvissuenowgap
1grain8602403107900
2grain7903002808100
3grain8101802607300
4grain7304203508000
5grain8002603007600
6grain7603302908000
present balance counted:
pergoodoldrecvissuenowgap
1grain8602403107900
2grain7903002808100
3grain8101802607300
4grain730420350920120
5grain9202603008800
6grain8803302909200
coin: old 5200 + recv 12100 - issue 12000 = 5300; counted end 5300
grain: old 860 + recv 1730 - issue 1790 = 800; counted end 920
查看完整验算程序
# Chapter 7. p71: the four-pillar account as a chain, and when it tests.
# Model: a granary-style account kept in two goods (coin in strings,
# grain in shi), as four-pillar statements are usually described:
# old balance (jiu guan) + new receipts (xin shou) = issues (kai chu)
# + present balance (shi zai), each period's present balance carried
# as the next period's old balance. Six periods, illustrative numbers.
# Case 1: present balance computed from the other three (identity
#         holds by construction, nothing is tested).
# Case 2: present balance counted; a receipt of grain in period 4 was
#         never written. The gap appears in period 4 only, and the
#         chain carries the counted figure forward.
# Integer units; exact.

GOODS = ("coin", "grain")
OLD = {"coin": 5200, "grain": 860}
FLOWS = (                          # (receipts, issues) per good
    {"coin": (1800, 2100), "grain": (240, 310)},
    {"coin": (2600, 1900), "grain": (300, 280)},
    {"coin": (1500, 1700), "grain": (180, 260)},
    {"coin": (2200, 2400), "grain": (420, 350)},
    {"coin": (1900, 1600), "grain": (260, 300)},
    {"coin": (2100, 2300), "grain": (330, 290)},
)
LOST = (3, "grain", 120)           # period index, good, unrecorded receipt


def run(counted):
    old = dict(OLD)
    true_old = dict(OLD)
    rows = []
    for t, fl in enumerate(FLOWS):
        row = []
        for g in GOODS:
            rec, iss = fl[g]
            extra = LOST[2] if (t, g) == LOST[:2] else 0
            true_now = true_old[g] + rec + extra - iss
            now = true_now if counted else old[g] + rec - iss
            gap = now - (old[g] + rec - iss)
            row.append((g, old[g], rec, iss, now, gap))
            old[g] = now
            true_old[g] = true_now
        rows.append(row)
    return rows


if __name__ == "__main__":
    for counted in (False, True):
        tag = "counted" if counted else "computed"
        print("present balance {}:".format(tag))
        print("  per   good    old   recv  issue    now   gap")
        for t, row in enumerate(run(counted)):
            for g, old, rec, iss, now, gap in row:
                if g == "grain" or gap:
                    print("  {:3d}   {:5s} {:6d} {:6d} {:6d} {:6d} {:5d}"
                          .format(t + 1, g, old, rec, iss, now, gap))
    rows = run(True)
    tot = {g: [0, 0] for g in GOODS}
    for row in rows:
        for g, old, rec, iss, now, gap in row:
            tot[g][0] += rec
            tot[g][1] += iss
    for g in GOODS:
        end = rows[-1][GOODS.index(g)][4]
        print("{}: old {} + recv {} - issue {} = {}; counted end {}".format(
            g, OLD[g], tot[g][0], tot[g][1],
            OLD[g] + tot[g][0] - tot[g][1], end))

唯一数据源与引用

范雅福(Fan, Y.). (2026). 《四柱结算与复式记账的守恒代数、代购流水零差错对账不变量母典》第 7 章「东西方原典考辨:宋代四柱结算与 Pacioli 的三本账」(版本 1.0.0). 5D Library. DOI 待发布

DOI 待发布 · 专著页正式发布后上线(本站暂无专著页) · 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}
}

本书其他章节结论