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.CurveShortening.Comparison.IntrinsicComparison.Polar.LiftRadiusDecrease |
| 2 | |
| 3 | /-! Strict radius decrease in the chosen compact inverse chart. |
| 4 | Source: MT Claim 19.41; short-geodesic-digons derivation, Section 10. |
| 5 | The chart agrees with the actual exponential only on its open source. -/ |
| 6 | |
| 7 | noncomputable section |
| 8 | set_option autoImplicit false |
| 9 | set_option backward.isDefEq.respectTransparency false |
| 10 | |
| 11 | open Set Filter |
| 12 | open scoped Topology ContDiff Manifold |
| 13 | |
| 14 | namespace PoincareMT |
| 15 | |
| 16 | /-- The actual Gauss identity and acute terminal angle make the fixed compact-chart inverse |
| 17 | of the second arc strictly shorter to the left. No confinement of these nearby inverse |
| 18 | vectors is assumed. Source: MT Claim 19.41; digon derivation, Section 10. |
| 19 | Source/construction: proof-work/tasks/M64/derivations/2026-09-27-short-geodesic-digons.md, |
| 20 | Section 10. -/ |
| 21 | theorem m64Intrinsic_compact_inverse_radius_decreases_left |
| 22 | (N : IntrinsicAnnulus) |
| 23 | (F : OpenPartialHomeomorph AnnulusCoordinates AnnulusCoordinates) |
| 24 | {e : AnnulusCoordinates → AnnulusCoordinates} (hFe : EqOn F e F.source) |
| 25 | (hFi : ContMDiffOn (𝓡 2) (𝓡 2) ∞ F.symm F.target) |
| 26 | {v : AnnulusCoordinates} (hv : v ∈ F.source) (he : DifferentiableAt ℝ e v) |
| 27 | {beta : ℝ → AnnulusCoordinates} {s : ℝ} (hb : ContDiffAt ℝ ∞ beta s) |
| 28 | (hend : beta s = e v) |
| 29 | (hgauss : ∀ w : AnnulusCoordinates, |
| 30 | N.metric.pullbackCoefficients e v v w = inner ℝ v w) |
| 31 | (hangle : N.metric.cornerAngle (e v) (fderiv ℝ e v v) (deriv beta s) < Real.pi / 2) : |
| 32 | ∀ᶠ b in 𝓝[<] s, ‖F.symm (beta b)‖ < ‖v‖ := by |
| 33 | have ht : beta s ∈ F.target := by |
| 34 | rw [hend, ← hFe hv] |
| 35 | exact F.map_source hv |
| 36 | let u : ℝ → AnnulusCoordinates := F.symm ∘ beta |
| 37 | have huv : u s = v := by |
| 38 | change F.symm (beta s) = v |
| 39 | rw [hend, ← hFe hv, F.left_inv hv] |
| 40 | have hu : ContDiffAt ℝ ∞ u s := |
| 41 | ((contMDiffOn_iff_contDiffOn.mp hFi).contDiffAt (F.open_target.mem_nhds ht)).comp s hb |
| 42 | have hlift : (fun b => e (u b)) =ᶠ[𝓝 s] beta := by |
| 43 | filter_upwards [hb.continuousAt.preimage_mem_nhds (F.open_target.mem_nhds ht)] with b hbF |
| 44 | change e (F.symm (beta b)) = beta b |
| 45 | rw [← hFe (F.map_target hbF), F.right_inv hbF] |
| 46 | have he' : DifferentiableAt ℝ e (u s) := huv.symm ▸ he |
| 47 | have hgauss' : ∀ w : AnnulusCoordinates, |
| 48 | N.metric.pullbackCoefficients e (u s) (u s) w = inner ℝ (u s) w := by |
| 49 | simpa only [huv] using hgauss |
| 50 | have hangle' : N.metric.cornerAngle (e (u s)) |
| 51 | (fderiv ℝ e (u s) (u s)) (deriv beta s) < Real.pi / 2 := by |
| 52 | have h := congrArg (fun x : AnnulusCoordinates => N.metric.cornerAngle (e x) |
| 53 | (fderiv ℝ e x x : AnnulusCoordinates) (deriv beta s : AnnulusCoordinates)) huv |
| 54 | exact h.trans_lt hangle |
| 55 | have hshort := m64Intrinsic_polar_lift_radius_decreases_left N he' |
| 56 | (hu.differentiableAt (by simp)).hasDerivAt |
| 57 | (hb.differentiableAt (by simp)).hasDerivAt hlift hgauss' hangle' |
| 58 | simpa only [huv, u, Function.comp_apply] using hshort |
| 59 | |
| 60 | end PoincareMT |