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.StandardCap.Existence.Noncollapsing.OrdinaryStableVolume |
| 2 | import PoincareLib.Geometry.RicciFlow.Surgery.StandardCap.Existence.Geometry.Flow.OrdinarySliceMetric |
| 3 | import PoincareLib.Geometry.RicciFlow.Generalized.Noncollapse.Provider |
| 4 | |
| 5 | /-! |
| 6 | # The actual ordinary M15 configuration |
| 7 | |
| 8 | The stable open preimage of a positive-volume ordinary region supplies |
| 9 | the normalized length and exact terminal volume. Compactness of the |
| 10 | actual terminal ball comes from completeness of the ordinary slice. |
| 11 | Source: Morgan-Tian Proposition 12.13, pp. 304-306; Theorem 8.1, p. 169. |
| 12 | -/ |
| 13 | |
| 14 | set_option autoImplicit false |
| 15 | |
| 16 | open Set |
| 17 | open scoped Manifold ContDiff Bundle Topology ENNReal |
| 18 | |
| 19 | universe u |
| 20 | |
| 21 | namespace PoincareMT.M34 |
| 22 | |
| 23 | /-- The fixed early ordinary region gives all fields of the actual |
| 24 | Theorem 8.1 configuration (Proposition 12.13, pp. 304-306). -/ |
| 25 | theorem ordinaryProduct_configuration |
| 26 | {n : ℕ} {M : Type u} [TopologicalSpace M] |
| 27 | [ChartedSpace (EuclideanSpace ℝ (Fin n)) M] [IsManifold (𝓡 n) ∞ M] |
| 28 | [T3Space M] [ConnectedSpace M] [SecondCountableTopology M] |
| 29 | [MeasurableSpace M] [BorelSpace M] |
| 30 | {I : SpacetimeInterval} {F : RicciFlow n M I.domain} |
| 31 | (R : OrdinaryProductRicciGeometry F.metric I) |
| 32 | (hRicci : IntrinsicGeneralizedRicciEquation R.leafwiseConnection) |
| 33 | {T taumax tau taubar l0 V r : ℝ} (hT : T ∈ I.domain) (p : M) |
| 34 | (out : M14OrdinaryCaptureOutput (ordinaryProductLGeometry R hRicci) M I |
| 35 | R.product.productCylinder R.product.productMetric F T taumax |
| 36 | (ordinaryProductCaptureData (I := I) (F := F) R hRicci hT taumax)) |
| 37 | (E : M14ExponentialFamily (ordinaryProductLGeometry R hRicci) T |
| 38 | (R.product.sliceIdentification ⟨T, hT⟩ p).val) |
| 39 | (H : M14StableSet (ordinaryProductLGeometry R hRicci) T tau |
| 40 | (R.product.sliceIdentification ⟨T, hT⟩ p).val E) |
| 41 | (C : MetricHomothetyCalculus (F.metric T) (R.product.slices T).metricOnPoints |
| 42 | (R.product.sliceIdentification ⟨T, hT⟩) 1) |
| 43 | (hcomplete : MetricComplete (F.metric T)) |
| 44 | (hmax : tau < taumax) (hbar : tau ≤ taubar) (hr : r ^ 2 ≤ tau) |
| 45 | (hmem : T - tau ∈ I.domain) {Omega : Set M} (hOmega : IsOpen Omega) |
| 46 | (hvol : ENNReal.ofReal V ≤ calibratedMetricVolume (F.metric (T - tau)) Omega) |
| 47 | (hlength : ∀ y ∈ Omega, reducedLength F T p y tau ≤ l0) |
| 48 | {K : SpacetimeInterval} {A : Type u} [TopologicalSpace A] |
| 49 | [ChartedSpace (EuclideanSpace ℝ (Fin n)) A] [IsManifold (𝓡 n) ∞ A] |
| 50 | [T2Space A] [SecondCountableTopology A] |
| 51 | (B : M15ActualBallCylinder (ordinaryProductLGeometry R hRicci) T |
| 52 | (R.product.sliceIdentification ⟨T, hT⟩ p) r K A) : |
| 53 | Nonempty (M15Theorem81Configuration (ordinaryProductLGeometry R hRicci) T |
| 54 | (R.product.sliceIdentification ⟨T, hT⟩ p) E taubar l0 V r K A B) := by |
| 55 | have hl : ∀ y ∈ Omega, reducedLength F T |
| 56 | (ordinaryProductProjection R.product (R.product.sliceIdentification ⟨T, hT⟩ p).val) |
| 57 | y tau ≤ l0 := by |
| 58 | rw [ordinaryProductProjection_eq, R.product.sliceIdentification_eq] |
| 59 | exact hlength |
| 60 | obtain ⟨W, hW, hWH, hWlength, hWvol⟩ := |
| 61 | ordinaryProduct_stable_open_volume R hRicci hT out E H hmax hmem hOmega hl |
| 62 | exact ⟨{ |
| 63 | tau₀ := tau |
| 64 | tau₀_pos := H.tau_pos |
| 65 | tau₀_le := hbar |
| 66 | radius_sq_le_tau₀ := hr |
| 67 | terminal_mem := hmem |
| 68 | terminal_ball_compact := ordinarySlice_compact_ball R.product ⟨T, hT⟩ C hcomplete p r |
| 69 | stable := H |
| 70 | W := W |
| 71 | W_open := hW |
| 72 | W_subset_stable := hWH |
| 73 | normalized_reduced_length := hWlength |
| 74 | terminal_image_volume := hvol.trans_eq hWvol.symm |
| 75 | }⟩ |
| 76 | |
| 77 | end PoincareMT.M34 |