Commit 01c24f6
agda(truncation): rename level variables to avoid name shadow
The `private variable a b : Level` block at the top of EchoTruncation.agda
shadowed the constructors `EchoTropical.Candidate.a` and
`EchoTropical.Candidate.b` once `open import EchoTropical using (...; a; b; ...)`
was in scope inside `module TropicalExample`. Agda 2.8.0 + stdlib v2.0
flagged the ambiguity:
EchoTruncation.agda:144.25-26: error: [AmbiguousName]
Ambiguous name a. ...
Renaming to `ℓa ℓb : Level` makes the level variables non-conflicting
with any imported example's term-level names while keeping the
universe-polymorphism intact.
Done-test now passes:
agda --safe -i proofs/agda proofs/agda/EchoTruncation.agda # exit 0
(Verified locally on Ubuntu WSL with the prebuilt Agda 2.8.0 Linux
binary + agda-stdlib v2.0.)
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent c13f307 commit 01c24f6
1 file changed
Lines changed: 3 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
26 | 26 | | |
27 | 27 | | |
28 | 28 | | |
29 | | - | |
30 | | - | |
31 | | - | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
32 | 32 | | |
33 | 33 | | |
34 | 34 | | |
| |||
0 commit comments