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 Mathlib.Geometry.Manifold.Riemannian.Basic |
| 2 | |
| 3 | /-! |
| 4 | # Canonical and Riemannian tangent norms on vector spaces |
| 5 | |
| 6 | The standard vector-space Riemannian norm equals its original norm. These |
| 7 | bridges express differential bounds with the explicit canonical tangent |
| 8 | instances used by path-length estimates. Source: the chart-distance step |
| 9 | of the 2026-09-18 SurgeryComparison.Transport quantitative smoothing contract for Morgan--Tian |
| 10 | Claim 18.22, printed p. 433; see `derivations/smooth-chart-distance.md`. |
| 11 | -/ |
| 12 | |
| 13 | set_option autoImplicit false |
| 14 | |
| 15 | noncomputable section |
| 16 | |
| 17 | open Bundle |
| 18 | open scoped Manifold ENNReal NNReal |
| 19 | |
| 20 | namespace PoincareMT.SurgeryComparison.Transport |
| 21 | |
| 22 | variable {E H M F : Type*} |
| 23 | [NormedAddCommGroup E] [NormedSpace ℝ E] [TopologicalSpace H] |
| 24 | {I : ModelWithCorners ℝ E H} |
| 25 | [TopologicalSpace M] [ChartedSpace H M] |
| 26 | [RiemannianBundle (TangentSpace I : M → Type _)] |
| 27 | [NormedAddCommGroup F] [InnerProductSpace ℝ F] |
| 28 | |
| 29 | /-- A differential bound into the standard Riemannian vector space also |
| 30 | holds with the canonical target tangent norm used in path estimates. |
| 31 | SurgeryComparison.Transport full contract, quantitative smoothing for Claim 18.22, p. 433. -/ |
| 32 | theorem mfderiv_enorm_le_vector_target {f : M → F} {y : M} {C : ℝ≥0} |
| 33 | (h : ‖mfderiv I 𝓘(ℝ, F) f y‖ ≤ (C : ℝ)) : |
| 34 | letI := normedAddCommGroupTangentSpaceVectorSpace (f y) |
| 35 | letI := normedSpaceTangentSpaceVectorSpace (f y) |
| 36 | letI : SeminormedAddCommGroup |
| 37 | (TangentSpace I y →L[ℝ] TangentSpace 𝓘(ℝ, F) (f y)) := |
| 38 | ContinuousLinearMap.toSeminormedAddCommGroup |
| 39 | ‖mfderiv I 𝓘(ℝ, F) f y‖ₑ ≤ C := by |
| 40 | have hp (v : TangentSpace I y) : |
| 41 | ‖(show F from mfderiv I 𝓘(ℝ, F) f y v)‖ ≤ (C : ℝ) * ‖v‖ := by |
| 42 | rw [← norm_tangentSpace_vectorSpace |
| 43 | (x := f y) (v := mfderiv I 𝓘(ℝ, F) f y v)] |
| 44 | exact ((mfderiv I 𝓘(ℝ, F) f y).le_opNorm v).trans |
| 45 | (mul_le_mul_of_nonneg_right h (norm_nonneg v)) |
| 46 | letI := normedAddCommGroupTangentSpaceVectorSpace (f y) |
| 47 | letI := normedSpaceTangentSpaceVectorSpace (f y) |
| 48 | letI : SeminormedAddCommGroup |
| 49 | (TangentSpace I y →L[ℝ] TangentSpace 𝓘(ℝ, F) (f y)) := |
| 50 | ContinuousLinearMap.toSeminormedAddCommGroup |
| 51 | have hb : ‖mfderiv I 𝓘(ℝ, F) f y‖ ≤ (C : ℝ) := |
| 52 | ContinuousLinearMap.opNorm_le_bound _ C.coe_nonneg hp |
| 53 | rw [← ofReal_norm] |
| 54 | exact (ENNReal.ofReal_le_ofReal hb).trans_eq (by simp) |
| 55 | |
| 56 | /-- A differential bound from the standard Riemannian vector space also |
| 57 | holds with the canonical source tangent norm used in segment estimates. |
| 58 | SurgeryComparison.Transport full contract, quantitative smoothing for Claim 18.22, p. 433. -/ |
| 59 | theorem mfderiv_enorm_le_vector_source {f : F → M} {z : F} {C : ℝ≥0} |
| 60 | (h : ‖mfderiv 𝓘(ℝ, F) I f z‖ ≤ (C : ℝ)) : |
| 61 | letI := normedAddCommGroupTangentSpaceVectorSpace z |
| 62 | letI := normedSpaceTangentSpaceVectorSpace z |
| 63 | letI : SeminormedAddCommGroup |
| 64 | (TangentSpace 𝓘(ℝ, F) z →L[ℝ] TangentSpace I (f z)) := |
| 65 | ContinuousLinearMap.toSeminormedAddCommGroup |
| 66 | ‖mfderiv 𝓘(ℝ, F) I f z‖ₑ ≤ C := by |
| 67 | have hp (v : F) : |
| 68 | ‖mfderiv 𝓘(ℝ, F) I f z v‖ ≤ (C : ℝ) * ‖v‖ := by |
| 69 | have hv := (mfderiv 𝓘(ℝ, F) I f z).le_opNorm v |
| 70 | rw [norm_tangentSpace_vectorSpace (x := z) (v := v)] at hv |
| 71 | exact hv.trans (mul_le_mul_of_nonneg_right h (norm_nonneg v)) |
| 72 | letI := normedAddCommGroupTangentSpaceVectorSpace z |
| 73 | letI := normedSpaceTangentSpaceVectorSpace z |
| 74 | letI : SeminormedAddCommGroup |
| 75 | (TangentSpace 𝓘(ℝ, F) z →L[ℝ] TangentSpace I (f z)) := |
| 76 | ContinuousLinearMap.toSeminormedAddCommGroup |
| 77 | have hb : ‖mfderiv 𝓘(ℝ, F) I f z‖ ≤ (C : ℝ) := |
| 78 | ContinuousLinearMap.opNorm_le_bound _ C.coe_nonneg hp |
| 79 | rw [← ofReal_norm] |
| 80 | exact (ENNReal.ofReal_le_ofReal hb).trans_eq (by simp) |
| 81 | |
| 82 | end PoincareMT.SurgeryComparison.Transport |