lean2/tests/lean/770.hlean

21 lines
464 B
Text
Raw Permalink Normal View History

2015-08-08 16:48:31 +00:00
open nat unit equiv eq
definition code : → Type₀
| code 0 0 := unit
| code (succ n) 0 := empty
| code 0 (succ m) := empty
| code (succ n) (succ m) := code n m
definition refl : Πn, code n n
| refl 0 := star
| refl (succ n) := refl n
definition encode (n m : ) : (n = m) ≃ code n m :=
2015-12-09 05:11:11 +00:00
equiv.MK (λp, p ▸ refl n)
2015-08-08 16:48:31 +00:00
(match n m with
| 0 0 := sorry
end)
sorry
sorry