Created
May 29, 2022 06:14
-
-
Save stedolan/9d03cca5f7411370d415376a8ed5a8ea to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- Is this a bug in Agda? | |
-- Try repro with latest agda sometime | |
module VarBug where | |
open import Agda.Builtin.Equality | |
open import Agda.Primitive | |
data Unit : Set where | |
tt : Unit | |
_~>_ : {l : Level} → Unit → Set l → Set l | |
tt ~> S = S | |
wrap : {A : Unit} {l : Level} {S : Set l} → S → (A ~> S) | |
wrap {tt} x = x | |
wrap-id : {l : Level} {S : Set l} (x : S) → wrap x ≡ x | |
wrap-id x = refl | |
variable | |
l : Level | |
S : Set l | |
wrap-id' : (x : S) → wrap x ≡ x | |
wrap-id' x = refl |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment