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.Topology.Manifold.Poincare.Final.Compatibility.SourceNames |
| 2 | import PoincareLib.Geometry.RicciFlow.Surgery.Induction.Noncollapse.Assembly.PositiveComponents.PositiveSectionalContinuation |
| 3 | |
| 4 | /-! |
| 5 | # The actual positive time interval of a compact ordinary flow |
| 6 | |
| 7 | Compact fixed sectional parameters give relative openness in time. |
| 8 | The quantitative sectional maximum principle gives forward preservation. |
| 9 | Source: Morgan--Tian, Lemma 4.13 and pp. 393-394. |
| 10 | -/ |
| 11 | |
| 12 | set_option autoImplicit false |
| 13 | set_option backward.isDefEq.respectTransparency false |
| 14 | |
| 15 | open Set Filter |
| 16 | open scoped Manifold ContDiff Bundle Topology |
| 17 | |
| 18 | universe u |
| 19 | |
| 20 | namespace PoincareMT.M47Positive |
| 21 | |
| 22 | open PoincareMT.M04 Proofs.M46 |
| 23 | |
| 24 | variable {M : Type u} [TopologicalSpace M] |
| 25 | [ChartedSpace (EuclideanSpace ℝ (Fin 3)) M] [IsManifold (𝓡 3) ∞ M] |
| 26 | [CompactSpace M] {J : Set ℝ} |
| 27 | |
| 28 | /-- Strict positivity on a compact included slice persists on a relative |
| 29 | time neighborhood by the actual compact quotient parameters; pp. 393-394. -/ |
| 30 | theorem sectional_positive_eventually (F : RicciFlow 3 M J) |
| 31 | {t : ℝ} (ht : t ∈ J) |
| 32 | (hpos : ∀ x : M, ∀ u v : TangentSpace (𝓡 3) x, |
| 33 | LeviCivitaData.IsOrthonormalPair (F.metric t) x u v → |
| 34 | 0 < (F.connection t).sectionalCurvature x u v) : |
| 35 | ∀ᶠ s in 𝓝[J] t, ∀ x : M, ∀ u v : TangentSpace (𝓡 3) x, |
| 36 | LeviCivitaData.IsOrthonormalPair (F.metric s) x u v → |
| 37 | 0 < (F.connection s).sectionalCurvature x u v := by |
| 38 | obtain ⟨c, hc, hmin⟩ := exists_initial_sectional_lower F ht isClosed_univ |
| 39 | (fun x _ => hpos x) |
| 40 | obtain ⟨P⟩ := compactSectionalParameters F |
| 41 | let q : ℝ × P.carrier → ℝ := fun p => |
| 42 | (F.connection p.1).curvatureTensor (P.point p.2) (P.left p.2) (P.right p.2) |
| 43 | (P.left p.2) (P.right p.2) / |
| 44 | metricGram (F.metric p.1) (P.point p.2) (P.left p.2) (P.right p.2) |
| 45 | have hgram (s : ℝ) (z : P.carrier) : |
| 46 | 0 < metricGram (F.metric s) (P.point z) (P.left z) (P.right z) := |
| 47 | metricGram_pos_of_linearIndependent (F.metric s) _ _ _ (P.independent z) |
| 48 | have hq (z : P.carrier) : c ≤ q (t, z) := |
| 49 | (le_div_iff₀ (hgram t z)).mpr (hmin _ (mem_univ _) _ _) |
| 50 | have hprod : ∀ᶠ p : ℝ × P.carrier in (𝓝[J] t) ×ˢ 𝓝ˢ (univ : Set P.carrier), |
| 51 | c / 2 < q p := by |
| 52 | apply isCompact_univ.mem_prod_nhdsSet_of_forall |
| 53 | intro z _ |
| 54 | have hnear := (P.continuous_quotient (t, z) ⟨ht, mem_univ z⟩).eventually |
| 55 | (Ioi_mem_nhds ((half_lt_self hc).trans_le (hq z))) |
| 56 | simp only [nhdsWithin_prod_eq, nhdsWithin_univ] at hnear |
| 57 | convert! hnear using 1 |
| 58 | have hnear : ∀ᶠ s in 𝓝[J] t, ∀ z : P.carrier, c / 2 < q (s, z) := |
| 59 | hprod.curry.mono (fun _ hs z => hs.self_of_nhdsSet z (mem_univ z)) |
| 60 | filter_upwards [hnear] with s hs x u v huv |
| 61 | have h := P.complete s (c / 2) (fun z => |
| 62 | (le_div_iff₀ (hgram s z)).mp (hs z).le) x u v |
| 63 | have hcuv : c / 2 ≤ (F.connection s).curvatureTensor x u v u v := by |
| 64 | simpa [metricGram, huv.1, huv.2.1, huv.2.2] using h |
| 65 | have hcurv := (half_pos hc).trans_le hcuv |
| 66 | simpa [LeviCivitaData.sectionalCurvature, huv.1, huv.2.1, huv.2.2] using hcurv |
| 67 | |
| 68 | /-- A strictly positive compact slice stays positive at every later |
| 69 | included time of the same ordinary flow; Lemma 4.13, pp. 68-69. -/ |
| 70 | theorem sectional_positive_at_later_time [T2Space M] [SecondCountableTopology M] |
| 71 | (F : RicciFlow 3 M J) {s t : ℝ} (hs : s ∈ J) (ht : t ∈ J) (hst : s ≤ t) |
| 72 | (hpos : ∀ x : M, ∀ u v : TangentSpace (𝓡 3) x, |
| 73 | LeviCivitaData.IsOrthonormalPair (F.metric s) x u v → |
| 74 | 0 < (F.connection s).sectionalCurvature x u v) : |
| 75 | ∀ x : M, ∀ u v : TangentSpace (𝓡 3) x, |
| 76 | LeviCivitaData.IsOrthonormalPair (F.metric t) x u v → |
| 77 | 0 < (F.connection t).sectionalCurvature x u v := by |
| 78 | rcases lt_or_eq_of_le hst with hst | rfl |
| 79 | · obtain ⟨c, hc, hmin⟩ := exists_initial_sectional_lower F hs isClosed_univ |
| 80 | (fun x _ => hpos x) |
| 81 | have hbound := sectional_lower_on_closed_interval F hst hc.le |
| 82 | (F.interval.out hs ht) isOpen_univ isClosed_univ hmin t ⟨hst.le, le_rfl⟩ |
| 83 | intro x u v huv |
| 84 | have hcuv : c ≤ (F.connection t).curvatureTensor x u v u v := by |
| 85 | simpa [metricGram, huv.1, huv.2.1, huv.2.2] using hbound x (mem_univ x) u v |
| 86 | have hcurv := hc.trans_le hcuv |
| 87 | simpa [LeviCivitaData.sectionalCurvature, huv.1, huv.2.1, huv.2.2] using hcurv |
| 88 | · exact hpos |
| 89 | |
| 90 | /-- A positive included slice strictly after the first time has a |
| 91 | strictly earlier positive slice in the same actual interval; pp. 393-394. -/ |
| 92 | theorem exists_earlier_positive_time {a b t : ℝ} |
| 93 | (F : RicciFlow 3 M (Icc a b)) (hat : a < t) (htb : t ≤ b) |
| 94 | (hpos : ∀ x : M, ∀ u v : TangentSpace (𝓡 3) x, |
| 95 | LeviCivitaData.IsOrthonormalPair (F.metric t) x u v → |
| 96 | 0 < (F.connection t).sectionalCurvature x u v) : |
| 97 | ∃ s ∈ Ioo a t, ∀ x : M, ∀ u v : TangentSpace (𝓡 3) x, |
| 98 | LeviCivitaData.IsOrthonormalPair (F.metric s) x u v → |
| 99 | 0 < (F.connection s).sectionalCurvature x u v := by |
| 100 | have hnear := sectional_positive_eventually F ⟨hat.le, htb⟩ hpos |
| 101 | have hdom : Icc a b ∈ 𝓝[<] t := by |
| 102 | filter_upwards [Ioo_mem_nhdsLT hat] with s hs |
| 103 | exact ⟨hs.1.le, hs.2.le.trans htb⟩ |
| 104 | have hnear' := hnear.filter_mono (nhdsWithin_le_of_mem hdom) |
| 105 | obtain ⟨s, hs, hsp⟩ := (Filter.Eventually.and (Ioo_mem_nhdsLT hat) hnear').exists |
| 106 | exact ⟨s, hs, hsp⟩ |
| 107 | |
| 108 | end PoincareMT.M47Positive |