You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit ced2f8d
Browse filesBrowse the repository at this point in the historyBrowse files
proofs: PWG-3 receipt for the active Agda (18 rows); check the test modules (#204)
## Summary
**1. A PWG-3 receipt for the active Agda.** This adds
`verification/receipts/absolute-zero-proofs_praxis.deed` (standards
PROOF-POLICY §8.5.1).
- It describes source commit `8a3162a` and the `agda` job of
[`proofs.yml` run
43612221557](https://github.com/hyperpolymath/absolute-zero/actions/runs/43612221557/job/132499519568)
on that commit.
- Toolchain: Agda 2.6.3 and agda-stdlib `v1.7.3` (`0817da6`).
- Each of the four roots is checked with `--safe --without-K
--cubical-compatible --double-check -W error -W
noUnsupportedIndexedMatch`.
**Import cone.** `agda --dependency-graph` gives 128 modules:
- the 4 roots (no other module of this repo);
- 115 agda-stdlib modules, recorded in an `(import :repository
"agda/agda-stdlib" …)` clause together with the library file;
- 9 modules supplied with Agda.
The home manifest also lists `absolute-zero.agda-lib` and
`scripts/provision-agda-stdlib.sh`, which holds the stdlib pin. A
comment-aware postulate scan of all 128 modules finds only the four
`Agda.Primitive` level postulates (`Level`, `lzero`, `lsuc`, `_⊔_`). The
receipt lists them as its trusted base.
**Rows.** PROOF-STATUS gains a "Ledger (PWG receipt rows)" table with 18
headline rows, all `PWG-3`:
| Rows | Covers |
|---|---|
| CNO-1..10 | interpreter/derivation agreement, determinism, the `IsCNO`
characterisation, purity, observational left inverse, composition under
`Closed`, `closedness-needed`, positive witnesses, `load-not-cno`,
`jump-self-diverges` |
| OND-2..5 | as in the OND roadmap |
| EB-1..4 | the EchoBridge results; EB-3 and EB-4 take funext as an
explicit argument, not a postulate |
OND-6 is `open` and `ungraded`.
- **Census:** 19 rows. 18 `PWG-3`, 0 `PWG-2i`, 0 `PWG-2ii`, 0 `PWG-1`, 1
`ungraded`.
- **Recheck legs:** no Rocq or Lean development states the pc-driven
model, so those legs are `unavailable`.
- **Doc updates:** the canonical PROOF-STATUS row, README and EXPLAINME
now say `PWG-3` instead of `ungraded`.
**2. The test modules are now checked.** `CNOTests.agda` and
`EchoBridgeCNOTests.agda` were not checked anywhere.
- The CI `agda` job and `proofs/verify-active-provers.sh` now check all
six modules.
- The local gate now uses the CI invocation instead of `--safe
--without-K` alone.
- `gate-selftest.sh` follows: its stub and the expected calls use the
new flags and module list.
**3. A table fix on main.** A bare `|` in the canonical PROOF-STATUS
table (`sat|unsat`) made `scripts/check-adoc-tables.sh` fail on `main`.
It is now escaped.
## Checks run
| Check | Result |
|---|---|
| standards `deed_lint.js --proof-receipt-json` on the receipt | accepts
it; every claim derives the recorded `:pwg` |
| standards `scripts/check-proof-receipt.sh --import agda/agda-stdlib=…`
| every check holds: source on `main`, both manifests hold at their
commits for all 18 claims |
| Agda 2.6.3 + stdlib v1.7.3, the CI invocation plus
`--ignore-interfaces` on all 6 modules | each exits 0 |
| `bash proofs/tests/gate-selftest.sh` | `GATE-SELFTEST OK: 31/31` |
| `proofs/verify-active-provers.sh` | all six Agda modules pass; z3 and
idris2 are not installed here, so the gate reports them missing |
| `scripts/check-adoc-tables.sh` | OK on PROOF-STATUS and README |
| `scripts/check-proof-patterns.sh`, `tests/check-proof-patterns.sh` |
pass |
`EXPLAINME.adoc:134` still fails the table check, as it already does on
`main`. That line is not touched here.
## Not done
- **Test modules and the receipt:** they are not roots of this receipt,
because its run predates their CI wiring.
- **AGPL header:** the `CNO.agda` header still says `License: AGPL-3.0 /
Palimpsest 0.5`. Licence edits are owner-only.
---
_Generated by [Claude
Code](https://claude.ai/code/session_01MF5GeeBBDF6sUzr6pZTjWV)_
<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
<!-- coderabbit-ai-generated:v1 -->
## Summary by CodeRabbit
* **Documentation**
* Updated proof-status information to show 18 headline Agda proofs as
verified at the PWG-3 level, with a recorded receipt. OND-6 remains open
and ungraded; Z3 checks remain documented as tested-only.
* **Tests**
* Automated checks now include two additional Agda test modules.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->
---------
Co-authored-by: Claude <noreply@anthropic.com>
Copy file name to clipboardExpand all lines: EXPLAINME.adoc
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -9,7 +9,7 @@ This file backs every factual claim in link:README.adoc[README.adoc] with code p
9
9
10
10
[IMPORTANT]
11
11
====
12
-
*Archive notice (2026-10-10, reconciled 2026-11-01).* The active proof stack is Agda (`proofs/agda/`, `--safe --without-K`, zero postulates) + Z3 as a bounded-check solver + the Idris 2 ABI. Coq, Lean 4, Isabelle/HOL and Mizar now live under `archive/proofs/`; paths below of the form `proofs/coq/…` / `proofs/lean4/…` refer to the *archived* trees (`archive/proofs/coq/…` etc.), and counts such as "115 Qed / 61 Axioms" are *historical* figures of those archived trees. The canonical active-vs-archived proof-status table is link:PROOF-STATUS.adoc[PROOF-STATUS.adoc], which also records Proof Witness Grades (standards PROOF-POLICY §8) and the closed ledger vocabulary of `hyperpolymath/standards` (`proven` / `proven-with-postulates` / `tested-only` / `argued` / `open`): the active Agda proofs are `proven` and `ungraded` (no PWG-3 receipt recorded yet), the Z3 bounded checks are `tested-only`, and OND-6 is `open`. Its 2026-11-09 design audit records that the active Agda `IsCNO` was degenerate (termination and reversibility held by construction) and how it was restated over a pc-driven machine the same day.
12
+
*Archive notice (2026-10-10, reconciled 2026-11-01).* The active proof stack is Agda (`proofs/agda/`, `--safe --without-K`, zero postulates) + Z3 as a bounded-check solver + the Idris 2 ABI. Coq, Lean 4, Isabelle/HOL and Mizar now live under `archive/proofs/`; paths below of the form `proofs/coq/…` / `proofs/lean4/…` refer to the *archived* trees (`archive/proofs/coq/…` etc.), and counts such as "115 Qed / 61 Axioms" are *historical* figures of those archived trees. The canonical active-vs-archived proof-status table is link:PROOF-STATUS.adoc[PROOF-STATUS.adoc], which also records Proof Witness Grades (standards PROOF-POLICY §8) and the closed ledger vocabulary of `hyperpolymath/standards` (`proven` / `proven-with-postulates` / `tested-only` / `argued` / `open`): 18 headline Agda rows are `proven` and `PWG-3` (Agda checked, no Rocq or Lean leg; receipt `verification/receipts/absolute-zero-proofs_praxis.deed`), the Z3 bounded checks are `tested-only`, and OND-6 is `open`. Its 2026-11-09 design audit records that the active Agda `IsCNO` was degenerate (termination and reversibility held by construction) and how it was restated over a pc-driven machine the same day.
| ACTIVE (CI `agda` job; `proofs/verify-active-provers.sh`)
66
-
| Status: `proven` for each stated Agda term — zero postulates, every file `{-# OPTIONS --safe --without-K #-}`; EchoBridge takes funext as an *explicit hypothesis*, not a global postulate. Grade: `ungraded` (no PWG-3 receipt recorded; see the 2026-11-09 audit below). *What the CNO terms state is narrower than the pillar description*: see "Design audit (2026-11-09)" below before citing any CNO result
67
-
| Domain formalisation of both pillars; discharges OND-1..5; contains no OND-6. The canonical profile `agda --safe --without-K --cubical-compatible` (standards PROOF-POLICY §2.1) passes locally (2026-11-09) and is the CI invocation from 2026-11-09. Open obligation: a PWG-3 receipt for that profile
66
+
| Status: `proven` for each stated Agda term — zero postulates, every file `{-# OPTIONS --safe --without-K #-}`; EchoBridge takes funext as an *explicit hypothesis*, not a global postulate. Grade: `PWG-3` for the 18 headline rows of "Ledger (PWG receipt rows)" below (receipt `verification/receipts/absolute-zero-proofs_praxis.deed`, source `8a3162a`); OND-6 is `ungraded`. *What the CNO terms state is narrower than the pillar description*: see "Design audit (2026-11-09)" below before citing any CNO result
67
+
| Domain formalisation of both pillars; discharges OND-1..5; contains no OND-6. The canonical profile `agda --safe --without-K --cubical-compatible` (standards PROOF-POLICY §2.1) passes locally (2026-11-09) and is the CI invocation from 2026-11-09. Its PWG-3 receipt is recorded (2026-11-17); no Rocq or Lean leg exists
68
68
69
69
| `proofs/z3/` — `ond/OND_checks.smt2` via `proofs/z3/verify.sh`
70
70
| ACTIVE as bounded-check solver (CI `z3` job)
71
-
| `tested-only` — bounded SMT checks, no proof grade; every `(check-sat)` carries a `; expect sat|unsat` annotation. Receipt reproduced in this sandbox 2026-11-01 (`z3` 4.16.0, `Z3-CHECK OK`, sat/unsat/sat). The 2026-11-09 OND-3 rewrite expects 5 verdicts, sat/unsat/sat/sat/sat, observed with `z3` 4.8.12 — see receipts below
71
+
| `tested-only` — bounded SMT checks, no proof grade; every `(check-sat)` carries a `; expect sat\|unsat` annotation. Receipt reproduced in this sandbox 2026-11-01 (`z3` 4.16.0, `Z3-CHECK OK`, sat/unsat/sat). The 2026-11-09 OND-3 rewrite expects 5 verdicts, sat/unsat/sat/sat/sat, observed with `z3` 4.8.12 — see receipts below
72
72
| Bounds: finite/bounded programs under a finite declared `O`; not a general proof
73
73
74
74
| `src/abi/` + `absolute-zero-abi.ipkg` (Idris 2)
@@ -107,6 +107,138 @@ dropped, and axiom dependence is tracked per row.
107
107
| Declared observation models `+O+` and residue lists; every OND certificate is relative to its declared `+O+`
| The fuel interpreter `run` and the big-step relation `_⊢_⇓_` agree: a fuel run that returns `just s'` is a derivation, and every derivation is a fuel run for some fuel.
140
+
| `PWG-3`
141
+
142
+
| CNO-2
143
+
| `⇓-det`
144
+
| The machine is deterministic: two derivations from one program and state stop at the same state.
| `IsCNO p` holds exactly when, from every state started at pc 0, the machine stops at a state `obs-eq` to the start (memory, registers and I/O; not the pc).
150
+
| `PWG-3`
151
+
152
+
| CNO-4
153
+
| `cno-pure-thm`
154
+
| A run of a CNO changes neither I/O nor memory.
155
+
| `PWG-3`
156
+
157
+
| CNO-5
158
+
| `cno-left-inverse`
159
+
| Running one CNO after another restores memory, registers and I/O. Observational only; nothing thermodynamic.
160
+
| `PWG-3`
161
+
162
+
| CNO-6
163
+
| `cno-composition`
164
+
| If `p₁` is closed (every jump targets one of its instructions or its end) and `p₁`, `p₂` are CNOs, `seq-comp p₁ p₂` is a CNO.
165
+
| `PWG-3`
166
+
167
+
| CNO-7
168
+
| `closedness-needed`
169
+
| Counterexample: two CNOs, the first not closed, whose composite is not a CNO. The closedness hypothesis of CNO-6 cannot be dropped.
| `Nop`, `Jump 1` and `Nop ; Nop` are CNOs, so the class is not Halt-only. `absolute-zero` is the empty program; EB-2 uses its certificate.
175
+
| `PWG-3`
176
+
177
+
| CNO-9
178
+
| `load-not-cno`
179
+
| A `Load` that changes a register is not a CNO, so the class is not everything.
180
+
| `PWG-3`
181
+
182
+
| CNO-10
183
+
| `jump-self-diverges`
184
+
| `Jump 0` never stops from pc 0, so termination is a real condition.
185
+
| `PWG-3`
186
+
187
+
| OND-2
188
+
| `OND2-skip-is-OND` (`OND.agda`)
189
+
| `skip` is OND under every observation model.
190
+
| `PWG-3`
191
+
192
+
| OND-3
193
+
| `OND3-cno-ond-independent`
194
+
| Nullity and OND are independent: a null operation that leaks through timing, and a non-null operation that is OND under `O-all`. Uses `OND.agda`'s local `is-null`, not `CNO.IsCNO`.
195
+
| `PWG-3`
196
+
197
+
| OND-4
198
+
| `OND4-ct-select-is-OND-all`
199
+
| `ct-select`, which copies the public cell to the output in time 1, is OND under `O-all`. The Agda instance is this one operation; the residue register `proofs/residue/ct_select.residue` cites the archived Coq theorem, not this term.
200
+
| `PWG-3`
201
+
202
+
| OND-5
203
+
| `OND5-non-composition`
204
+
| Two operations OND under `O-out` whose sequential composite is not. Stated under `O-out`; the archived Coq and Lean state it under `O_all`.
205
+
| `PWG-3`
206
+
207
+
| EB-1
208
+
| `echo-from-cno` (`EchoBridgeScaffold.agda`)
209
+
| For any `CNOModel`, a CNO operation gives an echo of every state.
0 commit comments