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.RicciFlow.Curvature.Calculus |
| 2 | import PoincareLib.Geometry.RicciFlow.Harnack.Matrix.Positivity.DirectionContact |
| 3 | import PoincareLib.Geometry.RicciFlow.Harnack.Matrix.Positivity.ReferenceFrame |
| 4 | import PoincareLib.Geometry.RicciFlow.Harnack.Matrix.Positivity.FrameChange |
| 5 | import PoincareLib.Geometry.RicciFlow.Harnack.Noncompact.Localization |
| 6 | import PoincareLib.Analysis.Parabolic.FirstContact |
| 7 | |
| 8 | /-! |
| 9 | # Global positivity of Hamilton's quadratic |
| 10 | |
| 11 | The proper exhaustion confines possible first zeros to compact frame and |
| 12 | coefficient parameters. Strict ordinary-time contact then excludes a zero. |
| 13 | Source: Chow et al., Part II, Section 15.4.5, printed p. 287. |
| 14 | -/ |
| 15 | |
| 16 | set_option autoImplicit false |
| 17 | set_option backward.isDefEq.respectTransparency false |
| 18 | |
| 19 | open Set |
| 20 | open scoped Manifold ContDiff Bundle BigOperators Topology |
| 21 | |
| 22 | universe u |
| 23 | |
| 24 | namespace Poincare.RicciFlow.Harnack |
| 25 | |
| 26 | open PoincareMT Poincare.VectorBundle |
| 27 | |
| 28 | variable {n : ℕ} {M : Type u} [TopologicalSpace M] |
| 29 | [ChartedSpace (EuclideanSpace ℝ (Fin n)) M] [IsManifold (𝓡 n) ∞ M] |
| 30 | [T2Space M] {J : Set ℝ} |
| 31 | |
| 32 | private def normalizedDirections (g : RiemannianMetric n M) (V : Set M) : |
| 33 | Set (HamiltonDirection n M) := |
| 34 | letI : Bundle.RiemannianBundle (TangentSpace (𝓡 n) : M → Type _) := |
| 35 | ⟨g.toRiemannianMetric⟩ |
| 36 | {q | q.1.val.1 ∈ V ∧ Orthonormal ℝ (FiberFamily.vector q.1) ∧ ‖q.2‖ = 1 ∧ |
| 37 | ∀ i j, q.2 (Sum.inl (i, j)) = -q.2 (Sum.inl (j, i))} |
| 38 | |
| 39 | private lemma isCompact_normalizedDirections_over (g : RiemannianMetric n M) |
| 40 | (V : Set M) {K : Set M} (hK : IsCompact K) (hKV : K ⊆ V) : |
| 41 | IsCompact {q : normalizedDirections g V | q.val.1.val.1 ∈ K} := by |
| 42 | rw [Topology.IsEmbedding.subtypeVal.isCompact_iff] |
| 43 | convert isCompact_normalized_hamilton_directions g hK using 1 |
| 44 | ext q |
| 45 | simp only [mem_image, mem_ofPred_eq, Subtype.exists, exists_and_right, |
| 46 | exists_eq_right, normalizedDirections] |
| 47 | constructor |
| 48 | · tauto |
| 49 | · intro h |
| 50 | exact ⟨⟨hKV h.1, h.2⟩, h.1⟩ |
| 51 | |
| 52 | private def frameDirection (x : M) (e : Fin n → TangentSpace (𝓡 n) x) |
| 53 | (z : EuclideanSpace ℝ ((Fin n × Fin n) ⊕ Fin n)) : HamiltonDirection n M := |
| 54 | (⟨(x, fun i => ⟨x, e i⟩), fun _ => rfl⟩, z) |
| 55 | |
| 56 | omit [T2Space M] in |
| 57 | private lemma perturbed_block_of_normalized_nonneg |
| 58 | (hC : RicciFlowCurvatureCalculus.{u}) (F : RicciFlow n M J) |
| 59 | (g : RiemannianMetric n M) (V : Set M) (T₀ : ℝ) {t : ℝ} (ht : t ∈ interior J) |
| 60 | (φ : ℝ × M → ℝ) (ψ : ℝ → ℝ) |
| 61 | (hφ : ContMDiff (𝓡 n) 𝓘(ℝ, ℝ) ∞ (fun x => φ (t, x))) |
| 62 | (hpos : ∀ q : normalizedDirections g V, |
| 63 | 0 ≤ perturbedHamiltonDirectionQuadratic F T₀ φ ψ t q) (x : M) (hx : x ∈ V) : |
| 64 | let b := (F.metric t).orthonormalBasis x |
| 65 | (Matrix.fromBlocks |
| 66 | (fun ac de : Fin (Module.finrank ℝ (TangentSpace (𝓡 n) x)) × |
| 67 | Fin (Module.finrank ℝ (TangentSpace (𝓡 n) x)) => |
| 68 | (F.connection t).curvatureTensor x (b ac.1) (b ac.2) (b de.1) (b de.2) + |
| 69 | ψ t * twoFormIdentity ac.1 ac.2 de.1 de.2) |
| 70 | (fun ac d => hamiltonP (F.connection t) x (b ac.1) (b ac.2) (b d)) |
| 71 | (fun c de => hamiltonP (F.connection t) x (b de.1) (b de.2) (b c)) |
| 72 | (fun a c => hamiltonM (F.connection t) (t - T₀) x (b a) (b c) + |
| 73 | φ (t, x) * (if a = c then 1 else 0))).PosSemidef := by |
| 74 | apply perturbedHamiltonBlock_posSemidef_of_reference_unit_tests hC F g ht |
| 75 | (t - T₀) x (fun x => φ (t, x)) hφ (ψ t) |
| 76 | let : Bundle.RiemannianBundle (TangentSpace (𝓡 n) : M → Type _) := |
| 77 | ⟨g.toRiemannianMetric⟩ |
| 78 | intro e he z hz hskew |
| 79 | have hn : frameDirection x e z ∈ normalizedDirections g V := ⟨hx, he, hz, hskew⟩ |
| 80 | have h := hpos ⟨frameDirection x e z, hn⟩ |
| 81 | dsimp only [perturbedHamiltonDirectionQuadratic, hamiltonDirectionQuadratic, |
| 82 | frameDirection, FiberFamily.vector] at h |
| 83 | simp only [cast_eq] at h |
| 84 | dsimp only |
| 85 | simp only [add_mul, Finset.sum_add_distrib, mul_assoc, ← Finset.mul_sum] at h ⊢ |
| 86 | linarith only [h] |
| 87 | |
| 88 | omit [T2Space M] in |
| 89 | private lemma normalized_direction_coordinates |
| 90 | (hC : RicciFlowCurvatureCalculus.{u}) (F : RicciFlow n M J) |
| 91 | (g : RiemannianMetric n M) (V : Set M) (T₀ t : ℝ) (φ : ℝ × M → ℝ) (ψ : ℝ → ℝ) |
| 92 | (q : normalizedDirections g V) : |
| 93 | ∃ (U : Fin (Module.finrank ℝ (TangentSpace (𝓡 n) q.val.1.val.1)) → |
| 94 | Fin (Module.finrank ℝ (TangentSpace (𝓡 n) q.val.1.val.1)) → ℝ) |
| 95 | (W : Fin (Module.finrank ℝ (TangentSpace (𝓡 n) q.val.1.val.1)) → ℝ), |
| 96 | (∀ a b, U a b = -U b a) ∧ |
| 97 | (Real.sqrt (∑ a, ∑ b, (U a b) ^ 2) ≠ 0 ∨ Real.sqrt (∑ a, (W a) ^ 2) ≠ 0) ∧ |
| 98 | ∀ s, perturbedHamiltonDirectionQuadratic F T₀ φ ψ s q = |
| 99 | perturbedHamiltonFixedQuadratic F T₀ t q.val.1.val.1 |
| 100 | (fun r y => φ (r, y)) ψ U W s := by |
| 101 | let : Bundle.RiemannianBundle (TangentSpace (𝓡 n) : M → Type _) := |
| 102 | ⟨g.toRiemannianMetric⟩ |
| 103 | let C := hamiltonFrameCoordinates (F.metric t) q.val.1.val.1 (FiberFamily.vector q.val.1) |
| 104 | refine ⟨hamiltonTwoFormCoordinates C (fun i j => q.val.2 (Sum.inl (i, j))), |
| 105 | hamiltonVectorCoordinates C (fun i => q.val.2 (Sum.inr i)), |
| 106 | hamiltonTwoFormCoordinates_skew C _ q.property.2.2.2, ?_, ?_⟩ |
| 107 | · exact hamiltonDirectionCoordinates_sqrt_nonzero (F.metric t) q.val |
| 108 | q.property.2.1.linearIndependent q.property.2.2.1 |
| 109 | · exact perturbedHamiltonDirectionQuadratic_eq_fixed hC F T₀ t φ ψ q.val |
| 110 | |
| 111 | private theorem normalized_exp_quadratic_pos |
| 112 | (hC : RicciFlowCurvatureCalculus.{u}) (F : RicciFlow n M J) |
| 113 | (g : RiemannianMetric n M) {O : M} (S : RicciFlow.SmoothExhaustion F O) |
| 114 | (V : Set M) (hV : IsOpen V) |
| 115 | (hproper : ∀ r : ℝ, IsCompact {x | S.toFun x ≤ r ∧ x ∈ V}) |
| 116 | {T K ε δ A : ℝ} (hT : 0 < T) (hJ : Ioc 0 T ⊆ interior J) (hK : 0 ≤ K) |
| 117 | (hbound : ∀ t ∈ Ioc 0 T, ∀ x ∈ V, ∀ j ≤ 2, |
| 118 | (F.connection t).curvatureDerivativeNorm j x ≤ K) |
| 119 | (hcurv : ∀ t ∈ Ioc 0 T, ∀ x ∈ V, (F.connection t).NonnegativeCurvatureOperator x) |
| 120 | (hε : 0 < ε) (hδ : 0 < δ) |
| 121 | (hA : hamiltonPerturbationErrorBound n K T + (n : ℝ) * S.bound < A) |
| 122 | (hsmall : hamiltonPerturbationErrorBound n K T * δ ≤ ε) |
| 123 | (hψone : δ * Real.exp (A * T) ≤ 1) : |
| 124 | ∀ t ∈ Ioc 0 T, ∀ q : normalizedDirections g V, |
| 125 | 0 < perturbedHamiltonDirectionQuadratic F 0 |
| 126 | (fun p => ε * Real.exp (A * p.1) * S.toFun p.2 / p.1) |
| 127 | (fun s => δ * Real.exp (A * s)) t q := by |
| 128 | let φ := fun p : ℝ × M => ε * Real.exp (A * p.1) * S.toFun p.2 / p.1 |
| 129 | let ψ := fun s => δ * Real.exp (A * s) |
| 130 | let Q := fun (q : normalizedDirections g V) s => |
| 131 | perturbedHamiltonDirectionQuadratic F 0 φ ψ s q |
| 132 | have hApos : 0 < A := by |
| 133 | have hc := hamiltonPerturbationErrorBound_pos (n := n) hK hT.le |
| 134 | have hl := mul_nonneg (Nat.cast_nonneg n) S.bound_nonneg |
| 135 | linarith only [hc, hl, hA] |
| 136 | let C := 6 * (n : ℝ) ^ 4 * K + 3 * (n : ℝ) ^ 5 * K ^ 2 |
| 137 | have hCnonneg : 0 ≤ C := by dsimp only [C]; positivity |
| 138 | have hpositive (t : ℝ) (ht : t ∈ Ioc 0 T) (q : normalizedDirections g V) |
| 139 | (hscalar : ∀ z u w : ℝ, -C * w ^ 2 - C * u * w ≤ z → u ≠ 0 ∨ w ≠ 0 → |
| 140 | 0 < z + φ (t, q.val.1.val.1) * w ^ 2 + ψ t * u ^ 2) : 0 < Q q t := by |
| 141 | obtain ⟨U, W, hU, hn, heq⟩ := normalized_direction_coordinates hC F g V 0 t φ ψ q |
| 142 | have hlower := hamilton_quadratic_lower_bound_of_bound (F.connection t) |
| 143 | (hC.tensor_calculus n M (F.metric t) (F.connection t)) ht.1.le q.val.1.val.1 |
| 144 | (hcurv t ht q.val.1.val.1 q.property.1) |
| 145 | (hbound t ht q.val.1.val.1 q.property.1) U W hU |
| 146 | have hp := hscalar _ _ _ hlower hn |
| 147 | change 0 < perturbedHamiltonDirectionQuadratic F 0 φ ψ t q |
| 148 | rw [heq t, perturbedHamiltonFixedQuadratic_self F 0 t q.val.1.val.1 |
| 149 | (fun s y => φ (s, y)) ψ U W hU] |
| 150 | simpa only [sub_zero, |
| 151 | Real.sq_sqrt (Finset.sum_nonneg (fun a _ => sq_nonneg (W a))), |
| 152 | Real.sq_sqrt (Finset.sum_nonneg (fun a _ => |
| 153 | Finset.sum_nonneg (fun b _ => sq_nonneg (U a b))))] using hp |
| 154 | obtain ⟨L, hL, hLV, houtside⟩ := S.exists_compact_quadratic_perturbation_pos_on |
| 155 | V hproper hCnonneg hε hδ hApos.le (T := T) |
| 156 | obtain ⟨t₀, ht₀, hinitial⟩ := S.exists_initial_time_quadratic_perturbation_pos |
| 157 | hCnonneg hε hδ hApos.le |
| 158 | intro t ht q |
| 159 | let a := min t t₀ / 2 |
| 160 | have ha : 0 < a := half_pos (lt_min ht.1 ht₀) |
| 161 | have hat : a ≤ t := (half_le_self (le_of_lt (lt_min ht.1 ht₀))).trans (min_le_left _ _) |
| 162 | have hat₀ : a ≤ t₀ := (half_le_self (le_of_lt (lt_min ht.1 ht₀))).trans (min_le_right _ _) |
| 163 | have haT : a ≤ T := hat.trans ht.2 |
| 164 | have htime {s : ℝ} (hs : s ∈ Icc a T) : s ∈ Ioc 0 T := ⟨ha.trans_le hs.1, hs.2⟩ |
| 165 | have hφspace (s : ℝ) : ContMDiff (𝓡 n) 𝓘(ℝ, ℝ) ∞ (fun x => φ (s, x)) := by |
| 166 | simpa only [φ, mul_div_right_comm, Pi.mul_apply] using! |
| 167 | (contMDiff_const.mul S.smooth : ContMDiff (𝓡 n) 𝓘(ℝ, ℝ) ∞ |
| 168 | (fun y => (ε * Real.exp (A * s) / s) * S.toFun y)) |
| 169 | have hcontinuous : ContinuousOn (Function.uncurry Q) (univ ×ˢ Icc a T) := by |
| 170 | rintro ⟨p, s⟩ hs |
| 171 | have hspos := (htime hs.2).1 |
| 172 | have hφcont : ContinuousAt φ (s, p.val.1.val.1) := by |
| 173 | apply ContinuousAt.div _ continuousAt_fst hspos.ne' |
| 174 | exact ((continuousAt_const.mul ((Real.continuous_exp.continuousAt).comp |
| 175 | (continuousAt_const.mul continuousAt_fst))).mul |
| 176 | (S.smooth.continuous.continuousAt.comp continuousAt_snd)) |
| 177 | have hψcont : ContinuousAt ψ s := by dsimp only [ψ]; fun_prop |
| 178 | exact ((continuousAt_perturbedHamiltonDirectionQuadratic hC F 0 (hJ (htime hs.2)) |
| 179 | (by simpa using hspos.ne') p.val hφcont hψcont).comp |
| 180 | (f := fun z : normalizedDirections g V × ℝ => (z.2, z.1.val)) |
| 181 | (continuousAt_snd.prodMk (continuousAt_subtype_val.comp continuousAt_fst))).continuousWithinAt |
| 182 | have hderiv (p : normalizedDirections g V) (s : ℝ) (hs : s ∈ Ioc a T) : |
| 183 | HasDerivWithinAt (Q p) (deriv (Q p) s) (Icc a T) s := by |
| 184 | have hs' := htime (Ioc_subset_Icc_self hs) |
| 185 | apply HasDerivAt.hasDerivWithinAt |
| 186 | apply DifferentiableAt.hasDerivAt |
| 187 | apply differentiableAt_perturbedHamiltonDirectionQuadratic hC F 0 |
| 188 | (hJ hs') (by simpa using hs'.1.ne') p.val |
| 189 | · exact ((S.hasDerivAt_exp_mul ε A s p.val.1.val.1).div |
| 190 | (hasDerivAt_id s) hs'.1.ne').differentiableAt |
| 191 | · exact (((hasDerivAt_id s).const_mul A).exp.const_mul δ).differentiableAt |
| 192 | have hcontact (p : normalizedDirections g V) (s : ℝ) (hs : s ∈ Ioc a T) |
| 193 | (hzero : Q p s = 0) (hnonneg : ∀ r, 0 ≤ Q r s) : 0 < deriv (Q p) s := by |
| 194 | have hs' := htime (Ioc_subset_Icc_self hs) |
| 195 | obtain ⟨U, W, hU, hn, heq⟩ := normalized_direction_coordinates hC F g V 0 s φ ψ p |
| 196 | have heqfun : Q p = perturbedHamiltonFixedQuadratic F 0 s p.val.1.val.1 |
| 197 | (fun r y => φ (r, y)) ψ U W := funext heq |
| 198 | have hblock := perturbed_block_of_normalized_nonneg hC F g V 0 (hJ hs') |
| 199 | φ ψ (hφspace s) hnonneg |
| 200 | have hψ : δ * Real.exp (A * s) ≤ 1 := le_trans |
| 201 | (mul_le_mul_of_nonneg_left (Real.exp_le_exp.mpr |
| 202 | (mul_le_mul_of_nonneg_left hs'.2 hApos.le)) hδ.le) hψone |
| 203 | rw [heqfun] |
| 204 | apply deriv_perturbedHamiltonFixedQuadratic_pos hC S (hJ hs') hs'.1 hs'.2 hK |
| 205 | p.val.1.val.1 (hbound s hs' p.val.1.val.1 p.property.1) hε hδ hA hsmall hψ U W hU hn |
| 206 | · filter_upwards [hV.mem_nhds p.property.1] with y hy |
| 207 | simpa only [sub_zero] using hblock y hy |
| 208 | · exact (heq s).symm.trans hzero |
| 209 | have hp := Poincare.Parabolic.pos_of_deriv_pos_at_first_zero_of_pos_outside_compact |
| 210 | (isCompact_normalizedDirections_over g V hL hLV) hcontinuous hderiv hcontact |
| 211 | (fun p => hpositive a ⟨ha, haT⟩ p (hinitial a ⟨ha, hat₀⟩ p.val.1.val.1)) |
| 212 | (fun p hp s hs => hpositive s (htime hs) p |
| 213 | (houtside s (htime hs) p.val.1.val.1 p.property.1 hp)) |
| 214 | exact hp q t ⟨hat, ht.2⟩ |
| 215 | |
| 216 | /-- Hamilton's block is nonnegative on an open spatial set when the |
| 217 | exhaustion sublevels there are compact and the curvature derivatives are bounded. -/ |
| 218 | theorem hamiltonBlockPos_on_open_set_of_smoothExhaustion |
| 219 | {n : ℕ} {M : Type u} [TopologicalSpace M] |
| 220 | [ChartedSpace (EuclideanSpace ℝ (Fin n)) M] |
| 221 | [IsManifold (𝓡 n) ∞ M] [T2Space M] |
| 222 | (hC : RicciFlowCurvatureCalculus.{u}) |
| 223 | {a b T : ℝ} (F : RicciFlow n M (Ioo a b)) (O : M) |
| 224 | (S : RicciFlow.SmoothExhaustion F O) (V : Set M) (hV : IsOpen V) |
| 225 | (hproper : ∀ r : ℝ, IsCompact {x | S.toFun x ≤ r ∧ x ∈ V}) |
| 226 | (hT : 0 < T) (hJ : Ioc 0 T ⊆ Ioo a b) |
| 227 | {K : ℝ} (hK : 0 ≤ K) |
| 228 | (hbound : ∀ t ∈ Ioc 0 T, ∀ x ∈ V, ∀ j ≤ 2, |
| 229 | (F.connection t).curvatureDerivativeNorm j x ≤ K) |
| 230 | (hcurv : ∀ t ∈ Ioc 0 T, ∀ x ∈ V, |
| 231 | (F.connection t).NonnegativeCurvatureOperator x) : |
| 232 | ∀ t ∈ Ioc 0 T, ∀ x ∈ V, HamiltonBlockPos F t x t := by |
| 233 | let C := hamiltonPerturbationErrorBound n K T |
| 234 | let A := C + (n : ℝ) * S.bound + 1 |
| 235 | let η := (C + 1) / Real.exp (A * T) |
| 236 | have hCpos : 0 < C := hamiltonPerturbationErrorBound_pos hK hT.le |
| 237 | have hden : 0 < C + 1 := by linarith |
| 238 | have hη : 0 < η := div_pos hden (Real.exp_pos _) |
| 239 | have hrate : C + (n : ℝ) * S.bound < A := by dsimp only [A]; linarith |
| 240 | have hJ' : Ioc 0 T ⊆ interior (Ioo a b) := by simpa only [interior_Ioo] using hJ |
| 241 | intro t ht x hx |
| 242 | have hnonneg (g : RiemannianMetric n M) (q : normalizedDirections g V) : |
| 243 | 0 ≤ hamiltonDirectionQuadratic F 0 t q := by |
| 244 | let Q := fun ε : ℝ => perturbedHamiltonDirectionQuadratic F 0 |
| 245 | (fun p => ε * Real.exp (A * p.1) * S.toFun p.2 / p.1) |
| 246 | (fun s => (ε / (C + 1)) * Real.exp (A * s)) t q |
| 247 | have hcont : Continuous Q := by |
| 248 | dsimp only [Q, perturbedHamiltonDirectionQuadratic] |
| 249 | fun_prop |
| 250 | have hlim : Filter.Tendsto Q (𝓝[>] (0 : ℝ)) (𝓝 (hamiltonDirectionQuadratic F 0 t q)) := by |
| 251 | simpa only [Q, perturbedHamiltonDirectionQuadratic, zero_mul, zero_div, add_zero] using! |
| 252 | (hcont.continuousAt (x := 0)).tendsto.mono_left |
| 253 | (nhdsWithin_le_nhds : 𝓝[>] (0 : ℝ) ≤ 𝓝 0) |
| 254 | apply ge_of_tendsto hlim |
| 255 | filter_upwards [Ioo_mem_nhdsGT hη] with ε hε |
| 256 | have hδ : 0 < ε / (C + 1) := div_pos hε.1 hden |
| 257 | have hsmall : C * (ε / (C + 1)) ≤ ε := by |
| 258 | rw [← mul_div_assoc] |
| 259 | apply (div_le_iff₀ hden).2 |
| 260 | nlinarith only [hε.1] |
| 261 | have hψ : (ε / (C + 1)) * Real.exp (A * T) ≤ 1 := by |
| 262 | rw [div_mul_eq_mul_div] |
| 263 | apply (div_le_iff₀ hden).2 |
| 264 | have hh := (le_div_iff₀ (Real.exp_pos (A * T))).mp hε.2.le |
| 265 | simpa only [one_mul] using hh |
| 266 | exact (normalized_exp_quadratic_pos hC F g S V hV hproper hT hJ' hK hbound hcurv |
| 267 | hε.1 hδ hrate hsmall hψ t ht q).le |
| 268 | apply hamiltonBlockPos_of_reference_unit_tests hC F (F.metric t) (hJ ht) t x |
| 269 | let : Bundle.RiemannianBundle (TangentSpace (𝓡 n) : M → Type _) := |
| 270 | ⟨(F.metric t).toRiemannianMetric⟩ |
| 271 | intro e he z hz hskew |
| 272 | have hn : frameDirection x e z ∈ normalizedDirections (F.metric t) V := ⟨hx, he, hz, hskew⟩ |
| 273 | have h := hnonneg (F.metric t) ⟨frameDirection x e z, hn⟩ |
| 274 | simpa only [hamiltonDirectionQuadratic, frameDirection, FiberFamily.vector, |
| 275 | cast_eq, sub_zero] using h |
| 276 | |
| 277 | /-- The global Hamilton block is nonnegative when the curvature derivatives |
| 278 | are bounded and the flow has a proper smooth distance-like exhaustion. -/ |
| 279 | theorem hamiltonBlockPos_of_smoothExhaustion |
| 280 | {n : ℕ} {M : Type u} [TopologicalSpace M] |
| 281 | [ChartedSpace (EuclideanSpace ℝ (Fin n)) M] |
| 282 | [IsManifold (𝓡 n) ∞ M] [T2Space M] |
| 283 | (hC : RicciFlowCurvatureTheory.{u}) |
| 284 | {a b T : ℝ} (F : RicciFlow n M (Ioo a b)) (O : M) |
| 285 | (S : RicciFlow.SmoothExhaustion F O) |
| 286 | (hproper : ∀ r : ℝ, IsCompact {x | S.toFun x ≤ r}) |
| 287 | (hT : 0 < T) (hJ : Ioc 0 T ⊆ Ioo a b) |
| 288 | {K : ℝ} (hK : 0 ≤ K) |
| 289 | (hbound : ∀ t ∈ Ioc 0 T, ∀ x, ∀ j ≤ 2, |
| 290 | (F.connection t).curvatureDerivativeNorm j x ≤ K) |
| 291 | (hcurv : ∀ t ∈ Ioc 0 T, ∀ x, |
| 292 | (F.connection t).NonnegativeCurvatureOperator x) : |
| 293 | ∀ t ∈ Ioc 0 T, ∀ x, HamiltonBlockPos F t x t := by |
| 294 | have hp := hamiltonBlockPos_on_open_set_of_smoothExhaustion hC F O S univ isOpen_univ |
| 295 | (fun r => by simpa only [mem_univ, and_true] using hproper r) hT hJ hK |
| 296 | (fun t ht x _ => hbound t ht x) (fun t ht x _ => hcurv t ht x) |
| 297 | exact fun t ht x => hp t ht x (mem_univ x) |
| 298 | |
| 299 | end Poincare.RicciFlow.Harnack |