Closed JacquesCarette closed 2 months ago
I'm confused. What is in the book currently is:
data _⊎_ (A B : Set) : Set where
inj₁ :
A
-----
→ A ⊎ B
inj₂ :
B
-----
→ A ⊎ B
(a) That compiles fine under 2.6.4.1. (b) I don't see how it differs from your suggested correction.
My error! I apparently had some older versions of the files around which did have that "bug". I see that this is indeed fixed now.
Looks like I'm going to have to rebuild all my live-coding, full-of-holes Agda files from scratch from current PLFA. Glad that I caught it now instead of during a lecture...
OK. Thanks for checking.
The problem is that the definition confuses parameters and indicies. The "correct" definition would be
(which is what is essentially in the standard library)