2015-05-21 06:14:11 +00:00
|
|
|
import hit.circle
|
|
|
|
|
2015-05-27 01:17:46 +00:00
|
|
|
open circle eq int pi
|
2015-05-21 06:14:11 +00:00
|
|
|
|
|
|
|
attribute circle.rec [recursor]
|
|
|
|
|
|
|
|
protected definition my_decode {x : circle} (c : circle.code x) : base = x :=
|
|
|
|
begin
|
|
|
|
induction x,
|
|
|
|
{ revert c, exact power loop },
|
2015-05-27 01:17:46 +00:00
|
|
|
{ apply arrow_pathover_left, intro b, apply concato_eq, apply pathover_eq_r,
|
|
|
|
rewrite [power_con,transport_code_loop]},
|
2015-05-21 06:14:11 +00:00
|
|
|
end
|
|
|
|
|
|
|
|
protected definition my_decode' {x : circle} : circle.code x → base = x :=
|
|
|
|
begin
|
|
|
|
induction x,
|
|
|
|
{ exact power loop},
|
2015-05-27 01:17:46 +00:00
|
|
|
{ apply arrow_pathover_left, intro b, apply concato_eq, apply pathover_eq_r,
|
|
|
|
rewrite [power_con,transport_code_loop]},
|
2015-05-21 06:14:11 +00:00
|
|
|
end
|