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.Spacetime.Rescaling.Horizontal.Basic |
| 2 | import PoincareLib.Geometry.Spacetime.Rescaling.Horizontal.SliceConnection |
| 3 | import PoincareLib.Geometry.Spacetime.Rescaling.HorizontalCalculus |
| 4 | |
| 5 | /-! Adapted from Mapher06/Poincare-MorganTian, `PoincareMT/Proofs/M13/HorizontalConnection.lean`, |
| 6 | revision `0c5d5c4e1ecbc12703b1994e226df1b15d2e8d39`. See `references/ricci-flow/mapher/rescaling-import.json`. -/ |
| 7 | |
| 8 | /-! |
| 9 | # Regular horizontal connection transport |
| 10 | |
| 11 | The chosen scaled slice operator commutes with the horizontal equivalence. |
| 12 | Regular-section uniqueness then gives the law for every target connection. |
| 13 | -/ |
| 14 | |
| 15 | set_option autoImplicit false |
| 16 | set_option backward.isDefEq.respectTransparency false |
| 17 | |
| 18 | open scoped Manifold ContDiff Bundle Topology |
| 19 | |
| 20 | universe u |
| 21 | |
| 22 | open PoincareMT.Homothety |
| 23 | |
| 24 | namespace PoincareMT.ParabolicRescaling |
| 25 | |
| 26 | variable {n : ℕ} {X : Type u} [TopologicalSpace X] |
| 27 | {A : AdaptedMetricAtlas n X} {R : GeneralizedFlowCarrierConclusion A} |
| 28 | {Q : ℝ} {hQ : 0 < Q} {a : ℝ} |
| 29 | |
| 30 | theorem parabolic_leafwise_connection |
| 31 | (hTarget : ∀ D' : LeafwiseLeviCivitaFamily |
| 32 | (spacetimeRescaling R Q hQ a).realization.spacetime |
| 33 | (spacetimeRescaling R Q hQ a).realization.slices, HorizontalRicciCalculus D') |
| 34 | (D : LeafwiseLeviCivitaFamily R.spacetime R.slices) |
| 35 | (D' : LeafwiseLeviCivitaFamily (spacetimeRescaling R Q hQ a).realization.spacetime |
| 36 | (spacetimeRescaling R Q hQ a).realization.slices) |
| 37 | (U : Set R.spacetime.Point) (hU : IsOpen U) |
| 38 | (V : HorizontalSection R.spacetime) (hV : IsSmoothHorizontalSectionOn R.spacetime V U) |
| 39 | (p : R.spacetime.Point) (hp : p ∈ U) (v : R.spacetime.Horizontal p) : |
| 40 | rawLeafwiseCovariantDerivative D' (parabolicHorizontalSection (spacetimeRescaling R Q hQ a) V) |
| 41 | p ((spacetimeRescaling R Q hQ a).horizontal p v) = |
| 42 | (spacetimeRescaling R Q hQ a).horizontal p (rawLeafwiseCovariantDerivative D V p v) := by |
| 43 | let P := spacetimeRescaling R Q hQ a |
| 44 | let D₀ : LeafwiseLeviCivitaFamily P.realization.spacetime P.realization.slices := |
| 45 | parabolicLeafwiseConnection D Q hQ a |
| 46 | have hchoice := (hTarget D').leafwise_choice D₀ U hU (parabolicHorizontalSection P V) |
| 47 | ((parabolic_section_smooth_iff V U).2 hV) p hp |
| 48 | rw [hchoice] |
| 49 | exact parabolic_leafwise_chosen D Q hQ a V p v |
| 50 | |
| 51 | theorem parabolic_horizontal_connection |
| 52 | (hTarget : ∀ D' : LeafwiseLeviCivitaFamily |
| 53 | (spacetimeRescaling R Q hQ a).realization.spacetime |
| 54 | (spacetimeRescaling R Q hQ a).realization.slices, HorizontalRicciCalculus D') |
| 55 | (D : LeafwiseLeviCivitaFamily R.spacetime R.slices) |
| 56 | (D' : LeafwiseLeviCivitaFamily (spacetimeRescaling R Q hQ a).realization.spacetime |
| 57 | (spacetimeRescaling R Q hQ a).realization.slices) |
| 58 | (U : Set R.spacetime.Point) (hU : IsOpen U) |
| 59 | (V : HorizontalSection R.spacetime) (hV : IsSmoothHorizontalSectionOn R.spacetime V U) |
| 60 | (p : R.spacetime.Point) (hp : p ∈ U) (Z : TangentSpace (spacetimeModel n) p) : |
| 61 | rawHorizontalCovariantDerivative D' |
| 62 | (parabolicHorizontalSection (spacetimeRescaling R Q hQ a) V) p Z = |
| 63 | (spacetimeRescaling R Q hQ a).horizontal p (rawHorizontalCovariantDerivative D V p Z) := by |
| 64 | let P := spacetimeRescaling R Q hQ a |
| 65 | have hfactor (c : ℝ) : (Q * c) * (1 / Q) = c := by field_simp [hQ.ne'] |
| 66 | have htime := P.time_differential p Z |
| 67 | dsimp only at htime |
| 68 | unfold rawHorizontalCovariantDerivative |
| 69 | simp only [add_apply, ContinuousLinearMap.comp_apply, |
| 70 | ContinuousLinearMap.smulRight_apply] |
| 71 | erw [P.projection_eq, |
| 72 | parabolic_leafwise_connection hTarget D D' U hU V hV p hp, |
| 73 | parabolic_timeBracket, htime] |
| 74 | simp only [map_add, map_smul, smul_smul, hfactor] |
| 75 | rfl |
| 76 | |
| 77 | end PoincareMT.ParabolicRescaling |