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.Soliton.Models.Cylinder |
| 2 | |
| 3 | /-! |
| 4 | # Separating the tangent forms of a shrinking cylinder |
| 5 | |
| 6 | Preservation of the product metrics at times -1 and -2 forces preservation |
| 7 | of both summands. This is the two-time step in the free-cylinder quotient |
| 8 | classification (Morgan--Tian, Theorem 9.42 and (9.19), pp. 206-208). |
| 9 | -/ |
| 10 | |
| 11 | set_option autoImplicit false |
| 12 | set_option linter.style.haveILetI false |
| 13 | |
| 14 | open scoped Manifold ContDiff Bundle ENNReal Topology |
| 15 | |
| 16 | universe u |
| 17 | |
| 18 | namespace PoincareMT |
| 19 | |
| 20 | namespace SphereLineProductData |
| 21 | |
| 22 | variable {P : Type u} [TopologicalSpace P] |
| 23 | [ChartedSpace (EuclideanSpace ℝ (Fin 3)) P] [IsManifold (𝓡 3) ∞ P] |
| 24 | |
| 25 | theorem surface_inner_time_scaling (d : SphereLineProductData (P := P)) |
| 26 | (t : ℝ) (ht : t < 0) : |
| 27 | letI := d.surface_topology |
| 28 | letI := d.surface_charted |
| 29 | letI := d.surface_manifold |
| 30 | ∀ p : d.surface, ∀ v w : TangentSpace (𝓡 2) p, |
| 31 | (d.surface_metric t).inner p v w = |
| 32 | (-t) * (d.surface_metric (-1)).inner p v w := by |
| 33 | letI := d.surface_topology |
| 34 | letI := d.surface_charted |
| 35 | letI := d.surface_manifold |
| 36 | intro p v w |
| 37 | rw [d.surface_inner_round t ht, d.surface_inner_round (-1) (by norm_num)] |
| 38 | ring |
| 39 | |
| 40 | theorem product_inner_time_scaling (d : SphereLineProductData (P := P)) |
| 41 | (t : ℝ) (ht : t < 0) : |
| 42 | letI := d.surface_topology |
| 43 | letI := d.surface_charted |
| 44 | letI := d.surface_manifold |
| 45 | letI := d.product_charted |
| 46 | letI := d.product_manifold |
| 47 | ∀ p : d.surface × ℝ, ∀ v w : TangentSpace (𝓡 3) p, |
| 48 | (d.product_metric t).inner p v w = |
| 49 | (-t) * (d.surface_metric (-1)).inner p.1 |
| 50 | (d.tangent_surface_component p v) (d.tangent_surface_component p w) + |
| 51 | d.tangent_line_component p v * d.tangent_line_component p w := by |
| 52 | letI := d.surface_topology |
| 53 | letI := d.surface_charted |
| 54 | letI := d.surface_manifold |
| 55 | letI := d.product_charted |
| 56 | letI := d.product_manifold |
| 57 | intro p v w |
| 58 | rw [d.product_inner_formula t ht, d.surface_inner_time_scaling t ht] |
| 59 | |
| 60 | end SphereLineProductData |
| 61 | |
| 62 | namespace QuotientSphereLineCertificate |
| 63 | |
| 64 | variable {M : Type u} [TopologicalSpace M] |
| 65 | [ChartedSpace (EuclideanSpace ℝ (Fin 3)) M] |
| 66 | [IsManifold (𝓡 3) ∞ M] [MeasurableSpace M] [BorelSpace M] |
| 67 | [T2Space M] [T3Space M] [SecondCountableTopology M] [ConnectedSpace M] |
| 68 | {S : GradientShrinkingSolitonData 3 M} {G : ShrinkingSolitonFlow S} |
| 69 | |
| 70 | /-- A single involution preserving every time slice preserves the two |
| 71 | time-independent tangent forms separately. -/ |
| 72 | theorem involution_preserves_tangent_forms (q : QuotientSphereLineCertificate G) : |
| 73 | letI := q.cover_topology |
| 74 | letI := q.cover_charted |
| 75 | letI := q.cover_manifold |
| 76 | letI := q.product.surface_topology |
| 77 | letI := q.product.surface_charted |
| 78 | letI := q.product.surface_manifold |
| 79 | letI := q.product.product_charted |
| 80 | letI := q.product.product_manifold |
| 81 | ∀ p : q.product.surface × ℝ, ∀ v w : TangentSpace (𝓡 3) p, |
| 82 | let v' := mfderiv (𝓡 3) (𝓡 3) q.involution p v |
| 83 | let w' := mfderiv (𝓡 3) (𝓡 3) q.involution p w |
| 84 | (q.product.surface_metric (-1)).inner p.1 |
| 85 | (q.product.tangent_surface_component p v) |
| 86 | (q.product.tangent_surface_component p w) = |
| 87 | (q.product.surface_metric (-1)).inner (q.involution p).1 |
| 88 | (q.product.tangent_surface_component (q.involution p) v') |
| 89 | (q.product.tangent_surface_component (q.involution p) w') ∧ |
| 90 | q.product.tangent_line_component p v * q.product.tangent_line_component p w = |
| 91 | q.product.tangent_line_component (q.involution p) v' * |
| 92 | q.product.tangent_line_component (q.involution p) w' := by |
| 93 | letI := q.cover_topology |
| 94 | letI := q.cover_charted |
| 95 | letI := q.cover_manifold |
| 96 | letI := q.product.surface_topology |
| 97 | letI := q.product.surface_charted |
| 98 | letI := q.product.surface_manifold |
| 99 | letI := q.product.product_charted |
| 100 | letI := q.product.product_manifold |
| 101 | intro p v w |
| 102 | have h₁ := q.involution_isometry (-1) (by norm_num) p v w |
| 103 | have h₂ := q.involution_isometry (-2) (by norm_num) p v w |
| 104 | simp only [q.product.product_inner_time_scaling (-1) (by norm_num), |
| 105 | q.product.product_inner_time_scaling (-2) (by norm_num)] at h₁ h₂ |
| 106 | dsimp only |
| 107 | constructor <;> linarith |
| 108 | |
| 109 | end QuotientSphereLineCertificate |
| 110 | |
| 111 | end PoincareMT |