Poincaré conjecture: the Lean proof, cleaned up together
The 2026 Lean proof of the Poincaré conjecture after Morgan and Tian, 3 million lines, cleaned up together: smaller, faster to build, more readable, the theorems unchanged

| 1 | import PoincareLib.Geometry.CurveShortening.Ramp.LocalFlow.Geometric.ArclengthFamily |
| 2 | import PoincareLib.Geometry.CurveShortening.Ramp.LocalFlow.Local.CompactSpectralPool |
| 3 | import PoincareLib.Geometry.CurveShortening.Ramp.LocalFlow.Countable.NormalPoolCommonSlab |
| 4 | import PoincareLib.Geometry.CurveShortening.Ramp.LocalFlow.Fixed.LabelC2Transport |
| 5 | import PoincareLib.Geometry.CurveShortening.Ramp.LocalFlow.Uniqueness.Fields |
| 6 | import PoincareLib.Geometry.CurveShortening.Ramp.Analysis.Spatial.PartialDerivative |
| 7 | import PoincareLib.Geometry.CurveShortening.Ramp.Analysis.Retained.PoolContinuity |
| 8 | import PoincareLib.Geometry.CurveShortening.Ramp.LocalFlow.Spectral.SequenceC2Limit |
| 9 | |
| 10 | /-! |
| 11 | # Actual local C2 families in a compact metric parameter space |
| 12 | |
| 13 | One fixed physical period and one retained smooth pool give a common |
| 14 | normal lifespan. Closed reconstruction and uniqueness identify the |
| 15 | same ordinary jets before the original labels are restored. MT2007 |
| 16 | Claim 19.1, p. 437, and Lemma 19.17, pp. 449-450; |
| 17 | `2026-09-23-local-metric-c2-family.md`. |
| 18 | -/ |
| 19 | |
| 20 | set_option autoImplicit false |
| 21 | set_option backward.isDefEq.respectTransparency false |
| 22 | |
| 23 | open Set Filter |
| 24 | open scoped Manifold ContDiff Topology |
| 25 | |
| 26 | universe u v w |
| 27 | |
| 28 | namespace PoincareMT.M63 |
| 29 | |
| 30 | variable {n : ℕ} {M : Type u} [TopologicalSpace M] [T2Space M] |
| 31 | [ChartedSpace (EuclideanSpace ℝ (Fin n)) M] [IsManifold (𝓡 n) ∞ M] |
| 32 | {ι : Type v} [Fintype ι] {Z : Type w} [MetricSpace Z] [CompactSpace Z] |
| 33 | {a b : ℝ} |
| 34 | |
| 35 | local notation "W" => EuclideanSpace ℝ ι |
| 36 | |
| 37 | open SpectralHeatNative |
| 38 | |
| 39 | omit [T2Space M] [CompactSpace Z] in |
| 40 | private theorem exists_centered_arclength_data |
| 41 | (F : RicciFlow n M (Icc a b)) (hab : a < b) |
| 42 | {e : M → W} (he : ContMDiff (𝓡 n) 𝓘(ℝ, W) ∞ e) |
| 43 | {U : Set W} (hU : IsOpen U) (heU : range e ⊆ U) {ρ : W → M} |
| 44 | (hρ : ContMDiffOn 𝓘(ℝ, W) (𝓡 n) ∞ ρ U) (hρe : ∀ p, ρ (e p) = p) |
| 45 | (gamma : Z → ℝ → M) |
| 46 | (hperiod : ∀ z, Function.Periodic (gamma z) curvePeriod) |
| 47 | (hC2 : ∀ z, ContMDiff 𝓘(ℝ, ℝ) (𝓡 n) 2 (gamma z)) |
| 48 | (himm : ∀ z x, curveVelocity (n := n) (gamma z) x ≠ 0) |
| 49 | (hzero : Continuous (fun p : Z × ℝ => e (gamma p.1 p.2))) |
| 50 | (hfirst : Continuous (fun p : Z × ℝ => deriv (fun y => e (gamma p.1 y)) p.2)) |
| 51 | (hsecond : Continuous (fun p : Z × ℝ => |
| 52 | deriv (deriv (fun y => e (gamma p.1 y))) p.2)) (z0 : Z) : |
| 53 | ∃ L : ℝ, 0 < L ∧ ∃ (g : Z → ℝ → M) (m : Z → ℝ) (phi : Z → ℝ → ℝ), |
| 54 | (∀ z, Function.Periodic (g z) L) ∧ |
| 55 | (∀ z, ContMDiff 𝓘(ℝ, ℝ) (𝓡 n) 2 (g z)) ∧ |
| 56 | (∀ z x, curveVelocity (n := n) (g z) x ≠ 0) ∧ |
| 57 | (∀ z x, curveSpeed F (fun y _ => g z y) a x = m z) ∧ |
| 58 | Continuous m ∧ m z0 = 1 ∧ |
| 59 | Continuous (fun z : Z × ℝ => e (g z.1 z.2)) ∧ |
| 60 | Continuous (fun z : Z × ℝ => deriv (fun y => e (g z.1 y)) z.2) ∧ |
| 61 | Continuous (fun z : Z × ℝ => deriv (deriv (fun y => e (g z.1 y))) z.2) ∧ |
| 62 | (∀ z, ContDiff ℝ 2 (phi z) ∧ (∀ x, 0 < deriv (phi z) x) ∧ |
| 63 | ∀ x, phi z (x + curvePeriod) = phi z x + curvePeriod) ∧ |
| 64 | Continuous (fun z : Z × ℝ => phi z.1 z.2) ∧ |
| 65 | Continuous (fun z : Z × ℝ => deriv (phi z.1) z.2) ∧ |
| 66 | Continuous (fun z : Z × ℝ => deriv (deriv (phi z.1)) z.2) ∧ |
| 67 | ∀ z x, g z ((L / curvePeriod) * phi z x) = gamma z x := by |
| 68 | classical |
| 69 | let mean := fun z => |
| 70 | (∫ x in (0 : ℝ)..curvePeriod, curveSpeed F (fun y _ => gamma z y) a x) / curvePeriod |
| 71 | have hfamily := exists_continuous_geometric_arclength_family F |
| 72 | (show a ∈ Icc a b from ⟨le_rfl, hab.le⟩) Real.two_pi_pos |
| 73 | he hU heU hρ hρe gamma hperiod hC2 himm hzero hfirst hsecond |
| 74 | dsimp only at hfamily |
| 75 | obtain ⟨hmpos, hmc, phi, hphi, hphic, hphidc, hphiddc, |
| 76 | _hpsic, _hpsidc, _hpsiddc, hnormal, hq0, hq1, hq2⟩ := hfamily |
| 77 | let M0 := mean z0 |
| 78 | have hM0 : 0 < M0 := hmpos z0 |
| 79 | let L := curvePeriod * M0 |
| 80 | have hL : 0 < L := mul_pos Real.two_pi_pos hM0 |
| 81 | let gn : Z → ℝ → M := fun z y => gamma z ((phi z).symm y) |
| 82 | let qn : Z → ℝ → W := fun z y => e (gn z y) |
| 83 | let g : Z → ℝ → M := fun z y => gn z (y / M0) |
| 84 | let m : Z → ℝ := fun z => mean z / M0 |
| 85 | have hscale (x : ℝ) : HasDerivAt (fun y : ℝ => y / M0) (1 / M0) x := |
| 86 | (hasDerivAt_id x).div_const M0 |
| 87 | have hscalePos : 0 < 1 / M0 := one_div_pos.mpr hM0 |
| 88 | have hgn (z : Z) : ContMDiff 𝓘(ℝ, ℝ) (𝓡 n) 2 (gn z) := (hnormal z).2.1 |
| 89 | have hqreg (z : Z) : ContDiff ℝ 2 (qn z) := |
| 90 | ((he.of_le (ENat.natCast_le_of_coe_top_le_withTop le_rfl 2)).comp (hgn z)).contDiff |
| 91 | have hqder (z : Z) (x : ℝ) : HasDerivAt (qn z) (deriv (qn z) x) x := |
| 92 | ((hqreg z).differentiable (by norm_num) x).hasDerivAt |
| 93 | have hqder2 (z : Z) (x : ℝ) : HasDerivAt (deriv (qn z)) |
| 94 | (deriv (deriv (qn z)) x) x := |
| 95 | (((hqreg z).deriv' (n := 1)).differentiable (by norm_num) x).hasDerivAt |
| 96 | have hg1 (z : Z) (x : ℝ) : |
| 97 | deriv (fun y => e (g z y)) x = (1 / M0) • deriv (qn z) (x / M0) := by |
| 98 | have hd := (hqder z (x / M0)).scomp x (hscale x) |
| 99 | simpa only [Function.comp_def, g, qn] using hd.deriv |
| 100 | have hg2 (z : Z) (x : ℝ) : |
| 101 | deriv (deriv (fun y => e (g z y))) x = |
| 102 | (1 / M0) ^ 2 • deriv (deriv (qn z)) (x / M0) := by |
| 103 | rw [show deriv (fun y => e (g z y)) = |
| 104 | (fun y => (1 / M0) • deriv (qn z) (y / M0)) from funext (hg1 z)] |
| 105 | have hd := ((hqder2 z (x / M0)).scomp x (hscale x)).fun_const_smul (1 / M0) |
| 106 | simpa only [Function.comp_def, smul_smul, ← pow_two] using hd.deriv |
| 107 | have hmap : Continuous (fun z : Z × ℝ => (z.1, z.2 / M0)) := |
| 108 | continuous_fst.prodMk (continuous_snd.div_const M0) |
| 109 | have hg0c : Continuous (fun z : Z × ℝ => e (g z.1 z.2)) := hq0.comp hmap |
| 110 | have hg1c : Continuous (fun z : Z × ℝ => deriv (fun y => e (g z.1 y)) z.2) := by |
| 111 | have hs : Continuous (fun _ : Z × ℝ => (1 / M0 : ℝ)) := continuous_const |
| 112 | have hv : Continuous (fun z : Z × ℝ => deriv (qn z.1) (z.2 / M0)) := hq1.comp hmap |
| 113 | exact (hs.smul hv).congr (fun z => (hg1 z.1 z.2).symm) |
| 114 | have hg2c : Continuous (fun z : Z × ℝ => |
| 115 | deriv (deriv (fun y => e (g z.1 y))) z.2) := by |
| 116 | have hs : Continuous (fun _ : Z × ℝ => (1 / M0 : ℝ) ^ 2) := continuous_const |
| 117 | have hv : Continuous (fun z : Z × ℝ => deriv (deriv (qn z.1)) (z.2 / M0)) := |
| 118 | hq2.comp hmap |
| 119 | exact (hs.smul hv).congr (fun z => (hg2 z.1 z.2).symm) |
| 120 | refine ⟨L, hL, g, m, fun z x => phi z x, ?_, ?_, ?_, ?_, |
| 121 | hmc.div_const M0, div_self hM0.ne', hg0c, hg1c, hg2c, |
| 122 | ?_, hphic, hphidc, hphiddc, ?_⟩ |
| 123 | · intro z x |
| 124 | change gn z ((x + L) / M0) = gn z (x / M0) |
| 125 | have hshift : (x + L) / M0 = x / M0 + curvePeriod := by |
| 126 | simp only [L, add_div, mul_div_cancel_right₀ _ hM0.ne'] |
| 127 | rw [hshift] |
| 128 | exact (hnormal z).1 _ |
| 129 | · intro z |
| 130 | exact (hgn z).comp (contDiff_id.div_const M0).contMDiff |
| 131 | · intro z x |
| 132 | rw [curveVelocity_comp ((hgn z).mdifferentiable (by norm_num) _) (hscale x)] |
| 133 | exact smul_ne_zero hscalePos.ne' ((hnormal z).2.2.1 _) |
| 134 | · intro z x |
| 135 | have hs := curveSpeed_comp F (fun y (_ : ℝ) => gn z y) (t := a) (x := x) |
| 136 | ((hgn z).mdifferentiable (by norm_num) _) (hscale x) hscalePos.le |
| 137 | change curveSpeed F (fun y (_ : ℝ) => gn z (y / M0)) a x = mean z / M0 |
| 138 | rw [hs, (hnormal z).2.2.2.1] |
| 139 | change (1 / M0) * mean z = mean z / M0 |
| 140 | ring |
| 141 | · intro z |
| 142 | obtain ⟨_hform, hpc, _hpic, _hpzero, hshift, _hishift, hpos⟩ := hphi z |
| 143 | exact ⟨hpc, fun x => (hpos x).1, hshift⟩ |
| 144 | · intro z x |
| 145 | have hkappa : L / curvePeriod = M0 := mul_div_cancel_left₀ M0 Real.two_pi_pos.ne' |
| 146 | change gamma z ((phi z).symm (((L / curvePeriod) * phi z x) / M0)) = gamma z x |
| 147 | rw [hkappa, mul_div_cancel_left₀ _ hM0.ne', (phi z).symm_apply_apply] |
| 148 | |
| 149 | omit [Fintype ι] in |
| 150 | private theorem exists_continuous_periodic_lift |
| 151 | {P : Type w} [TopologicalSpace P] {L : ℝ} [Fact (0 < L)] |
| 152 | (f : P → ℝ → W) (hf : Continuous (fun z : P × ℝ => f z.1 z.2)) |
| 153 | (hperiod : ∀ p, Function.Periodic (f p) L) : |
| 154 | ∃ Q : P → C(AddCircle L, W), Continuous Q ∧ |
| 155 | ∀ p (x : ℝ), Q p (x : AddCircle L) = f p x := by |
| 156 | let Q : P → C(AddCircle L, W) := fun p => ⟨(hperiod p).lift, |
| 157 | (QuotientAddGroup.isQuotientMap_mk (AddSubgroup.zmultiples L)).continuous_iff.mpr |
| 158 | (hf.comp (continuous_const.prodMk continuous_id))⟩ |
| 159 | have hrep (p : P) (x : ℝ) : Q p (x : AddCircle L) = f p x := by |
| 160 | change (hperiod p).lift (x : AddCircle L) = f p x |
| 161 | exact Function.Periodic.lift_coe (hperiod p) x |
| 162 | refine ⟨Q, ?_, hrep⟩ |
| 163 | apply ContinuousMap.continuous_of_continuous_uncurry |
| 164 | have hquot : IsOpenQuotientMap (fun z : P × ℝ => (z.1, (z.2 : AddCircle L))) := |
| 165 | IsOpenQuotientMap.id.prodMap QuotientAddGroup.isOpenQuotientMap_mk |
| 166 | apply hquot.continuous_comp_iff.mp |
| 167 | simpa only [Function.comp_def, Function.uncurry, hrep] using hf |
| 168 | |
| 169 | private theorem exists_normalized_local_family |
| 170 | {L : ℝ} [Fact (0 < L)] |
| 171 | (F : RicciFlow n M (Icc a b)) (hab : a < b) |
| 172 | (hcompact : IsCompact (univ : Set M)) |
| 173 | {e : M → W} (he : ContMDiff (𝓡 n) 𝓘(ℝ, W) ∞ e) |
| 174 | {U : Set W} (hU : IsOpen U) (heU : range e ⊆ U) {ρ : W → M} |
| 175 | (hρ : ContMDiffOn 𝓘(ℝ, W) (𝓡 n) ∞ ρ U) (hρe : ∀ p, ρ (e p) = p) |
| 176 | (g : Z → ℝ → M) (hperiod : ∀ z, Function.Periodic (g z) L) |
| 177 | (hC2 : ∀ z, ContMDiff 𝓘(ℝ, ℝ) (𝓡 n) 2 (g z)) |
| 178 | (himm : ∀ z x, curveVelocity (n := n) (g z) x ≠ 0) |
| 179 | (Q : Z → ((C(AddCircle L, W) × C(AddCircle L, W)) × C(AddCircle L, W)) × ℝ) |
| 180 | (hQ : Continuous Q) |
| 181 | (hjets : ∀ z (x : ℝ), (Q z).1.1.1 (x : AddCircle L) = e (g z x) ∧ |
| 182 | (Q z).1.1.2 (x : AddCircle L) = deriv (fun y => e (g z y)) x ∧ |
| 183 | (Q z).1.2 (x : AddCircle L) = deriv (deriv (fun y => e (g z y))) x) |
| 184 | (hspeed : ∀ z x, curveSpeed F (fun y _ => g z y) a x = (Q z).2) |
| 185 | (z0 : Z) (hcenter : (Q z0).2 = 1) : |
| 186 | ∃ N : Set Z, IsClosed N ∧ z0 ∈ interior N ∧ |
| 187 | ∃ T : ℝ, a < T ∧ T ≤ b ∧ ∃ d : N → ℝ → ℝ → M, |
| 188 | (∀ z, M63C2ShrinkingCurveOn F (d z) (Icc a T)) ∧ |
| 189 | (∀ z x, d z x a = g z ((L / curvePeriod) * x)) ∧ |
| 190 | Continuous (fun z : (N × ℝ) × Icc a T => e (d z.1.1 z.1.2 z.2)) ∧ |
| 191 | Continuous (fun z : (N × ℝ) × Icc a T => |
| 192 | deriv (fun x => e (d z.1.1 x z.2)) z.1.2) ∧ |
| 193 | Continuous (fun z : (N × ℝ) × Icc a T => |
| 194 | deriv (deriv (fun x => e (d z.1.1 x z.2))) z.1.2) := by |
| 195 | classical |
| 196 | let X := C(AddCircle L, W) |
| 197 | let J := ((X × X) × X) × ℝ |
| 198 | let SV := State ((ℤ × Fin 2) × ι) |
| 199 | let eps : ℕ → ℝ := fun j => 1 / ((j : ℝ) + 1) |
| 200 | have heps (j : ℕ) : 0 < eps j := by dsimp only [eps]; positivity |
| 201 | have heps0 : Tendsto eps atTop (𝓝 0) := tendsto_one_div_add_atTop_nhds_zero_nat |
| 202 | obtain ⟨A, N, hN, hzN, T, hT, hTcap, hT1, B, u, P, R0, |
| 203 | hB, _hcenterB, htrace, _hKcompact, hAK, hKband, hKder, hKguard, |
| 204 | hKspeed, hdecoder, hPne, hPsmooth, _hPnear, hPcover, hR0, |
| 205 | hcap0, _hqc, _hqxc, hqper, hqzero, hqguard, hqflow⟩ := |
| 206 | exists_local_compact_spectral_pool F he hU heU hρ hρe g hperiod hC2 himm Q hQ |
| 207 | hjets hspeed z0 hcenter |
| 208 | (show 0 < (b - a) / 2 by linarith only [hab]) |
| 209 | (show (b - a) / 2 < b - a by linarith only [hab]) eps heps heps0 |
| 210 | let K : Set J := Q '' N ∪ ⋃ j, (P j : Set J) |
| 211 | let I := Σ j : ℕ, {p : J // p ∈ P j} |
| 212 | let tuple : I → J := fun i => i.2.1 |
| 213 | obtain ⟨p0, hp0⟩ := hPne 0 |
| 214 | let : Nonempty I := ⟨⟨0, p0, hp0⟩⟩ |
| 215 | have hpK (i : I) : tuple i ∈ K := Or.inr (mem_iUnion.mpr ⟨i.1, i.2.2⟩) |
| 216 | have hzK (z : N) : Q z ∈ K := Or.inl ⟨z, z.2, rfl⟩ |
| 217 | have hAB (p : J) (hp : p ∈ K) : A p ∈ B := hAK ⟨p, hp, rfl⟩ |
| 218 | let q : J → ℝ → ℝ → W := fun p => |
| 219 | initialResponseCurve (L := L) hT.le (A p) (u (A p)) |
| 220 | have hzero (p : J) (hp : p ∈ K) (x : ℝ) : q p 0 x = p.1.1.1 (x : AddCircle L) := |
| 221 | (hqzero (A p) (hAB p hp) x).trans (congrArg Prod.fst (hdecoder p hp _)) |
| 222 | have hfirst (p : J) (hp : p ∈ K) (x : ℝ) : |
| 223 | deriv (fun y : ℝ => p.1.1.1 (y : AddCircle L)) x = p.1.1.2 (x : AddCircle L) := |
| 224 | (hKder p hp x).1.deriv |
| 225 | have hsecond (p : J) (hp : p ∈ K) (x : ℝ) : |
| 226 | deriv (deriv (fun y : ℝ => p.1.1.1 (y : AddCircle L))) x = p.1.2 (x : AddCircle L) := by |
| 227 | rw [show deriv (fun y : ℝ => p.1.1.1 (y : AddCircle L)) = |
| 228 | (fun y : ℝ => p.1.1.2 (y : AddCircle L)) from funext (hfirst p hp)] |
| 229 | exact (hKder p hp x).2.deriv |
| 230 | have hflow (i : I) := hqflow (A (tuple i)) (hAB _ (hpK i)) |
| 231 | ((hPsmooth i.1 _ i.2.2).2.contDiffAt) |
| 232 | have hfixed (i : I) (t : ℝ) (ht : t ∈ Icc 0 T) (x : ℝ) : |
| 233 | q (tuple i) t x = e (ρ (q (tuple i) t x)) := by |
| 234 | apply (hflow i).2.2.2 _ t ht x |
| 235 | intro y |
| 236 | change q (tuple i) 0 y = e (ρ (q (tuple i) 0 y)) |
| 237 | rw [hzero _ (hpK i)] |
| 238 | exact (hKguard _ (hpK i) y).2.1.symm |
| 239 | have htime (i : I) : ∀ t ∈ Ioo 0 T, ∀ x, HasDerivAt (fun s => q (tuple i) s x) |
| 240 | (ambientCurvePrincipal F ρ (a + t) (q (tuple i) t x) (deriv (q (tuple i) t) x) • |
| 241 | deriv (deriv (q (tuple i) t)) x + |
| 242 | ambientCurveLower F e ρ (a + t) (q (tuple i) t x) (deriv (q (tuple i) t) x)) t := by |
| 243 | simpa only [iteratedDeriv_succ, iteratedDeriv_zero] using (hflow i).2.2.1 |
| 244 | have hspeed0 (i : I) (x : ℝ) : |
| 245 | curveSpeed F (fun y _ => ρ (q (tuple i) 0 y)) a x = (tuple i).2 := by |
| 246 | rw [curveSpeed_congr_slice F |
| 247 | (d := fun y (_ : ℝ) => ρ ((tuple i).1.1.1 (y : AddCircle L))) |
| 248 | (fun y => congrArg ρ (hzero _ (hpK i) y))] |
| 249 | exact hKspeed _ (hpK i) x |
| 250 | let κ := L / curvePeriod |
| 251 | have hκ : 0 < κ := div_pos (Fact.out : 0 < L) Real.two_pi_pos |
| 252 | have hinitial (i : I) (x : ℝ) : m62CurvatureSquared F |
| 253 | (fun y (_ : ℝ) => ρ (q (tuple i) 0 (κ * y))) a x ≤ R0 := by |
| 254 | rw [curvatureSquared_congr_slice F |
| 255 | (d := fun y (_ : ℝ) => ρ ((tuple i).1.1.1 ((κ * y : ℝ) : AddCircle L))) |
| 256 | (fun y => congrArg ρ (hzero _ (hpK i) (κ * y)))] |
| 257 | exact hcap0 _ (hpK i) κ hκ x |
| 258 | obtain ⟨psi, hnormal, _hinitspeed, _hspeedband, delta, hdelta, hdeltaT, |
| 259 | hdeltab, hdeltaone, R, J1, hR, hJ1, hcap, hjet⟩ := |
| 260 | exists_countable_normal_pool_common_slab F hcompact he hU heU hρ hρe |
| 261 | (Fact.out : 0 < L) hT hT1 (by linarith only [hTcap, hab]) |
| 262 | (fun i => q (tuple i)) (fun i => (hflow i).1) |
| 263 | (fun i t _ => hqper (A (tuple i)) (hAB _ (hpK i)) t) |
| 264 | (fun i => hqguard (A (tuple i)) (hAB _ (hpK i))) hfixed htime |
| 265 | (fun i => (tuple i).2) (fun i => ⟨(hKband _ (hpK i)).1.le, (hKband _ (hpK i)).2.le⟩) |
| 266 | hspeed0 (show 0 ≤ R0 from (by norm_num : (0 : ℝ) ≤ 1).trans hR0) hinitial |
| 267 | let cn : I → ℝ → ℝ → M := fun i x t => |
| 268 | ρ (q (tuple i) (t - a) (psi i (t - a) (κ * x))) |
| 269 | have hcn (i : I) : M63SmoothShrinkingCurveOn F (cn i) (Icc a (a + T / 4)) := |
| 270 | (hnormal i).2.2.2.2.2.2.1 |
| 271 | have hcnjoint (i : I) : ContMDiffOn 𝓘(ℝ, ℝ × ℝ) (𝓡 n) ∞ |
| 272 | (fun z : ℝ × ℝ => cn i z.1 z.2) (univ ×ˢ Icc a (a + T / 4)) := |
| 273 | (hnormal i).2.2.2.2.2.2.2.2 |
| 274 | have haD : a < a + delta := by linarith only [hdelta] |
| 275 | have hshortS : Icc a (a + delta) ⊆ Icc a (a + T / 4) := |
| 276 | Icc_subset_Icc_right (by linarith only [hdeltaT, hdelta]) |
| 277 | have hwideS : Icc a (a + 2 * delta) ⊆ Icc a (a + T / 4) := |
| 278 | Icc_subset_Icc_right hdeltaT |
| 279 | have hds : delta ≤ T / 4 := by linarith only [hdeltaT, hdelta] |
| 280 | have hdT : delta ≤ T := by linarith only [hds, hT] |
| 281 | have hsub (t : ℝ) (ht : t ∈ Icc 0 delta) : t ∈ Icc 0 T := |
| 282 | ⟨ht.1, ht.2.trans hdT⟩ |
| 283 | have hsubS (t : ℝ) (ht : t ∈ Icc 0 delta) : t ∈ Icc 0 (T / 4) := |
| 284 | ⟨ht.1, ht.2.trans hds⟩ |
| 285 | let : Fact (0 < curvePeriod) := ⟨Real.two_pi_pos⟩ |
| 286 | let CP := C(Icc a (a + delta), C(AddCircle curvePeriod, W)) |
| 287 | let Y := (CP × CP) × CP |
| 288 | have hderivper {f : ℝ → W} (hf : Function.Periodic f curvePeriod) : |
| 289 | Function.Periodic (deriv f) curvePeriod := by |
| 290 | intro x |
| 291 | rw [← deriv_comp_add_const] |
| 292 | exact congrArg (fun f : ℝ → W => deriv f x) (funext hf) |
| 293 | have bundle (f : ℝ → ℝ → W) |
| 294 | (hf : ContinuousOn (Function.uncurry f) (Icc a (a + delta) ×ˢ univ)) |
| 295 | (hp : ∀ t ∈ Icc a (a + delta), Function.Periodic (f t) curvePeriod) : |
| 296 | ∃ A : CP, ∀ (t : Icc a (a + delta)) (x : ℝ), |
| 297 | A t (x : AddCircle curvePeriod) = f t x := by |
| 298 | obtain ⟨A, hA, hrep⟩ := exists_continuous_periodic_lift |
| 299 | (fun (t : Icc a (a + delta)) x => f t x) |
| 300 | (hf.comp_continuous (continuous_subtype_val.prodMap continuous_id) |
| 301 | (fun z => ⟨z.1.2, mem_univ _⟩)) (fun t => hp t t.2) |
| 302 | exact ⟨⟨A, hA⟩, hrep⟩ |
| 303 | have poolpaths (i : I) : ∃ A0 A1 A2 : CP, ∀ (t : Icc a (a + delta)) (x : ℝ), |
| 304 | A0 t (x : AddCircle curvePeriod) = e (cn i x t) ∧ |
| 305 | A1 t (x : AddCircle curvePeriod) = deriv (fun y => e (cn i y t)) x ∧ |
| 306 | A2 t (x : AddCircle curvePeriod) = deriv (deriv (fun y => e (cn i y t))) x := by |
| 307 | let f : ℝ → ℝ → W := fun t x => e (cn i x t) |
| 308 | have hraw : ContDiffOn ℝ ∞ (fun z : ℝ × ℝ => e (cn i z.1 z.2)) |
| 309 | (univ ×ˢ Icc a (a + T / 4)) := |
| 310 | (he.comp_contMDiffOn (hcnjoint i)).contDiffOn |
| 311 | have hswap : ContDiff ℝ ∞ (fun z : ℝ × ℝ => (z.2, z.1)) := |
| 312 | contDiff_snd.prodMk contDiff_fst |
| 313 | have hf : ContDiffOn ℝ ∞ (Function.uncurry f) (Icc a (a + delta) ×ˢ univ) := |
| 314 | hraw.comp (f := fun z : ℝ × ℝ => (z.2, z.1)) hswap.contDiffOn |
| 315 | (fun z hz => ⟨mem_univ _, hshortS hz.1⟩) |
| 316 | have hf1 : ContDiffOn ℝ ∞ (fun z : ℝ × ℝ => deriv (f z.1) z.2) |
| 317 | (Icc a (a + delta) ×ˢ univ) := |
| 318 | contDiffOn_spatial_deriv_of_uniqueDiffOn (uniqueDiffOn_Icc haD) (by simp) hf |
| 319 | have hf2 : ContDiffOn ℝ ∞ (fun z : ℝ × ℝ => deriv (deriv (f z.1)) z.2) |
| 320 | (Icc a (a + delta) ×ˢ univ) := |
| 321 | contDiffOn_spatial_deriv_of_uniqueDiffOn (q := fun t => deriv (f t)) |
| 322 | (m := ∞) (n := ∞) (uniqueDiffOn_Icc haD) (by simp) hf1 |
| 323 | have hp (t : ℝ) (ht : t ∈ Icc a (a + delta)) : Function.Periodic (f t) curvePeriod := |
| 324 | fun x => congrArg e ((hcn i).1.periodic t (hshortS ht) x) |
| 325 | obtain ⟨A0, h0⟩ := bundle f hf.continuousOn hp |
| 326 | obtain ⟨A1, h1⟩ := bundle (fun t => deriv (f t)) hf1.continuousOn |
| 327 | (fun t ht => hderivper (hp t ht)) |
| 328 | obtain ⟨A2, h2⟩ := bundle (fun t => deriv (deriv (f t))) hf2.continuousOn |
| 329 | (fun t ht => hderivper (hderivper (hp t ht))) |
| 330 | exact ⟨A0, A1, A2, fun t x => ⟨h0 t x, h1 t x, h2 t x⟩⟩ |
| 331 | choose f0 f1 f2 hfp using poolpaths |
| 332 | let fp : I → Y := fun i => ((f0 i, f1 i), f2 i) |
| 333 | let lambda := fun p : (ℤ × Fin 2) × ι => periodicSpectrum L p.1 |
| 334 | let V := fun z : SV => initialResponseTrace lambda z hT.le (u z) |
| 335 | let inc : C(Icc (0 : ℝ) delta, Icc (0 : ℝ) T) := |
| 336 | ⟨fun t => ⟨t, hsub t t.2⟩, continuous_subtype_val.subtype_mk _⟩ |
| 337 | let VP := fun p : J => (V (A p)).comp inc |
| 338 | let E := (PiLp.continuousLinearEquiv 2 ℝ (fun _ : ι => ℝ)).symm |
| 339 | let jet := fun (z : SV) (x : AddCircle L) => |
| 340 | (E (vectorPeriodicJet (L := L) 1 0 (by omega) z x), |
| 341 | E (vectorPeriodicJet (L := L) 1 1 (by omega) z x)) |
| 342 | have hdecode (p : J) (t : Icc (0 : ℝ) delta) (x : ℝ) : |
| 343 | jet (VP p t) (x : AddCircle L) = (q p t x, deriv (q p t) x) := by |
| 344 | have hproj : projIcc 0 T hT.le (t : ℝ) = inc t := projIcc_of_mem hT.le (hsub t t.2) |
| 345 | apply Prod.ext |
| 346 | · change _ = initialResponseCurve (L := L) hT.le (A p) (u (A p)) t x |
| 347 | simp only [initialResponseCurve, hproj] |
| 348 | rfl |
| 349 | · have hd := (initialResponseCurve_spec (L := L) hT.le (A p) (u (A p))).2.2.2 t x |
| 350 | rw [hproj] at hd |
| 351 | exact hd.deriv.symm |
| 352 | have sequence_limit (z : N) (ii : ℕ → I) |
| 353 | (hi : Tendsto (fun j => tuple (ii j)) atTop (𝓝 (Q z))) : |
| 354 | ∃ sigma : ℕ → ℕ, StrictMono sigma ∧ ∃ d : ℝ → ℝ → M, |
| 355 | M63C2ShrinkingCurveOn F d (Icc a (a + delta)) ∧ |
| 356 | (∀ x, d x a = g z (κ * x)) ∧ ∃ G : Y, |
| 357 | Tendsto (fun j => fp (ii (sigma j))) atTop (𝓝 G) ∧ |
| 358 | ∀ (t : Icc a (a + delta)) (x : ℝ), |
| 359 | G.1.1 t (x : AddCircle curvePeriod) = e (d x t) ∧ |
| 360 | G.1.2 t (x : AddCircle curvePeriod) = deriv (fun y => e (d y t)) x ∧ |
| 361 | G.2 t (x : AddCircle curvePeriod) = deriv (deriv (fun y => e (d y t))) x := by |
| 362 | have hstate := A.continuous.continuousAt.tendsto.comp hi |
| 363 | have hpath := (htrace.continuousOn.continuousAt (hB.mem_nhds (hAB _ (hzK z)))).tendsto.comp |
| 364 | hstate |
| 365 | have hVP : Tendsto (fun j => VP (tuple (ii j))) atTop (𝓝 (VP (Q z))) := |
| 366 | (inc.continuous_precomp.tendsto (V (A (Q z)))).comp hpath |
| 367 | have hlim0 := (continuous_fst.fst.fst.tendsto (Q z)).comp hi |
| 368 | have hlim1 := (continuous_fst.fst.snd.tendsto (Q z)).comp hi |
| 369 | have hlim2 := (continuous_fst.snd.tendsto (Q z)).comp hi |
| 370 | have hinit : ∀ r > 0, ∃ N0 : ℕ, ∀ j ≥ N0, ∀ x : ℝ, |
| 371 | ‖q (tuple (ii j)) 0 x - (Q z).1.1.1 (x : AddCircle L)‖ < r ∧ |
| 372 | ‖deriv (q (tuple (ii j)) 0) x - |
| 373 | deriv (fun y : ℝ => (Q z).1.1.1 (y : AddCircle L)) x‖ < r ∧ |
| 374 | ‖deriv (deriv (q (tuple (ii j)) 0)) x - |
| 375 | deriv (deriv (fun y : ℝ => (Q z).1.1.1 (y : AddCircle L))) x‖ < r := by |
| 376 | intro r hr |
| 377 | obtain ⟨N0, hN0⟩ := eventually_atTop.mp |
| 378 | ((Metric.tendsto_nhds.mp hlim0 r hr).and |
| 379 | ((Metric.tendsto_nhds.mp hlim1 r hr).and (Metric.tendsto_nhds.mp hlim2 r hr))) |
| 380 | refine ⟨N0, fun j hj x => ?_⟩ |
| 381 | have heq : q (tuple (ii j)) 0 = |
| 382 | fun y : ℝ => (tuple (ii j)).1.1.1 (y : AddCircle L) := |
| 383 | funext (hzero _ (hpK (ii j))) |
| 384 | rw [heq, hfirst _ (hpK (ii j)), hfirst _ (hzK z), |
| 385 | hsecond _ (hpK (ii j)), hsecond _ (hzK z)] |
| 386 | simpa only [dist_eq_norm] using |
| 387 | And.intro ((ContinuousMap.dist_apply_le_dist |
| 388 | (f := (tuple (ii j)).1.1.1) (g := (Q z).1.1.1) (x : AddCircle L)).trans_lt |
| 389 | (hN0 j hj).1) |
| 390 | (And.intro ((ContinuousMap.dist_apply_le_dist |
| 391 | (f := (tuple (ii j)).1.1.2) (g := (Q z).1.1.2) (x : AddCircle L)).trans_lt |
| 392 | (hN0 j hj).2.1) |
| 393 | ((ContinuousMap.dist_apply_le_dist |
| 394 | (f := (tuple (ii j)).1.2) (g := (Q z).1.2) (x : AddCircle L)).trans_lt |
| 395 | (hN0 j hj).2.2)) |
| 396 | have hf : ContDiff ℝ 2 (fun x : ℝ => (Q z).1.1.1 (x : AddCircle L)) := by |
| 397 | have heq : (fun x : ℝ => (Q z).1.1.1 (x : AddCircle L)) = fun x => e (g z x) := |
| 398 | funext fun x => (hjets z x).1 |
| 399 | rw [heq] |
| 400 | exact ((he.of_le (ENat.natCast_le_of_coe_top_le_withTop le_rfl 2)).comp (hC2 z)).contDiff |
| 401 | have hwide (i : I) : M63SmoothShrinkingCurveOn F (cn i) (Icc a (a + 2 * delta)) := |
| 402 | ⟨c2_restrict (hcn i).1 hwideS, |
| 403 | (hcn i).2.mono (prod_mono Subset.rfl (interior_mono hwideS))⟩ |
| 404 | obtain ⟨sigma, hsigma, d, hd, hd0, _hdspeed, A0, A1, A2, G0, G1, G2, |
| 405 | hA0, hA1, hA2, hArep, hGrep, _huniform⟩ := |
| 406 | exists_spectral_sequence_c2_threeJet_limit F hcompact hdelta hdeltaone hdeltab hR hJ1 |
| 407 | he hU heU hρ hρe (fun j => VP (tuple (ii j))) (VP (Q z)) hVP |
| 408 | (fun j => q (tuple (ii j))) |
| 409 | (fun j => (hflow (ii j)).1.mono (prod_mono (Icc_subset_Icc_right hdT) Subset.rfl)) |
| 410 | (fun j t => ((hflow (ii j)).2.1 (inc t)).differentiableAt (by simp)) |
| 411 | (fun j => psi (ii j)) |
| 412 | (fun j => ((hnormal (ii j)).2.2.1.of_le |
| 413 | (ENat.natCast_le_of_coe_top_le_withTop le_rfl 1)).mono |
| 414 | (prod_mono (Icc_subset_Icc_right hds) Subset.rfl)) |
| 415 | (fun j t ht => (hnormal (ii j)).2.1 t (hsubS t ht)) |
| 416 | (fun j => (hnormal (ii j)).1) |
| 417 | (fun j t ht => (hnormal (ii j)).2.2.2.2.1 t (hsubS t ht)) |
| 418 | (fun j t ht x => ((hnormal (ii j)).2.2.2.1 t |
| 419 | (hsubS t (Ioo_subset_Icc_self ht)) x).hasDerivAt |
| 420 | (Icc_mem_nhds ht.1 (ht.2.trans_le hds))) |
| 421 | (fun j => (tuple (ii j)).2) (Q z).2 |
| 422 | (fun j => ⟨(hKband _ (hpK (ii j))).1.le, (hKband _ (hpK (ii j))).2.le⟩) |
| 423 | ⟨(hKband _ (hzK z)).1.le, (hKband _ (hzK z)).2.le⟩ |
| 424 | ((continuous_snd.tendsto (Q z)).comp hi) (fun j => hspeed0 (ii j)) |
| 425 | (Q z).1.1.1 hf hinit |
| 426 | (fun j => hdecode (tuple (ii j))) |
| 427 | (fun j t => hqguard (A (tuple (ii j))) (hAB _ (hpK (ii j))) t (hsub t t.2)) |
| 428 | (fun j t => hfixed (ii j) t (hsub t t.2)) |
| 429 | (by |
| 430 | intro t x |
| 431 | obtain ⟨y, rfl⟩ := QuotientAddGroup.mk_surjective x |
| 432 | change (jet (VP (Q z) t) (y : AddCircle L)).1 ∈ U ∧ |
| 433 | mfderiv 𝓘(ℝ, W) (𝓡 n) ρ (jet (VP (Q z) t) (y : AddCircle L)).1 |
| 434 | (jet (VP (Q z) t) (y : AddCircle L)).2 ≠ 0 |
| 435 | erw [hdecode] |
| 436 | exact hqguard (A (Q z)) (hAB _ (hzK z)) t (hsub t t.2) y) |
| 437 | (fun x => (congrArg Prod.fst (hdecode (Q z) _ x)).trans (hzero _ (hzK z) x)) |
| 438 | (fun j => hwide (ii j)) (fun j => hcap (ii j)) (fun j => hjet (ii j)) |
| 439 | have heq0 : (fun j => f0 (ii (sigma j))) = A0 := by |
| 440 | funext j |
| 441 | apply ContinuousMap.ext |
| 442 | intro t |
| 443 | apply ContinuousMap.ext |
| 444 | intro y |
| 445 | obtain ⟨x, rfl⟩ := QuotientAddGroup.mk_surjective y |
| 446 | exact (hfp _ t x).1.trans (hArep j t x).1.symm |
| 447 | have heq1 : (fun j => f1 (ii (sigma j))) = A1 := by |
| 448 | funext j |
| 449 | apply ContinuousMap.ext |
| 450 | intro t |
| 451 | apply ContinuousMap.ext |
| 452 | intro y |
| 453 | obtain ⟨x, rfl⟩ := QuotientAddGroup.mk_surjective y |
| 454 | exact (hfp _ t x).2.1.trans (hArep j t x).2.1.symm |
| 455 | have heq2 : (fun j => f2 (ii (sigma j))) = A2 := by |
| 456 | funext j |
| 457 | apply ContinuousMap.ext |
| 458 | intro t |
| 459 | apply ContinuousMap.ext |
| 460 | intro y |
| 461 | obtain ⟨x, rfl⟩ := QuotientAddGroup.mk_surjective y |
| 462 | exact (hfp _ t x).2.2.trans (hArep j t x).2.2.symm |
| 463 | refine ⟨sigma, hsigma, d, hd, ?_, ((G0, G1), G2), ?_, hGrep⟩ |
| 464 | · intro x |
| 465 | rw [hd0, (hjets z (κ * x)).1, hρe] |
| 466 | · have h0 : Tendsto (fun j => f0 (ii (sigma j))) atTop (𝓝 G0) := heq0.symm ▸ hA0 |
| 467 | have h1 : Tendsto (fun j => f1 (ii (sigma j))) atTop (𝓝 G1) := heq1.symm ▸ hA1 |
| 468 | have h2 : Tendsto (fun j => f2 (ii (sigma j))) atTop (𝓝 G2) := heq2.symm ▸ hA2 |
| 469 | exact (h0.prodMk_nhds h1).prodMk_nhds h2 |
| 470 | have members (z : N) : ∃ d : ℝ → ℝ → M, |
| 471 | M63C2ShrinkingCurveOn F d (Icc a (a + delta)) ∧ |
| 472 | (∀ x, d x a = g z (κ * x)) ∧ ∃ G : Y, |
| 473 | (∀ (t : Icc a (a + delta)) (x : ℝ), |
| 474 | G.1.1 t (x : AddCircle curvePeriod) = e (d x t) ∧ |
| 475 | G.1.2 t (x : AddCircle curvePeriod) = deriv (fun y => e (d y t)) x ∧ |
| 476 | G.2 t (x : AddCircle curvePeriod) = deriv (deriv (fun y => e (d y t))) x) ∧ |
| 477 | ∃ ii : ℕ → I, Tendsto (fun j => tuple (ii j)) atTop (𝓝 (Q z)) ∧ |
| 478 | Tendsto (fun j => fp (ii j)) atTop (𝓝 G) := by |
| 479 | choose p hp hnear using fun j => hPcover j z z.2 |
| 480 | let ii : ℕ → I := fun j => ⟨j, p j, hp j⟩ |
| 481 | have hi : Tendsto (fun j => tuple (ii j)) atTop (𝓝 (Q z)) := by |
| 482 | apply Metric.tendsto_nhds.mpr |
| 483 | intro r hr |
| 484 | filter_upwards [heps0.eventually (gt_mem_nhds hr)] with j hj |
| 485 | exact (hnear j).trans hj |
| 486 | obtain ⟨sigma, hsigma, d, hd, hd0, G, hG, hrep⟩ := sequence_limit z ii hi |
| 487 | exact ⟨d, hd, hd0, G, hrep, fun j => ii (sigma j), hi.comp hsigma.tendsto_atTop, hG⟩ |
| 488 | choose d hd hd0 G hGrep happrox using members |
| 489 | have hsubseq (z : N) (ii : ℕ → I) |
| 490 | (hi : Tendsto (fun j => tuple (ii j)) atTop (𝓝 (Q z))) : |
| 491 | ∃ sigma : ℕ → ℕ, StrictMono sigma ∧ |
| 492 | Tendsto (fun j => fp (ii (sigma j))) atTop (𝓝 (G z)) := by |
| 493 | obtain ⟨sigma, hsigma, d', hd', hd0', G', hG', hrep'⟩ := sequence_limit z ii hi |
| 494 | have heq := c2ShrinkingCurve_unique_closed F hcompact hd' (hd z) |
| 495 | (fun x => (hd0' x).trans (hd0 z x).symm) |
| 496 | have hslice (t : Icc a (a + delta)) : |
| 497 | (fun x => e (d' x t)) = fun x => e (d z x t) := |
| 498 | funext fun x => congrArg e (heq t t.2 x) |
| 499 | have hGeq : G' = G z := by |
| 500 | apply Prod.ext |
| 501 | · apply Prod.ext |
| 502 | · ext t y |
| 503 | obtain ⟨x, rfl⟩ := QuotientAddGroup.mk_surjective y |
| 504 | rw [(hrep' t x).1, (hGrep z t x).1, heq t t.2 x] |
| 505 | · ext t y |
| 506 | obtain ⟨x, rfl⟩ := QuotientAddGroup.mk_surjective y |
| 507 | rw [(hrep' t x).2.1, (hGrep z t x).2.1, hslice] |
| 508 | · ext t y |
| 509 | obtain ⟨x, rfl⟩ := QuotientAddGroup.mk_surjective y |
| 510 | rw [(hrep' t x).2.2, (hGrep z t x).2.2, hslice] |
| 511 | exact ⟨sigma, hsigma, hGeq ▸ hG'⟩ |
| 512 | have hGc : Continuous G := continuous_of_approximating_pool_subsequences |
| 513 | (fun z : N => Q z) (hQ.comp continuous_subtype_val) tuple fp G happrox hsubseq |
| 514 | have evalpath (A : N → CP) (hA : Continuous A) : |
| 515 | Continuous (fun z : (N × ℝ) × Icc a (a + delta) => |
| 516 | A z.1.1 z.2 (z.1.2 : AddCircle curvePeriod)) := |
| 517 | ((hA.comp continuous_fst.fst).eval continuous_snd).eval |
| 518 | ((AddCircle.continuous_mk' curvePeriod).comp continuous_fst.snd) |
| 519 | exact ⟨N, hN, hzN, a + delta, haD, (by linarith only [hdeltab, hdelta]), d, hd, hd0, |
| 520 | (evalpath _ hGc.fst.fst).congr (fun z => (hGrep z.1.1 z.2 z.1.2).1), |
| 521 | (evalpath _ hGc.fst.snd).congr (fun z => (hGrep z.1.1 z.2 z.1.2).2.1), |
| 522 | (evalpath _ hGc.snd).congr (fun z => (hGrep z.1.1 z.2 z.1.2).2.2)⟩ |
| 523 | |
| 524 | /-- Actual compact metric families admit a common local C2 evolution with |
| 525 | jointly continuous ordinary embedded jets in the original labels. |
| 526 | MT2007 Claim 19.1, p. 437, and Lemma 19.17, pp. 449-450; |
| 527 | `2026-09-23-local-metric-c2-family.md`. -/ |
| 528 | theorem exists_local_metric_c2_curve_family |
| 529 | (F : RicciFlow n M (Icc a b)) (hab : a < b) |
| 530 | (hcompact : IsCompact (univ : Set M)) |
| 531 | {e : M → W} (he : ContMDiff (𝓡 n) 𝓘(ℝ, W) ∞ e) |
| 532 | {U : Set W} (hU : IsOpen U) (heU : range e ⊆ U) {ρ : W → M} |
| 533 | (hρ : ContMDiffOn 𝓘(ℝ, W) (𝓡 n) ∞ ρ U) (hρe : ∀ p, ρ (e p) = p) |
| 534 | (gamma : Z → ℝ → M) |
| 535 | (hperiod : ∀ z, Function.Periodic (gamma z) curvePeriod) |
| 536 | (hC2 : ∀ z, ContMDiff 𝓘(ℝ, ℝ) (𝓡 n) 2 (gamma z)) |
| 537 | (himm : ∀ z x, curveVelocity (n := n) (gamma z) x ≠ 0) |
| 538 | (hzero : Continuous (fun p : Z × ℝ => e (gamma p.1 p.2))) |
| 539 | (hfirst : Continuous (fun p : Z × ℝ => |
| 540 | deriv (fun y => e (gamma p.1 y)) p.2)) |
| 541 | (hsecond : Continuous (fun p : Z × ℝ => |
| 542 | deriv (deriv (fun y => e (gamma p.1 y))) p.2)) |
| 543 | (z0 : Z) : |
| 544 | ∃ N : Set Z, IsClosed N ∧ z0 ∈ interior N ∧ |
| 545 | ∃ T : ℝ, a < T ∧ T ≤ b ∧ ∃ c : N → ℝ → ℝ → M, |
| 546 | (∀ z, M63C2ShrinkingCurveOn F (c z) (Icc a T)) ∧ |
| 547 | (∀ z x, c z x a = gamma z x) ∧ |
| 548 | Continuous (fun z : (N × ℝ) × Icc a T => e (c z.1.1 z.1.2 z.2)) ∧ |
| 549 | Continuous (fun z : (N × ℝ) × Icc a T => |
| 550 | deriv (fun x => e (c z.1.1 x z.2)) z.1.2) ∧ |
| 551 | Continuous (fun z : (N × ℝ) × Icc a T => |
| 552 | deriv (deriv (fun x => e (c z.1.1 x z.2))) z.1.2) := by |
| 553 | classical |
| 554 | obtain ⟨L, hL, g, m, phi, hgp, hgC2, hgi, hgspeed, hmc, hmcenter, |
| 555 | hg0c, hg1c, hg2c, hphi, hphic, hphidc, hphiddc, hrestore⟩ := |
| 556 | exists_centered_arclength_data F hab he hU heU hρ hρe gamma |
| 557 | hperiod hC2 himm hzero hfirst hsecond z0 |
| 558 | let : Fact (0 < L) := ⟨hL⟩ |
| 559 | let f : Z → ℝ → W := fun z x => e (g z x) |
| 560 | have hf (z : Z) : ContDiff ℝ 2 (f z) := |
| 561 | ((he.of_le (ENat.natCast_le_of_coe_top_le_withTop le_rfl 2)).comp (hgC2 z)).contDiff |
| 562 | have hfp (z : Z) : Function.Periodic (f z) L := fun x => congrArg e (hgp z x) |
| 563 | have hfp1 (z : Z) : Function.Periodic (deriv (f z)) L := |
| 564 | (hfp z).deriv_of_differentiable ((hf z).differentiable (by norm_num)) |
| 565 | have hfp2 (z : Z) : Function.Periodic (deriv (deriv (f z))) L := |
| 566 | (hfp1 z).deriv_of_differentiable (((hf z).deriv' (n := 1)).differentiable (by norm_num)) |
| 567 | obtain ⟨Q0, hQ0, hQ0rep⟩ := exists_continuous_periodic_lift f hg0c hfp |
| 568 | obtain ⟨Q1, hQ1, hQ1rep⟩ := exists_continuous_periodic_lift |
| 569 | (fun z => deriv (f z)) hg1c hfp1 |
| 570 | obtain ⟨Q2, hQ2, hQ2rep⟩ := exists_continuous_periodic_lift |
| 571 | (fun z => deriv (deriv (f z))) hg2c hfp2 |
| 572 | let Q := fun z => (((Q0 z, Q1 z), Q2 z), m z) |
| 573 | have hQ : Continuous Q := ((hQ0.prodMk hQ1).prodMk hQ2).prodMk hmc |
| 574 | obtain ⟨N, hN, hzN, T, haT, hTb, d, hd, hd0, hD0, hD1, hD2⟩ := |
| 575 | exists_normalized_local_family F hab hcompact he hU heU hρ hρe g hgp hgC2 hgi Q hQ |
| 576 | (fun z x => ⟨hQ0rep z x, hQ1rep z x, hQ2rep z x⟩) hgspeed z0 hmcenter |
| 577 | let c : N → ℝ → ℝ → M := fun z x t => d z (phi z x) t |
| 578 | have hc (z : N) : M63C2ShrinkingCurveOn F (c z) (Icc a T) := |
| 579 | c2ShrinkingCurve_fixedLabel_comp F (hd z) (hphi z).1 (hphi z).2.1 (hphi z).2.2 |
| 580 | have hphiD (z : Z) (x : ℝ) : HasDerivAt (phi z) (deriv (phi z) x) x := |
| 581 | (((hphi z).1.differentiable (by norm_num)) x).hasDerivAt |
| 582 | have hphiDD (z : Z) (x : ℝ) : |
| 583 | HasDerivAt (deriv (phi z)) (deriv (deriv (phi z)) x) x := |
| 584 | ((((hphi z).1.deriv' (n := 1)).differentiable (by norm_num)) x).hasDerivAt |
| 585 | have hreg (z : N) (t : Icc a T) : ContDiff ℝ 2 (fun x => e (d z x t)) := |
| 586 | ((he.of_le (ENat.natCast_le_of_coe_top_le_withTop le_rfl 2)).comp |
| 587 | ((hd z).spatial_regular t t.2)).contDiff |
| 588 | have hder (z : N) (t : Icc a T) (x : ℝ) : |
| 589 | HasDerivAt (fun y => e (d z y t)) (deriv (fun y => e (d z y t)) x) x := |
| 590 | ((hreg z t).differentiable (by norm_num) x).hasDerivAt |
| 591 | have hder2 (z : N) (t : Icc a T) (x : ℝ) : HasDerivAt |
| 592 | (deriv (fun y => e (d z y t))) (deriv (deriv (fun y => e (d z y t))) x) x := |
| 593 | (((hreg z t).deriv' (n := 1)).differentiable (by norm_num) x).hasDerivAt |
| 594 | have hfirstC (z : N) (t : Icc a T) (x : ℝ) : |
| 595 | deriv (fun y => e (c z y t)) x = |
| 596 | deriv (phi z) x • deriv (fun y => e (d z y t)) (phi z x) := |
| 597 | ((hder z t (phi z x)).scomp x (hphiD z x)).deriv |
| 598 | have hsecondC (z : N) (t : Icc a T) (x : ℝ) : |
| 599 | deriv (deriv (fun y => e (c z y t))) x = |
| 600 | deriv (phi z) x ^ 2 • deriv (deriv (fun y => e (d z y t))) (phi z x) + |
| 601 | deriv (deriv (phi z)) x • deriv (fun y => e (d z y t)) (phi z x) := by |
| 602 | rw [show deriv (fun y => e (c z y t)) = |
| 603 | (fun y => deriv (phi z) y • deriv (fun x => e (d z x t)) (phi z y)) |
| 604 | from funext (hfirstC z t)] |
| 605 | have hdiff := (hphiDD z x).fun_smul ((hder2 z t (phi z x)).scomp x (hphiD z x)) |
| 606 | simpa only [Function.comp_def, smul_smul, ← pow_two] using hdiff.deriv |
| 607 | have harg : Continuous (fun z : (N × ℝ) × Icc a T => ((z.1.1 : Z), z.1.2)) := |
| 608 | (continuous_subtype_val.comp continuous_fst.fst).prodMk continuous_fst.snd |
| 609 | have hlabel : Continuous (fun z : (N × ℝ) × Icc a T => phi z.1.1 z.1.2) := |
| 610 | hphic.comp harg |
| 611 | have hlabel1 : Continuous (fun z : (N × ℝ) × Icc a T => deriv (phi z.1.1) z.1.2) := |
| 612 | hphidc.comp harg |
| 613 | have hlabel2 : Continuous (fun z : (N × ℝ) × Icc a T => |
| 614 | deriv (deriv (phi z.1.1)) z.1.2) := hphiddc.comp harg |
| 615 | let B : (N × ℝ) × Icc a T → (N × ℝ) × Icc a T := |
| 616 | fun z => ((z.1.1, phi z.1.1 z.1.2), z.2) |
| 617 | have hB : Continuous B := (continuous_fst.fst.prodMk hlabel).prodMk continuous_snd |
| 618 | refine ⟨N, hN, hzN, T, haT, hTb, c, hc, ?_, hD0.comp hB, ?_, ?_⟩ |
| 619 | · intro z x |
| 620 | exact (hd0 z (phi z x)).trans (hrestore z x) |
| 621 | · exact (hlabel1.smul (hD1.comp hB)).congr (fun z => (hfirstC z.1.1 z.2 z.1.2).symm) |
| 622 | · exact (((hlabel1.pow 2).smul (hD2.comp hB)).add |
| 623 | (hlabel2.smul (hD1.comp hB))).congr (fun z => (hsecondC z.1.1 z.2 z.1.2).symm) |
| 624 | |
| 625 | end PoincareMT.M63 |