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.Continuation.Construction.Terminal.Event.LimitCoordinates |
| 2 | |
| 3 | /-! |
| 4 | # Bilinear chart convergence for the actual terminal source |
| 5 | -/ |
| 6 | |
| 7 | noncomputable section |
| 8 | set_option autoImplicit false |
| 9 | set_option backward.isDefEq.respectTransparency false |
| 10 | |
| 11 | open Set Filter |
| 12 | open scoped Manifold ContDiff Topology |
| 13 | |
| 14 | universe u |
| 15 | |
| 16 | namespace PoincareMT |
| 17 | |
| 18 | open Poincare.Analysis.Calculus |
| 19 | |
| 20 | variable {M X : Type u} [TopologicalSpace M] |
| 21 | [ChartedSpace (EuclideanSpace ℝ (Fin 3)) M] [IsManifold (𝓡 3) ∞ M] |
| 22 | [TopologicalSpace X] |
| 23 | [ChartedSpace (EuclideanSpace ℝ (Fin 3)) X] [IsManifold (𝓡 3) ∞ X] |
| 24 | |
| 25 | theorem singularTensorCoefficient_pullback_eq |
| 26 | (g : RiemannianMetric 3 M) {i : X → M} (hi : ContMDiff (𝓡 3) (𝓡 3) ∞ i) |
| 27 | (q : X) (a b : Fin 3) {z : EuclideanSpace ℝ (Fin 3)} |
| 28 | (hz : z ∈ (extChartAt (𝓡 3) q).target) : |
| 29 | singularTensorCoefficient (singularMetricPullback g i) q a b z = |
| 30 | bilinearBasisEvaluation a b |
| 31 | (g.pullbackCoefficients (i ∘ (extChartAt (𝓡 3) q).symm) z) := by |
| 32 | have hc := ((contMDiffOn_extChartAt_symm (n := ∞) q).contMDiffAt |
| 33 | ((isOpen_extChartAt_target q).mem_nhds hz)).mdifferentiableAt (by simp) |
| 34 | change g.inner (i ((extChartAt (𝓡 3) q).symm z)) |
| 35 | (mfderiv (𝓡 3) (𝓡 3) i _ |
| 36 | (mfderiv (𝓡 3) (𝓡 3) (extChartAt (𝓡 3) q).symm z |
| 37 | (EuclideanSpace.basisFun (Fin 3) ℝ a))) |
| 38 | (mfderiv (𝓡 3) (𝓡 3) i _ |
| 39 | (mfderiv (𝓡 3) (𝓡 3) (extChartAt (𝓡 3) q).symm z |
| 40 | (EuclideanSpace.basisFun (Fin 3) ℝ b))) = |
| 41 | g.inner (i ((extChartAt (𝓡 3) q).symm z)) |
| 42 | (mfderiv (𝓡 3) (𝓡 3) (i ∘ (extChartAt (𝓡 3) q).symm) z |
| 43 | (EuclideanSpace.basisFun (Fin 3) ℝ a)) |
| 44 | (mfderiv (𝓡 3) (𝓡 3) (i ∘ (extChartAt (𝓡 3) q).symm) z |
| 45 | (EuclideanSpace.basisFun (Fin 3) ℝ b)) |
| 46 | rw [mfderiv_comp z (hi.mdifferentiable (by simp) _) hc] |
| 47 | rfl |
| 48 | |
| 49 | theorem CompactSingularMetricLimit.pullbackCoefficients_tendstoUniformlyOn |
| 50 | {G : GeneralizedRicciFlowData.{u}} {T : ℝ} |
| 51 | {R : SingularTimeReference G T M} {gT : RiemannianMetric 3 X} {i : X → M} |
| 52 | (h : CompactSingularMetricLimit R gT i) (hi : ContMDiff (𝓡 3) (𝓡 3) ∞ i) |
| 53 | (q : X) (k : ℕ) (K : Set (EuclideanSpace ℝ (Fin 3))) |
| 54 | (hK : IsCompact K) (hKt : K ⊆ (extChartAt (𝓡 3) q).target) : |
| 55 | TendstoUniformlyOn |
| 56 | (fun t => iteratedFDeriv ℝ k |
| 57 | ((R.flow.metric t).pullbackCoefficients (i ∘ (extChartAt (𝓡 3) q).symm))) |
| 58 | (iteratedFDeriv ℝ k (gT.pullbackCoefficients (extChartAt (𝓡 3) q).symm)) |
| 59 | (𝓝[<] T) K := by |
| 60 | have hchart (x : EuclideanSpace ℝ (Fin 3)) (hx : x ∈ K) := |
| 61 | (contMDiffOn_extChartAt_symm (n := ∞) q).contMDiffAt |
| 62 | ((isOpen_extChartAt_target q).mem_nhds (hKt hx)) |
| 63 | apply tendstoUniformlyOn_bilinear_jets_of_components |
| 64 | (fun t x hx => (R.flow.metric t).contDiffAt_pullbackCoefficients |
| 65 | ((hi _).comp x (hchart x hx))) |
| 66 | (fun x hx => gT.contDiffAt_pullbackCoefficients (hchart x hx)) |
| 67 | intro a b |
| 68 | have hconv := h.tendstoUniformlyOn q a b k K hK hKt |
| 69 | apply hconv.congr |
| 70 | refine Eventually.of_forall fun t x hx => ?_ |
| 71 | have heq : |
| 72 | singularTensorCoefficient (singularMetricPullback (R.flow.metric t) i) q a b =ᶠ[𝓝 x] |
| 73 | (fun z => bilinearBasisEvaluation a b |
| 74 | ((R.flow.metric t).pullbackCoefficients (i ∘ (extChartAt (𝓡 3) q).symm) z)) := by |
| 75 | filter_upwards [(isOpen_extChartAt_target q).mem_nhds (hKt hx)] with z hz |
| 76 | exact singularTensorCoefficient_pullback_eq (R.flow.metric t) hi q a b hz |
| 77 | exact (heq.iteratedFDeriv ℝ k).self_of_nhds |
| 78 | |
| 79 | end PoincareMT |