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.Induction.Noncollapse.Assembly.PositiveComponents.TerminalSectionalLowerBound |
| 2 | import PoincareLib.Geometry.RicciFlow.Surgery.Induction.Noncollapse.Assembly.PositiveComponents.PositiveSurgeryMetric |
| 3 | |
| 4 | /-! |
| 5 | # Positive components through ordinary slabs and single events |
| 6 | |
| 7 | Morgan--Tian's positive-component argument, p. 393. The preterminal |
| 8 | reference is an arbitrary included time of the actual pre-flow. Its |
| 9 | positive lower bound is chosen once and retained at the terminal limit. |
| 10 | -/ |
| 11 | |
| 12 | set_option autoImplicit false |
| 13 | set_option backward.isDefEq.respectTransparency false |
| 14 | |
| 15 | open Set Filter Topology |
| 16 | open scoped Manifold ContDiff Bundle |
| 17 | |
| 18 | universe u |
| 19 | |
| 20 | namespace PoincareMT.M04 |
| 21 | end PoincareMT.M04 |
| 22 | open PoincareMT.RicciFlowAnalysis |
| 23 | |
| 24 | namespace PoincareMT.Proofs.M46 |
| 25 | |
| 26 | open M04 |
| 27 | |
| 28 | /-- The actual ordinary transports carry positive components forward. -/ |
| 29 | theorem positive_component_regular_transport |
| 30 | (F : SurgeryFlowData.{u}) {a b : ℝ} (hab : a < b) |
| 31 | (hI : Icc a b ⊆ F.time_domain) (hfree : Disjoint F.surgery_times (Ioc a b)) |
| 32 | (s t : Icc a b) (hst : s.1 ≤ t.1) (x : (F.slice s.1).carrier) |
| 33 | (hpos : SurgeryPositiveComponentAt F s.1 x) : |
| 34 | SurgeryPositiveComponentAt F t.1 |
| 35 | ((F.regular_slabs a b hab hI hfree).transport s t x) := by |
| 36 | let slab := F.regular_slabs a b hab hI hfree |
| 37 | let : CompactSpace (F.slice a).carrier := |
| 38 | isCompact_univ_iff.mp (F.slices_compact a (hI ⟨le_rfl, hab.le⟩)) |
| 39 | let z := (slab.identify s).symm x |
| 40 | have hstart : ∀ y ∈ connectedComponent z, ∀ u v : TangentSpace (𝓡 3) y, |
| 41 | LeviCivitaData.IsOrthonormalPair (slab.flow.metric s.1) y u v → |
| 42 | 0 < (slab.flow.connection s.1).sectionalCurvature y u v := by |
| 43 | apply (component_positive_iff_of_diffeomorph (slab.flow.connection s.1) |
| 44 | (F.connection s.1) (slab.identify s) |
| 45 | (fun y u v => (slab.metric_pullback s y u v).symm) z).mpr |
| 46 | simpa only [z, Diffeomorph.apply_symm_apply, SurgeryPositiveComponentAt] using hpos |
| 47 | obtain ⟨c, hc, hbound⟩ := positive_sectional_uniform_on_component |
| 48 | slab.flow s.2 z hstart |
| 49 | have hterminal : ∀ y ∈ connectedComponent z, ∀ u v : TangentSpace (𝓡 3) y, |
| 50 | LeviCivitaData.IsOrthonormalPair (slab.flow.metric t.1) y u v → |
| 51 | 0 < (slab.flow.connection t.1).sectionalCurvature y u v := by |
| 52 | intro y hy u v hpair |
| 53 | have h := hbound t.1 t.2 hst y hy u v |
| 54 | simp only [metricGram, hpair.1, hpair.2.1, hpair.2.2, |
| 55 | zero_pow (by decide : 2 ≠ 0), sub_zero, mul_one] at h |
| 56 | simpa only [LeviCivitaData.sectionalCurvature, hpair.1, hpair.2.1, hpair.2.2, |
| 57 | one_mul, zero_pow (by decide : 2 ≠ 0), sub_zero, div_one] using hc.trans_le h |
| 58 | exact (component_positive_iff_of_diffeomorph (slab.flow.connection t.1) |
| 59 | (F.connection t.1) (slab.identify t) |
| 60 | (fun y u v => (slab.metric_pullback t y u v).symm) z).mp hterminal |
| 61 | |
| 62 | /-- A positive component at any fresh pre-event reference has positive |
| 63 | retained children. No assertion is made at the earlier decoration tMinus. -/ |
| 64 | theorem positive_component_surgery_from_reference |
| 65 | (F : SurgeryFlowData.{u}) {T : ℝ} (hT : T ∈ F.surgery_times) |
| 66 | [Nonempty (F.slice T).carrier] |
| 67 | (v : Ico (F.event T hT).tMinus T) |
| 68 | (x : (F.slice (F.event T hT).tMinus).carrier) |
| 69 | (hpos : SurgeryPositiveComponentAt F v.1 ((F.event T hT).pre_identify v x)) : |
| 70 | ∀ q ∈ (F.event T hT).retained_pre ∩ connectedComponent x, |
| 71 | SurgeryPositiveComponentAt F T ((F.event T hT).retention.map q) := by |
| 72 | let event := F.event T hT |
| 73 | have htm : event.tMinus ∈ F.time_domain := |
| 74 | F.time_domain_interval.out F.zero_mem (F.surgery_times_subset hT) |
| 75 | ⟨event.tMinus_nonnegative, event.tMinus_lt.le⟩ |
| 76 | let : CompactSpace (F.slice event.tMinus).carrier := |
| 77 | isCompact_univ_iff.mp (F.slices_compact event.tMinus htm) |
| 78 | let : LocallyConnectedSpace (F.slice event.tMinus).carrier := |
| 79 | ChartedSpace.locallyConnectedSpace (EuclideanSpace ℝ (Fin 3)) _ |
| 80 | have hstart : ∀ y ∈ connectedComponent x, ∀ u w : TangentSpace (𝓡 3) y, |
| 81 | LeviCivitaData.IsOrthonormalPair (event.pre_flow.metric v.1) y u w → |
| 82 | 0 < (event.pre_flow.connection v.1).sectionalCurvature y u w := |
| 83 | (component_positive_iff_of_diffeomorph (event.pre_flow.connection v.1) |
| 84 | (F.connection v.1) (event.pre_identify v) |
| 85 | (fun y u w => (event.pre_metric v y u w).symm) x).mpr hpos |
| 86 | obtain ⟨c, hc, hbound⟩ := positive_sectional_uniform_on_component |
| 87 | event.pre_flow v.2 x hstart |
| 88 | have hterminal : ∀ q ∈ connectedComponent x, q ∈ event.regular_limit → |
| 89 | ∀ u w : TangentSpace (𝓡 3) (event.limit_identify.map q), |
| 90 | LeviCivitaData.IsOrthonormalPair event.limit_metric (event.limit_identify.map q) u w → |
| 91 | 0 < event.limit_connection.sectionalCurvature (event.limit_identify.map q) u w := by |
| 92 | intro q hq hreg |
| 93 | apply terminal_sectional_positive_of_preterminal event hreg hc |
| 94 | filter_upwards [Ico_mem_nhdsLT v.2.2] with t ht |
| 95 | exact hbound t ⟨v.2.1.trans ht.1, ht.2⟩ ht.1 q hq |
| 96 | intro q hq |
| 97 | exact positive_sectional_child_component event (F.connection T) |
| 98 | isClopen_connectedComponent hterminal hq |
| 99 | |
| 100 | end PoincareMT.Proofs.M46 |