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.SourceCriticalBallRawStage |
| 3 | import PoincareLib.Geometry.RicciFlow.Generalized.BoundedDistance.Tube.SourceGeometry.CriticalBall.SourceCriticalBallMetricIdentity |
| 4 | |
| 5 | /-! |
| 6 | # Normalized raw-stage coefficients on their actual open germs |
| 7 | |
| 8 | The raw-stage map is the retained critical embedding followed by two |
| 9 | open inclusions. Its whole-slice normalized coefficients therefore agree |
| 10 | with the convergence coefficients on an open chart domain. This equality |
| 11 | can be differentiated at boundary points of a compact test region. |
| 12 | Source: Morgan--Tian Proposition 10.7, p. 253; M28 derivation 106. |
| 13 | -/ |
| 14 | |
| 15 | set_option autoImplicit false |
| 16 | set_option backward.isDefEq.respectTransparency false |
| 17 | |
| 18 | open Set Filter |
| 19 | open scoped Manifold ContDiff 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 | (H : CounterexampleNeckFamily E) |
| 29 | (T : ∀ k, SourceTubeData (H.segment k)) (A1 : ℝ) (hA1 : 0 < A1) |
| 30 | (phi : ℕ → ℕ) |
| 31 | (G : RegularPointedMetricConvergence |
| 32 | (fun k => H.tubeCriticalMetric T A1 (phi k)) |
| 33 | (fun k => H.tubeCriticalBase T A1 hA1 (phi k))) (k : ℕ) |
| 34 | |
| 35 | set_option maxHeartbeats 2400000 in |
| 36 | -- Reduction retains both actual inclusions and the dependent original source index. |
| 37 | /-- The normalized raw coefficients are exactly the original critical |
| 38 | embedding coefficients wherever the chart inverse lies in the stage. |
| 39 | Source: Proposition 10.7, p. 253; M28 derivation 106. -/ |
| 40 | theorem regularRawStage_coefficients_eq : |
| 41 | letI := G.limitCarrier.topologicalSpace |
| 42 | letI := G.limitCarrier.chartedSpace |
| 43 | letI := G.limitCarrier.isManifold |
| 44 | ∀ (q : G.limitCarrier.carrier) (y : EuclideanSpace ℝ (Fin 3)), |
| 45 | y ∈ (extChartAt (𝓡 3) q).target → |
| 46 | (extChartAt (𝓡 3) q).symm y ∈ G.exhaustion k → |
| 47 | (H.normalizedSliceMetric (phi (G.subsequence k))).pullbackCoefficients |
| 48 | (H.regularRawStageDiffeomorph T A1 hA1 phi G k ∘ |
| 49 | (extChartAt (𝓡 3) q).symm) y = |
| 50 | (H.tubeCriticalMetric T A1 (phi (G.subsequence k))).pullbackCoefficients |
| 51 | (G.embedding k ∘ (extChartAt (𝓡 3) q).symm) y := by |
| 52 | let := G.limitCarrier.topologicalSpace |
| 53 | let := G.limitCarrier.chartedSpace |
| 54 | let := G.limitCarrier.isManifold |
| 55 | intro q y hy hstage |
| 56 | have hc := (contMDiffOn_extChartAt_symm (n := ∞) q).contMDiffAt |
| 57 | ((isOpen_extChartAt_target q).mem_nhds hy) |
| 58 | have he := (G.embedding_smooth k ⟨(extChartAt (𝓡 3) q).symm y, hstage⟩).contMDiffAt |
| 59 | have hf : MDifferentiableAt (𝓡 3) (𝓡 3) |
| 60 | (G.embedding k ∘ (extChartAt (𝓡 3) q).symm) y := |
| 61 | (he.comp y hc).mdifferentiableAt (by simp) |
| 62 | symm |
| 63 | convert H.tubeCriticalMetric_pullbackCoefficients T A1 (phi (G.subsequence k)) |
| 64 | (f := G.embedding k ∘ (extChartAt (𝓡 3) q).symm) (x := y) hf using 1 |
| 65 | ext v w |
| 66 | rfl |
| 67 | |
| 68 | /-- Equality holds on an open neighborhood of every valid chart point, |
| 69 | so it identifies every iterated derivative without a compact-interior |
| 70 | assumption. Source: Proposition 10.7, p. 253; M28 derivation 106. -/ |
| 71 | theorem regularRawStage_coefficients_germ : |
| 72 | letI := G.limitCarrier.topologicalSpace |
| 73 | letI := G.limitCarrier.chartedSpace |
| 74 | letI := G.limitCarrier.isManifold |
| 75 | ∀ (q : G.limitCarrier.carrier) (y : EuclideanSpace ℝ (Fin 3)), |
| 76 | y ∈ (extChartAt (𝓡 3) q).target → |
| 77 | (extChartAt (𝓡 3) q).symm y ∈ G.exhaustion k → |
| 78 | (H.normalizedSliceMetric (phi (G.subsequence k))).pullbackCoefficients |
| 79 | (H.regularRawStageDiffeomorph T A1 hA1 phi G k ∘ |
| 80 | (extChartAt (𝓡 3) q).symm) =ᶠ[𝓝 y] |
| 81 | (H.tubeCriticalMetric T A1 (phi (G.subsequence k))).pullbackCoefficients |
| 82 | (G.embedding k ∘ (extChartAt (𝓡 3) q).symm) := by |
| 83 | let := G.limitCarrier.topologicalSpace |
| 84 | let := G.limitCarrier.chartedSpace |
| 85 | let := G.limitCarrier.isManifold |
| 86 | intro q y hy hstage |
| 87 | let c := extChartAt (𝓡 3) q |
| 88 | have hU : IsOpen (c.target ∩ c.symm ⁻¹' G.exhaustion k) := |
| 89 | (contMDiffOn_extChartAt_symm (n := ∞) q).continuousOn.isOpen_inter_preimage |
| 90 | (isOpen_extChartAt_target q) (G.exhaustion_open k) |
| 91 | filter_upwards [hU.mem_nhds ⟨hy, hstage⟩] with z hz |
| 92 | exact H.regularRawStage_coefficients_eq T A1 hA1 phi G k q z hz.1 hz.2 |
| 93 | |
| 94 | end PoincareMT.M28.CounterexampleNeckFamily |