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.Collision.PolarLift |
| 2 | import PoincareLib.Geometry.CurveShortening.Comparison.IntrinsicComparison.Normal.PolarEndpoint |
| 3 | import PoincareLib.Geometry.CurveShortening.Comparison.IntrinsicComparison.Continuous.FocusingArc |
| 4 | import PoincareLib.Geometry.CurveShortening.Comparison.IntrinsicComparison.Focusing.Loss |
| 5 | |
| 6 | /-! Sharp focusing for the original normal collision. |
| 7 | Source: MT Remark 19.42 and Claim 19.43, pp. 472-473; |
| 8 | short-geodesic-digons derivation, Sections 11-12. -/ |
| 9 | |
| 10 | noncomputable section |
| 11 | set_option autoImplicit false |
| 12 | set_option backward.isDefEq.respectTransparency false |
| 13 | |
| 14 | open Set |
| 15 | open scoped Topology ContDiff Manifold |
| 16 | |
| 17 | namespace PoincareMT |
| 18 | |
| 19 | /-- The actual normal collision satisfies the sharp sine-radius focusing inequality and its |
| 20 | twice-radius consequence. Its continuous polar lift and both endpoint pairings are |
| 21 | conclusions of prior producers. Source: MT Remark 19.42 and Claim 19.43; digon derivation, |
| 22 | Sections 11-12. Source/construction: |
| 23 | proof-work/tasks/M64/derivations/2026-09-27-short-geodesic-digons.md, Sections 11-12. -/ |
| 24 | theorem m64Intrinsic_normal_collision_focusing |
| 25 | (N : IntrinsicAnnulus) {alpha beta : ℝ → AnnulusCoordinates} |
| 26 | (ha : ContDiff ℝ ∞ alpha) (hb : ContDiff ℝ ∞ beta) |
| 27 | {a b A B r rho : ℝ} (hab : a < b) (hA : 0 < A) (hB : 0 < B) |
| 28 | (hai : InjOn alpha (Icc 0 A)) (hbi : InjOn beta (Icc 0 B)) |
| 29 | (ha0 : alpha 0 = intrinsicAnnulusBoundary 1 a) |
| 30 | (hb0 : beta 0 = intrinsicAnnulusBoundary 1 b) (hmeet : alpha A = beta B) |
| 31 | (hsides : ∀ s ∈ Icc 0 A, ∀ t ∈ Icc 0 B, alpha s = beta t → s = A ∧ t = B) |
| 32 | (horthA : N.metric.inner (intrinsicAnnulusBoundary 1 a) |
| 33 | (deriv (intrinsicAnnulusBoundary 1) a) (deriv alpha 0) = 0) |
| 34 | (horthB : N.metric.inner (intrinsicAnnulusBoundary 1 b) |
| 35 | (deriv (intrinsicAnnulusBoundary 1) b) (deriv beta 0) = 0) |
| 36 | (hgeoA : N.metric.IsGeodesicOn alpha (Icc 0 A)) |
| 37 | (hgeoB : N.metric.IsGeodesicOn beta (Icc 0 B)) |
| 38 | (hunitA : ∀ t ∈ Icc 0 A, N.metric.inner (alpha t) (deriv alpha t) (deriv alpha t) = 1) |
| 39 | (hunitB : ∀ t ∈ Icc 0 B, N.metric.inner (beta t) (deriv beta t) (deriv beta t) = 1) |
| 40 | (haInterior : ∀ t ∈ Ioc 0 A, 1 < ‖alpha t‖) |
| 41 | (hbInterior : ∀ t ∈ Ioc 0 B, 1 < ‖beta t‖) |
| 42 | (hinwardA : 0 < inner ℝ (intrinsicAnnulusBoundary 1 a) (deriv alpha 0)) |
| 43 | (hinwardB : 0 < inner ℝ (intrinsicAnnulusBoundary 1 b) (deriv beta 0)) |
| 44 | (hperiod : b - a < rampPeriod) (hshort : intrinsicBoundaryLength N.metric 1 a b ≤ r) |
| 45 | {U V : Set AnnulusCoordinates} (hU : IsOpen U) (hV : IsOpen V) |
| 46 | (hpV : IsPreconnected V) (hbV : ¬ Bornology.IsBounded V) (hUV : Disjoint U V) |
| 47 | (hcover : U ∪ V = (frontier U)ᶜ) (hfV : frontier V = frontier U) |
| 48 | (hfront : frontier U = intrinsicAnnulusBoundary 1 '' Icc a b ∪ |
| 49 | (alpha '' Icc 0 A ∪ beta '' Icc 0 B)) |
| 50 | (hsub : closure U ⊆ standardAnnulusDomain) |
| 51 | {K delta mu : ℝ} (hK : N.GaussianCurvatureBound K) |
| 52 | (hdelta : 0 < delta) (hturn : N.SmallBoundaryTurning delta r) |
| 53 | (harea : intrinsicAnnulusArea N.metric < mu) |
| 54 | (hbudget : max K 0 * mu + delta ≤ Real.pi / 2) |
| 55 | (hradius : intrinsicBoundaryLength N.metric 1 a b / 2 + max A B ≤ rho) |
| 56 | (hangle : Real.sqrt (max K 1) * rho ≤ Real.pi / 4) : |
| 57 | (Real.cos (Real.sqrt (max K 1) * rho) * intrinsicBoundaryLength N.metric 1 a b ≤ |
| 58 | (Real.sin (Real.sqrt (max K 1) * rho) / Real.sqrt (max K 1)) * |
| 59 | intrinsicGeodesicCurvatureIntegral N.metric N.connection 1 a b) ∧ |
| 60 | intrinsicBoundaryLength N.metric 1 a b ≤ |
| 61 | 2 * rho * intrinsicGeodesicCurvatureIntegral N.metric N.connection 1 a b := by |
| 62 | have hkappa : 0 < Real.sqrt (max K 1) := |
| 63 | Real.sqrt_pos.mpr (zero_lt_one.trans_le (le_max_right K 1)) |
| 64 | have hKkappa : K ≤ Real.sqrt (max K 1) ^ 2 := by |
| 65 | rw [Real.sq_sqrt (zero_le_one.trans (le_max_right K 1))] |
| 66 | exact le_max_left K 1 |
| 67 | have hRpi : Real.sqrt (max K 1) * |
| 68 | (intrinsicBoundaryLength N.metric 1 a b / 2 + max A B) < Real.pi := |
| 69 | ((mul_le_mul_of_nonneg_left hradius hkappa.le).trans hangle).trans_lt |
| 70 | (by linarith [Real.pi_pos]) |
| 71 | obtain ⟨e, Omega, u, ho, hz, _, he, hm, hg, hgeo, hstar, hu, humap, hune, huR, |
| 72 | huconf, huboundary, _, _, huA, huB⟩ := |
| 73 | m64Intrinsic_exists_collision_continuous_polar_lift N ha hb hab hA hB hai hbi ha0 hb0 hmeet |
| 74 | hsides horthA horthB hgeoA hgeoB hunitA hunitB haInterior hbInterior hinwardA hinwardB |
| 75 | hperiod hshort hU hV hpV hbV hUV hcover hfV hfront hsub hK hdelta hturn harea hbudget |
| 76 | hkappa hKkappa hRpi |
| 77 | have hsharp : Real.cos (Real.sqrt (max K 1) * rho) * intrinsicBoundaryLength N.metric 1 a b ≤ |
| 78 | (Real.sin (Real.sqrt (max K 1) * rho) / Real.sqrt (max K 1)) * |
| 79 | intrinsicGeodesicCurvatureIntegral N.metric N.connection 1 a b := by |
| 80 | apply m64Intrinsic_continuous_focusing_arc_length_le_turning N K hK ho hz he hgeo hm hg hstar |
| 81 | hangle hab.le hu humap huboundary hune (fun s hs => (huR s hs).trans hradius) |
| 82 | (fun s hs t ht => hsub (huconf s hs t (Ioo_subset_Icc_self ht))) |
| 83 | · exact m64Intrinsic_normal_polar_endpoint_orthogonal N |
| 84 | (((contMDiffOn_iff_contDiffOn.mp he).contDiffAt |
| 85 | (ho.mem_nhds (humap ⟨le_rfl, hab.le⟩))).differentiableAt (by simp)) |
| 86 | (ha.differentiable (by simp) 0) huA horthA _ |
| 87 | · exact m64Intrinsic_normal_polar_endpoint_orthogonal N |
| 88 | (((contMDiffOn_iff_contDiffOn.mp he).contDiffAt |
| 89 | (ho.mem_nhds (humap ⟨hab.le, le_rfl⟩))).differentiableAt (by simp)) |
| 90 | (hb.differentiable (by simp) 0) huB horthB _ |
| 91 | have hlen := m64Intrinsic_boundaryLength_nonneg N 1 a b hab.le |
| 92 | have hrho : 0 < rho := by linarith only [hA, hlen, le_max_left A B, hradius] |
| 93 | exact ⟨hsharp, m64Intrinsic_sine_focusing_length_le_twice_radius_turning hrho hkappa hangle |
| 94 | hlen (m64Intrinsic_geodesicCurvatureIntegral_nonneg N 1 a b hab.le) hsharp⟩ |
| 95 | |
| 96 | end PoincareMT |