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.Blowup.Construction.ShortTime.Terminal.TerminalComponentGeometry |
| 2 | import PoincareLib.Geometry.RicciFlow.Blowup.Construction.PartialLimits.MetricConvergence |
| 3 | import PoincareLib.Geometry.Riemannian.Curvature.LocalIsometryInvariants |
| 4 | import PoincareLib.Geometry.Riemannian.Homothety.Curvature.ContractionTransport |
| 5 | |
| 6 | /-! |
| 7 | # Actual scalar and compact source capture of a static terminal limit |
| 8 | |
| 9 | Morgan--Tian Definition 3.40, p. 61, Claim 11.5 and the conclusion of |
| 10 | Theorem 11.1, pp. 270--271. Component restriction and positive scaling |
| 11 | retain the actual scalar. The separately supplied all-radius coverage |
| 12 | projects to compact capture of the original normalized source balls. |
| 13 | -/ |
| 14 | |
| 15 | set_option autoImplicit false |
| 16 | |
| 17 | open Set Filter |
| 18 | open scoped Manifold ContDiff Topology |
| 19 | |
| 20 | universe u |
| 21 | |
| 22 | namespace PoincareMT.M30 |
| 23 | |
| 24 | attribute [local instance] FlowCarrier.topologicalSpace FlowCarrier.chartedSpace |
| 25 | FlowCarrier.isManifold |
| 26 | |
| 27 | /-- Scalar curvature on the actual terminal component is the normalized |
| 28 | original scalar, for any Levi-Civita data of the component metric |
| 29 | (Definition 3.40 and Claim 11.5, pp. 61 and 270). -/ |
| 30 | theorem terminalComponentMetric_scalarCurvature |
| 31 | (S : GeneralizedBlowupSequence.{u}) (k : ℕ) |
| 32 | (D : LeviCivitaData (terminalComponentMetric S k)) |
| 33 | (x : (terminalComponentCarrier S k).carrier) : |
| 34 | D.scalarCurvature x = |
| 35 | (S.flow k).scalar ⟨(S.base k).1, x.val⟩ / S.scale k := by |
| 36 | let C := (S.flow k).slice (S.base k).1 |
| 37 | let g := (S.flow k).metric (S.base k).1 |
| 38 | let gscaled := M13.scaleSmoothMetric g (S.scale k) (S.base_scalar_pos k) |
| 39 | let Dscaled := M13.scaleLeviCivitaData ((S.flow k).connection (S.base k).1) |
| 40 | (S.scale k) (S.base_scalar_pos k) |
| 41 | let i : (terminalComponentCarrier S k).carrier → C.carrier := Subtype.val |
| 42 | have hi : IsLocalDiffeomorph (𝓡 3) (𝓡 3) ∞ i := |
| 43 | Poincare.isLocalDiffeomorph_opensSubtypeVal (𝓡 3) _ |
| 44 | have hscalar : D.scalarCurvature x = Dscaled.scalarCurvature x.val := |
| 45 | D.scalarCurvature_eq_of_local_isometry Dscaled isOpen_univ hi.contMDiff.contMDiffOn |
| 46 | (fun y _ v w => basedSliceMetric_inner C (S.base k).2 gscaled y v w) |
| 47 | (mem_univ x) |
| 48 | have hscale := M13.homothety_scalarCurvature_eq g gscaled |
| 49 | (Diffeomorph.refl (𝓡 3) C.carrier ∞) (S.scale k) (S.base_scalar_pos k) |
| 50 | (M13.identity_metricHomothety g (S.scale k) (S.base_scalar_pos k)) |
| 51 | ((S.flow k).connection (S.base k).1) Dscaled x.val |
| 52 | exact hscalar.trans hscale |
| 53 | |
| 54 | /-- The actual normalized component basepoint has scalar one |
| 55 | (Definition 3.40 and Claim 11.5, pp. 61 and 270). -/ |
| 56 | theorem terminalComponentMetric_base_scalar |
| 57 | (S : GeneralizedBlowupSequence.{u}) (k : ℕ) |
| 58 | (D : LeviCivitaData (terminalComponentMetric S k)) : |
| 59 | D.scalarCurvature (terminalComponentBase S k) = 1 := by |
| 60 | rw [terminalComponentMetric_scalarCurvature] |
| 61 | change S.scale k / S.scale k = 1 |
| 62 | exact div_self (ne_of_gt (S.base_scalar_pos k)) |
| 63 | |
| 64 | /-- The retained all-radius coverage captures each original normalized |
| 65 | source ball in the image of one compact limit set (Theorem 11.1 after |
| 66 | Claim 11.7, p. 271). The finite cutoff boundary field alone is not used. -/ |
| 67 | theorem exists_eventually_terminal_source_compact_capture |
| 68 | (S : GeneralizedBlowupSequence.{u}) |
| 69 | (G : PartialPointedMetricConvergence |
| 70 | (terminalComponentMetric S) (terminalComponentBase S) 1) |
| 71 | (hcover : ∀ R : ℝ, 0 < R → ∃ l : ℕ, ∀ᶠ k in atTop, |
| 72 | (terminalComponentMetric S (G.subsequence k)).ball |
| 73 | (terminalComponentBase S (G.subsequence k)) R ⊆ |
| 74 | G.embedding k '' G.exhaustion l) : |
| 75 | ∀ R : ℝ, 0 < R → ∃ K : Set G.limitCarrier.carrier, IsCompact K ∧ |
| 76 | ∀ᶠ k in atTop, S.baseBall (G.subsequence k) R ⊆ |
| 77 | (fun x => (G.embedding k x).val) '' K := by |
| 78 | intro R hR |
| 79 | obtain ⟨l, hl⟩ := hcover R hR |
| 80 | refine ⟨closure (G.exhaustion l), G.exhaustion_compactClosure l, ?_⟩ |
| 81 | filter_upwards [hl] with k hk x hx |
| 82 | rw [← terminalComponentMetric_image_ball S (G.subsequence k) R] at hx |
| 83 | obtain ⟨y, hy, rfl⟩ := hx |
| 84 | obtain ⟨z, hz, rfl⟩ := hk hy |
| 85 | exact ⟨z, subset_closure hz, rfl⟩ |
| 86 | |
| 87 | end PoincareMT.M30 |