Skip to content

Commit 01c24f6

Browse files
hyperpolymathclaude
andcommitted
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

File tree

proofs/agda/EchoTruncation.agda

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,9 @@ open import Relation.Nullary using (¬_)
2626

2727
private
2828
variable
29-
a b : Level
30-
A : Set a
31-
B : Set b
29+
ℓa ℓb : Level
30+
A : Set ℓa
31+
B : Set ℓb
3232

3333
-- A type is propositional ("a mere proposition") when any two
3434
-- inhabitants are equal. Standard HoTT terminology, kept universe-

0 commit comments

Comments
 (0)