2015-05-21 06:23:05 +00:00
|
|
|
|
-- HoTT
|
2015-09-25 16:46:51 +00:00
|
|
|
|
import homotopy.circle
|
2015-05-27 01:17:46 +00:00
|
|
|
|
open circle eq int pi
|
2015-05-21 06:23:05 +00:00
|
|
|
|
|
|
|
|
|
attribute circle.rec circle.elim [recursor 4]
|
|
|
|
|
|
|
|
|
|
protected definition my_code (x : circle) : Type₀ :=
|
|
|
|
|
begin
|
|
|
|
|
induction x,
|
|
|
|
|
{ exact ℤ},
|
|
|
|
|
{ apply ua, apply equiv_succ}
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
protected definition my_decode {x : circle} : my_code x → base = x :=
|
2015-05-27 01:17:46 +00:00
|
|
|
|
begin
|
|
|
|
|
induction x,
|
|
|
|
|
{ exact power loop},
|
|
|
|
|
{ apply arrow_pathover_left, intro b, apply concato_eq, apply pathover_eq_r,
|
2015-06-27 00:10:18 +00:00
|
|
|
|
xrewrite [power_con, transport_code_loop]},
|
2015-05-27 01:17:46 +00:00
|
|
|
|
end
|