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.AncientKappa.Compactness.LocalBounds.SmallRadiusRescaling |
| 2 | import PoincareLib.Geometry.RicciFlow.AncientKappa.Compactness.LocalBounds.EarlierVolumeUpper |
| 3 | import PoincareLib.Geometry.RicciFlow.AncientKappa.Compactness.Unnormalized.Volume |
| 4 | |
| 5 | /-! |
| 6 | # A complete flat limit with a volume deficit |
| 7 | |
| 8 | Failure of the normalized local estimate yields an actual complete flat |
| 9 | interior slice, with all-radius kappa volume lower bounds and a strict |
| 10 | Euclidean unit-ball deficit. The time is chosen before the terminal boundary, |
| 11 | so this reduction does not require terminal compactness. |
| 12 | |
| 13 | Reference: Morgan--Tian, Lemma 9.65 and Claim 9.66, pp. 225-227. |
| 14 | -/ |
| 15 | |
| 16 | set_option autoImplicit false |
| 17 | set_option backward.isDefEq.respectTransparency false |
| 18 | |
| 19 | open Set Filter |
| 20 | open scoped Manifold ContDiff Bundle ENNReal Topology |
| 21 | |
| 22 | namespace PoincareMT.NormalizedKappaSolutionSequence |
| 23 | |
| 24 | attribute [local instance] FlowCarrier.topologicalSpace FlowCarrier.measurableSpace |
| 25 | FlowCarrier.borelSpace FlowCarrier.chartedSpace FlowCarrier.isManifold |
| 26 | FlowCarrier.t2Space FlowCarrier.t3Space FlowCarrier.secondCountable |
| 27 | |
| 28 | local instance volumeDeficitCarrierConnected (C : FlowCarrier 3) : ConnectedSpace C.carrier := |
| 29 | connectedSpace_iff_univ.mpr C.connected |
| 30 | |
| 31 | variable {κ : ℝ} (S : NormalizedKappaSolutionSequence κ) |
| 32 | |
| 33 | /-- The normalized local-estimate failure constructs a complete flat slice |
| 34 | with positive volume growth and a strict unit-ball volume deficit. -/ |
| 35 | theorem exists_complete_flat_slice_with_volume_deficit |
| 36 | (P : M23NormalizedKappaCompactnessPredecessors) (hn : ¬ M23LocalCurvatureEstimate S) : |
| 37 | ∃ (C : FlowCarrier.{0} 3) (g : RiemannianMetric 3 C.carrier) |
| 38 | (D : LeviCivitaData g) (p : C.carrier), |
| 39 | C.metricComplete g ∧ (∀ x, D.curvatureTensorNorm x = 0) ∧ |
| 40 | (∀ r : ℝ, 0 < r → ENNReal.ofReal (κ * r ^ 3) ≤ |
| 41 | calibratedMetricVolume g (g.ball p r)) ∧ |
| 42 | calibratedMetricVolume g (g.ball p 1) ≤ |
| 43 | ENNReal.ofReal ((3 / 4) * RiemannianMetric.euclideanUnitBallVolume 3) := by |
| 44 | obtain ⟨j, ρ, K, _, _, hkappa, _, hunit, _, hscalar, hcontrol⟩ := |
| 45 | S.exists_small_radius_rescaled_sequence_of_not_localCurvatureEstimate P hn |
| 46 | let C (k : ℕ) := (S.term (j k)).carrier |
| 47 | let p (k : ℕ) : (C k).carrier := (S.term (j k)).base |
| 48 | obtain ⟨G, hcomplete, _⟩ := |
| 49 | AncientKappaSequence.exists_complete_nonnegative_interior_geometric_limit C K p P |
| 50 | S.kappa_pos hkappa hcontrol |
| 51 | obtain ⟨B, hB, hbound⟩ := hcontrol 1 (by norm_num) |
| 52 | obtain ⟨δ, hδ, hδ1, hvolume⟩ := |
| 53 | AncientKappaSequence.exists_earlier_half_euclidean_unit_ball_volume_bound |
| 54 | C K p P hB hbound hunit |
| 55 | have hs : 1 - δ < 1 := by linarith |
| 56 | refine ⟨G.limitCarrier, G.limitFlow.metric (1 - δ), G.limitFlow.connection (1 - δ), |
| 57 | G.base, hcomplete _ hs, ?_, ?_, ?_⟩ |
| 58 | · exact AncientKappaSequence.interiorLimit_flat_of_base_scalar_tendsto_zero |
| 59 | C K p G P hscalar _ hs |
| 60 | · intro r hr |
| 61 | exact AncientKappaSequence.interiorLimit_ball_volume_ge_of_base_scalar_tendsto_zero |
| 62 | C K p G P hkappa hcomplete hscalar hs G.base hr |
| 63 | · apply AncientKappaSequence.interiorLimit_ball_volume_le C K p G hs |
| 64 | (by norm_num : (0 : ℝ) < 1) (hcomplete _ hs) |
| 65 | exact Eventually.of_forall fun k => by |
| 66 | have htime : (1 - δ) - 1 = -δ := by ring |
| 67 | rw [htime] |
| 68 | exact hvolume k |
| 69 | |
| 70 | end PoincareMT.NormalizedKappaSolutionSequence |