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.SphereLineTimeAffine |
| 3 | |
| 4 | /-! |
| 5 | # The actual scalar-normalized sphere-line family is affine |
| 6 | |
| 7 | The native carrier time law is evaluated in the same fixed neck map and |
| 8 | the same positive scalar normalization. Its two retained normalized times |
| 9 | are exactly zero and minus one half, with no coordinate or epsilon change. |
| 10 | -/ |
| 11 | |
| 12 | set_option autoImplicit false |
| 13 | set_option backward.isDefEq.respectTransparency false |
| 14 | |
| 15 | open Set |
| 16 | open scoped Manifold ContDiff Bundle Topology |
| 17 | |
| 18 | namespace PoincareMT.M35 |
| 19 | |
| 20 | local notation "V" => EuclideanSpace ℝ (Fin 3) |
| 21 | |
| 22 | variable {M : Type*} [TopologicalSpace M] [ChartedSpace V M] |
| 23 | [IsManifold (𝓡 3) ∞ M] [MeasurableSpace M] [BorelSpace M] |
| 24 | [T2Space M] [T3Space M] [SecondCountableTopology M] [ConnectedSpace M] |
| 25 | {K : AncientKappaSolution 3 M} |
| 26 | |
| 27 | /-- In every fixed spatial map, the actual positive scalar-normalized |
| 28 | sphere-line family obeys the exact two-time tensor identity. -/ |
| 29 | theorem sphereLine_normalized_family_affine (N : M27SphereLineFlowCertificate K) |
| 30 | (coordinate : RoundCylinderSpace → M) (Q : ℝ) (hQ : 0 < Q) |
| 31 | (u : ℝ) (hu : u ≤ 0) (z : RoundCylinderSpace) (v w : RoundCylinderTangent z) : |
| 32 | Q * roundCylinderPullback (K.flow.metric (u / Q)) coordinate z v w = |
| 33 | (1 + 2 * u) * (Q * roundCylinderPullback (K.flow.metric (0 / Q)) coordinate z v w) - |
| 34 | 2 * u * (Q * roundCylinderPullback (K.flow.metric ((-1 / 2) / Q)) |
| 35 | coordinate z v w) := by |
| 36 | have hclock : (u / Q) / (1 / (2 * Q)) = 2 * u := by |
| 37 | field_simp [hQ.ne'] |
| 38 | have hhalf : -(1 / (2 * Q)) = (-1 / 2) / Q := by ring |
| 39 | have h := sphereLine_metric_two_times N (u / Q) |
| 40 | (div_nonpos_of_nonpos_of_nonneg hu hQ.le) (1 / (2 * Q)) (by positivity) |
| 41 | (coordinate z) |
| 42 | (mfderiv ((𝓡 2).prod 𝓘(ℝ, ℝ)) (𝓡 3) coordinate z v) |
| 43 | (mfderiv ((𝓡 2).prod 𝓘(ℝ, ℝ)) (𝓡 3) coordinate z w) |
| 44 | rw [hclock, hhalf] at h |
| 45 | unfold roundCylinderPullback |
| 46 | rw [h, zero_div] |
| 47 | ring |
| 48 | |
| 49 | end PoincareMT.M35 |