22
33=== Current State
44
5+ *Receipts (2026-11-09).* Until this date no CI job type-checked
6+ `+src/abi/+`, and as committed none of the five modules checked: their module
7+ names did not match their paths, `+Types.idr+` and `+Stripping.idr+` had syntax
8+ errors, and `+Stripping.idr+`'s main theorem did not type-check at all. The ✅
9+ marks below therefore had no receipt before that date. Each module is now
10+ checked on every PR by the `+idris-abi+` job in
11+ `+.github/workflows/proven-tests.yml+` (`+scripts/ci/check-idris-abi.sh+`, Idris2
12+ 0.7.0, `+%default total+`, no `+believe_me+`, `+assert_total+`,
13+ `+assert_smaller+`, `+postulate+` or `+idris_crash+`). PROOF-POLICY §6 deviation,
14+ state open: Idris2 is built from its v0.7.0 tag, because the repo's Guix
15+ manifest and container do not provide it.
16+
517* **src/abi/*.idr**: 5 files — `+Types.idr+`,
618`+PatternCompleteness.idr+` (PA1 ✅ 2026-04-11),
719`+ClassificationSoundness.idr+` (PA2 ✅ 2026-04-11), `+Stripping.idr+`
8- (PROOF-PROGRAMME Layer 1.0 line-comment slice ✅ 2026-06-02 —
9- multi-comment semantics + slash-slash closure both Qed via
10- mutual-recursive `+bodyIsFixedPoint+`),
20+ (PROOF-PROGRAMME Layer 1.0 line-comment slice: claimed 2026-06-02 but
21+ never checked; re-proved and checked 2026-11-09),
1122`+AttestationUnforgeability.idr+` (PROOF-PROGRAMME §3.2 ✅ 2026-06-04 —
1223conditional unforgeability from Ed25519 EUF-CMA + chain-hash
1324collision-resistance hypotheses)
@@ -34,15 +45,19 @@ top-level theorem.
3445preserves the ordering.
3546
3647|Layer 1.0 line-comment idempotence |`+src/abi/Stripping.idr+`
37- |*2026-06-02 close-out (issue #113)*: corrects PR #111’s single-comment
38- model to multi-comment via mutual recursion
39- (`+stripLineComments ↔ stripLineCommentBody+` — body calls back into
40- main after each preserved newline). Qed-closes
41- `+stripLineCommentsIdempotent+` for ALL cases including the slash-slash
42- inductive via the load-bearing `+bodyIsFixedPoint+` lemma proved by
43- mutual induction with the main theorem. 7 sanity-check theorems
44- including the two-comments-on-different-lines case PR #111 silently
45- mis-stripped.
48+ |*Re-proved 2026-11-09.* The 2026-06-02 proof (issue #113) never
49+ type-checked: its `+//+` case relied on reductions that do not hold for a
50+ variable character, and it used `+decEq+` without importing it. The new proof
51+ shows `+stripLineCommentsIdempotent+` (stripping twice equals stripping once)
52+ through two facts: stripping is the identity on text with no `+//+`
53+ (`+stripIsIdOnClean+`), and the strippers' output has no `+//+`
54+ (`+stripIsClean+`/`+bodyIsClean+`, by mutual induction). `+bodyIsFixedPoint+`
55+ follows. The strippers are restated with explicit `+Bool+` tests. An
56+ exhaustive differential run over every string of length up to 9 on
57+ `+{/, x, \n}+` (29,524 inputs) found no difference from the previous
58+ definitions. A mutant that blanks with `+/+` instead of a space is rejected.
59+ Nine closed sanity theorems, including two comments on different lines and
60+ `+///+`.
4661
4762|Attestation chain unforgeability
4863|`+src/abi/AttestationUnforgeability.idr+` |*PROOF-PROGRAMME §3.2
@@ -66,11 +81,37 @@ obligation. The gateway octad projection is lossy by design, so this property
6681also does not establish a faithful hexad↔octad map.
6782|===
6883
84+ === Model-Checked (TESTED, bounded)
85+
86+ [width="100%",cols="26%,30%,44%",options="header",]
87+ |===
88+ |Obligation |Artefact |Status and bounds
89+ |Generation-publish protocol P1–P3 (prototype, `src/publish.rs`;
90+ design `docs/design/GENERATION-PUBLISH.adoc`) |`verification/proofs/tlaplus/GenerationPublish.tla`
91+ (TLC 2.19, tla2tools v1.7.4, run by `verify.yml` job `tlaplus`) and
92+ `tests/publish_model.rs` (independent explicit-state checker) |*TESTED*: up to
93+ 3 writers, 1 reader, 2 files, crash at every writer step, collection of crashed
94+ and live writers' partial generations, `keep` 0 and 1. P1 (`CURRENT` names a
95+ complete generation), P2 (never moves backwards) and P3 (manifest reader never
96+ fails) hold. P4 (mirrors consistent once quiet) holds without crashes and
97+ *fails* after a crash, the documented limit. Three mutants each violate P1 or
98+ P2, so the invariants are not vacuous. *PROOF-POLICY §4 exception*: a
99+ concurrency protocol over crash interleavings, which Creusot and Verus do not
100+ state. *§6 deviation (open)*: TLC is fetched from its release, digest-checked,
101+ because neither Guix nor the container provides it yet.
102+ |===
103+
69104=== What Still Needs Proving
70105
71106[width="100%",cols="51%,27%,22%",options="header",]
72107|===
73108|Component |What |Why
109+ |Generation publish: pure decisions (`src/publish.rs`) |*OPEN* (PROOF-POLICY
110+ §1.2): Creusot/Pearlite and Verus contracts for the supersede comparison and
111+ the collect selection (never removes the current or a newer generation; keeps
112+ the `keep` newest older ones) |The model check covers the protocol, not the Rust
113+ code; these tie the implementation to P1 and P2
114+
74115|*Layer 1.0 — stripBlockComments + Strings + Composition +
75116Position-Preservation* (issue #114) |Block-comment (`+/* */+`) and
76117string-literal (`+"..."+`) strippers with same mutual-recursive shape;
0 commit comments