From 7a8c56a5f467a3305ada0d06335c7611183ab680 Mon Sep 17 00:00:00 2001 From: Claude Date: Mon, 23 Nov 2026 23:45:43 +0000 Subject: [PATCH 1/7] receipt: adopt the shared generator of standards; pin standards 745fc74 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The receipt of Mathesis (verification/receipts/theory_praxis.deed) is now generated, not written. scripts/grade-receipt.sh holds Mathesis's data and hooks (claims, input sets, invocations, the Agda trusted base, where PROOF-STATUS records the claim ids and reconciled legs) and sources the shared generator of PROOF-POLICY §8.5.1 (standards scripts/proof-receipt.sh). verification/receipts/theory_runs.ledger holds one row a run and prover: the 12 rows behind today's receipt (the local run of 2026-11-09 and runs 42896264290, 43498592499 and 44190913019). Read through the pinned reader, the 15 current receipts keep their run, commit, checker, inputs digest, inputs manifest and axioms, and every claim derives PWG-2ii, as before. What changes is the generator's shape: the receipts of runs 43498592499 and 44190913019 name the gate's invocation for their prover instead of each claim's root module; superseded receipts are written oldest first and without digests, manifests and axioms (the ledger keeps each row's digest); each receipt carries the run's report as a comment. The Lean row of run 43498592499 is one row for all five claims, so its reason keeps the finding-31 note for THY-1 in one sentence. The canon reader, the git checker and the generator are pinned at standards 745fc74 (was 940a27af; 745fc74 descends from it and is on standards main). claims-registry.mjs gains the GENERATOR pin and a `standards` command that checks the four pinned files before the home script sources the generator; its `receipt` command is removed, since `just receipt-check` now runs `grade-receipt.sh --check` (regenerate and refuse a difference, the git checks of §8.5.3, the reader with a negative control). `just receipt-record ROWS` records a run. Both workflows fetch the generator in their sparse standards checkout. Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_01J4QvDfdGcZ6qgY7JabLsEi --- .github/workflows/agda-proof-policy.yml | 4 +- .github/workflows/proven-tests.yml | 4 +- Justfile | 21 +- docs/atlas/generated/registry.adoc | 2 +- scripts/grade-receipt.sh | 165 ++++++++++ scripts/registry/claims-registry.mjs | 30 +- tests/registry/claims-registry.test.mjs | 11 +- verification/receipts/theory_praxis.deed | 364 +++++++++-------------- verification/receipts/theory_runs.ledger | 28 ++ 9 files changed, 384 insertions(+), 245 deletions(-) create mode 100644 scripts/grade-receipt.sh create mode 100644 verification/receipts/theory_runs.ledger diff --git a/.github/workflows/agda-proof-policy.yml b/.github/workflows/agda-proof-policy.yml index eb81f75e..d5e7193f 100644 --- a/.github/workflows/agda-proof-policy.yml +++ b/.github/workflows/agda-proof-policy.yml @@ -125,8 +125,8 @@ jobs: git init -q "$r" git -C "$r" remote add origin https://github.com/metadatastician/standards.git git -C "$r" config core.sparseCheckout true - printf '1-formats/deed/tools/\nscripts/check-proof-receipt.sh\nscripts/proof-inputs-sha256.sh\n' > "$r/.git/info/sparse-checkout" - git -C "$r" fetch -q --depth 1 origin 940a27af1e25a73a2d55daa78d0763e6749fd935 + printf '1-formats/deed/tools/\nscripts/check-proof-receipt.sh\nscripts/proof-inputs-sha256.sh\nscripts/proof-receipt.sh\n' > "$r/.git/info/sparse-checkout" + git -C "$r" fetch -q --depth 1 origin 745fc744158047a675eeb92464167c9961d66c4b git -C "$r" checkout -q FETCH_HEAD - name: Golden path (just check), then its controls diff --git a/.github/workflows/proven-tests.yml b/.github/workflows/proven-tests.yml index 67f1373f..7a8ded4e 100644 --- a/.github/workflows/proven-tests.yml +++ b/.github/workflows/proven-tests.yml @@ -56,8 +56,8 @@ jobs: git init -q "$r" git -C "$r" remote add origin https://github.com/metadatastician/standards.git git -C "$r" config core.sparseCheckout true - printf '1-formats/deed/tools/\nscripts/check-proof-receipt.sh\nscripts/proof-inputs-sha256.sh\n' > "$r/.git/info/sparse-checkout" - git -C "$r" fetch -q --depth 1 origin 940a27af1e25a73a2d55daa78d0763e6749fd935 + printf '1-formats/deed/tools/\nscripts/check-proof-receipt.sh\nscripts/proof-inputs-sha256.sh\nscripts/proof-receipt.sh\n' > "$r/.git/info/sparse-checkout" + git -C "$r" fetch -q --depth 1 origin 745fc744158047a675eeb92464167c9961d66c4b git -C "$r" checkout -q FETCH_HEAD for f in verification/receipts/*_praxis.deed; do bun "$r/1-formats/deed/tools/deed_lint.js" --proof-receipt-json "$f" diff --git a/Justfile b/Justfile index b9034c19..230650b4 100644 --- a/Justfile +++ b/Justfile @@ -772,13 +772,22 @@ registry-check: bun scripts/registry/theory-ledger.mjs verify bun test tests/registry/ -# The git checks of PROOF-POLICY §8.5.3 on the receipt of Mathesis: its -# :source-commit is on origin/main, each current receipt's inputs manifest holds -# at its commit, and each echo's witness holds. The shared checker of the pinned -# standards commit runs them (MATHESIS_STANDARDS, as above). Needs origin/main -# with its history. +# The receipt of Mathesis (PROOF-POLICY §8.5.1) against its run ledger: the +# shared generator of the pinned standards commit (scripts/grade-receipt.sh) +# regenerates it from verification/receipts/theory_runs.ledger and the tree and +# refuses any difference, runs the git checks of §8.5.3 (the :source-commit is +# on origin/main, each current receipt's inputs manifest holds at its commit), +# and reads it with the pinned reader and a negative control +# (MATHESIS_STANDARDS, as above). Needs origin/main with its history. receipt-check: - bun scripts/registry/claims-registry.mjs receipt + bash scripts/grade-receipt.sh --check + +# Record a green Proof Policy Gate run on main: ROWS is a file holding the +# ledger rows that the run's job summary lists ("Ledger rows of this run"). +# The generator checks them with the ledger, appends them, and rewrites the +# receipt; commit both in a pull request, which receipt-check then holds. +receipt-record rows: + bash scripts/grade-receipt.sh --record {{ quote(rows) }} # Append each change of the theory shelf to docs/theory/ledger.jsonl, the only # way the ledger changes (needs MATHESIS_STANDARDS, as above). A note tells the diff --git a/docs/atlas/generated/registry.adoc b/docs/atlas/generated/registry.adoc index 8ae6bea3..7668997d 100644 --- a/docs/atlas/generated/registry.adoc +++ b/docs/atlas/generated/registry.adoc @@ -5,7 +5,7 @@ Each row is a claim in its home repository at a pinned commit. The grade is *derived* here from that repository's receipt by the canon reader of -PROOF-POLICY §8.5.1 (`metadatastician/standards` at `940a27af1e25`), never +PROOF-POLICY §8.5.1 (`metadatastician/standards` at `745fc7441580`), never assigned (§8.5). A grade is not a discharge (§8.4): `PWG-3` theorems still owe their Rocq and Lean legs. Status of this slice: accepted in link:../../decisions/0004-claims-registry.adoc[ADR 0004], ratified by the owner. diff --git a/scripts/grade-receipt.sh b/scripts/grade-receipt.sh new file mode 100644 index 00000000..0c27afb5 --- /dev/null +++ b/scripts/grade-receipt.sh @@ -0,0 +1,165 @@ +#!/usr/bin/env bash +# SPDX-License-Identifier: MPL-2.0 +# SPDX-FileCopyrightText: 2026 Jonathan D.A. Jewell (hyperpolymath) +# +# grade-receipt.sh: the receipt of Mathesis, written and checked by the shared +# generator of PROOF-POLICY §8.5.1 (standards scripts/proof-receipt.sh). +# +# This file holds only Mathesis's data and hooks: its claims, the input set and +# invocation of each prover, the Agda trusted base, and where the proof-status +# file records the claim ids and the reconciled legs. The runs are in the run +# ledger, verification/receipts/theory_runs.ledger, one row a run and prover. +# The receipt (verification/receipts/theory_praxis.deed) is generated from them: +# nothing in it is typed, the grade least of all. +# +# bash scripts/grade-receipt.sh --check regenerate, refuse a difference, +# run the §8.5.3 git checks and the +# pinned reader (just receipt-check) +# bash scripts/grade-receipt.sh --write write the receipt from the ledger +# bash scripts/grade-receipt.sh --run-row PROVER --run URL --commit SHA \ +# --checker TEXT --reported TEXT --axioms none +# print one ledger row for a run +# that just passed (the gate job) +# bash scripts/grade-receipt.sh --record ROWS +# check ROWS, write the receipt and +# append them to the ledger +# +# MATHESIS_STANDARDS names a checkout of metadatastician/standards at the +# commit that scripts/registry/claims-registry.mjs pins; that script checks the +# SHA-256 of the four files the generator needs before this one sources them. +# The RECEIPT_* variables are read by the generator sourced at the end, whose +# path (the pinned standards checkout) a static check cannot follow. +# shellcheck disable=SC2034 +set -euo pipefail +cd -- "$(dirname -- "${BASH_SOURCE[0]}")/.." +export LC_ALL=C.UTF-8 + +RECEIPT_STD="$(bun scripts/registry/claims-registry.mjs standards)" \ + || { echo "ERROR: the standards checkout (MATHESIS_STANDARDS) is not at the pinned commit" >&2; exit 2; } +RECEIPT_STANDARDS_COMMIT="$(bun -e 'import {READER} from "./scripts/registry/claims-registry.mjs"; console.log(READER.commit)')" +RECEIPT_OUT=verification/receipts/theory_praxis.deed +RECEIPT_LEDGER=verification/receipts/theory_runs.ledger +RECEIPT_REPOSITORY=hyperpolymath/mathesis +RECEIPT_DEFAULT_BRANCH=main +RECEIPT_CANONICAL_NAME=mathesis-theory-receipt +RECEIPT_BEHOLDING_CHORA='#u8"chora:estate/github.com/hyperpolymath"' +RECEIPT_SCRIPT=scripts/grade-receipt.sh + +AGDA=verification/proofs/agda +COQ=verification/proofs/coq +LEAN=verification/proofs/lean4 +# The graded Agda roots: THY-1 (FeatureReachability), APP-1 and APP-4 +# (Applied.Missing), APP-2 and APP-3 (Applied.Cash, through Applied.IntLaws, +# which proves the integer instance and imports Cash). +AGDA_ROOTS=("$AGDA/FeatureReachability.agda" "$AGDA/Applied/Missing.agda" "$AGDA/Applied/IntLaws.agda") + +# id | §5 token of the Agda proof | kind | Rocq route | Rocq §2.2 state | +# Lean route | Lean §2.2 state | Rocq reason | Lean reason +receipt_claims() { + local id + for id in THY-1 APP-1 APP-2 APP-3 APP-4; do + printf '%s|proven|theorem|re-proved|RECONCILED|re-proved|RECONCILED||\n' "$id" + done +} + +# The runs before 2026-11-10 were local, and the run of 2026-11-10 was on +# THY-1 alone: their receipts belong to THY-1 only (APP-1 to APP-4 came later). +receipt_run_scope() { + local p + for p in agda rocq lean; do + printf '%s|local run, 2026-11-09|THY-1\n' "$p" + printf '%s|https://github.com/hyperpolymath/mathesis/actions/runs/42896264290/job/130110238086|THY-1\n' "$p" + done +} + +receipt_echoes() { :; } + +receipt_header() { + cat <<'EOF' +;; SPDX-License-Identifier: CC-BY-SA-4.0 +;; SPDX-FileCopyrightText: 2026 Jonathan D.A. Jewell (hyperpolymath) +;; The proof receipt of Mathesis (PROOF-POLICY §8.5.1), for THY-1 and APP-1 to +;; APP-4 in docs/status/PROOF-STATUS.adoc. GENERATED by scripts/grade-receipt.sh +;; with the shared generator of standards (scripts/proof-receipt.sh, at the +;; commit scripts/registry/claims-registry.mjs pins) from the run ledger +;; verification/receipts/theory_runs.ledger; do not hand-edit. Each run of the +;; proof lanes in the pinned Guix shell is one row a prover; its current +;; receipt carries the inputs manifest of that prover and the axioms the run +;; reported (none). No row names a container image pinned by digest, so no +;; claim is PWG-1 (§8.2, standards#1625): the generator and the reader derive +;; PWG-2ii. Earlier receipts stay as superseded receipts, each with a reason. +;; The trusted base is each prover-supplied postulate that the Agda import +;; cones reach (agda --dependency-graph): the four of Agda.Primitive, and Char +;; and String, which Applied/IntLaws reaches through Agda.Builtin.Int. Agda +;; 2.7.0.1 postulates these six (its lib/prim sources, read 2026-11-13). +EOF +} + +receipt_trusted_base() { + printf '%s\n' \ + 'Agda.Primitive|Level|BUILTIN LEVEL' \ + 'Agda.Primitive|lzero|BUILTIN LEVELZERO' \ + 'Agda.Primitive|lsuc|BUILTIN LEVELSUC' \ + 'Agda.Primitive|_⊔_|BUILTIN LEVELMAX' \ + 'Agda.Builtin.Char|Char|BUILTIN CHAR' \ + 'Agda.Builtin.String|String|BUILTIN STRING' +} + +# What each lane of the Proof Policy Gate runs (.github/workflows/agda-proof-policy.yml), +# in the pinned Guix shell. +receipt_invocation() { + case "$1" in + agda) printf 'bash scripts/check-proofs.sh agda: agda --safe --without-K --cubical-compatible on each gated module of %s\n' "$AGDA" ;; + rocq) printf 'bash scripts/check-proofs.sh coq: coqc, Print Assumptions and coqchk -o on each gated module of %s\n' "$COQ" ;; + lean) printf 'bash scripts/check-proofs.sh lean4: lean and the axiom audit on each gated module of %s\n' "$LEAN" ;; + esac +} + +# The gated modules of a prover, from its MANIFEST (dir|module|gated|note). +gated() { awk -F'|' '!/^[[:space:]]*#/ && $3=="gated"{print $1 "/" $2}' "$1/MANIFEST"; } + +# §8.5.1 input sets. Agda: the first-party cone of the graded roots. Rocq: each +# file the gate compiles. Lean: each file the gate checks, and lean-toolchain. +receipt_inputs() { + local r + case "$1" in + agda) for r in "${AGDA_ROOTS[@]}"; do receipt_agda_cone "$r" "$AGDA"; done ;; + rocq) gated "$COQ" ;; + lean) gated "$LEAN"; printf '%s/lean-toolchain\n' "$LEAN" ;; + esac +} + +# The claim ids of the proof-status file: those its "===" headings name, with +# a range such as "APP-1 to APP-4" written out. +status_sections() { + awk ' + function ids(h, out, a, b, p, n, i) { + out = "" + while (match(h, /[A-Z]+-[0-9]+( to [A-Z]+-[0-9]+)?/)) { + p = substr(h, RSTART, RLENGTH); h = substr(h, RSTART + RLENGTH) + if (p ~ / to /) { + split(p, a, / to /); n = a[1]; sub(/-[0-9]+$/, "", n) + for (i = substr(a[1], length(n) + 2) + 0; i <= substr(a[2], length(n) + 2) + 0; i++) out = out " " n "-" i + } else out = out " " p + } + return out + } + function flush() { if (cur != "") print cur "|" rec "|" both } + /^=== / { flush(); h = $0; sub(/:.*/, "", h); cur = ids(h); rec = 0; both = 0; next } + /^== / { flush(); cur = ""; next } + cur != "" && /correspondence `RECONCILED`/ { rec++ } + cur != "" && /Rocq and Lean legs are `RECONCILED`/ { both = 1 } + END { flush() } + ' docs/status/PROOF-STATUS.adoc +} +receipt_status_ids() { status_sections | cut -d'|' -f1 | tr ' ' '\n' | grep . || true; } +# A claim's legs are recorded as RECONCILED when its section says so of the +# Rocq and the Lean leg: two "correspondence `RECONCILED`" rows, or one sentence +# for both. +receipt_recorded_legs() { + status_sections | awk -F'|' '$2 >= 2 || $3 == 1 {print $1}' | tr ' ' '\n' | grep . || true +} + +# shellcheck source=/dev/null +. "$RECEIPT_STD/scripts/proof-receipt.sh" +receipt_main "$@" diff --git a/scripts/registry/claims-registry.mjs b/scripts/registry/claims-registry.mjs index 61ed9f6f..f41b7761 100644 --- a/scripts/registry/claims-registry.mjs +++ b/scripts/registry/claims-registry.mjs @@ -76,9 +76,9 @@ const closed = (object, allowed, label, where) => { // that is not this file is refused, so a grade never comes from an unpinned rule. export const READER = { repository: 'metadatastician/standards', - commit: '940a27af1e25a73a2d55daa78d0763e6749fd935', + commit: '745fc744158047a675eeb92464167c9961d66c4b', path: '1-formats/deed/tools/deed_lint.js', - sha256: '29278b46654bdee70e8e1ff4a7ff8cb810e04b618c9ca1520a6979d6c4c91f18', + sha256: 'aece22bf20d6e112e633efd288ed5d145012e85822d6b3ebea916c91c513acb9', }; // The git checks of PROOF-POLICY §8.5.3, from the same standards commit as the @@ -91,6 +91,14 @@ export const CHECKER = { digestSha256: 'dfc6dde01a3a79df638eebe4cad0eae584d8f17280077e149174c0667e9508f4', }; +// The shared receipt generator (PROOF-POLICY §8.5.1), from the same standards +// commit: scripts/grade-receipt.sh sources it to write and check the receipt +// of Mathesis. One commit pins all four files, as the generator requires. +export const GENERATOR = { + path: 'scripts/proof-receipt.sh', + sha256: 'e54a8ccc5399d1c81a4f60a01c354ddb6df3cfae31f87d0c6c3d91e3e4623a4d', +}; + // ── Validation of the registry rows ────────────────────────────────────────── // Throw unless every row is well formed and its repository is public in the @@ -220,7 +228,8 @@ const run = (cmd, args) => { // The path of the pinned checker, after the digest checks of both pinned // scripts and of the canon reader that the checker runs, in the standards -// checkout. The `receipt` home gate runs the checker without loadReader(). +// checkout. scripts/grade-receipt.sh (through the `standards` command) checks them +// before it sources the generator, which runs the checker itself. export async function checkerScript(standardsDir = process.env.MATHESIS_STANDARDS) { const pinned = async (rel, sha) => { const file = path.resolve(standardsDir, rel); @@ -230,6 +239,7 @@ export async function checkerScript(standardsDir = process.env.MATHESIS_STANDARD }; await pinned(READER.path, READER.sha256); await pinned(CHECKER.digest, CHECKER.digestSha256); + await pinned(GENERATOR.path, GENERATOR.sha256); return pinned(CHECKER.path, CHECKER.sha256); } @@ -349,15 +359,15 @@ export function render(derived) { async function main() { const [cmd, ...args] = process.argv.slice(2); - if (cmd === 'receipt') { - // The home gate (§8.5.3): the git checks on the receipt of Mathesis itself, - // against this clone. origin/main needs its history (CI fetches it). - const receipt = path.join(root, 'verification/receipts/theory_praxis.deed'); - const r = spawnSync(findTool('bash'), [await checkerScript(), '--branch', 'origin/main', receipt, root], {stdio: 'inherit'}); - process.exit(r.status ?? 2); + if (cmd === 'standards') { + // For scripts/grade-receipt.sh: check the four pinned files of the + // standards checkout, then print its path (the generator's RECEIPT_STD). + await checkerScript(); + console.log(path.resolve(process.env.MATHESIS_STANDARDS)); + return; } if (!['build', 'check', 'ledger'].includes(cmd)) { - console.error('usage: claims-registry.mjs build|check|ledger|receipt [--receipts-dir DIR] [--note TEXT]'); + console.error('usage: claims-registry.mjs build|check|ledger|standards [--receipts-dir DIR] [--note TEXT]'); process.exit(2); } const i = args.indexOf('--receipts-dir'); diff --git a/tests/registry/claims-registry.test.mjs b/tests/registry/claims-registry.test.mjs index 96fe952f..4b72d684 100644 --- a/tests/registry/claims-registry.test.mjs +++ b/tests/registry/claims-registry.test.mjs @@ -9,7 +9,7 @@ import {readFileSync, mkdtempSync, mkdirSync, writeFileSync, copyFileSync} from import {createHash} from 'node:crypto'; import {tmpdir} from 'node:os'; import path from 'node:path'; -import {validate, loadReader, derive, deriveAll, withGitCheck, findTool, gitChecker, checkerScript, render, READER, CHECKER} from '../../scripts/registry/claims-registry.mjs'; +import {validate, loadReader, derive, deriveAll, withGitCheck, findTool, gitChecker, checkerScript, render, READER, CHECKER, GENERATOR} from '../../scripts/registry/claims-registry.mjs'; import {parseJsonl} from '../../scripts/atlas/census-atlas.mjs'; const rows = parseJsonl(readFileSync(new URL('../../docs/atlas/claims/claims.jsonl', import.meta.url), 'utf8')); @@ -207,13 +207,18 @@ test('a git check that cannot run gives a failed result, not a crash', async () } }); -test('the checker runs only beside the pinned canon reader', async () => { +test('the checker runs only beside the pinned canon reader and generator', async () => { const std = mkdtempSync(path.join(tmpdir(), 'mathesis-std-')); - for (const rel of [READER.path, CHECKER.path, CHECKER.digest]) { + for (const rel of [READER.path, CHECKER.path, CHECKER.digest, GENERATOR.path]) { mkdirSync(path.dirname(path.join(std, rel)), {recursive: true}); copyFileSync(path.join(process.env.MATHESIS_STANDARDS, rel), path.join(std, rel)); } expect(await checkerScript(std)).toBe(path.resolve(std, CHECKER.path)); + // scripts/grade-receipt.sh sources the generator, so a changed one is refused too. + writeFileSync(path.join(std, GENERATOR.path), '# changed\n', {flag: 'a'}); + await expect(checkerScript(std)).rejects.toThrow(/proof-receipt\.sh is not the pinned file/); + copyFileSync(path.join(process.env.MATHESIS_STANDARDS, GENERATOR.path), path.join(std, GENERATOR.path)); + expect(await checkerScript(std)).toBe(path.resolve(std, CHECKER.path)); writeFileSync(path.join(std, READER.path), '// changed\n', {flag: 'a'}); await expect(checkerScript(std)).rejects.toThrow(/is not the pinned file/); }); diff --git a/verification/receipts/theory_praxis.deed b/verification/receipts/theory_praxis.deed index 665853ad..c35df5a5 100644 --- a/verification/receipts/theory_praxis.deed +++ b/verification/receipts/theory_praxis.deed @@ -1,25 +1,15 @@ ;; SPDX-License-Identifier: CC-BY-SA-4.0 ;; SPDX-FileCopyrightText: 2026 Jonathan D.A. Jewell (hyperpolymath) -;; The proof receipt of Mathesis (PROOF-POLICY §8.5.1, standards 940a27af), -;; written from the records of THY-1 and APP-1 to APP-4 in -;; docs/status/PROOF-STATUS.adoc. The current receipts come from one CI run of -;; the proof lanes in the pinned Guix (Guix 8edb9da) on main 8c55804: run -;; 44190913019. Its log records, for each gated module, the checker and its -;; version, the SHA-256 of the file, the result and the axioms reported (none). -;; It is the first run under the gate that audits definitions as well as -;; theorems, refuses an empty audit and a declared Lean axiom, and audits each -;; Rocq library and its import cone with the kernel checker coqchk -o (#107). -;; Each current receipt carries the inputs manifest of its prover: the union of -;; the first-party files that the graded roots read, from -;; standards scripts/proof-inputs-sha256.sh --manifest 8c55804 PATH... -;; One manifest per prover, because §8.5.1 allows one digest for one commit and -;; one prover. Earlier receipts stay as superseded receipts, each with a reason. -;; No row is PWG-1: the lanes run in the pinned Guix shell, not a container -;; image pinned by digest (§8.2, standards#1625), so the reader derives PWG-2ii. -;; The reader derives the grade, and the shared git checker does the §8.5.3 -;; checks (just receipt-check): -;; bun deed_lint.js --proof-receipt-json verification/receipts/theory_praxis.deed -;; check-proof-receipt.sh --branch origin/main verification/receipts/theory_praxis.deed . +;; The proof receipt of Mathesis (PROOF-POLICY §8.5.1), for THY-1 and APP-1 to +;; APP-4 in docs/status/PROOF-STATUS.adoc. GENERATED by scripts/grade-receipt.sh +;; with the shared generator of standards (scripts/proof-receipt.sh, at the +;; commit scripts/registry/claims-registry.mjs pins) from the run ledger +;; verification/receipts/theory_runs.ledger; do not hand-edit. Each run of the +;; proof lanes in the pinned Guix shell is one row a prover; its current +;; receipt carries the inputs manifest of that prover and the axioms the run +;; reported (none). No row names a container image pinned by digest, so no +;; claim is PWG-1 (§8.2, standards#1625): the generator and the reader derive +;; PWG-2ii. Earlier receipts stay as superseded receipts, each with a reason. ;; The trusted base is each prover-supplied postulate that the Agda import ;; cones reach (agda --dependency-graph): the four of Agda.Primitive, and Char ;; and String, which Applied/IntLaws reaches through Agda.Builtin.Int. Agda @@ -40,13 +30,13 @@ (primitive :prover agda :module "Agda.Builtin.String" :name "String" :binding "BUILTIN STRING")) (claim :id "THY-1" :pwg PWG-2ii :foundation-diverse #f (leg :prover agda :route source :token proven :state AGDA-VERIFIED + ; the run reported: check-proofs.sh agda: RESULT: PASS; postulates: none in the first-party cones of FeatureReachability (1 module), Applied/Missing (3) and Applied/IntLaws (6) (receipt :run "https://github.com/hyperpolymath/mathesis/actions/runs/44190913019/job/134419742986" :commit "8c55804163fd15deb1e89f0630a72d4ba8588001" :checker "agda 2.7.0.1 (Guix 8edb9da)" - :invocation "agda --safe --without-K --cubical-compatible FeatureReachability.agda" + :invocation "bash scripts/check-proofs.sh agda: agda --safe --without-K --cubical-compatible on each gated module of verification/proofs/agda" :inputs-sha256 "445160a6f857efe1a4a43ad3757df941ae29b98c988b9e5f51ec36ca81f5c4d3" :state current - (axioms) (inputs-manifest (file :path "verification/proofs/agda/Applied/Cash.agda" :sha256 "fe231a7679529e7998385d8acdcaf8cde6880e44a5cc5d5cc3c03fd4ac2eea12") (file :path "verification/proofs/agda/Applied/Cohort.agda" :sha256 "5a485d5fd5329939aa85909e65bc200d886316ebb69e9786b2764dd17eba8d56") @@ -54,114 +44,105 @@ (file :path "verification/proofs/agda/Applied/IntNumber.agda" :sha256 "0ba5ca46fd22d0abb4f7ceb0ff73a7857f7a3acc6143a43a68cf5932e8868959") (file :path "verification/proofs/agda/Applied/Missing.agda" :sha256 "b2d01609be9419e8cbca8578dc128c3251cc947a8c6c10e0b6f16ac5c6ad332c") (file :path "verification/proofs/agda/Applied/Status.agda" :sha256 "d059344565a55b897824b83b4f676b9a7326ba50a5b35a6da49ab72bb40e8a97") - (file :path "verification/proofs/agda/FeatureReachability.agda" :sha256 "4e39d6ae751d97d3edf57720ccf844d90de3e9ee6603901a04f5eb6494d94564"))) - (receipt :run "https://github.com/hyperpolymath/mathesis/actions/runs/43498592499/job/132138258520" - :commit "034f215b3b601aa6bdde7471bdc650bc62c0f56c" - :checker "agda 2.7.0.1 (Guix 8edb9da)" + (file :path "verification/proofs/agda/FeatureReachability.agda" :sha256 "4e39d6ae751d97d3edf57720ccf844d90de3e9ee6603901a04f5eb6494d94564")) + (axioms)) + ; the run reported: local run: the module checks; --safe refuses postulates, and a comment-aware scan finds none in the module + (receipt :run "local run, 2026-11-09" + :commit "f68b78d6ceb8d3c83f96f5ab8e57779442a8834f" + :checker "agda 2.6.3 (Ubuntu 24.04 agda package)" :invocation "agda --safe --without-K --cubical-compatible FeatureReachability.agda" - :inputs-sha256 "4db97b78050ef622485ceb179e80ad9f39dbd986cdd6f45af0fd5b32a410c643" :state superseded - :reason "replaced by the CI receipt of run 44190913019 on main 8c55804, whose inputs add APP-1's middle clause and THY-1's propositional theorems, checked under the gate that audits definitions as well as theorems (PROOF-POLICY 8.4)" - (axioms) - (inputs-manifest - (file :path "verification/proofs/agda/Applied/Cash.agda" :sha256 "fe231a7679529e7998385d8acdcaf8cde6880e44a5cc5d5cc3c03fd4ac2eea12") - (file :path "verification/proofs/agda/Applied/Cohort.agda" :sha256 "5a485d5fd5329939aa85909e65bc200d886316ebb69e9786b2764dd17eba8d56") - (file :path "verification/proofs/agda/Applied/IntLaws.agda" :sha256 "09285481b29234fced3197b1a4fcd86f284a66f5ce011d23b68bb1aa602c91fb") - (file :path "verification/proofs/agda/Applied/IntNumber.agda" :sha256 "0ba5ca46fd22d0abb4f7ceb0ff73a7857f7a3acc6143a43a68cf5932e8868959") - (file :path "verification/proofs/agda/Applied/Missing.agda" :sha256 "4afb4c82e84bf6411b0f0c19eb6d34869a42bee7d5616624147d1881c78b6fe9") - (file :path "verification/proofs/agda/Applied/Status.agda" :sha256 "d059344565a55b897824b83b4f676b9a7326ba50a5b35a6da49ab72bb40e8a97") - (file :path "verification/proofs/agda/FeatureReachability.agda" :sha256 "4e39d6ae751d97d3edf57720ccf844d90de3e9ee6603901a04f5eb6494d94564"))) + :reason "replaced by the CI receipt in the pinned Guix, Agda 2.7.0.1") + ; the run reported: check-proofs.sh agda: RESULT: PASS; FeatureReachability.agda: postulates: none in the 1 first-party module(s) of the import cone (receipt :run "https://github.com/hyperpolymath/mathesis/actions/runs/42896264290/job/130110238086" :commit "336768958d01257caae14cb81fb54197c2617d97" :checker "agda 2.7.0.1 (Guix 8edb9da)" :invocation "agda --safe --without-K --cubical-compatible FeatureReachability.agda" :state superseded :reason "replaced by the CI receipt of run 43498592499 on 034f215, which records the inputs digest and the axioms (PROOF-POLICY 8.5.1, standards d9b03a3)") - (receipt :run "local run, 2026-11-09" - :commit "f68b78d6ceb8d3c83f96f5ab8e57779442a8834f" - :checker "agda 2.6.3 (Ubuntu 24.04 agda package)" - :invocation "agda --safe --without-K --cubical-compatible FeatureReachability.agda" + ; the run reported: check-proofs.sh agda: RESULT: PASS; postulates: none in the first-party cones of FeatureReachability (1 module), Applied/Missing (3) and Applied/IntLaws (6) + (receipt :run "https://github.com/hyperpolymath/mathesis/actions/runs/43498592499/job/132138258520" + :commit "034f215b3b601aa6bdde7471bdc650bc62c0f56c" + :checker "agda 2.7.0.1 (Guix 8edb9da)" + :invocation "bash scripts/check-proofs.sh agda: agda --safe --without-K --cubical-compatible on each gated module of verification/proofs/agda" :state superseded - :reason "replaced by the CI receipt in the pinned Guix, Agda 2.7.0.1")) + :reason "replaced by the CI receipt of run 44190913019 on main 8c55804, whose inputs add APP-1's middle clause and THY-1's propositional theorems, checked under the gate that audits definitions as well as theorems (PROOF-POLICY 8.4)")) (leg :prover rocq :route re-proved :token proven :state RECONCILED + ; the run reported: check-proofs.sh coq: RESULT: PASS; coqchk -o: no axiom, type-in-type, unsafe (co)fixpoint or assumed positivity; Print Assumptions: closed under the global context for 11 declaration(s) of FeatureReachability.v and 134 of Cohort.v (receipt :run "https://github.com/hyperpolymath/mathesis/actions/runs/44190913019/job/134419742986" :commit "8c55804163fd15deb1e89f0630a72d4ba8588001" :checker "coqc 8.18.0 (Guix 8edb9da)" - :invocation "coqc FeatureReachability.v" + :invocation "bash scripts/check-proofs.sh coq: coqc, Print Assumptions and coqchk -o on each gated module of verification/proofs/coq" :inputs-sha256 "212ebaa375caa0cd2259cfd337ddcaae769c0bd0a14d4f169ad31581c74a15c9" :state current - (axioms) (inputs-manifest (file :path "verification/proofs/coq/Cohort.v" :sha256 "1ff2d86001e2d62c759cdc15ec3affbf352bf690d736cefd6fb7a4ce8771269f") - (file :path "verification/proofs/coq/FeatureReachability.v" :sha256 "e2f90043366fb8061784da4cd12af3278e8a9ea0af78fdba4490f96f28b68cb1"))) - (receipt :run "https://github.com/hyperpolymath/mathesis/actions/runs/43498592499/job/132138258520" - :commit "034f215b3b601aa6bdde7471bdc650bc62c0f56c" - :checker "coqc 8.18.0 (Guix 8edb9da)" + (file :path "verification/proofs/coq/FeatureReachability.v" :sha256 "e2f90043366fb8061784da4cd12af3278e8a9ea0af78fdba4490f96f28b68cb1")) + (axioms)) + ; the run reported: local run: compiles; Print Assumptions: closed under the global context for absent_under_all_features, reach_mono and edge_mono + (receipt :run "local run, 2026-11-09" + :commit "f1be654e69b23873ea40651cb40e0e095ac53680" + :checker "coqc 8.18.0 (Ubuntu 24.04 coq package)" :invocation "coqc FeatureReachability.v" - :inputs-sha256 "1c5814d6040f119382ebeccffe477cbd7d8485a45cf9e8877782316378e28709" :state superseded - :reason "replaced by the CI receipt of run 44190913019 on main 8c55804, whose inputs add APP-1's middle clause and THY-1's propositional theorems, checked under the gate that audits definitions as well as theorems (PROOF-POLICY 8.4)" - (axioms) - (inputs-manifest - (file :path "verification/proofs/coq/Cohort.v" :sha256 "2519cdbdb3b22ee5132e5708bbbeb9e87e3b2d8c2c318329c96c0545863b6260") - (file :path "verification/proofs/coq/FeatureReachability.v" :sha256 "e2f90043366fb8061784da4cd12af3278e8a9ea0af78fdba4490f96f28b68cb1"))) + :reason "replaced by the CI receipt in the pinned Guix") + ; the run reported: check-proofs.sh coq: RESULT: PASS; FeatureReachability.v: Print Assumptions: closed under the global context for 1 theorem(s): absent_under_all_features (receipt :run "https://github.com/hyperpolymath/mathesis/actions/runs/42896264290/job/130110238086" :commit "336768958d01257caae14cb81fb54197c2617d97" :checker "coqc 8.18.0 (Guix 8edb9da)" :invocation "coqc FeatureReachability.v" :state superseded :reason "replaced by the CI receipt of run 43498592499 on 034f215, which records the inputs digest and the axioms (PROOF-POLICY 8.5.1, standards d9b03a3)") - (receipt :run "local run, 2026-11-09" - :commit "f1be654e69b23873ea40651cb40e0e095ac53680" - :checker "coqc 8.18.0 (Ubuntu 24.04 coq package)" - :invocation "coqc FeatureReachability.v" + ; the run reported: check-proofs.sh coq: RESULT: PASS; Print Assumptions: closed under the global context for 1 theorem(s) of FeatureReachability.v and 82 of Cohort.v + (receipt :run "https://github.com/hyperpolymath/mathesis/actions/runs/43498592499/job/132138258520" + :commit "034f215b3b601aa6bdde7471bdc650bc62c0f56c" + :checker "coqc 8.18.0 (Guix 8edb9da)" + :invocation "bash scripts/check-proofs.sh coq: coqc and Print Assumptions on each gated module of verification/proofs/coq" :state superseded - :reason "replaced by the CI receipt in the pinned Guix")) + :reason "replaced by the CI receipt of run 44190913019 on main 8c55804, whose inputs add APP-1's middle clause and THY-1's propositional theorems, checked under the gate that audits definitions as well as theorems (PROOF-POLICY 8.4)")) (leg :prover lean :route re-proved :token proven :state RECONCILED + ; the run reported: check-proofs.sh lean4: RESULT: PASS; axioms: none for 8 theorem(s) and 48 definition(s) of FeatureReachability.lean, and 102 theorem(s) and 128 definition(s) of Cohort.lean (receipt :run "https://github.com/hyperpolymath/mathesis/actions/runs/44190913019/job/134419742986" :commit "8c55804163fd15deb1e89f0630a72d4ba8588001" :checker "lean 4.29.0 (Guix 8edb9da)" - :invocation "lean FeatureReachability.lean" + :invocation "bash scripts/check-proofs.sh lean4: lean and the axiom audit on each gated module of verification/proofs/lean4" :inputs-sha256 "24d292acc71fd0f7ece8dd21a0f355f101b63513a66f41b0ba4a9364ac64aa0b" :state current - (axioms) (inputs-manifest (file :path "verification/proofs/lean4/Cohort.lean" :sha256 "e3ff1d650c4ee0dc732ec0c028403476050885fe7e2b51eb8bf24fa9eafe0052") (file :path "verification/proofs/lean4/FeatureReachability.lean" :sha256 "55a4116e84cb8d6a230bcc3d85fa9cef1e74fe1520b652830f6e2cb1ce26e39b") - (file :path "verification/proofs/lean4/lean-toolchain" :sha256 "651c8accb402b0c071cd336e9d3dc0a55516b1bfb434ddc4801f14936785b1d2"))) - (receipt :run "https://github.com/hyperpolymath/mathesis/actions/runs/43498592499/job/132138258520" - :commit "034f215b3b601aa6bdde7471bdc650bc62c0f56c" - :checker "lean 4.29.0 (Guix 8edb9da)" + (file :path "verification/proofs/lean4/lean-toolchain" :sha256 "651c8accb402b0c071cd336e9d3dc0a55516b1bfb434ddc4801f14936785b1d2")) + (axioms)) + ; the run reported: local run: compiles; #print axioms: none for absentUnderAllFeatures, reachMono and onMono + (receipt :run "local run, 2026-11-09" + :commit "f1be654e69b23873ea40651cb40e0e095ac53680" + :checker "lean 4.15.0 (11651562caae, release archive)" :invocation "lean FeatureReachability.lean" - :inputs-sha256 "de2e3324f91b25f4a05658dfcfb435c7417709667b8766f7aeaa832fa874c4c1" :state superseded - :reason "replaced by the CI receipt of run 44190913019 on main 8c55804, the first under the gate that audits definitions as well as theorems and fails on an empty audit: this receipt's empty axiom list came from an audit that inspected none of THY-1's results, which are definitions (proof audit 2026-11-16, finding 31)" - (axioms) - (inputs-manifest - (file :path "verification/proofs/lean4/Cohort.lean" :sha256 "b91e2aa7b1322284d67710ea918858497bc1245a6b941448df2deba4b521ce10") - (file :path "verification/proofs/lean4/FeatureReachability.lean" :sha256 "4158e54f85c8e83e49789869a4e9b12fe4b8d7460981f5c8442479268f17d55a") - (file :path "verification/proofs/lean4/lean-toolchain" :sha256 "651c8accb402b0c071cd336e9d3dc0a55516b1bfb434ddc4801f14936785b1d2"))) + :reason "replaced by the CI receipt in the pinned Guix, Lean 4.29.0") + ; the run reported: check-proofs.sh lean4: RESULT: PASS; FeatureReachability.lean: axioms: none for 2 declared theorem(s) (receipt :run "https://github.com/hyperpolymath/mathesis/actions/runs/42896264290/job/130110238086" :commit "336768958d01257caae14cb81fb54197c2617d97" :checker "lean 4.29.0 (Guix 8edb9da)" :invocation "lean FeatureReachability.lean" :state superseded :reason "replaced by the CI receipt of run 43498592499 on 034f215, which records the inputs digest and the axioms (PROOF-POLICY 8.5.1, standards d9b03a3)") - (receipt :run "local run, 2026-11-09" - :commit "f1be654e69b23873ea40651cb40e0e095ac53680" - :checker "lean 4.15.0 (11651562caae, release archive)" - :invocation "lean FeatureReachability.lean" + ; the run reported: check-proofs.sh lean4: RESULT: PASS; axioms: none for 2 declared theorem(s) of FeatureReachability.lean and 95 of Cohort.lean + (receipt :run "https://github.com/hyperpolymath/mathesis/actions/runs/43498592499/job/132138258520" + :commit "034f215b3b601aa6bdde7471bdc650bc62c0f56c" + :checker "lean 4.29.0 (Guix 8edb9da)" + :invocation "bash scripts/check-proofs.sh lean4: lean and the axiom audit of declared theorems on each gated module of verification/proofs/lean4" :state superseded - :reason "replaced by the CI receipt in the pinned Guix, Lean 4.29.0"))) + :reason "replaced by the CI receipt of run 44190913019 on main 8c55804, whose inputs add APP-1's middle clause and THY-1's propositional theorems, checked under the gate that audits definitions as well as theorems (PROOF-POLICY 8.4); for THY-1 it is also the first under the gate that fails on an empty audit: this receipt's empty axiom list came from an audit that inspected none of THY-1's results, which are definitions (proof audit 2026-11-16, finding 31)"))) (claim :id "APP-1" :pwg PWG-2ii :foundation-diverse #f (leg :prover agda :route source :token proven :state AGDA-VERIFIED + ; the run reported: check-proofs.sh agda: RESULT: PASS; postulates: none in the first-party cones of FeatureReachability (1 module), Applied/Missing (3) and Applied/IntLaws (6) (receipt :run "https://github.com/hyperpolymath/mathesis/actions/runs/44190913019/job/134419742986" :commit "8c55804163fd15deb1e89f0630a72d4ba8588001" :checker "agda 2.7.0.1 (Guix 8edb9da)" - :invocation "agda --safe --without-K --cubical-compatible Applied/Missing.agda" + :invocation "bash scripts/check-proofs.sh agda: agda --safe --without-K --cubical-compatible on each gated module of verification/proofs/agda" :inputs-sha256 "445160a6f857efe1a4a43ad3757df941ae29b98c988b9e5f51ec36ca81f5c4d3" :state current - (axioms) (inputs-manifest (file :path "verification/proofs/agda/Applied/Cash.agda" :sha256 "fe231a7679529e7998385d8acdcaf8cde6880e44a5cc5d5cc3c03fd4ac2eea12") (file :path "verification/proofs/agda/Applied/Cohort.agda" :sha256 "5a485d5fd5329939aa85909e65bc200d886316ebb69e9786b2764dd17eba8d56") @@ -169,78 +150,63 @@ (file :path "verification/proofs/agda/Applied/IntNumber.agda" :sha256 "0ba5ca46fd22d0abb4f7ceb0ff73a7857f7a3acc6143a43a68cf5932e8868959") (file :path "verification/proofs/agda/Applied/Missing.agda" :sha256 "b2d01609be9419e8cbca8578dc128c3251cc947a8c6c10e0b6f16ac5c6ad332c") (file :path "verification/proofs/agda/Applied/Status.agda" :sha256 "d059344565a55b897824b83b4f676b9a7326ba50a5b35a6da49ab72bb40e8a97") - (file :path "verification/proofs/agda/FeatureReachability.agda" :sha256 "4e39d6ae751d97d3edf57720ccf844d90de3e9ee6603901a04f5eb6494d94564"))) + (file :path "verification/proofs/agda/FeatureReachability.agda" :sha256 "4e39d6ae751d97d3edf57720ccf844d90de3e9ee6603901a04f5eb6494d94564")) + (axioms)) + ; the run reported: check-proofs.sh agda: RESULT: PASS; postulates: none in the first-party cones of FeatureReachability (1 module), Applied/Missing (3) and Applied/IntLaws (6) (receipt :run "https://github.com/hyperpolymath/mathesis/actions/runs/43498592499/job/132138258520" :commit "034f215b3b601aa6bdde7471bdc650bc62c0f56c" :checker "agda 2.7.0.1 (Guix 8edb9da)" - :invocation "agda --safe --without-K --cubical-compatible Applied/Missing.agda" - :inputs-sha256 "4db97b78050ef622485ceb179e80ad9f39dbd986cdd6f45af0fd5b32a410c643" + :invocation "bash scripts/check-proofs.sh agda: agda --safe --without-K --cubical-compatible on each gated module of verification/proofs/agda" :state superseded - :reason "replaced by the CI receipt of run 44190913019 on main 8c55804, whose inputs add APP-1's middle clause and THY-1's propositional theorems, checked under the gate that audits definitions as well as theorems (PROOF-POLICY 8.4)" - (axioms) - (inputs-manifest - (file :path "verification/proofs/agda/Applied/Cash.agda" :sha256 "fe231a7679529e7998385d8acdcaf8cde6880e44a5cc5d5cc3c03fd4ac2eea12") - (file :path "verification/proofs/agda/Applied/Cohort.agda" :sha256 "5a485d5fd5329939aa85909e65bc200d886316ebb69e9786b2764dd17eba8d56") - (file :path "verification/proofs/agda/Applied/IntLaws.agda" :sha256 "09285481b29234fced3197b1a4fcd86f284a66f5ce011d23b68bb1aa602c91fb") - (file :path "verification/proofs/agda/Applied/IntNumber.agda" :sha256 "0ba5ca46fd22d0abb4f7ceb0ff73a7857f7a3acc6143a43a68cf5932e8868959") - (file :path "verification/proofs/agda/Applied/Missing.agda" :sha256 "4afb4c82e84bf6411b0f0c19eb6d34869a42bee7d5616624147d1881c78b6fe9") - (file :path "verification/proofs/agda/Applied/Status.agda" :sha256 "d059344565a55b897824b83b4f676b9a7326ba50a5b35a6da49ab72bb40e8a97") - (file :path "verification/proofs/agda/FeatureReachability.agda" :sha256 "4e39d6ae751d97d3edf57720ccf844d90de3e9ee6603901a04f5eb6494d94564")))) + :reason "replaced by the CI receipt of run 44190913019 on main 8c55804, whose inputs add APP-1's middle clause and THY-1's propositional theorems, checked under the gate that audits definitions as well as theorems (PROOF-POLICY 8.4)")) (leg :prover rocq :route re-proved :token proven :state RECONCILED + ; the run reported: check-proofs.sh coq: RESULT: PASS; coqchk -o: no axiom, type-in-type, unsafe (co)fixpoint or assumed positivity; Print Assumptions: closed under the global context for 11 declaration(s) of FeatureReachability.v and 134 of Cohort.v (receipt :run "https://github.com/hyperpolymath/mathesis/actions/runs/44190913019/job/134419742986" :commit "8c55804163fd15deb1e89f0630a72d4ba8588001" :checker "coqc 8.18.0 (Guix 8edb9da)" - :invocation "coqc Cohort.v" + :invocation "bash scripts/check-proofs.sh coq: coqc, Print Assumptions and coqchk -o on each gated module of verification/proofs/coq" :inputs-sha256 "212ebaa375caa0cd2259cfd337ddcaae769c0bd0a14d4f169ad31581c74a15c9" :state current - (axioms) (inputs-manifest (file :path "verification/proofs/coq/Cohort.v" :sha256 "1ff2d86001e2d62c759cdc15ec3affbf352bf690d736cefd6fb7a4ce8771269f") - (file :path "verification/proofs/coq/FeatureReachability.v" :sha256 "e2f90043366fb8061784da4cd12af3278e8a9ea0af78fdba4490f96f28b68cb1"))) + (file :path "verification/proofs/coq/FeatureReachability.v" :sha256 "e2f90043366fb8061784da4cd12af3278e8a9ea0af78fdba4490f96f28b68cb1")) + (axioms)) + ; the run reported: check-proofs.sh coq: RESULT: PASS; Print Assumptions: closed under the global context for 1 theorem(s) of FeatureReachability.v and 82 of Cohort.v (receipt :run "https://github.com/hyperpolymath/mathesis/actions/runs/43498592499/job/132138258520" :commit "034f215b3b601aa6bdde7471bdc650bc62c0f56c" :checker "coqc 8.18.0 (Guix 8edb9da)" - :invocation "coqc Cohort.v" - :inputs-sha256 "1c5814d6040f119382ebeccffe477cbd7d8485a45cf9e8877782316378e28709" + :invocation "bash scripts/check-proofs.sh coq: coqc and Print Assumptions on each gated module of verification/proofs/coq" :state superseded - :reason "replaced by the CI receipt of run 44190913019 on main 8c55804, whose inputs add APP-1's middle clause and THY-1's propositional theorems, checked under the gate that audits definitions as well as theorems (PROOF-POLICY 8.4)" - (axioms) - (inputs-manifest - (file :path "verification/proofs/coq/Cohort.v" :sha256 "2519cdbdb3b22ee5132e5708bbbeb9e87e3b2d8c2c318329c96c0545863b6260") - (file :path "verification/proofs/coq/FeatureReachability.v" :sha256 "e2f90043366fb8061784da4cd12af3278e8a9ea0af78fdba4490f96f28b68cb1")))) + :reason "replaced by the CI receipt of run 44190913019 on main 8c55804, whose inputs add APP-1's middle clause and THY-1's propositional theorems, checked under the gate that audits definitions as well as theorems (PROOF-POLICY 8.4)")) (leg :prover lean :route re-proved :token proven :state RECONCILED + ; the run reported: check-proofs.sh lean4: RESULT: PASS; axioms: none for 8 theorem(s) and 48 definition(s) of FeatureReachability.lean, and 102 theorem(s) and 128 definition(s) of Cohort.lean (receipt :run "https://github.com/hyperpolymath/mathesis/actions/runs/44190913019/job/134419742986" :commit "8c55804163fd15deb1e89f0630a72d4ba8588001" :checker "lean 4.29.0 (Guix 8edb9da)" - :invocation "lean Cohort.lean" + :invocation "bash scripts/check-proofs.sh lean4: lean and the axiom audit on each gated module of verification/proofs/lean4" :inputs-sha256 "24d292acc71fd0f7ece8dd21a0f355f101b63513a66f41b0ba4a9364ac64aa0b" :state current - (axioms) (inputs-manifest (file :path "verification/proofs/lean4/Cohort.lean" :sha256 "e3ff1d650c4ee0dc732ec0c028403476050885fe7e2b51eb8bf24fa9eafe0052") (file :path "verification/proofs/lean4/FeatureReachability.lean" :sha256 "55a4116e84cb8d6a230bcc3d85fa9cef1e74fe1520b652830f6e2cb1ce26e39b") - (file :path "verification/proofs/lean4/lean-toolchain" :sha256 "651c8accb402b0c071cd336e9d3dc0a55516b1bfb434ddc4801f14936785b1d2"))) + (file :path "verification/proofs/lean4/lean-toolchain" :sha256 "651c8accb402b0c071cd336e9d3dc0a55516b1bfb434ddc4801f14936785b1d2")) + (axioms)) + ; the run reported: check-proofs.sh lean4: RESULT: PASS; axioms: none for 2 declared theorem(s) of FeatureReachability.lean and 95 of Cohort.lean (receipt :run "https://github.com/hyperpolymath/mathesis/actions/runs/43498592499/job/132138258520" :commit "034f215b3b601aa6bdde7471bdc650bc62c0f56c" :checker "lean 4.29.0 (Guix 8edb9da)" - :invocation "lean Cohort.lean" - :inputs-sha256 "de2e3324f91b25f4a05658dfcfb435c7417709667b8766f7aeaa832fa874c4c1" + :invocation "bash scripts/check-proofs.sh lean4: lean and the axiom audit of declared theorems on each gated module of verification/proofs/lean4" :state superseded - :reason "replaced by the CI receipt of run 44190913019 on main 8c55804, whose inputs add APP-1's middle clause and THY-1's propositional theorems, checked under the gate that audits definitions as well as theorems (PROOF-POLICY 8.4)" - (axioms) - (inputs-manifest - (file :path "verification/proofs/lean4/Cohort.lean" :sha256 "b91e2aa7b1322284d67710ea918858497bc1245a6b941448df2deba4b521ce10") - (file :path "verification/proofs/lean4/FeatureReachability.lean" :sha256 "4158e54f85c8e83e49789869a4e9b12fe4b8d7460981f5c8442479268f17d55a") - (file :path "verification/proofs/lean4/lean-toolchain" :sha256 "651c8accb402b0c071cd336e9d3dc0a55516b1bfb434ddc4801f14936785b1d2"))))) + :reason "replaced by the CI receipt of run 44190913019 on main 8c55804, whose inputs add APP-1's middle clause and THY-1's propositional theorems, checked under the gate that audits definitions as well as theorems (PROOF-POLICY 8.4); for THY-1 it is also the first under the gate that fails on an empty audit: this receipt's empty axiom list came from an audit that inspected none of THY-1's results, which are definitions (proof audit 2026-11-16, finding 31)"))) (claim :id "APP-2" :pwg PWG-2ii :foundation-diverse #f (leg :prover agda :route source :token proven :state AGDA-VERIFIED + ; the run reported: check-proofs.sh agda: RESULT: PASS; postulates: none in the first-party cones of FeatureReachability (1 module), Applied/Missing (3) and Applied/IntLaws (6) (receipt :run "https://github.com/hyperpolymath/mathesis/actions/runs/44190913019/job/134419742986" :commit "8c55804163fd15deb1e89f0630a72d4ba8588001" :checker "agda 2.7.0.1 (Guix 8edb9da)" - :invocation "agda --safe --without-K --cubical-compatible Applied/IntLaws.agda" + :invocation "bash scripts/check-proofs.sh agda: agda --safe --without-K --cubical-compatible on each gated module of verification/proofs/agda" :inputs-sha256 "445160a6f857efe1a4a43ad3757df941ae29b98c988b9e5f51ec36ca81f5c4d3" :state current - (axioms) (inputs-manifest (file :path "verification/proofs/agda/Applied/Cash.agda" :sha256 "fe231a7679529e7998385d8acdcaf8cde6880e44a5cc5d5cc3c03fd4ac2eea12") (file :path "verification/proofs/agda/Applied/Cohort.agda" :sha256 "5a485d5fd5329939aa85909e65bc200d886316ebb69e9786b2764dd17eba8d56") @@ -248,78 +214,63 @@ (file :path "verification/proofs/agda/Applied/IntNumber.agda" :sha256 "0ba5ca46fd22d0abb4f7ceb0ff73a7857f7a3acc6143a43a68cf5932e8868959") (file :path "verification/proofs/agda/Applied/Missing.agda" :sha256 "b2d01609be9419e8cbca8578dc128c3251cc947a8c6c10e0b6f16ac5c6ad332c") (file :path "verification/proofs/agda/Applied/Status.agda" :sha256 "d059344565a55b897824b83b4f676b9a7326ba50a5b35a6da49ab72bb40e8a97") - (file :path "verification/proofs/agda/FeatureReachability.agda" :sha256 "4e39d6ae751d97d3edf57720ccf844d90de3e9ee6603901a04f5eb6494d94564"))) + (file :path "verification/proofs/agda/FeatureReachability.agda" :sha256 "4e39d6ae751d97d3edf57720ccf844d90de3e9ee6603901a04f5eb6494d94564")) + (axioms)) + ; the run reported: check-proofs.sh agda: RESULT: PASS; postulates: none in the first-party cones of FeatureReachability (1 module), Applied/Missing (3) and Applied/IntLaws (6) (receipt :run "https://github.com/hyperpolymath/mathesis/actions/runs/43498592499/job/132138258520" :commit "034f215b3b601aa6bdde7471bdc650bc62c0f56c" :checker "agda 2.7.0.1 (Guix 8edb9da)" - :invocation "agda --safe --without-K --cubical-compatible Applied/IntLaws.agda" - :inputs-sha256 "4db97b78050ef622485ceb179e80ad9f39dbd986cdd6f45af0fd5b32a410c643" + :invocation "bash scripts/check-proofs.sh agda: agda --safe --without-K --cubical-compatible on each gated module of verification/proofs/agda" :state superseded - :reason "replaced by the CI receipt of run 44190913019 on main 8c55804, whose inputs add APP-1's middle clause and THY-1's propositional theorems, checked under the gate that audits definitions as well as theorems (PROOF-POLICY 8.4)" - (axioms) - (inputs-manifest - (file :path "verification/proofs/agda/Applied/Cash.agda" :sha256 "fe231a7679529e7998385d8acdcaf8cde6880e44a5cc5d5cc3c03fd4ac2eea12") - (file :path "verification/proofs/agda/Applied/Cohort.agda" :sha256 "5a485d5fd5329939aa85909e65bc200d886316ebb69e9786b2764dd17eba8d56") - (file :path "verification/proofs/agda/Applied/IntLaws.agda" :sha256 "09285481b29234fced3197b1a4fcd86f284a66f5ce011d23b68bb1aa602c91fb") - (file :path "verification/proofs/agda/Applied/IntNumber.agda" :sha256 "0ba5ca46fd22d0abb4f7ceb0ff73a7857f7a3acc6143a43a68cf5932e8868959") - (file :path "verification/proofs/agda/Applied/Missing.agda" :sha256 "4afb4c82e84bf6411b0f0c19eb6d34869a42bee7d5616624147d1881c78b6fe9") - (file :path "verification/proofs/agda/Applied/Status.agda" :sha256 "d059344565a55b897824b83b4f676b9a7326ba50a5b35a6da49ab72bb40e8a97") - (file :path "verification/proofs/agda/FeatureReachability.agda" :sha256 "4e39d6ae751d97d3edf57720ccf844d90de3e9ee6603901a04f5eb6494d94564")))) + :reason "replaced by the CI receipt of run 44190913019 on main 8c55804, whose inputs add APP-1's middle clause and THY-1's propositional theorems, checked under the gate that audits definitions as well as theorems (PROOF-POLICY 8.4)")) (leg :prover rocq :route re-proved :token proven :state RECONCILED + ; the run reported: check-proofs.sh coq: RESULT: PASS; coqchk -o: no axiom, type-in-type, unsafe (co)fixpoint or assumed positivity; Print Assumptions: closed under the global context for 11 declaration(s) of FeatureReachability.v and 134 of Cohort.v (receipt :run "https://github.com/hyperpolymath/mathesis/actions/runs/44190913019/job/134419742986" :commit "8c55804163fd15deb1e89f0630a72d4ba8588001" :checker "coqc 8.18.0 (Guix 8edb9da)" - :invocation "coqc Cohort.v" + :invocation "bash scripts/check-proofs.sh coq: coqc, Print Assumptions and coqchk -o on each gated module of verification/proofs/coq" :inputs-sha256 "212ebaa375caa0cd2259cfd337ddcaae769c0bd0a14d4f169ad31581c74a15c9" :state current - (axioms) (inputs-manifest (file :path "verification/proofs/coq/Cohort.v" :sha256 "1ff2d86001e2d62c759cdc15ec3affbf352bf690d736cefd6fb7a4ce8771269f") - (file :path "verification/proofs/coq/FeatureReachability.v" :sha256 "e2f90043366fb8061784da4cd12af3278e8a9ea0af78fdba4490f96f28b68cb1"))) + (file :path "verification/proofs/coq/FeatureReachability.v" :sha256 "e2f90043366fb8061784da4cd12af3278e8a9ea0af78fdba4490f96f28b68cb1")) + (axioms)) + ; the run reported: check-proofs.sh coq: RESULT: PASS; Print Assumptions: closed under the global context for 1 theorem(s) of FeatureReachability.v and 82 of Cohort.v (receipt :run "https://github.com/hyperpolymath/mathesis/actions/runs/43498592499/job/132138258520" :commit "034f215b3b601aa6bdde7471bdc650bc62c0f56c" :checker "coqc 8.18.0 (Guix 8edb9da)" - :invocation "coqc Cohort.v" - :inputs-sha256 "1c5814d6040f119382ebeccffe477cbd7d8485a45cf9e8877782316378e28709" + :invocation "bash scripts/check-proofs.sh coq: coqc and Print Assumptions on each gated module of verification/proofs/coq" :state superseded - :reason "replaced by the CI receipt of run 44190913019 on main 8c55804, whose inputs add APP-1's middle clause and THY-1's propositional theorems, checked under the gate that audits definitions as well as theorems (PROOF-POLICY 8.4)" - (axioms) - (inputs-manifest - (file :path "verification/proofs/coq/Cohort.v" :sha256 "2519cdbdb3b22ee5132e5708bbbeb9e87e3b2d8c2c318329c96c0545863b6260") - (file :path "verification/proofs/coq/FeatureReachability.v" :sha256 "e2f90043366fb8061784da4cd12af3278e8a9ea0af78fdba4490f96f28b68cb1")))) + :reason "replaced by the CI receipt of run 44190913019 on main 8c55804, whose inputs add APP-1's middle clause and THY-1's propositional theorems, checked under the gate that audits definitions as well as theorems (PROOF-POLICY 8.4)")) (leg :prover lean :route re-proved :token proven :state RECONCILED + ; the run reported: check-proofs.sh lean4: RESULT: PASS; axioms: none for 8 theorem(s) and 48 definition(s) of FeatureReachability.lean, and 102 theorem(s) and 128 definition(s) of Cohort.lean (receipt :run "https://github.com/hyperpolymath/mathesis/actions/runs/44190913019/job/134419742986" :commit "8c55804163fd15deb1e89f0630a72d4ba8588001" :checker "lean 4.29.0 (Guix 8edb9da)" - :invocation "lean Cohort.lean" + :invocation "bash scripts/check-proofs.sh lean4: lean and the axiom audit on each gated module of verification/proofs/lean4" :inputs-sha256 "24d292acc71fd0f7ece8dd21a0f355f101b63513a66f41b0ba4a9364ac64aa0b" :state current - (axioms) (inputs-manifest (file :path "verification/proofs/lean4/Cohort.lean" :sha256 "e3ff1d650c4ee0dc732ec0c028403476050885fe7e2b51eb8bf24fa9eafe0052") (file :path "verification/proofs/lean4/FeatureReachability.lean" :sha256 "55a4116e84cb8d6a230bcc3d85fa9cef1e74fe1520b652830f6e2cb1ce26e39b") - (file :path "verification/proofs/lean4/lean-toolchain" :sha256 "651c8accb402b0c071cd336e9d3dc0a55516b1bfb434ddc4801f14936785b1d2"))) + (file :path "verification/proofs/lean4/lean-toolchain" :sha256 "651c8accb402b0c071cd336e9d3dc0a55516b1bfb434ddc4801f14936785b1d2")) + (axioms)) + ; the run reported: check-proofs.sh lean4: RESULT: PASS; axioms: none for 2 declared theorem(s) of FeatureReachability.lean and 95 of Cohort.lean (receipt :run "https://github.com/hyperpolymath/mathesis/actions/runs/43498592499/job/132138258520" :commit "034f215b3b601aa6bdde7471bdc650bc62c0f56c" :checker "lean 4.29.0 (Guix 8edb9da)" - :invocation "lean Cohort.lean" - :inputs-sha256 "de2e3324f91b25f4a05658dfcfb435c7417709667b8766f7aeaa832fa874c4c1" + :invocation "bash scripts/check-proofs.sh lean4: lean and the axiom audit of declared theorems on each gated module of verification/proofs/lean4" :state superseded - :reason "replaced by the CI receipt of run 44190913019 on main 8c55804, whose inputs add APP-1's middle clause and THY-1's propositional theorems, checked under the gate that audits definitions as well as theorems (PROOF-POLICY 8.4)" - (axioms) - (inputs-manifest - (file :path "verification/proofs/lean4/Cohort.lean" :sha256 "b91e2aa7b1322284d67710ea918858497bc1245a6b941448df2deba4b521ce10") - (file :path "verification/proofs/lean4/FeatureReachability.lean" :sha256 "4158e54f85c8e83e49789869a4e9b12fe4b8d7460981f5c8442479268f17d55a") - (file :path "verification/proofs/lean4/lean-toolchain" :sha256 "651c8accb402b0c071cd336e9d3dc0a55516b1bfb434ddc4801f14936785b1d2"))))) + :reason "replaced by the CI receipt of run 44190913019 on main 8c55804, whose inputs add APP-1's middle clause and THY-1's propositional theorems, checked under the gate that audits definitions as well as theorems (PROOF-POLICY 8.4); for THY-1 it is also the first under the gate that fails on an empty audit: this receipt's empty axiom list came from an audit that inspected none of THY-1's results, which are definitions (proof audit 2026-11-16, finding 31)"))) (claim :id "APP-3" :pwg PWG-2ii :foundation-diverse #f (leg :prover agda :route source :token proven :state AGDA-VERIFIED + ; the run reported: check-proofs.sh agda: RESULT: PASS; postulates: none in the first-party cones of FeatureReachability (1 module), Applied/Missing (3) and Applied/IntLaws (6) (receipt :run "https://github.com/hyperpolymath/mathesis/actions/runs/44190913019/job/134419742986" :commit "8c55804163fd15deb1e89f0630a72d4ba8588001" :checker "agda 2.7.0.1 (Guix 8edb9da)" - :invocation "agda --safe --without-K --cubical-compatible Applied/IntLaws.agda" + :invocation "bash scripts/check-proofs.sh agda: agda --safe --without-K --cubical-compatible on each gated module of verification/proofs/agda" :inputs-sha256 "445160a6f857efe1a4a43ad3757df941ae29b98c988b9e5f51ec36ca81f5c4d3" :state current - (axioms) (inputs-manifest (file :path "verification/proofs/agda/Applied/Cash.agda" :sha256 "fe231a7679529e7998385d8acdcaf8cde6880e44a5cc5d5cc3c03fd4ac2eea12") (file :path "verification/proofs/agda/Applied/Cohort.agda" :sha256 "5a485d5fd5329939aa85909e65bc200d886316ebb69e9786b2764dd17eba8d56") @@ -327,78 +278,63 @@ (file :path "verification/proofs/agda/Applied/IntNumber.agda" :sha256 "0ba5ca46fd22d0abb4f7ceb0ff73a7857f7a3acc6143a43a68cf5932e8868959") (file :path "verification/proofs/agda/Applied/Missing.agda" :sha256 "b2d01609be9419e8cbca8578dc128c3251cc947a8c6c10e0b6f16ac5c6ad332c") (file :path "verification/proofs/agda/Applied/Status.agda" :sha256 "d059344565a55b897824b83b4f676b9a7326ba50a5b35a6da49ab72bb40e8a97") - (file :path "verification/proofs/agda/FeatureReachability.agda" :sha256 "4e39d6ae751d97d3edf57720ccf844d90de3e9ee6603901a04f5eb6494d94564"))) + (file :path "verification/proofs/agda/FeatureReachability.agda" :sha256 "4e39d6ae751d97d3edf57720ccf844d90de3e9ee6603901a04f5eb6494d94564")) + (axioms)) + ; the run reported: check-proofs.sh agda: RESULT: PASS; postulates: none in the first-party cones of FeatureReachability (1 module), Applied/Missing (3) and Applied/IntLaws (6) (receipt :run "https://github.com/hyperpolymath/mathesis/actions/runs/43498592499/job/132138258520" :commit "034f215b3b601aa6bdde7471bdc650bc62c0f56c" :checker "agda 2.7.0.1 (Guix 8edb9da)" - :invocation "agda --safe --without-K --cubical-compatible Applied/IntLaws.agda" - :inputs-sha256 "4db97b78050ef622485ceb179e80ad9f39dbd986cdd6f45af0fd5b32a410c643" + :invocation "bash scripts/check-proofs.sh agda: agda --safe --without-K --cubical-compatible on each gated module of verification/proofs/agda" :state superseded - :reason "replaced by the CI receipt of run 44190913019 on main 8c55804, whose inputs add APP-1's middle clause and THY-1's propositional theorems, checked under the gate that audits definitions as well as theorems (PROOF-POLICY 8.4)" - (axioms) - (inputs-manifest - (file :path "verification/proofs/agda/Applied/Cash.agda" :sha256 "fe231a7679529e7998385d8acdcaf8cde6880e44a5cc5d5cc3c03fd4ac2eea12") - (file :path "verification/proofs/agda/Applied/Cohort.agda" :sha256 "5a485d5fd5329939aa85909e65bc200d886316ebb69e9786b2764dd17eba8d56") - (file :path "verification/proofs/agda/Applied/IntLaws.agda" :sha256 "09285481b29234fced3197b1a4fcd86f284a66f5ce011d23b68bb1aa602c91fb") - (file :path "verification/proofs/agda/Applied/IntNumber.agda" :sha256 "0ba5ca46fd22d0abb4f7ceb0ff73a7857f7a3acc6143a43a68cf5932e8868959") - (file :path "verification/proofs/agda/Applied/Missing.agda" :sha256 "4afb4c82e84bf6411b0f0c19eb6d34869a42bee7d5616624147d1881c78b6fe9") - (file :path "verification/proofs/agda/Applied/Status.agda" :sha256 "d059344565a55b897824b83b4f676b9a7326ba50a5b35a6da49ab72bb40e8a97") - (file :path "verification/proofs/agda/FeatureReachability.agda" :sha256 "4e39d6ae751d97d3edf57720ccf844d90de3e9ee6603901a04f5eb6494d94564")))) + :reason "replaced by the CI receipt of run 44190913019 on main 8c55804, whose inputs add APP-1's middle clause and THY-1's propositional theorems, checked under the gate that audits definitions as well as theorems (PROOF-POLICY 8.4)")) (leg :prover rocq :route re-proved :token proven :state RECONCILED + ; the run reported: check-proofs.sh coq: RESULT: PASS; coqchk -o: no axiom, type-in-type, unsafe (co)fixpoint or assumed positivity; Print Assumptions: closed under the global context for 11 declaration(s) of FeatureReachability.v and 134 of Cohort.v (receipt :run "https://github.com/hyperpolymath/mathesis/actions/runs/44190913019/job/134419742986" :commit "8c55804163fd15deb1e89f0630a72d4ba8588001" :checker "coqc 8.18.0 (Guix 8edb9da)" - :invocation "coqc Cohort.v" + :invocation "bash scripts/check-proofs.sh coq: coqc, Print Assumptions and coqchk -o on each gated module of verification/proofs/coq" :inputs-sha256 "212ebaa375caa0cd2259cfd337ddcaae769c0bd0a14d4f169ad31581c74a15c9" :state current - (axioms) (inputs-manifest (file :path "verification/proofs/coq/Cohort.v" :sha256 "1ff2d86001e2d62c759cdc15ec3affbf352bf690d736cefd6fb7a4ce8771269f") - (file :path "verification/proofs/coq/FeatureReachability.v" :sha256 "e2f90043366fb8061784da4cd12af3278e8a9ea0af78fdba4490f96f28b68cb1"))) + (file :path "verification/proofs/coq/FeatureReachability.v" :sha256 "e2f90043366fb8061784da4cd12af3278e8a9ea0af78fdba4490f96f28b68cb1")) + (axioms)) + ; the run reported: check-proofs.sh coq: RESULT: PASS; Print Assumptions: closed under the global context for 1 theorem(s) of FeatureReachability.v and 82 of Cohort.v (receipt :run "https://github.com/hyperpolymath/mathesis/actions/runs/43498592499/job/132138258520" :commit "034f215b3b601aa6bdde7471bdc650bc62c0f56c" :checker "coqc 8.18.0 (Guix 8edb9da)" - :invocation "coqc Cohort.v" - :inputs-sha256 "1c5814d6040f119382ebeccffe477cbd7d8485a45cf9e8877782316378e28709" + :invocation "bash scripts/check-proofs.sh coq: coqc and Print Assumptions on each gated module of verification/proofs/coq" :state superseded - :reason "replaced by the CI receipt of run 44190913019 on main 8c55804, whose inputs add APP-1's middle clause and THY-1's propositional theorems, checked under the gate that audits definitions as well as theorems (PROOF-POLICY 8.4)" - (axioms) - (inputs-manifest - (file :path "verification/proofs/coq/Cohort.v" :sha256 "2519cdbdb3b22ee5132e5708bbbeb9e87e3b2d8c2c318329c96c0545863b6260") - (file :path "verification/proofs/coq/FeatureReachability.v" :sha256 "e2f90043366fb8061784da4cd12af3278e8a9ea0af78fdba4490f96f28b68cb1")))) + :reason "replaced by the CI receipt of run 44190913019 on main 8c55804, whose inputs add APP-1's middle clause and THY-1's propositional theorems, checked under the gate that audits definitions as well as theorems (PROOF-POLICY 8.4)")) (leg :prover lean :route re-proved :token proven :state RECONCILED + ; the run reported: check-proofs.sh lean4: RESULT: PASS; axioms: none for 8 theorem(s) and 48 definition(s) of FeatureReachability.lean, and 102 theorem(s) and 128 definition(s) of Cohort.lean (receipt :run "https://github.com/hyperpolymath/mathesis/actions/runs/44190913019/job/134419742986" :commit "8c55804163fd15deb1e89f0630a72d4ba8588001" :checker "lean 4.29.0 (Guix 8edb9da)" - :invocation "lean Cohort.lean" + :invocation "bash scripts/check-proofs.sh lean4: lean and the axiom audit on each gated module of verification/proofs/lean4" :inputs-sha256 "24d292acc71fd0f7ece8dd21a0f355f101b63513a66f41b0ba4a9364ac64aa0b" :state current - (axioms) (inputs-manifest (file :path "verification/proofs/lean4/Cohort.lean" :sha256 "e3ff1d650c4ee0dc732ec0c028403476050885fe7e2b51eb8bf24fa9eafe0052") (file :path "verification/proofs/lean4/FeatureReachability.lean" :sha256 "55a4116e84cb8d6a230bcc3d85fa9cef1e74fe1520b652830f6e2cb1ce26e39b") - (file :path "verification/proofs/lean4/lean-toolchain" :sha256 "651c8accb402b0c071cd336e9d3dc0a55516b1bfb434ddc4801f14936785b1d2"))) + (file :path "verification/proofs/lean4/lean-toolchain" :sha256 "651c8accb402b0c071cd336e9d3dc0a55516b1bfb434ddc4801f14936785b1d2")) + (axioms)) + ; the run reported: check-proofs.sh lean4: RESULT: PASS; axioms: none for 2 declared theorem(s) of FeatureReachability.lean and 95 of Cohort.lean (receipt :run "https://github.com/hyperpolymath/mathesis/actions/runs/43498592499/job/132138258520" :commit "034f215b3b601aa6bdde7471bdc650bc62c0f56c" :checker "lean 4.29.0 (Guix 8edb9da)" - :invocation "lean Cohort.lean" - :inputs-sha256 "de2e3324f91b25f4a05658dfcfb435c7417709667b8766f7aeaa832fa874c4c1" + :invocation "bash scripts/check-proofs.sh lean4: lean and the axiom audit of declared theorems on each gated module of verification/proofs/lean4" :state superseded - :reason "replaced by the CI receipt of run 44190913019 on main 8c55804, whose inputs add APP-1's middle clause and THY-1's propositional theorems, checked under the gate that audits definitions as well as theorems (PROOF-POLICY 8.4)" - (axioms) - (inputs-manifest - (file :path "verification/proofs/lean4/Cohort.lean" :sha256 "b91e2aa7b1322284d67710ea918858497bc1245a6b941448df2deba4b521ce10") - (file :path "verification/proofs/lean4/FeatureReachability.lean" :sha256 "4158e54f85c8e83e49789869a4e9b12fe4b8d7460981f5c8442479268f17d55a") - (file :path "verification/proofs/lean4/lean-toolchain" :sha256 "651c8accb402b0c071cd336e9d3dc0a55516b1bfb434ddc4801f14936785b1d2"))))) + :reason "replaced by the CI receipt of run 44190913019 on main 8c55804, whose inputs add APP-1's middle clause and THY-1's propositional theorems, checked under the gate that audits definitions as well as theorems (PROOF-POLICY 8.4); for THY-1 it is also the first under the gate that fails on an empty audit: this receipt's empty axiom list came from an audit that inspected none of THY-1's results, which are definitions (proof audit 2026-11-16, finding 31)"))) (claim :id "APP-4" :pwg PWG-2ii :foundation-diverse #f (leg :prover agda :route source :token proven :state AGDA-VERIFIED + ; the run reported: check-proofs.sh agda: RESULT: PASS; postulates: none in the first-party cones of FeatureReachability (1 module), Applied/Missing (3) and Applied/IntLaws (6) (receipt :run "https://github.com/hyperpolymath/mathesis/actions/runs/44190913019/job/134419742986" :commit "8c55804163fd15deb1e89f0630a72d4ba8588001" :checker "agda 2.7.0.1 (Guix 8edb9da)" - :invocation "agda --safe --without-K --cubical-compatible Applied/Missing.agda" + :invocation "bash scripts/check-proofs.sh agda: agda --safe --without-K --cubical-compatible on each gated module of verification/proofs/agda" :inputs-sha256 "445160a6f857efe1a4a43ad3757df941ae29b98c988b9e5f51ec36ca81f5c4d3" :state current - (axioms) (inputs-manifest (file :path "verification/proofs/agda/Applied/Cash.agda" :sha256 "fe231a7679529e7998385d8acdcaf8cde6880e44a5cc5d5cc3c03fd4ac2eea12") (file :path "verification/proofs/agda/Applied/Cohort.agda" :sha256 "5a485d5fd5329939aa85909e65bc200d886316ebb69e9786b2764dd17eba8d56") @@ -406,66 +342,52 @@ (file :path "verification/proofs/agda/Applied/IntNumber.agda" :sha256 "0ba5ca46fd22d0abb4f7ceb0ff73a7857f7a3acc6143a43a68cf5932e8868959") (file :path "verification/proofs/agda/Applied/Missing.agda" :sha256 "b2d01609be9419e8cbca8578dc128c3251cc947a8c6c10e0b6f16ac5c6ad332c") (file :path "verification/proofs/agda/Applied/Status.agda" :sha256 "d059344565a55b897824b83b4f676b9a7326ba50a5b35a6da49ab72bb40e8a97") - (file :path "verification/proofs/agda/FeatureReachability.agda" :sha256 "4e39d6ae751d97d3edf57720ccf844d90de3e9ee6603901a04f5eb6494d94564"))) + (file :path "verification/proofs/agda/FeatureReachability.agda" :sha256 "4e39d6ae751d97d3edf57720ccf844d90de3e9ee6603901a04f5eb6494d94564")) + (axioms)) + ; the run reported: check-proofs.sh agda: RESULT: PASS; postulates: none in the first-party cones of FeatureReachability (1 module), Applied/Missing (3) and Applied/IntLaws (6) (receipt :run "https://github.com/hyperpolymath/mathesis/actions/runs/43498592499/job/132138258520" :commit "034f215b3b601aa6bdde7471bdc650bc62c0f56c" :checker "agda 2.7.0.1 (Guix 8edb9da)" - :invocation "agda --safe --without-K --cubical-compatible Applied/Missing.agda" - :inputs-sha256 "4db97b78050ef622485ceb179e80ad9f39dbd986cdd6f45af0fd5b32a410c643" + :invocation "bash scripts/check-proofs.sh agda: agda --safe --without-K --cubical-compatible on each gated module of verification/proofs/agda" :state superseded - :reason "replaced by the CI receipt of run 44190913019 on main 8c55804, whose inputs add APP-1's middle clause and THY-1's propositional theorems, checked under the gate that audits definitions as well as theorems (PROOF-POLICY 8.4)" - (axioms) - (inputs-manifest - (file :path "verification/proofs/agda/Applied/Cash.agda" :sha256 "fe231a7679529e7998385d8acdcaf8cde6880e44a5cc5d5cc3c03fd4ac2eea12") - (file :path "verification/proofs/agda/Applied/Cohort.agda" :sha256 "5a485d5fd5329939aa85909e65bc200d886316ebb69e9786b2764dd17eba8d56") - (file :path "verification/proofs/agda/Applied/IntLaws.agda" :sha256 "09285481b29234fced3197b1a4fcd86f284a66f5ce011d23b68bb1aa602c91fb") - (file :path "verification/proofs/agda/Applied/IntNumber.agda" :sha256 "0ba5ca46fd22d0abb4f7ceb0ff73a7857f7a3acc6143a43a68cf5932e8868959") - (file :path "verification/proofs/agda/Applied/Missing.agda" :sha256 "4afb4c82e84bf6411b0f0c19eb6d34869a42bee7d5616624147d1881c78b6fe9") - (file :path "verification/proofs/agda/Applied/Status.agda" :sha256 "d059344565a55b897824b83b4f676b9a7326ba50a5b35a6da49ab72bb40e8a97") - (file :path "verification/proofs/agda/FeatureReachability.agda" :sha256 "4e39d6ae751d97d3edf57720ccf844d90de3e9ee6603901a04f5eb6494d94564")))) + :reason "replaced by the CI receipt of run 44190913019 on main 8c55804, whose inputs add APP-1's middle clause and THY-1's propositional theorems, checked under the gate that audits definitions as well as theorems (PROOF-POLICY 8.4)")) (leg :prover rocq :route re-proved :token proven :state RECONCILED + ; the run reported: check-proofs.sh coq: RESULT: PASS; coqchk -o: no axiom, type-in-type, unsafe (co)fixpoint or assumed positivity; Print Assumptions: closed under the global context for 11 declaration(s) of FeatureReachability.v and 134 of Cohort.v (receipt :run "https://github.com/hyperpolymath/mathesis/actions/runs/44190913019/job/134419742986" :commit "8c55804163fd15deb1e89f0630a72d4ba8588001" :checker "coqc 8.18.0 (Guix 8edb9da)" - :invocation "coqc Cohort.v" + :invocation "bash scripts/check-proofs.sh coq: coqc, Print Assumptions and coqchk -o on each gated module of verification/proofs/coq" :inputs-sha256 "212ebaa375caa0cd2259cfd337ddcaae769c0bd0a14d4f169ad31581c74a15c9" :state current - (axioms) (inputs-manifest (file :path "verification/proofs/coq/Cohort.v" :sha256 "1ff2d86001e2d62c759cdc15ec3affbf352bf690d736cefd6fb7a4ce8771269f") - (file :path "verification/proofs/coq/FeatureReachability.v" :sha256 "e2f90043366fb8061784da4cd12af3278e8a9ea0af78fdba4490f96f28b68cb1"))) + (file :path "verification/proofs/coq/FeatureReachability.v" :sha256 "e2f90043366fb8061784da4cd12af3278e8a9ea0af78fdba4490f96f28b68cb1")) + (axioms)) + ; the run reported: check-proofs.sh coq: RESULT: PASS; Print Assumptions: closed under the global context for 1 theorem(s) of FeatureReachability.v and 82 of Cohort.v (receipt :run "https://github.com/hyperpolymath/mathesis/actions/runs/43498592499/job/132138258520" :commit "034f215b3b601aa6bdde7471bdc650bc62c0f56c" :checker "coqc 8.18.0 (Guix 8edb9da)" - :invocation "coqc Cohort.v" - :inputs-sha256 "1c5814d6040f119382ebeccffe477cbd7d8485a45cf9e8877782316378e28709" + :invocation "bash scripts/check-proofs.sh coq: coqc and Print Assumptions on each gated module of verification/proofs/coq" :state superseded - :reason "replaced by the CI receipt of run 44190913019 on main 8c55804, whose inputs add APP-1's middle clause and THY-1's propositional theorems, checked under the gate that audits definitions as well as theorems (PROOF-POLICY 8.4)" - (axioms) - (inputs-manifest - (file :path "verification/proofs/coq/Cohort.v" :sha256 "2519cdbdb3b22ee5132e5708bbbeb9e87e3b2d8c2c318329c96c0545863b6260") - (file :path "verification/proofs/coq/FeatureReachability.v" :sha256 "e2f90043366fb8061784da4cd12af3278e8a9ea0af78fdba4490f96f28b68cb1")))) + :reason "replaced by the CI receipt of run 44190913019 on main 8c55804, whose inputs add APP-1's middle clause and THY-1's propositional theorems, checked under the gate that audits definitions as well as theorems (PROOF-POLICY 8.4)")) (leg :prover lean :route re-proved :token proven :state RECONCILED + ; the run reported: check-proofs.sh lean4: RESULT: PASS; axioms: none for 8 theorem(s) and 48 definition(s) of FeatureReachability.lean, and 102 theorem(s) and 128 definition(s) of Cohort.lean (receipt :run "https://github.com/hyperpolymath/mathesis/actions/runs/44190913019/job/134419742986" :commit "8c55804163fd15deb1e89f0630a72d4ba8588001" :checker "lean 4.29.0 (Guix 8edb9da)" - :invocation "lean Cohort.lean" + :invocation "bash scripts/check-proofs.sh lean4: lean and the axiom audit on each gated module of verification/proofs/lean4" :inputs-sha256 "24d292acc71fd0f7ece8dd21a0f355f101b63513a66f41b0ba4a9364ac64aa0b" :state current - (axioms) (inputs-manifest (file :path "verification/proofs/lean4/Cohort.lean" :sha256 "e3ff1d650c4ee0dc732ec0c028403476050885fe7e2b51eb8bf24fa9eafe0052") (file :path "verification/proofs/lean4/FeatureReachability.lean" :sha256 "55a4116e84cb8d6a230bcc3d85fa9cef1e74fe1520b652830f6e2cb1ce26e39b") - (file :path "verification/proofs/lean4/lean-toolchain" :sha256 "651c8accb402b0c071cd336e9d3dc0a55516b1bfb434ddc4801f14936785b1d2"))) + (file :path "verification/proofs/lean4/lean-toolchain" :sha256 "651c8accb402b0c071cd336e9d3dc0a55516b1bfb434ddc4801f14936785b1d2")) + (axioms)) + ; the run reported: check-proofs.sh lean4: RESULT: PASS; axioms: none for 2 declared theorem(s) of FeatureReachability.lean and 95 of Cohort.lean (receipt :run "https://github.com/hyperpolymath/mathesis/actions/runs/43498592499/job/132138258520" :commit "034f215b3b601aa6bdde7471bdc650bc62c0f56c" :checker "lean 4.29.0 (Guix 8edb9da)" - :invocation "lean Cohort.lean" - :inputs-sha256 "de2e3324f91b25f4a05658dfcfb435c7417709667b8766f7aeaa832fa874c4c1" + :invocation "bash scripts/check-proofs.sh lean4: lean and the axiom audit of declared theorems on each gated module of verification/proofs/lean4" :state superseded - :reason "replaced by the CI receipt of run 44190913019 on main 8c55804, whose inputs add APP-1's middle clause and THY-1's propositional theorems, checked under the gate that audits definitions as well as theorems (PROOF-POLICY 8.4)" - (axioms) - (inputs-manifest - (file :path "verification/proofs/lean4/Cohort.lean" :sha256 "b91e2aa7b1322284d67710ea918858497bc1245a6b941448df2deba4b521ce10") - (file :path "verification/proofs/lean4/FeatureReachability.lean" :sha256 "4158e54f85c8e83e49789869a4e9b12fe4b8d7460981f5c8442479268f17d55a") - (file :path "verification/proofs/lean4/lean-toolchain" :sha256 "651c8accb402b0c071cd336e9d3dc0a55516b1bfb434ddc4801f14936785b1d2")))))) + :reason "replaced by the CI receipt of run 44190913019 on main 8c55804, whose inputs add APP-1's middle clause and THY-1's propositional theorems, checked under the gate that audits definitions as well as theorems (PROOF-POLICY 8.4); for THY-1 it is also the first under the gate that fails on an empty audit: this receipt's empty axiom list came from an audit that inspected none of THY-1's results, which are definitions (proof audit 2026-11-16, finding 31)"))) +) diff --git a/verification/receipts/theory_runs.ledger b/verification/receipts/theory_runs.ledger new file mode 100644 index 00000000..2fc8e6b2 --- /dev/null +++ b/verification/receipts/theory_runs.ledger @@ -0,0 +1,28 @@ +# SPDX-License-Identifier: CC-BY-SA-4.0 +# SPDX-FileCopyrightText: 2026 Jonathan D.A. Jewell (hyperpolymath) +# The run ledger of the receipt of Mathesis (verification/receipts/theory_praxis.deed), +# read by scripts/grade-receipt.sh through the shared generator of standards +# (scripts/proof-receipt.sh). One row a run and prover: +# prover|run|commit|checker|invocation|inputs sha256|what the run reported|state|reason|axioms[|imports|trusted base] +# Append-only: a new run is a new row (grade-receipt.sh --record), and a row the +# default branch holds is never changed or dropped. +# The rows before run 43498592499 predate the inputs digest (PROOF-POLICY 8.5.1): +# their digest is computed from git at the row's commit with the pinned +# proof-inputs-sha256.sh, over the input set the same rules give for that run +# (Agda: the cone of THY-1's root; Rocq and Lean: each file the run compiled, +# and lean-toolchain). Those runs checked THY-1 only (grade-receipt.sh, +# receipt_run_scope). Their invocations are the ones the receipt recorded; the +# runs from 43498592499 on checked every claim through the gate, whose +# invocation each row names. +agda|local run, 2026-11-09|f68b78d6ceb8d3c83f96f5ab8e57779442a8834f|agda 2.6.3 (Ubuntu 24.04 agda package)|agda --safe --without-K --cubical-compatible FeatureReachability.agda|35199233097c51127dd8a94440cae7a0c2507a920ba744207732b7c8b0932666|local run: the module checks; --safe refuses postulates, and a comment-aware scan finds none in the module|superseded|replaced by the CI receipt in the pinned Guix, Agda 2.7.0.1| +rocq|local run, 2026-11-09|f1be654e69b23873ea40651cb40e0e095ac53680|coqc 8.18.0 (Ubuntu 24.04 coq package)|coqc FeatureReachability.v|21dbe44f56ee4442247715b50d8a384b834b3232ba1ff2de9201bbbfbff92915|local run: compiles; Print Assumptions: closed under the global context for absent_under_all_features, reach_mono and edge_mono|superseded|replaced by the CI receipt in the pinned Guix| +lean|local run, 2026-11-09|f1be654e69b23873ea40651cb40e0e095ac53680|lean 4.15.0 (11651562caae, release archive)|lean FeatureReachability.lean|c105ee55e8ea57b9c11d6a1ff9245e0a550a5bd7301eddbb056e8719e4c47724|local run: compiles; #print axioms: none for absentUnderAllFeatures, reachMono and onMono|superseded|replaced by the CI receipt in the pinned Guix, Lean 4.29.0| +agda|https://github.com/hyperpolymath/mathesis/actions/runs/42896264290/job/130110238086|336768958d01257caae14cb81fb54197c2617d97|agda 2.7.0.1 (Guix 8edb9da)|agda --safe --without-K --cubical-compatible FeatureReachability.agda|35199233097c51127dd8a94440cae7a0c2507a920ba744207732b7c8b0932666|check-proofs.sh agda: RESULT: PASS; FeatureReachability.agda: postulates: none in the 1 first-party module(s) of the import cone|superseded|replaced by the CI receipt of run 43498592499 on 034f215, which records the inputs digest and the axioms (PROOF-POLICY 8.5.1, standards d9b03a3)| +rocq|https://github.com/hyperpolymath/mathesis/actions/runs/42896264290/job/130110238086|336768958d01257caae14cb81fb54197c2617d97|coqc 8.18.0 (Guix 8edb9da)|coqc FeatureReachability.v|794ed1c5179384913e037570a9490eb003c320a3aae2df2efcf4066ed5f57ae4|check-proofs.sh coq: RESULT: PASS; FeatureReachability.v: Print Assumptions: closed under the global context for 1 theorem(s): absent_under_all_features|superseded|replaced by the CI receipt of run 43498592499 on 034f215, which records the inputs digest and the axioms (PROOF-POLICY 8.5.1, standards d9b03a3)| +lean|https://github.com/hyperpolymath/mathesis/actions/runs/42896264290/job/130110238086|336768958d01257caae14cb81fb54197c2617d97|lean 4.29.0 (Guix 8edb9da)|lean FeatureReachability.lean|ee5e7b1347a394a9050d815f30915aacdd85ffa9219811b29b0faa341c7d8e97|check-proofs.sh lean4: RESULT: PASS; FeatureReachability.lean: axioms: none for 2 declared theorem(s)|superseded|replaced by the CI receipt of run 43498592499 on 034f215, which records the inputs digest and the axioms (PROOF-POLICY 8.5.1, standards d9b03a3)| +agda|https://github.com/hyperpolymath/mathesis/actions/runs/43498592499/job/132138258520|034f215b3b601aa6bdde7471bdc650bc62c0f56c|agda 2.7.0.1 (Guix 8edb9da)|bash scripts/check-proofs.sh agda: agda --safe --without-K --cubical-compatible on each gated module of verification/proofs/agda|4db97b78050ef622485ceb179e80ad9f39dbd986cdd6f45af0fd5b32a410c643|check-proofs.sh agda: RESULT: PASS; postulates: none in the first-party cones of FeatureReachability (1 module), Applied/Missing (3) and Applied/IntLaws (6)|superseded|replaced by the CI receipt of run 44190913019 on main 8c55804, whose inputs add APP-1's middle clause and THY-1's propositional theorems, checked under the gate that audits definitions as well as theorems (PROOF-POLICY 8.4)| +rocq|https://github.com/hyperpolymath/mathesis/actions/runs/43498592499/job/132138258520|034f215b3b601aa6bdde7471bdc650bc62c0f56c|coqc 8.18.0 (Guix 8edb9da)|bash scripts/check-proofs.sh coq: coqc and Print Assumptions on each gated module of verification/proofs/coq|1c5814d6040f119382ebeccffe477cbd7d8485a45cf9e8877782316378e28709|check-proofs.sh coq: RESULT: PASS; Print Assumptions: closed under the global context for 1 theorem(s) of FeatureReachability.v and 82 of Cohort.v|superseded|replaced by the CI receipt of run 44190913019 on main 8c55804, whose inputs add APP-1's middle clause and THY-1's propositional theorems, checked under the gate that audits definitions as well as theorems (PROOF-POLICY 8.4)| +lean|https://github.com/hyperpolymath/mathesis/actions/runs/43498592499/job/132138258520|034f215b3b601aa6bdde7471bdc650bc62c0f56c|lean 4.29.0 (Guix 8edb9da)|bash scripts/check-proofs.sh lean4: lean and the axiom audit of declared theorems on each gated module of verification/proofs/lean4|de2e3324f91b25f4a05658dfcfb435c7417709667b8766f7aeaa832fa874c4c1|check-proofs.sh lean4: RESULT: PASS; axioms: none for 2 declared theorem(s) of FeatureReachability.lean and 95 of Cohort.lean|superseded|replaced by the CI receipt of run 44190913019 on main 8c55804, whose inputs add APP-1's middle clause and THY-1's propositional theorems, checked under the gate that audits definitions as well as theorems (PROOF-POLICY 8.4); for THY-1 it is also the first under the gate that fails on an empty audit: this receipt's empty axiom list came from an audit that inspected none of THY-1's results, which are definitions (proof audit 2026-11-16, finding 31)| +agda|https://github.com/hyperpolymath/mathesis/actions/runs/44190913019/job/134419742986|8c55804163fd15deb1e89f0630a72d4ba8588001|agda 2.7.0.1 (Guix 8edb9da)|bash scripts/check-proofs.sh agda: agda --safe --without-K --cubical-compatible on each gated module of verification/proofs/agda|445160a6f857efe1a4a43ad3757df941ae29b98c988b9e5f51ec36ca81f5c4d3|check-proofs.sh agda: RESULT: PASS; postulates: none in the first-party cones of FeatureReachability (1 module), Applied/Missing (3) and Applied/IntLaws (6)|current||||53dbf4287873164cf21340398e5f729486fb550e1c884b6e907892d63fa4a954 +rocq|https://github.com/hyperpolymath/mathesis/actions/runs/44190913019/job/134419742986|8c55804163fd15deb1e89f0630a72d4ba8588001|coqc 8.18.0 (Guix 8edb9da)|bash scripts/check-proofs.sh coq: coqc, Print Assumptions and coqchk -o on each gated module of verification/proofs/coq|212ebaa375caa0cd2259cfd337ddcaae769c0bd0a14d4f169ad31581c74a15c9|check-proofs.sh coq: RESULT: PASS; coqchk -o: no axiom, type-in-type, unsafe (co)fixpoint or assumed positivity; Print Assumptions: closed under the global context for 11 declaration(s) of FeatureReachability.v and 134 of Cohort.v|current|| +lean|https://github.com/hyperpolymath/mathesis/actions/runs/44190913019/job/134419742986|8c55804163fd15deb1e89f0630a72d4ba8588001|lean 4.29.0 (Guix 8edb9da)|bash scripts/check-proofs.sh lean4: lean and the axiom audit on each gated module of verification/proofs/lean4|24d292acc71fd0f7ece8dd21a0f355f101b63513a66f41b0ba4a9364ac64aa0b|check-proofs.sh lean4: RESULT: PASS; axioms: none for 8 theorem(s) and 48 definition(s) of FeatureReachability.lean, and 102 theorem(s) and 128 definition(s) of Cohort.lean|current|| From 09e4e2a70ef93b7e1bea82676f374c2019d1a902 Mon Sep 17 00:00:00 2001 From: Claude Date: Mon, 23 Nov 2026 23:45:44 +0000 Subject: [PATCH 2/7] gate: write the receipt report at source; list each green run's ledger rows on main scripts/check-proofs.sh writes, when PROOF_REPORT_DIR is set and the run passes, $PROOF_REPORT_DIR/: the checker (" "), the axioms reported ("none": a run passes only when every gated module's audit found none) and what the run reported (the result, then each gated module with the summary of its audit). The file is removed first, so a run that fails leaves none. The audit's notes are unchanged in the log. The Proof Policy Gate sets PROOF_REPORT_DIR on each lane's gate (not on its planted controls). On main, a new step turns the three reports into ledger rows with `grade-receipt.sh --run-row`, checks them with --emit-run (the ledger, then the receipt they give, read with the pinned reader and its negative control) and lists them in the job summary. No log is read. CI does not write to the repository: `just receipt-record ROWS` adds the rows in a pull request. Tested here with Rocq 8.18.0 (the pinned version), Lean 4.29.0 (the pinned version) and Agda 2.6.3 (Ubuntu's; CI pins 2.7.0.1): each report matches the declaration counts of run 44190913019; a failing run removes a stale report; the planted controls still hold. The rows step, run locally on main 3bbd137, gave rows whose digests equal the current receipts', --emit-run accepted them, --record then --check passed, and a second --record of the same run was refused (all reverted; nothing recorded). Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_01J4QvDfdGcZ6qgY7JabLsEi --- .github/workflows/agda-proof-policy.yml | 47 +++++++++++++++++++++++-- scripts/check-proofs.sh | 41 +++++++++++++++++---- 2 files changed, 79 insertions(+), 9 deletions(-) diff --git a/.github/workflows/agda-proof-policy.yml b/.github/workflows/agda-proof-policy.yml index d5e7193f..0e4b96c6 100644 --- a/.github/workflows/agda-proof-policy.yml +++ b/.github/workflows/agda-proof-policy.yml @@ -80,21 +80,21 @@ jobs: if: ${{ !cancelled() && steps.toolchain.outcome == 'success' }} run: | guix time-machine -C build/channels.scm -- shell -m build/manifest.scm -- sh -euc ' - bash scripts/check-proofs.sh agda + PROOF_REPORT_DIR="$RUNNER_TEMP/proof-report" bash scripts/check-proofs.sh agda bash tests/proofs/gate_controls_test.sh agda' - name: Rocq lane (gate, then planted controls) if: ${{ !cancelled() && steps.toolchain.outcome == 'success' }} run: | guix time-machine -C build/channels.scm -- shell -m build/manifest.scm -- sh -euc ' - bash scripts/check-proofs.sh coq + PROOF_REPORT_DIR="$RUNNER_TEMP/proof-report" bash scripts/check-proofs.sh coq bash tests/proofs/gate_controls_test.sh coq' - name: Lean lane (gate, then planted controls) if: ${{ !cancelled() && steps.toolchain.outcome == 'success' }} run: | guix time-machine -C build/channels.scm -- shell -m build/manifest.scm -- sh -euc ' - bash scripts/check-proofs.sh lean4 + PROOF_REPORT_DIR="$RUNNER_TEMP/proof-report" bash scripts/check-proofs.sh lean4 bash tests/proofs/gate_controls_test.sh lean4' # The golden path (re-anchoring plan WO 2.5): `just check` runs the view @@ -142,3 +142,44 @@ jobs: bun --version just check bash tests/golden/check_controls_test.sh' + + # The ledger rows of this run (PROOF-POLICY §8.5.1; standards + # scripts/proof-receipt.sh, which scripts/grade-receipt.sh sources). On + # main only: a receipt names a commit on the default branch (§8.5.3). Each + # lane's gate wrote its own report above (check-proofs.sh, + # PROOF_REPORT_DIR), and only a run that passed writes one; nothing is read + # back from the log. --emit-run checks the rows with the ledger and reads + # the receipt they give with the pinned reader and its negative control. + # The rows go to the job summary. `bash scripts/grade-receipt.sh --record + # ROWS` adds them to the ledger and rewrites the receipt, in a pull request + # that --check and review accept: CI does not write to the repository. + - name: Ledger rows of this run (main only) + if: ${{ success() && github.ref == 'refs/heads/main' && github.event_name != 'pull_request' }} + env: + MATHESIS_STANDARDS: ${{ runner.temp }}/receipt-reader + run: | + set -euo pipefail + report="$RUNNER_TEMP/proof-report" + guix="$(sed -n 's/.*(commit "\([0-9a-f]\{40\}\)").*/\1/p' build/channels.scm | head -1)" + [ -n "$guix" ] || { echo "::error::build/channels.scm names no 40-hex Guix commit"; exit 1; } + run="$GITHUB_SERVER_URL/$GITHUB_REPOSITORY/actions/runs/$GITHUB_RUN_ID/attempts/$GITHUB_RUN_ATTEMPT" + rows="$RUNNER_TEMP/ledger-rows" + : > "$rows" + for lane in agda:agda coq:rocq lean4:lean; do + gate="${lane%%:*}"; prover="${lane#*:}"; f="$report/$gate" + [ -f "$f" ] && [ "$(wc -l < "$f")" -eq 3 ] || { echo "::error::the $gate gate wrote no receipt report"; exit 1; } + [ "$(sed -n 2p "$f")" = none ] || { echo "::error::the $gate gate reported axioms: $(sed -n 2p "$f")"; exit 1; } + bash scripts/grade-receipt.sh --run-row "$prover" --run "$run" --commit "$GITHUB_SHA" \ + --checker "$(sed -n 1p "$f") (Guix ${guix:0:7})" --reported "$(sed -n 3p "$f")" --axioms none >> "$rows" + done + bash scripts/grade-receipt.sh --emit-run "$rows" --out "$RUNNER_TEMP/receipt/theory_praxis.deed" + { + echo "### Ledger rows of this run" + echo + echo "Record them in a pull request: put these lines in a file ROWS, then run" + echo "\`bash scripts/grade-receipt.sh --record ROWS\`." + echo + echo '```' + cat "$rows" + echo '```' + } >> "$GITHUB_STEP_SUMMARY" diff --git a/scripts/check-proofs.sh b/scripts/check-proofs.sh index d9f12046..9f63b96c 100755 --- a/scripts/check-proofs.sh +++ b/scripts/check-proofs.sh @@ -140,8 +140,9 @@ check_one() { # each gated module: the SHA-256 of the file and the axioms reported. audit_one() { # $1 source-root, $2 module; sets LAST_OUT on failure; returns 0 iff clean. - # On success AUDIT_NOTE holds the axiom report that a receipt records (PWG-1). - AUDIT_NOTE="" + # On success AUDIT_NOTE holds the axiom report that a receipt records (PWG-1), + # and AUDIT_SUMMARY the same report without the list of names it covers. + AUDIT_NOTE=""; AUDIT_SUMMARY="" local root="$1" rel="$2" dir out rc base copy names expect got dir="$(mktemp -d)" case "$PROVER" in @@ -161,7 +162,8 @@ audit_one() { done [ -s "$dir/own" ] || { LAST_OUT="axiom audit: no first-party module in the import cone"; rm -rf "$dir"; return 1; } set +e; mapfile -t own <"$dir/own"; out="$(bash "$ROOT/scripts/scan-postulates.sh" "${own[@]}" 2>&1)"; rc=$?; set -e - AUDIT_NOTE="postulates: none in the ${#own[@]} first-party module(s) of the import cone: $(sed -n 's/.*label="\([^"]*\)".*/\1/p' "$dir/cone.dot" | LC_ALL=C sort -u | tr '\n' ' ')" + AUDIT_SUMMARY="postulates: none in the ${#own[@]} first-party module(s) of the import cone" + AUDIT_NOTE="$AUDIT_SUMMARY: $(sed -n 's/.*label="\([^"]*\)".*/\1/p' "$dir/cone.dot" | LC_ALL=C sort -u | tr '\n' ' ')" ;; coq) if ! command -v coqchk >/dev/null 2>&1; then @@ -217,7 +219,8 @@ audit_one() { grep -qxF "* Theory: Set is predicative" <<<"$summary" || kernel_ok=0 fi if [ "$rc" -eq 0 ] && [ "$got" -eq "$expect" ] && [ "$kernel_ok" -eq 1 ]; then rc=0 - AUDIT_NOTE="coqchk -o: no axiom, type-in-type, unsafe (co)fixpoint or assumed positivity in the library or its import cone; Print Assumptions: closed under the global context for $expect declaration(s): $(tr '\n' ' ' <<<"$names")" + AUDIT_SUMMARY="coqchk -o: no axiom, type-in-type, unsafe (co)fixpoint or assumed positivity in the library or its import cone; Print Assumptions: closed under the global context for $expect declaration(s)" + AUDIT_NOTE="$AUDIT_SUMMARY: $(tr '\n' ' ' <<<"$names")" elif [ "$rc" -eq 0 ] && [ "$got" -eq "$expect" ]; then rc=1 out="axiom audit: the kernel checker (coqchk -o) reports an assumption, or did not run (exit $chk_rc)"$'\n'"${summary:-$chk}" else rc=1; out="axiom audit: $got of $expect declaration(s) closed under the global context"$'\n'"$out"; fi @@ -257,7 +260,7 @@ LEAN elif [ $((thms + defs)) -eq 0 ]; then rc=1; out="axiom audit: no theorem or definition declared, so nothing was audited" fi - [ "$rc" -eq 0 ] && AUDIT_NOTE="axioms: none for $thms theorem(s) and $defs definition(s) with a source range" + [ "$rc" -eq 0 ] && AUDIT_NOTE="axioms: none for $thms theorem(s) and $defs definition(s) with a source range" && AUDIT_SUMMARY="$AUDIT_NOTE" ;; *) rc=0; out="" ;; esac @@ -280,7 +283,24 @@ if ! command -v "$CMD" >/dev/null 2>&1; then } >&2 exit 1 fi -"$CMD" --version 2>/dev/null | head -1 || true +TOOL_VERSION="$("$CMD" --version 2>/dev/null | head -1 || true)" +printf '%s\n' "$TOOL_VERSION" + +# --- the receipt report: what a ledger row of this run records ----------------- +# With PROOF_REPORT_DIR set, a run that passes writes $PROOF_REPORT_DIR/$PROVER, +# three lines that scripts/grade-receipt.sh --run-row takes as they are (the +# Proof Policy Gate does, on main; PROOF-POLICY §8.5.1): +# 1. the checker, " ", from the version line above; +# 2. the axioms the run reported: "none", since a run passes only when every +# gated module's audit found none; +# 3. what the run reported: the result, then each gated module and the +# summary of its audit (AUDIT_SUMMARY), in MANIFEST order. +# The file is removed first, so a run that fails leaves none behind: a report +# exists only for a run that passed. Nothing is read back from the log. +if [ -n "${PROOF_REPORT_DIR:-}" ]; then + mkdir -p "$PROOF_REPORT_DIR" + rm -f -- "${PROOF_REPORT_DIR:?}/${PROVER:?}" +fi # --- Agda: a data directory it can write --------------------------------------- # Agda keeps the interfaces of its own primitive modules (Agda.Primitive and the @@ -314,6 +334,7 @@ if [ ! -f "$MANIFEST_FILE" ]; then fi fails=0 +reported="" unexpected_pass=0 listed_tmp="$(mktemp)" trap 'rm -f "$listed_tmp"' EXIT @@ -334,6 +355,7 @@ while IFS='|' read -r root rel status note; do # The receipt fields of PWG-1: a digest of the input and the axioms reported. echo " sha256 $(sha256sum "$ROOT/$root/$rel" | cut -d' ' -f1)" echo " $AUDIT_NOTE" + reported+="; $rel: $AUDIT_SUMMARY" else echo "PASS -- UNEXPECTED (quarantined module now compiles)" echo " Promote '$rel' to 'gated' in $MANIFEST_FILE and update docs/status/ROADMAP.adoc." @@ -381,3 +403,10 @@ if [ "$fails" -gt 0 ] || [ "$unexpected_pass" -gt 0 ]; then exit 1 fi echo "RESULT: PASS -- gated modules compile; quarantined modules still fail as recorded" +if [ -n "${PROOF_REPORT_DIR:-}" ]; then + version="$(grep -oE '[0-9]+(\.[0-9]+)+' <<<"$TOOL_VERSION" | head -1 || true)" + [ -n "$version" ] || { echo "FAIL: no version in '$TOOL_VERSION', so the receipt report cannot name the checker" >&2; exit 1; } + [ -n "$reported" ] || { echo "FAIL: no gated module passed, so there is nothing for a receipt to record" >&2; exit 1; } + printf '%s %s\nnone\ncheck-proofs.sh %s: RESULT: PASS%s\n' "$CMD" "$version" "$PROVER" "$reported" >"$PROOF_REPORT_DIR/$PROVER" + echo "receipt report: $PROOF_REPORT_DIR/$PROVER" +fi From 0ac418c14c86ce56386765880fb446b19315faee Mon Sep 17 00:00:00 2001 From: Claude Date: Mon, 23 Nov 2026 23:45:44 +0000 Subject: [PATCH 3/7] docs: record the receipt generator in PROOF-STATUS, ROADMAP and CHANGELOG PROOF-STATUS names the generator, the run ledger and the reader at 745fc74, adds receipt-check and receipt-record to the verification commands, and gains a changelog row that says what changed in the receipt and what did not. ROADMAP records the seventh change and the owner's ruling (adopt the shared generator; PR 111 closes once this lands), and names the open piece: a recorder that writes the rows (standards PR 1675). Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_01J4QvDfdGcZ6qgY7JabLsEi --- CHANGELOG.adoc | 14 ++++++++++++ docs/status/PROOF-STATUS.adoc | 42 ++++++++++++++++++++++++++++++----- docs/status/ROADMAP.adoc | 17 ++++++++++++++ 3 files changed, 68 insertions(+), 5 deletions(-) diff --git a/CHANGELOG.adoc b/CHANGELOG.adoc index 29f28899..183e79ac 100644 --- a/CHANGELOG.adoc +++ b/CHANGELOG.adoc @@ -120,6 +120,20 @@ https://semver.org/spec/v2.0.0.html[Semantic Versioning]. ==== Changed +* **The receipt of Mathesis is generated from a run ledger.** Mathesis adopts + the shared generator of standards (`scripts/proof-receipt.sh`, PROOF-POLICY + §8.5.1) through `scripts/grade-receipt.sh`, a file of hooks, and + `verification/receipts/theory_runs.ledger`, one row a run and prover. + `just receipt-check` now regenerates the receipt and refuses a difference, + then runs the git checks of §8.5.3 and the pinned reader with a negative + control. `just receipt-record ROWS` records a run. The Proof Policy Gate writes + the ledger rows of each green run on main to its job summary, from a report + that `scripts/check-proofs.sh` writes when `PROOF_REPORT_DIR` is set; no log + is read. The current receipts and grades are unchanged. The canon reader, the + git checker and the generator are pinned at standards `745fc74` (was + `940a27af`); `claims-registry.mjs receipt` is removed, and + `claims-registry.mjs standards` checks the four pinned files for the home + script. * `CI/gate` now also starts on `pull_request`, and a tamper guard is added. `.github/workflows/ci-gate.yml` is rewritten from the suite's `templates/ci-gate-caller.yml`: a same-repository `gate-pr` job on diff --git a/docs/status/PROOF-STATUS.adoc b/docs/status/PROOF-STATUS.adoc index 08742a68..e0c6a645 100644 --- a/docs/status/PROOF-STATUS.adoc +++ b/docs/status/PROOF-STATUS.adoc @@ -238,8 +238,10 @@ same hypotheses and conclusions. The differences are encoding only: Residual assumptions: none in any leg. |Machine receipt (§8.5.1) -|`verification/receipts/theory_praxis.deed`. The canon reader -(`deed_lint.js --proof-receipt-json`, standards `940a27af`) derives +|`verification/receipts/theory_praxis.deed`, generated by the shared +generator of standards (`scripts/grade-receipt.sh`) from the run ledger +`verification/receipts/theory_runs.ledger`. The canon reader +(`deed_lint.js --proof-receipt-json`, standards `745fc74`) derives `PWG-2ii` from it, the grade below, and CI runs that reader on each change. The claims registry lists the claim as `hyperpolymath/mathesis#THY-1` and shows the grade that the same reader derives @@ -337,9 +339,10 @@ Residual assumptions: none in any leg. come from CI run 44190913019 on main `8c55804` (Agda 2.7.0.1, Rocq 8.18.0, Lean 4.29.0, pinned Guix `8edb9da`), the first under the gate of #107; the receipts of run 43498592499 on main `034f215` are superseded. Each records the inputs manifest of its -prover and no axiom. The canon reader at standards `940a27af` derives `PWG-2ii` -for each of APP-1 to APP-4 (no digest-pinned checker image, standards#1625), and the shared git checker (`just receipt-check`) -passes. The Rocq and Lean legs are `RECONCILED` by the comparison above, done +prover and no axiom. The canon reader at standards `745fc74` derives `PWG-2ii` +for each of APP-1 to APP-4 (no digest-pinned checker image, standards#1625), and `just receipt-check` +(the shared generator: the receipt regenerated from the run ledger, the git +checks of §8.5.3, the reader with a negative control) passes. The Rocq and Lean legs are `RECONCILED` by the comparison above, done by reading. The trusted base gains `Char` and `String`, the postulates that `Applied/IntLaws` reaches through `Agda.Builtin.Int`. |=== @@ -354,6 +357,14 @@ guix time-machine -C build/channels.scm -- shell -m build/manifest.scm -- just c # The planted controls: each must fail the gate bash tests/proofs/gate_controls_test.sh agda + +# The receipt against its run ledger (MATHESIS_STANDARDS: a standards checkout +# at the pinned commit; needs origin/main with its history) +just receipt-check + +# Record a green Proof Policy Gate run on main: ROWS holds the ledger rows that +# its job summary lists ("Ledger rows of this run") +just receipt-record ROWS ---- == Changelog @@ -362,6 +373,27 @@ bash tests/proofs/gate_controls_test.sh agda |=== |Date |Change +|2026-11-23 +|The receipt is generated, not written: Mathesis adopts the shared generator +of standards (`scripts/proof-receipt.sh`, PROOF-POLICY §8.5.1) through +`scripts/grade-receipt.sh` and a run ledger, +`verification/receipts/theory_runs.ledger`, one row a run and prover. The +ledger holds the 12 rows behind the receipt (the local run of 2026-11-09 and +runs 42896264290, 43498592499 and 44190913019). The 15 current receipts keep +their run, commit, checker, inputs digest, inputs manifest and axioms, and the +reader derives `PWG-2ii` for all five claims, as before. Two things change. +The receipts of runs 43498592499 and 44190913019, which checked all five +claims, name the gate's invocation for their prover, which is what the gate +runs, not each claim's root module. The superseded receipts are +written as the generator writes them, oldest first and without their inputs +digests, manifests and axioms; the ledger keeps each superseded row's inputs +digest. The canon reader, the +git checker and the generator are pinned at standards `745fc74` +(was `940a27af`). The Proof Policy Gate now writes the ledger rows of each +green run on main to its job summary, from a report the gate script writes +itself (`check-proofs.sh`, `PROOF_REPORT_DIR`), and `just receipt-record` +adds them. + |2026-11-18 |The claim pins of THY-1 and APP-1 to APP-4 name the receipt at main `10f9f46` (PR 115). The registry catalogues `PWG-2ii` for all five, and diff --git a/docs/status/ROADMAP.adoc b/docs/status/ROADMAP.adoc index a9f458ce..817645c0 100644 --- a/docs/status/ROADMAP.adoc +++ b/docs/status/ROADMAP.adoc @@ -337,6 +337,17 @@ One pull request that changes census rows is open at a time (atlas README, secret-types' and lintel's: the new reader refuses their receipts (a `#u5` identity literal, and secret-types' recorded `PWG-1` that the image rule no longer supports) until they are recorded again. +** Seventh change (2026-11-23): the receipt is generated by the shared + generator of standards (`scripts/proof-receipt.sh`, pinned with the + reader at standards `745fc74`) through `scripts/grade-receipt.sh`, from + a run ledger, `verification/receipts/theory_runs.ledger`. `just + receipt-check` regenerates it and refuses a difference. The Proof Policy + Gate writes the ledger rows of each green run on main to its job summary; + `just receipt-record ROWS` adds them in a pull request. The current + receipts and the grades are unchanged (`PWG-2ii` for all five). + Open: CI does not write the rows to the repository. A recorder that does + (a trusted publisher) is the piece standards PR 1675 leaves open, in + standards, not here. [[stages]] == Stages @@ -406,3 +417,9 @@ scheduled census, a view of what each repository owes the source of generated Agda; proofs in Agda, Rocq and Lean; three pull requests; the laws of the integer instance proved in the second pull request. +* Receipt generator (2026-11-23), through the selector: Mathesis adopts the + shared generator of standards (`scripts/proof-receipt.sh`) rather than its + own receipt-from-run script (PR 111, closed once this lands): a home script + of hooks and a run ledger, so that `--check` reproduces today's receipt; the + gate records each green run with `--run-row` and reads no log; the + standards pin moves to `745fc74` or later. From 6ba271ce716c03994ffa62788a8f09b00f39527b Mon Sep 17 00:00:00 2001 From: Claude Date: Mon, 23 Nov 2026 23:59:58 +0000 Subject: [PATCH 4/7] gate: read the one active Guix pin, never a pin quoted in a comment The ledger-rows step took the first `(commit "<40 hex>")` anywhere in build/channels.scm, so an old pin kept in a comment above the channel would have been written into every checker field. It now removes the Scheme comments first and requires exactly one pin. Tested on the real file (8edb9da), on a copy with a commented-out pin planted first (the old rule took the planted one; the new rule takes 8edb9da), and on copies with two pins and with none (both refused). CodeRabbit raised this on the same logic in PR 111. The two guards of the step are plain if statements now (shellcheck SC2015). Run locally as CI would, the step passes on the three reports and fails with "the coq gate wrote no receipt report" when one is gone. Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_01J4QvDfdGcZ6qgY7JabLsEi --- .github/workflows/agda-proof-policy.yml | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/.github/workflows/agda-proof-policy.yml b/.github/workflows/agda-proof-policy.yml index 0e4b96c6..aac075a0 100644 --- a/.github/workflows/agda-proof-policy.yml +++ b/.github/workflows/agda-proof-policy.yml @@ -160,14 +160,20 @@ jobs: run: | set -euo pipefail report="$RUNNER_TEMP/proof-report" - guix="$(sed -n 's/.*(commit "\([0-9a-f]\{40\}\)").*/\1/p' build/channels.scm | head -1)" - [ -n "$guix" ] || { echo "::error::build/channels.scm names no 40-hex Guix commit"; exit 1; } + # The one channel pin, read with the Scheme comments removed, so an old + # pin quoted in a comment is never taken for the active one. + guix="$(sed 's/;.*//' build/channels.scm | grep -oE '\(commit "[0-9a-f]{40}"\)' | grep -oE '[0-9a-f]{40}' || true)" + if [ -z "$guix" ] || [ "$(grep -c . <<<"$guix")" -ne 1 ]; then + echo "::error::build/channels.scm must pin exactly one 40-hex Guix commit outside its comments"; exit 1 + fi run="$GITHUB_SERVER_URL/$GITHUB_REPOSITORY/actions/runs/$GITHUB_RUN_ID/attempts/$GITHUB_RUN_ATTEMPT" rows="$RUNNER_TEMP/ledger-rows" : > "$rows" for lane in agda:agda coq:rocq lean4:lean; do gate="${lane%%:*}"; prover="${lane#*:}"; f="$report/$gate" - [ -f "$f" ] && [ "$(wc -l < "$f")" -eq 3 ] || { echo "::error::the $gate gate wrote no receipt report"; exit 1; } + if [ ! -f "$f" ] || [ "$(wc -l < "$f")" -ne 3 ]; then + echo "::error::the $gate gate wrote no receipt report"; exit 1 + fi [ "$(sed -n 2p "$f")" = none ] || { echo "::error::the $gate gate reported axioms: $(sed -n 2p "$f")"; exit 1; } bash scripts/grade-receipt.sh --run-row "$prover" --run "$run" --commit "$GITHUB_SHA" \ --checker "$(sed -n 1p "$f") (Guix ${guix:0:7})" --reported "$(sed -n 3p "$f")" --axioms none >> "$rows" From 5121dd80319c02a840b3d1bf9f0ee698c5eaf3b1 Mon Sep 17 00:00:00 2001 From: Claude Date: Tue, 24 Nov 2026 13:41:57 +0000 Subject: [PATCH 5/7] receipt: superseded receipts keep their lineage detail; repin to 84c2d1c MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The owner ruled on 2026-11-24 that the receipt takes the generator's shape, that standards is asked for an option keeping the inputs digest, manifest and axioms on receipts that are not current, and that Mathesis turns it on when it lands. It landed as standards#1705, merged at 84c2d1c. I checked both on standards main: 84c2d1c is the head of main, and scripts/proof-receipt.sh there has SHA-256 f56edf5e…, as the estate coordinator reported. - scripts/grade-receipt.sh sets RECEIPT_KEEP_LINEAGE_DETAIL=1 in the home script, so it is the same for --write and --check, as PROOF-POLICY §8.5.1 requires. - The canon reader, the git checker and the generator are repinned to 84c2d1c, the commit and the four file digests alike. Two files changed: the reader, whose new code adds the (language …) clause and META and ADR checks but nothing about receipts or grades, and the generator. The checker and the digest script are byte-identical. Both workflows fetch 84c2d1c. - The receipt is regenerated. Every superseded receipt now carries its run's inputs digest and axioms. The receipts of run 43498592499 also carry their inputs manifest, which the generator rebuilt at 034f215 and checked against the row's digest. The two runs before it predate their input set, so their receipts carry no manifest, and the generator prints a NOTE naming each. CI fetches main unshallow before just check, so it sees the same commits, and --check reproduces the receipt. The grades are unchanged. The reader derives PWG-2ii for THY-1 and APP-1 to APP-4, and its negative control holds. The registry census is identical before and after: 5 PWG-2ii, 31 PWG-2i, 17 ungraded, of 53 rows. Only the registry's reader-commit line changes. The docs record the ruling, the option and the pin. Checks: just receipt-check, registry-check (76 tests), check-views and site-check pass, as do Asciidoctor on the changed docs and the I-JSON gate. actionlint reports the same six info-level shellcheck notes on agda-proof-policy.yml before and after. 22 of 27 workflow tests pass. The other 5 fail the same way at 6ba271c: nickel and Go yq are not installed here, and the Julia test reads an archetype file this repository does not have. Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_01J4QvDfdGcZ6qgY7JabLsEi --- .github/workflows/agda-proof-policy.yml | 2 +- .github/workflows/proven-tests.yml | 2 +- CHANGELOG.adoc | 8 +- docs/atlas/generated/registry.adoc | 2 +- docs/status/PROOF-STATUS.adoc | 16 ++- docs/status/ROADMAP.adoc | 8 +- scripts/grade-receipt.sh | 5 + scripts/registry/claims-registry.mjs | 6 +- verification/receipts/theory_praxis.deed | 159 ++++++++++++++++++++--- 9 files changed, 170 insertions(+), 38 deletions(-) diff --git a/.github/workflows/agda-proof-policy.yml b/.github/workflows/agda-proof-policy.yml index aac075a0..28766c85 100644 --- a/.github/workflows/agda-proof-policy.yml +++ b/.github/workflows/agda-proof-policy.yml @@ -126,7 +126,7 @@ jobs: git -C "$r" remote add origin https://github.com/metadatastician/standards.git git -C "$r" config core.sparseCheckout true printf '1-formats/deed/tools/\nscripts/check-proof-receipt.sh\nscripts/proof-inputs-sha256.sh\nscripts/proof-receipt.sh\n' > "$r/.git/info/sparse-checkout" - git -C "$r" fetch -q --depth 1 origin 745fc744158047a675eeb92464167c9961d66c4b + git -C "$r" fetch -q --depth 1 origin 84c2d1c1b040c9d7b8924532fa77e71e63d72c66 git -C "$r" checkout -q FETCH_HEAD - name: Golden path (just check), then its controls diff --git a/.github/workflows/proven-tests.yml b/.github/workflows/proven-tests.yml index 7a8ded4e..36e3f554 100644 --- a/.github/workflows/proven-tests.yml +++ b/.github/workflows/proven-tests.yml @@ -57,7 +57,7 @@ jobs: git -C "$r" remote add origin https://github.com/metadatastician/standards.git git -C "$r" config core.sparseCheckout true printf '1-formats/deed/tools/\nscripts/check-proof-receipt.sh\nscripts/proof-inputs-sha256.sh\nscripts/proof-receipt.sh\n' > "$r/.git/info/sparse-checkout" - git -C "$r" fetch -q --depth 1 origin 745fc744158047a675eeb92464167c9961d66c4b + git -C "$r" fetch -q --depth 1 origin 84c2d1c1b040c9d7b8924532fa77e71e63d72c66 git -C "$r" checkout -q FETCH_HEAD for f in verification/receipts/*_praxis.deed; do bun "$r/1-formats/deed/tools/deed_lint.js" --proof-receipt-json "$f" diff --git a/CHANGELOG.adoc b/CHANGELOG.adoc index 183e79ac..0dd0f200 100644 --- a/CHANGELOG.adoc +++ b/CHANGELOG.adoc @@ -129,9 +129,11 @@ https://semver.org/spec/v2.0.0.html[Semantic Versioning]. control. `just receipt-record ROWS` records a run. The Proof Policy Gate writes the ledger rows of each green run on main to its job summary, from a report that `scripts/check-proofs.sh` writes when `PROOF_REPORT_DIR` is set; no log - is read. The current receipts and grades are unchanged. The canon reader, the - git checker and the generator are pinned at standards `745fc74` (was - `940a27af`); `claims-registry.mjs receipt` is removed, and + is read. The current receipts and grades are unchanged. Superseded receipts + keep their run's inputs digest and axioms, and the inputs manifest where it + can be rebuilt (`RECEIPT_KEEP_LINEAGE_DETAIL=1`, standards#1705). The canon + reader, the git checker and the generator are pinned at standards `84c2d1c` + (was `940a27af`); `claims-registry.mjs receipt` is removed, and `claims-registry.mjs standards` checks the four pinned files for the home script. * `CI/gate` now also starts on `pull_request`, and a tamper guard is added. diff --git a/docs/atlas/generated/registry.adoc b/docs/atlas/generated/registry.adoc index 7668997d..5768aea7 100644 --- a/docs/atlas/generated/registry.adoc +++ b/docs/atlas/generated/registry.adoc @@ -5,7 +5,7 @@ Each row is a claim in its home repository at a pinned commit. The grade is *derived* here from that repository's receipt by the canon reader of -PROOF-POLICY §8.5.1 (`metadatastician/standards` at `745fc7441580`), never +PROOF-POLICY §8.5.1 (`metadatastician/standards` at `84c2d1c1b040`), never assigned (§8.5). A grade is not a discharge (§8.4): `PWG-3` theorems still owe their Rocq and Lean legs. Status of this slice: accepted in link:../../decisions/0004-claims-registry.adoc[ADR 0004], ratified by the owner. diff --git a/docs/status/PROOF-STATUS.adoc b/docs/status/PROOF-STATUS.adoc index e0c6a645..d9300f43 100644 --- a/docs/status/PROOF-STATUS.adoc +++ b/docs/status/PROOF-STATUS.adoc @@ -241,7 +241,7 @@ Residual assumptions: none in any leg. |`verification/receipts/theory_praxis.deed`, generated by the shared generator of standards (`scripts/grade-receipt.sh`) from the run ledger `verification/receipts/theory_runs.ledger`. The canon reader -(`deed_lint.js --proof-receipt-json`, standards `745fc74`) derives +(`deed_lint.js --proof-receipt-json`, standards `84c2d1c`) derives `PWG-2ii` from it, the grade below, and CI runs that reader on each change. The claims registry lists the claim as `hyperpolymath/mathesis#THY-1` and shows the grade that the same reader derives @@ -339,7 +339,7 @@ Residual assumptions: none in any leg. come from CI run 44190913019 on main `8c55804` (Agda 2.7.0.1, Rocq 8.18.0, Lean 4.29.0, pinned Guix `8edb9da`), the first under the gate of #107; the receipts of run 43498592499 on main `034f215` are superseded. Each records the inputs manifest of its -prover and no axiom. The canon reader at standards `745fc74` derives `PWG-2ii` +prover and no axiom. The canon reader at standards `84c2d1c` derives `PWG-2ii` for each of APP-1 to APP-4 (no digest-pinned checker image, standards#1625), and `just receipt-check` (the shared generator: the receipt regenerated from the run ledger, the git checks of §8.5.3, the reader with a negative control) passes. The Rocq and Lean legs are `RECONCILED` by the comparison above, done @@ -385,11 +385,13 @@ reader derives `PWG-2ii` for all five claims, as before. Two things change. The receipts of runs 43498592499 and 44190913019, which checked all five claims, name the gate's invocation for their prover, which is what the gate runs, not each claim's root module. The superseded receipts are -written as the generator writes them, oldest first and without their inputs -digests, manifests and axioms; the ledger keeps each superseded row's inputs -digest. The canon reader, the -git checker and the generator are pinned at standards `745fc74` -(was `940a27af`). The Proof Policy Gate now writes the ledger rows of each +written oldest first and, with `RECEIPT_KEEP_LINEAGE_DETAIL=1` (standards#1705), +keep what their run read: the inputs digest and the axioms of their ledger row, +and the inputs manifest where it can be rebuilt to that digest. That holds for +the receipts of run 43498592499; the two runs before it predate their input set, +so their receipts carry no manifest, and the generator says so. None of it +counts toward a grade. The canon reader, the git checker and the generator are +pinned at standards `84c2d1c` (was `940a27af`). The Proof Policy Gate now writes the ledger rows of each green run on main to its job summary, from a report the gate script writes itself (`check-proofs.sh`, `PROOF_REPORT_DIR`), and `just receipt-record` adds them. diff --git a/docs/status/ROADMAP.adoc b/docs/status/ROADMAP.adoc index 817645c0..521743b5 100644 --- a/docs/status/ROADMAP.adoc +++ b/docs/status/ROADMAP.adoc @@ -339,12 +339,14 @@ One pull request that changes census rows is open at a time (atlas README, no longer supports) until they are recorded again. ** Seventh change (2026-11-23): the receipt is generated by the shared generator of standards (`scripts/proof-receipt.sh`, pinned with the - reader at standards `745fc74`) through `scripts/grade-receipt.sh`, from + reader at standards `84c2d1c`) through `scripts/grade-receipt.sh`, from a run ledger, `verification/receipts/theory_runs.ledger`. `just receipt-check` regenerates it and refuses a difference. The Proof Policy Gate writes the ledger rows of each green run on main to its job summary; `just receipt-record ROWS` adds them in a pull request. The current receipts and the grades are unchanged (`PWG-2ii` for all five). + Superseded receipts keep their run's inputs digest and axioms, and the + inputs manifest where it can be rebuilt (`RECEIPT_KEEP_LINEAGE_DETAIL=1`). Open: CI does not write the rows to the repository. A recorder that does (a trusted publisher) is the piece standards PR 1675 leaves open, in standards, not here. @@ -423,3 +425,7 @@ scheduled census, a view of what each repository owes of hooks and a run ledger, so that `--check` reproduces today's receipt; the gate records each green run with `--run-row` and reads no log; the standards pin moves to `745fc74` or later. +* Superseded receipts (2026-11-24), through the selector: the receipt takes the + generator's shape, and standards is asked for an option that keeps the + inputs digest, manifest and axioms on receipts that are not current. The + option landed as standards#1705 (`84c2d1c`), and Mathesis turns it on. diff --git a/scripts/grade-receipt.sh b/scripts/grade-receipt.sh index 0c27afb5..43d795c2 100644 --- a/scripts/grade-receipt.sh +++ b/scripts/grade-receipt.sh @@ -44,6 +44,11 @@ RECEIPT_DEFAULT_BRANCH=main RECEIPT_CANONICAL_NAME=mathesis-theory-receipt RECEIPT_BEHOLDING_CHORA='#u8"chora:estate/github.com/hyperpolymath"' RECEIPT_SCRIPT=scripts/grade-receipt.sh +# A receipt that is not current keeps what its run read: its inputs digest and +# axioms from the ledger row, and its inputs manifest when that can be rebuilt to +# the same digest (PROOF-POLICY §8.5.1; owner ruling 2026-11-24). None of it +# counts toward a grade. Set here, it is the same for --write and --check. +RECEIPT_KEEP_LINEAGE_DETAIL=1 AGDA=verification/proofs/agda COQ=verification/proofs/coq diff --git a/scripts/registry/claims-registry.mjs b/scripts/registry/claims-registry.mjs index f41b7761..df1f52a5 100644 --- a/scripts/registry/claims-registry.mjs +++ b/scripts/registry/claims-registry.mjs @@ -76,9 +76,9 @@ const closed = (object, allowed, label, where) => { // that is not this file is refused, so a grade never comes from an unpinned rule. export const READER = { repository: 'metadatastician/standards', - commit: '745fc744158047a675eeb92464167c9961d66c4b', + commit: '84c2d1c1b040c9d7b8924532fa77e71e63d72c66', path: '1-formats/deed/tools/deed_lint.js', - sha256: 'aece22bf20d6e112e633efd288ed5d145012e85822d6b3ebea916c91c513acb9', + sha256: 'bd276e4046066926bdfb65f474271e2ddba57467cc237e9e7ec56c894577b04d', }; // The git checks of PROOF-POLICY §8.5.3, from the same standards commit as the @@ -96,7 +96,7 @@ export const CHECKER = { // of Mathesis. One commit pins all four files, as the generator requires. export const GENERATOR = { path: 'scripts/proof-receipt.sh', - sha256: 'e54a8ccc5399d1c81a4f60a01c354ddb6df3cfae31f87d0c6c3d91e3e4623a4d', + sha256: 'f56edf5eb5c78f510f65877a7f24c1fe099b4f60873d2804427fef6a52fd6f65', }; // ── Validation of the registry rows ────────────────────────────────────────── diff --git a/verification/receipts/theory_praxis.deed b/verification/receipts/theory_praxis.deed index c35df5a5..5b6924be 100644 --- a/verification/receipts/theory_praxis.deed +++ b/verification/receipts/theory_praxis.deed @@ -51,22 +51,36 @@ :commit "f68b78d6ceb8d3c83f96f5ab8e57779442a8834f" :checker "agda 2.6.3 (Ubuntu 24.04 agda package)" :invocation "agda --safe --without-K --cubical-compatible FeatureReachability.agda" + :inputs-sha256 "35199233097c51127dd8a94440cae7a0c2507a920ba744207732b7c8b0932666" :state superseded - :reason "replaced by the CI receipt in the pinned Guix, Agda 2.7.0.1") + :reason "replaced by the CI receipt in the pinned Guix, Agda 2.7.0.1" + (axioms)) ; the run reported: check-proofs.sh agda: RESULT: PASS; FeatureReachability.agda: postulates: none in the 1 first-party module(s) of the import cone (receipt :run "https://github.com/hyperpolymath/mathesis/actions/runs/42896264290/job/130110238086" :commit "336768958d01257caae14cb81fb54197c2617d97" :checker "agda 2.7.0.1 (Guix 8edb9da)" :invocation "agda --safe --without-K --cubical-compatible FeatureReachability.agda" + :inputs-sha256 "35199233097c51127dd8a94440cae7a0c2507a920ba744207732b7c8b0932666" :state superseded - :reason "replaced by the CI receipt of run 43498592499 on 034f215, which records the inputs digest and the axioms (PROOF-POLICY 8.5.1, standards d9b03a3)") + :reason "replaced by the CI receipt of run 43498592499 on 034f215, which records the inputs digest and the axioms (PROOF-POLICY 8.5.1, standards d9b03a3)" + (axioms)) ; the run reported: check-proofs.sh agda: RESULT: PASS; postulates: none in the first-party cones of FeatureReachability (1 module), Applied/Missing (3) and Applied/IntLaws (6) (receipt :run "https://github.com/hyperpolymath/mathesis/actions/runs/43498592499/job/132138258520" :commit "034f215b3b601aa6bdde7471bdc650bc62c0f56c" :checker "agda 2.7.0.1 (Guix 8edb9da)" :invocation "bash scripts/check-proofs.sh agda: agda --safe --without-K --cubical-compatible on each gated module of verification/proofs/agda" + :inputs-sha256 "4db97b78050ef622485ceb179e80ad9f39dbd986cdd6f45af0fd5b32a410c643" :state superseded - :reason "replaced by the CI receipt of run 44190913019 on main 8c55804, whose inputs add APP-1's middle clause and THY-1's propositional theorems, checked under the gate that audits definitions as well as theorems (PROOF-POLICY 8.4)")) + :reason "replaced by the CI receipt of run 44190913019 on main 8c55804, whose inputs add APP-1's middle clause and THY-1's propositional theorems, checked under the gate that audits definitions as well as theorems (PROOF-POLICY 8.4)" + (inputs-manifest + (file :path "verification/proofs/agda/Applied/Cash.agda" :sha256 "fe231a7679529e7998385d8acdcaf8cde6880e44a5cc5d5cc3c03fd4ac2eea12") + (file :path "verification/proofs/agda/Applied/Cohort.agda" :sha256 "5a485d5fd5329939aa85909e65bc200d886316ebb69e9786b2764dd17eba8d56") + (file :path "verification/proofs/agda/Applied/IntLaws.agda" :sha256 "09285481b29234fced3197b1a4fcd86f284a66f5ce011d23b68bb1aa602c91fb") + (file :path "verification/proofs/agda/Applied/IntNumber.agda" :sha256 "0ba5ca46fd22d0abb4f7ceb0ff73a7857f7a3acc6143a43a68cf5932e8868959") + (file :path "verification/proofs/agda/Applied/Missing.agda" :sha256 "4afb4c82e84bf6411b0f0c19eb6d34869a42bee7d5616624147d1881c78b6fe9") + (file :path "verification/proofs/agda/Applied/Status.agda" :sha256 "d059344565a55b897824b83b4f676b9a7326ba50a5b35a6da49ab72bb40e8a97") + (file :path "verification/proofs/agda/FeatureReachability.agda" :sha256 "4e39d6ae751d97d3edf57720ccf844d90de3e9ee6603901a04f5eb6494d94564")) + (axioms))) (leg :prover rocq :route re-proved :token proven :state RECONCILED ; the run reported: check-proofs.sh coq: RESULT: PASS; coqchk -o: no axiom, type-in-type, unsafe (co)fixpoint or assumed positivity; Print Assumptions: closed under the global context for 11 declaration(s) of FeatureReachability.v and 134 of Cohort.v (receipt :run "https://github.com/hyperpolymath/mathesis/actions/runs/44190913019/job/134419742986" @@ -84,22 +98,31 @@ :commit "f1be654e69b23873ea40651cb40e0e095ac53680" :checker "coqc 8.18.0 (Ubuntu 24.04 coq package)" :invocation "coqc FeatureReachability.v" + :inputs-sha256 "21dbe44f56ee4442247715b50d8a384b834b3232ba1ff2de9201bbbfbff92915" :state superseded - :reason "replaced by the CI receipt in the pinned Guix") + :reason "replaced by the CI receipt in the pinned Guix" + (axioms)) ; the run reported: check-proofs.sh coq: RESULT: PASS; FeatureReachability.v: Print Assumptions: closed under the global context for 1 theorem(s): absent_under_all_features (receipt :run "https://github.com/hyperpolymath/mathesis/actions/runs/42896264290/job/130110238086" :commit "336768958d01257caae14cb81fb54197c2617d97" :checker "coqc 8.18.0 (Guix 8edb9da)" :invocation "coqc FeatureReachability.v" + :inputs-sha256 "794ed1c5179384913e037570a9490eb003c320a3aae2df2efcf4066ed5f57ae4" :state superseded - :reason "replaced by the CI receipt of run 43498592499 on 034f215, which records the inputs digest and the axioms (PROOF-POLICY 8.5.1, standards d9b03a3)") + :reason "replaced by the CI receipt of run 43498592499 on 034f215, which records the inputs digest and the axioms (PROOF-POLICY 8.5.1, standards d9b03a3)" + (axioms)) ; the run reported: check-proofs.sh coq: RESULT: PASS; Print Assumptions: closed under the global context for 1 theorem(s) of FeatureReachability.v and 82 of Cohort.v (receipt :run "https://github.com/hyperpolymath/mathesis/actions/runs/43498592499/job/132138258520" :commit "034f215b3b601aa6bdde7471bdc650bc62c0f56c" :checker "coqc 8.18.0 (Guix 8edb9da)" :invocation "bash scripts/check-proofs.sh coq: coqc and Print Assumptions on each gated module of verification/proofs/coq" + :inputs-sha256 "1c5814d6040f119382ebeccffe477cbd7d8485a45cf9e8877782316378e28709" :state superseded - :reason "replaced by the CI receipt of run 44190913019 on main 8c55804, whose inputs add APP-1's middle clause and THY-1's propositional theorems, checked under the gate that audits definitions as well as theorems (PROOF-POLICY 8.4)")) + :reason "replaced by the CI receipt of run 44190913019 on main 8c55804, whose inputs add APP-1's middle clause and THY-1's propositional theorems, checked under the gate that audits definitions as well as theorems (PROOF-POLICY 8.4)" + (inputs-manifest + (file :path "verification/proofs/coq/Cohort.v" :sha256 "2519cdbdb3b22ee5132e5708bbbeb9e87e3b2d8c2c318329c96c0545863b6260") + (file :path "verification/proofs/coq/FeatureReachability.v" :sha256 "e2f90043366fb8061784da4cd12af3278e8a9ea0af78fdba4490f96f28b68cb1")) + (axioms))) (leg :prover lean :route re-proved :token proven :state RECONCILED ; the run reported: check-proofs.sh lean4: RESULT: PASS; axioms: none for 8 theorem(s) and 48 definition(s) of FeatureReachability.lean, and 102 theorem(s) and 128 definition(s) of Cohort.lean (receipt :run "https://github.com/hyperpolymath/mathesis/actions/runs/44190913019/job/134419742986" @@ -118,22 +141,32 @@ :commit "f1be654e69b23873ea40651cb40e0e095ac53680" :checker "lean 4.15.0 (11651562caae, release archive)" :invocation "lean FeatureReachability.lean" + :inputs-sha256 "c105ee55e8ea57b9c11d6a1ff9245e0a550a5bd7301eddbb056e8719e4c47724" :state superseded - :reason "replaced by the CI receipt in the pinned Guix, Lean 4.29.0") + :reason "replaced by the CI receipt in the pinned Guix, Lean 4.29.0" + (axioms)) ; the run reported: check-proofs.sh lean4: RESULT: PASS; FeatureReachability.lean: axioms: none for 2 declared theorem(s) (receipt :run "https://github.com/hyperpolymath/mathesis/actions/runs/42896264290/job/130110238086" :commit "336768958d01257caae14cb81fb54197c2617d97" :checker "lean 4.29.0 (Guix 8edb9da)" :invocation "lean FeatureReachability.lean" + :inputs-sha256 "ee5e7b1347a394a9050d815f30915aacdd85ffa9219811b29b0faa341c7d8e97" :state superseded - :reason "replaced by the CI receipt of run 43498592499 on 034f215, which records the inputs digest and the axioms (PROOF-POLICY 8.5.1, standards d9b03a3)") + :reason "replaced by the CI receipt of run 43498592499 on 034f215, which records the inputs digest and the axioms (PROOF-POLICY 8.5.1, standards d9b03a3)" + (axioms)) ; the run reported: check-proofs.sh lean4: RESULT: PASS; axioms: none for 2 declared theorem(s) of FeatureReachability.lean and 95 of Cohort.lean (receipt :run "https://github.com/hyperpolymath/mathesis/actions/runs/43498592499/job/132138258520" :commit "034f215b3b601aa6bdde7471bdc650bc62c0f56c" :checker "lean 4.29.0 (Guix 8edb9da)" :invocation "bash scripts/check-proofs.sh lean4: lean and the axiom audit of declared theorems on each gated module of verification/proofs/lean4" + :inputs-sha256 "de2e3324f91b25f4a05658dfcfb435c7417709667b8766f7aeaa832fa874c4c1" :state superseded - :reason "replaced by the CI receipt of run 44190913019 on main 8c55804, whose inputs add APP-1's middle clause and THY-1's propositional theorems, checked under the gate that audits definitions as well as theorems (PROOF-POLICY 8.4); for THY-1 it is also the first under the gate that fails on an empty audit: this receipt's empty axiom list came from an audit that inspected none of THY-1's results, which are definitions (proof audit 2026-11-16, finding 31)"))) + :reason "replaced by the CI receipt of run 44190913019 on main 8c55804, whose inputs add APP-1's middle clause and THY-1's propositional theorems, checked under the gate that audits definitions as well as theorems (PROOF-POLICY 8.4); for THY-1 it is also the first under the gate that fails on an empty audit: this receipt's empty axiom list came from an audit that inspected none of THY-1's results, which are definitions (proof audit 2026-11-16, finding 31)" + (inputs-manifest + (file :path "verification/proofs/lean4/Cohort.lean" :sha256 "b91e2aa7b1322284d67710ea918858497bc1245a6b941448df2deba4b521ce10") + (file :path "verification/proofs/lean4/FeatureReachability.lean" :sha256 "4158e54f85c8e83e49789869a4e9b12fe4b8d7460981f5c8442479268f17d55a") + (file :path "verification/proofs/lean4/lean-toolchain" :sha256 "651c8accb402b0c071cd336e9d3dc0a55516b1bfb434ddc4801f14936785b1d2")) + (axioms)))) (claim :id "APP-1" :pwg PWG-2ii :foundation-diverse #f (leg :prover agda :route source :token proven :state AGDA-VERIFIED ; the run reported: check-proofs.sh agda: RESULT: PASS; postulates: none in the first-party cones of FeatureReachability (1 module), Applied/Missing (3) and Applied/IntLaws (6) @@ -157,8 +190,18 @@ :commit "034f215b3b601aa6bdde7471bdc650bc62c0f56c" :checker "agda 2.7.0.1 (Guix 8edb9da)" :invocation "bash scripts/check-proofs.sh agda: agda --safe --without-K --cubical-compatible on each gated module of verification/proofs/agda" + :inputs-sha256 "4db97b78050ef622485ceb179e80ad9f39dbd986cdd6f45af0fd5b32a410c643" :state superseded - :reason "replaced by the CI receipt of run 44190913019 on main 8c55804, whose inputs add APP-1's middle clause and THY-1's propositional theorems, checked under the gate that audits definitions as well as theorems (PROOF-POLICY 8.4)")) + :reason "replaced by the CI receipt of run 44190913019 on main 8c55804, whose inputs add APP-1's middle clause and THY-1's propositional theorems, checked under the gate that audits definitions as well as theorems (PROOF-POLICY 8.4)" + (inputs-manifest + (file :path "verification/proofs/agda/Applied/Cash.agda" :sha256 "fe231a7679529e7998385d8acdcaf8cde6880e44a5cc5d5cc3c03fd4ac2eea12") + (file :path "verification/proofs/agda/Applied/Cohort.agda" :sha256 "5a485d5fd5329939aa85909e65bc200d886316ebb69e9786b2764dd17eba8d56") + (file :path "verification/proofs/agda/Applied/IntLaws.agda" :sha256 "09285481b29234fced3197b1a4fcd86f284a66f5ce011d23b68bb1aa602c91fb") + (file :path "verification/proofs/agda/Applied/IntNumber.agda" :sha256 "0ba5ca46fd22d0abb4f7ceb0ff73a7857f7a3acc6143a43a68cf5932e8868959") + (file :path "verification/proofs/agda/Applied/Missing.agda" :sha256 "4afb4c82e84bf6411b0f0c19eb6d34869a42bee7d5616624147d1881c78b6fe9") + (file :path "verification/proofs/agda/Applied/Status.agda" :sha256 "d059344565a55b897824b83b4f676b9a7326ba50a5b35a6da49ab72bb40e8a97") + (file :path "verification/proofs/agda/FeatureReachability.agda" :sha256 "4e39d6ae751d97d3edf57720ccf844d90de3e9ee6603901a04f5eb6494d94564")) + (axioms))) (leg :prover rocq :route re-proved :token proven :state RECONCILED ; the run reported: check-proofs.sh coq: RESULT: PASS; coqchk -o: no axiom, type-in-type, unsafe (co)fixpoint or assumed positivity; Print Assumptions: closed under the global context for 11 declaration(s) of FeatureReachability.v and 134 of Cohort.v (receipt :run "https://github.com/hyperpolymath/mathesis/actions/runs/44190913019/job/134419742986" @@ -176,8 +219,13 @@ :commit "034f215b3b601aa6bdde7471bdc650bc62c0f56c" :checker "coqc 8.18.0 (Guix 8edb9da)" :invocation "bash scripts/check-proofs.sh coq: coqc and Print Assumptions on each gated module of verification/proofs/coq" + :inputs-sha256 "1c5814d6040f119382ebeccffe477cbd7d8485a45cf9e8877782316378e28709" :state superseded - :reason "replaced by the CI receipt of run 44190913019 on main 8c55804, whose inputs add APP-1's middle clause and THY-1's propositional theorems, checked under the gate that audits definitions as well as theorems (PROOF-POLICY 8.4)")) + :reason "replaced by the CI receipt of run 44190913019 on main 8c55804, whose inputs add APP-1's middle clause and THY-1's propositional theorems, checked under the gate that audits definitions as well as theorems (PROOF-POLICY 8.4)" + (inputs-manifest + (file :path "verification/proofs/coq/Cohort.v" :sha256 "2519cdbdb3b22ee5132e5708bbbeb9e87e3b2d8c2c318329c96c0545863b6260") + (file :path "verification/proofs/coq/FeatureReachability.v" :sha256 "e2f90043366fb8061784da4cd12af3278e8a9ea0af78fdba4490f96f28b68cb1")) + (axioms))) (leg :prover lean :route re-proved :token proven :state RECONCILED ; the run reported: check-proofs.sh lean4: RESULT: PASS; axioms: none for 8 theorem(s) and 48 definition(s) of FeatureReachability.lean, and 102 theorem(s) and 128 definition(s) of Cohort.lean (receipt :run "https://github.com/hyperpolymath/mathesis/actions/runs/44190913019/job/134419742986" @@ -196,8 +244,14 @@ :commit "034f215b3b601aa6bdde7471bdc650bc62c0f56c" :checker "lean 4.29.0 (Guix 8edb9da)" :invocation "bash scripts/check-proofs.sh lean4: lean and the axiom audit of declared theorems on each gated module of verification/proofs/lean4" + :inputs-sha256 "de2e3324f91b25f4a05658dfcfb435c7417709667b8766f7aeaa832fa874c4c1" :state superseded - :reason "replaced by the CI receipt of run 44190913019 on main 8c55804, whose inputs add APP-1's middle clause and THY-1's propositional theorems, checked under the gate that audits definitions as well as theorems (PROOF-POLICY 8.4); for THY-1 it is also the first under the gate that fails on an empty audit: this receipt's empty axiom list came from an audit that inspected none of THY-1's results, which are definitions (proof audit 2026-11-16, finding 31)"))) + :reason "replaced by the CI receipt of run 44190913019 on main 8c55804, whose inputs add APP-1's middle clause and THY-1's propositional theorems, checked under the gate that audits definitions as well as theorems (PROOF-POLICY 8.4); for THY-1 it is also the first under the gate that fails on an empty audit: this receipt's empty axiom list came from an audit that inspected none of THY-1's results, which are definitions (proof audit 2026-11-16, finding 31)" + (inputs-manifest + (file :path "verification/proofs/lean4/Cohort.lean" :sha256 "b91e2aa7b1322284d67710ea918858497bc1245a6b941448df2deba4b521ce10") + (file :path "verification/proofs/lean4/FeatureReachability.lean" :sha256 "4158e54f85c8e83e49789869a4e9b12fe4b8d7460981f5c8442479268f17d55a") + (file :path "verification/proofs/lean4/lean-toolchain" :sha256 "651c8accb402b0c071cd336e9d3dc0a55516b1bfb434ddc4801f14936785b1d2")) + (axioms)))) (claim :id "APP-2" :pwg PWG-2ii :foundation-diverse #f (leg :prover agda :route source :token proven :state AGDA-VERIFIED ; the run reported: check-proofs.sh agda: RESULT: PASS; postulates: none in the first-party cones of FeatureReachability (1 module), Applied/Missing (3) and Applied/IntLaws (6) @@ -221,8 +275,18 @@ :commit "034f215b3b601aa6bdde7471bdc650bc62c0f56c" :checker "agda 2.7.0.1 (Guix 8edb9da)" :invocation "bash scripts/check-proofs.sh agda: agda --safe --without-K --cubical-compatible on each gated module of verification/proofs/agda" + :inputs-sha256 "4db97b78050ef622485ceb179e80ad9f39dbd986cdd6f45af0fd5b32a410c643" :state superseded - :reason "replaced by the CI receipt of run 44190913019 on main 8c55804, whose inputs add APP-1's middle clause and THY-1's propositional theorems, checked under the gate that audits definitions as well as theorems (PROOF-POLICY 8.4)")) + :reason "replaced by the CI receipt of run 44190913019 on main 8c55804, whose inputs add APP-1's middle clause and THY-1's propositional theorems, checked under the gate that audits definitions as well as theorems (PROOF-POLICY 8.4)" + (inputs-manifest + (file :path "verification/proofs/agda/Applied/Cash.agda" :sha256 "fe231a7679529e7998385d8acdcaf8cde6880e44a5cc5d5cc3c03fd4ac2eea12") + (file :path "verification/proofs/agda/Applied/Cohort.agda" :sha256 "5a485d5fd5329939aa85909e65bc200d886316ebb69e9786b2764dd17eba8d56") + (file :path "verification/proofs/agda/Applied/IntLaws.agda" :sha256 "09285481b29234fced3197b1a4fcd86f284a66f5ce011d23b68bb1aa602c91fb") + (file :path "verification/proofs/agda/Applied/IntNumber.agda" :sha256 "0ba5ca46fd22d0abb4f7ceb0ff73a7857f7a3acc6143a43a68cf5932e8868959") + (file :path "verification/proofs/agda/Applied/Missing.agda" :sha256 "4afb4c82e84bf6411b0f0c19eb6d34869a42bee7d5616624147d1881c78b6fe9") + (file :path "verification/proofs/agda/Applied/Status.agda" :sha256 "d059344565a55b897824b83b4f676b9a7326ba50a5b35a6da49ab72bb40e8a97") + (file :path "verification/proofs/agda/FeatureReachability.agda" :sha256 "4e39d6ae751d97d3edf57720ccf844d90de3e9ee6603901a04f5eb6494d94564")) + (axioms))) (leg :prover rocq :route re-proved :token proven :state RECONCILED ; the run reported: check-proofs.sh coq: RESULT: PASS; coqchk -o: no axiom, type-in-type, unsafe (co)fixpoint or assumed positivity; Print Assumptions: closed under the global context for 11 declaration(s) of FeatureReachability.v and 134 of Cohort.v (receipt :run "https://github.com/hyperpolymath/mathesis/actions/runs/44190913019/job/134419742986" @@ -240,8 +304,13 @@ :commit "034f215b3b601aa6bdde7471bdc650bc62c0f56c" :checker "coqc 8.18.0 (Guix 8edb9da)" :invocation "bash scripts/check-proofs.sh coq: coqc and Print Assumptions on each gated module of verification/proofs/coq" + :inputs-sha256 "1c5814d6040f119382ebeccffe477cbd7d8485a45cf9e8877782316378e28709" :state superseded - :reason "replaced by the CI receipt of run 44190913019 on main 8c55804, whose inputs add APP-1's middle clause and THY-1's propositional theorems, checked under the gate that audits definitions as well as theorems (PROOF-POLICY 8.4)")) + :reason "replaced by the CI receipt of run 44190913019 on main 8c55804, whose inputs add APP-1's middle clause and THY-1's propositional theorems, checked under the gate that audits definitions as well as theorems (PROOF-POLICY 8.4)" + (inputs-manifest + (file :path "verification/proofs/coq/Cohort.v" :sha256 "2519cdbdb3b22ee5132e5708bbbeb9e87e3b2d8c2c318329c96c0545863b6260") + (file :path "verification/proofs/coq/FeatureReachability.v" :sha256 "e2f90043366fb8061784da4cd12af3278e8a9ea0af78fdba4490f96f28b68cb1")) + (axioms))) (leg :prover lean :route re-proved :token proven :state RECONCILED ; the run reported: check-proofs.sh lean4: RESULT: PASS; axioms: none for 8 theorem(s) and 48 definition(s) of FeatureReachability.lean, and 102 theorem(s) and 128 definition(s) of Cohort.lean (receipt :run "https://github.com/hyperpolymath/mathesis/actions/runs/44190913019/job/134419742986" @@ -260,8 +329,14 @@ :commit "034f215b3b601aa6bdde7471bdc650bc62c0f56c" :checker "lean 4.29.0 (Guix 8edb9da)" :invocation "bash scripts/check-proofs.sh lean4: lean and the axiom audit of declared theorems on each gated module of verification/proofs/lean4" + :inputs-sha256 "de2e3324f91b25f4a05658dfcfb435c7417709667b8766f7aeaa832fa874c4c1" :state superseded - :reason "replaced by the CI receipt of run 44190913019 on main 8c55804, whose inputs add APP-1's middle clause and THY-1's propositional theorems, checked under the gate that audits definitions as well as theorems (PROOF-POLICY 8.4); for THY-1 it is also the first under the gate that fails on an empty audit: this receipt's empty axiom list came from an audit that inspected none of THY-1's results, which are definitions (proof audit 2026-11-16, finding 31)"))) + :reason "replaced by the CI receipt of run 44190913019 on main 8c55804, whose inputs add APP-1's middle clause and THY-1's propositional theorems, checked under the gate that audits definitions as well as theorems (PROOF-POLICY 8.4); for THY-1 it is also the first under the gate that fails on an empty audit: this receipt's empty axiom list came from an audit that inspected none of THY-1's results, which are definitions (proof audit 2026-11-16, finding 31)" + (inputs-manifest + (file :path "verification/proofs/lean4/Cohort.lean" :sha256 "b91e2aa7b1322284d67710ea918858497bc1245a6b941448df2deba4b521ce10") + (file :path "verification/proofs/lean4/FeatureReachability.lean" :sha256 "4158e54f85c8e83e49789869a4e9b12fe4b8d7460981f5c8442479268f17d55a") + (file :path "verification/proofs/lean4/lean-toolchain" :sha256 "651c8accb402b0c071cd336e9d3dc0a55516b1bfb434ddc4801f14936785b1d2")) + (axioms)))) (claim :id "APP-3" :pwg PWG-2ii :foundation-diverse #f (leg :prover agda :route source :token proven :state AGDA-VERIFIED ; the run reported: check-proofs.sh agda: RESULT: PASS; postulates: none in the first-party cones of FeatureReachability (1 module), Applied/Missing (3) and Applied/IntLaws (6) @@ -285,8 +360,18 @@ :commit "034f215b3b601aa6bdde7471bdc650bc62c0f56c" :checker "agda 2.7.0.1 (Guix 8edb9da)" :invocation "bash scripts/check-proofs.sh agda: agda --safe --without-K --cubical-compatible on each gated module of verification/proofs/agda" + :inputs-sha256 "4db97b78050ef622485ceb179e80ad9f39dbd986cdd6f45af0fd5b32a410c643" :state superseded - :reason "replaced by the CI receipt of run 44190913019 on main 8c55804, whose inputs add APP-1's middle clause and THY-1's propositional theorems, checked under the gate that audits definitions as well as theorems (PROOF-POLICY 8.4)")) + :reason "replaced by the CI receipt of run 44190913019 on main 8c55804, whose inputs add APP-1's middle clause and THY-1's propositional theorems, checked under the gate that audits definitions as well as theorems (PROOF-POLICY 8.4)" + (inputs-manifest + (file :path "verification/proofs/agda/Applied/Cash.agda" :sha256 "fe231a7679529e7998385d8acdcaf8cde6880e44a5cc5d5cc3c03fd4ac2eea12") + (file :path "verification/proofs/agda/Applied/Cohort.agda" :sha256 "5a485d5fd5329939aa85909e65bc200d886316ebb69e9786b2764dd17eba8d56") + (file :path "verification/proofs/agda/Applied/IntLaws.agda" :sha256 "09285481b29234fced3197b1a4fcd86f284a66f5ce011d23b68bb1aa602c91fb") + (file :path "verification/proofs/agda/Applied/IntNumber.agda" :sha256 "0ba5ca46fd22d0abb4f7ceb0ff73a7857f7a3acc6143a43a68cf5932e8868959") + (file :path "verification/proofs/agda/Applied/Missing.agda" :sha256 "4afb4c82e84bf6411b0f0c19eb6d34869a42bee7d5616624147d1881c78b6fe9") + (file :path "verification/proofs/agda/Applied/Status.agda" :sha256 "d059344565a55b897824b83b4f676b9a7326ba50a5b35a6da49ab72bb40e8a97") + (file :path "verification/proofs/agda/FeatureReachability.agda" :sha256 "4e39d6ae751d97d3edf57720ccf844d90de3e9ee6603901a04f5eb6494d94564")) + (axioms))) (leg :prover rocq :route re-proved :token proven :state RECONCILED ; the run reported: check-proofs.sh coq: RESULT: PASS; coqchk -o: no axiom, type-in-type, unsafe (co)fixpoint or assumed positivity; Print Assumptions: closed under the global context for 11 declaration(s) of FeatureReachability.v and 134 of Cohort.v (receipt :run "https://github.com/hyperpolymath/mathesis/actions/runs/44190913019/job/134419742986" @@ -304,8 +389,13 @@ :commit "034f215b3b601aa6bdde7471bdc650bc62c0f56c" :checker "coqc 8.18.0 (Guix 8edb9da)" :invocation "bash scripts/check-proofs.sh coq: coqc and Print Assumptions on each gated module of verification/proofs/coq" + :inputs-sha256 "1c5814d6040f119382ebeccffe477cbd7d8485a45cf9e8877782316378e28709" :state superseded - :reason "replaced by the CI receipt of run 44190913019 on main 8c55804, whose inputs add APP-1's middle clause and THY-1's propositional theorems, checked under the gate that audits definitions as well as theorems (PROOF-POLICY 8.4)")) + :reason "replaced by the CI receipt of run 44190913019 on main 8c55804, whose inputs add APP-1's middle clause and THY-1's propositional theorems, checked under the gate that audits definitions as well as theorems (PROOF-POLICY 8.4)" + (inputs-manifest + (file :path "verification/proofs/coq/Cohort.v" :sha256 "2519cdbdb3b22ee5132e5708bbbeb9e87e3b2d8c2c318329c96c0545863b6260") + (file :path "verification/proofs/coq/FeatureReachability.v" :sha256 "e2f90043366fb8061784da4cd12af3278e8a9ea0af78fdba4490f96f28b68cb1")) + (axioms))) (leg :prover lean :route re-proved :token proven :state RECONCILED ; the run reported: check-proofs.sh lean4: RESULT: PASS; axioms: none for 8 theorem(s) and 48 definition(s) of FeatureReachability.lean, and 102 theorem(s) and 128 definition(s) of Cohort.lean (receipt :run "https://github.com/hyperpolymath/mathesis/actions/runs/44190913019/job/134419742986" @@ -324,8 +414,14 @@ :commit "034f215b3b601aa6bdde7471bdc650bc62c0f56c" :checker "lean 4.29.0 (Guix 8edb9da)" :invocation "bash scripts/check-proofs.sh lean4: lean and the axiom audit of declared theorems on each gated module of verification/proofs/lean4" + :inputs-sha256 "de2e3324f91b25f4a05658dfcfb435c7417709667b8766f7aeaa832fa874c4c1" :state superseded - :reason "replaced by the CI receipt of run 44190913019 on main 8c55804, whose inputs add APP-1's middle clause and THY-1's propositional theorems, checked under the gate that audits definitions as well as theorems (PROOF-POLICY 8.4); for THY-1 it is also the first under the gate that fails on an empty audit: this receipt's empty axiom list came from an audit that inspected none of THY-1's results, which are definitions (proof audit 2026-11-16, finding 31)"))) + :reason "replaced by the CI receipt of run 44190913019 on main 8c55804, whose inputs add APP-1's middle clause and THY-1's propositional theorems, checked under the gate that audits definitions as well as theorems (PROOF-POLICY 8.4); for THY-1 it is also the first under the gate that fails on an empty audit: this receipt's empty axiom list came from an audit that inspected none of THY-1's results, which are definitions (proof audit 2026-11-16, finding 31)" + (inputs-manifest + (file :path "verification/proofs/lean4/Cohort.lean" :sha256 "b91e2aa7b1322284d67710ea918858497bc1245a6b941448df2deba4b521ce10") + (file :path "verification/proofs/lean4/FeatureReachability.lean" :sha256 "4158e54f85c8e83e49789869a4e9b12fe4b8d7460981f5c8442479268f17d55a") + (file :path "verification/proofs/lean4/lean-toolchain" :sha256 "651c8accb402b0c071cd336e9d3dc0a55516b1bfb434ddc4801f14936785b1d2")) + (axioms)))) (claim :id "APP-4" :pwg PWG-2ii :foundation-diverse #f (leg :prover agda :route source :token proven :state AGDA-VERIFIED ; the run reported: check-proofs.sh agda: RESULT: PASS; postulates: none in the first-party cones of FeatureReachability (1 module), Applied/Missing (3) and Applied/IntLaws (6) @@ -349,8 +445,18 @@ :commit "034f215b3b601aa6bdde7471bdc650bc62c0f56c" :checker "agda 2.7.0.1 (Guix 8edb9da)" :invocation "bash scripts/check-proofs.sh agda: agda --safe --without-K --cubical-compatible on each gated module of verification/proofs/agda" + :inputs-sha256 "4db97b78050ef622485ceb179e80ad9f39dbd986cdd6f45af0fd5b32a410c643" :state superseded - :reason "replaced by the CI receipt of run 44190913019 on main 8c55804, whose inputs add APP-1's middle clause and THY-1's propositional theorems, checked under the gate that audits definitions as well as theorems (PROOF-POLICY 8.4)")) + :reason "replaced by the CI receipt of run 44190913019 on main 8c55804, whose inputs add APP-1's middle clause and THY-1's propositional theorems, checked under the gate that audits definitions as well as theorems (PROOF-POLICY 8.4)" + (inputs-manifest + (file :path "verification/proofs/agda/Applied/Cash.agda" :sha256 "fe231a7679529e7998385d8acdcaf8cde6880e44a5cc5d5cc3c03fd4ac2eea12") + (file :path "verification/proofs/agda/Applied/Cohort.agda" :sha256 "5a485d5fd5329939aa85909e65bc200d886316ebb69e9786b2764dd17eba8d56") + (file :path "verification/proofs/agda/Applied/IntLaws.agda" :sha256 "09285481b29234fced3197b1a4fcd86f284a66f5ce011d23b68bb1aa602c91fb") + (file :path "verification/proofs/agda/Applied/IntNumber.agda" :sha256 "0ba5ca46fd22d0abb4f7ceb0ff73a7857f7a3acc6143a43a68cf5932e8868959") + (file :path "verification/proofs/agda/Applied/Missing.agda" :sha256 "4afb4c82e84bf6411b0f0c19eb6d34869a42bee7d5616624147d1881c78b6fe9") + (file :path "verification/proofs/agda/Applied/Status.agda" :sha256 "d059344565a55b897824b83b4f676b9a7326ba50a5b35a6da49ab72bb40e8a97") + (file :path "verification/proofs/agda/FeatureReachability.agda" :sha256 "4e39d6ae751d97d3edf57720ccf844d90de3e9ee6603901a04f5eb6494d94564")) + (axioms))) (leg :prover rocq :route re-proved :token proven :state RECONCILED ; the run reported: check-proofs.sh coq: RESULT: PASS; coqchk -o: no axiom, type-in-type, unsafe (co)fixpoint or assumed positivity; Print Assumptions: closed under the global context for 11 declaration(s) of FeatureReachability.v and 134 of Cohort.v (receipt :run "https://github.com/hyperpolymath/mathesis/actions/runs/44190913019/job/134419742986" @@ -368,8 +474,13 @@ :commit "034f215b3b601aa6bdde7471bdc650bc62c0f56c" :checker "coqc 8.18.0 (Guix 8edb9da)" :invocation "bash scripts/check-proofs.sh coq: coqc and Print Assumptions on each gated module of verification/proofs/coq" + :inputs-sha256 "1c5814d6040f119382ebeccffe477cbd7d8485a45cf9e8877782316378e28709" :state superseded - :reason "replaced by the CI receipt of run 44190913019 on main 8c55804, whose inputs add APP-1's middle clause and THY-1's propositional theorems, checked under the gate that audits definitions as well as theorems (PROOF-POLICY 8.4)")) + :reason "replaced by the CI receipt of run 44190913019 on main 8c55804, whose inputs add APP-1's middle clause and THY-1's propositional theorems, checked under the gate that audits definitions as well as theorems (PROOF-POLICY 8.4)" + (inputs-manifest + (file :path "verification/proofs/coq/Cohort.v" :sha256 "2519cdbdb3b22ee5132e5708bbbeb9e87e3b2d8c2c318329c96c0545863b6260") + (file :path "verification/proofs/coq/FeatureReachability.v" :sha256 "e2f90043366fb8061784da4cd12af3278e8a9ea0af78fdba4490f96f28b68cb1")) + (axioms))) (leg :prover lean :route re-proved :token proven :state RECONCILED ; the run reported: check-proofs.sh lean4: RESULT: PASS; axioms: none for 8 theorem(s) and 48 definition(s) of FeatureReachability.lean, and 102 theorem(s) and 128 definition(s) of Cohort.lean (receipt :run "https://github.com/hyperpolymath/mathesis/actions/runs/44190913019/job/134419742986" @@ -388,6 +499,12 @@ :commit "034f215b3b601aa6bdde7471bdc650bc62c0f56c" :checker "lean 4.29.0 (Guix 8edb9da)" :invocation "bash scripts/check-proofs.sh lean4: lean and the axiom audit of declared theorems on each gated module of verification/proofs/lean4" + :inputs-sha256 "de2e3324f91b25f4a05658dfcfb435c7417709667b8766f7aeaa832fa874c4c1" :state superseded - :reason "replaced by the CI receipt of run 44190913019 on main 8c55804, whose inputs add APP-1's middle clause and THY-1's propositional theorems, checked under the gate that audits definitions as well as theorems (PROOF-POLICY 8.4); for THY-1 it is also the first under the gate that fails on an empty audit: this receipt's empty axiom list came from an audit that inspected none of THY-1's results, which are definitions (proof audit 2026-11-16, finding 31)"))) + :reason "replaced by the CI receipt of run 44190913019 on main 8c55804, whose inputs add APP-1's middle clause and THY-1's propositional theorems, checked under the gate that audits definitions as well as theorems (PROOF-POLICY 8.4); for THY-1 it is also the first under the gate that fails on an empty audit: this receipt's empty axiom list came from an audit that inspected none of THY-1's results, which are definitions (proof audit 2026-11-16, finding 31)" + (inputs-manifest + (file :path "verification/proofs/lean4/Cohort.lean" :sha256 "b91e2aa7b1322284d67710ea918858497bc1245a6b941448df2deba4b521ce10") + (file :path "verification/proofs/lean4/FeatureReachability.lean" :sha256 "4158e54f85c8e83e49789869a4e9b12fe4b8d7460981f5c8442479268f17d55a") + (file :path "verification/proofs/lean4/lean-toolchain" :sha256 "651c8accb402b0c071cd336e9d3dc0a55516b1bfb434ddc4801f14936785b1d2")) + (axioms)))) ) From 178d99a1024223ecbadc7b76e2955f207a497ee0 Mon Sep 17 00:00:00 2001 From: Claude Date: Wed, 25 Nov 2026 09:53:03 +0000 Subject: [PATCH 6/7] check-proofs: remove the old report before the toolchain check CodeRabbit found that a run whose prover is missing exits at the toolchain check, before the line that removes the previous report. A PASS report from an earlier run then survives a failed run. The gate only reads reports after a green job, so no false row could reach the ledger, but the file contradicted the script's own rule that a report exists only for a run that passed. A probe confirmed it for all four provers: with only bash, dirname, mkdir and rm on PATH, each run exits 1 and leaves the old report. The report is now removed right after the script names its prover, before anything can fail. It is still written only at the end, when every check has passed. tests/golden/check_controls_test.sh, which the Proof Policy Gate runs, gains a regression case: for each prover, an earlier report must be gone after a run with no prover on PATH. The case passes with the fix and fails for all four provers against the old script. A passing Rocq run still writes its three-line report. shellcheck reports the same two notes as before. Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_01J4QvDfdGcZ6qgY7JabLsEi --- CHANGELOG.adoc | 3 ++- scripts/check-proofs.sh | 33 +++++++++++++++-------------- tests/golden/check_controls_test.sh | 18 ++++++++++++++++ 3 files changed, 37 insertions(+), 17 deletions(-) diff --git a/CHANGELOG.adoc b/CHANGELOG.adoc index 0dd0f200..257a9107 100644 --- a/CHANGELOG.adoc +++ b/CHANGELOG.adoc @@ -129,7 +129,8 @@ https://semver.org/spec/v2.0.0.html[Semantic Versioning]. control. `just receipt-record ROWS` records a run. The Proof Policy Gate writes the ledger rows of each green run on main to its job summary, from a report that `scripts/check-proofs.sh` writes when `PROOF_REPORT_DIR` is set; no log - is read. The current receipts and grades are unchanged. Superseded receipts + is read, and a run that fails, a missing prover included, leaves no report. + The current receipts and grades are unchanged. Superseded receipts keep their run's inputs digest and axioms, and the inputs manifest where it can be rebuilt (`RECEIPT_KEEP_LINEAGE_DETAIL=1`, standards#1705). The canon reader, the git checker and the generator are pinned at standards `84c2d1c` diff --git a/scripts/check-proofs.sh b/scripts/check-proofs.sh index 9f63b96c..cb67b516 100755 --- a/scripts/check-proofs.sh +++ b/scripts/check-proofs.sh @@ -271,6 +271,23 @@ LEAN echo "=== $PROVER proof check ===" +# --- the receipt report: what a ledger row of this run records ----------------- +# With PROOF_REPORT_DIR set, a run that passes writes $PROOF_REPORT_DIR/$PROVER, +# three lines that scripts/grade-receipt.sh --run-row takes as they are (the +# Proof Policy Gate does, on main; PROOF-POLICY §8.5.1): +# 1. the checker, " ", from the version line printed below; +# 2. the axioms the run reported: "none", since a run passes only when every +# gated module's audit found none; +# 3. what the run reported: the result, then each gated module and the +# summary of its audit (AUDIT_SUMMARY), in MANIFEST order. +# The file is removed here, before anything can fail (the toolchain check +# included), so a run that fails leaves none behind: a report exists only for +# a run that passed. Nothing is read back from the log. +if [ -n "${PROOF_REPORT_DIR:-}" ]; then + mkdir -p "$PROOF_REPORT_DIR" + rm -f -- "${PROOF_REPORT_DIR:?}/${PROVER:?}" +fi + # --- toolchain: absent means FAIL, never skip --------------------------------- if ! command -v "$CMD" >/dev/null 2>&1; then { @@ -286,22 +303,6 @@ fi TOOL_VERSION="$("$CMD" --version 2>/dev/null | head -1 || true)" printf '%s\n' "$TOOL_VERSION" -# --- the receipt report: what a ledger row of this run records ----------------- -# With PROOF_REPORT_DIR set, a run that passes writes $PROOF_REPORT_DIR/$PROVER, -# three lines that scripts/grade-receipt.sh --run-row takes as they are (the -# Proof Policy Gate does, on main; PROOF-POLICY §8.5.1): -# 1. the checker, " ", from the version line above; -# 2. the axioms the run reported: "none", since a run passes only when every -# gated module's audit found none; -# 3. what the run reported: the result, then each gated module and the -# summary of its audit (AUDIT_SUMMARY), in MANIFEST order. -# The file is removed first, so a run that fails leaves none behind: a report -# exists only for a run that passed. Nothing is read back from the log. -if [ -n "${PROOF_REPORT_DIR:-}" ]; then - mkdir -p "$PROOF_REPORT_DIR" - rm -f -- "${PROOF_REPORT_DIR:?}/${PROVER:?}" -fi - # --- Agda: a data directory it can write --------------------------------------- # Agda keeps the interfaces of its own primitive modules (Agda.Primitive and the # Agda.Builtin modules) in /lib/prim/_build. A packaged Agda whose diff --git a/tests/golden/check_controls_test.sh b/tests/golden/check_controls_test.sh index 30914dbd..2e5feefc 100644 --- a/tests/golden/check_controls_test.sh +++ b/tests/golden/check_controls_test.sh @@ -50,4 +50,22 @@ sed -i 's/{"evidence_status":"missing","id":"closing","kind":"expected","period" (cd "$d" && just --quiet applied-build >/dev/null) expect_fail "missing read as zero" "$d" check-proofs "Applied/Example/Approximate.agda FAIL" +# A receipt report outlives no failed run: a report left by an earlier passing +# run is removed when a later run fails, even when it fails at once because its +# prover is not on PATH. The PATH holds only the tools the script needs before +# its toolchain check, so no prover is on it. +bin=$t/report-bin; reports=$t/reports +mkdir -p "$bin" "$reports" +for tool in bash dirname mkdir rm; do ln -s "$(type -P "$tool")" "$bin/$tool"; done +for prover in agda coq lean4 idris2; do + printf 'an earlier PASS report\n' >"$reports/$prover" + if PATH=$bin PROOF_REPORT_DIR=$reports "$bin/bash" "$root/scripts/check-proofs.sh" "$prover" >/dev/null 2>&1; then + echo "FAIL: stale report: check-proofs.sh $prover passed with no prover on PATH"; fail=1 + elif [ -e "$reports/$prover" ]; then + echo "FAIL: stale report: a failed $prover run left the earlier report"; fail=1 + else + echo "PASS: stale report: a failed $prover run removes the earlier report" + fi +done + exit "$fail" From 31701cedcd2570ea7bcda7812b919c04f62c7f66 Mon Sep 17 00:00:00 2001 From: Claude Date: Thu, 26 Nov 2026 10:35:10 +0000 Subject: [PATCH 7/7] test(registry): import GENERATOR in the claims-registry test --- tests/registry/claims-registry.test.mjs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/registry/claims-registry.test.mjs b/tests/registry/claims-registry.test.mjs index e2a7115d..d5f1b668 100644 --- a/tests/registry/claims-registry.test.mjs +++ b/tests/registry/claims-registry.test.mjs @@ -9,7 +9,7 @@ import {readFileSync, mkdtempSync, mkdirSync, writeFileSync, copyFileSync} from import {createHash} from 'node:crypto'; import {tmpdir} from 'node:os'; import path from 'node:path'; -import {isClaimId, validate, loadReader, derive, deriveAll, withGitCheck, findTool, gitChecker, checkerScript, render, READER, CHECKER} from '../../scripts/registry/claims-registry.mjs'; +import {isClaimId, validate, loadReader, derive, deriveAll, withGitCheck, findTool, gitChecker, checkerScript, render, READER, CHECKER, GENERATOR} from '../../scripts/registry/claims-registry.mjs'; import {parseJsonl} from '../../scripts/atlas/census-atlas.mjs'; const rows = parseJsonl(readFileSync(new URL('../../docs/atlas/claims/claims.jsonl', import.meta.url), 'utf8'));