From 9b485333bd54a9241b0f194e0df59e29d3b2bbea Mon Sep 17 00:00:00 2001 From: Claude Date: Mon, 16 Nov 2026 18:14:09 +0000 Subject: [PATCH 1/3] Agda gate: suppress no warning MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit scripts/check-agda.sh drops -W noUnsupportedIndexedMatch. Since the 2026-11-09 restatement of _≤_ and the injectivity lemmas, the core, the unit tests and the nine expected rejections raise no UnsupportedIndexedMatch warning, so under -W error every warning now fails the gate. This carries out the owner ruling of 2026-11-09 for a warning-free profile; the suppression came back with #21's merge. PROOF-STATUS and PROOF-NEEDS describe the new invocation. The receipt at f211fc1 keeps the invocation it ran; the next receipt records this one. Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_01LiQzWJdcPfRU6YMDGRG8Xi --- CHANGELOG.adoc | 9 +++++++++ docs/status/PROOF-NEEDS.adoc | 5 ++--- docs/status/PROOF-STATUS.adoc | 9 ++++++--- scripts/check-agda.sh | 4 ++-- 4 files changed, 19 insertions(+), 8 deletions(-) diff --git a/CHANGELOG.adoc b/CHANGELOG.adoc index a2dbf89..277360c 100644 --- a/CHANGELOG.adoc +++ b/CHANGELOG.adoc @@ -1,5 +1,14 @@ == Changelog +== 2026-11-16 — Agda gate suppresses no warning + +* `scripts/check-agda.sh` drops `-W noUnsupportedIndexedMatch`. Since the + 2026-11-09 restatement of `_≤_` and the injectivity lemmas the core raises no + `UnsupportedIndexedMatch` warning, so under `-W error` every warning now + fails the gate (owner ruling 2026-11-09: a warning-free profile). +* `docs/status/PROOF-STATUS.adoc` and `PROOF-NEEDS.adoc` say so. The receipt + at `f211fc1` keeps the invocation it ran; the next receipt records the new one. + == 2026-11-11 — Proof receipt and grades at f211fc1 * `verification/receipts/resource-algebra-proofs_praxis.deed`: the proof diff --git a/docs/status/PROOF-NEEDS.adoc b/docs/status/PROOF-NEEDS.adoc index 8f20b57..d64f2b0 100644 --- a/docs/status/PROOF-NEEDS.adoc +++ b/docs/status/PROOF-NEEDS.adoc @@ -1,7 +1,7 @@ // SPDX-License-Identifier: CC-BY-SA-4.0 // Copyright (c) Jonathan D.A. Jewell = Proof Requirements — resource-algebra -:revdate: 2026-11-09 +:revdate: 2026-11-16 What this repository owes, classified by the estate proof policy (`3-practice/PROOF-POLICY.adoc` in `hyperpolymath/standards`). What has been @@ -46,8 +46,7 @@ they were removed with those files on 2026-11-09. | PN-1 | Every theorem in `PROOF-STATUS.adoc` checks in Agda under the canonical invocation `--safe --without-K --cubical-compatible` (policy §2.1), with no -postulates, holes or libraries, under `-W error` (only -`UnsupportedIndexedMatch` is suppressed) and the estate strict flag set. +postulates, holes or libraries, under `-W error` with no warning suppressed, and the estate strict flag set. | `scripts/check-agda.sh`; CI `proofs.yml` | PN-2 diff --git a/docs/status/PROOF-STATUS.adoc b/docs/status/PROOF-STATUS.adoc index b61abeb..1d02afb 100644 --- a/docs/status/PROOF-STATUS.adoc +++ b/docs/status/PROOF-STATUS.adoc @@ -1,6 +1,6 @@ // SPDX-License-Identifier: CC-BY-SA-4.0 = resource-algebra — Proof Status -:revdate: 2026-11-11 +:revdate: 2026-11-16 Every row is a theory theorem (`PROOF-NEEDS.adoc`). Records follow `3-practice/PROOF-POLICY.adoc` in `hyperpolymath/standards`, which keeps @@ -33,13 +33,16 @@ dependent type theories (§8.3). * *Invocation.* `scripts/check-agda.sh` runs `agda --safe --without-K --cubical-compatible --no-libraries --ignore-interfaces --double-check --W error -W noUnsupportedIndexedMatch -i src`, and every module also +-W error -i src`, and every module also declares `--exact-split --no-sized-types --no-guardedness` (the estate strict flag set, from main #21) over `src/ResourceAlgebra/All.agda`, the unit tests (`tests/unit/AllTests.agda`) and the nine expected rejections. A rejection must fail at its invalid declaration with the message its `-- EXPECT:` line names. A refusal with any other message fails the gate, and so does any -warning other than `UnsupportedIndexedMatch`. +warning: no warning is suppressed. The receipt at `f211fc1` was taken while +the gate still passed `-W noUnsupportedIndexedMatch`, which the warning-free +core had made redundant; the gate dropped it afterwards, so the next receipt +records the invocation without it. * *Import cone.* Only `src/ResourceAlgebra/`: no standard library and no other library. There is no `postulate` (refused by `--safe`), no hole and no `TERMINATING` or similar pragma. diff --git a/scripts/check-agda.sh b/scripts/check-agda.sh index 2afe0bf..55ba287 100755 --- a/scripts/check-agda.sh +++ b/scripts/check-agda.sh @@ -8,10 +8,10 @@ prover="${AGDA:-agda}" "$prover" --version # The canonical theory-proof invocation (standards PROOF-POLICY §2.1, # 2026-11-01) is --safe --without-K --cubical-compatible. -W error makes any -# warning a failure, except UnsupportedIndexedMatch, which is suppressed. +# warning a failure; no warning is suppressed. # --no-libraries keeps the import cone first-party (no standard library); # --double-check re-checks every term with the core type checker. -flags=(--safe --without-K --cubical-compatible --no-libraries --ignore-interfaces --double-check -W error -W noUnsupportedIndexedMatch -i src) +flags=(--safe --without-K --cubical-compatible --no-libraries --ignore-interfaces --double-check -W error -i src) # PROOF-POLICY §8.4.6: a comment-aware postulate scan of the import cone # (src/), alongside --safe. scripts/scan-postulates.pl reads each file in # source order (nested block comments, line comments, strings) and fails on From 7f095b48d650cb66279e3bf2961a4140e57c699d Mon Sep 17 00:00:00 2001 From: Claude Date: Mon, 16 Nov 2026 18:20:03 +0000 Subject: [PATCH 2/3] F-5: move maps-disagree-at-positive into the graded cone The ledger cites maps-disagree-at-positive as F-5's proof that the two strict morphisms Loss -> MaxPlus are distinct. It lived in tests/unit/MorphismTest.agda, outside the graded import cone (src/ResourceAlgebra/All.agda) and so outside the Agda receipt's inputs manifest: a change to it would not have invalidated F-5's receipt. It moves, unchanged, into src/ResourceAlgebra/Morphism.agda. The Rocq and Lean legs already prove it under the same name. PROOF-STATUS records the gap in the receipt at f211fc1; the next receipt covers the lemma. Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_01LiQzWJdcPfRU6YMDGRG8Xi --- CHANGELOG.adoc | 7 ++++++- docs/status/PROOF-STATUS.adoc | 9 ++++++++- src/ResourceAlgebra/Morphism.agda | 4 ++++ tests/unit/MorphismTest.agda | 3 --- 4 files changed, 18 insertions(+), 5 deletions(-) diff --git a/CHANGELOG.adoc b/CHANGELOG.adoc index 277360c..278946d 100644 --- a/CHANGELOG.adoc +++ b/CHANGELOG.adoc @@ -1,7 +1,12 @@ == Changelog -== 2026-11-16 — Agda gate suppresses no warning +== 2026-11-16 — Agda gate suppresses no warning; F-5 lemma moves into the cone +* F-5's distinctness lemma `maps-disagree-at-positive` moves from + `tests/unit/MorphismTest.agda` into `src/ResourceAlgebra/Morphism.agda`. + The ledger cites it as part of F-5, but in the unit tests it sat outside the + graded import cone (`All.agda`) and so outside the Agda receipt's inputs + manifest: a change to it would not have invalidated F-5's receipt. * `scripts/check-agda.sh` drops `-W noUnsupportedIndexedMatch`. Since the 2026-11-09 restatement of `_≤_` and the injectivity lemmas the core raises no `UnsupportedIndexedMatch` warning, so under `-W error` every warning now diff --git a/docs/status/PROOF-STATUS.adoc b/docs/status/PROOF-STATUS.adoc index 1d02afb..02b63fa 100644 --- a/docs/status/PROOF-STATUS.adoc +++ b/docs/status/PROOF-STATUS.adoc @@ -145,6 +145,13 @@ support. The receipt deed is written by hand from the run; no gate writes or recomputes it yet. The run summaries that hold the per-leg digests are kept by GitHub for a limited time. +One gap in the receipt at `f211fc1`: F-5 cites `maps-disagree-at-positive`, +which was then in `tests/unit/MorphismTest.agda`. The run checked it (the +gate checks the unit tests), but the Agda leg's inputs manifest lists only +`src/`, so a change to that file would not have invalidated F-5's receipt. +The lemma is now in `src/ResourceAlgebra/Morphism.agda`, inside the cone, and +the next receipt covers it. + Earlier receipts: run `42629220745` on source commit `9f175cc57f9c2c2db255c1b3161e24cfba4abc4d` (2026-11-09). They are `superseded`: F-5's classifier, the strict flag set and `⊕-least` all @@ -411,7 +418,7 @@ none goes to MaxPlus or to Loss. `support`. Neither distinguishes `fin 1` from `fin 2`. | `PROVEN`. Both are morphisms (`zero-test-hom`, `support-hom`) and every morphism is one of them (`Loss→MaxPlus`). They are distinct -(`maps-disagree-at-positive`, tests/unit/MorphismTest.agda), and every +(`maps-disagree-at-positive`), and every morphism collapses `fin 1` and `fin 2` (`Loss→MaxPlus-collapses`, `no-injective-Loss→MaxPlus`). | 1 diff --git a/src/ResourceAlgebra/Morphism.agda b/src/ResourceAlgebra/Morphism.agda index 443312c..41b7c81 100644 --- a/src/ResourceAlgebra/Morphism.agda +++ b/src/ResourceAlgebra/Morphism.agda @@ -254,6 +254,10 @@ no-injective-Loss→MaxPlus : (h : Hom Loss MaxPlus) no-injective-Loss→MaxPlus h inj with inj (fin 1) (fin 2) (Loss→MaxPlus-collapses h) ... | () +-- The two morphisms are distinct: they disagree at every positive finite grade. +maps-disagree-at-positive : ∀ n → zero-test (fin (suc n)) ≢ support (fin (suc n)) +maps-disagree-at-positive n () + ---------------------------------------------------------------------- -- MaxPlus → Loss: exactly one strict morphism support′ : Tropical → L.Grade diff --git a/tests/unit/MorphismTest.agda b/tests/unit/MorphismTest.agda index 3e5594c..36ea986 100644 --- a/tests/unit/MorphismTest.agda +++ b/tests/unit/MorphismTest.agda @@ -31,9 +31,6 @@ support-at-finite n = refl support-at-infinity : Hom.map support-hom inf ≡ bot support-at-infinity = refl -maps-disagree-at-positive : ∀ n → zero-test (fin (suc n)) ≢ support (fin (suc n)) -maps-disagree-at-positive n () - reverse-support-at-finite : ∀ n → Hom.map support′-hom (val n) ≡ fin 0 reverse-support-at-finite n = refl From fb9f18553d3af81eca13e153565ff85aeb1665d4 Mon Sep 17 00:00:00 2001 From: Claude Date: Mon, 16 Nov 2026 18:58:11 +0000 Subject: [PATCH 3/3] Revert "Agda gate: suppress no warning" This reverts commit 9b485333bd54a9241b0f194e0df59e29d3b2bbea. hyperpolymath/resource-algebra#37 makes the same gate change and adds a regression test (tests/check_agda_warning_gate_test.sh) that fails against the old flags. One change belongs in one PR, so this branch keeps only F-5's lemma move and leaves the gate to #37. Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_01LiQzWJdcPfRU6YMDGRG8Xi --- CHANGELOG.adoc | 8 +------- docs/status/PROOF-NEEDS.adoc | 5 +++-- docs/status/PROOF-STATUS.adoc | 7 ++----- scripts/check-agda.sh | 4 ++-- 4 files changed, 8 insertions(+), 16 deletions(-) diff --git a/CHANGELOG.adoc b/CHANGELOG.adoc index 278946d..b32f767 100644 --- a/CHANGELOG.adoc +++ b/CHANGELOG.adoc @@ -1,18 +1,12 @@ == Changelog -== 2026-11-16 — Agda gate suppresses no warning; F-5 lemma moves into the cone +== 2026-11-16 — F-5's distinctness lemma moves into the graded cone * F-5's distinctness lemma `maps-disagree-at-positive` moves from `tests/unit/MorphismTest.agda` into `src/ResourceAlgebra/Morphism.agda`. The ledger cites it as part of F-5, but in the unit tests it sat outside the graded import cone (`All.agda`) and so outside the Agda receipt's inputs manifest: a change to it would not have invalidated F-5's receipt. -* `scripts/check-agda.sh` drops `-W noUnsupportedIndexedMatch`. Since the - 2026-11-09 restatement of `_≤_` and the injectivity lemmas the core raises no - `UnsupportedIndexedMatch` warning, so under `-W error` every warning now - fails the gate (owner ruling 2026-11-09: a warning-free profile). -* `docs/status/PROOF-STATUS.adoc` and `PROOF-NEEDS.adoc` say so. The receipt - at `f211fc1` keeps the invocation it ran; the next receipt records the new one. == 2026-11-11 — Proof receipt and grades at f211fc1 diff --git a/docs/status/PROOF-NEEDS.adoc b/docs/status/PROOF-NEEDS.adoc index d64f2b0..8f20b57 100644 --- a/docs/status/PROOF-NEEDS.adoc +++ b/docs/status/PROOF-NEEDS.adoc @@ -1,7 +1,7 @@ // SPDX-License-Identifier: CC-BY-SA-4.0 // Copyright (c) Jonathan D.A. Jewell = Proof Requirements — resource-algebra -:revdate: 2026-11-16 +:revdate: 2026-11-09 What this repository owes, classified by the estate proof policy (`3-practice/PROOF-POLICY.adoc` in `hyperpolymath/standards`). What has been @@ -46,7 +46,8 @@ they were removed with those files on 2026-11-09. | PN-1 | Every theorem in `PROOF-STATUS.adoc` checks in Agda under the canonical invocation `--safe --without-K --cubical-compatible` (policy §2.1), with no -postulates, holes or libraries, under `-W error` with no warning suppressed, and the estate strict flag set. +postulates, holes or libraries, under `-W error` (only +`UnsupportedIndexedMatch` is suppressed) and the estate strict flag set. | `scripts/check-agda.sh`; CI `proofs.yml` | PN-2 diff --git a/docs/status/PROOF-STATUS.adoc b/docs/status/PROOF-STATUS.adoc index 02b63fa..4cbf808 100644 --- a/docs/status/PROOF-STATUS.adoc +++ b/docs/status/PROOF-STATUS.adoc @@ -33,16 +33,13 @@ dependent type theories (§8.3). * *Invocation.* `scripts/check-agda.sh` runs `agda --safe --without-K --cubical-compatible --no-libraries --ignore-interfaces --double-check --W error -i src`, and every module also +-W error -W noUnsupportedIndexedMatch -i src`, and every module also declares `--exact-split --no-sized-types --no-guardedness` (the estate strict flag set, from main #21) over `src/ResourceAlgebra/All.agda`, the unit tests (`tests/unit/AllTests.agda`) and the nine expected rejections. A rejection must fail at its invalid declaration with the message its `-- EXPECT:` line names. A refusal with any other message fails the gate, and so does any -warning: no warning is suppressed. The receipt at `f211fc1` was taken while -the gate still passed `-W noUnsupportedIndexedMatch`, which the warning-free -core had made redundant; the gate dropped it afterwards, so the next receipt -records the invocation without it. +warning other than `UnsupportedIndexedMatch`. * *Import cone.* Only `src/ResourceAlgebra/`: no standard library and no other library. There is no `postulate` (refused by `--safe`), no hole and no `TERMINATING` or similar pragma. diff --git a/scripts/check-agda.sh b/scripts/check-agda.sh index 55ba287..2afe0bf 100755 --- a/scripts/check-agda.sh +++ b/scripts/check-agda.sh @@ -8,10 +8,10 @@ prover="${AGDA:-agda}" "$prover" --version # The canonical theory-proof invocation (standards PROOF-POLICY §2.1, # 2026-11-01) is --safe --without-K --cubical-compatible. -W error makes any -# warning a failure; no warning is suppressed. +# warning a failure, except UnsupportedIndexedMatch, which is suppressed. # --no-libraries keeps the import cone first-party (no standard library); # --double-check re-checks every term with the core type checker. -flags=(--safe --without-K --cubical-compatible --no-libraries --ignore-interfaces --double-check -W error -i src) +flags=(--safe --without-K --cubical-compatible --no-libraries --ignore-interfaces --double-check -W error -W noUnsupportedIndexedMatch -i src) # PROOF-POLICY §8.4.6: a comment-aware postulate scan of the import cone # (src/), alongside --safe. scripts/scan-postulates.pl reads each file in # source order (nested block comments, line comments, strings) and fails on