Repository navigation
Commit 6bc52b8
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
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| |||
0 commit comments