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.ReflectedDeckField |
| 3 | import PoincareLib.Geometry.RicciFlow.Surgery.StandardCap.Uniqueness.CapGeometry.ProductChartMetric |
| 4 | import PoincareLib.Geometry.RicciFlow.Surgery.StandardCap.Uniqueness.CapGeometry.RoundProductParallel |
| 5 | |
| 6 | /-! |
| 7 | # The reflected identity in the actual chart-field limit |
| 8 | |
| 9 | The literal inverse chart differential preserves the axial component. |
| 10 | Consequently a field lifted from the frozen quotient has the reflected |
| 11 | identity in chart coordinates, and pointwise convergence retains it. |
| 12 | -/ |
| 13 | |
| 14 | set_option autoImplicit false |
| 15 | set_option backward.isDefEq.respectTransparency false |
| 16 | |
| 17 | open Set Filter VectorField |
| 18 | open scoped Manifold ContDiff Bundle Topology |
| 19 | |
| 20 | namespace PoincareMT.M35 |
| 21 | |
| 22 | local notation "V" => EuclideanSpace ℝ (Fin 3) |
| 23 | local notation "Ip" => ModelWithCorners.prod (𝓡 2) 𝓘(ℝ, ℝ) |
| 24 | |
| 25 | /-- The actual inverse differential of the cylinder chart leaves the |
| 26 | axial component in the fixed Euclidean coordinate equivalence unchanged. -/ |
| 27 | theorem cylinderChart_pullback_axial (q : UnitTwoSphere) |
| 28 | (Y : (p : UnitTwoSphere × ℝ) → TangentSpace Ip p) (x : V) : |
| 29 | (cylinderCoordinateEquiv (mpullback (𝓡 3) Ip (cylinderChart q) Y x)).2 = |
| 30 | (Y (cylinderChart q x)).2 := by |
| 31 | have h := (cylinderChart_mfderiv_invertible q x).self_apply_inverse (Y (cylinderChart q x)) |
| 32 | have hs := congrArg (fun v : TangentSpace Ip (cylinderChart q x) => v.2) h |
| 33 | simpa only [mfderiv_cylinderChart, mpullback] using! hs |
| 34 | |
| 35 | variable {M : Type*} [TopologicalSpace M] [ChartedSpace V M] |
| 36 | [IsManifold (𝓡 3) ∞ M] [MeasurableSpace M] [BorelSpace M] |
| 37 | [T2Space M] [T3Space M] [SecondCountableTopology M] [ConnectedSpace M] |
| 38 | {K : AncientKappaSolution 3 M} |
| 39 | |
| 40 | /-- The actual quotient lift in the chosen ordinary cylinder chart. -/ |
| 41 | noncomputable def twistedChartLift (N : M27TwistedSphereLineFlowCertificate K) |
| 42 | (q : UnitTwoSphere) (Z : (p : M) → TangentSpace (𝓡 3) p) : V → V := |
| 43 | mpullback (𝓡 3) Ip (cylinderChart q) (mpullback Ip (𝓡 3) N.cover Z) |
| 44 | |
| 45 | /-- The two literal reflected points have opposite axial lift components. -/ |
| 46 | theorem twistedChartLift_axial_odd (N : M27TwistedSphereLineFlowCertificate K) |
| 47 | (q : UnitTwoSphere) (Z : (p : M) → TangentSpace (𝓡 3) p) {x y : V} |
| 48 | (hpoints : cylinderChart q y = m27TwistedProductInvolution (cylinderChart q x)) : |
| 49 | (cylinderCoordinateEquiv (twistedChartLift N q Z y)).2 = |
| 50 | -(cylinderCoordinateEquiv (twistedChartLift N q Z x)).2 := by |
| 51 | let Y := mpullback Ip (𝓡 3) N.cover Z |
| 52 | calc |
| 53 | _ = (Y (cylinderChart q y)).2 := cylinderChart_pullback_axial q Y y |
| 54 | _ = (Y (m27TwistedProductInvolution (cylinderChart q x))).2 := |
| 55 | congrArg (fun p : UnitTwoSphere × ℝ => (Y p).2) hpoints |
| 56 | _ = -(Y (cylinderChart q x)).2 := twisted_cover_field_axial_odd N Z _ |
| 57 | _ = _ := congrArg (fun r : ℝ => -r) (cylinderChart_pullback_axial q Y x).symm |
| 58 | |
| 59 | /-- The actual reflected axial identity survives pointwise convergence |
| 60 | of one and the same lifted field sequence at the two retained points. -/ |
| 61 | theorem twistedChartLift_limit_axial_odd (N : M27TwistedSphereLineFlowCertificate K) |
| 62 | (q : UnitTwoSphere) (Zseq : ℕ → (p : M) → TangentSpace (𝓡 3) p) |
| 63 | {Z : V → V} {x y : V} |
| 64 | (hpoints : cylinderChart q y = m27TwistedProductInvolution (cylinderChart q x)) |
| 65 | (hx : Tendsto (fun k => twistedChartLift N q (Zseq k) x) atTop (𝓝 (Z x))) |
| 66 | (hy : Tendsto (fun k => twistedChartLift N q (Zseq k) y) atTop (𝓝 (Z y))) : |
| 67 | (cylinderCoordinateEquiv (Z y)).2 = -(cylinderCoordinateEquiv (Z x)).2 := by |
| 68 | have hc : Continuous (fun v : V => (cylinderCoordinateEquiv v).2) := |
| 69 | continuous_snd.comp cylinderCoordinateEquiv.continuous |
| 70 | have hxx := (hc.tendsto _).comp hx |
| 71 | have hyy := (hc.tendsto _).comp hy |
| 72 | have he : (fun k => -(cylinderCoordinateEquiv (twistedChartLift N q (Zseq k) x)).2) |
| 73 | =ᶠ[atTop] (fun k => (cylinderCoordinateEquiv (twistedChartLift N q (Zseq k) y)).2) := |
| 74 | Eventually.of_forall fun k => (twistedChartLift_axial_odd N q (Zseq k) hpoints).symm |
| 75 | exact tendsto_nhds_unique hyy (hxx.neg.congr' he) |
| 76 | |
| 77 | /-- The frozen reflected quotient cannot be a smooth parallel unit limit |
| 78 | of these actual lifted fields on a connected chart containing a reflected pair. -/ |
| 79 | theorem twistedChartLift_parallel_limit_false |
| 80 | (N : M27TwistedSphereLineFlowCertificate K) (q : UnitTwoSphere) |
| 81 | (Zseq : ℕ → (p : M) → TangentSpace (𝓡 3) p) |
| 82 | {Ω : Set V} (hΩ : IsOpen Ω) (hconnected : IsPreconnected Ω) |
| 83 | {Z : V → V} (hZ : ContDiffOn ℝ ∞ Z Ω) |
| 84 | (hparallel : ∀ x ∈ Ω, ∀ v : V, (twistedProductChartConnection N 0 q).connection Z x v = 0) |
| 85 | {x y : V} (hxΩ : x ∈ Ω) (hyΩ : y ∈ Ω) |
| 86 | (hunit : (twistedProductChartMetric N 0 q).inner x (Z x) (Z x) = 1) |
| 87 | (hpoints : cylinderChart q y = m27TwistedProductInvolution (cylinderChart q x)) |
| 88 | (hx : Tendsto (fun k => twistedChartLift N q (Zseq k) x) atTop (𝓝 (Z x))) |
| 89 | (hy : Tendsto (fun k => twistedChartLift N q (Zseq k) y) atTop (𝓝 (Z y))) : False := by |
| 90 | obtain ⟨c, hc, hround⟩ := m27SphereChartMetric_round N.sphere 0 le_rfl q |
| 91 | exact product_parallel_reflection_false (twistedProductChartConnection N 0 q) |
| 92 | (m27SphereChartConnection N.sphere 0 q) hΩ hconnected |
| 93 | (fun x _ => twistedProductChartMetric_product N 0 le_rfl q x) hZ hparallel hxΩ hyΩ hunit |
| 94 | (fun u v hu hv huv => (hround _ u v hu hv huv).symm ▸ hc) |
| 95 | (twistedChartLift_limit_axial_odd N q Zseq hpoints hx hy) |
| 96 | |
| 97 | end PoincareMT.M35 |