关于「实战工具与检查器规格:月末关账台账、四件套与预注册检验」,《多主体清分与审计就绪账本》给出的定量结论是什么?
结论:第八章给出实战工具与检查器规格、月末关账台账、预注册检验与推翻条件,以及可运行的「多主体清分与月末审计就绪对账器」。书中以标注框区分已发表的证据、可运行的 Python 计算(21 段程序)、原典与作者的假说。
数据口径:书中参数为示意,数据为合成;全部计算由书中程序生成。 第一章按 IFRS 15 的控制判断给七类合成交易打分,「到账即收入」有 3 类出错,误差有正有负,合计高估 0.2763。
对照数据表
下表数字由本章 Python 程序原样打印,可重新运行复现。 程序只用 Python 标准库
| A. 603 ledger lines (600 + 3 booked again by SVC) | |
| R1 net booked, principal | 13 |
| R2 conversion slip missing | 20 |
| R3 shared cost, no written key | 8 |
| R4 same document, two entities | 6 |
| R5 binary float amount | 1 |
| Y1 gross booked, agent | 4 |
| Y2 evidence chain short | 73 |
| Y3 open over 5 days | 12 |
| B. lines red 47, yellow 75, green 481 | |
| C. green share 0.7977; every red line goes to the queue |
查看完整验算程序
# Chapter 8. p81: red / yellow / green flags on a synthetic month-end
# ledger of 600 revenue lines carrying the loop fields (entity, channel,
# currency, gross, fee, net, role, booked basis, slip, evidence count,
# counterparty key, document id, amount text, match status, days open).
# Fault rates are illustrative; the rules are the ones of Chapter 8.
import random
import re
from collections import Counter
rng = random.Random(40281)
MONEY = re.compile(r"^-?\d+\.\d{2}$")
rows = []
for i in range(600):
ent = rng.choice(["SITE", "LIB", "AIX", "HX"])
role = "agent" if ent == "HX" or rng.random() < 0.15 else "principal"
basis = role if rng.random() > 0.04 else (
"agent" if role == "principal" else "principal")
cur = rng.choice(["MYR", "MYR", "USD", "TWD", "VND"])
slip = cur == "MYR" or rng.random() > 0.06
ev = 5 if rng.random() > 0.10 else rng.choice([3, 4, 4, 4])
ic = rng.random() < 0.08
key = (not ic) or rng.random() > 0.20
amt = "{:.2f}".format(rng.randint(500, 90000) / 100)
if rng.random() < 0.01:
amt = "{:.17g}".format(rng.randint(500, 90000) / 100)
status = "matched" if rng.random() > 0.05 else "open"
days = rng.randint(0, 12) if status == "open" else 0
rows.append(dict(doc="DOC{:04d}".format(i), ent=ent, role=role,
basis=basis, cur=cur, slip=slip, ev=ev, ic=ic,
key=key, amt=amt, status=status, days=days))
for j in rng.sample(range(600), 3): # booked again elsewhere
dup = dict(rows[j])
dup["ent"] = "SVC"
rows.append(dup)
if __name__ == "__main__":
seen = Counter((r["doc"]) for r in rows)
flags = Counter()
level = Counter()
for r in rows:
red, yellow = [], []
if r["role"] == "principal" and r["basis"] == "agent":
red.append("R1 net booked, principal")
if r["cur"] != "MYR" and not r["slip"]:
red.append("R2 conversion slip missing")
if r["ic"] and not r["key"]:
red.append("R3 shared cost, no written key")
if seen[r["doc"]] > 1:
red.append("R4 same document, two entities")
if not MONEY.match(r["amt"]):
red.append("R5 binary float amount")
if r["role"] == "agent" and r["basis"] == "principal":
yellow.append("Y1 gross booked, agent")
if r["ev"] < 5:
yellow.append("Y2 evidence chain short")
if r["status"] == "open" and r["days"] > 5:
yellow.append("Y3 open over 5 days")
for f in red + yellow:
flags[f] += 1
level["red" if red else ("yellow" if yellow else "green")] += 1
print("A. {} ledger lines (600 + 3 booked again by SVC)".format(
len(rows)))
for k in sorted(flags):
print(" {:<34} {:>4}".format(k, flags[k]))
print("B. lines red {}, yellow {}, green {}".format(
level["red"], level["yellow"], level["green"]))
print("C. green share {:.4f}; every red line goes to the queue".format(
level["green"] / len(rows)))唯一数据源与引用
范雅福(Fan, Y.). (2026). 《跨国数字业务多主体清分、跨境税基合规边界与一键审计就绪账本母典》第 8 章「实战工具与检查器规格:月末关账台账、四件套与预注册检验」(版本 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}
}