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.Generalized.BoundedDistance.GeometryImports |
| 2 | import PoincareLib.Geometry.RicciFlow.Generalized.BoundedDistance.Tube.SourceGeometry.CriticalBall.SourceCriticalBallScalarLimit |
| 3 | import PoincareLib.Geometry.RicciFlow.Generalized.BoundedDistance.PartialLimits.RegularSets.UniformCompactScalar |
| 4 | |
| 5 | /-! |
| 6 | # A common scalar bound on actual transported compact sets |
| 7 | |
| 8 | Uniform scalar convergence on a compact limit set is read through both |
| 9 | literal open inclusions into the original globally normalized source |
| 10 | slice. This supplies the fixed connecting-path bound in Morgan--Tian |
| 11 | Claim 10.8, p. 254; M28 derivations 115 and 118. |
| 12 | -/ |
| 13 | |
| 14 | set_option autoImplicit false |
| 15 | set_option backward.isDefEq.respectTransparency false |
| 16 | |
| 17 | open Set Filter |
| 18 | open scoped Manifold ContDiff Topology |
| 19 | |
| 20 | universe u |
| 21 | |
| 22 | namespace PoincareMT.M28.CounterexampleNeckFamily |
| 23 | |
| 24 | variable {epsilon C A : ℝ} |
| 25 | {E : ∀ n : ℕ, SameTimeCounterexample.{u} epsilon C A |
| 26 | ((n : ℝ) + 1) ((n : ℝ) + 1)} |
| 27 | |
| 28 | set_option maxHeartbeats 1200000 in |
| 29 | -- The two dependent open inclusions retain the original source metric. |
| 30 | /-- One bound and one source tail control the normalized raw scalar at |
| 31 | every point of the original embedding image of a fixed compact set. |
| 32 | The earlier index selection and the single shift remain literal. |
| 33 | Source: Claim 10.8, p. 254; M28 derivations 115 and 118. -/ |
| 34 | theorem exists_eventual_compact_normalized_raw_scalar_bound |
| 35 | (H : CounterexampleNeckFamily E) (T : ∀ k, SourceTubeData (H.segment k)) |
| 36 | (A1 : ℝ) (hA1 : 0 < A1) (phi : ℕ → ℕ) |
| 37 | (G : RegularPointedMetricConvergence |
| 38 | (fun k => H.tubeCriticalMetric T A1 (phi k)) |
| 39 | (fun k => H.tubeCriticalBase T A1 hA1 (phi k))) : |
| 40 | letI := G.limitCarrier.topologicalSpace |
| 41 | letI := G.limitCarrier.chartedSpace |
| 42 | letI := G.limitCarrier.isManifold |
| 43 | ∀ (_D0 : LeviCivitaData G.limitMetric) (K : Set G.limitCarrier.carrier), |
| 44 | IsCompact K → ∃ B : ℝ, 1 ≤ B ∧ ∀ᶠ k in atTop, ∀ x ∈ K, |
| 45 | |(H.normalizedSliceConnection (phi (G.subsequence k))).scalarCurvature |
| 46 | (G.embedding k x).val.val| ≤ B := by |
| 47 | classical |
| 48 | let := G.limitCarrier.topologicalSpace |
| 49 | let := G.limitCarrier.chartedSpace |
| 50 | let := G.limitCarrier.isManifold |
| 51 | intro D0 K hK |
| 52 | let D (k : ℕ) : LeviCivitaData (H.tubeCriticalMetric T A1 (phi k)) := |
| 53 | Classical.choice (exists_leviCivitaData (H.tubeCriticalMetric T A1 (phi k))) |
| 54 | obtain ⟨B, hB, htail⟩ := G.exists_eventual_compact_scalar_bound D D0 K hK |
| 55 | refine ⟨B, hB, ?_⟩ |
| 56 | filter_upwards [htail] with k hk |
| 57 | intro x hx |
| 58 | rw [H.normalizedSlice_scalar_eq, |
| 59 | ← H.tubeCritical_scalar_eq T A1 (phi (G.subsequence k)) (D (G.subsequence k))] |
| 60 | exact hk x hx |
| 61 | |
| 62 | end PoincareMT.M28.CounterexampleNeckFamily |