Idris2/tests/idris2/eta001/Issue1370.idr
2021-05-10 12:13:29 +01:00

15 lines
242 B
Idris

identity : (a : Type) -> a -> a
identity a = id
identityL :
(a, b : Type )
-> (f : a -> b)
-> (identity b) . f = f
identityL a b f = Refl
identityR :
(a, b : Type )
-> (f : a -> b)
-> f = (identity b) . f
identityR a b f = Refl