关于「时间锁状态机:可达性、安全性与有界模型检验」,《数字遗产与时间锁传承》给出的定量结论是什么?

结论:第三章把交接写成状态机,在 87380 条事件序列上找到常见设计的五步漏洞;五取三的核验永不达成的概率是 0.02661。

数据口径:书中参数为示意;全部计算由书中程序生成;本书是非个人化法律、税务或理财建议,法律规则只写大意、以上架前人工复核为准,具体事务须由执业律师按当地法律办理,任何自动化都不能替代合法有效的遗嘱与公证。 第一章在示意模型中量出只立遗嘱按价值计失联 0.781,技术交接降到 0.150,加年度演练降到 0.030;五环的链要九成可达,每环须 0.979。

English version

对照数据表

下表数字由本章 Python 程序原样打印,可重新运行复现。 程序只用 Python 标准库与结论吻合的打印值: 0.02661

fixed part: window 29 + nudge 3 + grace 7 = 39 days
trustees reachable 0.85, daily answer rate 0.35
k of nP(never)quorum days: meanmedianp90total p90
1 of 10.150002.862645
1 of 30.003381.581342
2 of 30.060752.972645
3 of 50.026612.943544
4 of 50.164794.354746
4 of 70.012102.893544
5 of 70.073774.024746
3 of 5: verification after the window ~ 10 + 2.94 = 12.94 days mean
查看完整验算程序
# Chapter 3. p32: days from death to release in the designed machine.
# After death the machine waits the silence window W, then NUDGE days of
# reminders, then GRACE days in which trustees are alerted; in QUORUM it
# waits until k of n trustees have confirmed. A trustee is reachable at
# all with probability 1 - U and, if reachable, answers on each day with
# probability RHO. With F(t) = (1 - U) * (1 - (1 - RHO) ** t),
#   P(quorum by day t) = P(Binomial(n, F(t)) >= k).
# The mean is taken over the cases that ever reach a quorum.
# W 取第二章 p23 的最优窗口;其余参数均为示意。
import math

W, NUDGE, GRACE = 29, 3, 7
U, RHO = 0.15, 0.35
HORIZON = 365


def at_least(k, n, p):
    return math.fsum(math.comb(n, j) * p ** j * (1 - p) ** (n - j)
                     for j in range(k, n + 1))


def quorum_profile(k, n):
    never = 1 - at_least(k, n, 1 - U)
    cdf = [at_least(k, n, (1 - U) * (1 - (1 - RHO) ** t))
           for t in range(HORIZON + 1)]
    reach = cdf[-1]
    # 条件均值:E[T | 达成] = sum_t P(t < T, 达成) / P(达成)
    mean = math.fsum(reach - c for c in cdf) / reach
    med = next(t for t, c in enumerate(cdf) if c >= 0.5 * reach)
    p90 = next(t for t, c in enumerate(cdf) if c >= 0.9 * reach)
    return never, mean, med, p90


fixed = W + NUDGE + GRACE
print("fixed part: window %d + nudge %d + grace %d = %d days"
      % (W, NUDGE, GRACE, fixed))
print("trustees reachable %.2f, daily answer rate %.2f" % (1 - U, RHO))
print(" k of n   P(never)   quorum days: mean  median  p90   total p90")
for k, n in ((1, 1), (1, 3), (2, 3), (3, 5), (4, 5), (4, 7), (5, 7)):
    never, mean, med, p90 = quorum_profile(k, n)
    print(" %d of %d   %8.5f              %5.2f  %5d %5d   %8d"
          % (k, n, never, mean, med, p90, fixed + p90))
never, mean, med, p90 = quorum_profile(3, 5)
print("3 of 5: verification after the window ~ %d + %.2f = %.2f days mean"
      % (NUDGE + GRACE, mean, NUDGE + GRACE + mean))

唯一数据源与引用

范雅福(Fan, Y.). (2026). 《单兵帝国数字遗产与跨代永续契约、时间锁状态机与书库知识产权自动化系统零摩擦传承母典》第 3 章「时间锁状态机:可达性、安全性与有界模型检验」(版本 1.0.0). 5D Library. DOI 待发布

DOI 待发布 · 专著页正式发布后上线(本站暂无专著页) · 5DL-B-292 · v1.0.0 · CC-BY-NC-ND-4.0

BibTeX
@book{fan2026292,
  author    = {Fan, Yafu},
  title     = {Digital Legacy and Perpetual Cross-Generation Contracts for a One-Person Empire: Time-Lock State Machines and the Frictionless Succession of Libraries, Intellectual Property and Automated Systems},
  year      = {2026},
  publisher = {5D Library},
  edition   = {1.0.0},
  note      = {DOI pending}
}

本书其他章节结论