Skip to content

Commit a4e901a

Browse files
committed
receipt: the Rocq receipt at e8deeaf is superseded; the reader derives PWG-3
Moving the Lean legs under lake edited scripts/check-recheck.sh, the checker the Rocq and Lean legs both run through. PROOF-GRADES.adoc says a receipt is invalidated by a change to its checker and is re-earned by the next run, and #180 applied that rule to the same script. The Rocq steps are byte-identical, but the rule is about the checker. So the Rocq row of run 43945986467 is now superseded, with that reason, like the Lean row. With only the Agda receipt current, the pinned reader derives PWG-3 for G-1, T-1, T-2, T-3 and E-1m. PROOF-NEEDS, PROOF-GRADES and READINESS say so. The first run of both legs on main after this change restores the higher grade. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_013CuBToxr5h9catptGiTsFX
1 parent 94befee commit a4e901a

5 files changed

Lines changed: 45 additions & 67 deletions

File tree

‎PROOF-NEEDS.adoc‎

Lines changed: 12 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -62,15 +62,15 @@ tables must agree.
6262
| C-3 | A transaction containing an obliteration is not all-reversible | PROVEN | `+Layout.obliterateNotReversible+`
6363
| C-4 | Replacing a chain entry by one with a different hash breaks the link | PROVEN | `+Proofs.tamperBreaksLink+`
6464
| C-5 | Struct sizes 32/16/112 and 8-byte alignment as divisibility (statements about the literals) | PROVEN | `+Layout.{contentHashSize,keyIdSize,oblitProofSize,hashAligned,keyIdAligned,oblitAligned}+`
65-
| G-1 | Reversibility as a Loss grade: lossless traces have only lossless steps; obliteration absorbs; a wrap/unwrap pair carries its cancellation law (its grade 𝟙 is assigned, not derived from that law) | PROVEN | `+verification/proofs/agda/Reversibility.agda+` (Agda kernel, resource-algebra pinned at `+cf9235c+`); `+tests/reject-agda/*+` refused; rechecked in Rocq and Lean (`+verification/proofs/{rocq,lean}/Reversibility+`, the Loss grade restated, `+PWG-2i+`); the cancellation premise is the TESTED row `+execute_then_undo_is_identity+`
65+
| G-1 | Reversibility as a Loss grade: lossless traces have only lossless steps; obliteration absorbs; a wrap/unwrap pair carries its cancellation law (its grade 𝟙 is assigned, not derived from that law) | PROVEN | `+verification/proofs/agda/Reversibility.agda+` (Agda kernel, resource-algebra pinned at `+cf9235c+`); `+tests/reject-agda/*+` refused; rechecked in Rocq and Lean (`+verification/proofs/{rocq,lean}/Reversibility+`, the Loss grade restated, `+PWG-3+`); the cancellation premise is the TESTED row `+execute_then_undo_is_identity+`
6666
| G-2 | The Idris2 `+IsCNO+`/`+ReversibleOp+` pair corresponds to Agda `+ReversiblePair+` (by transcription) | ASSUMED | no mechanical link claimed
6767
| G-3 | The FFI bridge preserves grade 𝟙 (homomorphism) | OPEN | resource-algebra lists homomorphisms OPEN; to file from JNK-01
6868
| E-1 | An attacker cannot recover obliterated content or use a revoked key | OPEN | `+Types.adversaryCannotKnow+` holds only because `+Knows+` has no Adversary constructor; the *model-level* half is now proved in Agda as row E-1m (#145 item 3)
69-
| E-1m | In a world model, an adversary whose observation excludes the store does not know what it holds; obliteration leaves nothing to recover; rotation to a different key leaves no agent able to use the old one (premise `+old ≠ new+`; true by the definition of `+rotate+` in the model; that an unusable key cannot decrypt is X-1) | PROVEN | `+verification/proofs/agda/Epistemic.agda+`; rechecked in Rocq and Lean (`+verification/proofs/{rocq,lean}/Epistemic+`, `+PWG-2i+`); `+tests/reject-agda/{AdversaryKnows,OldKeyStillUsable}.agda+` refused
69+
| E-1m | In a world model, an adversary whose observation excludes the store does not know what it holds; obliteration leaves nothing to recover; rotation to a different key leaves no agent able to use the old one (premise `+old ≠ new+`; true by the definition of `+rotate+` in the model; that an unusable key cannot decrypt is X-1) | PROVEN | `+verification/proofs/agda/Epistemic.agda+`; rechecked in Rocq and Lean (`+verification/proofs/{rocq,lean}/Epistemic+`, `+PWG-3+`); `+tests/reject-agda/{AdversaryKnows,OldKeyStillUsable}.agda+` refused
7070
| X-1 | Hash one-wayness; physical erasure (cryptographic and physical assumptions, external to this repository) | ASSUMED | not theorems of this repo
71-
| T-1 | Undoing a fully executed transaction's operations in reverse order restores the state it began in, given each step's undo restores its execute (the sequential Theorem 3.4) | PROVEN | `+TransactionAtomicity.rollback-restores+`; rechecked in Rocq and Lean (`+verification/proofs/{rocq,lean}/Rollback+`, `+PWG-2i+`); `+tests/reject-agda/ForwardRollback.agda+` refused
72-
| T-2 | In any single-active log (records with a decidable key and an active or settled phase), opening a fresh active record, a key- and phase-preserving edit, and a settling transition each preserve the invariant and rewrite only the active record, so a settled one is never modified | PROVEN | `+SingleActiveLog.{begin-good,modify-good,finish-good,update-active}+`; rechecked in Rocq and Lean (`+verification/proofs/{rocq,lean}/SingleActiveLog+`, `+PWG-2i+`); `+tests/reject-agda/SettleWithoutSettling.agda+` refused; januskey's instance is `+TransactionAtomicity.lifecycle-preserves-good+`; `+tests/reject-agda/CommitWhenIdle.agda+` refused
73-
| T-3 | In any single-active log satisfying the invariant, at most one record is active, and exactly one when the pointer is set | PROVEN | `+SingleActiveLog.at-most-one-active+`; rechecked in Rocq and Lean (`+verification/proofs/{rocq,lean}/SingleActiveLog+`, `+PWG-2i+`) (januskey's transactions are an instance)
71+
| T-1 | Undoing a fully executed transaction's operations in reverse order restores the state it began in, given each step's undo restores its execute (the sequential Theorem 3.4) | PROVEN | `+TransactionAtomicity.rollback-restores+`; rechecked in Rocq and Lean (`+verification/proofs/{rocq,lean}/Rollback+`, `+PWG-3+`); `+tests/reject-agda/ForwardRollback.agda+` refused
72+
| T-2 | In any single-active log (records with a decidable key and an active or settled phase), opening a fresh active record, a key- and phase-preserving edit, and a settling transition each preserve the invariant and rewrite only the active record, so a settled one is never modified | PROVEN | `+SingleActiveLog.{begin-good,modify-good,finish-good,update-active}+`; rechecked in Rocq and Lean (`+verification/proofs/{rocq,lean}/SingleActiveLog+`, `+PWG-3+`); `+tests/reject-agda/SettleWithoutSettling.agda+` refused; januskey's instance is `+TransactionAtomicity.lifecycle-preserves-good+`; `+tests/reject-agda/CommitWhenIdle.agda+` refused
73+
| T-3 | In any single-active log satisfying the invariant, at most one record is active, and exactly one when the pointer is set | PROVEN | `+SingleActiveLog.at-most-one-active+`; rechecked in Rocq and Lean (`+verification/proofs/{rocq,lean}/SingleActiveLog+`, `+PWG-3+`) (januskey's transactions are an instance)
7474
| T-4 | A rollback that fails part-way can be retried to completion | TESTED | `+rollback_resume_test+` drives the real `+jk+`: after one undo error and a repair, `+jk rollback+` skips the already undone operation and finishes (before the fix the retry stopped at it every time, reproduced 2026-10-26); fixed in `+cmd_rollback+`
7575
| T-5 | The transaction log is never left disagreeing with memory by a failed save, and is replaced by rename rather than overwritten in place, with an fsync before the rename by construction (no test observes the fsync) (a randomly named temporary file opened with the old file's mode, removed only if this save created it) rather than overwritten in place | TESTED | `+transaction::tests::failed_save_*+`: a save that fails at the final step leaves begin, add_operation, commit and rollback unapplied in memory; mutants (memory first, plain `+fs::write+`, no temp cleanup, shared temp name, truncating open, no permission copy) each fail a test. Not claimed: crash-safety of the rename itself is by construction, not crash-injected; the directory fsync is best effort (owner decision 2026-11-09), because failing the save after the rename would leave disk new and memory old; concurrent writers are out of scope (each save's content is intact, the last rename wins)
7676
| T-6 | A failed execute leaves the filesystem unchanged, and each undo restores the state its execute started from (premises of T-1; single steps are TESTED by `+execute_then_undo_is_identity+`) | ASSUMED | not checked for the failure path
@@ -149,7 +149,7 @@ listed as its trusted base) are recorded in the receipt and in
149149
link:docs/theory/PROOF-GRADES.adoc[`+docs/theory/PROOF-GRADES.adoc+`].
150150

151151
*PWG census, theory theorems of this repository (denominator 5):* `+PWG-1+` 0
152-
· `+PWG-2ii+` 0 · `+PWG-2i+` 5 (G-1, T-1, T-2, T-3, E-1m) · `+PWG-3+` 0 ·
152+
· `+PWG-2ii+` 0 · `+PWG-2i+` 0 · `+PWG-3+` 5 (G-1, T-1, T-2, T-3, E-1m) ·
153153
`+ungraded+` 0. G-3 names this repository's FFI bridge, so PROOF-POLICY §1
154154
classes it as engineering and it is outside the ladder. Every row has a Rocq leg and a Lean leg, re-proved by hand and reconciled
155155
statement by statement (`+docs/theory/PROOF-GRADES.adoc+`, §The recheck legs). A grade
@@ -164,12 +164,14 @@ contracts, and **Verus** (PROOF-POLICY §1.2, owner ruling 2026-11-07; not SPARK
164164
and not Idris2); neither verifier has a contract or proof in this tree yet,
165165
which is why no Rust row is proved.
166166

167-
All five rows are `+PWG-2i+`. Their Rocq and Lean legs are re-proved and
168-
reconciled, but only the Agda and Rocq witnesses have current receipts. The Lean
167+
All five rows are `+PWG-3+`. Their Rocq and Lean legs are re-proved and
168+
reconciled, but only the Agda witness has a current receipt. The Lean
169169
receipt is `+superseded+`: that run used `+lean+` directly, and §8.2 names
170170
`+lean+` under `+lake+` (owner ruling 2026-11-17). The legs now build under
171-
`+lake+`. Once a run of them on `+main+` is recorded, the reader derives `+PWG-1+`
172-
again. §8.2 accepts "a pinned
171+
`+lake+`. The Rocq receipt is `+superseded+` too: moving the Lean legs under
172+
`+lake+` changed `+scripts/check-recheck.sh+`, the checker both legs run
173+
through, and a changed checker re-earns the receipt. Once a run of both legs on
174+
`+main+` is recorded, the reader derives `+PWG-1+` again. §8.2 accepts "a pinned
173175
kernel run in CI" on the same terms as a checker service, so the CI runner
174176
needs no digest-pinned container of its own. How the three provers are
175177
installed is a separate matter, §6's, recorded under "Toolchain deviations"

‎READINESS.adoc‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ handling
6565
(run by idris-abi.yml, agda-proofs.yml and dashboard-check)
6666
|===
6767

68-
*Total declared:* 144 tests + 5 benchmark groups; 12 proofs checked (PROVEN ledger rows; five are theory theorems under PROOF-POLICY §8, graded from the receipt: all five at PWG-2i (Agda and Rocq receipted; the Lean receipt superseded until a run under lake is recorded) — see `docs/theory/PROOF-GRADES.adoc`) *Total
68+
*Total declared:* 144 tests + 5 benchmark groups; 12 proofs checked (PROVEN ledger rows; five are theory theorems under PROOF-POLICY §8, graded from the receipt: all five at PWG-3 (only the Agda witness has a current receipt; the Rocq and Lean receipts are superseded until a run on main after the checker change is recorded) — see `docs/theory/PROOF-GRADES.adoc`) *Total
6969
missing:* Fuzz, mutation, chaos, compatibility
7070

7171
=== Aspect Matrix

‎docs/theory/PROOF-GRADES.adoc‎

Lines changed: 16 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ repository, and none is introduced here.
1313
[NOTE]
1414
====
1515
*PWG census, theory theorems of this repository (denominator 5):*
16-
`PWG-1` 0 · `PWG-2ii` 0 · `PWG-2i` 5 (G-1, T-1, T-2, T-3, E-1m) · `PWG-3` 0 ·
16+
`PWG-1` 0 · `PWG-2ii` 0 · `PWG-2i` 0 · `PWG-3` 5 (G-1, T-1, T-2, T-3, E-1m) ·
1717
`ungraded` 0. `+foundation-diverse`: none. Axioms: none, in any of the three
1818
provers. Derived by the pinned standards reader from
1919
`verification/receipts/januskey_praxis.deed` (§The machine-readable receipt
@@ -221,15 +221,20 @@ Earlier receipts, kept with their lineage (§8.4) here and in the receipt file:
221221
Those are the facts the grades rest on. The propositions type-check in Agda
222222
under the §2.1 invocation, in CI, at a named commit, with the prover version
223223
pinned and the import cone recorded (`PWG-3`). Each of the five rows has a Rocq
224-
leg and a Lean leg, re-proved and reconciled (§The recheck legs below), and every
225-
counted witness has a current receipt from a pinned CI checker run on the
226-
receipt's source commit itself. The Lean receipt from that run is now
224+
leg and a Lean leg, re-proved and reconciled (§The recheck legs below), and each
225+
of the three provers has a receipt from a pinned CI checker run on the
226+
receipt's source commit itself. Only the Agda receipt is still current. The
227+
Lean receipt from that run is now
227228
`superseded`: the legs ran `lean` directly, and the owner ruled on 2026-11-17
228229
that §8.2's "`lean` under `lake`" means what it says (§What the grade rests on
229-
below). With no current Lean receipt the Lean leg does not count, so the reader
230-
derives `PWG-2i` (Agda and Rocq). The legs now run under `lake`; the first
231-
run of them on `main` will be recorded, and the reader will derive `PWG-1`
232-
again. No witness in another foundation exists, so
230+
below). The Rocq receipt from that run is `superseded` as well. The change
231+
that moved the Lean legs under `lake` edited `scripts/check-recheck.sh`, the
232+
checker both legs run through, and a changed checker re-earns the receipt
233+
(§Reporting rules below). The Rocq steps of the script are byte-identical, but
234+
the rule is about the checker, not about which of its lines changed. With no
235+
current Rocq or Lean receipt neither leg counts, so the reader derives `PWG-3`
236+
(Agda only). The first run of both legs on `main` after that change will be
237+
recorded, and the reader will derive `PWG-1` again. No witness in another foundation exists, so
233238
`foundation_diverse` is false throughout.
234239

235240
=== What the grade rests on
@@ -247,8 +252,9 @@ until 2026-11-17 the legs ran `lean` directly on single files, and §8.2 names
247252
`lean` under `lake`. The owner ruled that a direct run does not qualify. The
248253
legs are now a Lake package (`verification/proofs/lean/lakefile.toml`) that
249254
`scripts/check-recheck.sh` builds with `lake build`. The direct run at
250-
`e8deeaf` is `superseded` in the receipt, and the grade is `PWG-2i` until a
251-
run under `lake` on `main` is recorded.
255+
`e8deeaf` is `superseded` in the receipt. So is the Rocq run at `e8deeaf`,
256+
because the same change edited the script both legs run through. The grade is
257+
`PWG-3` until a run of both legs on `main` is recorded.
252258

253259
How the provers are installed is §6's concern, not §8.2's. None is installed
254260
through a Guix manifest or the repo's own container, so each is a recorded

‎scripts/proof-receipt.sh‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ agda|$u/42736066407|e16543866fa4fd31a94f3c7faa1fe0671b083a1b|$agda_checker|$(rec
105105
agda|$u/42076969251|23bc8c38160a25c37917bce69cf05d91899b07e5|$agda_checker|$agda_inv3|a56ccfa9187aa5a285210ef380af91eb1d857e9f6e32c1275b87498923092787|6 fixtures refused as expected; [check-agda] OK|superseded|before the import-cone postulate scan (hyperpolymath/januskey#170) and before SingleActiveLog.agda (hyperpolymath/januskey#171)|
106106
agda|$u/41687715055|fc188c44906faedfe91bfd414be3fda01ff4caf4|$agda_checker|$agda_inv3|a56ccfa9187aa5a285210ef380af91eb1d857e9f6e32c1275b87498923092787|6 fixtures refused as expected; [check-agda] OK|superseded|canonical flags and three modules; replaced by run 42076969251 at a later commit|
107107
agda|$u/40867211509|4afb710e86646658f667f10bd6274ee47416bfc7|$agda_checker|agda --safe --without-K (before --cubical-compatible joined the gate)|14b816f8950f28250ca82e4c77c7b2771dce30b405fa55c23ac7d0ad0ebd4591|4 fixtures refused as expected; [check-agda] OK|superseded|before --cubical-compatible and before Epistemic.agda; it never covered E-1m, so it is listed for the other claims only|
108-
rocq|$u/43945986467|$e|$rocq_checker|$(receipt_invocation rocq)|2f9a91ec283573822579d64feb5db2faf4d028e5597578c25b14b8ff865e5824|4 rocq legs check with no assumptions (Epistemic, Reversibility, Rollback, SingleActiveLog); the job refused its 8 fixtures (4 Rocq, 4 Lean) as expected; [check-recheck] OK|current||
108+
rocq|$u/43945986467|$e|$rocq_checker|$(receipt_invocation rocq)|2f9a91ec283573822579d64feb5db2faf4d028e5597578c25b14b8ff865e5824|4 rocq legs check with no assumptions (Epistemic, Reversibility, Rollback, SingleActiveLog); the job refused its 8 fixtures (4 Rocq, 4 Lean) as expected; [check-recheck] OK|superseded|its checker, scripts/check-recheck.sh, is changed by the change that moves the Lean legs under lake; a changed checker re-earns the receipt (docs/theory/PROOF-GRADES.adoc, reporting rules), although the Rocq steps of the script are byte-identical. To be replaced by the first run on main after that change|
109109
rocq|$u/43213340167|b5034884dbe945139d03b38fe80cfdf1106a77e1|$rocq_checker|$rocq_t1|2e86900da60f3e8cde1198f69fc6f7b0b9d73c5fe0ab2ae42f7b66ef1b7fd50d|$rocq_said_t1|superseded|T-1's leg only, under the gate before hyperpolymath/januskey#180; replaced by the run at #180's merge|
110110
rocq|$u/42646851111|0834ce73717a1faafa23fc1df55d85d54ee1e2b7|$rocq_checker|$rocq_t1|2e86900da60f3e8cde1198f69fc6f7b0b9d73c5fe0ab2ae42f7b66ef1b7fd50d|$rocq_said_t1|superseded|the first run on main (hyperpolymath/januskey#171); replaced by the run at the receipt's source commit|
111111
lean|$u/43945986467|$e|$lean_checker|lean -o <leg>.olean verification/proofs/lean/<leg>.lean for each of Epistemic, Reversibility, Rollback, SingleActiveLog (scripts/check-recheck.sh)|7146f3dce43d6160bb2d902d56984ac5fbccf8880b7336127b4cb7568da5db1f|4 lean legs check with no axioms (Epistemic, Reversibility, Rollback, SingleActiveLog); the job refused its 8 fixtures (4 Rocq, 4 Lean) as expected; [check-recheck] OK|superseded|ran lean directly, not under lake; PROOF-POLICY §8.2 names lean under lake, and the owner ruled on 2026-11-17 that a direct run does not qualify. To be replaced by the first run of the legs under lake|

0 commit comments

Comments
 (0)