Repository navigation
Proof receipt at 47de4a8, the merge of #36 - #44
Merged
Merged
Conversation
verification/receipts/resource-algebra-proofs_praxis.deed now describes source commit 47de4a8 and proofs.yml run 44015282682 (Agda job 133811607634, Rocq 133811607685, Lean 133811607731). Only the per-commit fields changed: the source commit, the job URLs, the Agda invocation (no -W noUnsupportedIndexedMatch, #37) and each leg's inputs digest and manifest, recomputed from git with standards' proof-inputs-sha256.sh. The Agda manifest now holds F-5's maps-disagree-at-positive (#36); the Rocq and Lean inputs are byte-identical to the receipt at f211fc1. The standards reader (deed_lint.js --proof-receipt-json, at the reader pin mathesis uses) derives PWG-1 for 27 rows and ungraded for the two OPEN rows, and check-proof-receipt.sh reports every §8.5.3 git check holding. PROOF-STATUS cites the new run, jobs and Agda digest, and lists the receipt at f211fc1 as superseded. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01LiQzWJdcPfRU6YMDGRG8Xi
|
hyperpolymath
marked this pull request as ready for review
November 17, 2026 04:33
9 tasks done
hyperpolymath
added a commit
to hyperpolymath/mathesis
that referenced
this pull request
Nov 17, 2026
…tness lemma (#108) ## Summary This is the follow-up that #96 announced. After #96 merged, two resource-algebra PRs landed: - hyperpolymath/resource-algebra#36 moved F-5's `maps-disagree-at-positive` into `src/`, inside the graded cone. - hyperpolymath/resource-algebra#44 wrote a new proof receipt for the merge commit, `47de4a8`. This PR moves the registry's resource-algebra pins to that receipt and adds the lemma to F-5's record. ## Changes - `docs/atlas/claims/claims.jsonl`: the 27 resource-algebra records are now pinned at `a17ffb6`, the commit that holds the new receipt, with that receipt's digest. - F-5 now names `maps-disagree-at-positive`. - Every statement and Agda name was re-extracted from resource-algebra's ledger at `a17ffb6` and matches the records. - `docs/atlas/census/rows.jsonl`: the resource-algebra row is rebuilt at `a17ffb6`, with 29 own proof files and 575 declarations. Before, they were 28 and 574. - Regenerated views: `catalogue.adoc`, `az.adoc`, `organisations.adoc`, `index.json` and `registry.adoc`. - `CHANGELOG.adoc` has an entry under Added. Result: the canon reader derives PWG-1 for all 27, and the §8.5.3 git checks pass. The registry census is unchanged: 38 at PWG-1 and 6 ungraded, of 44 theorems. ## RSR Quality Checklist ### Required - [x] Tests pass (each `check-views` recipe run by hand; see Testing) - [x] Code is formatted (data and generated views; I-JSON/JCS check passes) - [x] Linter is clean - [x] No banned language patterns - [x] No `unsafe` blocks without `// SAFETY:` comments (none) - [x] No banned functions - [x] SPDX license headers present on all new/modified source files (no new files) - [x] No secrets, credentials, or `.env` files included ### As Applicable - [x] `CHANGELOG` or release notes updated ## Testing These ran with `MATHESIS_STANDARDS` set to a standards checkout at the reader pin `e5a39d7`, and all passed: - `catalogue-check` - census tests - `census-atlas.mjs check` and its test - `claims-registry.mjs check` - `theory-ledger.mjs verify` - `bun test tests/registry/` - `cohort.mjs check` - `scripts/check-ijson-jcs.sh --enforce` - asciidoctor render of `CHANGELOG.adoc` --- _Generated by [Claude Code](https://claude.ai/code/session_01LiQzWJdcPfRU6YMDGRG8Xi)_ Co-authored-by: Claude <noreply@anthropic.com>
hyperpolymath
pushed a commit
that referenced
this pull request
Nov 17, 2026
main moved six commits ahead (#36, #37, #41, #43, #44, #47). The branch's proofs.yml predated #43's rename of the aggregating job to `Proofs verdict`, so the CI/gate publisher reported "never reported: proofs.yml:Proofs verdict" on this PR's head. Conflicts: CHANGELOG.adoc keeps both sides' entries, newest first; PROOF-STATUS takes main's revdate. The port's changelog line said the gate's `-W noUnsupportedIndexedMatch` was unchanged; #37 removed it, so the line now says the gate suppresses no warning and names the abbreviated and split-pragma refusals. coverage-exemption.toml: drop `pending-removal = ["src/interface"]`, whose comment says to delete it when this PR merges; this PR removes the tree. The exemption still holds, and a planted src/interface/*.zig is refused. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01J4QvDjDR2MdRwZH9b4rKJn
Merged
12 tasks done
hyperpolymath
added a commit
that referenced
this pull request
Nov 30, 2026
…unused ABI/FFI scaffold (#40) ## Summary This PR brings resource-algebra into line with fixes in hyperpolymath/rsr-template-repo. **It ports from the still-open hyperpolymath/rsr-template-repo#421 at `f846da9`**, which was the owner's decision. If #421 changes in review, re-sync this PR before merging. The proof wording comes from template `main`. Per the owner's decision, it also removes the template ABI/FFI scaffold. This is a pure-theory Agda repository and ships no FFI. `main` is merged in at `8c35136`, which brings #36, #37, #41, #43, #44 and #47. ## Changes - **Rust proof wording**: `CLAUDE.md`'s Proofs table and `verification/proofs/README.adoc` name Creusot with Pearlite contracts and Verus, with Kani and Aeneas alongside the default toolset, never instead (standards PROOF-POLICY §1.2). - The `CLAUDE.md` block sits below `ARRIVAL-PACK:END` and is hand-authored, so it is edited in place. `generate.sh` output is byte-identical, and `verify.sh` passes. - `governance_policy_test.sh` carries the template's matching assertions. - `docs/status/PROOF-STATUS.adoc` records that no Rust verifier has run. The only Rust is the `scripts/*.rs` mint tooling, which implements no theorem. Kani and Aeneas are not applicable. - **Container engine guard**: `build/just/container.just` and `build/container/stapeln/ct-build.sh` accept only `podman | nerdctl | docker` and exit 2 for anything else. - `tests/workflows/container_engine_test.sh` is wired into `estate-rules.yml`, with a pinned Just 1.56.0 step. - **Agda OPTIONS pragma refusal**: `scripts/check-agda.sh` and the agda branch of `scripts/check-proofs.sh` refuse, before Agda runs, any gated module whose `OPTIONS` pragma could override `-W error`. That covers: - `-W`, `--warning`, and every abbreviation of `--warning` that Agda accepts (`--warn`, `--wa`, …). On Agda 2.6.3, `--warn=noerror` and `--wa=noerror` both checked a warning module with rc 0. - Pragmas split over lines, read whole up to `#-}`. `check-proofs.sh` fails closed if the scan cannot run. - Negative tests: `tests/workflows/check_agda_pragma_test.sh` and `tests/workflows/check_proofs_agda_test.sh`. - With `main`'s #37 the gate suppresses no warning, so nothing on the command line or in a pragma can weaken `-W error`. - **ABI/FFI scaffold removed**: `src/interface/` (Zig FFI, Idris2 ABI, generated stubs), `tests/ffi_strings_test.sh` and `docs/developer/ABI-FFI-README.adoc`. - `just test` and `just quality` now gate on the real Agda check. Before, they ran only idris2 and zig. - `validate.just`, `validate-template.sh` and `run-proven-suite.sh` accept a tree with no `src/interface/`. They still fail closed if the tree has one but it is incomplete, and `--require-zig` still fails. - Zig and Idris2 are dropped from the mise and Guix toolchain files. `SETUP.adoc`'s Guix route now says Agda must be installed separately. - `.machine_readable/coverage-exemption.toml` drops its `pending-removal = ["src/interface"]` entry, whose comment said to delete it when this PR merges. - Recorded in the deed `(variant (paths :removed …))`, `docs/status/PROOF-NEEDS.adoc` (no ABI/FFI proof obligations, dated 2026-11-16) and `CHANGELOG.adoc`. ## RSR Quality Checklist ### Required - [x] Tests pass: `just test` and `just quality` pass, and so do all 37 `tests/workflows/*.sh` and `tests/*.sh` scripts on the merged tree. - [x] Code is formatted. `just fmt` is N/A now that the Zig is gone. shellcheck at warning level and above is clean on the changed shell files. - [x] Linter is clean - [x] No banned language patterns - [x] No `unsafe` blocks without `// SAFETY:` comments (none) - [x] No banned functions - [x] SPDX headers present on the new files (MPL-2.0) - [x] No secrets, credentials, or `.env` files ### As Applicable - [x] Repo deed updated: `(variant)` and `:last-updated`. - [x] Documentation updated: README, SETUP, QUICKSTART-DEV, REPOSITORY-MAP, proof guide, PROOF-STATUS. - [x] CHANGELOG updated - [x] ABI/FFI: scaffold removed, so no seam remains to validate. ## Testing | Check | Before | After | |---|---|---| | `just test` | fail (rc 127: idris2 and zig not installed) | **pass**: core proofs, unit tests, all 9 expected rejections | | `just quality` | fail (same cause) | **pass** | | `tests/workflows/*.sh` and `tests/*.sh` | pass | **pass** (37 scripts) | | `scripts/check-agda.sh` | pass | **pass** | | arrival-pack `verify.sh` | pass | **pass** | | `just validate` | pass | **pass** | | `just doctor` | fail (idris2 and zig missing) | **pass** | These additional gates also pass on the merged tree: - `check-required-contexts`, `check-lock-sync`, `check-adoc-renders`, `check-coverage-exemption` - the cicd-suite code-hygiene gate, run at its CI pin Negative checks: - `CONTAINER_ENGINE=rokur just container-verify` exits 2. - With `--warn=noerror` planted in `Core.agda`, the real gate refuses the module before Agda runs. - Every new test fails against the scripts it guards. A planted `src/interface/*.zig` fails the coverage exemption. Known limitations: - `check-template-conformance.sh` T4 fails because the work-branch name is not in `:extra-branches`. It fails the same way on unchanged `main`, so it is environmental. - Local Agda is 2.6.3; CI pins 2.6.4.3. - Commits carry the environment's SSH signature, which could not be verified locally (no `allowedSignersFile`), and the estate key `id_ed25519_signing` is not in this container. - `resource-algebra.agda-lib` has a `flags:` line that the gate ignores (`--no-libraries`), so a `-W` placed there is not checked. --- _Generated by [Claude Code](https://claude.ai/code/session_01J4QvDjDR2MdRwZH9b4rKJn)_ <!-- This is an auto-generated comment: release notes by coderabbit.ai --> <!-- coderabbit-ai-generated:v1 --> ## Summary by CodeRabbit * **Changes** * The repository now focuses on its Agda proof library; the example Idris2/Zig interface and related documentation and tests have been removed. * Agda verification now rejects warning-option overrides and treats warnings as errors. * The Zig FFI test lane is reported as not applicable when the interface is absent, rather than as passed. * **Documentation** * Setup and proof guidance now reflect the Agda workflow and document Rust verifier requirements. * **Validation** * Container checks now accept only Podman, nerdctl, or Docker. <!-- end of auto-generated comment: release notes by coderabbit.ai --> --------- Signed-off-by: Jonathan D.A. Jewell <6759885+hyperpolymath@users.noreply.github.com> Co-authored-by: Claude <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.



Why
The receipt on main still described
f211fc1. Two changes have reachedsrc/and the gate since then:-W noUnsupportedIndexedMatchfrom the Agda gate.maps-disagree-at-positiveintosrc/.PROOF-POLICY §8.4 says grades don't carry forward, so the merge commit needs its own receipt.
What
verification/receipts/resource-algebra-proofs_praxis.deednow describes47de4a8, the merge of F-5: move maps-disagree-at-positive into the graded cone #36, andproofs.ymlrun 44015282682. In that run all three legs passed, along withCI/gateand the coverage-exemption check.133811607634, Rocq133811607685, Lean133811607731;-Wsuppression;scripts/proof-inputs-sha256.sh.2a8edcaf…0e2f4f8c4. The Rocq and Lean inputs are byte-identical to the receipt atf211fc1.docs/status/PROOF-STATUS.adoccites the new run, jobs, commit and Agda digest. The receipt atf211fc1is listed as superseded, with the reason.CHANGELOG.adochas an entry for this.Testing
f211fc1with that run's job URLs. It reproduced the old receipt exactly, apart from the invocation string. So only the fields above are rewritten.deed_lint.js --proof-receipt-json, at the reader pin mathesis uses,e5a39d7) derives PWG-1 for 27 rows andungradedfor the twoOPENrows (C-4b, M-2).deed_lint.jsreportsOK.check-proof-receipt.sh --branch origin/mainreports every PROOF-POLICY §8.5.3 check holding. The source commit is on main, and every manifest entry holds at47de4a8.--failure-level=WARNrenders both changed.adocfiles.tests/workflows/deed_clause_test.shandgovernance_policy_test.shpass.Follow-up in hyperpolymath/mathesis: once this merges, the registry pins move to this receipt, and F-5's record gains
maps-disagree-at-positive.Generated by Claude Code