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.SourceCriticalBallChartFlow |
| 3 | import PoincareLib.Geometry.RicciFlow.Compactness.GeometricLimit.Overlap.QuotientCoefficients |
| 4 | |
| 5 | /-! |
| 6 | # Terminal coefficients of the original backward source flows |
| 7 | |
| 8 | Canonical parametrizations of the captured neck map and retained critical |
| 9 | map have exactly the same terminal coefficients. The equality holds on |
| 10 | the open chart, so it can be differentiated on a smaller compact set. |
| 11 | Morgan--Tian Claims 10.10-10.11, pp. 254-255; M28 derivation 76. |
| 12 | -/ |
| 13 | |
| 14 | noncomputable section |
| 15 | set_option autoImplicit false |
| 16 | set_option backward.isDefEq.respectTransparency false |
| 17 | |
| 18 | open Set PoincareMT.ChartDistance |
| 19 | open scoped Manifold ContDiff Bundle Topology |
| 20 | |
| 21 | universe u |
| 22 | |
| 23 | namespace PoincareMT.M28.CounterexampleNeckFamily |
| 24 | |
| 25 | variable {epsilon C A : ℝ} |
| 26 | {E : ∀ n : ℕ, SameTimeCounterexample.{u} epsilon C A |
| 27 | ((n : ℝ) + 1) ((n : ℝ) + 1)} |
| 28 | |
| 29 | set_option maxHeartbeats 1600000 in |
| 30 | -- The two dependent pullback metrics retain the same original raw witness. |
| 31 | /-- The actual global source flow and the critical metric have identical |
| 32 | terminal coefficients under their corresponding canonical parametrizations. |
| 33 | Both maps use the same retained chart (derivation 76). -/ |
| 34 | theorem tubeCritical_global_flow_terminal_coefficients |
| 35 | (H : CounterexampleNeckFamily E) (T : ∀ k, SourceTubeData (H.segment k)) |
| 36 | (A1 : ℝ) (k : ℕ) (U : Set (EuclideanSpace ℝ (Fin 3))) (hU : IsOpen U) |
| 37 | [Nonempty U] (e : U → H.tubeCriticalRegion T A1 k) |
| 38 | (he : letI := hU.isOpenEmbedding_subtypeVal.singletonChartedSpace |
| 39 | IsLocalDiffeomorph (𝓡 3) (𝓡 3) ∞ e) |
| 40 | (S : GeneralizedStrongNeck (E (k + H.shift)).flow |
| 41 | (E (k + H.shift)).time epsilon) |
| 42 | (R : RescaledRawCylinderData (C := (E (k + H.shift)).flow.slice |
| 43 | (E (k + H.shift)).time) |
| 44 | (U := strongNeckOpen S) (J := strongNeckBackwardInterval) |
| 45 | (strongNeckCylinder S) (GeneralizedStrongNeck.physical_interval_subset S)) |
| 46 | (hcapture : ∀ x : U, (e x).val.val ∈ S.carrier) |
| 47 | (tau : ℝ) (htau : 0 < tau) |
| 48 | (hwindow : tau ≤ (E (k + H.shift)).flow.scalar |
| 49 | ⟨(E (k + H.shift)).time, (E (k + H.shift)).basepoint⟩ * S.scale ^ 2 / 4) : |
| 50 | EqOn (((GeneralizedStrongNeck.global_flow S R |
| 51 | ((E (k + H.shift)).flow.scalar |
| 52 | ⟨(E (k + H.shift)).time, (E (k + H.shift)).basepoint⟩) |
| 53 | (H.base_scalar_pos k) tau htau hwindow).metric 0).pullbackCoefficients |
| 54 | (chartParametrization (fun _ : Unit => U) (fun _ => hU) |
| 55 | (i := ()) (GeneralizedStrongNeck.captured_chart_map S U |
| 56 | (fun x : U => (e x).val.val) hcapture))) |
| 57 | ((H.tubeCriticalMetric T A1 k).pullbackCoefficients |
| 58 | (chartParametrization (fun _ : Unit => U) (fun _ => hU) (i := ()) e)) U := by |
| 59 | let := hU.isOpenEmbedding_subtypeVal.singletonChartedSpace |
| 60 | let := hU.isOpenEmbedding_subtypeVal.isManifold_singleton (I := 𝓡 3) (n := ∞) |
| 61 | let f := GeneralizedStrongNeck.captured_chart_map S U |
| 62 | (fun x : U => (e x).val.val) hcapture |
| 63 | have hf := GeneralizedStrongNeck.captured_chart_map_localDiffeomorph S U hU |
| 64 | (fun x : U => (e x).val.val) |
| 65 | (H.tubeCritical_chart_original_localDiffeomorph T A1 k U hU e he) hcapture |
| 66 | intro z hz |
| 67 | let x : U := ⟨z, hz⟩ |
| 68 | have hd₁ := mfderiv_chartParametrization (fun _ : Unit => U) (fun _ => hU) |
| 69 | (i := ()) x (hf.contMDiff x) |
| 70 | have hd₂ := mfderiv_chartParametrization (fun _ : Unit => U) (fun _ => hU) |
| 71 | (i := ()) x (he.contMDiff x) |
| 72 | ext v w |
| 73 | change ((GeneralizedStrongNeck.global_flow S R _ _ tau htau hwindow).metric 0).inner |
| 74 | (chartParametrization (fun _ : Unit => U) (fun _ => hU) (i := ()) f x) |
| 75 | (mfderiv (𝓡 3) (𝓡 3) |
| 76 | (chartParametrization (fun _ : Unit => U) (fun _ => hU) (i := ()) f) x v) |
| 77 | (mfderiv (𝓡 3) (𝓡 3) |
| 78 | (chartParametrization (fun _ : Unit => U) (fun _ => hU) (i := ()) f) x w) = _ |
| 79 | change _ = (H.tubeCriticalMetric T A1 k).inner |
| 80 | (chartParametrization (fun _ : Unit => U) (fun _ => hU) (i := ()) e x) |
| 81 | (mfderiv (𝓡 3) (𝓡 3) |
| 82 | (chartParametrization (fun _ : Unit => U) (fun _ => hU) (i := ()) e) x v) |
| 83 | (mfderiv (𝓡 3) (𝓡 3) |
| 84 | (chartParametrization (fun _ : Unit => U) (fun _ => hU) (i := ()) e) x w) |
| 85 | rw [chartParametrization_apply, chartParametrization_apply, hd₁, hd₂] |
| 86 | exact H.tubeCritical_chart_flow_metric_at_zero T A1 k U hU e he S R |
| 87 | hcapture tau htau hwindow x v w |
| 88 | |
| 89 | end PoincareMT.M28.CounterexampleNeckFamily |