What does Moon Blocks, Holy Casts and Temple Verses conclude, in numbers, about “Closing the Loop: Randomness Statements, a Controlled Experiment on Satisfaction and a Pre-Registered Protocol”?

Answer: Chapter 8 gives a randomness statement, a controlled experiment on satisfaction and universality, a pre-registered protocol and the Moon Block Probability Simulator. Marked boxes separate published evidence, runnable Python calculations (19 programs), classical sources and the author's hypotheses.

Scope of the numbers: Its parameters are illustrative; all calculations are generated by its programs. Chapter 7 examines the entry on divination cups in Cheng Dachang's Yanfanlu and Cicero's De Divinatione, setting the illustrative Venus throw of four knucklebones, 0.0384, beside three holy casts.

中文版

Data table

The numbers below are printed verbatim by the chapter's Python program and can be reproduced by running it. standard-library Python only

shape h/w p holy q^3 1 in wait sim
segment0.300 0.57690.48820.11638.6014.840.1145
segment0.500 0.62780.46740.10219.8016.510.1043
cap0.327 0.61280.47450.10699.3615.910.1089
cap0.500 0.67560.43840.084211.8719.360.0820
shell0.500 0.72360.40000.064015.6224.370.0651
pair 0.70/0.30holy 0.5800q^3 0.1951sim 0.1935
Show the full program
# Chapter 8. p82: the core of the Moon Block Probability Simulator.
# Model: the same functions as distill/tool.py. A shape (2-D segment
# of p11, solid cap of p12, thin shell of p72) and a height-to-width
# ratio give each block's chance p of landing flat face up under the
# quasi-static rule; two blocks (p1, p2) give holy, laughing and yin
# shares; three holy in a row is holy^3; the mean wait for a run of
# three is (1 - q^3) / ((1 - q) q^3). A seeded simulation of 20000
# three-cast sessions checks the exact numbers. Shapes illustrative.
import math
import random

SESSIONS = 20000


def cap_h(ratio):
    # unit-sphere cap height h whose height-to-width h / (2a) = ratio
    lo, hi = 1e-9, 1.0
    for _ in range(80):
        mid = (lo + hi) / 2.0
        if mid / (2.0 * math.sqrt(mid * (2.0 - mid))) < ratio:
            lo = mid
        else:
            hi = mid
    return (lo + hi) / 2.0


def p_flat_up(shape, ratio):
    if shape == "segment":
        al = 2.0 * math.atan(2.0 * ratio)
        yc = 4.0 * math.sin(al) ** 3 / (3.0 * (2.0 * al
                                              - math.sin(2.0 * al)))
        return 1.0 - math.atan(math.sin(al) / (yc - math.cos(al))) / math.pi
    h = cap_h(ratio)
    a = math.sqrt(h * (2.0 - h))
    zg = h / 2.0 if shape == "shell" else h * (4.0 - h) / (4.0 * (3.0 - h))
    return 1.0 - (1.0 - zg / math.hypot(zg, a)) / 2.0


def shares(p1, p2):
    holy = p1 * (1.0 - p2) + p2 * (1.0 - p1)
    return holy, p1 * p2, (1.0 - p1) * (1.0 - p2)


def wait_run(q, k=3):
    return (1.0 - q ** k) / ((1.0 - q) * q ** k)


def simulate(p1, p2, rng, sessions=SESSIONS):
    three = 0
    for _ in range(sessions):
        ok = True
        for _ in range(3):
            a = rng.random() < p1
            b = rng.random() < p2
            if a == b:
                ok = False
        three += ok
    return three / sessions


if __name__ == "__main__":
    rng = random.Random(20261112)
    print(" shape    h/w   p       holy    q^3     1 in   wait  sim")
    for shape, ratio in (("segment", 0.3), ("segment", 0.5),
                         ("cap", 0.327), ("cap", 0.5), ("shell", 0.5)):
        p = p_flat_up(shape, ratio)
        q, _, _ = shares(p, p)
        print(" {:<7s}  {:.3f} {:.4f}  {:.4f}  {:.4f}  {:5.2f}  {:5.2f}"
              "  {:.4f}".format(shape, ratio, p, q, q ** 3, 1.0 / q ** 3,
                                wait_run(q), simulate(p, p, rng)))
    q, _, _ = shares(0.7, 0.3)
    print(" pair 0.70/0.30        holy {:.4f}  q^3 {:.4f}  sim {:.4f}"
          .format(q, q ** 3, simulate(0.7, 0.3, rng)))

Single source and citation

Fan, Y. (2026). Rigid-Body Landing Probabilities of Moon Blocks, the Likelihood of Three Consecutive Holy Casts and Barnum Effects in Temple Oracle Verses (Version 1.0.0), Chapter 8: Closing the Loop: Randomness Statements, a Controlled Experiment on Satisfaction and a Pre-Registered Protocol. 5D Library. DOI pending

DOI pending · monograph page goes live after publication · 5DL-B-225 · v1.0.0 · CC-BY-NC-ND-4.0

BibTeX
@book{fan2026225,
  author    = {Fan, Yafu},
  title     = {Rigid-Body Landing Probabilities of Moon Blocks, the Likelihood of Three Consecutive Holy Casts and Barnum Effects in Temple Oracle Verses},
  year      = {2026},
  publisher = {5D Library},
  edition   = {1.0.0},
  note      = {DOI pending}
}

Other chapter answers in this book