Repository navigation
Commit 71d6dd6
proofs: make the repo's own modules pass the strict flag set (#355)
## Summary
This PR fixes the four echo-types sites that failed the strict Agda flag
set. No theorem statements change. These are clause splits plus one
stdlib rename.
The strict set:
- In each file's `OPTIONS` pragma: `--safe --without-K
--cubical-compatible --exact-split --no-sized-types --no-guardedness`.
- On the command line: `--double-check -W error -W
noUnsupportedIndexedMatch`.
| File | Flag | Fix |
|---|---|---|
| `EchoExampleParser.agda` (`parses-aux`) | `--exact-split` | Move the
`LP` clause first so the case tree splits on the token first. |
| `EchoExampleParser.agda` (`second-token`) | `--exact-split` | Replace
the catch-all with explicit `[]` and `(_ ∷ [])` clauses. This site was
hidden behind the `parses-aux` failure. |
| `EchoTropical.agda` (`_⊕_`) | `--exact-split` | `m ⊕ zero = m` becomes
`suc m ⊕ zero = suc m`. |
| `EchoBitNarrowingNumeric.agda` | `-W error` | Replace the deprecated
stdlib `≤-step` with `m≤n⇒m≤1+n`. |
## Verification (Agda 2.6.3, stdlib 2.3)
- `agda proofs/agda/All.agda` and `agda proofs/agda/Smoke.agda` both
exit 0 under the repo's current flags.
- `scripts/kernel-guard.sh` PASS. `tools/check-guardrails.sh` OK (137
modules).
- Strict sweep, every module compiled on its own with the strict set: 2
sites remain, both outside this repo:
- `EchoCNOBridge.agda:35`
- `EchoThermodynamicsArbitrary.agda:76`
Both import absolute-zero's `CNO`, which does not declare
`--cubical-compatible`. That flag is coinfective: a module using it can
only import modules that also use it. So the fix belongs in
absolute-zero, not here.
This PR does not add the strict pragmas to the repo's files. It only
makes the code compatible with them.
---
_Generated by [Claude
Code](https://claude.ai/code/session_01MF5GeeBBDF6sUzr6pZTjWV)_
---------
Co-authored-by: Claude <noreply@anthropic.com>1 parent 3582c9b commit 71d6dd6
3 files changed
Lines changed: 9 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
10 | | - | |
| 10 | + | |
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
| |||
48 | 48 | | |
49 | 49 | | |
50 | 50 | | |
51 | | - | |
| 51 | + | |
52 | 52 | | |
53 | 53 | | |
54 | 54 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
78 | 78 | | |
79 | 79 | | |
80 | 80 | | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
81 | 84 | | |
82 | 85 | | |
| 86 | + | |
83 | 87 | | |
84 | 88 | | |
85 | | - | |
86 | 89 | | |
87 | 90 | | |
88 | 91 | | |
| |||
111 | 114 | | |
112 | 115 | | |
113 | 116 | | |
114 | | - | |
| 117 | + | |
| 118 | + | |
115 | 119 | | |
116 | 120 | | |
117 | 121 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
27 | | - | |
| 27 | + | |
28 | 28 | | |
29 | 29 | | |
30 | 30 | | |
| |||
0 commit comments