Repository navigation
Add Questions instance sketch (a which-grade) - #24
Conversation
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:
|
|
Codex Review Summary: ❌ FailedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
## Summary Follow-up to #24. Adds the Rocq and Lean recheck legs for `ResourceAlgebra.Instances.Questions` and 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 new `Print Assumptions` lines. - `verification/proofs/lean4/ResourceAlgebra.lean`: the same theorems, with 6 new `#print axioms` lines. - `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 the `SPDX-FileCopyrightText` line of the other modules, at the owner's direction. - `resource-algebra_chora.deed`: `:purpose` names Questions as the fifth instance. `CLAUDE.md` is regenerated from it with `just claude-md` (just 1.56.0 and nickel 1.17.0, both checksum-checked), and `just validate-claude-md` passes. ## RSR Quality Checklist ### Required - [x] Tests pass: see Testing. `just` is not installed in the session, so the scripts were run directly. - [ ] 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 and changed source files - [x] No secrets, credentials, or `.env` files included ### As Applicable - [x] Repo deed `(ecosystem)` `:purpose` updated, `CLAUDE.md` regenerated - [x] Documentation updated - [x] `CHANGELOG` updated ## Testing - `bash scripts/check-agda.sh`: pass (Agda 2.6.3 locally; CI pins 2.6.4.3). - `bash scripts/check-proofs.sh lean4` with Lean 4.35.0 (the pinned archive, SHA256 checked): pass. 50 of 50 printed theorems depend on no axiom. - Rocq: Rocq 9.3.0 was not available locally. The file compiles with Coq 8.18.0 after `From Stdlib` is replaced by `From Coq` in a scratch copy, and 42 of 42 printed theorems are closed under the global context. `rocqchk` was 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](https://claude.ai/code/session_0136P7ZngnAq35mYcMvxDyS4)_ --------- Co-authored-by: Claude <[email protected]>



Summary
Adds
ResourceAlgebra.Instances.Questions, a sketch of a "which" grade: a grade is the set of downstream questions that a step makes unanswerable, as n booleans._⊗_is union and_⊕_is intersection. The module header states 2 limits of_⊕_as intersection, andno-branch-achieves-meetshows the first limit.The module header says "SKETCH, not yet in any ledger". This PR puts the module in the import cone only.
Changes
src/ResourceAlgebra/Instances/Questions.agda(instance,IsDioid,IsOrdered,IsAnnihilating, and a 2-question example).src/ResourceAlgebra/All.agda: 1 import line for the new module.RSR Quality Checklist
Required
bash scripts/check-agda.shonly (see Testing).just testandjust qualitywere not run.unsafeblocks without// SAFETY:comments (none)--safe, and the postulate scan passes)SPDX-License-Identifier: MPL-2.0is present. The new file has noSPDX-FileCopyrightTextline. That edit is left to the owner..envfiles includedAs Applicable
README.adoc,CHANGELOG.adoc,docs/status/PROOF-STATUS.adoc,docs/status/ROADMAP.adocand the deed are not updated. They do not name the new instance.Testing
bash scripts/check-agda.shpassed locally: no postulate insrc/, core proofs, unit tests, and all 8 expected rejections.Local checker: Agda 2.6.3 (Ubuntu
agda-bin). CI pins 2.6.4.3, thus the CI run is the authority.The commit is not signed. The session has no signing key.
Generated by Claude Code
Summary by CodeRabbit