关于「实证闭环:实战工具与检查器规格」,《超越蒸馏:商业器官合成与自检》给出的定量结论是什么?
结论:第八章给出器官合成台账、红黄绿检查器规格、小工具「商业器官合成与自检器」与预注册检验:不带检查器的合成在九十天里至少逃逸一个缺陷的概率是 0.9530,带检查器降到 0.2218。书中以标注框区分已发表的证据、可运行的 Python 计算(22 段程序)、原典与作者的假说。
数据口径:本书主张向上合成:把专著定理连同目标市场的约束(计价单位、价格带、合规红线、界面门禁)正向编译成自带规格与不变量的小器官。 书中参数为示意,全部计算由书中程序生成。
对照数据表
下表数字由本章 Python 程序原样打印,可重新运行复现。 程序只用 Python 标准库与结论吻合的打印值: 0.2218, 0.9530
| way | lead d | escaped | P(esc>0) | net P10 | median | P90 |
| hand-written | 12.04 | 2.400 | 0.9099 | 738.1 | 973.9 | 1,141.1 |
| templated | 5.98 | 1.202 | 0.7018 | 1,024.4 | 1,166.2 | 1,264.0 |
| synth, no checker | 3.00 | 3.015 | 0.9530 | 1,038.9 | 1,163.6 | 1,259.7 |
| synth + checker | 4.02 | 0.251 | 0.2218 | 1,164.1 | 1,251.2 | 1,301.6 |
查看完整验算程序
# Chapter 8. p82: hand-written, templated and synthesised organs compared
# by Monte Carlo over a 90-day window. Every parameter is illustrative:
# lead time in days ~ Gamma(shape, scale); defects made ~ Poisson; each
# defect is caught before release with probability q, otherwise it
# escapes. A live day is worth 15 units, a build day costs 10 units and
# an escaped defect costs 40 units. "Synthesised, no checker" is the
# "it runs, so it is right" stance; "synthesised + checker" adds a day
# for property, mutation and reachability checks. 20,000 runs per row.
import math
import random
import statistics
WAYS = [
("hand-written", 4.0, 3.0, 0.0, 6.0, 0.60, random.Random(37881)),
("templated", 3.0, 2.0, 0.0, 4.0, 0.70, random.Random(37882)),
("synth, no checker", 2.0, 1.5, 0.0, 5.0, 0.40, random.Random(37883)),
("synth + checker", 2.0, 1.5, 1.0, 5.0, 0.95, random.Random(37884)),
]
def poisson(lam, rng):
lim, k, p = math.exp(-lam), 0, 1.0
while True:
p *= rng.random()
if p <= lim:
return k
k += 1
def run(shape, scale, extra, lam, q, rng):
lead = min(90.0, rng.gammavariate(shape, scale) + extra)
made = poisson(lam, rng)
esc = 0
for _ in range(made):
if rng.random() > q:
esc += 1
net = 15.0 * (90.0 - lead) - 10.0 * lead - 40.0 * esc
return lead, esc, net
if __name__ == "__main__":
print("way lead d escaped P(esc>0) net P10"
" median P90")
for name, k, th, extra, lam, q, rng in WAYS:
res = [run(k, th, extra, lam, q, rng) for _ in range(20000)]
leads = [r[0] for r in res]
escs = [r[1] for r in res]
nets = sorted(r[2] for r in res)
any_esc = len([e for e in escs if e > 0]) / len(escs)
qs = statistics.quantiles(nets, n=10)
print("{:<18} {:>7.2f} {:>7.3f} {:>8.4f} {:>7,.1f} {:>6,.1f}"
" {:>5,.1f}".format(name, statistics.fmean(leads),
statistics.fmean(escs), any_esc,
qs[0], statistics.median(nets), qs[8]))唯一数据源与引用
范雅福(Fan, Y.). (2026). 《超越蒸馏:可执行商业器官合成、生成式代码结晶与活体系统自举母典》第 8 章「实证闭环:实战工具与检查器规格」(版本 1.0.0). 5D Library. DOI 待发布
DOI 待发布 · 专著页正式发布后上线(本站暂无专著页) · 5DL-B-378 · v1.0.0 · CC-BY-NC-ND-4.0
BibTeX
@book{fan2026378,
author = {Fan, Yafu},
title = {Beyond Distillation: Executable Business-Organ Synthesis, Generative Code Crystallisation and Living-System Bootstrapping},
year = {2026},
publisher = {5D Library},
edition = {1.0.0},
note = {DOI pending}
}