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.Surgery.StandardCap.Existence.InitialEstimates.SlopeMonotonicity |
| 2 | import PoincareLib.Geometry.Riemannian.Curvature.SectionalBounds |
| 3 | |
| 4 | /-! |
| 5 | # A positive angular plane near the tip |
| 6 | |
| 7 | Morgan-Tian Lemma 12.3, pp. 294-295. The round-tip hypothesis concerns |
| 8 | actual metric orthonormal pairs. Normalize the two angular axis vectors |
| 9 | using the positive angular coefficient before applying that hypothesis. |
| 10 | Continuity of radial length places an entire short axis segment in the |
| 11 | tip ball. This includes the origin and supplies a strict slope bound. |
| 12 | -/ |
| 13 | |
| 14 | set_option autoImplicit false |
| 15 | |
| 16 | open Set Filter |
| 17 | open scoped Manifold ContDiff Bundle Topology |
| 18 | |
| 19 | namespace PoincareMT.M34 |
| 20 | |
| 21 | set_option backward.isDefEq.respectTransparency false in |
| 22 | /-- The normalized angular coordinate pair is genuinely orthonormal |
| 23 | for the supplied metric, including at the tip (Lemma 12.3, pp. 294-295). -/ |
| 24 | theorem initialAxis_angular_orthonormal (g₀ : StandardInitialMetric) (r : ℝ) : |
| 25 | let α := (Real.sqrt (initialAngularCoefficient g₀ r))⁻¹ |
| 26 | LeviCivitaData.IsOrthonormalPair g₀.metric (EuclideanSpace.single (0 : Fin 3) r) |
| 27 | (α • EuclideanSpace.single (1 : Fin 3) (1 : ℝ)) |
| 28 | (α • EuclideanSpace.single (2 : Fin 3) (1 : ℝ)) := by |
| 29 | let x : StandardCapSpace := EuclideanSpace.single 0 r |
| 30 | let b := fun i : Fin 3 => EuclideanSpace.single i (1 : ℝ) |
| 31 | let B : StandardCapSpace →L[ℝ] StandardCapSpace →L[ℝ] ℝ := g₀.metric.inner x |
| 32 | let c := initialAngularCoefficient g₀ r |
| 33 | let α := (Real.sqrt c)⁻¹ |
| 34 | have hc : 0 < c := (initialCoefficients_pos g₀ r).2 |
| 35 | have h11 : B (b 1) (b 1) = c := rfl |
| 36 | have h12 : B (b 1) (b 2) = 0 := (initialMetric_axis_coefficients g₀ r).2.2.1 |
| 37 | have h22 : B (b 2) (b 2) = c := (initialMetric_axis_coefficients g₀ r).2.2.2 |
| 38 | have hs : α * (α * c) = 1 := by |
| 39 | dsimp [α] |
| 40 | field_simp [(Real.sqrt_pos.mpr hc).ne'] |
| 41 | exact (Real.sq_sqrt hc.le).symm |
| 42 | change B (α • b 1) (α • b 1) = 1 ∧ |
| 43 | B (α • b 2) (α • b 2) = 1 ∧ B (α • b 1) (α • b 2) = 0 |
| 44 | refine ⟨?_, ?_, ?_⟩ |
| 45 | · simpa only [map_smul, smul_apply, smul_eq_mul, h11] using hs |
| 46 | · simpa only [map_smul, smul_apply, smul_eq_mul, h22] using hs |
| 47 | · simp only [map_smul, smul_apply, smul_eq_mul, h12, mul_zero] |
| 48 | |
| 49 | set_option backward.isDefEq.respectTransparency false in |
| 50 | /-- Whenever an axis point lies in a round-tip ball, its unnormalized |
| 51 | angular sectional numerator is strictly positive (Lemma 12.3, pp. 294-295). -/ |
| 52 | theorem initialTip_angular_positive (g₀ : StandardInitialMetric) {R r : ℝ} |
| 53 | (htip : ∀ x ∈ g₀.metric.ball 0 R, ∀ u v, |
| 54 | LeviCivitaData.IsOrthonormalPair g₀.metric x u v → |
| 55 | g₀.connection.sectionalCurvature x u v = (1 / 4 : ℝ)) |
| 56 | (hr : EuclideanSpace.single (0 : Fin 3) r ∈ g₀.metric.ball 0 R) : |
| 57 | 0 < g₀.connection.curvatureTensor (EuclideanSpace.single (0 : Fin 3) r) |
| 58 | (EuclideanSpace.single (1 : Fin 3) (1 : ℝ)) |
| 59 | (EuclideanSpace.single (2 : Fin 3) (1 : ℝ)) |
| 60 | (EuclideanSpace.single (1 : Fin 3) (1 : ℝ)) |
| 61 | (EuclideanSpace.single (2 : Fin 3) (1 : ℝ)) := by |
| 62 | let x : StandardCapSpace := EuclideanSpace.single 0 r |
| 63 | let u : StandardCapSpace := EuclideanSpace.single 1 1 |
| 64 | let v : StandardCapSpace := EuclideanSpace.single 2 1 |
| 65 | let α := (Real.sqrt (initialAngularCoefficient g₀ r))⁻¹ |
| 66 | have hα : 0 < α := inv_pos.mpr (Real.sqrt_pos.mpr (initialCoefficients_pos g₀ r).2) |
| 67 | have ho : LeviCivitaData.IsOrthonormalPair g₀.metric x (α • u) (α • v) := |
| 68 | initialAxis_angular_orthonormal g₀ r |
| 69 | have h := htip x hr (α • u) (α • v) ho |
| 70 | unfold LeviCivitaData.sectionalCurvature at h |
| 71 | rw [ho.1, ho.2.1, ho.2.2] at h |
| 72 | norm_num at h |
| 73 | have hp : 0 < g₀.connection.curvatureTensor x (α • u) (α • v) (α • u) (α • v) := by |
| 74 | rw [h] |
| 75 | norm_num |
| 76 | rw [g₀.connection.curvatureTensor_smul_first, |
| 77 | g₀.connection.curvatureTensor_smul_second, |
| 78 | g₀.connection.curvatureTensor_smul_third, |
| 79 | g₀.connection.curvatureTensor_smul_last] at hp |
| 80 | simpa only [mul_pos_iff_of_pos_left hα] using hp |
| 81 | |
| 82 | /-- A whole short positive axis segment, including its origin, has |
| 83 | strictly positive angular numerator (Lemma 12.3, pp. 294-295). -/ |
| 84 | theorem initialTip_angular_positive_segment (g₀ : StandardInitialMetric) : |
| 85 | ∃ δ : ℝ, 0 < δ ∧ ∀ r : ℝ, 0 ≤ r → r < δ → |
| 86 | 0 < g₀.connection.curvatureTensor (EuclideanSpace.single (0 : Fin 3) r) |
| 87 | (EuclideanSpace.single (1 : Fin 3) (1 : ℝ)) |
| 88 | (EuclideanSpace.single (2 : Fin 3) (1 : ℝ)) |
| 89 | (EuclideanSpace.single (1 : Fin 3) (1 : ℝ)) |
| 90 | (EuclideanSpace.single (2 : Fin 3) (1 : ℝ)) := by |
| 91 | obtain ⟨R, hR, htip⟩ := g₀.tip_sectional_curvature |
| 92 | have hz : initialRadialLength g₀ 0 = 0 := by simp [initialRadialLength] |
| 93 | have he : {r : ℝ | initialRadialLength g₀ r < R} ∈ 𝓝 0 := |
| 94 | (initialRadialLength_hasDerivAt g₀ 0).continuousAt |
| 95 | (Iio_mem_nhds (by rw [hz]; exact hR)) |
| 96 | obtain ⟨δ, hδ, hsub⟩ := Metric.mem_nhds_iff.mp he |
| 97 | refine ⟨δ, hδ, fun r hr hrδ => initialTip_angular_positive g₀ htip ?_⟩ |
| 98 | have hlen : initialRadialLength g₀ r < R := hsub (by |
| 99 | simpa only [Metric.mem_ball, Real.dist_eq, sub_zero, abs_of_nonneg hr] using hrδ) |
| 100 | exact (initialAxis_edist_le_radialLength g₀ hr).trans_lt |
| 101 | ((ENNReal.ofReal_lt_ofReal_iff hR).mpr hlen) |
| 102 | |
| 103 | end PoincareMT.M34 |