Repository navigation
Questions: Rocq and Lean recheck legs, ledger rows Q-1 to Q-4 - #25
Conversation
Re-prove the Questions instance and its three two-question facts in the Rocq and Lean legs. Record rows Q-1 to Q-4 and their statement correspondence in PROOF-STATUS, list the instance in the README, the provenance ledger and the changelog, and drop the sketch note from the module header. Co-Authored-By: Claude Fable 5.2 <[email protected]> Claude-Session: https://claude.ai/code/session_0136P7ZngnAq35mYcMvxDyS4
|
Caution Review failedThe pull request is closed. Walkthrough
Merge Risk:
|
…opyright line The deed :purpose lists Questions as the fifth instance and CLAUDE.md is regenerated from it with just claude-md. Questions.agda gets the SPDX-FileCopyrightText line the other modules carry, at the owner's direction. Co-Authored-By: Claude Fable 5.2 <[email protected]> Claude-Session: https://claude.ai/code/session_0136P7ZngnAq35mYcMvxDyS4
|
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
## Summary Follow-up to #25, part 1 of 2. Classifies morphisms out of the Questions instance and gives it a unit test and an expected-rejection control. Part 2 records receipts and grades; it must follow the merge of this PR, because this PR changes the inputs of all three proof legs. ## Changes - `src/ResourceAlgebra/Morphism.agda`: - F-8: `one-question-hom`, `one-question-needs`, `one-question-unique`. Out of one question there is exactly one strict morphism into an algebra `B`, and it exists exactly when `B` has 𝟘 ⊗ 𝟘 ≡ 𝟘. - F-9: `first-question`, `later-questions`. Each question can be read alone. - F-10: `count-not-⊕`. The number of lost questions does not preserve ⊕. - `verification/proofs/coq/ResourceAlgebra.v` and `verification/proofs/lean4/ResourceAlgebra.lean`: the same theorems, with 6 new assumption/axiom print lines in each. - `tests/unit/QuestionsTest.agda`, imported by `AllTests.agda`. - `tests/reject/QuestionsMeetIsABranch.agda`: the ninth expected rejection, the control for Q-4. - `docs/status/PROOF-STATUS.adoc`: rows F-8 to F-10, correspondence, nine rejections, the open list. Census: 29 rows, all ungraded. - `README.adoc`, `docs/pre-registration.adoc`, `CHANGELOG.adoc`. Which morphisms to classify was a design choice made in this PR, not specified by the owner. Not classified: morphisms out of `Questions n` for n ≥ 2 beyond the projections, and every morphism into Questions. ## RSR Quality Checklist ### Required - [x] Tests pass: see Testing. `just test` and `just quality` were not run as recipes. - [ ] Code is formatted (not run) - [ ] Linter is clean (not run) - [x] No banned language patterns - [x] No `unsafe` blocks (none) - [x] No banned functions (no `Admitted`, no `sorry`, no `postulate`) - [x] SPDX license headers present on the new source files, copied from the sibling files - [x] No secrets, credentials, or `.env` files included ### As Applicable - [x] Documentation updated - [x] `CHANGELOG` updated ## Testing - `bash scripts/check-agda.sh`: pass, with all 9 expected rejections (Agda 2.6.3 locally; CI pins 2.6.4.3). - `bash tests/unit/resource_algebra_test.sh`: pass. - `bash scripts/check-proofs.sh lean4` with Lean 4.35.0: pass. 56 of 56 printed theorems depend on no axiom. - Rocq: compiled with Coq 8.18.0 in a scratch copy with `From Stdlib` replaced by `From Coq`; 48 of 48 printed theorems are closed. Rocq 9.3.0 and `rocqchk` run only in CI. - `check-adoc-renders`, `check-invisible-characters`, `check-no-placeholders`, `check-escape-hatches`, `check-no-md-in-docs`, `check-root-shape`, `just validate-claude-md`: pass. The commit is not signed. The session has no signing key. --- _Generated by [Claude Code](https://claude.ai/code/session_0136P7ZngnAq35mYcMvxDyS4)_ Co-authored-by: Claude <[email protected]>



Summary
Follow-up to #24. Adds the Rocq and Lean recheck legs for
ResourceAlgebra.Instances.Questionsand records the instance in the ledgers.Changes
verification/proofs/coq/ResourceAlgebra.v:Questions,Questions_dioid,Questions_ordered,Questions_annihilating, and the 3 two-question facts, with 5 newPrint Assumptionslines.verification/proofs/lean4/ResourceAlgebra.lean: the same theorems, with 6 new#print axiomslines.docs/status/PROOF-STATUS.adoc: rows Q-1 to Q-4, their statement correspondence, a note on eta for the carrier, and the limits of⊕in the open list. The census is 26 rows, all ungraded.README.adoc,docs/pre-registration.adoc,CHANGELOG.adoc: the instance is listed.src/ResourceAlgebra/Instances/Questions.agda: the header points to the ledger rows and no longer says "SKETCH, not yet in any ledger". No proof changed. It also gets theSPDX-FileCopyrightTextline of the other modules, at the owner's direction.resource-algebra_chora.deed::purposenames Questions as the fifth instance.CLAUDE.mdis regenerated from it withjust claude-md(just 1.56.0 and nickel 1.17.0, both checksum-checked), andjust validate-claude-mdpasses.RSR Quality Checklist
Required
justis not installed in the session, so the scripts were run directly.unsafeblocks (none)Admitted, nosorry, nopostulate).envfiles includedAs Applicable
(ecosystem):purposeupdated,CLAUDE.mdregeneratedCHANGELOGupdatedTesting
bash scripts/check-agda.sh: pass (Agda 2.6.3 locally; CI pins 2.6.4.3).bash scripts/check-proofs.sh lean4with Lean 4.35.0 (the pinned archive, SHA256 checked): pass. 50 of 50 printed theorems depend on no axiom.From Stdlibis replaced byFrom Coqin a scratch copy, and 42 of 42 printed theorems are closed under the global context.rocqchkwas not run. The CI Rocq leg is the authority.check-adoc-renders,check-invisible-characters,check-no-placeholders,check-escape-hatches,check-no-md-in-docs,check-root-shape: pass.The commit is not signed. The session has no signing key.
Generated by Claude Code
Summary by CodeRabbit