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.Uniqueness.Imports |
| 2 | import PoincareLib.Geometry.RicciFlow.Surgery.StandardCap.Uniqueness.CapGeometry.ReflectedChartField |
| 3 | |
| 4 | /-! |
| 5 | # The selected radial pullback is the actual reflected quotient lift |
| 6 | |
| 7 | The ordinary pullback through the composite selected spatial map is the |
| 8 | same field as the two native inverse-differential lifts used in the frozen |
| 9 | reflected-deck identity. Only the actual local differential is used. |
| 10 | -/ |
| 11 | |
| 12 | set_option autoImplicit false |
| 13 | set_option backward.isDefEq.respectTransparency false |
| 14 | |
| 15 | open Set VectorField |
| 16 | open scoped Manifold ContDiff Bundle |
| 17 | |
| 18 | namespace PoincareMT.M35 |
| 19 | |
| 20 | local notation "V" => EuclideanSpace ℝ (Fin 3) |
| 21 | local notation "Ip" => ModelWithCorners.prod (𝓡 2) 𝓘(ℝ, ℝ) |
| 22 | |
| 23 | variable {M : Type*} [TopologicalSpace M] [ChartedSpace V M] |
| 24 | [IsManifold (𝓡 3) ∞ M] [MeasurableSpace M] [BorelSpace M] |
| 25 | [T2Space M] [T3Space M] [SecondCountableTopology M] [ConnectedSpace M] |
| 26 | {K : AncientKappaSolution 3 M} |
| 27 | |
| 28 | /-- The genuine fixed-coordinate pullback coincides with the actual |
| 29 | quotient field lift at every point where the selected spatial map is smooth. -/ |
| 30 | theorem twistedChartLift_mpullback_comp |
| 31 | (N : M27TwistedSphereLineFlowCertificate K) (q : UnitTwoSphere) |
| 32 | (F : M → V) (Z : V → V) (p : V) |
| 33 | (hF : MDifferentiableAt (𝓡 3) (𝓡 3) F (N.cover (cylinderChart q p))) : |
| 34 | twistedChartLift N q (mpullback (𝓡 3) (𝓡 3) F Z) p = |
| 35 | pullback ℝ (F ∘ (N.cover ∘ cylinderChart q)) Z p := by |
| 36 | have hcoord : (mfderivWithin (𝓡 3) (𝓡 3) (N.cover ∘ cylinderChart q) univ p).IsInvertible := by |
| 37 | simpa only [mfderivWithin_univ] using twistedProductChart_invertible N q p |
| 38 | have hfirst := mpullbackWithin_comp_of_right |
| 39 | (I := 𝓡 3) (I' := 𝓡 3) (I'' := 𝓡 3) |
| 40 | (f := N.cover ∘ cylinderChart q) (g := F) («V» := Z) |
| 41 | (s := univ) (t := univ) (x₀ := p) hF.mdifferentiableWithinAt |
| 42 | (fun _ _ => mem_univ _) (uniqueMDiffWithinAt_univ (𝓡 3)) hcoord |
| 43 | have hcyl : (mfderivWithin (𝓡 3) Ip (cylinderChart q) univ p).IsInvertible := by |
| 44 | simpa only [mfderivWithin_univ] using cylinderChart_mfderiv_invertible q p |
| 45 | have hsecond := mpullbackWithin_comp_of_right |
| 46 | (I := 𝓡 3) (I' := Ip) (I'' := 𝓡 3) |
| 47 | (f := cylinderChart q) (g := N.cover) («V» := mpullback (𝓡 3) (𝓡 3) F Z) |
| 48 | (s := univ) (t := univ) (x₀ := p) |
| 49 | (N.cover_local_diffeomorph.contMDiff.mdifferentiable (by simp) _).mdifferentiableWithinAt |
| 50 | (fun _ _ => mem_univ _) (uniqueMDiffWithinAt_univ (𝓡 3)) hcyl |
| 51 | simp only [mpullbackWithin_univ] at hfirst hsecond |
| 52 | simpa only [twistedChartLift, mpullback_eq_pullback] using! (hfirst.trans hsecond).symm |
| 53 | |
| 54 | end PoincareMT.M35 |