What does The Cliff of Stacked Rules conclude, in numbers, about “Closing the Loop: a Monthly Constraint-Ratio Scan of the Five-Kit Rulebooks and a Pre-Registered Test”?

Answer: Chapter 8 gives an eight-step monthly scan, the Rule Constraint-Ratio Deadlock Early Warning and a pre-registered test: grading can be tested with power 0.851 using 28 snapshots per group. Marked boxes separate published evidence, runnable Python calculations (19 programs), classical sources and the author's hypotheses.

Scope of the numbers: The rulebooks and data are illustrative; every calculation is generated by the book's programs; the book offers general business method, not legal, compliance or business-decision advice. Chapter 4 checks an illustrative rulebook of 24 switches: bare ratio 0.958, load 0.475, a median clause ratio at deadlock of only 1.292, and a minimal conflict core spanning three rule families.

中文版

Data table

The numbers below are printed verbatim by the chapter's Python program and can be reproduced by running it. standard-library Python onlyprinted values that match the answer: 0.851, 28

Test A: formulas per ratio for +/- 0.05385
fitted window exponent s0.791
predicted window at n200: 0.28
Test B: red vs green snapshots, one-sided alpha 0.05
p_red p_green n per group exact power null rejection
0.300.05 28 0.851 0.054
0.250.05 39 0.833 0.049
0.200.05 60 0.830 0.050
Show the full program
# Chapter 8. p82: sample sizes for the pre-registered tests
# Test A (replication): formulas per ratio so that P(sat) is known to
# +/- 0.05 at 95 per cent; and the shrinking of the 10-90 window,
# fitted as width ~ n^-s on the p12 widths (2.48, 1.54, 0.80 at
# n = 12, 25, 50); s > 0 means a sharpening cliff.
# Test B (libraries): next-month deadlock share among red snapshots
# (h_2 >= 0.15) versus green ones (h_2 < 0.05); assumed shares 0.30
# and 0.05 are illustrative. One-sided alpha 0.05, power 0.80, normal
# approximation, then exact power of the same z-test by enumeration.

import math
from statistics import NormalDist

Z = NormalDist()
za, zb = Z.inv_cdf(0.95), Z.inv_cdf(0.80)

n_a = math.ceil((Z.inv_cdf(0.975) / 0.05) ** 2 * 0.25)
print("Test A: formulas per ratio for +/- 0.05: %d" % n_a)
ns, ws = [12, 25, 50], [2.48, 1.54, 0.80]
lx = [math.log(v) for v in ns]
ly = [math.log(v) for v in ws]
mx, my = math.fsum(lx) / 3, math.fsum(ly) / 3
sxy = math.fsum((a - mx) * (b - my) for a, b in zip(lx, ly))
sxx = math.fsum((a - mx) ** 2 for a in lx)
print("  fitted window exponent s = %.3f" % (-sxy / sxx))
print("  predicted window at n = 200: %.2f"
      % math.exp(my + sxy / sxx * (math.log(200) - mx)))


def z_test(x1, x2, n):
    p1, p2 = x1 / n, x2 / n
    p = (x1 + x2) / (2 * n)
    se = math.sqrt(2 * p * (1 - p) / n)
    return se > 0 and (p1 - p2) / se > za


def exact_power(p1, p2, n):
    f1 = [math.comb(n, k) * p1 ** k * (1 - p1) ** (n - k)
          for k in range(n + 1)]
    f2 = [math.comb(n, k) * p2 ** k * (1 - p2) ** (n - k)
          for k in range(n + 1)]
    return math.fsum(f1[i] * f2[j] for i in range(n + 1)
                     for j in range(n + 1) if z_test(i, j, n))


print("Test B: red vs green snapshots, one-sided alpha 0.05")
print("p_red  p_green  n per group  exact power  null rejection")
for p1, p2 in ((0.30, 0.05), (0.25, 0.05), (0.20, 0.05)):
    pb = (p1 + p2) / 2
    num = za * math.sqrt(2 * pb * (1 - pb)) + \
        zb * math.sqrt(p1 * (1 - p1) + p2 * (1 - p2))
    n = math.ceil((num / (p1 - p2)) ** 2)
    print("%5.2f  %7.2f  %11d  %11.3f  %14.3f"
          % (p1, p2, n, exact_power(p1, p2, n),
             exact_power(pb, pb, n)))

Single source and citation

Fan, Y. (2026). Boolean Satisfiability Phase Transitions: the Critical Constraint Ratio at Which Stacked Promotion, Compliance and Gate Rules Deadlock, and How to See It Coming (Version 1.0.0), Chapter 8: Closing the Loop: a Monthly Constraint-Ratio Scan of the Five-Kit Rulebooks and a Pre-Registered Test. 5D Library. DOI pending

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

BibTeX
@book{fan2026252,
  author    = {Fan, Yafu},
  title     = {Boolean Satisfiability Phase Transitions: the Critical Constraint Ratio at Which Stacked Promotion, Compliance and Gate Rules Deadlock, and How to See It Coming},
  year      = {2026},
  publisher = {5D Library},
  edition   = {1.0.0},
  note      = {DOI pending}
}

Other chapter answers in this book