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.Geometry.Slices |
| 2 | import PoincareLib.Geometry.Riemannian.Homothety.Connection.Scaling |
| 3 | import PoincareLib.Geometry.Spacetime.Horizontal.Basic |
| 4 | |
| 5 | /-! Adapted from Mapher06/Poincare-MorganTian, `PoincareMT/Proofs/M13/SliceConnection.lean`, |
| 6 | revision `0c5d5c4e1ecbc12703b1994e226df1b15d2e8d39`. See `references/ricci-flow/mapher/rescaling-import.json`. -/ |
| 7 | |
| 8 | /-! |
| 9 | # Chosen connections on the rescaled slices |
| 10 | |
| 11 | Constant metric scaling keeps the chosen connection operator. Equality of |
| 12 | the actual slice subsets transports its charts and connection together. |
| 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 | {time : X → ℝ} {I : SpacetimeInterval} |
| 28 | {F : GeneralizedFlowSpacetime n X time I} |
| 29 | |
| 30 | namespace SliceData |
| 31 | |
| 32 | variable {U W : Set F.Point} |
| 33 | |
| 34 | noncomputable def transportLeviCivita (B : SliceData F U) (h : U = W) |
| 35 | (D : LeviCivitaData B.metricOnPoints) : |
| 36 | LeviCivitaData (B.transport h).metricOnPoints := by |
| 37 | subst W |
| 38 | exact D |
| 39 | |
| 40 | noncomputable def derivativeValue (B : SliceData F U) |
| 41 | (D : LeviCivitaData B.metricOnPoints) (V : HorizontalSection F) |
| 42 | (x : B.Point) (v : SpacetimeModelVector n) : SpacetimeModelVector n := |
| 43 | (B.tangentEquiv x |
| 44 | (D.connection (fun y ↦ (B.tangentEquiv y).symm (V y.val)) x |
| 45 | ((B.tangentEquiv x).symm (F.horizontalProjection x.val v)))).val |
| 46 | |
| 47 | theorem transport_derivativeValue (B : SliceData F U) (h : U = W) |
| 48 | (D : LeviCivitaData B.metricOnPoints) (V : HorizontalSection F) |
| 49 | (x : B.Point) (v : SpacetimeModelVector n) : |
| 50 | (B.transport h).derivativeValue (B.transportLeviCivita h D) V |
| 51 | (B.identification h x) v = B.derivativeValue D V x v := by |
| 52 | subst W |
| 53 | rfl |
| 54 | |
| 55 | end SliceData |
| 56 | |
| 57 | variable {S : ∀ t : ℝ, SpacetimeSliceGeometry F t} |
| 58 | |
| 59 | theorem rawLeafwise_derivative_val_at (D : LeafwiseLeviCivitaFamily F S) |
| 60 | (V : HorizontalSection F) (t : ℝ) (x : (S t).Point) |
| 61 | (v : SpacetimeModelVector n) : |
| 62 | (rawLeafwiseCovariantDerivative D V x.val (F.horizontalProjection x.val v)).val = |
| 63 | ((S t).tangentEquiv x |
| 64 | ((D.sliceConnection t).connection (restrictHorizontalSection S t V) x |
| 65 | (((S t).tangentEquiv x).symm (F.horizontalProjection x.val v)))).val := by |
| 66 | rcases x with ⟨p, hp⟩ |
| 67 | subst t |
| 68 | rfl |
| 69 | |
| 70 | theorem rescaledSliceData_derivativeValue |
| 71 | (F : GeneralizedFlowSpacetime n X time I) {t : ℝ} |
| 72 | (G : SpacetimeSliceGeometry F t) (D : LeviCivitaData G.metricOnPoints) |
| 73 | (Q : ℝ) (hQ : 0 < Q) (a : ℝ) (V : HorizontalSection F) |
| 74 | (x : G.Point) (v : SpacetimeModelVector n) : |
| 75 | (rescaledSliceData F G Q hQ a).derivativeValue (scaleLeviCivitaData D Q hQ) |
| 76 | (fun p ↦ parabolicSpacetimeHorizontal F Q hQ a p (V p)) x v = |
| 77 | (G.tangentEquiv x |
| 78 | (D.connection (fun y ↦ (G.tangentEquiv y).symm (V y.val)) x |
| 79 | ((G.tangentEquiv x).symm (F.horizontalProjection x.val v)))).val := by |
| 80 | change (parabolicSpacetimeHorizontal F Q hQ a x.val |
| 81 | (G.tangentEquiv x |
| 82 | (D.connection |
| 83 | (fun y ↦ (G.tangentEquiv y).symm |
| 84 | ((parabolicSpacetimeHorizontal F Q hQ a y.val).symm |
| 85 | (parabolicSpacetimeHorizontal F Q hQ a y.val (V y.val)))) x |
| 86 | ((G.tangentEquiv x).symm |
| 87 | ((parabolicSpacetimeHorizontal F Q hQ a x.val).symm |
| 88 | ((parabolicSpacetime F Q hQ a).horizontalProjection x.val v)))))).val = _ |
| 89 | rw [parabolicSpacetime_projection] |
| 90 | simp only [ContinuousLinearEquiv.symm_apply_apply] |
| 91 | rfl |
| 92 | |
| 93 | noncomputable def parabolicLeafwiseConnection |
| 94 | (D : LeafwiseLeviCivitaFamily F S) (Q : ℝ) (hQ : 0 < Q) (a : ℝ) : |
| 95 | LeafwiseLeviCivitaFamily (parabolicSpacetime F Q hQ a) |
| 96 | (parabolicSpacetimeSlice F S Q hQ a) where |
| 97 | sliceConnection s := |
| 98 | (rescaledSliceData F (S (parabolicTimeInv Q a s)) Q hQ a).transportLeviCivita |
| 99 | (parabolicSliceSet_eq F Q hQ a s) |
| 100 | (scaleLeviCivitaData (D.sliceConnection (parabolicTimeInv Q a s)) Q hQ) |
| 101 | |
| 102 | theorem parabolic_leafwise_projection_val |
| 103 | (D : LeafwiseLeviCivitaFamily F S) (Q : ℝ) (hQ : 0 < Q) (a : ℝ) |
| 104 | (V : HorizontalSection F) (p : F.Point) (v : SpacetimeModelVector n) : |
| 105 | (rawLeafwiseCovariantDerivative (parabolicLeafwiseConnection D Q hQ a) |
| 106 | (fun q ↦ parabolicSpacetimeHorizontal F Q hQ a q (V q)) p |
| 107 | ((parabolicSpacetime F Q hQ a).horizontalProjection p v)).val = |
| 108 | (rawLeafwiseCovariantDerivative D V p (F.horizontalProjection p v)).val := by |
| 109 | let s := parabolicTime Q a (F.timeFunction p) |
| 110 | let t := parabolicTimeInv Q a s |
| 111 | let x : (S t).Point := |
| 112 | ⟨p, (parabolicTimeInv_parabolicTime Q hQ a (F.timeFunction p)).symm⟩ |
| 113 | let B := rescaledSliceData F (S t) Q hQ a |
| 114 | let h := parabolicSliceSet_eq F Q hQ a s |
| 115 | let y : (parabolicSpacetimeSlice F S Q hQ a s).Point := B.identification h x |
| 116 | have hy : y.val = p := SliceData.identification_val B h x |
| 117 | have htarget := rawLeafwise_derivative_val_at (parabolicLeafwiseConnection D Q hQ a) |
| 118 | (fun q ↦ parabolicSpacetimeHorizontal F Q hQ a q (V q)) s y v |
| 119 | have htransport := SliceData.transport_derivativeValue B h |
| 120 | (scaleLeviCivitaData (D.sliceConnection t) Q hQ) |
| 121 | (fun q ↦ parabolicSpacetimeHorizontal F Q hQ a q (V q)) x v |
| 122 | have hscale := rescaledSliceData_derivativeValue F (S t) (D.sliceConnection t) |
| 123 | Q hQ a V x v |
| 124 | have hsource := rawLeafwise_derivative_val_at D V t x v |
| 125 | have hvalue := htarget.trans (htransport.trans (hscale.trans hsource.symm)) |
| 126 | have hpoint := congrArg |
| 127 | (fun q : (parabolicSpacetime F Q hQ a).Point ↦ |
| 128 | (rawLeafwiseCovariantDerivative (parabolicLeafwiseConnection D Q hQ a) |
| 129 | (fun z ↦ parabolicSpacetimeHorizontal F Q hQ a z (V z)) q |
| 130 | ((parabolicSpacetime F Q hQ a).horizontalProjection q v)).val) hy |
| 131 | exact hpoint.symm.trans hvalue |
| 132 | |
| 133 | theorem parabolic_leafwise_chosen |
| 134 | (D : LeafwiseLeviCivitaFamily F S) (Q : ℝ) (hQ : 0 < Q) (a : ℝ) |
| 135 | (V : HorizontalSection F) (p : F.Point) (v : F.Horizontal p) : |
| 136 | rawLeafwiseCovariantDerivative (parabolicLeafwiseConnection D Q hQ a) |
| 137 | (fun q ↦ parabolicSpacetimeHorizontal F Q hQ a q (V q)) p |
| 138 | (parabolicSpacetimeHorizontal F Q hQ a p v) = |
| 139 | parabolicSpacetimeHorizontal F Q hQ a p (rawLeafwiseCovariantDerivative D V p v) := by |
| 140 | apply Subtype.ext |
| 141 | have h := parabolic_leafwise_projection_val D Q hQ a V p v.val |
| 142 | rw [parabolicSpacetime_projection, F.horizontalProjection_identity] at h |
| 143 | exact h |
| 144 | |
| 145 | end PoincareMT.ParabolicRescaling |