Dated corrections (2026-10-27): formal-consensus/RULEAZA-TOT.md translated into English and dated (it stated, without a date, facts of the chain of August 2026); the models print the chain facts of their time with the date, or the facts of today (labels and printed strings only, the logic and the verdicts unchanged: 37 of 37 models pass); README: 37 models counted on 2026-10-27 and the reproduction pointer to aere-docs REPRODUCE.md section 3b
This commit is contained in:
1 parent
9b2a69ab6b
commit
6d24576357
8 files changed
+149
-133
No files matched your search
@@ -16,7 +16,8 @@
|
||||
# chain-stopping validity rule; min() makes that inexpressible by construction,
|
||||
# and this file machine-checks it.
|
||||
#
|
||||
# Chain facts modelled as LAW (chain 2800, live values):
|
||||
# Chain facts modelled as LAW (chain 2800 as of 2026-08-15; corrected 2026-10-27: this line said 'live values'.
|
||||
# Today the set has ten validators, since 2026-09-11, and the minimum is 7 per scheme since block 20,715,632):
|
||||
# N = 9 validators, QBFT quorum = ceil(2N/3) = 6
|
||||
# anchor heights: every 32 blocks from 13,014,000
|
||||
# K schedule (height:K): 13,014,000 -> 0 ; 13,034,000 -> 3
|
||||
@@ -50,14 +51,14 @@ K_STEP_HEIGHT = 13_034_000 # schedule step: K goes 0 -> 3 here
|
||||
K_WARMUP = 0 # schedule K on [13,014,000 .. 13,034,000)
|
||||
K_ARMED = 3 # schedule K from 13,034,000 on
|
||||
MAX_SEALS = 5 # write cap aere.pq.anchor.maxSeals
|
||||
BLOCKING_FORK = 14_050_000 # no block finalizes without the Falcon quorum
|
||||
BLOCKING_FORK = 14_050_000 # the withdrawn 'blocking fork' height (2026-08-19: it changed no enforcement); the FORK-* checks model the retired rule from here
|
||||
REG1_HEIGHT, REG1_KEYS = 13_014_000, 7 # registry window 1
|
||||
REG2_HEIGHT, REG2_KEYS = 13_600_000, 9 # registry window 2 (rotation)
|
||||
N_VALIDATORS = 9
|
||||
QBFT_QUORUM = 6 # ceil(2*9/3)
|
||||
|
||||
def k_schedule(h):
|
||||
"""Height-indexed schedule 13014000:0, 13034000:3 (the live orar)."""
|
||||
"""Height-indexed schedule 13014000:0, 13034000:3 (the schedule of 2026-08-15; the published one has 14961456:6, 17102384:0, 17102416:6 and 20715632:7 too)."""
|
||||
return If(h >= K_STEP_HEIGHT, K_ARMED, K_WARMUP)
|
||||
|
||||
def k_eff(h, ceil_set, ceiling):
|
||||
@@ -97,7 +98,10 @@ def check(name, s, expect_unsat=True, kind="PROOF"):
|
||||
return ok
|
||||
|
||||
print("### AERE PQ anchor -- CEILING MONOTONICITY: minSealsCeiling can only LOWER K_eff,")
|
||||
print("### and K_eff <= maxSeals at every height (a conforming producer always suffices)\n")
|
||||
print("### and K_eff <= maxSeals at every height (a conforming producer always suffices)")
|
||||
print("### Chain of 2026-08-15: N=9, K schedule 13014000:0, 13034000:3, registries of 7 then 9 keys. The FORK-* rows")
|
||||
print("### model the per-block rule withdrawn on 2026-08-19 at 14,050,000, which changed no enforcement (dated")
|
||||
print("### 2026-10-27; today: ten validators, minimum 7 per scheme since block 20,715,632).\n")
|
||||
|
||||
# ---- CONFIG sanity: the quorum arithmetic and the height lattice are coherent -
|
||||
s = Solver()
|
||||
@@ -115,7 +119,7 @@ check(f"CONFIG K-step height {K_STEP_HEIGHT:,} lands ON the 32-block anchor latt
|
||||
s = Solver()
|
||||
s.add(Int('ok') == (1 if (BLOCKING_FORK - ANCHOR_START) % ANCHOR_STEP == 0 else 0))
|
||||
s.add(Int('ok') == 1)
|
||||
check(f"CONFIG blocking fork {BLOCKING_FORK:,} lands ON the 32-block anchor lattice", s,
|
||||
check(f"CONFIG the withdrawn fork height {BLOCKING_FORK:,} lands ON the 32-block anchor lattice", s,
|
||||
expect_unsat=False, kind="CONFIG")
|
||||
|
||||
# =============================================================================
|
||||
@@ -223,7 +227,7 @@ h, ceiling, ceil_set = Int('h'), Int('ceiling'), Bool('ceil_set')
|
||||
s.add(is_anchor_height(h), h >= BLOCKING_FORK, ceiling >= 0)
|
||||
keff = k_eff(h, ceil_set, ceiling)
|
||||
s.add(Or(keff > MAX_SEALS, keff > reg_keys(h))) # negate: unsatisfiable threshold
|
||||
check(f"FORK-1 blocking era (h >= {BLOCKING_FORK:,}): NO ceiling makes the anchor "
|
||||
check(f"FORK-1 modelled range (h >= {BLOCKING_FORK:,}): NO ceiling makes the anchor "
|
||||
"threshold unsatisfiable (K_eff <= maxSeals AND K_eff <= registry keys)", s)
|
||||
|
||||
# ============================ NEGATIVE CONTROLS ==============================
|
||||
@@ -248,7 +252,7 @@ s = Solver()
|
||||
h, ceiling = Int('h'), Int('ceiling')
|
||||
s.add(is_anchor_height(h), h >= BLOCKING_FORK, ceiling >= 0)
|
||||
s.add(k_eff_buggy_max(h, True, ceiling) > MAX_SEALS)
|
||||
check(f"NEG-CTRL 2 PLANTED max() ceiling, blocking era: K_eff CAN exceed "
|
||||
check(f"NEG-CTRL 2 PLANTED max() ceiling, h >= {BLOCKING_FORK:,}: K_eff CAN exceed "
|
||||
f"maxSeals={MAX_SEALS} (a settable value becomes a chain-stop switch)", s,
|
||||
expect_unsat=False, kind="NEG-CTRL")
|
||||
|
||||
@@ -292,11 +296,11 @@ if allok:
|
||||
print(" threshold -- K_eff = min(K_schedule, ceiling), K_eff <= K_schedule for every")
|
||||
print(" height and every ceiling (a raising case is UNSAT, i.e. inexpressible), a")
|
||||
print(" ceiling at/above the schedule is a no-op, and K_eff <= maxSeals=5 and")
|
||||
print(" K_eff <= registry keys (7 then 9) at every height including the blocking era")
|
||||
print(" from 14,050,000 -- so a conforming producer (heard >= K_eff) always writes")
|
||||
print(" K_eff <= registry keys (7 then 9, the registries of 2026-08-15) at every height,")
|
||||
print(" 14,050,000 and above included -- so a conforming producer (heard >= K_eff) always writes")
|
||||
print(" min(heard, maxSeals) >= K_eff and the valve can never become a halt switch.")
|
||||
print(" Negative controls FIRE: the planted max() variant raises K_eff (SAT), pushes")
|
||||
print(" it past the write cap in the blocking era (SAT, a chain-stop), a planted")
|
||||
print(" it past the write cap at h >= 14,050,000 (SAT, a chain-stop), a planted")
|
||||
print(" under-cap without the loader guard yields only rejected certificates (SAT,")
|
||||
print(" why AERE-PQC-ANCHOR-CONF-01 exists), and the valve itself is non-vacuous (SAT).")
|
||||
print(" BOUNDARY: design arithmetic of the threshold pipeline, not Besu bytecode;")
|
||||
|
||||
Reference in new issue
Block a user