2015-05-27 23:38:31 +00:00
|
|
|
/-
|
|
|
|
Copyright (c) 2015 Floris van Doorn. All rights reserved.
|
|
|
|
Released under Apache 2.0 license as described in the file LICENSE.
|
2015-10-31 23:57:20 +00:00
|
|
|
Author: Floris van Doorn, Jakob von Raumer
|
2015-05-27 23:38:31 +00:00
|
|
|
|
|
|
|
Cubes
|
|
|
|
-/
|
|
|
|
|
|
|
|
import .square
|
|
|
|
|
2015-10-20 17:49:26 +00:00
|
|
|
open equiv equiv.ops is_equiv sigma sigma.ops
|
2015-05-27 23:38:31 +00:00
|
|
|
|
|
|
|
namespace eq
|
|
|
|
|
2015-10-30 16:54:24 +00:00
|
|
|
inductive cube {A : Type} {a₀₀₀ : A} : Π{a₂₀₀ a₀₂₀ a₂₂₀ a₀₀₂ a₂₀₂ a₀₂₂ a₂₂₂ : A}
|
2015-05-27 23:38:31 +00:00
|
|
|
{p₁₀₀ : a₀₀₀ = a₂₀₀} {p₀₁₀ : a₀₀₀ = a₀₂₀} {p₀₀₁ : a₀₀₀ = a₀₀₂}
|
|
|
|
{p₁₂₀ : a₀₂₀ = a₂₂₀} {p₂₁₀ : a₂₀₀ = a₂₂₀} {p₂₀₁ : a₂₀₀ = a₂₀₂}
|
|
|
|
{p₁₀₂ : a₀₀₂ = a₂₀₂} {p₀₁₂ : a₀₀₂ = a₀₂₂} {p₀₂₁ : a₀₂₀ = a₀₂₂}
|
|
|
|
{p₁₂₂ : a₀₂₂ = a₂₂₂} {p₂₁₂ : a₂₀₂ = a₂₂₂} {p₂₂₁ : a₂₂₀ = a₂₂₂}
|
|
|
|
(s₀₁₁ : square p₀₁₀ p₀₁₂ p₀₀₁ p₀₂₁)
|
2015-07-29 12:17:16 +00:00
|
|
|
(s₂₁₁ : square p₂₁₀ p₂₁₂ p₂₀₁ p₂₂₁)
|
|
|
|
(s₁₀₁ : square p₁₀₀ p₁₀₂ p₀₀₁ p₂₀₁)
|
2015-10-31 23:57:20 +00:00
|
|
|
(s₁₂₁ : square p₁₂₀ p₁₂₂ p₀₂₁ p₂₂₁)
|
|
|
|
(s₁₁₀ : square p₀₁₀ p₂₁₀ p₁₀₀ p₁₂₀)
|
|
|
|
(s₁₁₂ : square p₀₁₂ p₂₁₂ p₁₀₂ p₁₂₂), Type :=
|
2015-05-27 23:38:31 +00:00
|
|
|
idc : cube ids ids ids ids ids ids
|
|
|
|
|
2015-07-29 12:17:16 +00:00
|
|
|
variables {A B : Type} {a₀₀₀ a₂₀₀ a₀₂₀ a₂₂₀ a₀₀₂ a₂₀₂ a₀₂₂ a₂₂₂ a a' : A}
|
2015-05-27 23:38:31 +00:00
|
|
|
{p₁₀₀ : a₀₀₀ = a₂₀₀} {p₀₁₀ : a₀₀₀ = a₀₂₀} {p₀₀₁ : a₀₀₀ = a₀₀₂}
|
|
|
|
{p₁₂₀ : a₀₂₀ = a₂₂₀} {p₂₁₀ : a₂₀₀ = a₂₂₀} {p₂₀₁ : a₂₀₀ = a₂₀₂}
|
|
|
|
{p₁₀₂ : a₀₀₂ = a₂₀₂} {p₀₁₂ : a₀₀₂ = a₀₂₂} {p₀₂₁ : a₀₂₀ = a₀₂₂}
|
|
|
|
{p₁₂₂ : a₀₂₂ = a₂₂₂} {p₂₁₂ : a₂₀₂ = a₂₂₂} {p₂₂₁ : a₂₂₀ = a₂₂₂}
|
|
|
|
{s₁₁₀ : square p₀₁₀ p₂₁₀ p₁₀₀ p₁₂₀}
|
|
|
|
{s₁₁₂ : square p₀₁₂ p₂₁₂ p₁₀₂ p₁₂₂}
|
|
|
|
{s₀₁₁ : square p₀₁₀ p₀₁₂ p₀₀₁ p₀₂₁}
|
|
|
|
{s₂₁₁ : square p₂₁₀ p₂₁₂ p₂₀₁ p₂₂₁}
|
2015-07-29 12:17:16 +00:00
|
|
|
{s₁₀₁ : square p₁₀₀ p₁₀₂ p₀₀₁ p₂₀₁}
|
|
|
|
{s₁₂₁ : square p₁₂₀ p₁₂₂ p₀₂₁ p₂₂₁}
|
|
|
|
{b₁ b₂ b₃ b₄ : B}
|
2015-10-31 23:57:20 +00:00
|
|
|
(c : cube s₀₁₁ s₂₁₁ s₁₀₁ s₁₂₁ s₁₁₀ s₁₁₂)
|
2015-05-27 23:38:31 +00:00
|
|
|
|
|
|
|
definition idc [reducible] [constructor] := @cube.idc
|
|
|
|
definition idcube [reducible] [constructor] (a : A) := @cube.idc A a
|
2015-10-20 17:49:26 +00:00
|
|
|
|
|
|
|
variables (s₁₁₀ s₁₀₁)
|
2015-10-31 23:57:20 +00:00
|
|
|
definition refl1 : cube s₀₁₁ s₀₁₁ hrfl hrfl vrfl vrfl :=
|
|
|
|
by induction s₀₁₁; exact idc
|
2015-10-20 17:49:26 +00:00
|
|
|
|
2015-10-31 23:57:20 +00:00
|
|
|
definition refl2 : cube hrfl hrfl s₁₀₁ s₁₀₁ hrfl hrfl :=
|
2015-10-20 17:49:26 +00:00
|
|
|
by induction s₁₀₁; exact idc
|
2015-10-31 23:57:20 +00:00
|
|
|
|
|
|
|
definition refl3 : cube vrfl vrfl vrfl vrfl s₁₁₀ s₁₁₀ :=
|
|
|
|
by induction s₁₁₀; exact idc
|
2015-10-20 17:49:26 +00:00
|
|
|
|
|
|
|
variables {s₁₁₀ s₁₀₁}
|
2015-10-31 23:57:20 +00:00
|
|
|
definition rfl1 : cube s₀₁₁ s₀₁₁ hrfl hrfl vrfl vrfl := !refl1
|
2015-10-20 17:49:26 +00:00
|
|
|
|
2015-10-31 23:57:20 +00:00
|
|
|
definition rfl2 : cube hrfl hrfl s₁₀₁ s₁₀₁ hrfl hrfl := !refl2
|
2015-10-20 17:49:26 +00:00
|
|
|
|
2015-10-31 23:57:20 +00:00
|
|
|
definition rfl3 : cube vrfl vrfl vrfl vrfl s₁₁₀ s₁₁₀ := !refl3
|
2015-07-29 12:17:16 +00:00
|
|
|
|
2015-10-30 16:54:24 +00:00
|
|
|
-- Variables for composition
|
2015-10-31 23:57:20 +00:00
|
|
|
variables {a₄₀₀ a₄₀₂ a₄₂₀ a₄₂₂ a₀₄₀ a₀₄₂ a₂₄₀ a₂₄₂ a₀₀₄ a₀₂₄ a₂₀₄ a₂₂₄ : A}
|
2015-10-30 16:54:24 +00:00
|
|
|
{p₃₀₀ : a₂₀₀ = a₄₀₀} {p₃₀₂ : a₂₀₂ = a₄₀₂} {p₃₂₀ : a₂₂₀ = a₄₂₀} {p₃₂₂ : a₂₂₂ = a₄₂₂}
|
|
|
|
{p₄₀₁ : a₄₀₀ = a₄₀₂} {p₄₁₀ : a₄₀₀ = a₄₂₀} {p₄₁₂ : a₄₀₂ = a₄₂₂} {p₄₂₁ : a₄₂₀ = a₄₂₂}
|
2015-10-31 23:57:20 +00:00
|
|
|
{p₀₃₀ : a₀₂₀ = a₀₄₀} {p₀₃₂ : a₀₂₂ = a₀₄₂} {p₂₃₀ : a₂₂₀ = a₂₄₀} {p₂₃₂ : a₂₂₂ = a₂₄₂}
|
|
|
|
{p₀₄₁ : a₀₄₀ = a₀₄₂} {p₁₄₀ : a₀₄₀ = a₂₄₀} {p₁₄₂ : a₀₄₂ = a₂₄₂} {p₂₄₁ : a₂₄₀ = a₂₄₂}
|
2015-11-08 19:24:37 +00:00
|
|
|
{p₀₀₃ : a₀₀₂ = a₀₀₄} {p₀₂₃ : a₀₂₂ = a₀₂₄} {p₂₀₃ : a₂₀₂ = a₂₀₄} {p₂₂₃ : a₂₂₂ = a₂₂₄}
|
|
|
|
{p₀₁₄ : a₀₀₄ = a₀₂₄} {p₁₀₄ : a₀₀₄ = a₂₀₄} {p₁₂₄ : a₀₂₄ = a₂₂₄} {p₂₁₄ : a₂₀₄ = a₂₂₄}
|
2015-10-31 23:57:20 +00:00
|
|
|
{s₃₀₁ : square p₃₀₀ p₃₀₂ p₂₀₁ p₄₀₁} {s₃₁₀ : square p₂₁₀ p₄₁₀ p₃₀₀ p₃₂₀}
|
|
|
|
{s₃₁₂ : square p₂₁₂ p₄₁₂ p₃₀₂ p₃₂₂} {s₃₂₁ : square p₃₂₀ p₃₂₂ p₂₂₁ p₄₂₁}
|
2015-10-30 16:54:24 +00:00
|
|
|
{s₄₁₁ : square p₄₁₀ p₄₁₂ p₄₀₁ p₄₂₁}
|
2015-10-31 23:57:20 +00:00
|
|
|
{s₀₃₁ : square p₀₃₀ p₀₃₂ p₀₂₁ p₀₄₁} {s₁₃₀ : square p₀₃₀ p₂₃₀ p₁₂₀ p₁₄₀}
|
|
|
|
{s₁₃₂ : square p₀₃₂ p₂₃₂ p₁₂₂ p₁₄₂} {s₂₃₁ : square p₂₃₀ p₂₃₂ p₂₂₁ p₂₄₁}
|
|
|
|
{s₁₄₁ : square p₁₄₀ p₁₄₂ p₀₄₁ p₂₄₁}
|
2015-11-08 19:24:37 +00:00
|
|
|
{s₀₁₃ : square p₀₁₂ p₀₁₄ p₀₀₃ p₀₂₃} {s₁₀₃ : square p₁₀₂ p₁₀₄ p₀₀₃ p₂₀₃}
|
|
|
|
{s₁₂₃ : square p₁₂₂ p₁₂₄ p₀₂₃ p₂₂₃} {s₂₁₃ : square p₂₁₂ p₂₁₄ p₂₀₃ p₂₂₃}
|
|
|
|
{s₁₁₄ : square p₀₁₄ p₂₁₄ p₁₀₄ p₁₂₄}
|
2015-10-31 23:57:20 +00:00
|
|
|
(d : cube s₂₁₁ s₄₁₁ s₃₀₁ s₃₂₁ s₃₁₀ s₃₁₂)
|
|
|
|
(e : cube s₀₃₁ s₂₃₁ s₁₂₁ s₁₄₁ s₁₃₀ s₁₃₂)
|
2015-11-08 19:24:37 +00:00
|
|
|
(f : cube s₀₁₃ s₂₁₃ s₁₀₃ s₁₂₃ s₁₁₂ s₁₁₄)
|
2015-10-30 16:54:24 +00:00
|
|
|
|
|
|
|
/- Composition of Cubes -/
|
|
|
|
|
|
|
|
include c d
|
2015-10-31 23:57:20 +00:00
|
|
|
definition cube_concat1 : cube s₀₁₁ s₄₁₁ (s₁₀₁ ⬝h s₃₀₁) (s₁₂₁ ⬝h s₃₂₁) (s₁₁₀ ⬝v s₃₁₀) (s₁₁₂ ⬝v s₃₁₂) :=
|
|
|
|
by induction d; exact c
|
|
|
|
omit d
|
2015-10-30 16:54:24 +00:00
|
|
|
|
2015-10-31 23:57:20 +00:00
|
|
|
include e
|
|
|
|
definition cube_concat2 : cube (s₀₁₁ ⬝h s₀₃₁) (s₂₁₁ ⬝h s₂₃₁) s₁₀₁ s₁₄₁ (s₁₁₀ ⬝h s₁₃₀) (s₁₁₂ ⬝h s₁₃₂) :=
|
|
|
|
by induction e; exact c
|
2015-11-08 19:24:37 +00:00
|
|
|
omit e
|
|
|
|
|
|
|
|
include f
|
|
|
|
definition cube_concat3 : cube (s₀₁₁ ⬝v s₀₁₃) (s₂₁₁ ⬝v s₂₁₃) (s₁₀₁ ⬝v s₁₀₃) (s₁₂₁ ⬝v s₁₂₃) s₁₁₀ s₁₁₄ :=
|
|
|
|
by induction f; exact c
|
|
|
|
omit f c
|
2015-10-30 16:54:24 +00:00
|
|
|
|
2015-10-31 23:57:20 +00:00
|
|
|
definition eq_of_cube (c : cube s₀₁₁ s₂₁₁ s₁₀₁ s₁₂₁ s₁₁₀ s₁₁₂) :
|
2015-07-29 12:17:16 +00:00
|
|
|
transpose s₁₀₁⁻¹ᵛ ⬝h s₁₁₀ ⬝h transpose s₁₂₁ =
|
2015-08-04 17:00:12 +00:00
|
|
|
whisker_square (eq_bot_of_square s₀₁₁) (eq_bot_of_square s₂₁₁) idp idp s₁₁₂ :=
|
2015-07-29 12:17:16 +00:00
|
|
|
by induction c; reflexivity
|
|
|
|
|
2015-11-24 17:58:53 +00:00
|
|
|
definition eq_of_deg12_cube {s s' : square p₀₁₀ p₂₁₀ p₁₀₀ p₁₂₀}
|
2015-10-31 23:57:20 +00:00
|
|
|
(c : cube vrfl vrfl vrfl vrfl s s') : s = s' :=
|
|
|
|
by induction s; exact eq_of_cube c
|
2015-07-29 12:17:16 +00:00
|
|
|
|
|
|
|
definition square_pathover [unfold 7]
|
|
|
|
{f₁ : A → b₁ = b₂} {f₂ : A → b₃ = b₄} {f₃ : A → b₁ = b₃} {f₄ : A → b₂ = b₄}
|
|
|
|
{p : a = a'}
|
2015-10-20 17:49:26 +00:00
|
|
|
{q : square (f₁ a) (f₂ a) (f₃ a) (f₄ a)}
|
|
|
|
{r : square (f₁ a') (f₂ a') (f₃ a') (f₄ a')}
|
2015-10-31 23:57:20 +00:00
|
|
|
(s : cube (vdeg_square (ap f₁ p)) (vdeg_square (ap f₂ p))
|
|
|
|
(vdeg_square (ap f₃ p)) (vdeg_square (ap f₄ p)) q r) : q =[p] r :=
|
2015-11-24 17:58:53 +00:00
|
|
|
by induction p;apply pathover_idp_of_eq;exact eq_of_deg12_cube s
|
2015-05-27 23:38:31 +00:00
|
|
|
|
2015-10-20 17:49:26 +00:00
|
|
|
/- Transporting along a square -/
|
|
|
|
|
|
|
|
definition cube_transport110 {s₁₁₀' : square p₀₁₀ p₂₁₀ p₁₀₀ p₁₂₀}
|
2015-10-31 23:57:20 +00:00
|
|
|
(p : s₁₁₀ = s₁₁₀') (c : cube s₀₁₁ s₂₁₁ s₁₀₁ s₁₂₁ s₁₁₀ s₁₁₂) :
|
|
|
|
cube s₀₁₁ s₂₁₁ s₁₀₁ s₁₂₁ s₁₁₀' s₁₁₂ :=
|
2015-10-20 17:49:26 +00:00
|
|
|
by induction p; exact c
|
|
|
|
|
|
|
|
definition cube_transport112 {s₁₁₂' : square p₀₁₂ p₂₁₂ p₁₀₂ p₁₂₂}
|
2015-10-31 23:57:20 +00:00
|
|
|
(p : s₁₁₂ = s₁₁₂') (c : cube s₀₁₁ s₂₁₁ s₁₀₁ s₁₂₁ s₁₁₀ s₁₁₂) :
|
|
|
|
cube s₀₁₁ s₂₁₁ s₁₀₁ s₁₂₁ s₁₁₀ s₁₁₂':=
|
2015-10-20 17:49:26 +00:00
|
|
|
by induction p; exact c
|
|
|
|
|
|
|
|
definition cube_transport011 {s₀₁₁' : square p₀₁₀ p₀₁₂ p₀₀₁ p₀₂₁}
|
2015-10-31 23:57:20 +00:00
|
|
|
(p : s₀₁₁ = s₀₁₁') (c : cube s₀₁₁ s₂₁₁ s₁₀₁ s₁₂₁ s₁₁₀ s₁₁₂) :
|
|
|
|
cube s₀₁₁' s₂₁₁ s₁₀₁ s₁₂₁ s₁₁₀ s₁₁₂ :=
|
2015-10-20 17:49:26 +00:00
|
|
|
by induction p; exact c
|
|
|
|
|
|
|
|
definition cube_transport211 {s₂₁₁' : square p₂₁₀ p₂₁₂ p₂₀₁ p₂₂₁}
|
2015-10-31 23:57:20 +00:00
|
|
|
(p : s₂₁₁ = s₂₁₁') (c : cube s₀₁₁ s₂₁₁ s₁₀₁ s₁₂₁ s₁₁₀ s₁₁₂) :
|
|
|
|
cube s₀₁₁ s₂₁₁' s₁₀₁ s₁₂₁ s₁₁₀ s₁₁₂ :=
|
2015-10-20 17:49:26 +00:00
|
|
|
by induction p; exact c
|
|
|
|
|
|
|
|
definition cube_transport101 {s₁₀₁' : square p₁₀₀ p₁₀₂ p₀₀₁ p₂₀₁}
|
2015-10-31 23:57:20 +00:00
|
|
|
(p : s₁₀₁ = s₁₀₁') (c : cube s₀₁₁ s₂₁₁ s₁₀₁ s₁₂₁ s₁₁₀ s₁₁₂) :
|
|
|
|
cube s₀₁₁ s₂₁₁ s₁₀₁' s₁₂₁ s₁₁₀ s₁₁₂ :=
|
2015-10-20 17:49:26 +00:00
|
|
|
by induction p; exact c
|
|
|
|
|
|
|
|
definition cube_transport121 {s₁₂₁' : square p₁₂₀ p₁₂₂ p₀₂₁ p₂₂₁}
|
2015-10-31 23:57:20 +00:00
|
|
|
(p : s₁₂₁ = s₁₂₁') (c : cube s₀₁₁ s₂₁₁ s₁₀₁ s₁₂₁ s₁₁₀ s₁₁₂) :
|
|
|
|
cube s₀₁₁ s₂₁₁ s₁₀₁ s₁₂₁' s₁₁₀ s₁₁₂ :=
|
2015-10-20 17:49:26 +00:00
|
|
|
by induction p; exact c
|
|
|
|
|
2015-10-21 14:52:32 +00:00
|
|
|
/- Each equality between squares leads to a cube which is degenerate in one
|
|
|
|
dimension. -/
|
|
|
|
|
|
|
|
definition deg1_cube {s₁₁₀' : square p₀₁₀ p₂₁₀ p₁₀₀ p₁₂₀} (p : s₁₁₀ = s₁₁₀') :
|
2015-10-31 23:57:20 +00:00
|
|
|
cube s₁₁₀ s₁₁₀' hrfl hrfl vrfl vrfl :=
|
2015-10-21 14:52:32 +00:00
|
|
|
by induction p; exact rfl1
|
|
|
|
|
|
|
|
definition deg2_cube {s₁₁₀' : square p₀₁₀ p₂₁₀ p₁₀₀ p₁₂₀} (p : s₁₁₀ = s₁₁₀') :
|
2015-10-31 23:57:20 +00:00
|
|
|
cube hrfl hrfl s₁₁₀ s₁₁₀' hrfl hrfl :=
|
2015-10-21 14:52:32 +00:00
|
|
|
by induction p; exact rfl2
|
|
|
|
|
|
|
|
definition deg3_cube {s₁₁₀' : square p₀₁₀ p₂₁₀ p₁₀₀ p₁₂₀} (p : s₁₁₀ = s₁₁₀') :
|
2015-10-31 23:57:20 +00:00
|
|
|
cube vrfl vrfl vrfl vrfl s₁₁₀ s₁₁₀' :=
|
2015-10-21 14:52:32 +00:00
|
|
|
by induction p; exact rfl3
|
|
|
|
|
2015-10-20 17:49:26 +00:00
|
|
|
/- For each square of parralel equations, there are cubes where the square's
|
|
|
|
sides appear in a degenerated way and two opposite sides are ids's -/
|
|
|
|
|
|
|
|
section
|
|
|
|
variables {a₀ a₁ : A} {p₀₀ p₀₂ p₂₀ p₂₂ : a₀ = a₁} {s₁₀ : p₀₀ = p₂₀}
|
|
|
|
{s₁₂ : p₀₂ = p₂₂} {s₀₁ : p₀₀ = p₀₂} {s₂₁ : p₂₀ = p₂₂}
|
|
|
|
(sq : square s₁₀ s₁₂ s₀₁ s₂₁)
|
|
|
|
|
|
|
|
include sq
|
|
|
|
|
2015-10-31 23:57:20 +00:00
|
|
|
definition ids3_cube_of_square : cube (hdeg_square s₀₁)
|
|
|
|
(hdeg_square s₂₁) (hdeg_square s₁₀) (hdeg_square s₁₂) ids ids :=
|
2015-10-20 17:49:26 +00:00
|
|
|
by induction p₀₀; induction sq; apply idc
|
|
|
|
|
2015-11-24 14:07:06 +00:00
|
|
|
definition ids1_cube_of_square : cube ids ids
|
2015-10-31 23:57:20 +00:00
|
|
|
(vdeg_square s₁₀) (vdeg_square s₁₂) (hdeg_square s₀₁) (hdeg_square s₂₁) :=
|
2015-10-20 17:49:26 +00:00
|
|
|
by induction p₀₀; induction sq; apply idc
|
|
|
|
|
2015-11-24 14:07:06 +00:00
|
|
|
definition ids2_cube_of_square : cube (vdeg_square s₁₀) (vdeg_square s₁₂)
|
2015-10-31 23:57:20 +00:00
|
|
|
ids ids (vdeg_square s₀₁) (vdeg_square s₂₁) :=
|
2015-10-20 17:49:26 +00:00
|
|
|
by induction p₀₀; induction sq; apply idc
|
|
|
|
|
|
|
|
end
|
|
|
|
|
|
|
|
/- Cube fillers -/
|
|
|
|
|
|
|
|
section cube_fillers
|
|
|
|
variables (s₁₁₀ s₁₁₂ s₀₁₁ s₂₁₁ s₁₀₁ s₁₂₁)
|
|
|
|
|
2015-10-31 23:57:20 +00:00
|
|
|
definition cube_fill110 : Σ lid, cube s₀₁₁ s₂₁₁ s₁₀₁ s₁₂₁ lid s₁₁₂ :=
|
2015-10-20 17:49:26 +00:00
|
|
|
begin
|
|
|
|
induction s₀₁₁, induction s₂₁₁,
|
|
|
|
let fillsq := square_fill_l (eq_of_vdeg_square s₁₀₁)
|
|
|
|
(eq_of_hdeg_square s₁₁₂) (eq_of_vdeg_square s₁₂₁),
|
|
|
|
apply sigma.mk,
|
|
|
|
apply cube_transport101 (left_inv (vdeg_square_equiv _ _) s₁₀₁),
|
|
|
|
apply cube_transport112 (left_inv (hdeg_square_equiv _ _) s₁₁₂),
|
|
|
|
apply cube_transport121 (left_inv (vdeg_square_equiv _ _) s₁₂₁),
|
2015-11-24 14:07:06 +00:00
|
|
|
apply ids1_cube_of_square, exact fillsq.2
|
2015-10-20 17:49:26 +00:00
|
|
|
end
|
|
|
|
|
2015-10-31 23:57:20 +00:00
|
|
|
definition cube_fill112 : Σ lid, cube s₀₁₁ s₂₁₁ s₁₀₁ s₁₂₁ s₁₁₀ lid :=
|
2015-10-20 17:49:26 +00:00
|
|
|
begin
|
|
|
|
induction s₀₁₁, induction s₂₁₁,
|
|
|
|
let fillsq := square_fill_r (eq_of_vdeg_square s₁₀₁)
|
|
|
|
(eq_of_hdeg_square s₁₁₀) (eq_of_vdeg_square s₁₂₁),
|
|
|
|
apply sigma.mk,
|
|
|
|
apply cube_transport101 (left_inv (vdeg_square_equiv _ _) s₁₀₁),
|
|
|
|
apply cube_transport110 (left_inv (hdeg_square_equiv _ _) s₁₁₀),
|
|
|
|
apply cube_transport121 (left_inv (vdeg_square_equiv _ _) s₁₂₁),
|
2015-11-24 14:07:06 +00:00
|
|
|
apply ids1_cube_of_square, exact fillsq.2,
|
2015-10-20 17:49:26 +00:00
|
|
|
end
|
|
|
|
|
2015-10-31 23:57:20 +00:00
|
|
|
definition cube_fill011 : Σ lid, cube lid s₂₁₁ s₁₀₁ s₁₂₁ s₁₁₀ s₁₁₂ :=
|
2015-10-20 17:49:26 +00:00
|
|
|
begin
|
|
|
|
induction s₁₀₁, induction s₁₂₁,
|
|
|
|
let fillsq := square_fill_t (eq_of_vdeg_square s₁₁₀) (eq_of_vdeg_square s₁₁₂)
|
|
|
|
(eq_of_vdeg_square s₂₁₁),
|
|
|
|
apply sigma.mk,
|
|
|
|
apply cube_transport110 (left_inv (vdeg_square_equiv _ _) s₁₁₀),
|
|
|
|
apply cube_transport211 (left_inv (vdeg_square_equiv _ _) s₂₁₁),
|
|
|
|
apply cube_transport112 (left_inv (vdeg_square_equiv _ _) s₁₁₂),
|
2015-11-24 14:07:06 +00:00
|
|
|
apply ids2_cube_of_square, exact fillsq.2,
|
2015-10-20 17:49:26 +00:00
|
|
|
end
|
|
|
|
|
2015-10-31 23:57:20 +00:00
|
|
|
definition cube_fill211 : Σ lid, cube s₀₁₁ lid s₁₀₁ s₁₂₁ s₁₁₀ s₁₁₂ :=
|
2015-10-20 17:49:26 +00:00
|
|
|
begin
|
|
|
|
induction s₁₀₁, induction s₁₂₁,
|
|
|
|
let fillsq := square_fill_b (eq_of_vdeg_square s₀₁₁) (eq_of_vdeg_square s₁₁₀)
|
|
|
|
(eq_of_vdeg_square s₁₁₂),
|
|
|
|
apply sigma.mk,
|
|
|
|
apply cube_transport011 (left_inv (vdeg_square_equiv _ _) s₀₁₁),
|
|
|
|
apply cube_transport110 (left_inv (vdeg_square_equiv _ _) s₁₁₀),
|
|
|
|
apply cube_transport112 (left_inv (vdeg_square_equiv _ _) s₁₁₂),
|
2015-11-24 14:07:06 +00:00
|
|
|
apply ids2_cube_of_square, exact fillsq.2,
|
2015-10-20 17:49:26 +00:00
|
|
|
end
|
|
|
|
|
2015-10-31 23:57:20 +00:00
|
|
|
definition cube_fill101 : Σ lid, cube s₀₁₁ s₂₁₁ lid s₁₂₁ s₁₁₀ s₁₁₂ :=
|
2015-10-20 17:49:26 +00:00
|
|
|
begin
|
|
|
|
induction s₁₁₀, induction s₁₁₂,
|
|
|
|
let fillsq := square_fill_t (eq_of_hdeg_square s₀₁₁) (eq_of_hdeg_square s₂₁₁)
|
|
|
|
(eq_of_hdeg_square s₁₂₁),
|
|
|
|
apply sigma.mk,
|
|
|
|
apply cube_transport011 (left_inv (hdeg_square_equiv _ _) s₀₁₁),
|
|
|
|
apply cube_transport211 (left_inv (hdeg_square_equiv _ _) s₂₁₁),
|
|
|
|
apply cube_transport121 (left_inv (hdeg_square_equiv _ _) s₁₂₁),
|
2015-10-31 23:57:20 +00:00
|
|
|
apply ids3_cube_of_square, exact fillsq.2,
|
2015-10-20 17:49:26 +00:00
|
|
|
end
|
|
|
|
|
2015-10-31 23:57:20 +00:00
|
|
|
definition cube_fill121 : Σ lid, cube s₀₁₁ s₂₁₁ s₁₀₁ lid s₁₁₀ s₁₁₂ :=
|
2015-10-20 17:49:26 +00:00
|
|
|
begin
|
|
|
|
induction s₁₁₀, induction s₁₁₂,
|
|
|
|
let fillsq := square_fill_b (eq_of_hdeg_square s₁₀₁) (eq_of_hdeg_square s₀₁₁)
|
|
|
|
(eq_of_hdeg_square s₂₁₁),
|
|
|
|
apply sigma.mk,
|
|
|
|
apply cube_transport101 (left_inv (hdeg_square_equiv _ _) s₁₀₁),
|
|
|
|
apply cube_transport011 (left_inv (hdeg_square_equiv _ _) s₀₁₁),
|
|
|
|
apply cube_transport211 (left_inv (hdeg_square_equiv _ _) s₂₁₁),
|
2015-10-31 23:57:20 +00:00
|
|
|
apply ids3_cube_of_square, exact fillsq.2,
|
2015-10-20 17:49:26 +00:00
|
|
|
end
|
|
|
|
|
|
|
|
end cube_fillers
|
2015-05-27 23:38:31 +00:00
|
|
|
|
2015-11-25 16:44:31 +00:00
|
|
|
/- Apply a non-dependent function to an entire cube -/
|
|
|
|
|
2015-11-24 14:07:06 +00:00
|
|
|
include c
|
|
|
|
definition apc (f : A → B) :
|
|
|
|
cube (aps f s₀₁₁) (aps f s₂₁₁) (aps f s₁₀₁) (aps f s₁₂₁) (aps f s₁₁₀) (aps f s₁₁₂) :=
|
|
|
|
by cases c; exact idc
|
|
|
|
omit c
|
|
|
|
|
2015-11-25 16:44:31 +00:00
|
|
|
/- Transpose a cube (swap dimensions) -/
|
|
|
|
|
|
|
|
include c
|
|
|
|
definition transpose12 : cube s₁₀₁ s₁₂₁ s₀₁₁ s₂₁₁ (transpose s₁₁₀) (transpose s₁₁₂) :=
|
|
|
|
by cases c; exact idc
|
|
|
|
|
|
|
|
definition transpose13 : cube s₁₁₀ s₁₁₂ (transpose s₁₀₁) (transpose s₁₂₁) s₀₁₁ s₂₁₁ :=
|
|
|
|
by cases c; exact idc
|
|
|
|
|
|
|
|
definition transpose23 : cube (transpose s₀₁₁) (transpose s₂₁₁) (transpose s₁₁₀)
|
|
|
|
(transpose s₁₁₂) (transpose s₁₀₁) (transpose s₁₂₁) :=
|
|
|
|
by cases c; exact idc
|
|
|
|
omit c
|
|
|
|
|
|
|
|
/- Inverting a cube along one dimension -/
|
|
|
|
|
|
|
|
include c
|
|
|
|
definition cube_inverse1 : cube s₂₁₁ s₀₁₁ s₁₀₁⁻¹ʰ s₁₂₁⁻¹ʰ s₁₁₀⁻¹ᵛ s₁₁₂⁻¹ᵛ :=
|
|
|
|
by cases c; exact idc
|
|
|
|
|
|
|
|
definition cube_inverse2 : cube s₀₁₁⁻¹ʰ s₂₁₁⁻¹ʰ s₁₂₁ s₁₀₁ s₁₁₀⁻¹ʰ s₁₁₂⁻¹ʰ :=
|
|
|
|
by cases c; exact idc
|
|
|
|
|
|
|
|
definition cube_inverse3 : cube s₀₁₁⁻¹ᵛ s₂₁₁⁻¹ᵛ s₁₀₁⁻¹ᵛ s₁₂₁⁻¹ᵛ s₁₁₂ s₁₁₀ :=
|
|
|
|
by cases c; exact idc
|
|
|
|
|
|
|
|
omit c
|
|
|
|
|
2015-05-27 23:38:31 +00:00
|
|
|
end eq
|