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.Curvature.Nonnegative |
| 2 | import PoincareLib.Geometry.RicciFlow.Surgery.StandardCap.Existence.Geometry.Curvature.SectionalPositiveTransfer |
| 3 | |
| 4 | /-! |
| 5 | # Strict sectional positivity of every partial cap flow |
| 6 | |
| 7 | The actual round-tip metric supplies a uniform positive plane seed at |
| 8 | the origin. Nonnegative sectional curvature and the local heat barriers |
| 9 | propagate it to all points at positive times. The conclusion uses the |
| 10 | frozen actual-metric orthonormal-pair predicate (Lemma 12.6, pp. 297-298). |
| 11 | -/ |
| 12 | |
| 13 | set_option autoImplicit false |
| 14 | |
| 15 | open Set |
| 16 | open scoped Manifold ContDiff Bundle |
| 17 | |
| 18 | namespace PoincareMT.M34 |
| 19 | |
| 20 | open M04 |
| 21 | |
| 22 | /-- The round tip supplies a positive least-plane value at the origin |
| 23 | for every supplied standard initial metric (Lemma 12.6, pp. 297-298). -/ |
| 24 | theorem initial_modelLeastSectional_tip_pos (g0 : StandardInitialMetric) : |
| 25 | 0 < modelLeastSectional g0.connection 0 := by |
| 26 | let : Bundle.RiemannianBundle (TangentSpace (𝓡 3) : StandardCapSpace → Type _) := |
| 27 | ⟨g0.metric.toRiemannianMetric⟩ |
| 28 | obtain ⟨r, hr, htip⟩ := g0.tip_sectional_curvature |
| 29 | have hball : (0 : StandardCapSpace) ∈ g0.metric.ball 0 r := by |
| 30 | change Manifold.riemannianEDist (𝓡 3) (0 : StandardCapSpace) 0 < ENNReal.ofReal r |
| 31 | rw [Manifold.riemannianEDist_self] |
| 32 | exact ENNReal.ofReal_pos.mpr hr |
| 33 | have hbar (u v : TangentSpace (𝓡 3) (0 : StandardCapSpace)) : |
| 34 | (1 / 4 : ℝ) * metricGram g0.metric 0 u v ≤ |
| 35 | g0.connection.curvatureTensor 0 u v u v := by |
| 36 | apply sectional_lower_of_surjective_linearMap g0.connection 0 |
| 37 | (LinearMap.id : TangentSpace (𝓡 3) (0 : StandardCapSpace) →ₗ[ℝ] |
| 38 | TangentSpace (𝓡 3) (0 : StandardCapSpace)) Function.surjective_id |
| 39 | intro p q hp hq hpq |
| 40 | have hpp : g0.metric.inner 0 p p = 1 := by |
| 41 | change inner ℝ p p = 1 |
| 42 | rw [real_inner_self_eq_norm_sq, hp, one_pow] |
| 43 | have hqq : g0.metric.inner 0 q q = 1 := by |
| 44 | change inner ℝ q q = 1 |
| 45 | rw [real_inner_self_eq_norm_sq, hq, one_pow] |
| 46 | have hpq' : g0.metric.inner 0 p q = 0 := hpq |
| 47 | have ho : LeviCivitaData.IsOrthonormalPair g0.metric 0 p q := ⟨hpp, hqq, hpq'⟩ |
| 48 | have h := htip 0 hball p q ho |
| 49 | simp only [LeviCivitaData.sectionalCurvature, hpp, hqq, hpq', one_mul, |
| 50 | zero_pow (by norm_num : 2 ≠ 0), sub_zero, div_one] at h |
| 51 | simpa only [LinearMap.id_apply, metricGram, hpp, hqq, hpq', one_mul, |
| 52 | zero_pow (by norm_num : 2 ≠ 0), sub_zero, mul_one] using h.ge |
| 53 | have hleast : (1 / 4 : ℝ) ≤ modelLeastSectional g0.connection 0 := by |
| 54 | apply le_modelLeastSectional |
| 55 | intro p hp |
| 56 | exact (le_div_iff₀ (metricGram_pos_of_linearIndependent g0.metric 0 p.1 p.2 |
| 57 | (modelOrthonormalPairs_linearIndependent hp))).mpr (hbar p.1 p.2) |
| 58 | exact lt_of_lt_of_le (by norm_num) hleast |
| 59 | |
| 60 | /-- Every partial standard-cap flow has strictly positive sectional |
| 61 | curvature at every positive included time (Lemma 12.6, pp. 297-298). -/ |
| 62 | theorem partialFlow_positiveSectional (P : RicciFlowCurvatureTheory.{0}) |
| 63 | {g0 : StandardInitialMetric} (E0 : StandardCapEstimate g0) |
| 64 | (F : PartialStandardCapFlow g0) : |
| 65 | ∀ t ∈ Ioo 0 F.lifetime, StandardCapPositiveSectional (F.flow.connection t) := by |
| 66 | have hpair : (⟨F.flow.metric 0, F.flow.connection 0⟩ : |
| 67 | Σ g : RiemannianMetric 3 StandardCapSpace, LeviCivitaData g) = |
| 68 | ⟨g0.metric, g0.connection⟩ := |
| 69 | Sigma.mk.inj_iff.mpr ⟨F.initial_metric, F.initial_connection⟩ |
| 70 | have hzero : 0 < modelLeastSectional (F.flow.connection 0) 0 := by |
| 71 | have heq := congrArg (fun p : Σ g : RiemannianMetric 3 StandardCapSpace, |
| 72 | LeviCivitaData g => modelLeastSectional p.2 0) hpair |
| 73 | rw [heq] |
| 74 | exact initial_modelLeastSectional_tip_pos g0 |
| 75 | intro t ht |
| 76 | have hJ : Icc 0 t ⊆ Ico 0 F.lifetime := fun _ hs => ⟨hs.1, hs.2.trans_lt ht.2⟩ |
| 77 | have hpos := modelLeastSectional_positive_later ht.1 F.flow hJ |
| 78 | (fun s hs => partialFlow_nonnegativeSectionalCurvature P E0 F s (hJ hs)) 0 hzero |
| 79 | intro x u v ho |
| 80 | have h := sectional_lower_of_model_pairs (F.flow.connection t) x |
| 81 | (modelLeastSectional (F.flow.connection t) x) |
| 82 | (fun p hp => modelLeastSectional_le (F.flow.connection t) x p hp) u v |
| 83 | have hgram : metricGram (F.flow.metric t) x u v = 1 := by |
| 84 | simp only [metricGram, ho.1, ho.2.1, ho.2.2, one_mul, |
| 85 | zero_pow (by norm_num : 2 ≠ 0), sub_zero] |
| 86 | rw [hgram, mul_one] at h |
| 87 | have hcurv := (hpos x).trans_le h |
| 88 | simpa only [LeviCivitaData.sectionalCurvature, ho.1, ho.2.1, ho.2.2, one_mul, |
| 89 | zero_pow (by norm_num : 2 ≠ 0), sub_zero, div_one] using hcurv |
| 90 | |
| 91 | end PoincareMT.M34 |