Skip to content

Commit 6bc52b8

Browse files
proofs: strict pragma sweep (exact-split, no-sized-types, no-guardedness) (#377)
## Summary Pragma-only change. Ten modules now carry exactly `{-# OPTIONS --safe --without-K --cubical-compatible --exact-split --no-sized-types --no-guardedness #-}`: `All`, `Smoke`, `AuditSmoke`, `Echo/Measure/Composition`, `EchoDependentPushforward`, `EchoFiniteResidue`, `EchoResidueProtocol`, `EchoSourcePreserving`, `EchoSourcePreservingComparison`, `EchoThermodynamicsArbitrary`. No overlapping-clause fixes were needed: every module passed `--exact-split` unchanged. No `CATCHALL`, no flag weakened, no postulates introduced. Each diff is the one OPTIONS line. ## Deliberately not changed - `EchoImageFactorizationPropCubical.agda`: the `--cubical` island keeps its own profile. - `EchoImageFactorizationPropPostulated.agda`: the quarantined postulate shadow (`{-# OPTIONS --without-K #-}`, four postulates). `--safe` rejects `postulate`, so the requested pragma cannot apply without changing what the module is. Left as is. It is outside every CI root. - `EchoCNOBridge`, `EchoCNOSemantics`, `EchoCNOPackaging`: left to #376. `grep -rL` therefore still lists these three plus the two modules above (5 files). ## Verification (local, Agda 2.7.0.1 via `AGDA_TOOLS_DIR=/tmp/echo-agda bash scripts/setup-agda.sh`; `source /tmp/echo-agda/env.sh`) Static guards, all exit 0: - `sh scripts/kernel-guard.sh`: PASS - `bash scripts/check-experimental-aggregate.sh`: OK - `bash scripts/test-experimental-aggregate.sh`: PASS - `sh scripts/check-agda-invocations.sh`: OK - `bash tools/check-guardrails.sh proofs/agda`: OK (152 modules) Cold typechecks (`agda --no-libraries -i "$AGDA_STDLIB" -i "$ABSOLUTE_ZERO_AGDA" --ignore-interfaces --safe --without-K --cubical-compatible -i proofs/agda <root>`), each exit 0, no errors or warnings in output: - `All`, `Smoke`, `AuditSmoke`, `characteristic/All`, `examples/All`, `experimental/echo-additive/All`, `NarrowingSmoke` Cubical island (`... --ignore-interfaces --safe --cubical ... EchoImageFactorizationPropCubical.agda`): exit 0. Not run locally: the Rocq/Lean recheck legs (unaffected by this change). CI has not yet run on this PR; nothing here claims it passed. Note: #376 also edits `Smoke.agda` (other lines); a pragma-line-only change should not conflict. --- _Generated by [Claude Code](https://claude.ai/code/session_01J4QvDgtB5aF31cgQadaMa5)_ Co-authored-by: Claude <noreply@anthropic.com>
1 parent 5549185 commit 6bc52b8

10 files changed

Lines changed: 10 additions & 10 deletions

‎proofs/agda/All.agda‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
{-# OPTIONS --safe --without-K #-}
1+
{-# OPTIONS --safe --without-K --cubical-compatible --exact-split --no-sized-types --no-guardedness #-}
22
-- SPDX-License-Identifier: MPL-2.0
33
-- SPDX-FileCopyrightText: 2025-2026 Jonathan D.A. Jewell <j.d.a.jewell@open.ac.uk>
44

‎proofs/agda/AuditSmoke.agda‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
{-# OPTIONS --safe --without-K --cubical-compatible #-}
1+
{-# OPTIONS --safe --without-K --cubical-compatible --exact-split --no-sized-types --no-guardedness #-}
22
-- SPDX-License-Identifier: MPL-2.0
33
-- SPDX-FileCopyrightText: 2026 Jonathan D.A. Jewell <j.d.a.jewell@open.ac.uk>
44

‎proofs/agda/Echo/Measure/Composition.agda‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
{-# OPTIONS --safe --without-K --cubical-compatible #-}
1+
{-# OPTIONS --safe --without-K --cubical-compatible --exact-split --no-sized-types --no-guardedness #-}
22
-- SPDX-License-Identifier: MPL-2.0
33
-- SPDX-FileCopyrightText: 2026 Jonathan D.A. Jewell <j.d.a.jewell@open.ac.uk>
44

‎proofs/agda/EchoDependentPushforward.agda‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
{-# OPTIONS --safe --without-K --cubical-compatible #-}
1+
{-# OPTIONS --safe --without-K --cubical-compatible --exact-split --no-sized-types --no-guardedness #-}
22
-- SPDX-License-Identifier: MPL-2.0
33
-- SPDX-FileCopyrightText: 2026 Jonathan D.A. Jewell <j.d.a.jewell@open.ac.uk>
44

‎proofs/agda/EchoFiniteResidue.agda‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
{-# OPTIONS --safe --without-K --cubical-compatible #-}
1+
{-# OPTIONS --safe --without-K --cubical-compatible --exact-split --no-sized-types --no-guardedness #-}
22
-- SPDX-License-Identifier: MPL-2.0
33
-- SPDX-FileCopyrightText: 2026 Jonathan D.A. Jewell <j.d.a.jewell@open.ac.uk>
44

‎proofs/agda/EchoResidueProtocol.agda‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
{-# OPTIONS --safe --without-K --cubical-compatible #-}
1+
{-# OPTIONS --safe --without-K --cubical-compatible --exact-split --no-sized-types --no-guardedness #-}
22
-- SPDX-License-Identifier: MPL-2.0
33
-- SPDX-FileCopyrightText: 2026 Jonathan D.A. Jewell <j.d.a.jewell@open.ac.uk>
44

‎proofs/agda/EchoSourcePreserving.agda‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
{-# OPTIONS --safe --without-K --cubical-compatible #-}
1+
{-# OPTIONS --safe --without-K --cubical-compatible --exact-split --no-sized-types --no-guardedness #-}
22
-- SPDX-License-Identifier: MPL-2.0
33
-- SPDX-FileCopyrightText: 2026 Jonathan D.A. Jewell <j.d.a.jewell@open.ac.uk>
44

‎proofs/agda/EchoSourcePreservingComparison.agda‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
{-# OPTIONS --safe --without-K --cubical-compatible #-}
1+
{-# OPTIONS --safe --without-K --cubical-compatible --exact-split --no-sized-types --no-guardedness #-}
22
-- SPDX-License-Identifier: MPL-2.0
33
-- SPDX-FileCopyrightText: 2026 Jonathan D.A. Jewell <j.d.a.jewell@open.ac.uk>
44

‎proofs/agda/EchoThermodynamicsArbitrary.agda‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
{-# OPTIONS --safe --without-K #-}
1+
{-# OPTIONS --safe --without-K --cubical-compatible --exact-split --no-sized-types --no-guardedness #-}
22
-- SPDX-License-Identifier: MPL-2.0
33
-- SPDX-FileCopyrightText: 2025-2026 Jonathan D.A. Jewell <j.d.a.jewell@open.ac.uk>
44

‎proofs/agda/Smoke.agda‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
{-# OPTIONS --safe --without-K #-}
1+
{-# OPTIONS --safe --without-K --cubical-compatible --exact-split --no-sized-types --no-guardedness #-}
22
-- SPDX-License-Identifier: MPL-2.0
33
-- SPDX-FileCopyrightText: 2025-2026 Jonathan D.A. Jewell <j.d.a.jewell@open.ac.uk>
44

0 commit comments

Comments
 (0)