Download data/lean/OAI/Geometry/ConjugatePoints/CompactMetric.lean from introvoyz045/math: direct link, hf CLI and curl.
- Browser
- Download file 83.4 kB
-
https://huggingface.co/datasets/introvoyz045/math/resolve/main/data/lean/OAI/Geometry/ConjugatePoints/CompactMetric.lean
- Command line
-
hf download hf://datasets/introvoyz045/math/data/lean/OAI/Geometry/ConjugatePoints/CompactMetric.lean
-
curl -L -o CompactMetric.lean https://huggingface.co/datasets/introvoyz045/math/resolve/main/data/lean/OAI/Geometry/ConjugatePoints/CompactMetric.lean
83.4 kB
import OAI.Geometry.ConjugatePoints.Metric
import OAI.Geometry.ConjugatePoints.Cometric
namespace OAI
noncomputable section
/-!
# The smooth Riemannian metric on the compact glued manifold.
-/
section
open Set Filter Topology Bundle Manifold IsManifold Bornology
open scoped ContDiff
namespace ThreeManifold.CompactMetric
open MetricConstruction CylinderConstruction
def radialLinear (a : β) (ha : a β 0) : P βL[β] P :=
{ toFun := fun v => (a*v.1,v.2)
invFun := fun v => (v.1/a,v.2)
left_inv := by intro v; apply Prod.ext <;> simp [ha]
right_inv := by
intro v
apply Prod.ext
Β· change a*(v.1/a) = v.1
field_simp
Β· rfl
map_add' := by
intro v w
apply Prod.ext
Β· change a*(v.1+w.1) = a*v.1+a*w.1
ring
Β· rfl
map_smul' := by
intro c v
apply Prod.ext
Β· change a*(c*v.1) = c*(a*v.1)
ring
Β· rfl }
def radial (L : β) (x : Cylinder) : Cylinder := (RadialProfile.coordinate L x.1,x.2)
def radialLift (L : β) (x : P) : P := (RadialProfile.coordinate L x.1,x.2)
lemma radial_smooth (L : β) : ContMDiff π(β,P) π(β,P) β (radial L) := by
have h := ((RadialProfile.coordinate_smooth L).contMDiff.comp
(projection_fst_smooth (E := β) (F := β Γ β) (M := β) (N := AddCircle (6:β) Γ AddCircle (6:β)))).prodMk
(projection_snd_smooth (E := β) (F := β Γ β) (M := β) (N := AddCircle (6:β) Γ AddCircle (6:β)))
convert! h using 1
simp only [β modelWithCornersSelf_prod]
lemma radialLift_smooth (L : β) : ContMDiff π(β,P) π(β,P) β (radialLift L) :=
((RadialProfile.coordinate_smooth L).comp contDiff_fst |>.prodMk contDiff_snd).contMDiff
lemma radialLift_deriv {L : β} (hL : 4 β€ L) (x : P) :
(radialLinear (RadialProfile.slope L x.1) (RadialProfile.slope_pos hL x.1).ne').toContinuousLinearMap =
mfderiv π(β,P) π(β,P) (radialLift L) x := by
rw [mfderiv_eq_fderiv]
have hd := ((RadialProfile.coordinate_deriv L x.1).comp_hasFDerivAt x
(hasFDerivAt_fst (π := β) (p := x))).prodMk (hasFDerivAt_snd (π := β) (p := x))
calc
_ = _ := ?_
_ = fderiv β (radialLift L) x := hd.fderiv.symm
apply ContinuousLinearMap.ext
intro v
rfl
lemma radial_commutes (L : β) : radial L β projection = projection β radialLift L := rfl
def radialPull (g : Metric (E := P) Cylinder) {L : β} (hL : 4 β€ L) :
Metric (E := P) Cylinder :=
pullbackFromLift projection_cover projection_smooth local_inverse_smooth
(radial_smooth L) (radialLift_smooth L) (radial_commutes L)
(fun x => radialLinear (RadialProfile.slope L x.1) (RadialProfile.slope_pos hL x.1).ne')
(radialLift_deriv hL) section_spec g
def radiusβ (Ξ΄ B : β) (t : β) : β := Ξ΄^2*B/6 * Collar.ell Ξ΄ t
def radiusβ (Ξ΄ B : β) (t : β) : β := B/6 * Collar.ell Ξ΄ (1-t)
lemma radiusβ_smooth {Ξ΄ : β} (hΞ΄ : Ξ΄ β Icc 0 (1/2)) (B : β) : ContDiff β β (radiusβ Ξ΄ B) :=
contDiff_const.mul (Collar.ell_smooth hΞ΄)
lemma radiusβ_smooth {Ξ΄ : β} (hΞ΄ : Ξ΄ β Icc 0 (1/2)) (B : β) : ContDiff β β (radiusβ Ξ΄ B) :=
contDiff_const.mul ((Collar.ell_smooth hΞ΄).comp (contDiff_const.sub contDiff_id))
lemma radiusβ_pos {Ξ΄ B : β} (hΞ΄ : 0 < Ξ΄) (hB : 0 < B) (t : β) : 0 < radiusβ Ξ΄ B t :=
mul_pos (div_pos (mul_pos (sq_pos_of_pos hΞ΄) hB) (by norm_num)) (Collar.ell_pos Ξ΄ t)
lemma radiusβ_pos {Ξ΄ B : β} (hB : 0 < B) (t : β) : 0 < radiusβ Ξ΄ B t :=
mul_pos (div_pos hB (by norm_num)) (Collar.ell_pos Ξ΄ (1-t))
def neck {Ξ΄ B : β} (hΞ΄ : Ξ΄ β Ioc 0 (1/2)) (hB : 0 < B) : Metric (E := P) Cylinder :=
CylinderConstruction.metric (radiusβ_smooth β¨hΞ΄.1.le,hΞ΄.2β© B)
(radiusβ_smooth β¨hΞ΄.1.le,hΞ΄.2β© B) Cometric.Ο_smooth
(fun t => (radiusβ_pos hΞ΄.1 hB t).ne') (fun t => (radiusβ_pos hB t).ne')
end ThreeManifold.CompactMetric
namespace ThreeManifold.MetricConstruction
variable {E M : Type*} [NormedAddCommGroup E] [NormedSpace β E]
[TopologicalSpace M] [ChartedSpace E M] [IsManifold π(β,E) β M]
omit [IsManifold π(β,E) β M] in
lemma openSubtype_inverse_smooth (U : TopologicalSpace.Opens M) (hU : Nonempty U)
{x : M} (hx : x β U) :
ContMDiffAt π(β,E) π(β,E) β (U.openPartialHomeomorphSubtypeCoe hU).symm x := by
apply (ContMDiffAt.subtypeVal_comp_iff U _ x).mp
apply contMDiffAt_id.congr_of_eventuallyEq
filter_upwards [U.isOpen.mem_nhds hx] with y hy
exact (U.openPartialHomeomorphSubtypeCoe hU).right_inv (by simpa using hy)
omit [IsManifold π(β,E) β M] in
lemma openSubtype_mdifferentiable (U : TopologicalSpace.Opens M) (hU : Nonempty U) :
(U.openPartialHomeomorphSubtypeCoe hU).MDifferentiable π(β,E) π(β,E) := by
constructor
Β· exact (contMDiff_subtype_val (U := U) (n := β)).mdifferentiable (by simp) |>.mdifferentiableOn
Β· intro x hx
exact (openSubtype_inverse_smooth U hU (by simpa using hx)).mdifferentiableAt
(by simp) |>.mdifferentiableWithinAt
def restrict (g : Metric (E := E) M) (U : TopologicalSpace.Opens M) : Metric (E := E) U :=
pullback g (contMDiff_subtype_val (U := U))
(fun x => (openSubtype_mdifferentiable U β¨xβ©).mfderiv (by simp)) (fun _ => rfl)
lemma restrict_inner (g : Metric (E := E) M) (U : TopologicalSpace.Opens M) (x : U) :
(restrict g U).inner x = pullInner g (Subtype.val : U β M) x := rfl
end ThreeManifold.MetricConstruction
namespace ThreeManifold.CompactMetric
open MetricConstruction CylinderConstruction
open HyperbolicCore (rayOpens)
def timeReverse : β ββ β where
toFun t := 1-t
invFun t := 1-t
left_inv t := by dsimp; ring
right_inv t := by dsimp; ring
continuous_toFun := continuous_const.sub continuous_id
continuous_invFun := continuous_const.sub continuous_id
def switch : Cylinder ββ Cylinder := timeReverse.prodCongr GluedConstruction.torusShear
lemma switch_smooth : ContMDiff π(β,P) π(β,P) β switch := by
have h0 : ContMDiff π(β,P) π(β,β) β (fun q : Cylinder => 1-q.1) :=
contMDiff_const.sub projection_fst_smooth
have h1 : ContMDiff π(β,P) π(β,β Γ β) β
(fun q : Cylinder => GluedConstruction.torusShear q.2) := by
convert! GluedConstruction.torusShear_smooth.comp
(projection_snd_smooth (E := β) (F := β Γ β) (M := β) (N := AddCircle (6:β) Γ AddCircle (6:β))) using 1
simp only [β modelWithCornersSelf_prod]
convert! h0.prodMk h1 using 1
simp only [β modelWithCornersSelf_prod]
lemma switch_symm_smooth : ContMDiff π(β,P) π(β,P) β switch.symm := by
have h0 : ContMDiff π(β,P) π(β,β) β (fun q : Cylinder => 1-q.1) :=
contMDiff_const.sub projection_fst_smooth
have h1 : ContMDiff π(β,P) π(β,β Γ β) β
(fun q : Cylinder => GluedConstruction.torusShear.symm q.2) := by
convert! GluedConstruction.torusShear_symm_smooth.comp
(projection_snd_smooth (E := β) (F := β Γ β) (M := β) (N := AddCircle (6:β) Γ AddCircle (6:β))) using 1
simp only [β modelWithCornersSelf_prod]
convert! h0.prodMk h1 using 1
simp only [β modelWithCornersSelf_prod]
def switched (g : Metric (E := P) Cylinder) : Metric (E := P) Cylinder :=
pullbackHomeomorph g switch switch_smooth switch_symm_smooth
abbrev HeightCylinder (a : β) := Ioi a Γ (AddCircle (6:β) Γ AddCircle (6:β))
def logDomain (a : β) : TopologicalSpace.Opens Cylinder :=
β¨{q | Real.log a < q.1},isOpen_lt continuous_const continuous_fstβ©
def logCylinderHomeomorph (a : β) (ha : 0 < a) : HeightCylinder a ββ logDomain a where
toFun q := β¨(Real.log q.1.1,q.2), (Real.strictMonoOn_log ha (lt_trans ha q.1.2) q.1.2)β©
invFun q := (β¨Real.exp q.1.1,by
have h := Real.exp_lt_exp.mpr q.2
rwa [Real.exp_log ha] at hβ©,q.1.2)
left_inv q := by ext <;> simp [Real.exp_log (lt_trans ha q.1.2)]
right_inv q := by ext <;> simp
continuous_toFun := (((continuous_subtype_val.comp continuous_fst).log
(fun q => ne_of_gt (lt_trans ha q.1.2))).prodMk continuous_snd).subtype_mk _
continuous_invFun := (((Real.continuous_exp.comp (continuous_fst.comp continuous_subtype_val)).subtype_mk _).prodMk
(continuous_snd.comp continuous_subtype_val))
lemma logCylinder_smooth (a : β) (ha : 0 < a) :
ContMDiff π(β,P) π(β,P) β (logCylinderHomeomorph a ha) := by
apply (ContMDiff.subtypeVal_comp_iff (logDomain a) _).mp
have hh : ContMDiff π(β,P) π(β,β) β (fun q : HeightCylinder a => q.1.1) :=
(contMDiff_subtype_val (U := rayOpens a)).comp projection_fst_smooth
have hl : ContMDiff π(β,P) π(β,β) β (fun q : HeightCylinder a => Real.log q.1.1) :=
fun q => (Real.contDiffAt_log.mpr (ne_of_gt (lt_trans ha q.1.2))).contMDiffAt.comp q (hh q)
have hs : ContMDiff π(β,P) π(β,β Γ β) β (Prod.snd : HeightCylinder a β _) :=
projection_snd_smooth
convert! hl.prodMk hs using 1
simp only [β modelWithCornersSelf_prod]
lemma logCylinder_symm_smooth (a : β) (ha : 0 < a) :
ContMDiff π(β,P) π(β,P) β (logCylinderHomeomorph a ha).symm := by
have hv : ContMDiff π(β,P) π(β,P) β (Subtype.val : logDomain a β Cylinder) :=
contMDiff_subtype_val
have h0 : ContMDiff π(β,P) π(β,β) β (fun q : logDomain a =>
(logCylinderHomeomorph a ha).symm q |>.1) := by
apply (ContMDiff.subtypeVal_comp_iff (rayOpens a) _).mp
exact Real.contDiff_exp.contMDiff.comp (projection_fst_smooth.comp hv)
have h1 : ContMDiff π(β,P) π(β,β Γ β) β (fun q : logDomain a => q.1.2) :=
projection_snd_smooth.comp hv
convert! h0.prodMk h1 using 1
simp only [β modelWithCornersSelf_prod]
def heightMetric (g : Metric (E := P) Cylinder) (a : β) (ha : 0 < a) :
Metric (E := P) (HeightCylinder a) :=
pullbackHomeomorph (MetricConstruction.restrict g (logDomain a)) (logCylinderHomeomorph a ha)
(logCylinder_smooth a ha) (logCylinder_symm_smooth a ha)
end ThreeManifold.CompactMetric
namespace ThreeManifold.MetricConstruction
section
variable {E M A : Type*} [NormedAddCommGroup E] [NormedSpace β E]
[TopologicalSpace M] [ChartedSpace E M] [IsManifold π(β,E) β M]
structure LocalMetric (M : Type*) {E : Type*} [NormedAddCommGroup E] [NormedSpace β E]
[TopologicalSpace M] [ChartedSpace E M] [IsManifold π(β,E) β M] where
domain : Set M
open_domain : IsOpen domain
inner : β x : M, TangentSpace π(β,E) x βL[β] TangentSpace π(β,E) x βL[β] β
symm : β x β domain, β u v, inner x u v = inner x v u
pos : β x β domain, β u, u β 0 β 0 < inner x u u
bounded : β x β domain, IsVonNBounded β {u | inner x u u < 1}
smooth : β x β domain, ContMDiffAt π(β,E)
(π(β,E).prod π(β,E βL[β] E βL[β] β)) β
(fun y => TotalSpace.mk' (E βL[β] E βL[β] β)
(E := fun z => TangentSpace π(β,E) z βL[β] TangentSpace π(β,E) z βL[β] β)
y (inner y)) x
variable (g : A β LocalMetric (E := E) M)
(cover : β x, β i, x β (g i).domain)
(compat : β i j x, x β (g i).domain β x β (g j).domain β (g i).inner x = (g j).inner x)
def localGluedInner (x : M) := (g (cover x).choose).inner x
include compat in
lemma localGluedInner_eq (i : A) (x : M) (hx : x β (g i).domain) :
localGluedInner g cover x = (g i).inner x :=
compat _ i x (cover x).choose_spec hx
include compat in
lemma localGluedInner_smooth :
ContMDiff π(β,E) (π(β,E).prod π(β,E βL[β] E βL[β] β)) β
(fun y => TotalSpace.mk' (E βL[β] E βL[β] β)
(E := fun z => TangentSpace π(β,E) z βL[β] TangentSpace π(β,E) z βL[β] β)
y (localGluedInner g cover y)) := by
intro x
obtain β¨i,hiβ© := cover x
apply ((g i).smooth x hi).congr_of_eventuallyEq
filter_upwards [(g i).open_domain.mem_nhds hi] with y hy
exact congrArg (TotalSpace.mk' (E βL[β] E βL[β] β) y)
(localGluedInner_eq g cover compat i y hy)
def glueLocal : Metric (E := E) M where
inner := localGluedInner g cover
symm x := (g (cover x).choose).symm x (cover x).choose_spec
pos x := (g (cover x).choose).pos x (cover x).choose_spec
isVonNBounded x := (g (cover x).choose).bounded x (cover x).choose_spec
contMDiff := localGluedInner_smooth g cover compat
lemma glueLocal_eq (i : A) (x : M) (hx : x β (g i).domain) :
(glueLocal g cover compat).inner x = (g i).inner x :=
localGluedInner_eq g cover compat i x hx
end
variable {E F M N : Type*}
[NormedAddCommGroup E] [NormedSpace β E]
[NormedAddCommGroup F] [NormedSpace β F]
[TopologicalSpace M] [ChartedSpace E M] [IsManifold π(β,E) β M]
[TopologicalSpace N] [ChartedSpace F N] [IsManifold π(β,F) β N]
def localPull (g : Metric (E := F) N) (e : OpenPartialHomeomorph M N)
(hs : ContMDiffOn π(β,E) π(β,F) β e e.source)
(he : e.MDifferentiable π(β,E) π(β,F)) : LocalMetric (E := E) M where
domain := e.source
open_domain := e.open_source
inner := pullInner g e
symm x _ u v := g.symm (e x) _ _
pos x hx u hu := by
apply g.pos
let d := he.mfderiv hx
exact fun hh => hu (d.injective (hh.trans d.map_zero.symm))
bounded x hx := by
let d := he.mfderiv hx
apply ((g.isVonNBounded (e x)).image d.symm.toContinuousLinearMap).subset
intro u hu
exact β¨d u,hu,d.symm_apply_apply uβ©
smooth x hx := pullback_inner_smoothAt g ((hs x hx).contMDiffAt (e.open_source.mem_nhds hx))
def localOn (g : Metric (E := E) M) (U : TopologicalSpace.Opens M) : LocalMetric (E := E) M where
domain := U
open_domain := U.isOpen
inner := g.inner
symm x _ := g.symm x
pos x _ := g.pos x
bounded x _ := g.isVonNBounded x
smooth x _ := g.contMDiff x
end ThreeManifold.MetricConstruction
namespace ThreeManifold.CompactMetric
open MetricConstruction CylinderConstruction
open HyperbolicCore (Surface cusp cuspOpens cuspCoordinates cuspCoordinates_smooth cuspCoordinates_symm_smooth rayOpens)
abbrev WholePiece := Surface Γ AddCircle (6:β)
abbrev EP := β Γ β
def wholeCusp (a : β) : TopologicalSpace.Opens WholePiece :=
β¨{q | q.1 β cusp a}, (cuspOpens a).isOpen.preimage continuous_fstβ©
def wholeCoordinates (a : β) (ha : 1 < a) : wholeCusp a ββ HeightCylinder a where
toFun q := ((cuspCoordinates a ha β¨q.1.1,q.2β©).1,
( (cuspCoordinates a ha β¨q.1.1,q.2β©).2, q.1.2))
invFun q := β¨(((cuspCoordinates a ha).symm (q.1,q.2.1)).1,q.2.2),
((cuspCoordinates a ha).symm (q.1,q.2.1)).2β©
left_inv q := by
apply Subtype.ext
apply Prod.ext
Β· exact congrArg Subtype.val ((cuspCoordinates a ha).symm_apply_apply β¨q.1.1,q.2β©)
Β· rfl
right_inv q := by
have h := (cuspCoordinates a ha).apply_symm_apply (q.1,q.2.1)
change ((cuspCoordinates a ha ((cuspCoordinates a ha).symm (q.1,q.2.1))).1,
(cuspCoordinates a ha ((cuspCoordinates a ha).symm (q.1,q.2.1))).2,q.2.2) = q
rw [h]
continuous_toFun := by
have h := (cuspCoordinates a ha).continuous.comp
((continuous_fst.comp continuous_subtype_val).subtype_mk (fun q : wholeCusp a => q.2))
exact h.fst.prodMk (h.snd.prodMk (continuous_snd.comp continuous_subtype_val))
continuous_invFun := by
have h := (cuspCoordinates a ha).symm.continuous.comp
((continuous_fst : Continuous (Prod.fst : HeightCylinder a β Ioi a)).prodMk (continuous_fst.comp continuous_snd))
exact ((continuous_subtype_val.comp h).prodMk (continuous_snd.comp continuous_snd)).subtype_mk (fun q => ((cuspCoordinates a ha).symm (q.1,q.2.1)).2)
lemma wholeCoordinates_smooth (a : β) (ha : 1 < a) :
ContMDiff π(β,EP) π(β,P) β (wholeCoordinates a ha) := by
have hv : ContMDiff π(β,EP) π(β,EP) β (Subtype.val : wholeCusp a β WholePiece) :=
contMDiff_subtype_val
have hsub : ContMDiff π(β,EP) π(β,β) β
(fun q : wholeCusp a => (β¨q.1.1,q.2β© : cusp a)) :=
(ContMDiff.subtypeVal_comp_iff (cuspOpens a) _).mp (projection_fst_smooth.comp hv)
have hc := (cuspCoordinates_smooth a ha).comp hsub
have h0 := hc.fst
have h1 := hc.snd.prodMk (projection_snd_smooth.comp hv)
convert! h0.prodMk h1 using 1
simp only [β modelWithCornersSelf_prod]
lemma wholeCoordinates_symm_smooth (a : β) (ha : 1 < a) :
ContMDiff π(β,P) π(β,EP) β (wholeCoordinates a ha).symm := by
have h0 : ContMDiff π(β,P) π(β,β) β
(fun q : HeightCylinder a => ((cuspCoordinates a ha).symm (q.1,q.2.1)).1) := by
apply (contMDiff_subtype_val (U := cuspOpens a)).comp
apply (cuspCoordinates_symm_smooth a ha).comp
convert! (projection_fst_smooth (E := β) (F := β Γ β) (M := Ioi a)
(N := AddCircle (6:β) Γ AddCircle (6:β))).prodMk
(projection_fst_smooth.comp projection_snd_smooth) using 1
have h1 : ContMDiff π(β,P) π(β,β) β (fun q : HeightCylinder a => q.2.2) :=
projection_snd_smooth.comp projection_snd_smooth
apply (ContMDiff.subtypeVal_comp_iff (wholeCusp a) _).mp
convert! h0.prodMk h1 using 1
simp only [β modelWithCornersSelf_prod]
lemma wholeCusp_nonempty (a : β) (ha : 1 < a) : Nonempty (wholeCusp a) := by
let q : HeightCylinder a := (β¨a+1,show a < a+1 by linarithβ©,0,0)
exact β¨(wholeCoordinates a ha).symm qβ©
def cuspChart (a : β) (ha : 1 < a) : OpenPartialHomeomorph WholePiece (HeightCylinder a) :=
((wholeCusp a).openPartialHomeomorphSubtypeCoe (wholeCusp_nonempty a ha)).symm.trans
(wholeCoordinates a ha).toOpenPartialHomeomorph
lemma cuspChart_smooth (a : β) (ha : 1 < a) :
ContMDiffOn π(β,EP) π(β,P) β (cuspChart a ha) (cuspChart a ha).source := by
intro x hx
have hx' : x β wholeCusp a := by simpa [cuspChart] using hx
exact ((wholeCoordinates_smooth a ha) _).comp x
(openSubtype_inverse_smooth (wholeCusp a) (wholeCusp_nonempty a ha) hx') |>.contMDiffWithinAt
lemma cuspChart_mdifferentiable (a : β) (ha : 1 < a) :
(cuspChart a ha).MDifferentiable π(β,EP) π(β,P) := by
apply (openSubtype_mdifferentiable (wholeCusp a) (wholeCusp_nonempty a ha)).symm.trans
exact β¨((wholeCoordinates_smooth a ha).mdifferentiable (by simp)).mdifferentiableOn,
((wholeCoordinates_symm_smooth a ha).mdifferentiable (by simp)).mdifferentiableOnβ©
def cuspMetric (g : Metric (E := P) Cylinder) (a : β) (ha : 1 < a) :
LocalMetric (E := EP) WholePiece :=
localPull (heightMetric g a (by linarith)) (cuspChart a ha)
(cuspChart_smooth a ha) (cuspChart_mdifferentiable a ha)
end ThreeManifold.CompactMetric
end
section
open Matrix
open Set Filter Topology Bundle Manifold IsManifold Bornology
open scoped ContDiff UpperHalfPlane MatrixGroups RealInnerProductSpace
namespace ThreeManifold.MetricConstruction
open HyperbolicCore QuotientConstruction
lemma halfPlane_coe_smooth : ContMDiff π(β,β) π(β,β) β ((β) : β β β) := by
intro z
have h := UpperHalfPlane.contMDiff_coe (n := β) z
rw [contMDiffAt_iff] at h β’
exact β¨h.1,h.2.restrict_scalars ββ©
lemma halfPlane_coe_deriv (z : β) :
mfderiv π(β,β) π(β,β) ((β) : β β β) z = ContinuousLinearMap.id β β := by
exact mfderiv_extChartAt_self (I := π(β,β)) (x := z)
lemma halfPlane_im_smooth : ContMDiff π(β,β) π(β,β) β (fun z : β => z.im) :=
Complex.imCLM.contDiff.comp_contMDiff halfPlane_coe_smooth
def halfPlaneFlat : Metric (E := β) β :=
pullback (euclidean (V := β)) halfPlane_coe_smooth
(fun _ => ContinuousLinearEquiv.refl β β) (fun z => (halfPlane_coe_deriv z).symm)
def hyperbolic : Metric (E := β) β :=
scaleSq halfPlaneFlat (fun z : β => z.imβ»ΒΉ)
(halfPlane_im_smooth.invβ (fun z => ne_of_gt z.im_pos))
(fun z => inv_ne_zero (ne_of_gt z.im_pos))
lemma hyperbolic_inner (z : β) (u v : TangentSpace π(β,β) z) :
hyperbolic.inner z u v = z.imβ»ΒΉ ^ 2 * @inner β β _ u v := by
change z.imβ»ΒΉ ^ 2 * @inner β β _ (mfderiv π(β,β) π(β,β) ((β) : β β β) z u)
(mfderiv π(β,β) π(β,β) ((β) : β β β) z v) = _
rw [halfPlane_coe_deriv]
rfl
lemma halfPlane_action_deriv (g : SL(2,β€)) (z : β) :
mfderiv π(β,β) π(β,β) (fun w : β => g β’ w) z =
UpperHalfPlane.smulFDeriv (SpecialLinearGroup.mapGL β g) z := by
apply HasMFDerivAt.mfderiv
constructor
Β· exact (action_smooth g).continuous.continuousAt
Β· have hd := (UpperHalfPlane.hasStrictFDerivAt_smul (SpecialLinearGroup.mapGL β g) z).hasFDerivAt
apply HasFDerivAt.hasFDerivWithinAt
apply hd.congr_of_eventuallyEq
filter_upwards [(chartAt β z).open_target.mem_nhds (mem_chart_target β z)] with y hy
have hy' : ((chartAt β z).symm y : β) = y := (chartAt β z).right_inv hy
have ho : UpperHalfPlane.ofComplex y = (chartAt β z).symm y := by
exact (congrArg UpperHalfPlane.ofComplex hy'.symm).trans (UpperHalfPlane.ofComplex_apply _)
rw [ho]
rfl
lemma halfPlane_action_deriv_apply (g : SL(2,β€)) (z : β) (u : β) :
mfderiv π(β,β) π(β,β) (fun w : β => g β’ w) z u =
u / (UpperHalfPlane.denom (SpecialLinearGroup.mapGL β g) z) ^ 2 := by
rw [halfPlane_action_deriv]
have hd : (SpecialLinearGroup.mapGL β g).det.val = 1 := mapGL_det g
simp only [UpperHalfPlane.smulFDeriv,UpperHalfPlane.Ο,hd,zero_lt_one,ite_eq_left]
change u * ((1 : β) / UpperHalfPlane.denom (SpecialLinearGroup.mapGL β g) z ^ 2) = _
simp [div_eq_mul_inv]
lemma hyperbolic_action_quadratic (g : SL(2,β€)) (z : β) (u : TangentSpace π(β,β) z) :
pullInner hyperbolic (fun w : β => g β’ w) z u u = hyperbolic.inner z u u := by
let D : β := UpperHalfPlane.denom (SpecialLinearGroup.mapGL β g) z
let u' : β := u
have hi : (g β’ z).im = z.im / βDβ ^ 2 := by
change (SpecialLinearGroup.mapGL β g β’ z).im = _
rw [UpperHalfPlane.im_smul_eq_div_normSq]
simp [Complex.normSq_eq_norm_sq,D]
have hs : (g β’ z).imβ»ΒΉ ^ 2 * inner β (u' / D ^ 2) (u' / D ^ 2) =
z.imβ»ΒΉ ^ 2 * inner β u' u' := by
rw [real_inner_self_eq_norm_sq,real_inner_self_eq_norm_sq,hi,norm_div,norm_pow]
have hn : βDβ β 0 := norm_ne_zero_iff.mpr (UpperHalfPlane.denom_ne_zero _ z)
field_simp
rw [pullInner_apply]
calc
_ = (g β’ z).imβ»ΒΉ ^ 2 * inner β (u' / D ^ 2) (u' / D ^ 2) :=
(hyperbolic_inner _ _ _).trans
(congrArg (fun w : β => (g β’ z).imβ»ΒΉ ^ 2 * inner β w w)
(halfPlane_action_deriv_apply g z u'))
_ = z.imβ»ΒΉ ^ 2 * inner β u' u' := hs
_ = hyperbolic.inner z u u := (hyperbolic_inner z u u).symm
lemma hyperbolic_action_invariant (g : SL(2,β€)) (z : β) :
pullInner hyperbolic (fun w : β => g β’ w) z = hyperbolic.inner z := by
ext u v
have h := hyperbolic_action_quadratic g z (u+v)
have hu := hyperbolic_action_quadratic g z u
have hv := hyperbolic_action_quadratic g z v
have hs : β u v : TangentSpace π(β,β) z, pullInner hyperbolic (fun w : β => g β’ w) z u v =
pullInner hyperbolic (fun w : β => g β’ w) z v u := by
intro u v
exact hyperbolic.symm _ _ _
simp only [map_add,_root_.add_apply] at h
rw [hs v u,hyperbolic.symm z v u] at h
linarith
lemma hyperbolic_effective_invariant (g : effective) (z : β) :
pullInner hyperbolic (fun w : β => g β’ w) z = hyperbolic.inner z := by
obtain β¨a,rflβ© := effect_surjective g
exact hyperbolic_action_invariant a.val z
def surfaceHyperbolic : Metric (E := β) Surface :=
descend projection_cover projection_smooth effective_smooth
(local_lift_smoothAt projection_cover sectionMap_rightInverse effective_smooth)
hyperbolic hyperbolic_effective_invariant sectionMap_rightInverse
lemma surface_projection_isometry (z : β) :
pullInner surfaceHyperbolic projection z = hyperbolic.inner z :=
descend_projection projection_cover projection_smooth effective_smooth
(local_lift_smoothAt projection_cover sectionMap_rightInverse effective_smooth)
hyperbolic hyperbolic_effective_invariant sectionMap_rightInverse z
end ThreeManifold.MetricConstruction
end
section
open Set Filter Topology Bundle Manifold IsManifold Bornology
open scoped ContDiff
namespace ThreeManifold.MetricConstruction
variable {E F V M N X : Type*}
[NormedAddCommGroup E] [NormedSpace β E]
[NormedAddCommGroup F] [NormedSpace β F]
[NormedAddCommGroup V] [NormedSpace β V]
[TopologicalSpace M] [ChartedSpace E M] [IsManifold π(β,E) β M]
[TopologicalSpace N] [ChartedSpace F N] [IsManifold π(β,F) β N]
[TopologicalSpace X] [ChartedSpace V X] [IsManifold π(β,V) β X]
lemma product_apply (g : Metric (E := E) M) (h : Metric (E := F) N) (x : M Γ N)
(u v : TangentSpace π(β,E Γ F) x) :
(product g h).inner x u v = g.inner x.1 u.1 v.1 + h.inner x.2 u.2 v.2 :=
productInner_apply g h x u v
omit [IsManifold π(β,V) β X] in
lemma pull_product {f : X β M} {k : X β N} {x : X}
(hf : MDifferentiableAt π(β,V) π(β,E) f x)
(hk : MDifferentiableAt π(β,V) π(β,F) k x)
(g : Metric (E := E) M) (h : Metric (E := F) N) :
pullInner (E := V) (product g h) (fun y => (f y,k y)) x = pullInner (E := V) g f x + pullInner (E := V) h k x := by
ext u v
rw [pullInner_apply,product_apply]
have hd : mfderiv π(β,V) π(β,E Γ F) (fun y => (f y,k y)) x =
(mfderiv π(β,V) π(β,E) f x).prod (mfderiv π(β,V) π(β,F) k x) := by
convert! mfderiv_prodMk hf hk using 1
rw [hd]
rfl
omit [IsManifold π(β,V) β X] in
lemma pull_scaleSq (g : Metric (E := E) M) (r : M β β)
(hr : ContMDiff π(β,E) π(β,β) β r) (hp : β x, r x β 0)
(f : X β M) (x : X) (u v : TangentSpace π(β,V) x) :
pullInner (scaleSq g r hr hp) f x u v = r (f x)^2 * pullInner (E := V) g f x u v := rfl
end ThreeManifold.MetricConstruction
end
section
open Set Filter Topology Bundle Manifold IsManifold Bornology
open scoped ContDiff UpperHalfPlane RealInnerProductSpace
namespace ThreeManifold.CompactMetric
open MetricConstruction
abbrev UniversalPiece := β Γ β
def sourceProjection : UniversalPiece β WholePiece :=
Prod.map HyperbolicCore.projection ((β) : β β AddCircle (6:β))
lemma sourceProjection_smooth : ContMDiff π(β,EP) π(β,EP) β sourceProjection := by
convert! HyperbolicCore.projection_smooth.prodMap (CircleConstruction.projection_smooth 6) using 1
all_goals simp only [EP, β modelWithCornersSelf_prod]
lemma sourceProjection_deriv (x : UniversalPiece) :
mfderiv π(β,EP) π(β,EP) sourceProjection x =
(mfderiv π(β,β) π(β,β) HyperbolicCore.projection x.1).prodMap
(mfderiv π(β,β) π(β,β) ((β) : β β AddCircle (6:β)) x.2) := by
convert! mfderiv_prodMap ((HyperbolicCore.projection_smooth x.1).mdifferentiableAt (by simp))
((CircleConstruction.projection_smooth 6 x.2).mdifferentiableAt (by simp)) using 1
lemma sourceProjection_deriv_surjective (x : UniversalPiece) :
Function.Surjective (mfderiv π(β,EP) π(β,EP) sourceProjection x) := by
let ds := coveringDerivative HyperbolicCore.projection_cover HyperbolicCore.projection_smooth
(QuotientConstruction.local_lift_smoothAt HyperbolicCore.projection_cover
HyperbolicCore.sectionMap_rightInverse HyperbolicCore.effective_smooth) x.1
let dc := coveringDerivative (CircleConstruction.projection_cover 6) (CircleConstruction.projection_smooth 6)
(fun a _ h => QuotientConstruction.local_lift_smoothAt (CircleConstruction.projection_cover 6)
(CircleConstruction.section_spec 6) (CircleConstruction.action_smooth 6) a h) x.2
have hs : ds.toContinuousLinearMap = mfderiv π(β,β) π(β,β) HyperbolicCore.projection x.1 :=
coveringDerivative_eq _ _ _ _
have hc : dc.toContinuousLinearMap = mfderiv π(β,β) π(β,β) ((β) : β β AddCircle (6:β)) x.2 :=
coveringDerivative_eq _ _ _ _
rw [sourceProjection_deriv,β hs,β hc]
exact ds.surjective.prodMap dc.surjective
def coreMetric (c : β) (hc : c β 0) : Metric (E := EP) WholePiece :=
product surfaceHyperbolic (scaleSq (circle 6) (fun _ => c) contMDiff_const (fun _ => hc))
lemma coreMetric_apply (c : β) (hc : c β 0) (q : WholePiece)
(u v : EP) :
(coreMetric c hc).inner q u v = surfaceHyperbolic.inner q.1 u.1 v.1 +
c^2*(circle 6).inner q.2 u.2 v.2 :=
productInner_apply surfaceHyperbolic _ q u v
lemma coreMetric_projection (c : β) (hc : c β 0) (x : UniversalPiece)
(u v : EP) :
pullInner (E := EP) (coreMetric c hc) sourceProjection x u v =
x.1.imβ»ΒΉ^2 * inner β u.1 v.1 + c^2*u.2*v.2 := by
have hs := congrArg (fun B : β βL[β] β βL[β] β => B u.1 v.1)
(surface_projection_isometry x.1)
have ht := congrArg (fun B : β βL[β] β βL[β] β => B u.2 v.2)
(circle_projection 6 x.2)
let ds := mfderiv π(β,β) π(β,β) HyperbolicCore.projection x.1
let dc := mfderiv π(β,β) π(β,β) ((β) : β β AddCircle (6:β)) x.2
have hdu : mfderiv π(β,EP) π(β,EP) sourceProjection x u = (ds u.1,dc u.2) :=
congrArg (fun D : EP βL[β] EP => D u) (sourceProjection_deriv x)
have hdv : mfderiv π(β,EP) π(β,EP) sourceProjection x v = (ds v.1,dc v.2) :=
congrArg (fun D : EP βL[β] EP => D v) (sourceProjection_deriv x)
calc
_ = (coreMetric c hc).inner (sourceProjection x) (ds u.1,dc u.2) (ds v.1,dc v.2) :=
congrArgβ (fun a b : EP => (coreMetric c hc).inner (sourceProjection x) a b) hdu hdv
_ = surfaceHyperbolic.inner (HyperbolicCore.projection x.1) (ds u.1) (ds v.1) +
c^2*(circle 6).inner (x.2 : AddCircle (6:β)) (dc u.2) (dc v.2) :=
coreMetric_apply c hc _ _ _
_ = hyperbolic.inner x.1 u.1 v.1 + c^2*(u.2*v.2) :=
congrArgβ (fun a b : β => a+c^2*b) hs (ht.trans (by
change inner β u.2 v.2 = u.2*v.2
simp [mul_comm]))
_ = x.1.imβ»ΒΉ^2 * inner β u.1 v.1 + c^2*(u.2*v.2) :=
congrArg (fun a : β => a+c^2*(u.2*v.2)) (hyperbolic_inner x.1 u.1 v.1)
_ = x.1.imβ»ΒΉ^2 * inner β u.1 v.1 + c^2*u.2*v.2 := by ring
end ThreeManifold.CompactMetric
end
section
open Set Filter Topology Bundle Manifold IsManifold Bornology
open scoped ContDiff
namespace ThreeManifold.MetricConstruction
variable {E F H M N Q : Type*}
[NormedAddCommGroup E] [NormedSpace β E]
[NormedAddCommGroup F] [NormedSpace β F]
[NormedAddCommGroup H] [NormedSpace β H]
[TopologicalSpace M] [ChartedSpace E M]
[TopologicalSpace N] [ChartedSpace F N]
[TopologicalSpace Q] [ChartedSpace H Q] [IsManifold π(β,H) β Q]
variable {G : Type*} [Group G] [MulAction G M]
[IsManifold π(β,E) β M]
{X : Type*} [TopologicalSpace X] [ChartedSpace E X] [IsManifold π(β,E) β X]
{p : M β X} (hp : IsQuotientCoveringMap p G)
(hps : ContMDiff π(β,E) π(β,E) β p)
(hls : β (b : M) {q : X}, q β (hp.isCoveringMap.isLocalHomeomorph.localInverseAt b).source β
ContMDiffAt π(β,E) π(β,E) β (hp.isCoveringMap.isLocalHomeomorph.localInverseAt b) q)
{f : X β X} {lift : M β M}
(hf : ContMDiff π(β,E) π(β,E) β f)
(hl : ContMDiff π(β,E) π(β,E) β lift)
(comm : f β p = p β lift)
(dl : M β E βL[β] E)
(hdl : β x, (dl x).toContinuousLinearMap = mfderiv π(β,E) π(β,E) lift x)
{Ο : X β M} (hΟ : Function.RightInverse Ο p)
lemma pullbackFromLift_projection (g : Metric (E := E) X) (x : M) :
pullInner (E := E) (pullbackFromLift hp hps hls hf hl comm dl hdl hΟ g) p x =
pullBilin (E := E) (F := E) (pullInner g p (lift x))
(mfderiv π(β,E) π(β,E) lift x) := by
let _ : IsManifold π(β, E) β M := inferInstance
change pullBilin (E := E) (F := E) (pullInner g f (p x))
(mfderiv π(β,E) π(β,E) p x) = _
rw [β pull_composition g ((hps x).mdifferentiableAt (by simp))
((hf _).mdifferentiableAt (by simp)), comm]
exact pull_composition g ((hl x).mdifferentiableAt (by simp))
((hps _).mdifferentiableAt (by simp))
end ThreeManifold.MetricConstruction
end
section
open Set Filter Topology Bundle Manifold IsManifold Bornology
open scoped ContDiff UpperHalfPlane
namespace ThreeManifold.CompactMetric
open MetricConstruction CylinderConstruction
def heightToCylinder (a : β) (ha : 0 < a) : HeightCylinder a β Cylinder :=
Subtype.val β logCylinderHomeomorph a ha
lemma heightToCylinder_smooth (a : β) (ha : 0 < a) :
ContMDiff π(β,P) π(β,P) β (heightToCylinder a ha) :=
(contMDiff_subtype_val (U := logDomain a)).comp (logCylinder_smooth a ha)
lemma heightMetric_inner (g : Metric (E := P) Cylinder) (a : β) (ha : 0 < a) (q : HeightCylinder a) :
(heightMetric g a ha).inner q = pullInner (E := P) g (heightToCylinder a ha) q := by
change pullBilin (E := P) (F := P)
(pullInner g (Subtype.val : logDomain a β Cylinder) ((logCylinderHomeomorph a ha) q))
(mfderiv π(β,P) π(β,P) (logCylinderHomeomorph a ha) q) = _
exact (pull_composition g ((logCylinder_smooth a ha q).mdifferentiableAt (by simp))
((contMDiff_subtype_val (U := logDomain a) (n := β) _).mdifferentiableAt (by simp))).symm
def logCuspMap (a : β) (ha : 1 < a) : WholePiece β Cylinder :=
heightToCylinder a (by linarith) β cuspChart a ha
lemma logCuspMap_smoothAt (a : β) (ha : 1 < a) {x : WholePiece} (hx : x β wholeCusp a) :
ContMDiffAt π(β,EP) π(β,P) β (logCuspMap a ha) x := by
have hs : x β (cuspChart a ha).source := by simpa [cuspChart] using hx
exact ((heightToCylinder_smooth a (by linarith)) _).comp x
((cuspChart_smooth a ha x hs).contMDiffAt ((cuspChart a ha).open_source.mem_nhds hs))
lemma cuspMetric_inner (g : Metric (E := P) Cylinder) (a : β) (ha : 1 < a)
{x : WholePiece} (hx : x β wholeCusp a) :
(cuspMetric g a ha).inner x = pullInner (E := EP) g (logCuspMap a ha) x := by
have hs : x β (cuspChart a ha).source := by simpa [cuspChart] using hx
change pullBilin (E := EP) (F := P) ((heightMetric g a (by linarith)).inner (cuspChart a ha x))
(mfderiv π(β,EP) π(β,P) (cuspChart a ha) x) = _
rw [heightMetric_inner]
exact (pull_composition g
(((cuspChart_smooth a ha x hs).contMDiffAt ((cuspChart a ha).open_source.mem_nhds hs)).mdifferentiableAt (by simp))
(((heightToCylinder_smooth a (by linarith)) _).mdifferentiableAt (by simp))).symm
def logarithmicLift (x : UniversalPiece) : P := (Real.log x.1.im,x.1.re,x.2)
lemma logarithmicLift_smooth : ContMDiff π(β,EP) π(β,P) β logarithmicLift := by
have hi : ContMDiff π(β,EP) π(β,β) β (fun x : UniversalPiece => Real.log x.1.im) :=
fun x => (Real.contDiffAt_log.mpr x.1.im_pos.ne').contMDiffAt.comp x
((halfPlane_im_smooth.comp projection_fst_smooth) x)
have hr : ContMDiff π(β,EP) π(β,β) β (fun x : UniversalPiece => x.1.re) :=
HyperbolicCore.upperHalfPlane_re_smooth.comp projection_fst_smooth
exact hi.prodMk_space (hr.prodMk_space projection_snd_smooth)
lemma logCusp_projection_apply (a : β) (ha : 1 < a) (x : UniversalPiece) (hx : a < x.1.im) :
logCuspMap a ha (sourceProjection x) = projection (logarithmicLift x) := by
have hul : sourceProjection x β wholeCusp a := β¨x.1,hx,rflβ©
have hsub : ((wholeCusp a).openPartialHomeomorphSubtypeCoe (wholeCusp_nonempty a ha)).symm
(sourceProjection x) = β¨sourceProjection x,hulβ© :=
((wholeCusp a).openPartialHomeomorphSubtypeCoe (wholeCusp_nonempty a ha)).left_inv (x := β¨sourceProjection x,hulβ©) (by simp)
have hc := HyperbolicCore.cuspCoordinates_apply a ha x.1 hx
change ((heightToCylinder a (by linarith)) ((wholeCoordinates a ha)
(((wholeCusp a).openPartialHomeomorphSubtypeCoe (wholeCusp_nonempty a ha)).symm (sourceProjection x)))) = _
rw [hsub]
change (Real.log ((HyperbolicCore.cuspCoordinates a ha β¨HyperbolicCore.projection x.1,_β©).1 : β),
(HyperbolicCore.cuspCoordinates a ha β¨HyperbolicCore.projection x.1,_β©).2,(x.2 : AddCircle (6:β))) = _
rw [hc]
rfl
lemma logCusp_projection_germ (a : β) (ha : 1 < a) {x : UniversalPiece} (hx : a < x.1.im) :
(logCuspMap a ha β sourceProjection) =αΆ [nhds x] (projection β logarithmicLift) := by
have hh : βαΆ y : UniversalPiece in nhds x, a < y.1.im :=
(UpperHalfPlane.continuous_im.comp continuous_fst).continuousAt (isOpen_Ioi.mem_nhds hx)
filter_upwards [hh] with y hy
exact logCusp_projection_apply a ha y hy
lemma cuspMetric_projection (g : Metric (E := P) Cylinder) (a : β) (ha : 1 < a)
{x : UniversalPiece} (hx : a < x.1.im) :
pullBilin (E := EP) (F := EP) ((cuspMetric g a ha).inner (sourceProjection x))
(mfderiv π(β,EP) π(β,EP) sourceProjection x) =
pullBilin (E := EP) (F := P) (pullInner g projection (logarithmicLift x))
(mfderiv π(β,EP) π(β,P) logarithmicLift x) := by
rw [cuspMetric_inner g a ha (show sourceProjection x β wholeCusp a from β¨x.1,hx,rflβ©)]
rw [β pull_composition g ((sourceProjection_smooth x).mdifferentiableAt (by simp))
((logCuspMap_smoothAt a ha β¨x.1,hx,rflβ©).mdifferentiableAt (by simp))]
rw [pullInner_congr g (logCusp_projection_germ a ha hx)]
exact pull_composition g ((logarithmicLift_smooth x).mdifferentiableAt (by simp))
((projection_smooth _).mdifferentiableAt (by simp))
end ThreeManifold.CompactMetric
end
section
open Set Filter Topology Bundle Manifold IsManifold Bornology
open scoped ContDiff UpperHalfPlane RealInnerProductSpace
namespace ThreeManifold.CompactMetric
open MetricConstruction CylinderConstruction
def universalCoordinates (x : UniversalPiece) : EP := (x.1,x.2)
lemma universalCoordinates_smooth : ContMDiff π(β,EP) π(β,EP) β universalCoordinates := by
exact (halfPlane_coe_smooth.comp projection_fst_smooth).prodMk_space projection_snd_smooth
lemma universalCoordinates_deriv (x : UniversalPiece) :
mfderiv π(β,EP) π(β,EP) universalCoordinates x = ContinuousLinearMap.id β EP := by
change mfderiv π(β,EP) π(β,EP) (extChartAt π(β,EP) x) x = _
exact mfderiv_extChartAt_self
def logLinear (y : β) : EP βL[β] P :=
((yβ»ΒΉ β’ Complex.imCLM).comp (ContinuousLinearMap.fst β β β)).prod
((Complex.reCLM.comp (ContinuousLinearMap.fst β β β)).prod
(ContinuousLinearMap.snd β β β))
lemma logLinear_apply (y : β) (u : EP) : logLinear y u = (yβ»ΒΉ*u.1.im,u.1.re,u.2) := rfl
def logNormed (x : EP) : P := (Real.log x.1.im, x.1.re, x.2)
lemma logNormed_deriv {x : EP} (hx : x.1.im β 0) :
HasFDerivAt logNormed (logLinear x.1.im) x := by
have hi : HasFDerivAt (fun x : EP => x.1.im)
(Complex.imCLM.comp (ContinuousLinearMap.fst β β β)) x :=
Complex.imCLM.hasFDerivAt.comp x (ContinuousLinearMap.fst β β β).hasFDerivAt
have hl := (Real.hasDerivAt_log hx).comp_hasFDerivAt x hi
have hr := Complex.reCLM.hasFDerivAt.comp x (ContinuousLinearMap.fst β β β).hasFDerivAt
convert! hl.prodMk (hr.prodMk (ContinuousLinearMap.snd β β β).hasFDerivAt) using 1
lemma logarithmicLift_deriv (x : UniversalPiece) :
mfderiv π(β,EP) π(β,P) logarithmicLift x = logLinear x.1.im := by
have he : logarithmicLift = logNormed β universalCoordinates := rfl
rw [he,mfderiv_comp x
((logNormed_deriv (x := universalCoordinates x) x.1.im_pos.ne').differentiableAt.mdifferentiableAt)
((universalCoordinates_smooth x).mdifferentiableAt (by simp)),universalCoordinates_deriv]
rw [mfderiv_eq_fderiv]
change (fderiv β logNormed (universalCoordinates x)).comp (ContinuousLinearMap.id β EP) = logLinear x.1.im
rw [(logNormed_deriv (x := universalCoordinates x) x.1.im_pos.ne').fderiv]
rfl
end ThreeManifold.CompactMetric
end
section
open Set Filter Topology
namespace ThreeManifold.CompactMetric
open CylinderConstruction
def period (Ξ΄ : β) : β := 6 / (Real.exp 4 * Collar.ell Ξ΄ (-1))
def leftLength (Ξ΄ : β) : β := 4-2*Real.log Ξ΄
def leftCircleScale (Ξ΄ : β) : β := period Ξ΄/6 * Collar.ell Ξ΄ 1
def rightCircleScale (Ξ΄ : β) : β := Ξ΄^2*period Ξ΄/6 * Collar.ell Ξ΄ 1
lemma period_pos (Ξ΄ : β) : 0 < period Ξ΄ :=
div_pos (by norm_num) (mul_pos (Real.exp_pos _) (Collar.ell_pos _ _))
lemma leftCircleScale_pos (Ξ΄ : β) : 0 < leftCircleScale Ξ΄ :=
mul_pos (div_pos (period_pos Ξ΄) (by norm_num)) (Collar.ell_pos _ _)
lemma rightCircleScale_pos {Ξ΄ : β} (hΞ΄ : 0 < Ξ΄) : 0 < rightCircleScale Ξ΄ :=
mul_pos (div_pos (mul_pos (sq_pos_of_pos hΞ΄) (period_pos Ξ΄)) (by norm_num)) (Collar.ell_pos _ _)
lemma leftLength_ge {Ξ΄ : β} (hΞ΄ : Ξ΄ β Ioc 0 (1/2)) : 4 β€ leftLength Ξ΄ := by
have hl : Real.log Ξ΄ β€ 0 := Real.log_nonpos hΞ΄.1.le (by linarith [hΞ΄.2])
unfold leftLength
linarith
lemma exp_leftLength {Ξ΄ : β} (hΞ΄ : 0 < Ξ΄) : Real.exp (leftLength Ξ΄) = Real.exp 4 / Ξ΄^2 := by
rw [leftLength,Real.exp_sub]
congr 1
rw [show 2*Real.log Ξ΄ = Real.log (Ξ΄^2) by rw [Real.log_pow]; norm_num, Real.exp_log (sq_pos_of_pos hΞ΄)]
lemma ell_plateau {Ξ΄ t : β} (hΞ΄ : Ξ΄ β Icc 0 (1/2)) (ht : 2/3 β€ t) :
Collar.ell Ξ΄ t = Collar.ell Ξ΄ 1 := by
rw [Collar.ell_end_germ hΞ΄ (by linarith),Collar.ell_end_germ hΞ΄ (by norm_num)]
rw [Cometric.A_plateau ht (by norm_num : (2/3:β) β€ 1)]
lemma radiusβ_left_exact {Ξ΄ r : β} (hΞ΄ : Ξ΄ β Ioc 0 (1/2)) (hr : r β€ 1/4) :
radiusβ Ξ΄ (period Ξ΄) (RadialProfile.coordinate (leftLength Ξ΄) r) = Real.exp (-r) := by
have hL := leftLength_ge hΞ΄
rw [RadialProfile.coordinate_left hr]
unfold radiusβ
rw [Collar.ell_cusp_germ β¨hΞ΄.1.le,hΞ΄.2β© (by linarith)]
rw [show -(r-leftLength Ξ΄-1+1) = leftLength Ξ΄-r by ring,Real.exp_sub,exp_leftLength hΞ΄.1]
unfold period
rw [Real.exp_neg]
field_simp [hΞ΄.1.ne',(Real.exp_pos 4).ne',(Collar.ell_pos Ξ΄ (-1)).ne']
lemma radiusβ_left_exact {Ξ΄ r : β} (hΞ΄ : Ξ΄ β Ioc 0 (1/2)) (hr : r β€ 1/4) :
radiusβ Ξ΄ (period Ξ΄) (RadialProfile.coordinate (leftLength Ξ΄) r) = leftCircleScale Ξ΄ := by
rw [RadialProfile.coordinate_left hr]
unfold radiusβ leftCircleScale
rw [ell_plateau β¨hΞ΄.1.le,hΞ΄.2β© (by linarith [leftLength_ge hΞ΄])]
lemma radiusβ_right_exact {Ξ΄ r : β} (hΞ΄ : Ξ΄ β Ioc 0 (1/2)) (hr : r β€ 1/4) :
radiusβ Ξ΄ (period Ξ΄) (1-RadialProfile.coordinate 4 r) = Real.exp (-r) := by
rw [RadialProfile.coordinate_left hr]
unfold radiusβ
rw [show 1-(1-(r-4-1)) = r-4-1 by ring,
Collar.ell_cusp_germ β¨hΞ΄.1.le,hΞ΄.2β© (by linarith)]
rw [show -(r-4-1+1) = (4:β)-r by ring,Real.exp_sub]
unfold period
rw [Real.exp_neg]
field_simp [(Real.exp_pos 4).ne',(Collar.ell_pos Ξ΄ (-1)).ne']
lemma radiusβ_right_exact {Ξ΄ r : β} (hΞ΄ : Ξ΄ β Ioc 0 (1/2)) (hr : r β€ 1/4) :
radiusβ Ξ΄ (period Ξ΄) (1-RadialProfile.coordinate 4 r) = rightCircleScale Ξ΄ := by
rw [RadialProfile.coordinate_left hr]
unfold radiusβ rightCircleScale
rw [ell_plateau β¨hΞ΄.1.le,hΞ΄.2β© (by linarith)]
lemma slope_left_exact {L r : β} (hr : r < 1/4) : RadialProfile.slope L r = 1 := by
have he : RadialProfile.coordinate L =αΆ [nhds r] fun t => t-L-1 := by
filter_upwards [Iio_mem_nhds hr] with t ht
exact RadialProfile.coordinate_left ht.le
exact (RadialProfile.coordinate_deriv L r).deriv.symm.trans
(he.deriv_eq.trans (((hasDerivAt_id r).sub_const L).sub_const 1).deriv)
end ThreeManifold.CompactMetric
end
section
open Set Filter Topology Bundle Manifold IsManifold Bornology
open scoped ContDiff
namespace ThreeManifold.CompactMetric
open MetricConstruction CylinderConstruction
lemma neck_projection_apply {Ξ΄ B : β} (hΞ΄ : Ξ΄ β Ioc 0 (1/2)) (hB : 0 < B)
(x : P) (u v : P) :
pullInner (E := P) (neck hΞ΄ hB) projection x u v =
u.1*v.1 + radiusβ Ξ΄ B x.1 ^2 * (u.2.1-Cometric.Ο x.1*u.2.2)*
(v.2.1-Cometric.Ο x.1*v.2.2) + radiusβ Ξ΄ B x.1 ^2*u.2.2*v.2.2 := by
rw [show pullInner (E := P) (neck hΞ΄ hB) projection x =
(lifted (radiusβ_smooth β¨hΞ΄.1.le,hΞ΄.2β© B) (radiusβ_smooth β¨hΞ΄.1.le,hΞ΄.2β© B) Cometric.Ο_smooth
(fun t => (radiusβ_pos hΞ΄.1 hB t).ne') (fun t => (radiusβ_pos hB t).ne')).inner x from
metric_projection _ _ _ _ _ x]
exact lifted_apply _ _ _ _ _ x u v
lemma radialPull_projection (g : Metric (E := P) Cylinder) {L : β} (hL : 4 β€ L)
(x : P) (u v : P) :
pullInner (E := P) (radialPull g hL) projection x u v =
pullInner (E := P) g projection (radialLift L x)
(RadialProfile.slope L x.1*u.1,u.2) (RadialProfile.slope L x.1*v.1,v.2) := by
have hh := pullbackFromLift_projection projection_cover projection_smooth local_inverse_smooth
(radial_smooth L) (radialLift_smooth L) (radial_commutes L)
(fun x => radialLinear (RadialProfile.slope L x.1) (RadialProfile.slope_pos hL x.1).ne')
(radialLift_deriv hL) section_spec g x
change pullInner (E := P) (radialPull g hL) projection x = _ at hh
rw [hh,β radialLift_deriv hL x]
rfl
def switchLift (x : P) : P := (1-x.1, x.2.1+x.2.2,x.2.1)
def switchLinear : P βL[β] P :=
{ toFun := fun v => (-v.1, v.2.1+v.2.2,v.2.1)
invFun := fun v => (-v.1, v.2.2,v.2.1-v.2.2)
left_inv := by intro v; ext <;> simp
right_inv := by intro v; ext <;> simp
map_add' := by intro v w; ext <;> dsimp <;> ring
map_smul' := by intro a v; ext <;> dsimp <;> ring }
lemma switchLift_eq (x : P) : switchLift x = switchLinear x + (1,0,0) := by
ext <;> simp [switchLift,switchLinear,sub_eq_add_neg,add_comm]
lemma switchLift_smooth : ContMDiff π(β,P) π(β,P) β switchLift := by
have he : switchLift = fun x => switchLinear x + (1,0,0) := funext switchLift_eq
rw [he]
exact switchLinear.contDiff.contMDiff.add contMDiff_const
lemma switchLift_deriv (x : P) :
mfderiv π(β,P) π(β,P) switchLift x = switchLinear.toContinuousLinearMap := by
rw [mfderiv_eq_fderiv]
change fderiv β switchLift x = switchLinear.toContinuousLinearMap
have he : switchLift = fun x => switchLinear x + (1,0,0) := funext switchLift_eq
rw [he]
exact (switchLinear.hasFDerivAt.add_const (1,0,0)).fderiv
lemma switch_commutes : switch β projection = projection β switchLift := by
funext x
apply Prod.ext
Β· rfl
Β· apply Prod.ext
Β· exact (AddCircle.coe_add (6:β) x.2.1 x.2.2).symm
Β· rfl
lemma switched_projection (g : Metric (E := P) Cylinder) (x : P) :
pullInner (E := P) (switched g) projection x =
pullBilin (E := P) (F := P) (pullInner g projection (switchLift x)) switchLinear.toContinuousLinearMap := by
change pullBilin (E := P) (F := P) (pullInner g switch (projection x))
(mfderiv π(β,P) π(β,P) projection x) = _
rw [β pull_composition g ((projection_smooth x).mdifferentiableAt (by simp))
((switch_smooth _).mdifferentiableAt (by simp)),switch_commutes]
rw [pull_composition g ((switchLift_smooth x).mdifferentiableAt (by simp))
((projection_smooth _).mdifferentiableAt (by simp)),switchLift_deriv]
def leftCylinder {Ξ΄ : β} (hΞ΄ : Ξ΄ β Ioc 0 (1/2)) : Metric (E := P) Cylinder :=
radialPull (neck hΞ΄ (period_pos Ξ΄)) (leftLength_ge hΞ΄)
def rightCylinder {Ξ΄ : β} (hΞ΄ : Ξ΄ β Ioc 0 (1/2)) : Metric (E := P) Cylinder :=
radialPull (switched (neck hΞ΄ (period_pos Ξ΄))) (L := 4) le_rfl
lemma leftCylinder_low {Ξ΄ : β} (hΞ΄ : Ξ΄ β Ioc 0 (1/2)) (x : P) (hx : x.1 < 1/4)
(u v : P) :
pullInner (E := P) (leftCylinder hΞ΄) projection x u v =
u.1*v.1 + Real.exp (-x.1)^2*u.2.1*v.2.1 + leftCircleScale Ξ΄^2*u.2.2*v.2.2 := by
change pullInner (E := P) (radialPull _ (leftLength_ge hΞ΄)) projection x u v = _
have he := radialPull_projection (neck hΞ΄ (period_pos Ξ΄)) (leftLength_ge hΞ΄) x u v
have hn := neck_projection_apply hΞ΄ (period_pos Ξ΄) (radialLift (leftLength Ξ΄) x)
(RadialProfile.slope (leftLength Ξ΄) x.1*u.1,u.2) (RadialProfile.slope (leftLength Ξ΄) x.1*v.1,v.2)
apply Eq.trans (he.trans hn)
change (RadialProfile.slope (leftLength Ξ΄) x.1*u.1)*(RadialProfile.slope (leftLength Ξ΄) x.1*v.1) +
radiusβ Ξ΄ (period Ξ΄) (RadialProfile.coordinate (leftLength Ξ΄) x.1)^2 *
(u.2.1-Cometric.Ο (RadialProfile.coordinate (leftLength Ξ΄) x.1)*u.2.2)*
(v.2.1-Cometric.Ο (RadialProfile.coordinate (leftLength Ξ΄) x.1)*v.2.2) +
radiusβ Ξ΄ (period Ξ΄) (RadialProfile.coordinate (leftLength Ξ΄) x.1)^2*u.2.2*v.2.2 = _
rw [slope_left_exact hx,radiusβ_left_exact hΞ΄ hx.le,radiusβ_left_exact hΞ΄ hx.le]
have hz : Cometric.Ο (RadialProfile.coordinate (leftLength Ξ΄) x.1) = 0 := by
rw [RadialProfile.coordinate_left hx.le]
exact Cometric.Ο_eq_zero (by linarith [leftLength_ge hΞ΄])
simp only [hz,zero_mul,sub_zero,one_mul]
lemma rightCylinder_low {Ξ΄ : β} (hΞ΄ : Ξ΄ β Ioc 0 (1/2)) (x : P) (hx : x.1 < 1/4)
(u v : P) :
pullInner (E := P) (rightCylinder hΞ΄) projection x u v =
u.1*v.1 + Real.exp (-x.1)^2*u.2.1*v.2.1 + rightCircleScale Ξ΄^2*u.2.2*v.2.2 := by
change pullInner (E := P) (radialPull _ (L := 4) le_rfl) projection x u v = _
have he := radialPull_projection (switched (neck hΞ΄ (period_pos Ξ΄))) (L := 4) le_rfl x u v
have hs := congrArg (fun D : P βL[β] P βL[β] β =>
D (RadialProfile.slope 4 x.1*u.1,u.2) (RadialProfile.slope 4 x.1*v.1,v.2))
(switched_projection (neck hΞ΄ (period_pos Ξ΄)) (radialLift 4 x))
have hn := neck_projection_apply hΞ΄ (period_pos Ξ΄) (switchLift (radialLift 4 x))
(switchLinear (RadialProfile.slope 4 x.1*u.1,u.2))
(switchLinear (RadialProfile.slope 4 x.1*v.1,v.2))
apply Eq.trans (he.trans (hs.trans hn))
change (-(RadialProfile.slope 4 x.1*u.1))*(-(RadialProfile.slope 4 x.1*v.1)) +
radiusβ Ξ΄ (period Ξ΄) (1-RadialProfile.coordinate 4 x.1)^2 *
(u.2.1+u.2.2-Cometric.Ο (1-RadialProfile.coordinate 4 x.1)*u.2.1)*
(v.2.1+v.2.2-Cometric.Ο (1-RadialProfile.coordinate 4 x.1)*v.2.1) +
radiusβ Ξ΄ (period Ξ΄) (1-RadialProfile.coordinate 4 x.1)^2*u.2.1*v.2.1 = _
rw [slope_left_exact hx,radiusβ_right_exact hΞ΄ hx.le,radiusβ_right_exact hΞ΄ hx.le]
have ho : Cometric.Ο (1-RadialProfile.coordinate 4 x.1) = 1 := by
rw [RadialProfile.coordinate_left hx.le]
exact Cometric.Ο_eq_one (by linarith)
rw [ho]
ring
end ThreeManifold.CompactMetric
end
section
open Set Filter Topology Bundle Manifold IsManifold Bornology
open scoped ContDiff UpperHalfPlane RealInnerProductSpace
namespace ThreeManifold.CompactMetric
open MetricConstruction CylinderConstruction
variable (g : Metric (E := P) Cylinder) (c : β) (hc : c β 0)
(low : β (x : P), x.1 < 1/4 β β u v : P,
pullInner (E := P) g projection x u v =
u.1*v.1 + Real.exp (-x.1)^2*u.2.1*v.2.1 + c^2*u.2.2*v.2.2)
include low in
lemma cusp_linear_formula (x : UniversalPiece) (hx : Real.log x.1.im < 1/4) (u v : EP) :
pullBilin (E := EP) (F := P) (pullInner g projection (logarithmicLift x))
(logLinear x.1.im) u v =
x.1.imβ»ΒΉ^2 * inner β u.1 v.1 + c^2*u.2*v.2 := by
have he := low (logarithmicLift x) hx (logLinear x.1.im u) (logLinear x.1.im v)
apply he.trans
change (x.1.imβ»ΒΉ*u.1.im)*(x.1.imβ»ΒΉ*v.1.im) + Real.exp (-Real.log x.1.im)^2*u.1.re*v.1.re +
c^2*u.2*v.2 = _
rw [Real.exp_neg,Real.exp_log x.1.im_pos,Complex.inner]
simp only [Complex.mul_re,Complex.conj_re,Complex.conj_im]
ring
include low in
lemma cusp_core_match_projection (a : β) (ha : 1 < a) {x : UniversalPiece}
(hx : a < x.1.im) (hl : Real.log x.1.im < 1/4) :
(cuspMetric g a ha).inner (sourceProjection x) = (coreMetric c hc).inner (sourceProjection x) := by
apply bilin_eq_of_pull_eq (E := EP) (F := EP) x (sourceProjection_deriv_surjective x)
rw [cuspMetric_projection g a ha hx,logarithmicLift_deriv]
apply ContinuousLinearMap.ext
intro u
apply ContinuousLinearMap.ext
intro v
exact (cusp_linear_formula g c low x hl u v).trans (coreMetric_projection c hc x u v).symm
include low in
lemma cusp_core_match (a : β) (ha : 1 < a) {q : WholePiece}
(hq : q β wholeCusp a) (hl : HyperbolicCore.height q.1 < 1/4) :
(cuspMetric g a ha).inner q = (coreMetric c hc).inner q := by
obtain β¨z,hz,hzqβ© := hq
let r := CircleConstruction.sectionMap 6 q.2
have he : sourceProjection (z,r) = q := by
apply Prod.ext
Β· exact hzq
Β· exact CircleConstruction.section_spec 6 q.2
have hlog : Real.log z.im < 1/4 := by
rw [β HyperbolicCore.height_projection_high (ha.trans hz),hzq]
exact hl
exact he βΈ cusp_core_match_projection g c hc low a ha hz hlog
lemma left_cusp_core_match {Ξ΄ : β} (hΞ΄ : Ξ΄ β Ioc 0 (1/2)) (a : β) (ha : 1 < a)
{q : WholePiece} (hq : q β wholeCusp a) (hl : HyperbolicCore.height q.1 < 1/4) :
(cuspMetric (leftCylinder hΞ΄) a ha).inner q =
(coreMetric (leftCircleScale Ξ΄) (leftCircleScale_pos Ξ΄).ne').inner q :=
cusp_core_match _ _ _ (leftCylinder_low hΞ΄) a ha hq hl
lemma right_cusp_core_match {Ξ΄ : β} (hΞ΄ : Ξ΄ β Ioc 0 (1/2)) (a : β) (ha : 1 < a)
{q : WholePiece} (hq : q β wholeCusp a) (hl : HyperbolicCore.height q.1 < 1/4) :
(cuspMetric (rightCylinder hΞ΄) a ha).inner q =
(coreMetric (rightCircleScale Ξ΄) (rightCircleScale_pos hΞ΄.1).ne').inner q :=
cusp_core_match _ _ _ (rightCylinder_low hΞ΄) a ha hq hl
end ThreeManifold.CompactMetric
end
section
open Set Filter Topology Bundle Manifold IsManifold Bornology
open scoped ContDiff UpperHalfPlane
namespace ThreeManifold.CompactMetric
open MetricConstruction CylinderConstruction
def coreRegion : TopologicalSpace.Opens WholePiece :=
β¨{q | HyperbolicCore.height q.1 < 1/4},
isOpen_lt (HyperbolicCore.height_continuous.comp continuous_fst) continuous_constβ©
def cuspLevel : β := Real.exp (1/8)
lemma cuspLevel_gt : 1 < cuspLevel := by
unfold cuspLevel
exact Real.one_lt_exp_iff.mpr (by norm_num)
lemma log_cuspLevel : Real.log cuspLevel = 1/8 := Real.log_exp _
lemma cuspMetric_domain (g : Metric (E := P) Cylinder) (a : β) (ha : 1 < a) :
(cuspMetric g a ha).domain = wholeCusp a := by
ext x
simp [cuspMetric,localPull,cuspChart]
variable (g : Metric (E := P) Cylinder) (c : β) (hc : c β 0)
(low : β (x : P), x.1 < 1/4 β β u v : P,
pullInner (E := P) g projection x u v =
u.1*v.1 + Real.exp (-x.1)^2*u.2.1*v.2.1 + c^2*u.2.2*v.2.2)
def wholeLocals (i : Bool) : LocalMetric (E := EP) WholePiece :=
if i then cuspMetric g cuspLevel cuspLevel_gt else localOn (coreMetric c hc) coreRegion
lemma wholeLocals_cover (x : WholePiece) : β i, x β (wholeLocals g c hc i).domain := by
by_cases hx : x β coreRegion
Β· exact β¨false,hxβ©
Β· refine β¨true,?_β©
change x β (cuspMetric g cuspLevel cuspLevel_gt).domain
rw [cuspMetric_domain]
apply (HyperbolicCore.mem_cusp_iff_height cuspLevel_gt x.1).mpr
rw [log_cuspLevel]
have hh : Β¬HyperbolicCore.height x.1 < 1/4 := hx
linarith
include low in
lemma wholeLocals_compatible (i j : Bool) (x : WholePiece)
(hi : x β (wholeLocals g c hc i).domain) (hj : x β (wholeLocals g c hc j).domain) :
(wholeLocals g c hc i).inner x = (wholeLocals g c hc j).inner x := by
cases i <;> cases j
Β· rfl
Β· change (coreMetric c hc).inner x = (cuspMetric g cuspLevel cuspLevel_gt).inner x
apply (cusp_core_match g c hc low cuspLevel cuspLevel_gt _ hi).symm
change x β (cuspMetric g cuspLevel cuspLevel_gt).domain at hj
rw [cuspMetric_domain] at hj
change x.1 β HyperbolicCore.cusp cuspLevel
exact hj
Β· change (cuspMetric g cuspLevel cuspLevel_gt).inner x = (coreMetric c hc).inner x
apply cusp_core_match g c hc low cuspLevel cuspLevel_gt _ hj
change x β (cuspMetric g cuspLevel cuspLevel_gt).domain at hi
rw [cuspMetric_domain] at hi
change x.1 β HyperbolicCore.cusp cuspLevel
exact hi
Β· rfl
def wholeMetric : Metric (E := EP) WholePiece :=
glueLocal (wholeLocals g c hc) (wholeLocals_cover g c hc) (wholeLocals_compatible g c hc low)
lemma wholeMetric_core {x : WholePiece} (hx : x β coreRegion) :
(wholeMetric g c hc low).inner x = (coreMetric c hc).inner x :=
glueLocal_eq _ _ _ false x hx
lemma wholeMetric_cusp {x : WholePiece} (hx : x β wholeCusp cuspLevel) :
(wholeMetric g c hc low).inner x = (cuspMetric g cuspLevel cuspLevel_gt).inner x := by
apply glueLocal_eq _ _ _ true x
change x β (cuspMetric g cuspLevel cuspLevel_gt).domain
rwa [cuspMetric_domain]
def leftWhole {Ξ΄ : β} (hΞ΄ : Ξ΄ β Ioc 0 (1/2)) : Metric (E := EP) WholePiece :=
wholeMetric (leftCylinder hΞ΄) (leftCircleScale Ξ΄) (leftCircleScale_pos Ξ΄).ne' (leftCylinder_low hΞ΄)
def rightWhole {Ξ΄ : β} (hΞ΄ : Ξ΄ β Ioc 0 (1/2)) : Metric (E := EP) WholePiece :=
wholeMetric (rightCylinder hΞ΄) (rightCircleScale Ξ΄) (rightCircleScale_pos hΞ΄.1).ne' (rightCylinder_low hΞ΄)
end ThreeManifold.CompactMetric
end
section
open Set Filter Topology Bundle Manifold IsManifold Bornology
open scoped ContDiff
namespace ThreeManifold.CompactMetric
section
open MetricConstruction CylinderConstruction GluedConstruction HyperbolicCore
def pieceMap : Piece β WholePiece := fun x => (x.1.1,x.2)
lemma pieceMap_smooth : ContMDiff π(β,EP) π(β,EP) β pieceMap := by
have h := ((contMDiff_subtype_val (U := coreOpens 8) (n := β)).comp
(projection_fst_smooth (E := β) (F := β) (M := OpenCore 8) (N := GluedConstruction.Circle))).prodMk
(projection_snd_smooth (E := β) (F := β) (M := OpenCore 8) (N := GluedConstruction.Circle))
convert! h using 1
simp only [β modelWithCornersSelf_prod]
lemma core8_nonempty : Nonempty (coreOpens 8) := by
exact HyperbolicCore.openCore_nonempty (by norm_num)
def pieceEmbedding : OpenPartialHomeomorph Piece WholePiece :=
((coreOpens 8).openPartialHomeomorphSubtypeCoe core8_nonempty).prod (OpenPartialHomeomorph.refl GluedConstruction.Circle)
lemma pieceEmbedding_smooth_inverse {x : WholePiece} (hx : x β pieceEmbedding.target) :
ContMDiffAt π(β,EP) π(β,EP) β pieceEmbedding.symm x := by
have h1 := (openSubtype_inverse_smooth (coreOpens 8) core8_nonempty (by simpa using hx.1)).comp x
((projection_fst_smooth (E := β) (F := β) (M := Surface) (N := GluedConstruction.Circle)) x)
have h2 := (projection_snd_smooth (E := β) (F := β) (M := Surface) (N := GluedConstruction.Circle)) x
convert! h1.prodMk h2 using 1
simp only [β modelWithCornersSelf_prod]
lemma pieceEmbedding_differentiable : pieceEmbedding.MDifferentiable π(β,EP) π(β,EP) := by
constructor
Β· exact (pieceMap_smooth.mdifferentiable (by simp)).mdifferentiableOn
Β· intro x hx
exact ((pieceEmbedding_smooth_inverse hx).mdifferentiableAt (by simp)).mdifferentiableWithinAt
def pieceMetric (g : Metric (E := EP) WholePiece) : Metric (E := EP) Piece :=
pullback g pieceMap_smooth (fun x => pieceEmbedding_differentiable.mfderiv (by exact β¨mem_univ _,mem_univ _β©))
(fun _ => rfl)
lemma pieceMetric_inner (g : Metric (E := EP) WholePiece) (x : Piece) :
(pieceMetric g).inner x = pullInner g pieceMap x := rfl
def leftPiece {Ξ΄ : β} (hΞ΄ : Ξ΄ β Ioc 0 (1/2)) : Metric (E := EP) Piece := pieceMetric (leftWhole hΞ΄)
def rightPiece {Ξ΄ : β} (hΞ΄ : Ξ΄ β Ioc 0 (1/2)) : Metric (E := EP) Piece := pieceMetric (rightWhole hΞ΄)
end
open MetricConstruction CylinderConstruction
lemma cuspLevel_lt_two : cuspLevel < 2 := by
rw [cuspLevel,β Real.exp_log (by norm_num : (0:β)<2)]
apply Real.exp_lt_exp.mpr
linarith [RadialProfile.log_bounds.1]
lemma cuspMetric_change (g : Metric (E := P) Cylinder) (a b : β) (ha : 1 < a) (hb : 1 < b)
(hab : a β€ b) {q : WholePiece} (hq : q β wholeCusp b) :
(cuspMetric g a ha).inner q = (cuspMetric g b hb).inner q := by
obtain β¨z,hz,hzqβ© := hq
let r := CircleConstruction.sectionMap 6 q.2
have he : sourceProjection (z,r) = q := by
exact Prod.ext hzq (CircleConstruction.section_spec 6 q.2)
have ht : (cuspMetric g a ha).inner (sourceProjection (z,r)) =
(cuspMetric g b hb).inner (sourceProjection (z,r)) := by
apply bilin_eq_of_pull_eq (E := EP) (F := EP) (z,r) (sourceProjection_deriv_surjective (z,r))
rw [cuspMetric_projection g a ha (x := (z,r)) (hab.trans_lt hz),cuspMetric_projection g b hb (x := (z,r)) hz]
exact he βΈ ht
variable (g : Metric (E := P) Cylinder) (c : β) (hc : c β 0)
(low : β (x : P), x.1 < 1/4 β β u v : P,
pullInner (E := P) g projection x u v =
u.1*v.1 + Real.exp (-x.1)^2*u.2.1*v.2.1 + c^2*u.2.2*v.2.2)
lemma wholeMetric_cusp_two {q : WholePiece} (hq : q β wholeCusp 2) :
(wholeMetric g c hc low).inner q = pullInner (E := EP) g (logCuspMap 2 (by norm_num)) q := by
have hqa : q β wholeCusp cuspLevel := by
obtain β¨z,hz,hzqβ© := hq
exact β¨z,cuspLevel_lt_two.trans hz,hzqβ©
rw [wholeMetric_cusp g c hc low hqa,
cuspMetric_change g cuspLevel 2 cuspLevel_gt (by norm_num) cuspLevel_lt_two.le hq,
cuspMetric_inner g 2 (by norm_num) hq]
end ThreeManifold.CompactMetric
end
section
open Set Filter Topology Bundle Manifold IsManifold Bornology
open scoped ContDiff UpperHalfPlane
namespace ThreeManifold.CompactMetric
open MetricConstruction CylinderConstruction GluedConstruction
def collarLog : collar β Cylinder := logCuspMap 2 (by norm_num) β pieceMap β Subtype.val
lemma collarLog_smooth : ContMDiff π(β,EP) π(β,P) β collarLog := by
intro x
exact (logCuspMap_smoothAt 2 (by norm_num) (show pieceMap x.1 β wholeCusp 2 from x.2)).comp x
((pieceMap_smooth x.1).comp x ((contMDiff_subtype_val (U := collar) (n := β)) x))
lemma collarLog_eq (x : collar) :
collarLog x = (Real.log (collarCoordinates x).1.1,(collarCoordinates x).2) := by
obtain β¨z,hz,r,rflβ© := neckLift_surjective x
rw [neckLift_coordinates]
exact logCusp_projection_apply 2 (by norm_num) (z,r) hz.1
variable (g : Metric (E := P) Cylinder) (c : β) (hc : c β 0)
(low : β (x : P), x.1 < 1/4 β β u v : P,
pullInner (E := P) g projection x u v =
u.1*v.1 + Real.exp (-x.1)^2*u.2.1*v.2.1 + c^2*u.2.2*v.2.2)
lemma pieceMetric_collar (x : collar) :
pullInner (E := EP) (pieceMetric (wholeMetric g c hc low)) Subtype.val x =
pullInner (E := EP) g collarLog x := by
let f : collar β WholePiece := pieceMap β Subtype.val
have hfs : ContMDiff π(β,EP) π(β,EP) β f :=
pieceMap_smooth.comp (contMDiff_subtype_val (U := collar))
change pullBilin (E := EP) (F := EP)
(pullInner (wholeMetric g c hc low) pieceMap x.1)
(mfderiv π(β,EP) π(β,EP) (Subtype.val : collar β Piece) x) = _
rw [β pull_composition _ ((contMDiff_subtype_val (U := collar) (n := β) x).mdifferentiableAt (by simp))
((pieceMap_smooth x.1).mdifferentiableAt (by simp))]
change pullBilin (E := EP) (F := EP) ((wholeMetric g c hc low).inner (f x))
(mfderiv π(β,EP) π(β,EP) f x) = _
rw [wholeMetric_cusp_two g c hc low (show f x β wholeCusp 2 from x.2)]
exact (pull_composition g ((hfs x).mdifferentiableAt (by simp))
((logCuspMap_smoothAt 2 (by norm_num) (show f x β wholeCusp 2 from x.2)).mdifferentiableAt (by simp))).symm
def leftPosition (Ξ΄ : β) : collar β Cylinder := radial (leftLength Ξ΄) β collarLog
def rightPosition : collar β Cylinder := switch β radial 4 β collarLog
lemma leftPosition_smooth (Ξ΄ : β) : ContMDiff π(β,EP) π(β,P) β (leftPosition Ξ΄) :=
(radial_smooth (leftLength Ξ΄)).comp collarLog_smooth
lemma rightPosition_smooth : ContMDiff π(β,EP) π(β,P) β rightPosition :=
switch_smooth.comp ((radial_smooth 4).comp collarLog_smooth)
lemma position_match (Ξ΄ : β) : rightPosition β gluingMap = leftPosition Ξ΄ := by
funext x
change switch (radial 4 (collarLog (gluingMap x))) = radial (leftLength Ξ΄) (collarLog x)
rw [collarLog_eq,collarLog_eq]
have hc : collarCoordinates (gluingMap x) =
(collarFlip (collarCoordinates x).1,torusShear.symm (collarCoordinates x).2) := by
simp only [gluingMap,Homeomorph.trans_apply,Homeomorph.apply_symm_apply]
rfl
rw [hc]
apply Prod.ext
Β· change 1 - RadialProfile.coordinate 4 (Real.log (16/(collarCoordinates x).1.1)) =
RadialProfile.coordinate (leftLength Ξ΄) (Real.log (collarCoordinates x).1.1)
rw [RadialProfile.coordinate_flip (L := leftLength Ξ΄)
(show (collarCoordinates x).1.1 β Icc (2:β) 8 from
β¨(collarCoordinates x).1.2.1.le,(collarCoordinates x).1.2.2.leβ©)]
ring
Β· exact torusShear.apply_symm_apply _
lemma leftPiece_collar {Ξ΄ : β} (hΞ΄ : Ξ΄ β Ioc 0 (1/2)) (x : collar) :
pullInner (E := EP) (leftPiece hΞ΄) Subtype.val x =
pullInner (E := EP) (neck hΞ΄ (period_pos Ξ΄)) (leftPosition Ξ΄) x := by
rw [show leftPiece hΞ΄ = pieceMetric (wholeMetric (leftCylinder hΞ΄) (leftCircleScale Ξ΄)
(leftCircleScale_pos Ξ΄).ne' (leftCylinder_low hΞ΄)) from rfl,
pieceMetric_collar]
change pullBilin (E := EP) (F := P)
(pullInner (neck hΞ΄ (period_pos Ξ΄)) (radial (leftLength Ξ΄)) (collarLog x))
(mfderiv π(β,EP) π(β,P) collarLog x) = _
exact (pull_composition _ ((collarLog_smooth x).mdifferentiableAt (by simp))
((radial_smooth (leftLength Ξ΄) _).mdifferentiableAt (by simp))).symm
lemma rightPiece_collar {Ξ΄ : β} (hΞ΄ : Ξ΄ β Ioc 0 (1/2)) (x : collar) :
pullInner (E := EP) (rightPiece hΞ΄) Subtype.val x =
pullInner (E := EP) (neck hΞ΄ (period_pos Ξ΄)) rightPosition x := by
rw [show rightPiece hΞ΄ = pieceMetric (wholeMetric (rightCylinder hΞ΄) (rightCircleScale Ξ΄)
(rightCircleScale_pos hΞ΄.1).ne' (rightCylinder_low hΞ΄)) from rfl,
pieceMetric_collar]
change pullBilin (E := EP) (F := P)
(pullInner (switched (neck hΞ΄ (period_pos Ξ΄))) (radial 4) (collarLog x))
(mfderiv π(β,EP) π(β,P) collarLog x) = _
rw [β pull_composition _ ((collarLog_smooth x).mdifferentiableAt (by simp))
((radial_smooth 4 _).mdifferentiableAt (by simp))]
change pullBilin (E := EP) (F := P)
(pullInner (neck hΞ΄ (period_pos Ξ΄)) switch ((radial 4 β collarLog) x))
(mfderiv π(β,EP) π(β,P) (radial 4 β collarLog) x) = _
exact (pull_composition _ (((radial_smooth 4).comp collarLog_smooth x).mdifferentiableAt (by simp))
((switch_smooth _).mdifferentiableAt (by simp))).symm
end ThreeManifold.CompactMetric
end
section
open Set Filter Topology Bundle Manifold IsManifold Bornology
open scoped ContDiff
namespace ThreeManifold.CompactMetric
open MetricConstruction CylinderConstruction GluedConstruction
lemma gluing_smooth_self : ContMDiff π(β,EP) π(β,EP) β gluingMap := by
simpa only [modelWithCornersSelf_prod] using gluingMap_smooth
lemma transition_smooth (x : collar) :
ContMDiffAt π(β,EP) π(β,EP) β (TwoGluing.extendedTransition collar gluingMap) x.1 :=
TwoGluing.extendedTransition_smooth collar gluingMap gluing_smooth_self x
lemma collar_pull_match {Ξ΄ : β} (hΞ΄ : Ξ΄ β Ioc 0 (1/2)) (x : collar) :
pullInner (E := EP) (leftPiece hΞ΄) Subtype.val x =
pullInner (E := EP) (rightPiece hΞ΄) (Subtype.val β gluingMap) x := by
rw [pull_composition _ ((gluing_smooth_self x).mdifferentiableAt (by simp))
((contMDiff_subtype_val (U := collar) (n := β) _).mdifferentiableAt (by simp)),
rightPiece_collar,β pull_composition _ ((gluing_smooth_self x).mdifferentiableAt (by simp))
((rightPosition_smooth _).mdifferentiableAt (by simp)),position_match,leftPiece_collar]
lemma piece_overlap {Ξ΄ : β} (hΞ΄ : Ξ΄ β Ioc 0 (1/2)) (x : collar) :
(leftPiece hΞ΄).inner x.1 =
pullInner (E := EP) (rightPiece hΞ΄) (TwoGluing.extendedTransition collar gluingMap) x.1 := by
apply bilin_eq_of_pull_eq (E := EP) (F := EP) x
((openSubtype_mdifferentiable collar β¨xβ©).mfderiv (x := x) (mem_univ _) :
TangentSpace π(β,EP) x βL[β] TangentSpace π(β,EP) x.1).surjective
have hc := pull_composition (E := EP) (F := EP) (rightPiece hΞ΄)
((contMDiff_subtype_val (U := collar) (n := β) x).mdifferentiableAt (by simp))
((transition_smooth x).mdifferentiableAt (by simp))
have he : TwoGluing.extendedTransition collar gluingMap β (Subtype.val : collar β Piece) =
Subtype.val β gluingMap := funext (TwoGluing.extendedTransition_apply collar gluingMap)
have hf := congrArg (fun f : collar β Piece => pullInner (E := EP) (rightPiece hΞ΄) f x) he
exact (collar_pull_match hΞ΄ x).trans (hf.symm.trans hc)
end ThreeManifold.CompactMetric
namespace ThreeManifold.MetricConstruction
variable {E F M N A : Type*}
[NormedAddCommGroup E] [NormedSpace β E]
[NormedAddCommGroup F] [NormedSpace β F]
[TopologicalSpace M] [ChartedSpace E M] [IsManifold π(β,E) β M]
[TopologicalSpace N] [ChartedSpace F N] [IsManifold π(β,F) β N]
(c : A β OpenPartialHomeomorph M N)
(hc : β x, β i, x β (c i).source)
(hg : A β Metric (E := F) N)
(heq : β i j x, x β (c i).source β x β (c j).source β
pullInner (E := E) (hg i) (c i) x = pullInner (E := E) (hg j) (c j) x)
(hs : β i, ContMDiffOn π(β,E) π(β,F) β (c i) (c i).source)
(hdi : β i, (c i).MDifferentiable π(β,E) π(β,F))
def gluedInner (x : M) : TangentSpace π(β,E) x βL[β] TangentSpace π(β,E) x βL[β] β :=
pullInner (E := E) (hg (hc x).choose) (c (hc x).choose) x
omit [IsManifold π(β,E) β M] in
include heq in
lemma gluedInner_eq (i : A) (x : M) (hx : x β (c i).source) :
gluedInner c hc hg x = pullInner (E := E) (hg i) (c i) x :=
heq _ i x (hc x).choose_spec hx
include heq hs in
lemma gluedInner_smooth :
ContMDiff π(β,E) (π(β,E).prod π(β,E βL[β] E βL[β] β)) β
(fun x => TotalSpace.mk' (E βL[β] E βL[β] β)
(E := fun y => TangentSpace π(β,E) y βL[β] TangentSpace π(β,E) y βL[β] β)
x (gluedInner c hc hg x)) := by
intro x
obtain β¨i,hiβ© := hc x
apply (pullback_inner_smoothAt (hg i) ((hs i x hi).contMDiffAt
((c i).open_source.mem_nhds hi))).congr_of_eventuallyEq
filter_upwards [(c i).open_source.mem_nhds hi] with y hy
exact congrArg (TotalSpace.mk' (E βL[β] E βL[β] β) y)
(gluedInner_eq c hc hg heq i y hy)
omit [IsManifold π(β,E) β M] in
lemma gluedInner_symm (x : M) (u v : TangentSpace π(β,E) x) :
gluedInner c hc hg x u v = gluedInner c hc hg x v u := by
exact (hg (hc x).choose).symm _ _ _
omit [IsManifold π(β,E) β M] in
include hdi in
lemma gluedInner_pos (x : M) (u : TangentSpace π(β,E) x) (hu : u β 0) :
0 < gluedInner c hc hg x u u := by
let e := (hdi (hc x).choose).mfderiv (hc x).choose_spec
apply (hg (hc x).choose).pos
exact fun hh => hu (e.injective (hh.trans e.map_zero.symm))
omit [IsManifold π(β,E) β M] in
include hdi in
lemma gluedInner_bounded (x : M) :
IsVonNBounded β {u : TangentSpace π(β,E) x | gluedInner c hc hg x u u < 1} := by
let e := (hdi (hc x).choose).mfderiv (hc x).choose_spec
have hb := ((hg (hc x).choose).isVonNBounded (c (hc x).choose x)).image
e.symm.toContinuousLinearMap
apply hb.subset
intro u hu
exact β¨e u,hu,e.symm_apply_apply uβ©
def glue : Metric (E := E) M where
inner := gluedInner c hc hg
symm := gluedInner_symm c hc hg
pos := gluedInner_pos c hc hg hdi
isVonNBounded := gluedInner_bounded c hc hg hdi
contMDiff := gluedInner_smooth c hc hg heq hs
lemma glue_local (i : A) (x : M) (hx : x β (c i).source) :
(glue c hc hg heq hs hdi).inner x = pullInner (E := E) (hg i) (c i) x :=
gluedInner_eq c hc hg heq i x hx
lemma glue_inverse (i : A) (y : N) (hy : y β (c i).target) :
pullInner (E := F) (glue c hc hg heq hs hdi) (c i).symm y = (hg i).inner y := by
have hx : (c i).symm y β (c i).source := (c i).map_target hy
have he : ((c i) β (c i).symm) =αΆ [nhds y] id := by
filter_upwards [(c i).open_target.mem_nhds hy] with z hz
exact (c i).right_inv hz
have hd : (mfderiv π(β,E) π(β,F) (c i) ((c i).symm y)).comp
(mfderiv π(β,F) π(β,E) (c i).symm y) = ContinuousLinearMap.id β F := by
rw [β mfderiv_comp y (((hdi i).1 _ hx).mdifferentiableAt
((c i).open_source.mem_nhds hx)) (((hdi i).2 _ hy).mdifferentiableAt
((c i).open_target.mem_nhds hy))]
exact he.mfderiv_eq.trans mfderiv_id
ext u v
rw [pullInner_apply,glue_local c hc hg heq hs hdi i _ hx,pullInner_apply]
have hdu := congrArg (fun L : F βL[β] F => L u) hd
have hdv := congrArg (fun L : F βL[β] F => L v) hd
calc
_ = (hg i).inner (c i ((c i).symm y)) u v :=
congrArgβ (fun a b : F => (hg i).inner (c i ((c i).symm y)) a b) hdu hdv
_ = (hg i).inner y u v :=
congrArg (fun z : N => ((hg i).inner z : F βL[β] F βL[β] β) u v) ((c i).right_inv hy)
end ThreeManifold.MetricConstruction
namespace ThreeManifold.GluedConstruction
open TwoGluing (pieceChart pieceChart_apply)
abbrev EPm := β Γ β
lemma inclusion_smooth (i : Bool) : ContMDiff π(β,EPm) π(β,EPm) β (inclusion i) := by
intro x
let c := pieceChart (E := EPm) collar gluingMap i x
have hc : c β atlas EPm Manifold := β¨i,x,rflβ©
have ht : chartAt EPm x x β c.target := (chartAt EPm x).map_source (mem_chart_source _ _)
have h1 := contMDiffAt_of_mem_maximalAtlas
(I := π(β,EPm)) (chart_mem_maximalAtlas (I := π(β,EPm)) (n := β) x) (mem_chart_source _ _)
have h2 := contMDiffAt_symm_of_mem_maximalAtlas
(I := π(β,EPm)) (subset_maximalAtlas (I := π(β,EPm)) (n := β) hc) ht
apply (h2.comp x h1).congr_of_eventuallyEq
filter_upwards [(chartAt EPm x).open_source.mem_nhds (mem_chart_source _ _)] with y hy
change inclusion i y = c.symm (chartAt EPm x y)
change TwoGluing.inclusion collar gluingMap i y =
TwoGluing.inclusion collar gluingMap i ((chartAt EPm x).symm (chartAt EPm x y))
rw [(chartAt EPm x).left_inv hy]
def pieceOpenMap (i : Bool) : OpenPartialHomeomorph Piece Manifold :=
(TwoGluing.inclusion_openEmbedding collar gluingMap i).toOpenPartialHomeomorph _
lemma pieceOpenMap_apply (i : Bool) : (pieceOpenMap i : Piece β Manifold) = inclusion i := rfl
lemma pieceOpenMap_inclusion (i : Bool) (x : Piece) : (pieceOpenMap i).symm (inclusion i x) = x :=
(pieceOpenMap i).left_inv (by simp [pieceOpenMap])
lemma pieceOpenMap_inverse_smooth (i : Bool) {p : Manifold} (hp : p β (pieceOpenMap i).target) :
ContMDiffAt π(β,EPm) π(β,EPm) β (pieceOpenMap i).symm p := by
let x := (pieceOpenMap i).symm p
have hxp : inclusion i x = p := (pieceOpenMap i).right_inv hp
let c := pieceChart (E := EPm) collar gluingMap i x
have hc : c β atlas EPm Manifold := β¨i,x,rflβ©
have hps : p β c.source := β¨x,mem_chart_source _ _,hxpβ©
have hcp : c p β (chartAt EPm x).target := c.map_source hps
have h1 := contMDiffAt_of_mem_maximalAtlas (I := π(β,EPm))
(subset_maximalAtlas (I := π(β,EPm)) (n := β) hc) hps
have h2 := contMDiffAt_symm_of_mem_maximalAtlas (I := π(β,EPm))
(chart_mem_maximalAtlas (I := π(β,EPm)) (n := β) x) hcp
apply (h2.comp p h1).congr_of_eventuallyEq
filter_upwards [c.open_source.mem_nhds hps] with q hq
obtain β¨y,hy,rflβ© := hq
change (pieceOpenMap i).symm (inclusion i y) = (chartAt EPm x).symm (c (inclusion i y))
rw [pieceOpenMap_inclusion]
change y = (chartAt EPm x).symm (pieceChart (E := EPm) collar gluingMap i x (TwoGluing.inclusion collar gluingMap i y))
rw [pieceChart_apply,(chartAt EPm x).left_inv hy]
lemma pieceOpenMap_mdifferentiable (i : Bool) : (pieceOpenMap i).MDifferentiable π(β,EPm) π(β,EPm) := by
constructor
Β· exact ((inclusion_smooth i).mdifferentiable (by simp)).mdifferentiableOn
Β· intro p hp
exact ((pieceOpenMap_inverse_smooth i hp).mdifferentiableAt (by simp)).mdifferentiableWithinAt
lemma pieceOpenMap_cover (p : Manifold) : β i, p β (pieceOpenMap i).symm.source := by
obtain β¨i,x,hxβ© := TwoGluing.inclusion_surjective collar gluingMap p
refine β¨i,?_β©
have ht := (pieceOpenMap i).map_source (x := x) (by simp [pieceOpenMap])
exact hx βΈ ht
end ThreeManifold.GluedConstruction
namespace ThreeManifold.CompactMetric
open MetricConstruction CylinderConstruction GluedConstruction
lemma piece_inverse_transition {p : GluedConstruction.Manifold}
(h0 : p β (pieceOpenMap false).target) (h1 : p β (pieceOpenMap true).target) :
β _hx : (pieceOpenMap false).symm p β collar,
TwoGluing.extendedTransition collar gluingMap ((pieceOpenMap false).symm p) =
(pieceOpenMap true).symm p := by
have he : TwoGluing.inclusion collar gluingMap false ((pieceOpenMap false).symm p) =
TwoGluing.inclusion collar gluingMap true ((pieceOpenMap true).symm p) :=
((pieceOpenMap false).right_inv h0).trans ((pieceOpenMap true).right_inv h1).symm
obtain β¨hx,hxeβ© := (TwoGluing.inclusion_mixed_eq collar gluingMap _ _).mp he
exact β¨hx,(TwoGluing.extendedTransition_apply collar gluingMap β¨_,hxβ©).trans hxeβ©
lemma piece_inverse_transition_germ {p : GluedConstruction.Manifold}
(h0 : p β (pieceOpenMap false).target) (h1 : p β (pieceOpenMap true).target) :
(pieceOpenMap true).symm =αΆ [nhds p]
(TwoGluing.extendedTransition collar gluingMap β (pieceOpenMap false).symm) := by
filter_upwards [(pieceOpenMap false).open_target.mem_nhds h0,
(pieceOpenMap true).open_target.mem_nhds h1] with q hq0 hq1
exact (piece_inverse_transition hq0 hq1).choose_spec.symm
lemma glued_mixed_metric {Ξ΄ : β} (hΞ΄ : Ξ΄ β Ioc 0 (1/2)) {p : GluedConstruction.Manifold}
(h0 : p β (pieceOpenMap false).target) (h1 : p β (pieceOpenMap true).target) :
pullInner (E := EP) (leftPiece hΞ΄) (pieceOpenMap false).symm p =
pullInner (E := EP) (rightPiece hΞ΄) (pieceOpenMap true).symm p := by
obtain β¨hx,hxeβ© := piece_inverse_transition h0 h1
rw [pullInner_congr _ (piece_inverse_transition_germ h0 h1)]
rw [pull_composition _ ((pieceOpenMap_inverse_smooth false h0).mdifferentiableAt (by simp))
((transition_smooth β¨_,hxβ©).mdifferentiableAt (by simp))]
exact congrArg (fun b : EP βL[β] EP βL[β] β =>
pullBilin (E := EP) (F := EP) b (mfderiv π(β,EP) π(β,EP) (pieceOpenMap false).symm p))
(piece_overlap hΞ΄ β¨_,hxβ©)
def pieceMetrics {Ξ΄ : β} (hΞ΄ : Ξ΄ β Ioc 0 (1/2)) (i : Bool) : Metric (E := EP) Piece :=
if i then rightPiece hΞ΄ else leftPiece hΞ΄
lemma pieceMetrics_compatible {Ξ΄ : β} (hΞ΄ : Ξ΄ β Ioc 0 (1/2)) (i j : Bool)
(p : GluedConstruction.Manifold) (hi : p β (pieceOpenMap i).symm.source)
(hj : p β (pieceOpenMap j).symm.source) :
pullInner (E := EP) (pieceMetrics hΞ΄ i) (pieceOpenMap i).symm p =
pullInner (E := EP) (pieceMetrics hΞ΄ j) (pieceOpenMap j).symm p := by
cases i <;> cases j
Β· rfl
Β· exact glued_mixed_metric hΞ΄ hi hj
Β· exact (glued_mixed_metric hΞ΄ hj hi).symm
Β· rfl
lemma inverse_piece_smooth (i : Bool) :
ContMDiffOn π(β,EP) π(β,EP) β (pieceOpenMap i).symm (pieceOpenMap i).symm.source :=
fun _ hp => (pieceOpenMap_inverse_smooth i hp).contMDiffWithinAt
def compactMetric {Ξ΄ : β} (hΞ΄ : Ξ΄ β Ioc 0 (1/2)) : Metric (E := EP) GluedConstruction.Manifold :=
glue (fun i => (pieceOpenMap i).symm) pieceOpenMap_cover (pieceMetrics hΞ΄)
(pieceMetrics_compatible hΞ΄) inverse_piece_smooth (fun i => (pieceOpenMap_mdifferentiable i).symm)
lemma compactMetric_local {Ξ΄ : β} (hΞ΄ : Ξ΄ β Ioc 0 (1/2)) (i : Bool) (x : Piece) :
pullInner (E := EP) (compactMetric hΞ΄) (inclusion i) x = (pieceMetrics hΞ΄ i).inner x := by
exact glue_inverse (fun i => (pieceOpenMap i).symm) pieceOpenMap_cover (pieceMetrics hΞ΄)
(pieceMetrics_compatible hΞ΄) inverse_piece_smooth (fun i => (pieceOpenMap_mdifferentiable i).symm) i x
(by exact mem_univ _)
end ThreeManifold.CompactMetric
namespace ThreeManifold.Rechart
variable {E F M : Type*} [NormedAddCommGroup E] [NormedSpace β E]
[NormedAddCommGroup F] [NormedSpace β F] [TopologicalSpace M]
[ChartedSpace E M] [IsManifold π(β,E) β M]
variable (e : E βL[β] F)
lemma identity_smooth_forward : let := charts (M := M) e
ContMDiff π(β,E) π(β,F) β (id : M β M) := by
dsimp only
let := charts (M := M) e
let := isManifold (M := M) e
intro x
have h1 := contMDiffAt_of_mem_maximalAtlas (I := π(β,E))
(chart_mem_maximalAtlas (I := π(β,E)) (n := β) x) (mem_chart_source _ _)
have h2 : ContMDiffAt π(β,E) π(β,F) β e (chartAt E x x) :=
e.contDiff.contMDiff.contMDiffAt
have ht : e (chartAt E x x) β (chartAt F x).target := by
rw [show chartAt F x = chart e (chartAt E x) from rfl,chart_target]
exact β¨chartAt E x x,(chartAt E x).map_source (mem_chart_source _ _),rflβ©
have h3 := contMDiffAt_symm_of_mem_maximalAtlas (I := π(β,F))
(chart_mem_maximalAtlas (I := π(β,F)) (n := β) x) ht
apply (h3.comp x (h2.comp x h1)).congr_of_eventuallyEq
filter_upwards [(chartAt E x).open_source.mem_nhds (mem_chart_source _ _)] with y hy
change y = (chartAt E x).symm (e.symm (e (chartAt E x y)))
rw [e.symm_apply_apply,(chartAt E x).left_inv hy]
lemma identity_smooth_backward : let := charts (M := M) e
ContMDiff π(β,F) π(β,E) β (id : M β M) := by
dsimp only
let := charts (M := M) e
let := isManifold (M := M) e
intro x
have h1 := contMDiffAt_of_mem_maximalAtlas (I := π(β,F))
(chart_mem_maximalAtlas (I := π(β,F)) (n := β) x) (mem_chart_source _ _)
have h2 : ContMDiffAt π(β,F) π(β,E) β e.symm (chartAt F x x) :=
e.symm.contDiff.contMDiff.contMDiffAt
have ht : e.symm (chartAt F x x) β (chartAt E x).target := by
change e.symm (e (chartAt E x x)) β (chartAt E x).target
rw [e.symm_apply_apply]
exact (chartAt E x).map_source (mem_chart_source _ _)
have h3 := contMDiffAt_symm_of_mem_maximalAtlas (I := π(β,E))
(chart_mem_maximalAtlas (I := π(β,E)) (n := β) x) ht
apply (h3.comp x (h2.comp x h1)).congr_of_eventuallyEq
filter_upwards [(chartAt E x).open_source.mem_nhds (mem_chart_source _ _)] with y hy
change y = (chartAt E x).symm (e.symm (e (chartAt E x y)))
rw [e.symm_apply_apply,(chartAt E x).left_inv hy]
end ThreeManifold.Rechart
end
open Set Filter Topology Bundle Manifold IsManifold Bornology
open scoped ContDiff
namespace ThreeManifold.CompactMetric
open MetricConstruction CylinderConstruction GluedConstruction
def realCompactMetric {Ξ΄ : β} (hΞ΄ : Ξ΄ β Ioc 0 (1/2)) : SmoothMetric GluedConstruction.Manifold :=
pullbackHomeomorph (compactMetric hΞ΄) (Homeomorph.refl _)
(Rechart.identity_smooth_backward Coordinates3.coordinates)
(Rechart.identity_smooth_forward Coordinates3.coordinates)
theorem closed_oriented_metric :
β (M : Type) (top : TopologicalSpace M),
letI := top
β (_ : T2Space M) (_ : SecondCountableTopology M) (_ : CompactSpace M)
(_ : ConnectedSpace M) (charts : ChartedSpace E3 M),
letI := charts
β (smooth : IsManifold I3 β M),
letI := smooth
OrientedAtlas (M := M) β§ Nonempty (SmoothMetric M) := by
exact β¨GluedConstruction.Manifold,inferInstance,inferInstance,inferInstance,inferInstance,
inferInstance,realCharts,realSmooth,manifold_oriented,
β¨realCompactMetric (Ξ΄ := 1/4) (by norm_num)β©β©
end ThreeManifold.CompactMetric
end
end OAI
import OAI.Geometry.ConjugatePoints.Metric
import OAI.Geometry.ConjugatePoints.Cometric
namespace OAI
noncomputable section
/-!
# The smooth Riemannian metric on the compact glued manifold.
-/
section
open Set Filter Topology Bundle Manifold IsManifold Bornology
open scoped ContDiff
namespace ThreeManifold.CompactMetric
open MetricConstruction CylinderConstruction
def radialLinear (a : β) (ha : a β 0) : P βL[β] P :=
{ toFun := fun v => (a*v.1,v.2)
invFun := fun v => (v.1/a,v.2)
left_inv := by intro v; apply Prod.ext <;> simp [ha]
right_inv := by
intro v
apply Prod.ext
Β· change a*(v.1/a) = v.1
field_simp
Β· rfl
map_add' := by
intro v w
apply Prod.ext
Β· change a*(v.1+w.1) = a*v.1+a*w.1
ring
Β· rfl
map_smul' := by
intro c v
apply Prod.ext
Β· change a*(c*v.1) = c*(a*v.1)
ring
Β· rfl }
def radial (L : β) (x : Cylinder) : Cylinder := (RadialProfile.coordinate L x.1,x.2)
def radialLift (L : β) (x : P) : P := (RadialProfile.coordinate L x.1,x.2)
lemma radial_smooth (L : β) : ContMDiff π(β,P) π(β,P) β (radial L) := by
have h := ((RadialProfile.coordinate_smooth L).contMDiff.comp
(projection_fst_smooth (E := β) (F := β Γ β) (M := β) (N := AddCircle (6:β) Γ AddCircle (6:β)))).prodMk
(projection_snd_smooth (E := β) (F := β Γ β) (M := β) (N := AddCircle (6:β) Γ AddCircle (6:β)))
convert! h using 1
simp only [β modelWithCornersSelf_prod]
lemma radialLift_smooth (L : β) : ContMDiff π(β,P) π(β,P) β (radialLift L) :=
((RadialProfile.coordinate_smooth L).comp contDiff_fst |>.prodMk contDiff_snd).contMDiff
lemma radialLift_deriv {L : β} (hL : 4 β€ L) (x : P) :
(radialLinear (RadialProfile.slope L x.1) (RadialProfile.slope_pos hL x.1).ne').toContinuousLinearMap =
mfderiv π(β,P) π(β,P) (radialLift L) x := by
rw [mfderiv_eq_fderiv]
have hd := ((RadialProfile.coordinate_deriv L x.1).comp_hasFDerivAt x
(hasFDerivAt_fst (π := β) (p := x))).prodMk (hasFDerivAt_snd (π := β) (p := x))
calc
_ = _ := ?_
_ = fderiv β (radialLift L) x := hd.fderiv.symm
apply ContinuousLinearMap.ext
intro v
rfl
lemma radial_commutes (L : β) : radial L β projection = projection β radialLift L := rfl
def radialPull (g : Metric (E := P) Cylinder) {L : β} (hL : 4 β€ L) :
Metric (E := P) Cylinder :=
pullbackFromLift projection_cover projection_smooth local_inverse_smooth
(radial_smooth L) (radialLift_smooth L) (radial_commutes L)
(fun x => radialLinear (RadialProfile.slope L x.1) (RadialProfile.slope_pos hL x.1).ne')
(radialLift_deriv hL) section_spec g
def radiusβ (Ξ΄ B : β) (t : β) : β := Ξ΄^2*B/6 * Collar.ell Ξ΄ t
def radiusβ (Ξ΄ B : β) (t : β) : β := B/6 * Collar.ell Ξ΄ (1-t)
lemma radiusβ_smooth {Ξ΄ : β} (hΞ΄ : Ξ΄ β Icc 0 (1/2)) (B : β) : ContDiff β β (radiusβ Ξ΄ B) :=
contDiff_const.mul (Collar.ell_smooth hΞ΄)
lemma radiusβ_smooth {Ξ΄ : β} (hΞ΄ : Ξ΄ β Icc 0 (1/2)) (B : β) : ContDiff β β (radiusβ Ξ΄ B) :=
contDiff_const.mul ((Collar.ell_smooth hΞ΄).comp (contDiff_const.sub contDiff_id))
lemma radiusβ_pos {Ξ΄ B : β} (hΞ΄ : 0 < Ξ΄) (hB : 0 < B) (t : β) : 0 < radiusβ Ξ΄ B t :=
mul_pos (div_pos (mul_pos (sq_pos_of_pos hΞ΄) hB) (by norm_num)) (Collar.ell_pos Ξ΄ t)
lemma radiusβ_pos {Ξ΄ B : β} (hB : 0 < B) (t : β) : 0 < radiusβ Ξ΄ B t :=
mul_pos (div_pos hB (by norm_num)) (Collar.ell_pos Ξ΄ (1-t))
def neck {Ξ΄ B : β} (hΞ΄ : Ξ΄ β Ioc 0 (1/2)) (hB : 0 < B) : Metric (E := P) Cylinder :=
CylinderConstruction.metric (radiusβ_smooth β¨hΞ΄.1.le,hΞ΄.2β© B)
(radiusβ_smooth β¨hΞ΄.1.le,hΞ΄.2β© B) Cometric.Ο_smooth
(fun t => (radiusβ_pos hΞ΄.1 hB t).ne') (fun t => (radiusβ_pos hB t).ne')
end ThreeManifold.CompactMetric
namespace ThreeManifold.MetricConstruction
variable {E M : Type*} [NormedAddCommGroup E] [NormedSpace β E]
[TopologicalSpace M] [ChartedSpace E M] [IsManifold π(β,E) β M]
omit [IsManifold π(β,E) β M] in
lemma openSubtype_inverse_smooth (U : TopologicalSpace.Opens M) (hU : Nonempty U)
{x : M} (hx : x β U) :
ContMDiffAt π(β,E) π(β,E) β (U.openPartialHomeomorphSubtypeCoe hU).symm x := by
apply (ContMDiffAt.subtypeVal_comp_iff U _ x).mp
apply contMDiffAt_id.congr_of_eventuallyEq
filter_upwards [U.isOpen.mem_nhds hx] with y hy
exact (U.openPartialHomeomorphSubtypeCoe hU).right_inv (by simpa using hy)