Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions .github/workflows/proofs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -276,8 +276,9 @@ jobs:
# runs the §8.5.3 git checks, checks that each current receipt still describes
# the tree, and runs the pinned reader with a negative control. It needs
# network access to raw.githubusercontent.com (the pinned standards files)
# and github.com (the pinned tropical-types commit). Recording a new run is a
# manual step (--run-row, then --write); this job only checks.
# and github.com (the pinned tropical-types commit). Recording a new run is
# started by hand (--run-row, then --record into the ledger file
# verification/receipts/runs.ledger); this job only checks.
receipt:
name: Proof receipt, derived grades, git checks
runs-on: ubuntu-latest
Expand Down
19 changes: 19 additions & 0 deletions CHANGELOG.adoc
Original file line number Diff line number Diff line change
@@ -1,5 +1,24 @@
== Changelog

Check warning on line 1 in CHANGELOG.adoc

View workflow job for this annotation

GitHub Actions / Hypatia neurosymbolic scan

[hypatia] doc references `src/interface/` but no such directory exists in the tree (likely surviving a directory rename)

== 2026-11-30: Proof receipt at ad2e624; run ledger as a data file; 47 rows are PWG-2ii

* The run ledger moves out of `scripts/proof-receipt.sh` into the data file
`verification/receipts/runs.ledger`. The three rows at `201e05b` move
verbatim, with the state and reason main recorded for them. The file is
append-only: `--check` refuses a ledger that changed or dropped a row main
holds.
* Standards is pinned at `b598ae8` (standards main). That pin contains
derived receipt states and the ledger file (standards#1675). The earlier
pin `f4e8304` was a standards branch commit. A receipt that is no longer
current is now derived `stale` or `superseded`; no row is edited by hand.
* The receipt records `proofs.yml` run `46453453724` on main at `ad2e624`,
the first run that contains D-1 to D-8: Agda job `141969904035`, Rocq
`141969903594`, Lean `141969903745`. Each row was printed by `--run-row`
and appended by `--record`. The checker and reported text are copied from
the job logs.
* Census: of 48 theory rows, 47 are PWG-2ii and 1 (M-2) is ungraded. D-1 to
D-8 have their first grade. No row is PWG-1 (PN-7).

== 2026-11-19: Signed drift for HWM (D-1 to D-8); every receipt superseded (48 rows ungraded for now)

* `src/ResourceAlgebra/Instances/SignedHWM.agda` adds `SHWM`: HWM with an
Expand Down
20 changes: 13 additions & 7 deletions docs/status/PROOF-NEEDS.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -98,13 +98,13 @@ and Lean jobs run in base images pinned by digest (`debian:trixie-slim`,
install their checker at run time (`agda-bin 2.6.4.3-1+b2` by apt, the
Lean 4.35.0 archive against a SHA256), which the ruling below does not
count as isolated. Until this closes no row can be PWG-1: the receipt at
`201e05b` names an image for the Rocq leg only. *OPEN, blocked* on the
`prover-images` repository,
which does not exist yet. See "PN-7 ruling and route" below.
`ad2e624` names an image for the Rocq leg only. *OPEN, blocked* on
published prover images: the `prover-images` repository exists but
publishes none yet. See "PN-7 ruling and route" below.

Note: the receipt at `47de4a8` recorded PWG-1 for 27 rows; it was graded
before standards#1625 (2026-11-16) made `:image` necessary for PWG-1. The
current receipt, at `201e05b`, and the Census in `PROOF-STATUS.adoc` are
current receipt, at `ad2e624`, and the Census in `PROOF-STATUS.adoc` are
derived by the current reader.
| `.github/workflows/proofs.yml` (`proofs`, `lean-leg`);
`verification/receipts/`
Expand All @@ -121,9 +121,15 @@ Record now, build later.

Draft handoff (untested, not built): `docs/handoff/prover-images/README.adoc`.

*Blocker.* The `prover-images` repository does not exist; the owner will
create it. Nothing has been built or published. No row can reach PWG-1
until it is.
*Blocker.* No prover image is published, so no digest exists to pin. The
repository `hyperpolymath/prover-images` was created on 2026-11-18. Its
main branch (`9fca86e`, as of 2026-11-30) holds only the template's initial
commit: no image definitions, no build workflow and no published package.
Images for Agda 2.6.4.3 and Lean 4.35.0 are drafted in an open pull request,
hyperpolymath/prover-images#1, not built or published. A Rocq image is only
a plan, and the Rocq leg already uses the third-party
`rocq/rocq-prover:9.3.0` image pinned by digest. No row can reach PWG-1
until the Agda and Lean images are published.

*Why not an upstream image.*

Expand Down
122 changes: 57 additions & 65 deletions docs/status/PROOF-STATUS.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -16,32 +16,20 @@ asserted. The values, weakest first, are `ungraded`, `3`, `2i`, `2ii` and

== Census

Out of 48 theory rows: PWG-1: 0 · PWG-2ii: 0 · PWG-2i: 0 · PWG-3: 0 ·
ungraded: 48. No leg has a current receipt, so nothing is graded (§8.4).
The proof receipt
Out of 48 theory rows: PWG-1: 0 · PWG-2ii: 47 · PWG-2i: 0 · PWG-3: 0 ·
ungraded: 1 (M-2). The proof receipt
(`verification/receipts/resource-algebra-proofs_praxis.deed`) names source
commit `7ab98404fc2f6540f239f8fbd09222b659ba8d4f`, the commit on main that
the change below was made on. The
commit `ad2e624df0153e1ef63dcb84d7213d6bfb6a2ab2`, the head of main on
2026-11-30, whose `proofs.yml` run `46453453724` passed all three legs. The
standards reader (`deed_lint.js --proof-receipt-json`), as pinned by
`scripts/proof-receipt.sh` (standards `f4e83044`), derives every grade
from the legs and receipts, and refuses a recorded grade that differs (§8.4).

Why no receipt is current. Rows D-1 to D-8 (signed drift, 2026-11-19)
changed the inputs of all three legs: the Agda cone gained
`Drift.agda` and `Instances/SignedHWM.agda` and three modules gained
sections, and the Rocq and Lean files gained their legs. The three runs at
`201e05b` (resource-algebra#58) no longer describe the tree, so they are
`superseded`. The first `proofs.yml` run on main that contains this change
is recorded next. The 39 rows that were PWG-2ii then get the grade that run
supports, and the eight new rows get their first grade. The proofs of those
39 rows did not change.

The eight new rows were checked before the pull request in this way, which
is not a receipt: Agda 2.6.3 (`scripts/check-agda.sh`, 23 expected
rejections), Lean 4.35.0 from the pinned release archive
(`scripts/check-lean-leg.sh`, 147 of 147 printed theorems axiom-free) and
Coq 8.18.0 on a copy with `From Stdlib` read as `From Coq` (137 of 137
printed theorems closed). The pinned Agda 2.6.4.3 and Rocq 9.3.0 run in CI.
`scripts/proof-receipt.sh` (standards `b598ae88`), derives every grade from
the legs and receipts, and refuses a recorded grade that differs (§8.4).

Rows D-1 to D-8 (signed drift, 2026-11-19) now have their first grade,
PWG-2ii. The 39 rows that were PWG-2ii at `201e05b` are PWG-2ii again. The
three runs at `201e05b` stay in the ledger as `superseded`: D-1 to D-8
changed the inputs of every leg, so they no longer describe the tree. The
proofs of those 39 rows did not change.

No row is PWG-1. Since standards#1625 (2026-11-17, owner ruling
2026-11-16), PWG-1 needs every counted witness to name the image its checker
Expand Down Expand Up @@ -130,8 +118,8 @@ files and by the same routes as every other row, their statements are
reconciled (see Statement correspondence), and the receipt below records a
run of all three legs on a commit that contains them.
P-1 to P-4 and K-1 to K-4 are re-proved in both legs in the same way.
D-1 to D-8 are re-proved in both legs in the same way. No receipt records a
run of them yet (see Census).
D-1 to D-8 are re-proved in both legs in the same way, and the receipt
below records a run of all three legs on a commit that contains them.

[cols="1,1,1,1,2",options="header"]
|===
Expand All @@ -141,62 +129,57 @@ run of them yet (see Census).
| source
| `PROVEN`
| `AGDA-VERIFIED`
| `superseded`: CI run `44435465068`, job `135263084676`. No current
receipt yet
| `current`: CI run `46453453724`, job `141969904035`

| Rocq
| `re-proved` (transport `unavailable`; see below)
| `PROVEN`: no axiom (`Print Assumptions` reports every theorem closed
under the global context), and `rocqchk` rechecks the compiled file
| `RECONCILED`: statements compared and residual differences recorded
below
| `superseded`: CI run `44435465068`, job `135263084711`. No current
receipt yet
| `current`: CI run `46453453724`, job `141969903594`

| Lean
| `re-proved`, Lean core only, no Mathlib
| `PROVEN`: no axiom (`#print axioms` reports none for every theorem)
| `RECONCILED`: statements compared and residual differences recorded
below
| `superseded`: CI run `44435465068`, job `135263084426`. No current
receipt yet
| `current`: CI run `46453453724`, job `141969903745`
|===

=== Receipts

All three legs passed in one `proofs.yml` run,
https://github.com/hyperpolymath/resource-algebra/actions/runs/44435465068[`44435465068`],
on source commit `201e05bf3ab7acaa4a7a4a2d24f87c561d4e7f23` (2026-11-19), the
merge of resource-algebra#58. The same run passed the `Proofs verdict` job
and the coverage-exemption check. The machine-readable record is
https://github.com/hyperpolymath/resource-algebra/actions/runs/46453453724[`46453453724`],
on source commit `ad2e624df0153e1ef63dcb84d7213d6bfb6a2ab2` (2026-11-30), the
head of main. It is the first run on main that contains D-1 to D-8. The
same run passed the `Proofs verdict` job and the coverage-exemption check.
The machine-readable record is
`verification/receipts/resource-algebra-proofs_praxis.deed` (§8.5.1).
Each job's run summary holds its receipt: the checker and its asserted
version, the invocation, the input digest, the result and the axioms.

All three rows below are `superseded` by the change that added D-1 to D-8
(see Census).

[cols="1,2,3",options="header"]
|===
| Leg | Checker | Input SHA256 and axioms

| Agda
| Agda 2.6.4.3 (Debian `agda-bin 2.6.4.3-1+b2`)
| `2332490d8a1d57df…3ee08cb9` over the import cone of `src/ResourceAlgebra/All.agda` (16 files, listed in the deed's `(inputs-manifest …)`); `--safe`, the postulate scan of
`src/`, and the trusted base: `Level`, `lzero`, `lsuc` and `_⊔_` in
| `4f367656f62659a5…a3f8c80f` over the import cone of `src/ResourceAlgebra/All.agda` (18 files, listed in the deed's `(inputs-manifest …)`); `--safe`, the postulate scan of
`src/`, all 23 expected rejections, and the trusted base: `Level`, `lzero`, `lsuc` and `_⊔_` in
`Agda.Primitive`, each bound by its `BUILTIN` pragma

| Rocq
| Rocq 9.3.0, stdlib 9.2.0, then `rocqchk`
| `14a19b0646438269…36666e8e` over `ResourceAlgebra.v` (file SHA256
`44231e873c1e82b2…7133b46f`); every printed theorem closed under the
| `3b0f86631c75dfa6…90a09322` over `ResourceAlgebra.v` (file SHA256
`d4fffab8da373533…6ae8451e`); all 137 printed theorems closed under the
global context. Image `rocq/rocq-prover:9.3.0@sha256:97a68f23…`

| Lean
| Lean 4.35.0 with Lake 5.0.0, core only, under `lake`
| `f977484c50484262…0a6cff74` over `ResourceAlgebra.lean` (file SHA256 `87476318c1eafe51…a3045f19`), its `lakefile.toml` and `lake-manifest.json`, `lean-toolchain`, `scripts/check-lean-leg.sh`, `scripts/check-lean-bridge.sh` (file SHA256 `6b4dd77974515696…e37de14b`, which holds the tropical-types pin) and the
M-2 bridge with its Lake package files, with the import of tropical-types at `f2e465c` (import digest `c176b35aaec8d21b…3095e01`); no printed
theorem depends on an axiom, in the leg or in the bridge
| `c4495929c93cfc38…b687c9f9` over `ResourceAlgebra.lean` (file SHA256 `a20d1335009cd5ad…9ba83264`), its `lakefile.toml` and `lake-manifest.json`, `lean-toolchain`, `scripts/check-lean-leg.sh`, `scripts/check-lean-bridge.sh` (file SHA256 `6b4dd77974515696…e37de14b`, which holds the tropical-types pin) and the
M-2 bridge with its Lake package files, with the import of tropical-types at `f2e465c` (import digest `c176b35aaec8d21b…3095e01`); none of the 147 printed
theorems of the leg, nor the 6 of the bridge, depends on an axiom
|===

The input digests above are the `:inputs-sha256` values of the receipt: the
Expand All @@ -206,31 +189,40 @@ reference script (standards `scripts/proof-inputs-sha256.sh`, §8.5.1).
The grades do not carry forward (§8.4). A later commit that changes `src/`,
a recheck leg, the gate or the checker pins needs a new receipt for the
new commit, and until then its rows fall back to the grade its receipts
support. The receipt deed is no longer written by hand. `scripts/proof-receipt.sh
support. The receipt deed is not written by hand. `scripts/proof-receipt.sh
--write` generates it with the estate's shared generator (standards
`scripts/proof-receipt.sh`, pinned at `f4e83044` on the standards branch
`claude/receipt-open-claims`, not yet on standards main; repin once it
lands). `scripts/proof-receipt.sh --check` regenerates it, refuses any
difference, runs the §8.5.3 git checks, checks that each current receipt
still describes the tree, and runs the pinned reader with a negative
control. The `receipt` job of `proofs.yml` runs `--check` on every commit.
Recording a new run is still a manual step (`--run-row`, then `--write`).

What this asks of a change. A pull request that changes a leg's inputs
(`src/`, a recheck file, the bridge or the tropical-types pin) makes the
`receipt` job fail, because the current receipt of that leg no longer
describes the tree. The change then marks that leg's row `superseded` in
the ledger of `scripts/proof-receipt.sh`, with its reason, and regenerates
the receipt: the rows fall to the grade the remaining receipts support,
which is what §8.4 says. After the merge, a follow-up records the main run
of the new commit and the grades return.
`scripts/proof-receipt.sh`, pinned at `b598ae88`, standards main).
`scripts/proof-receipt.sh --check` regenerates it, refuses any difference,
runs the §8.5.3 git checks, refuses a run ledger that changed or dropped a
row main holds, and runs the pinned reader with a negative control. The
`receipt` job of `proofs.yml` runs `--check` on every commit.

The run ledger is the data file `verification/receipts/runs.ledger`, one
row per run of a leg. It is append-only. A run is recorded by hand:
`--run-row` prints its row from the job's log, and `--record` checks the
row against the tree, writes the receipt and appends the row.

What this asks of a change. No row is edited when a leg's inputs change.
The generator derives the state: a receipt whose leg's inputs no longer
match the tree is `stale`, and an older run of a leg that has a newer one
recorded is `superseded`. The rows then fall to the grade the remaining
receipts support, which is what §8.4 says. A pull request that changes a
leg's inputs regenerates the receipt with `--write`. After the merge, a
follow-up records the main run of the new commit with `--record`, and the
grades return.

The Lean input set includes `scripts/check-lean-bridge.sh`, which holds the
tropical-types pin. The run summaries that hold the per-leg digests are
kept by GitHub for a limited time.

Earlier receipts, all `superseded`:

* Run `44435465068` on source commit
`201e05bf3ab7acaa4a7a4a2d24f87c561d4e7f23` (2026-11-19), the merge of
resource-algebra#58. It derived PWG-2ii for 39 rows. It predates D-1 to D-8.
Its three rows are the first rows of the ledger file, with the state and
reason main recorded for them.

* Run `44209774341` on source commit
`15fa113c7427e2de009eade9148295d08c046b33` (2026-11-18), the merge of
resource-algebra#45. It derived PWG-2ii for 31 rows. It predates P-1 to P-4
Expand Down Expand Up @@ -499,7 +491,7 @@ Mathlib
| `PROVEN`: no axiom (`#print axioms` reports none for any of the six
printed theorems)
| `LEAN-CHECKED`, not `RECONCILED`: there is no Agda statement to reconcile with
| CI run `44435465068`, job `135263084426`, with
| CI run `46453453724`, job `141969903745`, with
`(import :repository "hyperpolymath/tropical-types" :commit "f2e465c…")`
(§8.5.1)
|===
Expand Down Expand Up @@ -1097,7 +1089,7 @@ choreographic-types.
* CI that emits the receipt of each main run by itself. The check half
exists (`scripts/proof-receipt.sh --check` in the `receipt` job of
`proofs.yml`). Recording a new run is still manual: `--run-row`, then
`--write` (see Receipts).
`--record` (see Receipts).

== Rust verifiers (not run)

Expand Down
9 changes: 5 additions & 4 deletions docs/status/ROADMAP.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -21,14 +21,15 @@ Initial development phase.
== Blockers and Next Actions

=== PN-7: image-pinned receipts for the Agda and Lean legs (blocked)
* [ ] Blocked on the owner creating the shared `prover-images` repository
(provisional name; check it against `gv-clade-index` first).
* [x] The shared `hyperpolymath/prover-images` repository exists (created
2026-11-18). Its main branch holds only the template's initial commit.
* [ ] Publish digest-pinned Agda and Lean images to GHCR with the checker
baked in (owner ruling 2026-11-18; nothing built yet).
baked in (owner ruling 2026-11-18). Images are drafted in
hyperpolymath/prover-images#1; nothing is built in CI or published yet.
* [ ] Pin the digests in `.github/workflows/proofs.yml`, print each image
digest in the job summaries, and record a new receipt from a run on the
merge commit.
* Until then the 39 graded rows stay PWG-2ii. Detail and rejected alternatives:
* Until then the 47 graded rows stay PWG-2ii. Detail and rejected alternatives:
`docs/status/PROOF-NEEDS.adoc`, PN-7.

== Future Directions
Expand Down
Loading
Loading