5D Library › Hundred-Volume Knowledge Hypergraphs, Multimodal Personal Prior Compilation and Autonomous Empire Scaling · 中文
Chapter 6. A Hundred Years: Copies, Common Shocks and What Reproducibility Can Promise
Copies
The library is kept in three forms: a repository with a DOI, plain-text source on a code-hosting platform, and printed books. Digital preservation practice summarizes the lesson of the past as “lots of copies keep stuff safe” (Maniatis et al. 2005). p12 computes the chance that at least one copy lasts a hundred years, with illustrative loss rates.
Calculation
# Chapter 6. p12: Will at least one copy last a hundred years? Yearly
# loss hazards (illustrative): an institutional repository with a DOI
# 0.005; a code-hosting platform 0.02; one personal disk 0.05; one
# printed copy in private hands 0.02, with 5 such copies; one copy in a
# legal-deposit library 0.001, with 2 such copies. Independent losses
# give survival exp(-100 h) per copy. A common shock (chance 0.002 a
# year) destroys every digital copy at once and spares paper.
from math import exp
def surv(h, years=100):
return exp(-h * years)
def any_of(ps):
out = 1.0
for p in ps:
out *= 1 - p
return 1 - out
if __name__ == "__main__":
digital = [surv(0.005), surv(0.02), surv(0.05)]
private = [surv(0.02)] * 5
deposit = [surv(0.001)] * 2
print(" copies survive 100 years")
for name, ps in (("repository", digital[:1]), ("platform", digital[1:2]),
("personal disk", digital[2:]),
("5 private printed copies", private),
("2 deposit-library copies", deposit)):
print(" {:<28} {:17.3f}".format(name, any_of(ps)))
d = any_of(digital)
shock = surv(0.002)
rows = (("digital, independent", d), ("digital, common shock",
d * shock), ("digital + private paper, shock",
any_of([d * shock] + private)),
("digital + all paper, shock",
any_of([d * shock] + private + deposit)))
for name, p in rows:
print(" {:<30} {:15.4f}".format(name, p))
# copies survive 100 years
# repository 0.607
# platform 0.135
# personal disk 0.007
# 5 private printed copies 0.517
# 2 deposit-library copies 0.991
# digital, independent 0.6621
# digital, common shock 0.5421
# digital + private paper, shock 0.7787
# digital + all paper, shock 0.9980A single repository copy survives a century with chance 0.607, a platform copy 0.135, a personal disk 0.007. The three digital copies together survive with 0.6621 if their losses are independent, but only 0.5421 if a common shock can take all of them at once: copies on the same kind of infrastructure are not independent. Five printed copies in private hands add some protection (0.7787 together with the digital copies); two copies in legal-deposit libraries, which keep books for centuries, raise it to 0.9980. The most effective single step in this model is depositing printed copies with libraries.
Reproducibility
Surviving is not the same as running. Python’s documentation guarantees only that random() produces the same sequence from a compatible seed; most of the random module’s other algorithms “are subject to change across Python versions” (Python Software Foundation 2011). p13 turns this into survival curves for three classes of program.
Calculation
# Chapter 6. p13: Will a program still print the same output? A program
# reproduces byte for byte only if the interpreter can still be run and
# every function it relies on still behaves as before. Python's random
# module guarantees only random() under a compatible seeder; gauss(),
# choice(), betavariate() and the like may change between versions.
# Illustrative yearly hazards: interpreter unavailable 0.005; each
# random algorithm other than random() 0.01; each other library call
# 0.001; each third-party package 0.03. Classes of program: (i) random()
# only, 6 other calls; (ii) 3 other random algorithms, 6 calls; (iii)
# as (ii) plus 5 third-party packages.
from math import exp
CLASSES = (("random() only", 0, 6, 0), ("3 random algorithms", 3, 6, 0),
("plus 5 packages", 3, 6, 5))
def p_ok(years, alg, calls, pkgs):
h = 0.005 + 0.01 * alg + 0.001 * calls + 0.03 * pkgs
return exp(-h * years)
if __name__ == "__main__":
print(" class 10 yrs 25 yrs 50 yrs 100 yrs")
for name, a, c, k in CLASSES:
print(" {:<20}".format(name) + "".join(
" {:7.3f}".format(p_ok(t, a, c, k)) for t in (10, 25, 50, 100)))
print(" of 1,600 programs of class (ii), reproducing after 100 years:"
" {:.0f}".format(1600 * p_ok(100, 3, 6, 0)))
# class 10 yrs 25 yrs 50 yrs 100 yrs
# random() only 0.896 0.760 0.577 0.333
# 3 random algorithms 0.664 0.359 0.129 0.017
# plus 5 packages 0.148 0.008 0.000 0.000
# of 1,600 programs of class (ii), reproducing after 100 years: 27A program that relies only on random() and a few other calls reproduces its output byte for byte after 100 years with chance 0.333 in this model; one that also uses three other random algorithms (gauss, choice and the like, as most programs in this library do) with 0.017; one that adds five third-party packages with 0.000 after 50 years. Of 1,600 programs of the second class, about 27 would still print exactly the same output. A promise of “100% reproducibility over a century” cannot be kept. What can be kept is weaker and still valuable: every program prints its real output in the book, so a future reader can re-implement it and check the result against the page, even when the original no longer runs.
Hypothesis · not established
The author’s interpretation (not yet tested): of the programs printed in this library, at least nine in ten will still reproduce their printed output byte for byte under the Python version current in ten years. What would show it wrong: re-running every program of the library under the Python version current in 2036 gives a different output for more than one program in ten.
Summary
Copies survive a century only if some of them escape common shocks, and printed copies in libraries are the strongest guard. Byte-for-byte reproducibility decays even for standard-library programs; the printed output is what keeps a calculation checkable.
References
Fan, Y. (2026). Hundred-Volume Knowledge Hypergraphs, Multimodal Personal Prior Compilation and Autonomous Empire Scaling: Cross-Disciplinary Isomorphisms, Zero-Marginal-Cost Replication and Century-Scale Knowledge Preservation [百卷知识超图拓扑、多模态个人先验编译与自主知识帝国标度律] (Version 1.0.0). 5D Library. https://doi.org/10.5281/zenodo.24090260 · Licensed under Creative Commons Attribution-NonCommercial-NoDerivatives 4.0 International (CC BY-NC-ND 4.0).