AIP-21 erratum and AIP-23 note (2026-10-01), formal models annotated: the post-quantum commit seal carries no round

AIP-21: a record that reaches `post-quantum` shows that the commit quorum of distinct validators sealed the block
post-quantum in some round; it does not by itself prove that the block was decided (follows the AIP-22 erratum of the same
day). AIP-23: dated note on what the finality level rests on; level names unchanged. Three formal models carry a dated note
where they treated certificate uniqueness as a property of the code rather than of the model.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
Aere NetworkandClaude Opus 5.5 committed 2026-10-01 17:10:21 +03:00
1 parent 51d63e4c17
commit c9ba6d4bec
6 files changed
+46 -2

No files matched your search

@@ -41,6 +41,15 @@
# keccak256 is modelled as an INJECTIVE uninterpreted function where the argument
# rests on "a different block gives a different digest" [VERIFY: keccak256]. This
# checks the DESIGN-level composition, NOT the compiled EVM/Besu bytecode.
#
# Note added 2026-10-01 (AIP-22 erratum of that date). The guard this model's uniqueness rests on, "the
# certificate's digest is bound to the block QBFT FINALIZED", is NOT a rule of the shipped code: the anchor rules
# (PqAnchorDigestRule, PqAnchorSealsRule) check that the certificate sits under the anchor's hash and that K
# distinct valid seals sign M(parent), and M carries no round. The code therefore behaves as NEGATIVE CONTROL A
# below, and the erratum measures it in the reference client: seven valid seals over a block that no round
# decided, and an anchor over it that passes both rules (AereRoundFreeCertificateTest). AV1 and AV2 are
# properties of this model, not of chain 2800. Below AIP-22 stage 5 such an anchor's own header still needs the
# ECDSA commit quorum of one round, which an adversary without the classical keys cannot produce.
# -----------------------------------------------------------------------------
from z3 import (Int, Bool, Function, IntSort, Solver, And, Or, Not, Implies, If,
Sum, sat, unsat)
@@ -23,6 +23,9 @@
# write cap maxSeals = 5
# emergency ceiling minSealsCeiling: only LOWERS K (that is the theorem)
# blocking fork at 14,050,000: no block finalizes without the Falcon quorum
# Note added 2026-10-01: the "blocking fork at 14,050,000" premise was withdrawn on 2026-08-19 (that height
# armed a per-block rule the anchor rules had already retired, and it changed no enforcement). The FORK-*
# checks below model that retired rule; they say nothing about the chain after that height.
# registry rotation: 13,014,000 -> 7 keys ; 13,600,000 -> 9 keys ;
# every height is covered by EXACTLY one registry
#
@@ -24,6 +24,9 @@
# K schedule 13,014,000:0 then 13,034,000:3 (K=3 minimum Falcon seals)
# write cap maxSeals = 5; emergency minSealsCeiling can only LOWER K
# blocking fork at 14,050,000: no block finalizes without the Falcon quorum
# Note added 2026-10-01: the "blocking fork at 14,050,000" premise was withdrawn on 2026-08-19 (that height
# armed a per-block rule the anchor rules had already retired, and it changed no enforcement). The FORK-*
# checks below model that retired rule; they say nothing about the chain after that height.
# registry rotation 13,014,000 -> 7 keys, 13,600,000 -> 9 keys
#
# Schedule semantics (the design being proved): a registry is active from its
@@ -34,7 +34,7 @@ CONSENSUS_MODELS = [
("QBFT digest-keyed vote tally (2026-07-14 Finding-A shipped fix)", "qbft_digest_keyed_smt.py"),
("QBFT IBFT 2.0 locking, engine-role model (2026-07-14 Findings D/E)", "qbft_locking_smt.py"),
("QBFT NETWORK-PARTITION safety/liveness (N=9 parametric: split-brain, starvation, heal)", "partition_safety_smt.py"),
("Anchor x VIEW-CHANGE (no round change yields two valid PQ certificates, N=9)", "anchor_viewchange_smt.py"),
("Anchor x VIEW-CHANGE (MODEL only, under its finalized-block guard: no round change yields two valid PQ certificates, N=9; the code has no such guard, Note added 2026-10-01)", "anchor_viewchange_smt.py"),
("PQ MESSAGE-LAYER ENFORCEMENT (SPEC 2.6: armed-requires-valid, no cross-domain/position/author replay, below-fork unchanged, commit form under armed anchor = D-311)", "pq_message_enforcement_smt.py"),
("PqAnchor CEILING monotonicity (minSealsCeiling only lowers K; K_eff <= maxSeals)", "pqanchor_ceiling_monotonicity_smt.py"),
("PQ anchor REGISTRY index binding (loader and seal rule read ONE mapping)", "registry_index_binding_smt.py"),