Repository navigation
Run the Agda and Lean legs isolated: digest-pinned images, Lean leg and M-2 bridge under lake (PN-7) - #53
Run the Agda and Lean legs isolated: digest-pinned images, Lean leg and M-2 bridge under lake (PN-7)#53hyperpolymath wants to merge 6 commits into
Conversation
PROOF-POLICY §8.2 counts a proof leg toward PWG-1 only if its checker ran isolated, in an image pinned by digest, with the receipt naming the image. The Agda job ran in debian:trixie-slim with no digest. Pin it, print the image reference in the receipt step summary, and update the DEVIATION note. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_013CuBToxr5h9catptGiTsFX
PROOF-POLICY §8.2 names `lean` under `lake` as the qualifying Lean run and asks for a committed lake-manifest.json as a pinned input. Add a dependency-free Lake package for ResourceAlgebra.lean, the canonical (I-JSON/JCS) manifest lake writes, and scripts/check-lean-leg.sh, which builds a copy under lake and takes the axiom census from that build. The test plants each failure through a stub lake and checks the reason. The workflow is wired in the following commit. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_013CuBToxr5h9catptGiTsFX
… image The lean-leg job now runs in ubuntu:24.04 pinned by digest, installs the sha256-checked Lean 4.35.0 archive, asserts lean and lake versions, takes the axiom census and receipt from scripts/check-lean-leg.sh (lake build), and runs the new leg test beside the bridge test. The receipts name the image, the lake invocation and every input file. scripts/check-lean-bridge.sh builds ResourceAlgebra, the pinned TropicalSessionTypes and TropicalBridge as a dependency-free Lake package (committed lakefile.toml and lake-manifest.json) in a work directory. The tropical-types pin and its fetch-and-verify are unchanged; all failure conditions are kept, and a rewritten manifest now fails. Only reports attributed to TropicalBridge.lean count towards the bridge census. The bridge test plants each failure through a stub lake. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_013CuBToxr5h9catptGiTsFX
…r lake Change only the statements the CI change makes false (how the Lean leg and the M-2 bridge are invoked, the Agda image) and add a changelog entry. No grade, census or receipt changes. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_013CuBToxr5h9catptGiTsFX
The Lean legs build in a temporary copy, but a local `lake build` in a package directory would leave .lake/; keep it out of commits. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_013CuBToxr5h9catptGiTsFX
|
State at 04:35 UTC: The prover jobs this PR changes all passed in their containers (Agda in the digest-pinned Debian image, the Lean leg and the M-2 bridge under API quota (resolved by one re-run). Hypatia (not this PR's; cause unknown). The scanner dies with
A core dump or an Generated by Claude Code |
|



Summary
PROOF-POLICY §8.2 counts a leg toward PWG-1 only if its checker ran in a container image pinned by digest that the receipt names (owner ruling 2026-11-16), and names
leanunderlakeas the qualifying Lean run (owner ruling 2026-11-17). Today only the Rocq job meets this, which is why no row here can be PWG-1. This change makes the Agda and Lean jobs meet it. The owner chose per-job digest pins (2026-11-18).No grade changes in this PR. Grades move only with a receipt. After this merges and main's run passes, a follow-up in #52 records that run with all three images.
Changes
container: debian:trixie-slim@sha256:a29215f6…49f11f(the digest januskey's Agda job uses, with the sameagda-bin=2.6.4.3-1+b2). The run summary names the image.verification/proofs/lean4/lakefile.toml: a package with no dependencies and one library, rootResourceAlgebra.lake-manifest.jsonis committed as a pinned input (§8.5.1), in the repository's canonical JSON form; lake accepts it and does not rewrite it.scripts/check-lean-leg.sh(new): copies the package to a temporary directory, runslake build, and fails if the build fails, if any report saysdepends on axioms, if the axiom-free reports forResourceAlgebra.leandiffer in number from its#print axiomscommands, or if the build rewrote the manifest.tests/check_lean_leg_test.sh(new): five planted failures through a stubLAKE.verification/bridges/tropical-types/lakefile.tomland its manifest;scripts/check-lean-bridge.shbuilds the three modules withlake buildin its work directory. The tropical-types pin and its fetch-and-verify are unchanged, and there is no lakerequireon that repository. Only reports attributed toTropicalBridge.leancount toward the bridge's census. Its test now has six planted failures.ubuntu:24.04@sha256:73b99939…d6a8, installs the sha256-checked Lean 4.35.0 archive to/opt/lean, asserts theleanandlakeversions, keepsscripts/check-proofs.sh lean4as an extra compile gate, and takes the axiom census and the receipt summary from the lake build..gitignore:.lake/.docs/status/PROOF-STATUS.adoc: three sentences that this change made false. The census, tables and grades are untouched, to stay clear of Proof receipt from the shared generator, at 15fa113; gate it in CI (31 rows PWG-2ii) #52.CHANGELOG.adocentry.What changes for a receipt
lake buildin a copy ofverification/proofs/lean4made byscripts/check-lean-leg.sh; for the bridge,lake buildin the work directoryscripts/check-lean-bridge.shmakes.lakefile.tomlfiles, bothlake-manifest.jsonfiles andscripts/check-lean-leg.sh.Testing
Run locally with Lean 4.35.0 and Lake 5.0.0:
scripts/check-lean-leg.sh:PASS: Lean leg under lake; 84 of 84 printed theorems depend on no axiom.scripts/check-lean-bridge.sh:PASS: M-2 bridge to hyperpolymath/tropical-types@f2e465c…; 6 of 6 printed theorems depend on no axiom.tests/check_lean_leg_test.sh: 5 of 5 planted failures refused for the stated reason.tests/check_lean_bridge_test.sh: 6 of 6.scripts/check-proofs.sh lean4(unchanged script): passes; no.lake/left in the tree.tests/workflows/ci_gate_test.shand the lock and pinning tests pass.check-ijson-jcs.sh --enforce: 14 of 14 canonical.check-adoc-renders.sh: 163 files render clean.actionlint: only the two SC2016 notices that are on main already.Not tested here: the containers. There is no container runtime in the authoring environment, so this PR's own CI run is the first test of the two job containers. Known risks:
agda-bin=2.6.4.3-1+b2being installable on that exact Debian digest (januskey uses the same pairing); checkout inside the Ubuntu container (git is installed before it);tee /dev/stderrin the receipt step.One behaviour is stricter than before: the bridge check now fails on
depends on axiomsanywhere in the build output, including the importedTropicalSessionTypes.lean. It passes at the current pin.RSR Quality Checklist
Required
.envfiles includedAs Applicable
CHANGELOGupdatedGenerated by Claude Code