cfahlgren1/math / lean /OAI /Algebra /GroupRing /HomotopyFunctor.lean
cfahlgren1's picture
download
raw
32.6 kB
import Mathlib
import OAI.Algebra.GroupRing.Milnor
namespace OAI
noncomputable section
open Set Metric Topology BigOperators
open Set Metric Topology
namespace GroupRingTopology.HomotopyFunctor
open scoped Topology Topology.Homotopy
universe u v w
variable {N : Type u} {X : Type v} {Y : Type w} [TopologicalSpace X] [TopologicalSpace Y]
variable {x : X} {y : Y}
lemma map_eq_of_homotopy (f g : C(X,Y)) (hf : f x = y) (hg : g x = y)
(H : f.Homotopy g) (hH : ∀ t, H (t,x) = y) (a : HomotopyGroup N X x) :
map f hf a = map g hg a := by
induction a using Quotient.inductionOn with | h p =>
apply Quotient.sound
refine ⟨{ toHomotopy := H.compContinuousMap p.1,prop' := ?_ }⟩
intro t z hz
change H (t,p z) = f (p z)
rw [GenLoop.boundary p z hz,hH,hf]
end GroupRingTopology.HomotopyFunctor
namespace GroupRingTopology.Milnor
section
open Set Metric Topology BigOperators GroupRingTopology.Simplicial
open scoped Classical Topology.Homotopy
universe u v
variable (G : Type u) [Group G]
local instance (priority := 2000) (α : Type*) : DecidableEq (ℕ × α) := Classical.decEq (ℕ × α)
abbrev Shapes := Finset (Finset (ℕ × G))
def basedShapes (S : Shapes G) : Shapes G := insert {(0,1)} S
def stage (S : Shapes G) := orbitSpan (basedShapes G S)
lemma stage_mono {S T : Shapes G} (h : S ⊆ T) : stage G S ≤ stage G T :=
orbitSpan_mono (Finset.insert_subset_insert _ h)
lemma stage_point_face (S : Shapes G) : {(0,1)} ∈ stage G S := by
apply orbitSpan_contains (basedShapes G S)
· exact ⟨Finset.singleton_nonempty _,by simpa only [Finset.coe_singleton] using Set.injOn_singleton Prod.fst (0,(1:G))⟩
· exact ⟨{(0,1)},Finset.mem_insert_self _ _,Finset.Subset.refl _⟩
def stagePoint (S : Shapes G) : Simplicial.Space (stage G S) :=
⟨Finsupp.single (0,1) 1,by intro w; simp only [Finsupp.single_apply]; split_ifs <;> norm_num,
by simp,by simpa only [Finsupp.support_single _ one_ne_zero] using stage_point_face G S⟩
def stageIncl (S T : Shapes G) (h : S ⊆ T) : C(Simplicial.Space (stage G S),Simplicial.Space (stage G T)) :=
⟨inclusion _ _ (fun _ hs => stage_mono G h hs),continuous_inclusion _ _ _⟩
lemma stageIncl_point (S T : Shapes G) (h : S ⊆ T) : stageIncl G S T h (stagePoint G S) = stagePoint G T := rfl
variable (N : Type v) [DecidableEq N] [Nonempty N]
def stageHom (S T : Shapes G) (h : S ⊆ T) :
HomotopyGroup N (Simplicial.Space (stage G S)) (stagePoint G S) →*
HomotopyGroup N (Simplicial.Space (stage G T)) (stagePoint G T) :=
HomotopyFunctor.mapHom (stageIncl G S T h) rfl
instance : DirectedSystem (fun S : Shapes G => HomotopyGroup N (Simplicial.Space (stage G S)) (stagePoint G S))
(fun S T h => stageHom G N S T h) where
map_self _ a := by
exact HomotopyFunctor.map_id a
map_map _ _ _ h₁ h₂ a := by
exact HomotopyFunctor.map_comp _ _ _ _ a
end
section
open Set Metric Topology BigOperators GroupRingTopology.Simplicial
open scoped Classical unitInterval
universe u
variable {G : Type u} [Group G]
local instance (priority := 2000) (α : Type*) : DecidableEq (ℕ × α) := Classical.decEq (ℕ × α)
instance : MulAction G (Space G) where
smul g x := map (g * ·) id Function.injective_id x
one_smul x := by
change map (1 * ·) id Function.injective_id x = x
apply Subtype.ext
change x.1.mapDomain (fun v => (v.1,1*v.2)) = x.1
rw [show (fun v : ℕ × G => (v.1,1*v.2)) = id from funext (fun v => Prod.ext rfl (one_mul v.2))]
exact Finsupp.mapDomain_id
mul_smul g h x := by
change map ((g*h) * ·) id Function.injective_id x = map (g * ·) id Function.injective_id (map (h * ·) id Function.injective_id x)
rw [map_comp]
have he : (fun a => (g*h)*a) = ((g * ·) ∘ (h * ·)) := funext (mul_assoc g h)
rw [he]
rfl
instance : ContinuousConstSMul G (Space G) where
continuous_const_smul g := (map (g * ·) id Function.injective_id).continuous
lemma smul_weight (g : G) (x : Space G) (v : ℕ × G) : (g • x).1 (v.1,g*v.2) = x.1 v := by
change (x.1.mapDomain (fun w => (w.1,g*w.2))) (v.1,g*v.2) = x.1 v
apply Finsupp.mapDomain_apply_of_injective (f := fun w : ℕ × G => (w.1,g*w.2))
intro a b hab
have hfst := congrArg (fun p : ℕ × G => p.1) hab
have hsnd := congrArg (fun p : ℕ × G => p.2) hab
exact Prod.ext hfst (mul_left_cancel hsnd)
lemma smul_weight_inv (g : G) (x : Space G) (v : ℕ × G) : (g • x).1 v = x.1 (v.1,g⁻¹*v.2) := by
simpa only [mul_inv_cancel_left] using smul_weight g x (v.1,g⁻¹*v.2)
lemma exists_disjoint_nhds (x : Space G) :
∃ U ∈ 𝓝 x, ∀ g : G, ((g • ·) '' U ∩ U).Nonempty → g = 1 := by
obtain ⟨v,hv⟩ := Simplicial.support_nonempty x.2.2.1
let U : Set (Space G) := {y | 0 < y.1 v}
have hx : x ∈ U := lt_of_le_of_ne (x.2.1 v) (Ne.symm (Finsupp.mem_support_iff.mp hv))
have hU : IsOpen U := isOpen_lt continuous_const (continuous_eval (complex G) v)
refine ⟨U,hU.mem_nhds hx,?_⟩
intro g hg
obtain ⟨z,⟨y,hy,rfl⟩,hgy⟩ := hg
have h1 : v ∈ y.1.support := Finsupp.mem_support_iff.mpr (ne_of_gt hy)
have h2 : (v.1,g⁻¹*v.2) ∈ y.1.support := by
apply Finsupp.mem_support_iff.mpr
have hp : 0 < (g • y).1 v := hgy
rw [smul_weight_inv] at hp
exact ne_of_gt hp
have he := congrArg Prod.snd (y.2.2.2.2 h1 h2 rfl)
have hi : g⁻¹ = 1 := (mul_right_cancel (he.symm.trans (one_mul v.2).symm))
exact inv_eq_one.mp hi
lemma quotientCovering : IsQuotientCoveringMap
(Quotient.mk (MulAction.orbitRel G (Space G))) G where
__ := isQuotientMap_quotient_mk'
continuous_const_smul g := continuous_const_smul g
apply_eq_iff_mem_orbit := Quotient.eq''
disjoint := exists_disjoint_nhds
end
open Set Metric Topology BigOperators GroupRingTopology.Simplicial
open scoped Classical
universe u v
variable (G : Type u) [Group G]
local instance (priority := 2000) (α : Type*) : DecidableEq (ℕ × α) := Classical.decEq (ℕ × α)
abbrev Stage (S : Shapes G) := Simplicial.Space (stage G S)
def stageFull (S : Shapes G) : C(Stage G S,Space G) :=
⟨inclusion _ _ (fun _ h => orbitSpan_le _ h),continuous_inclusion _ _ _⟩
lemma stageFull_embedding (S : Shapes G) : IsClosedEmbedding (stageFull G S) :=
inclusion_closedEmbedding _ _ (fun _ h => orbitSpan_le _ h)
lemma stage_translate (S : Shapes G) (g : G) (s : Face (stage G S)) :
s.1.image (fun v => (v.1,g*v.2)) ∈ stage G S := orbitSpan_invariant _ g s.2
def stageSmul (S : Shapes G) (g : G) : C(Stage G S,Stage G S) :=
Simplicial.mapC _ _ (fun v => (v.1,g*v.2)) (stage_translate G S g)
instance stageAction (S : Shapes G) : MulAction G (Stage G S) where
smul g x := stageSmul G S g x
one_smul x := by
apply Subtype.ext
change x.1.mapDomain (fun v => (v.1,1*v.2)) = x.1
rw [show (fun v : ℕ × G => (v.1,1*v.2)) = id from funext (fun v => Prod.ext rfl (one_mul v.2))]
exact Finsupp.mapDomain_id
mul_smul g h x := by
apply Subtype.ext
change x.1.mapDomain (fun v => (v.1,(g*h)*v.2)) =
(x.1.mapDomain (fun v => (v.1,h*v.2))).mapDomain (fun v => (v.1,g*v.2))
rw [← Finsupp.mapDomain_comp]
congr 1
funext v
exact Prod.ext rfl (mul_assoc _ _ _)
instance stageContinuousAction (S : Shapes G) : ContinuousConstSMul G (Stage G S) where
continuous_const_smul g := (stageSmul G S g).continuous
lemma stageFull_smul (S : Shapes G) (g : G) (x : Stage G S) :
stageFull G S (g • x) = g • stageFull G S x := rfl
lemma stageIncl_smul (S T : Shapes G) (h : S ⊆ T) (g : G) (x : Stage G S) :
stageIncl G S T h (g • x) = g • stageIncl G S T h x := rfl
/-- Any one compact set is contained in a finite-orbit Milnor stage. -/
lemma compact_controlled {K : Set (Space G)} (hK : IsCompact K) :
∃ S : Shapes G, K ⊆ Set.range (stageFull G S) := by
obtain ⟨V,hV⟩ := Simplicial.compact_bounded_vertices (complex G) hK
refine ⟨V.powerset,?_⟩
intro x hx
have hm : x.1.support ∈ stage G V.powerset := by
apply orbitSpan_contains (basedShapes G V.powerset) x.2.2.2
exact ⟨x.1.support,Finset.mem_insert_of_mem (Finset.mem_powerset.mpr (hV x hx)),Finset.Subset.refl _⟩
exact ⟨⟨x.1,x.2.1,x.2.2.1,hm⟩,rfl⟩
/-- Arbitrarily many translates of a compact set have ONE controlled target. -/
lemma compact_orbit_controlled {K : Set (Space G)} (hK : IsCompact K) :
∃ S : Shapes G, ∀ g : G, (g • ·) '' K ⊆ Set.range (stageFull G S) := by
obtain ⟨S,hS⟩ := compact_controlled G hK
refine ⟨S,?_⟩
intro g y hy
obtain ⟨x,hx,rfl⟩ := hy
obtain ⟨z,rfl⟩ := hS hx
exact ⟨g • z,stageFull_smul G S g z⟩
variable {X : Type v} [TopologicalSpace X] [MulAction G X]
/-- A compact fundamental set need not be disjoint or a strict domain. -/
def CompactFundamentalSet : Prop :=
∃ K : Set X, IsCompact K ∧ ∀ x : X, ∃ g : G, ∃ y ∈ K, x = g • y
lemma equivariant_controlled (hX : CompactFundamentalSet G (X := X))
(f : C(X,Space G)) (hf : ∀ (g : G) x, f (g • x) = g • f x) :
∃ S : Shapes G, Set.range f ⊆ Set.range (stageFull G S) := by
obtain ⟨K,hK,hcov⟩ := hX
obtain ⟨S,hS⟩ := compact_orbit_controlled G (hK.image f.continuous)
refine ⟨S,?_⟩
rintro _ ⟨x,rfl⟩
obtain ⟨g,y,hy,rfl⟩ := hcov x
rw [hf]
exact hS g ⟨f y,⟨y,hy,rfl⟩,rfl⟩
/-- Factoring through a stage preserves topology and equivariance, rather than
only factoring an underlying set map. -/
def factorStage (f : C(X,Space G)) (S : Shapes G)
(hf : Set.range f ⊆ Set.range (stageFull G S)) : C(X,Stage G S) where
toFun x := (hf (Set.mem_range_self x)).choose
continuous_toFun := (stageFull_embedding G S).isEmbedding.continuous_iff.mpr (by
convert f.continuous using 1
funext x
exact (hf (Set.mem_range_self x)).choose_spec)
omit [MulAction G X] in
lemma factorStage_spec (f : C(X,Space G)) (S : Shapes G)
(hf : Set.range f ⊆ Set.range (stageFull G S)) (x : X) :
stageFull G S (factorStage G f S hf x) = f x := (hf (Set.mem_range_self x)).choose_spec
lemma factorStage_smul (f : C(X,Space G)) (S : Shapes G)
(hf : Set.range f ⊆ Set.range (stageFull G S))
(he : ∀ (g : G) x, f (g • x) = g • f x) (g : G) (x : X) :
factorStage G f S hf (g • x) = g • factorStage G f S hf x := by
apply (stageFull_embedding G S).injective
rw [factorStage_spec,stageFull_smul,factorStage_spec,he]
end GroupRingTopology.Milnor
open Set Metric Topology
namespace GroupRingTopology.Attachment
universe u v w
abbrev Disk (n : ℕ) := closedBall (0 : Fin n → ℝ) 1
abbrev Sphere (n : ℕ) := sphere (0 : Fin n → ℝ) 1
abbrev OpenDisk (n : ℕ) := ball (0 : Fin n → ℝ) 1
def boundary (n : ℕ) : Sphere n → Disk n :=
fun x => ⟨x.1, sphere_subset_closedBall x.2⟩
def interior (n : ℕ) : OpenDisk n → Disk n :=
fun x => ⟨x.1, ball_subset_closedBall x.2⟩
lemma continuous_boundary (n : ℕ) : Continuous (boundary n) :=
continuous_subtype_val.subtype_mk _
lemma continuous_interior (n : ℕ) : Continuous (interior n) :=
continuous_subtype_val.subtype_mk _
lemma boundary_closedEmbedding (n : ℕ) : IsClosedEmbedding (boundary n) :=
(continuous_boundary n).isClosedEmbedding (fun _ _ h => Subtype.ext (congrArg (fun z : Disk n => z.1) h))
variable {X : Type u} [TopologicalSpace X] {ι : Type v} {n : ℕ}
variable (a : ι → C(Sphere n,X))
/-- The points of an adjunction are the old points and the interiors of the new disks. -/
def Space (_a : ι → C(Sphere n,X)) := X ⊕ (Σ _ : ι, OpenDisk n)
noncomputable def quotient : (X ⊕ (Σ _ : ι, Disk n)) → Space a := by
classical
intro z
cases z with
| inl x => exact Sum.inl x
| inr p =>
exact if h : p.2.1 ∈ ball (0 : Fin n → ℝ) 1 then Sum.inr ⟨p.1,⟨p.2.1,h⟩⟩
else Sum.inl (a p.1 ⟨p.2.1,by
have hd := p.2.2
simp only [mem_closedBall,mem_ball,mem_sphere] at *
exact le_antisymm hd (le_of_not_gt h)⟩)
instance : TopologicalSpace (Space a) := TopologicalSpace.coinduced (quotient a) inferInstance
@[simp] lemma quotient_inl (x : X) : quotient a (Sum.inl x) = Sum.inl x := rfl
@[simp] lemma quotient_interior (i : ι) (x : OpenDisk n) :
quotient a (Sum.inr ⟨i,interior n x⟩) = Sum.inr ⟨i,x⟩ := by
classical
dsimp only [quotient, interior]
erw [dite_eq_left x.2]
@[simp] lemma quotient_boundary (i : ι) (x : Sphere n) :
quotient a (Sum.inr ⟨i,boundary n x⟩) = Sum.inl (a i x) := by
classical
have hx : x.1 ∉ ball (0 : Fin n → ℝ) 1 := by
simpa only [mem_ball,mem_sphere,x.2,lt_self_iff_false,not_false_eq_true] using
(sphere_disjoint_ball.notMem_of_mem_left x.2)
dsimp only [quotient, boundary]
erw [dite_eq_right hx]
lemma quotient_surjective : Function.Surjective (quotient a) := by
intro z
cases z with
| inl x => exact ⟨Sum.inl x,rfl⟩
| inr p => exact ⟨Sum.inr ⟨p.1,interior n p.2⟩,quotient_interior a p.1 p.2⟩
lemma continuous_quotient : Continuous (quotient a) := continuous_coinduced_rng
/-- The old space embeds as a closed subspace of the adjunction. -/
def base : X → Space a := Sum.inl
noncomputable def cell (i : ι) : C(Disk n,Space a) :=
⟨fun x => quotient a (Sum.inr ⟨i,x⟩),
(continuous_quotient a).comp (continuous_inr.comp continuous_sigmaMk)⟩
lemma continuous_base : Continuous (base a) :=
(continuous_quotient a).comp continuous_inl
@[simp] lemma cell_boundary (i : ι) (x : Sphere n) :
cell a i (boundary n x) = base a (a i x) := quotient_boundary a i x
@[simp] lemma cell_interior (i : ι) (x : OpenDisk n) :
cell a i (interior n x) = Sum.inr ⟨i,x⟩ := quotient_interior a i x
lemma continuous_iff {Y : Type w} [TopologicalSpace Y] (f : Space a → Y) :
Continuous f ↔ Continuous (f ∘ base a) ∧ ∀ i, Continuous (f ∘ cell a i) := by
change Continuous[TopologicalSpace.coinduced (quotient a) inferInstance,_] f ↔ _
rw [continuous_coinduced_dom,continuous_sum_dom,continuous_sigma_iff]
rfl
lemma isClosed_iff (S : Set (Space a)) :
IsClosed S ↔ IsClosed (base a ⁻¹' S) ∧ ∀ i, IsClosed (cell a i ⁻¹' S) := by
change @IsClosed _ (TopologicalSpace.coinduced (quotient a) inferInstance) S ↔ _
rw [isClosed_coinduced,isClosed_sum_iff,isClosed_sigma_iff]
rfl
lemma cell_preimage_base_image (i : ι) (S : Set X) :
cell a i ⁻¹' (base a '' S) = boundary n '' ((a i) ⁻¹' S) := by
classical
ext d
by_cases h : d.1 ∈ ball (0 : Fin n → ℝ) 1
· have hd : d = interior n ⟨d.1,h⟩ := rfl
rw [hd]
simp only [Set.mem_preimage,cell_interior,base,Set.mem_image]
constructor
· rintro ⟨x,_,hx⟩; cases hx
· rintro ⟨x,_,hx⟩
have heq := congrArg (fun d : Disk n => d.1) hx
have hh : x.1 ∈ ball (0 : Fin n → ℝ) 1 := heq ▸ h
exact False.elim ((sphere_disjoint_ball.notMem_of_mem_left x.2) hh)
· let x : Sphere n := ⟨d.1,by
have hd := d.2
simp only [mem_closedBall,mem_ball,mem_sphere] at *
exact le_antisymm hd (le_of_not_gt h)⟩
have hd : d = boundary n x := rfl
rw [hd]
simp only [Set.mem_preimage,cell_boundary,Set.mem_image]
constructor
· rintro ⟨y,hy,hyx⟩
have heq : y = a i x := Sum.inl_injective hyx
exact ⟨x,heq ▸ hy,rfl⟩
· rintro ⟨y,hy,hyx⟩
have heq : y = x := Subtype.ext (congrArg (fun d : Disk n => d.1) hyx)
subst y
exact ⟨a i x,hy,rfl⟩
lemma base_isClosedMap : IsClosedMap (base a) := by
intro S hS
rw [isClosed_iff]
constructor
· change IsClosed ((Sum.inl : X → X ⊕ (Σ _ : ι, OpenDisk n)) ⁻¹' Sum.inl '' S)
simpa only [Set.preimage_image_eq _ Sum.inl_injective] using hS
· intro i
rw [cell_preimage_base_image]
exact (boundary_closedEmbedding n).isClosedMap _ (hS.preimage (a i).continuous)
lemma base_closedEmbedding : IsClosedEmbedding (base a) :=
IsClosedEmbedding.of_continuous_injective_isClosedMap
(continuous_base a) Sum.inl_injective (base_isClosedMap a)
/-- The universal mapping property, with all attaching equations explicit. -/
noncomputable def lift {Y : Type w} [TopologicalSpace Y] (f : C(X,Y))
(g : ι → C(Disk n,Y)) (h : ∀ i x, g i (boundary n x) = f (a i x)) : C(Space a,Y) := by
classical
let F : Space a → Y := Sum.elim f (fun p => g p.1 (interior n p.2))
have hcell (i : ι) : F ∘ cell a i = g i := by
funext d
by_cases hd : d.1 ∈ ball (0 : Fin n → ℝ) 1
· have heq : d = interior n ⟨d.1,hd⟩ := rfl
rw [heq,Function.comp_apply,cell_interior]
rfl
· let x : Sphere n := ⟨d.1,by
have hm := d.2
simp only [mem_closedBall,mem_ball,mem_sphere] at *
exact le_antisymm hm (le_of_not_gt hd)⟩
have heq : d = boundary n x := rfl
rw [heq,Function.comp_apply,cell_boundary]
exact (h i x).symm
exact ⟨F,(continuous_iff a F).mpr ⟨f.continuous,fun i => by rw [hcell]; exact (g i).continuous⟩⟩
@[simp] lemma lift_base {Y : Type w} [TopologicalSpace Y] (f : C(X,Y))
(g : ι → C(Disk n,Y)) (h : ∀ i x, g i (boundary n x) = f (a i x)) (x : X) :
lift a f g h (base a x) = f x := rfl
@[simp] lemma lift_cell {Y : Type w} [TopologicalSpace Y] (f : C(X,Y))
(g : ι → C(Disk n,Y)) (h : ∀ i x, g i (boundary n x) = f (a i x))
(i : ι) (d : Disk n) : lift a f g h (cell a i d) = g i d := by
classical
by_cases hd : d.1 ∈ ball (0 : Fin n → ℝ) 1
· have heq : d = interior n ⟨d.1,hd⟩ := rfl
rw [heq,cell_interior]
rfl
· let x : Sphere n := ⟨d.1,by
have hm := d.2
simp only [mem_closedBall,mem_ball,mem_sphere] at *
exact le_antisymm hm (le_of_not_gt hd)⟩
have heq : d = boundary n x := rfl
rw [heq,cell_boundary,lift_base,h]
lemma lift_unique {Y : Type w} [TopologicalSpace Y] (f g : C(Space a,Y))
(hb : ∀ x, f (base a x) = g (base a x))
(hc : ∀ i d, f (cell a i d) = g (cell a i d)) : f = g := by
ext z
obtain ⟨q,rfl⟩ := quotient_surjective a z
cases q with
| inl x => exact hb x
| inr p => exact hc p.1 p.2
lemma interior_openEmbedding (n : ℕ) : IsOpenEmbedding (interior n) :=
.inclusion ball_subset_closedBall (isOpen_ball.preimage continuous_subtype_val)
/-- Open disks are inserted as genuine open embeddings. -/
def openCell (i : ι) : OpenDisk n → Space a := fun x => Sum.inr ⟨i,x⟩
lemma openCell_eq (i : ι) : openCell a i = cell a i ∘ interior n := by
funext x
exact (cell_interior a i x).symm
lemma quotient_preimage_openCell_image (i : ι) (S : Set (OpenDisk n)) :
quotient a ⁻¹' (openCell a i '' S) =
Sum.inr '' (Sigma.mk i '' (interior n '' S)) := by
classical
ext q
cases q with
| inl x =>
simp only [Set.mem_preimage,quotient_inl,Set.mem_image]
constructor
· rintro ⟨y,_,hy⟩; cases hy
· rintro ⟨y,_,hy⟩; cases hy
| inr p =>
by_cases hp : p.2.1 ∈ ball (0 : Fin n → ℝ) 1
· have heq : p.2 = interior n ⟨p.2.1,hp⟩ := rfl
change (∃ x ∈ S, openCell a i x = quotient a (Sum.inr ⟨p.1,p.2⟩)) ↔ _
rw [heq,quotient_interior]
constructor
· rintro ⟨x,hx,he⟩
have hh : (⟨i,x⟩ : Σ _ : ι, OpenDisk n) = ⟨p.1,⟨p.2.1,hp⟩⟩ := Sum.inr_injective he
have hh' : (⟨i,interior n x⟩ : Σ _ : ι, Disk n) = ⟨p.1,p.2⟩ :=
congrArg (fun p : Σ _ : ι, OpenDisk n => (⟨p.1,interior n p.2⟩ : Σ _ : ι, Disk n)) hh
exact ⟨⟨i,interior n x⟩,⟨interior n x,⟨x,hx,rfl⟩,rfl⟩,congrArg Sum.inr hh'⟩
· rintro ⟨y,⟨d,⟨x,hx,hxd⟩,hdy⟩,hy⟩
subst d; subst y
have hh := Sum.inr_injective hy
have hi : i = p.1 := congrArg Sigma.fst hh
subst i
have hh' : interior n x = interior n ⟨p.2.1,hp⟩ := eq_of_heq (Sigma.mk.inj_iff.mp hh).2
have he : x = ⟨p.2.1,hp⟩ := (interior_openEmbedding n).injective hh'
exact ⟨x,hx,by subst x; rfl⟩
· let x : Sphere n := ⟨p.2.1,by
have hm := p.2.2
simp only [mem_closedBall,mem_ball,mem_sphere] at *
exact le_antisymm hm (le_of_not_gt hp)⟩
have heq : p.2 = boundary n x := rfl
change (∃ y ∈ S, openCell a i y = quotient a (Sum.inr ⟨p.1,p.2⟩)) ↔ _
rw [heq,quotient_boundary]
constructor
· rintro ⟨y,_,hy⟩; cases hy
· rintro ⟨y,⟨d,⟨z,_,hzd⟩,hdy⟩,hy⟩
subst d; subst y
have hh := Sum.inr_injective hy
have hi : i = p.1 := congrArg Sigma.fst hh
subst i
have hh' : interior n z = boundary n x := eq_of_heq (Sigma.mk.inj_iff.mp hh).2
have hh'' := congrArg (fun d : Disk n => d.1) hh'
exact False.elim (hp (hh'' ▸ z.2))
lemma openCell_openEmbedding (i : ι) : IsOpenEmbedding (openCell a i) := by
apply IsOpenEmbedding.of_continuous_injective_isOpenMap
· rw [openCell_eq]
exact (cell a i).continuous.comp (continuous_interior n)
· intro x y h
exact eq_of_heq (Sigma.mk.inj_iff.mp (Sum.inr_injective h)).2
· intro S hS
change @IsOpen _ (TopologicalSpace.coinduced (quotient a) inferInstance) _
rw [isOpen_coinduced,quotient_preimage_openCell_image]
exact isOpenMap_inr _ (isOpenMap_sigmaMk _ ((interior_openEmbedding n).isOpenMap S hS))
/-- Real-valued maps on the old space extend over any family of attached disks. -/
lemma exists_real_extension (f : C(X,ℝ)) :
∃ F : C(Space a,ℝ), ∀ x, F (base a x) = f x := by
classical
have hi (i : ι) : ∃ g : C(Disk n,ℝ), ∀ x, g (boundary n x) = f (a i x) := by
obtain ⟨g,hg⟩ := (f.comp (a i)).exists_extension' (boundary_closedEmbedding n)
exact ⟨g,fun x => congrFun hg x⟩
choose g hg using hi
exact ⟨lift a f g hg,fun x => lift_base a f g hg x⟩
/-- Functional Hausdorffness is convenient for iterated attachments: separating
functions, unlike chosen open neighborhoods, extend across every new disk. -/
def RealSeparated (Y : Type*) [TopologicalSpace Y] : Prop :=
∀ x y : Y, x ≠ y → ∃ f : C(Y,ℝ), f x ≠ f y
lemma RealSeparated.t2Space {Y : Type*} [TopologicalSpace Y] (h : RealSeparated Y) :
T2Space Y := by
constructor
intro x y hxy
obtain ⟨f,hf⟩ := h x y hxy
exact separated_by_continuous f.continuous hf
lemma realSeparated_of_tychonoff {Y : Type*} [TopologicalSpace Y]
[T1Space Y] [CompletelyRegularSpace Y] : RealSeparated Y := by
intro x y hxy
obtain ⟨f,hf,hfx,hfy⟩ := CompletelyRegularSpace.completely_regular x {y} isClosed_singleton
(by simpa only [Set.mem_singleton_iff] using hxy)
refine ⟨⟨fun q => (f q : ℝ),continuous_subtype_val.comp hf⟩,?_⟩
change (f x : ℝ) ≠ (f y : ℝ)
rw [hfx,hfy (Set.mem_singleton y)]
norm_num
lemma exists_interior_separator [T1Space X] (i : ι) (x : OpenDisk n) (z : Space a)
(hxz : openCell a i x ≠ z) :
∃ F : C(Space a,ℝ), F (openCell a i x) = 1 ∧ F z = 0 := by
classical
let K : Set (Disk n) := Set.range (boundary n) ∪ cell a i ⁻¹' {z}
have hKc : IsClosed K := by
-- Only the part of the inverse image inside this disk is used; the point
-- set is closed directly, without presupposing Hausdorffness of the adjunction.
have hz : IsClosed (cell a i ⁻¹' {z}) := by
cases z with
| inl y =>
have heq : ({Sum.inl y} : Set (Space a)) = base a '' {y} := by
exact (Set.image_singleton (f := base a) (a := y)).symm
erw [heq,cell_preimage_base_image]
-- For base points this will follow from a T1 hypothesis below.
exact (boundary_closedEmbedding n).isClosedMap _
(isClosed_singleton.preimage (a i).continuous)
| inr p =>
have heq : ({Sum.inr p} : Set (Space a)) = openCell a p.1 '' {p.2} := by
exact (Set.image_singleton (f := openCell a p.1) (a := p.2)).symm
have hpre := quotient_preimage_openCell_image a p.1 ({p.2} : Set (OpenDisk n))
have hclosed : IsClosed (quotient a ⁻¹' {Sum.inr p}) := by
erw [heq,hpre]
exact isClosedMap_inr _ (isClosedMap_sigmaMk _
((isCompact_singleton.image (continuous_interior n)).isClosed))
exact hclosed.preimage (continuous_inr.comp continuous_sigmaMk)
exact (boundary_closedEmbedding n).isClosed_range.union hz
have hxK : interior n x ∉ K := by
rintro (hx | hx)
· obtain ⟨s,hs⟩ := hx
have heq := congrArg (fun d : Disk n => d.1) hs
exact sphere_disjoint_ball.notMem_of_mem_left s.2 (heq ▸ x.2)
· apply hxz
change cell a i (interior n x) = z at hx
exact (cell_interior a i x).symm.trans hx
obtain ⟨f,hf0,hf1,_⟩ := exists_continuous_zero_one_of_isClosed hKc
(isClosed_singleton (x := interior n x)) (Set.disjoint_singleton_right.mpr hxK)
let g : ι → C(Disk n,ℝ) := fun j => if j = i then f else ContinuousMap.const _ 0
have hgb (j : ι) (s : Sphere n) : g j (boundary n s) = (0 : ℝ) := by
dsimp [g]
split_ifs with hji
· exact hf0 (Set.mem_union_left _ (Set.mem_range_self s))
· rfl
let F : C(Space a,ℝ) := lift a (ContinuousMap.const _ 0) g hgb
have hFcell (j : ι) (d : Disk n) : F (cell a j d) = g j d := lift_cell a _ _ _ j d
refine ⟨F,?_,?_⟩
· change F (Sum.inr ⟨i,x⟩) = 1
rw [← cell_interior a i x,hFcell]
simpa only [g,ite_eq_left rfl,Pi.one_apply] using hf1 (Set.mem_singleton _)
· cases z with
| inl y => exact lift_base a _ _ _ y
| inr p =>
rw [← cell_interior a p.1 p.2,hFcell]
by_cases hpi : p.1 = i
· have hm : interior n p.2 ∈ K := by
right
change cell a i (interior n p.2) = Sum.inr p
rw [cell_interior]
cases p with
| mk j y =>
dsimp only at hpi
subst j
rfl
simpa only [g,ite_eq_left hpi,Pi.zero_apply] using hf0 hm
· simp only [g,ite_eq_right hpi,ContinuousMap.const_apply]
lemma realSeparated (hX : RealSeparated X) : RealSeparated (Space a) := by
classical
let : T2Space X := hX.t2Space
intro x y hxy
cases x with
| inl x =>
cases y with
| inl y =>
have hne : x ≠ y := fun heq => hxy (congrArg Sum.inl heq)
obtain ⟨f,hf⟩ := hX x y hne
obtain ⟨F,hF⟩ := exists_real_extension a f
refine ⟨F,?_⟩
change F (base a x) ≠ F (base a y)
rwa [hF,hF]
| inr p =>
obtain ⟨F,hF1,hF0⟩ := exists_interior_separator a p.1 p.2 (Sum.inl x)
(by exact fun h => hxy h.symm)
refine ⟨F,?_⟩
change F (Sum.inl x) ≠ F (openCell a p.1 p.2)
rw [hF0,hF1]
norm_num
| inr p =>
obtain ⟨F,hF1,hF0⟩ := exists_interior_separator a p.1 p.2 y hxy
refine ⟨F,?_⟩
change F (openCell a p.1 p.2) ≠ F y
rw [hF1,hF0]
norm_num
lemma t2Space (hX : RealSeparated X) : T2Space (Space a) := (realSeparated a hX).t2Space
variable [Nonempty X]
/-- The characteristic map is defined on the entire parameter space, as required
by Mathlib's classical CW definition, but only its closed-disk values matter. -/
def characteristic (i : ι) (x : Fin n → ℝ) : Space a := by
classical
exact if hx : x ∈ closedBall 0 1 then cell a i ⟨x,hx⟩ else base a (Classical.choice ‹Nonempty X›)
lemma characteristic_disk (i : ι) (d : Disk n) :
characteristic a i d.1 = cell a i d := by
simp only [characteristic,dite_eq_left d.2]
lemma characteristic_open (i : ι) (x : OpenDisk n) :
characteristic a i x.1 = openCell a i x := by
exact (characteristic_disk a i (interior n x)).trans (cell_interior a i x)
lemma characteristic_bijOn (i : ι) :
Set.BijOn (characteristic a i) (ball 0 1) (Set.range (openCell a i)) := by
constructor
· intro x hx
exact ⟨⟨x,hx⟩,(characteristic_open a i ⟨x,hx⟩).symm⟩
constructor
· intro x hx y hy hxy
have hxy' : openCell a i ⟨x,hx⟩ = openCell a i ⟨y,hy⟩ := by
rwa [characteristic_open a i ⟨x,hx⟩,characteristic_open a i ⟨y,hy⟩] at hxy
exact congrArg Subtype.val ((openCell_openEmbedding a i).injective hxy')
· rintro z ⟨x,rfl⟩
exact ⟨x.1,x.2,characteristic_open a i x⟩
def characteristicPE (i : ι) : PartialEquiv (Fin n → ℝ) (Space a) :=
(characteristic_bijOn a i).toPartialEquiv _ _ _
lemma characteristicPE_continuousOn (i : ι) :
ContinuousOn (characteristicPE a i) (closedBall 0 1) := by
rw [continuousOn_iff_continuous_domRestrict]
have heq : (closedBall (0:Fin n→ℝ) 1).domRestrict (characteristicPE a i) = cell a i := by
funext x
exact characteristic_disk a i x
rw [heq]
exact (cell a i).continuous
lemma characteristicPE_continuousOn_symm (i : ι) :
ContinuousOn (characteristicPE a i).symm (characteristicPE a i).target := by
let e := characteristicPE a i
have he : IsEmbedding (e.source.domRestrict e) := by
have heq : e.source.domRestrict e = openCell a i := by
funext x
exact characteristic_open a i x
rw [heq]
exact (openCell_openEmbedding a i).isEmbedding
let H : e.source ≃ₜ e.target := e.toEquiv.toHomeomorphOfIsInducing
(he.isInducing.codRestrict (fun x => e.map_source x.2))
rw [continuousOn_iff_continuous_domRestrict]
exact continuous_subtype_val.comp H.symm.continuous
lemma characteristicPE_image_ball (i : ι) :
characteristicPE a i '' ball 0 1 = Set.range (openCell a i) :=
(characteristic_bijOn a i).image_eq
lemma characteristicPE_image_closedBall (i : ι) :
characteristicPE a i '' closedBall 0 1 = Set.range (cell a i) := by
ext z
constructor
· rintro ⟨x,hx,rfl⟩
exact ⟨⟨x,hx⟩,(characteristic_disk a i ⟨x,hx⟩).symm⟩
· rintro ⟨x,rfl⟩
exact ⟨x.1,x.2,characteristic_disk a i x⟩
abbrev CellIndex (m n : ℕ) (ι : Type v) := ULift.{u} (PLift (m = n) × ι)
def cellMap (m : ℕ) (i : CellIndex.{u,v} m n ι) :
PartialEquiv (Fin m → ℝ) (Space a) := by
obtain ⟨⟨⟨hm⟩,i⟩⟩ := i
subst m
exact characteristicPE a i
/-- Attaching disks is a classical relative CW complex, not merely an abstract
cell-complex object in a category. -/
@[instance_reducible]
def relCWComplex : RelCWComplex (Set.univ : Set (Space a)) (Set.range (base a)) where
cell m := CellIndex.{u,v} m n ι
map := cellMap a
source_eq := by
rintro m ⟨⟨⟨hm⟩,i⟩⟩
subst m
rfl
continuousOn := by
rintro m ⟨⟨⟨hm⟩,i⟩⟩
subst m
exact characteristicPE_continuousOn a i
continuousOn_symm := by
rintro m ⟨⟨⟨hm⟩,i⟩⟩
subst m
exact characteristicPE_continuousOn_symm a i
pairwiseDisjoint' := by
rintro ⟨m,⟨⟨⟨hm⟩,i⟩⟩⟩ _ ⟨k,⟨⟨⟨hk⟩,j⟩⟩⟩ _ hne
subst m; subst k
change Disjoint (characteristicPE a i '' ball 0 1) (characteristicPE a j '' ball 0 1)
rw [characteristicPE_image_ball,characteristicPE_image_ball]
apply Set.disjoint_left.mpr
rintro z ⟨x,rfl⟩ ⟨y,h⟩
have hij : j = i := congrArg Sigma.fst (Sum.inr_injective h)
subst j
exact hne rfl
disjointBase' := by
rintro m ⟨⟨⟨hm⟩,i⟩⟩
subst m
change Disjoint (characteristicPE a i '' ball 0 1) _
rw [characteristicPE_image_ball]
apply Set.disjoint_left.mpr
rintro z ⟨x,rfl⟩ ⟨y,h⟩
cases h
mapsTo := by
rintro m ⟨⟨⟨hm⟩,i⟩⟩
subst m
refine ⟨fun _ => ∅,?_⟩
intro x hx
left
refine ⟨a i ⟨x,hx⟩,?_⟩
change base a (a i ⟨x,hx⟩) = characteristic a i x
exact (cell_boundary a i ⟨x,hx⟩).symm.trans
(characteristic_disk a i (boundary n ⟨x,hx⟩)).symm
closed' := by
intro A _ hA
apply (isClosed_iff a A).mpr
constructor
· have h := hA.2.preimage (continuous_base a)
convert h using 1
ext x
simp only [Set.mem_preimage,Set.mem_inter_iff,Set.mem_range_self,and_true]
· intro i
have h := (hA.1 n ⟨⟨⟨rfl⟩,i⟩⟩).preimage (cell a i).continuous
change IsClosed ((cell a i) ⁻¹' (A ∩ characteristicPE a i '' closedBall 0 1)) at h
rw [characteristicPE_image_closedBall] at h
convert h using 1
ext x
simp only [Set.mem_preimage,Set.mem_inter_iff,Set.mem_range_self,and_true]
isClosedBase := (base_closedEmbedding a).isClosed_range
union' := by
apply Set.eq_univ_of_forall
intro z
cases z with
| inl x => exact Or.inl ⟨x,rfl⟩
| inr p =>
right
refine Set.mem_iUnion.mpr ⟨n,Set.mem_iUnion.mpr ⟨⟨⟨⟨rfl⟩,p.1⟩⟩,?_⟩⟩
change Sum.inr p ∈ characteristicPE a p.1 '' closedBall 0 1
rw [characteristicPE_image_closedBall]
exact ⟨interior n p.2,cell_interior a p.1 p.2⟩
end GroupRingTopology.Attachment
open Set Metric Topology
end
end OAI

Xet Storage Details

Size:
32.6 kB
·
Xet hash:
d3db74b32a721d9ffb459e4d42d5d4f53520cb1340bec5e9a6fc8267316ba4a7

Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.