2015-04-07 01:01:08 +00:00
|
|
|
|
/-
|
|
|
|
|
Copyright (c) 2015 Floris van Doorn. All rights reserved.
|
|
|
|
|
Released under Apache 2.0 license as described in the file LICENSE.
|
|
|
|
|
Authors: Floris van Doorn
|
|
|
|
|
|
|
|
|
|
Declaration of the n-spheres
|
|
|
|
|
-/
|
|
|
|
|
|
2015-06-17 19:58:58 +00:00
|
|
|
|
import .susp types.trunc
|
2015-04-07 01:01:08 +00:00
|
|
|
|
|
2016-03-02 23:36:46 +00:00
|
|
|
|
open eq nat susp bool is_trunc unit pointed algebra
|
2015-04-07 01:01:08 +00:00
|
|
|
|
|
2015-04-19 21:56:24 +00:00
|
|
|
|
/-
|
|
|
|
|
We can define spheres with the following possible indices:
|
|
|
|
|
- trunc_index (defining S^-2 = S^-1 = empty)
|
2015-09-13 18:58:11 +00:00
|
|
|
|
- nat (forgetting that S^-1 = empty)
|
2015-04-19 21:56:24 +00:00
|
|
|
|
- nat, but counting wrong (S^0 = empty, S^1 = bool, ...)
|
|
|
|
|
- some new type "integers >= -1"
|
|
|
|
|
We choose the last option here.
|
2015-04-07 01:01:08 +00:00
|
|
|
|
-/
|
|
|
|
|
|
|
|
|
|
/- Sphere levels -/
|
|
|
|
|
|
|
|
|
|
inductive sphere_index : Type₀ :=
|
|
|
|
|
| minus_one : sphere_index
|
|
|
|
|
| succ : sphere_index → sphere_index
|
|
|
|
|
|
2016-03-02 21:23:24 +00:00
|
|
|
|
notation `ℕ₋₁` := sphere_index
|
2015-06-04 01:41:21 +00:00
|
|
|
|
|
2016-03-02 23:36:46 +00:00
|
|
|
|
namespace trunc_index
|
|
|
|
|
definition sub_one [reducible] (n : ℕ₋₁) : ℕ₋₂ :=
|
|
|
|
|
sphere_index.rec_on n -2 (λ n k, k.+1)
|
|
|
|
|
postfix `..-1`:(max+1) := sub_one
|
|
|
|
|
|
|
|
|
|
definition of_sphere_index [reducible] (n : ℕ₋₁) : ℕ₋₂ :=
|
|
|
|
|
n..-1.+1
|
|
|
|
|
|
|
|
|
|
-- we use a double dot to distinguish with the notation .-1 in trunc_index (of type ℕ → ℕ₋₂)
|
|
|
|
|
end trunc_index
|
|
|
|
|
|
2015-04-07 01:01:08 +00:00
|
|
|
|
namespace sphere_index
|
|
|
|
|
/-
|
|
|
|
|
notation for sphere_index is -1, 0, 1, ...
|
|
|
|
|
from 0 and up this comes from a coercion from num to sphere_index (via nat)
|
|
|
|
|
-/
|
2015-12-09 05:02:05 +00:00
|
|
|
|
|
2015-04-07 01:01:08 +00:00
|
|
|
|
postfix `.+1`:(max+1) := sphere_index.succ
|
|
|
|
|
postfix `.+2`:(max+1) := λ(n : sphere_index), (n .+1 .+1)
|
|
|
|
|
notation `-1` := minus_one
|
|
|
|
|
|
2016-03-02 21:23:24 +00:00
|
|
|
|
definition has_zero_sphere_index [instance] : has_zero ℕ₋₁ :=
|
|
|
|
|
has_zero.mk (succ minus_one)
|
|
|
|
|
|
|
|
|
|
definition has_one_sphere_index [instance] : has_one ℕ₋₁ :=
|
|
|
|
|
has_one.mk (succ (succ minus_one))
|
|
|
|
|
|
|
|
|
|
definition add_plus_one (n m : ℕ₋₁) : ℕ₋₁ :=
|
2015-04-07 01:01:08 +00:00
|
|
|
|
sphere_index.rec_on m n (λ k l, l .+1)
|
|
|
|
|
|
2016-02-25 00:43:50 +00:00
|
|
|
|
-- addition of sphere_indices, where (-1 + -1) is defined to be -1.
|
2016-03-02 21:23:24 +00:00
|
|
|
|
protected definition add (n m : ℕ₋₁) : ℕ₋₁ :=
|
2016-02-25 00:43:50 +00:00
|
|
|
|
sphere_index.cases_on m
|
|
|
|
|
(sphere_index.cases_on n -1 id)
|
|
|
|
|
(sphere_index.rec n (λn' r, succ r))
|
|
|
|
|
|
2016-03-02 23:36:46 +00:00
|
|
|
|
inductive le (a : ℕ₋₁) : ℕ₋₁ → Type :=
|
|
|
|
|
| sp_refl : le a a
|
|
|
|
|
| step : Π {b}, le a b → le a (b.+1)
|
2015-04-07 01:01:08 +00:00
|
|
|
|
|
2016-04-11 17:11:59 +00:00
|
|
|
|
infix ` +1+ `:65 := sphere_index.add_plus_one
|
2016-02-25 00:43:50 +00:00
|
|
|
|
|
|
|
|
|
definition has_add_sphere_index [instance] [priority 2000] [reducible] : has_add ℕ₋₁ :=
|
|
|
|
|
has_add.mk sphere_index.add
|
2015-04-07 01:01:08 +00:00
|
|
|
|
|
2016-03-02 21:23:24 +00:00
|
|
|
|
definition has_le_sphere_index [instance] : has_le ℕ₋₁ :=
|
2016-02-25 00:43:50 +00:00
|
|
|
|
has_le.mk sphere_index.le
|
2015-04-07 01:01:08 +00:00
|
|
|
|
|
2016-03-02 21:23:24 +00:00
|
|
|
|
definition sub_one [reducible] (n : ℕ) : ℕ₋₁ :=
|
2015-06-04 01:41:21 +00:00
|
|
|
|
nat.rec_on n -1 (λ n k, k.+1)
|
|
|
|
|
|
2016-03-02 22:19:44 +00:00
|
|
|
|
postfix `..-1`:(max+1) := sub_one
|
2016-04-22 19:12:25 +00:00
|
|
|
|
|
|
|
|
|
definition of_nat [coercion] [reducible] (n : ℕ) : ℕ₋₁ :=
|
|
|
|
|
n..-1.+1
|
|
|
|
|
|
2016-03-02 22:19:44 +00:00
|
|
|
|
-- we use a double dot to distinguish with the notation .-1 in trunc_index (of type ℕ → ℕ₋₂)
|
2015-06-04 01:41:21 +00:00
|
|
|
|
|
2016-04-22 19:12:25 +00:00
|
|
|
|
definition add_one [reducible] (n : ℕ₋₁) : ℕ :=
|
|
|
|
|
sphere_index.rec_on n 0 (λ n k, nat.succ k)
|
|
|
|
|
|
|
|
|
|
definition add_plus_one_of_nat (n m : ℕ) : (n +1+ m) = sphere_index.of_nat (n + m + 1) :=
|
|
|
|
|
begin
|
|
|
|
|
induction m with m IH,
|
|
|
|
|
{ reflexivity },
|
|
|
|
|
{ exact ap succ IH}
|
|
|
|
|
end
|
|
|
|
|
|
2016-03-02 22:19:44 +00:00
|
|
|
|
definition succ_sub_one (n : ℕ) : (nat.succ n)..-1 = n :> ℕ₋₁ :=
|
2016-03-02 21:23:24 +00:00
|
|
|
|
idp
|
|
|
|
|
|
2016-03-11 00:53:42 +00:00
|
|
|
|
definition add_sub_one (n m : ℕ) : (n + m)..-1 = n..-1 +1+ m..-1 :> ℕ₋₁ :=
|
|
|
|
|
begin
|
|
|
|
|
induction m with m IH,
|
|
|
|
|
{ reflexivity },
|
|
|
|
|
{ exact ap succ IH }
|
|
|
|
|
end
|
|
|
|
|
|
2016-03-02 23:36:46 +00:00
|
|
|
|
definition succ_le_succ {n m : ℕ₋₁} (H : n ≤ m) : n.+1 ≤[ℕ₋₁] m.+1 :=
|
|
|
|
|
by induction H with m H IH; apply le.sp_refl; exact le.step IH
|
2016-03-02 21:23:24 +00:00
|
|
|
|
|
2016-03-02 23:36:46 +00:00
|
|
|
|
definition minus_one_le (n : ℕ₋₁) : -1 ≤[ℕ₋₁] n :=
|
|
|
|
|
by induction n with n IH; apply le.sp_refl; exact le.step IH
|
2016-03-02 21:23:24 +00:00
|
|
|
|
|
2016-03-02 23:36:46 +00:00
|
|
|
|
open decidable
|
|
|
|
|
protected definition has_decidable_eq [instance] : Π(n m : ℕ₋₁), decidable (n = m)
|
|
|
|
|
| has_decidable_eq -1 -1 := inl rfl
|
|
|
|
|
| has_decidable_eq (n.+1) -1 := inr (by contradiction)
|
|
|
|
|
| has_decidable_eq -1 (m.+1) := inr (by contradiction)
|
|
|
|
|
| has_decidable_eq (n.+1) (m.+1) :=
|
|
|
|
|
match has_decidable_eq n m with
|
|
|
|
|
| inl xeqy := inl (by rewrite xeqy)
|
|
|
|
|
| inr xney := inr (λ h : succ n = succ m, by injection h with xeqy; exact absurd xeqy xney)
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
definition not_succ_le_minus_two {n : sphere_index} (H : n .+1 ≤[ℕ₋₁] -1) : empty :=
|
|
|
|
|
by cases H
|
|
|
|
|
|
|
|
|
|
protected definition le_trans {n m k : ℕ₋₁} (H1 : n ≤[ℕ₋₁] m) (H2 : m ≤[ℕ₋₁] k) : n ≤[ℕ₋₁] k :=
|
|
|
|
|
begin
|
|
|
|
|
induction H2 with k H2 IH,
|
|
|
|
|
{ exact H1},
|
|
|
|
|
{ exact le.step IH}
|
|
|
|
|
end
|
2016-03-02 21:23:24 +00:00
|
|
|
|
|
2016-03-02 23:36:46 +00:00
|
|
|
|
definition le_of_succ_le_succ {n m : ℕ₋₁} (H : n.+1 ≤[ℕ₋₁] m.+1) : n ≤[ℕ₋₁] m :=
|
|
|
|
|
begin
|
|
|
|
|
cases H with m H',
|
|
|
|
|
{ apply le.sp_refl},
|
|
|
|
|
{ exact sphere_index.le_trans (le.step !le.sp_refl) H'}
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
theorem not_succ_le_self {n : ℕ₋₁} : ¬n.+1 ≤[ℕ₋₁] n :=
|
|
|
|
|
begin
|
|
|
|
|
induction n with n IH: intro H,
|
|
|
|
|
{ exact not_succ_le_minus_two H},
|
|
|
|
|
{ exact IH (le_of_succ_le_succ H)}
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
protected definition le_antisymm {n m : ℕ₋₁} (H1 : n ≤[ℕ₋₁] m) (H2 : m ≤[ℕ₋₁] n) : n = m :=
|
|
|
|
|
begin
|
|
|
|
|
induction H2 with n H2 IH,
|
|
|
|
|
{ reflexivity},
|
|
|
|
|
{ exfalso, apply @not_succ_le_self n, exact sphere_index.le_trans H1 H2}
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
protected definition le_succ {n m : ℕ₋₁} (H1 : n ≤[ℕ₋₁] m): n ≤[ℕ₋₁] m.+1 :=
|
|
|
|
|
le.step H1
|
|
|
|
|
|
2016-04-22 19:12:25 +00:00
|
|
|
|
definition add_plus_one_minus_one (n : ℕ₋₁) : n +1+ -1 = n := idp
|
|
|
|
|
definition add_plus_one_succ (n m : ℕ₋₁) : n +1+ (m.+1) = (n +1+ m).+1 := idp
|
|
|
|
|
definition minus_one_add_plus_one (n : ℕ₋₁) : -1 +1+ n = n :=
|
|
|
|
|
begin induction n with n IH, reflexivity, exact ap succ IH end
|
|
|
|
|
definition succ_add_plus_one (n m : ℕ₋₁) : (n.+1) +1+ m = (n +1+ m).+1 :=
|
|
|
|
|
begin induction m with m IH, reflexivity, exact ap succ IH end
|
|
|
|
|
|
|
|
|
|
definition sphere_index_of_nat_add_one (n : ℕ₋₁) : sphere_index.of_nat (add_one n) = n.+1 :=
|
|
|
|
|
begin induction n with n IH, reflexivity, exact ap succ IH end
|
|
|
|
|
|
|
|
|
|
definition add_one_succ (n : ℕ₋₁) : add_one (n.+1) = succ (add_one n) :=
|
|
|
|
|
by reflexivity
|
|
|
|
|
|
|
|
|
|
definition add_one_sub_one (n : ℕ) : add_one (n..-1) = n :=
|
|
|
|
|
begin induction n with n IH, reflexivity, exact ap nat.succ IH end
|
|
|
|
|
|
|
|
|
|
definition add_one_of_nat (n : ℕ) : add_one n = nat.succ n :=
|
|
|
|
|
ap nat.succ (add_one_sub_one n)
|
|
|
|
|
|
|
|
|
|
definition sphere_index.of_nat_succ (n : ℕ)
|
|
|
|
|
: sphere_index.of_nat (nat.succ n) = (sphere_index.of_nat n).+1 :=
|
|
|
|
|
begin induction n with n IH, reflexivity, exact ap succ IH end
|
|
|
|
|
|
2016-03-02 23:36:46 +00:00
|
|
|
|
/-
|
|
|
|
|
warning: if this coercion is available, the coercion ℕ → ℕ₋₂ is the composition of the coercions
|
|
|
|
|
ℕ → ℕ₋₁ → ℕ₋₂. We don't want this composition as coercion, because it has worse computational
|
|
|
|
|
properties. You can rewrite it with trans_to_of_sphere_index_eq defined below.
|
|
|
|
|
-/
|
|
|
|
|
attribute trunc_index.of_sphere_index [coercion]
|
|
|
|
|
|
|
|
|
|
end sphere_index open sphere_index
|
|
|
|
|
|
|
|
|
|
definition weak_order_sphere_index [trans_instance] [reducible] : weak_order sphere_index :=
|
|
|
|
|
weak_order.mk le sphere_index.le.sp_refl @sphere_index.le_trans @sphere_index.le_antisymm
|
|
|
|
|
|
|
|
|
|
namespace trunc_index
|
2016-03-02 22:19:44 +00:00
|
|
|
|
definition sub_two_eq_sub_one_sub_one (n : ℕ) : n.-2 = n..-1..-1 :=
|
2016-03-06 00:35:12 +00:00
|
|
|
|
begin
|
|
|
|
|
induction n with n IH,
|
|
|
|
|
{ reflexivity},
|
|
|
|
|
{ exact ap trunc_index.succ IH}
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
definition of_nat_sub_one (n : ℕ)
|
|
|
|
|
: (sphere_index.of_nat n)..-1 = (trunc_index.sub_two n).+1 :=
|
|
|
|
|
begin
|
|
|
|
|
induction n with n IH,
|
|
|
|
|
{ reflexivity},
|
|
|
|
|
{ exact ap trunc_index.succ IH}
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
definition sub_one_of_sphere_index (n : ℕ)
|
|
|
|
|
: of_sphere_index n..-1 = (trunc_index.sub_two n).+1 :=
|
|
|
|
|
begin
|
|
|
|
|
induction n with n IH,
|
|
|
|
|
{ reflexivity},
|
|
|
|
|
{ exact ap trunc_index.succ IH}
|
|
|
|
|
end
|
2015-04-19 21:56:24 +00:00
|
|
|
|
|
2016-03-02 22:19:44 +00:00
|
|
|
|
definition succ_sub_one (n : ℕ₋₁) : n.+1..-1 = n :> ℕ₋₂ :=
|
2016-03-02 21:23:24 +00:00
|
|
|
|
idp
|
|
|
|
|
|
|
|
|
|
definition of_sphere_index_of_nat (n : ℕ)
|
2016-03-02 23:36:46 +00:00
|
|
|
|
: of_sphere_index (sphere_index.of_nat n) = of_nat n :> ℕ₋₂ :=
|
2016-03-02 21:23:24 +00:00
|
|
|
|
begin
|
|
|
|
|
induction n with n IH,
|
|
|
|
|
{ reflexivity},
|
|
|
|
|
{ exact ap trunc_index.succ IH}
|
|
|
|
|
end
|
|
|
|
|
|
2016-03-02 23:36:46 +00:00
|
|
|
|
definition trans_to_of_sphere_index_eq (n : ℕ)
|
|
|
|
|
: trunc_index._trans_to_of_sphere_index n = of_nat n :> ℕ₋₂ :=
|
|
|
|
|
of_sphere_index_of_nat n
|
|
|
|
|
|
2016-04-22 19:12:25 +00:00
|
|
|
|
definition trunc_index_of_nat_add_one (n : ℕ₋₁)
|
|
|
|
|
: trunc_index.of_nat (add_one n) = (of_sphere_index n).+1 :=
|
|
|
|
|
begin induction n with n IH, reflexivity, exact ap succ IH end
|
|
|
|
|
|
|
|
|
|
definition of_sphere_index_succ (n : ℕ₋₁) : of_sphere_index (n.+1) = (of_sphere_index n).+1 :=
|
|
|
|
|
begin induction n with n IH, reflexivity, exact ap succ IH end
|
|
|
|
|
|
2016-03-02 21:23:24 +00:00
|
|
|
|
end trunc_index
|
2015-04-07 01:01:08 +00:00
|
|
|
|
|
|
|
|
|
open sphere_index equiv
|
|
|
|
|
|
2016-04-22 19:12:25 +00:00
|
|
|
|
definition sphere (n : ℕ₋₁) : Type₀ := iterate_susp (add_one n) empty
|
2015-04-07 01:01:08 +00:00
|
|
|
|
|
|
|
|
|
namespace sphere
|
2015-06-04 01:41:21 +00:00
|
|
|
|
|
2016-03-06 00:35:12 +00:00
|
|
|
|
export [notation] sphere_index
|
2016-03-02 22:19:44 +00:00
|
|
|
|
|
2015-06-17 19:58:58 +00:00
|
|
|
|
definition base {n : ℕ} : sphere n := north
|
2015-06-04 01:41:21 +00:00
|
|
|
|
definition pointed_sphere [instance] [constructor] (n : ℕ) : pointed (sphere n) :=
|
|
|
|
|
pointed.mk base
|
2016-02-15 23:23:28 +00:00
|
|
|
|
definition psphere [constructor] (n : ℕ) : Type* := pointed.mk' (sphere n)
|
2015-06-04 01:41:21 +00:00
|
|
|
|
|
2016-04-22 19:12:25 +00:00
|
|
|
|
|
2015-04-07 01:01:08 +00:00
|
|
|
|
namespace ops
|
2015-06-04 05:09:26 +00:00
|
|
|
|
abbreviation S := sphere
|
2016-09-22 19:42:46 +00:00
|
|
|
|
notation `S*` := psphere
|
2015-04-07 01:01:08 +00:00
|
|
|
|
end ops
|
2015-06-04 01:41:21 +00:00
|
|
|
|
open sphere.ops
|
2015-04-07 01:01:08 +00:00
|
|
|
|
|
2016-03-02 21:23:24 +00:00
|
|
|
|
definition sphere_minus_one : S -1 = empty := idp
|
2016-04-22 19:12:25 +00:00
|
|
|
|
definition sphere_succ [unfold_full] (n : ℕ₋₁) : S n.+1 = susp (S n) := idp
|
2016-09-22 19:42:46 +00:00
|
|
|
|
definition psphere_succ [unfold_full] (n : ℕ) : S* (n + 1) = psusp (S* n) := idp
|
2016-04-22 19:12:25 +00:00
|
|
|
|
definition psphere_eq_iterate_susp (n : ℕ)
|
2016-09-22 19:42:46 +00:00
|
|
|
|
: S* n = pointed.MK (iterate_susp (succ n) empty) !north :=
|
2016-04-22 19:12:25 +00:00
|
|
|
|
begin
|
|
|
|
|
esimp,
|
|
|
|
|
apply ap (λx, pointed.MK (susp x) (@north x)); apply ap (λx, iterate_susp x empty),
|
|
|
|
|
apply add_one_sub_one
|
|
|
|
|
end
|
|
|
|
|
|
2016-09-22 19:42:46 +00:00
|
|
|
|
definition equator [constructor] (n : ℕ) : S* n →* Ω (S* (succ n)) :=
|
|
|
|
|
loop_susp_unit (S* n)
|
2015-06-04 05:09:26 +00:00
|
|
|
|
|
2016-09-22 19:42:46 +00:00
|
|
|
|
definition surf {n : ℕ} : Ω[n] (S* n) :=
|
2016-09-18 05:44:19 +00:00
|
|
|
|
begin
|
|
|
|
|
induction n with n s,
|
|
|
|
|
{ exact @base 0},
|
2016-09-22 19:42:46 +00:00
|
|
|
|
{ exact (loopn_succ_in (S* (succ n)) n)⁻¹ᵉ* (apn n (equator n) s), }
|
2016-09-18 05:44:19 +00:00
|
|
|
|
end
|
2015-06-04 05:09:26 +00:00
|
|
|
|
|
2016-09-18 05:44:19 +00:00
|
|
|
|
definition bool_of_sphere [unfold 1] : S 0 → bool :=
|
2015-12-09 05:02:05 +00:00
|
|
|
|
proof susp.rec ff tt (λx, empty.elim x) qed
|
2015-04-07 01:01:08 +00:00
|
|
|
|
|
2016-09-18 05:44:19 +00:00
|
|
|
|
definition sphere_of_bool [unfold 1] : bool → S 0
|
2015-12-09 05:02:05 +00:00
|
|
|
|
| ff := proof north qed
|
|
|
|
|
| tt := proof south qed
|
2015-04-07 01:01:08 +00:00
|
|
|
|
|
2015-06-04 01:41:21 +00:00
|
|
|
|
definition sphere_equiv_bool : S 0 ≃ bool :=
|
2015-04-07 01:01:08 +00:00
|
|
|
|
equiv.MK bool_of_sphere
|
|
|
|
|
sphere_of_bool
|
2015-04-27 21:34:55 +00:00
|
|
|
|
(λb, match b with | tt := idp | ff := idp end)
|
2015-12-09 05:02:05 +00:00
|
|
|
|
(λx, proof susp.rec_on x idp idp (empty.rec _) qed)
|
2015-04-07 01:01:08 +00:00
|
|
|
|
|
2016-09-22 19:42:46 +00:00
|
|
|
|
definition psphere_pequiv_pbool : S* 0 ≃* pbool :=
|
2016-09-18 05:44:19 +00:00
|
|
|
|
pequiv_of_equiv sphere_equiv_bool idp
|
|
|
|
|
|
2015-06-04 01:41:21 +00:00
|
|
|
|
definition sphere_eq_bool : S 0 = bool :=
|
|
|
|
|
ua sphere_equiv_bool
|
|
|
|
|
|
2016-09-22 19:42:46 +00:00
|
|
|
|
definition sphere_eq_pbool : S* 0 = pbool :=
|
2016-02-15 21:05:31 +00:00
|
|
|
|
pType_eq sphere_equiv_bool idp
|
2015-06-04 01:41:21 +00:00
|
|
|
|
|
2016-09-18 05:44:19 +00:00
|
|
|
|
-- TODO1: the commented-out part makes the forward function below "apn _ surf" (the next def also)
|
2016-02-25 00:43:50 +00:00
|
|
|
|
-- TODO2: we could make this a pointed equivalence
|
2016-09-22 19:42:46 +00:00
|
|
|
|
definition psphere_pmap_equiv (A : Type*) (n : ℕ) : (S* n →* A) ≃ Ω[n] A :=
|
2015-06-04 01:41:21 +00:00
|
|
|
|
begin
|
2015-11-13 22:17:02 +00:00
|
|
|
|
-- fapply equiv_change_fun,
|
|
|
|
|
-- {
|
|
|
|
|
revert A, induction n with n IH: intro A,
|
2016-09-22 19:42:46 +00:00
|
|
|
|
{ refine _ ⬝e !pmap_bool_equiv, exact pequiv_ppcompose_right psphere_pequiv_pbool⁻¹ᵉ*},
|
|
|
|
|
{ refine susp_adjoint_loop (S* n) A ⬝e !IH ⬝e !loopn_succ_in⁻¹ᵉ* }
|
2015-11-13 22:17:02 +00:00
|
|
|
|
-- },
|
|
|
|
|
-- { intro f, exact apn n f surf},
|
|
|
|
|
-- { revert A, induction n with n IH: intro A f,
|
|
|
|
|
-- { exact sorry},
|
|
|
|
|
-- { exact sorry}}
|
|
|
|
|
end
|
2015-06-04 01:41:21 +00:00
|
|
|
|
|
2016-09-22 19:42:46 +00:00
|
|
|
|
-- definition psphere_pmap_equiv' (A : Type*) (n : ℕ) : (S* n →* A) ≃ Ω[n] A :=
|
2016-09-18 05:44:19 +00:00
|
|
|
|
-- begin
|
|
|
|
|
-- fapply equiv.MK,
|
|
|
|
|
-- { intro f, exact apn n f surf },
|
|
|
|
|
-- { revert A, induction n with n IH: intro A p,
|
|
|
|
|
-- { exact !pmap_bool_equiv⁻¹ᵉ p ∘* psphere_pequiv_pbool },
|
2016-09-22 19:42:46 +00:00
|
|
|
|
-- { refine (susp_adjoint_loop (S* n) A)⁻¹ᵉ (IH (Ω A) _),
|
|
|
|
|
-- exact loopn_succ_in A n p }},
|
2016-09-18 05:44:19 +00:00
|
|
|
|
-- { exact sorry},
|
|
|
|
|
-- { exact sorry}
|
|
|
|
|
-- end
|
|
|
|
|
|
2016-09-22 19:42:46 +00:00
|
|
|
|
protected definition elim {n : ℕ} {P : Type*} (p : Ω[n] P) : S* n →* P :=
|
|
|
|
|
to_inv !psphere_pmap_equiv p
|
2015-06-04 05:09:26 +00:00
|
|
|
|
|
2016-02-15 23:23:28 +00:00
|
|
|
|
-- definition elim_surf {n : ℕ} {P : Type*} (p : Ω[n] P) : apn n (sphere.elim p) surf = p :=
|
2015-06-23 16:47:52 +00:00
|
|
|
|
-- begin
|
|
|
|
|
-- induction n with n IH,
|
2016-09-22 19:42:46 +00:00
|
|
|
|
-- { esimp [apn,surf,sphere.elim,psphere_pmap_equiv], apply sorry},
|
2015-06-23 16:47:52 +00:00
|
|
|
|
-- { apply sorry}
|
|
|
|
|
-- end
|
2015-06-04 05:09:26 +00:00
|
|
|
|
|
2015-04-07 01:01:08 +00:00
|
|
|
|
end sphere
|
2015-06-04 01:41:21 +00:00
|
|
|
|
|
2016-02-08 11:07:53 +00:00
|
|
|
|
namespace sphere
|
|
|
|
|
open is_conn trunc_index sphere_index sphere.ops
|
|
|
|
|
|
|
|
|
|
-- Corollary 8.2.2
|
|
|
|
|
theorem is_conn_sphere [instance] (n : ℕ₋₁) : is_conn (n..-1) (S n) :=
|
|
|
|
|
begin
|
|
|
|
|
induction n with n IH,
|
|
|
|
|
{ apply is_conn_minus_two },
|
|
|
|
|
{ rewrite [trunc_index.succ_sub_one n, sphere.sphere_succ],
|
|
|
|
|
apply is_conn_susp }
|
|
|
|
|
end
|
|
|
|
|
|
2016-09-22 19:42:46 +00:00
|
|
|
|
theorem is_conn_psphere [instance] (n : ℕ) : is_conn (n.-1) (S* n) :=
|
2016-02-08 11:07:53 +00:00
|
|
|
|
transport (λx, is_conn x (sphere n)) (of_nat_sub_one n) (is_conn_sphere n)
|
|
|
|
|
|
|
|
|
|
end sphere
|
|
|
|
|
|
2015-06-04 01:41:21 +00:00
|
|
|
|
open sphere sphere.ops
|
|
|
|
|
|
2015-06-17 19:58:58 +00:00
|
|
|
|
namespace is_trunc
|
2015-06-04 01:41:21 +00:00
|
|
|
|
open trunc_index
|
2015-06-04 05:09:26 +00:00
|
|
|
|
variables {n : ℕ} {A : Type}
|
2016-09-22 19:42:46 +00:00
|
|
|
|
definition is_trunc_of_psphere_pmap_equiv_constant
|
|
|
|
|
(H : Π(a : A) (f : S* n →* pointed.Mk a) (x : S n), f x = f base) : is_trunc (n.-2.+1) A :=
|
2015-06-04 01:41:21 +00:00
|
|
|
|
begin
|
|
|
|
|
apply iff.elim_right !is_trunc_iff_is_contr_loop,
|
|
|
|
|
intro a,
|
2016-09-22 19:42:46 +00:00
|
|
|
|
apply is_trunc_equiv_closed, apply psphere_pmap_equiv,
|
2015-06-04 01:41:21 +00:00
|
|
|
|
fapply is_contr.mk,
|
2015-06-17 19:58:58 +00:00
|
|
|
|
{ exact pmap.mk (λx, a) idp},
|
|
|
|
|
{ intro f, fapply pmap_eq,
|
2015-06-04 01:41:21 +00:00
|
|
|
|
{ intro x, esimp, refine !respect_pt⁻¹ ⬝ (!H ⬝ !H⁻¹)},
|
|
|
|
|
{ rewrite [▸*,con.right_inv,▸*,con.left_inv]}}
|
|
|
|
|
end
|
|
|
|
|
|
2015-06-04 05:09:26 +00:00
|
|
|
|
definition is_trunc_iff_map_sphere_constant
|
2015-06-04 01:41:21 +00:00
|
|
|
|
(H : Π(f : S n → A) (x : S n), f x = f base) : is_trunc (n.-2.+1) A :=
|
|
|
|
|
begin
|
2016-09-22 19:42:46 +00:00
|
|
|
|
apply is_trunc_of_psphere_pmap_equiv_constant,
|
2015-06-04 01:41:21 +00:00
|
|
|
|
intros, cases f with f p, esimp at *, apply H
|
|
|
|
|
end
|
|
|
|
|
|
2016-09-22 19:42:46 +00:00
|
|
|
|
definition psphere_pmap_equiv_constant_of_is_trunc' [H : is_trunc (n.-2.+1) A]
|
|
|
|
|
(a : A) (f : S* n →* pointed.Mk a) (x : S n) : f x = f base :=
|
2015-06-04 05:09:26 +00:00
|
|
|
|
begin
|
|
|
|
|
let H' := iff.elim_left (is_trunc_iff_is_contr_loop n A) H a,
|
2016-09-22 19:42:46 +00:00
|
|
|
|
note H'' := @is_trunc_equiv_closed_rev _ _ _ !psphere_pmap_equiv H',
|
2016-02-29 20:11:17 +00:00
|
|
|
|
have p : (f = pmap.mk (λx, f base) (respect_pt f)),
|
|
|
|
|
by apply is_prop.elim,
|
2016-02-15 19:40:25 +00:00
|
|
|
|
exact ap10 (ap pmap.to_fun p) x
|
2015-06-04 05:09:26 +00:00
|
|
|
|
end
|
|
|
|
|
|
2016-09-22 19:42:46 +00:00
|
|
|
|
definition psphere_pmap_equiv_constant_of_is_trunc [H : is_trunc (n.-2.+1) A]
|
|
|
|
|
(a : A) (f : S* n →* pointed.Mk a) (x y : S n) : f x = f y :=
|
|
|
|
|
let H := psphere_pmap_equiv_constant_of_is_trunc' a f in !H ⬝ !H⁻¹
|
2015-06-17 19:58:58 +00:00
|
|
|
|
|
2015-06-04 05:09:26 +00:00
|
|
|
|
definition map_sphere_constant_of_is_trunc [H : is_trunc (n.-2.+1) A]
|
2015-06-17 19:58:58 +00:00
|
|
|
|
(f : S n → A) (x y : S n) : f x = f y :=
|
2016-09-22 19:42:46 +00:00
|
|
|
|
psphere_pmap_equiv_constant_of_is_trunc (f base) (pmap.mk f idp) x y
|
2015-06-17 19:58:58 +00:00
|
|
|
|
|
|
|
|
|
definition map_sphere_constant_of_is_trunc_self [H : is_trunc (n.-2.+1) A]
|
|
|
|
|
(f : S n → A) (x : S n) : map_sphere_constant_of_is_trunc f x x = idp :=
|
|
|
|
|
!con.right_inv
|
2015-06-04 05:09:26 +00:00
|
|
|
|
|
2015-06-17 19:58:58 +00:00
|
|
|
|
end is_trunc
|