Idris2/tests/ideMode/ideMode005/Rewrite.idr
Ohad Kammar e58bcfc7ef
Semantic highlighting (#1335)
Co-authored-by: Guillaume ALLAIS <guillaume.allais@ens-lyon.org>
2021-05-10 09:05:43 +01:00

10 lines
230 B
Idris

transport : (0 eq : a === b) -> a -> b
transport eq x = rewrite sym eq in x
nested : (0 _ : a === b) -> (0 _ : b === c) -> a === c
nested eq1 eq2 =
rewrite eq1 in
rewrite eq2 in
let prf : c === c := Refl in
prf