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.AnnularEvolution.Plateau.Source.AffineWeakTransport |
| 2 | |
| 3 | /-! Comparison disks and Holder estimates under the actual modulus |
| 4 | normalization. Source: Morrey boundary coordinates and M64's |
| 5 | finite-boundary-regularity derivation. |
| 6 | |
| 7 | Morgan--Tian context: Lemma 19.15 and its annular area-to-energy construction, printed pp. |
| 8 | 447-449. |
| 9 | -/ |
| 10 | |
| 11 | noncomputable section |
| 12 | set_option autoImplicit false |
| 13 | set_option warningAsError true |
| 14 | |
| 15 | open Set Metric |
| 16 | |
| 17 | namespace PoincareMT |
| 18 | |
| 19 | /-- The actual operator norm controls every translated comparison disk. Proof expansion for |
| 20 | Morgan-Tian (2007), Lemma 19.15, pp. 447-449. -/ |
| 21 | theorem m64SourceAffine_mapsTo_closedBall (a : LoopPlane) (s : ℝ) (hs : s ≠ 0) |
| 22 | {kappa : ℝ} (hk : 0 ≤ kappa) |
| 23 | (hD : ‖(m64SourceScale s hs).toContinuousLinearMap‖ ≤ kappa) |
| 24 | (b : LoopPlane) (r : ℝ) : |
| 25 | MapsTo (m64SourceAffine a s hs) (closedBall b r) |
| 26 | (closedBall (m64SourceAffine a s hs b) (kappa * r)) := by |
| 27 | intro p hp |
| 28 | apply mem_closedBall.mpr |
| 29 | exact (m64SourceAffine_dist_le a s hs p b).trans |
| 30 | ((mul_le_mul_of_nonneg_right hD (dist_nonneg)).trans |
| 31 | (mul_le_mul_of_nonneg_left (mem_closedBall.mp hp) hk)) |
| 32 | |
| 33 | /-- A strict radius margin places the whole closed normalized disk in the original open |
| 34 | disk. Proof expansion for Morgan-Tian (2007), Lemma 19.15, pp. 447-449. -/ |
| 35 | theorem m64SourceAffine_mapsTo_ball (a : LoopPlane) (s : ℝ) (hs : s ≠ 0) |
| 36 | {kappa R rho : ℝ} (hk : 0 ≤ kappa) |
| 37 | (hD : ‖(m64SourceScale s hs).toContinuousLinearMap‖ ≤ kappa) |
| 38 | (hsmall : kappa * R < rho) : |
| 39 | MapsTo (m64SourceAffine a s hs) (closedBall 0 R) (ball a rho) := by |
| 40 | have hzero : m64SourceAffine a s hs 0 = a := by |
| 41 | change a + m64SourceScale s hs 0 = a |
| 42 | rw [map_zero, add_zero] |
| 43 | intro p hp |
| 44 | have h := m64SourceAffine_mapsTo_closedBall a s hs hk hD 0 R hp |
| 45 | rw [hzero] at h |
| 46 | exact mem_ball.mpr ((mem_closedBall.mp h).trans_lt hsmall) |
| 47 | |
| 48 | /-- A Lipschitz target coordinate retains the original Holder exponent after the actual |
| 49 | source change, with both explicit metric factors. Proof expansion for Morgan-Tian (2007), |
| 50 | Lemma 19.15, pp. 447-449. -/ |
| 51 | theorem m64SourceCoordinate_holder {E F : Type*} [PseudoMetricSpace E] [PseudoMetricSpace F] |
| 52 | (a : LoopPlane) (s : ℝ) (hs : s ≠ 0) {u : LoopPlane → E} {H : E → F} |
| 53 | {kappa C beta R rho : ℝ} {L : NNReal} |
| 54 | (hk : 0 ≤ kappa) (hC : 0 ≤ C) (hbeta : 0 ≤ beta) |
| 55 | (hD : ‖(m64SourceScale s hs).toContinuousLinearMap‖ ≤ kappa) |
| 56 | (hsmall : kappa * R ≤ rho) (hLip : LipschitzWith L H) |
| 57 | (hholder : ∀ x ∈ closedBall a rho, ∀ y ∈ closedBall a rho, |
| 58 | dist (u x) (u y) ≤ C * dist x y ^ beta) : |
| 59 | ∀ x ∈ closedBall (0 : LoopPlane) R, ∀ y ∈ closedBall (0 : LoopPlane) R, |
| 60 | dist (H (u (m64SourceAffine a s hs x))) (H (u (m64SourceAffine a s hs y))) ≤ |
| 61 | (L * C * kappa ^ beta) * dist x y ^ beta := by |
| 62 | have hzero : m64SourceAffine a s hs 0 = a := by |
| 63 | change a + m64SourceScale s hs 0 = a |
| 64 | rw [map_zero, add_zero] |
| 65 | have hmaps : MapsTo (m64SourceAffine a s hs) (closedBall 0 R) (closedBall a rho) := by |
| 66 | intro z hz |
| 67 | have h := m64SourceAffine_mapsTo_closedBall a s hs hk hD 0 R hz |
| 68 | rw [hzero] at h |
| 69 | exact closedBall_subset_closedBall hsmall h |
| 70 | intro x hx y hy |
| 71 | have hd : dist (m64SourceAffine a s hs x) (m64SourceAffine a s hs y) ≤ |
| 72 | kappa * dist x y := (m64SourceAffine_dist_le a s hs x y).trans |
| 73 | (mul_le_mul_of_nonneg_right hD dist_nonneg) |
| 74 | calc |
| 75 | _ ≤ L * dist (u (m64SourceAffine a s hs x)) (u (m64SourceAffine a s hs y)) := |
| 76 | hLip.dist_le_mul _ _ |
| 77 | _ ≤ L * (C * dist (m64SourceAffine a s hs x) (m64SourceAffine a s hs y) ^ beta) := |
| 78 | mul_le_mul_of_nonneg_left (hholder _ (hmaps hx) _ (hmaps hy)) L.coe_nonneg |
| 79 | _ ≤ L * (C * (kappa * dist x y) ^ beta) := |
| 80 | mul_le_mul_of_nonneg_left |
| 81 | (mul_le_mul_of_nonneg_left (Real.rpow_le_rpow dist_nonneg hd hbeta) hC) L.coe_nonneg |
| 82 | _ = _ := by rw [Real.mul_rpow hk dist_nonneg]; ring |
| 83 | |
| 84 | end PoincareMT |