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.Lie |
| 2 | import PoincareLib.Geometry.Spacetime.Rescaling.Horizontal.Curvature |
| 3 | import PoincareLib.Geometry.Spacetime.Rescaling.Horizontal.Connection |
| 4 | import PoincareLib.Geometry.Spacetime.Rescaling.Backward.Calculus |
| 5 | import PoincareLib.Geometry.RicciFlow.Generalized.Gauge.Geometry |
| 6 | |
| 7 | /-! Adapted from Mapher06/Poincare-MorganTian, `PoincareMT/Proofs/M13/HorizontalCalculus.lean`, |
| 8 | revision `0c5d5c4e1ecbc12703b1994e226df1b15d2e8d39`. See `references/ricci-flow/mapher/rescaling-import.json`. -/ |
| 9 | |
| 10 | /-! |
| 11 | # Complete horizontal calculus on the selected rescaling |
| 12 | |
| 13 | The supplied M12 theory supplies connection existence and regular-section |
| 14 | calculus on the two actual gauge covers. All rescaling identities are proved |
| 15 | by the owned metric, slice, bundle and clock helpers. |
| 16 | -/ |
| 17 | |
| 18 | set_option autoImplicit false |
| 19 | set_option backward.isDefEq.respectTransparency false |
| 20 | |
| 21 | open scoped Manifold ContDiff Bundle Topology |
| 22 | |
| 23 | universe u |
| 24 | |
| 25 | open PoincareMT.Homothety |
| 26 | |
| 27 | namespace PoincareMT.ParabolicRescaling |
| 28 | |
| 29 | variable {n : ℕ} {X : Type u} [TopologicalSpace X] |
| 30 | {A : AdaptedMetricAtlas n X} {R : GeneralizedFlowCarrierConclusion A} |
| 31 | {Q : ℝ} {hQ : 0 < Q} {a : ℝ} |
| 32 | |
| 33 | theorem parabolicHorizontalCalculus (hEquation : GeneralizedRicciGaugeTheory.{u} n) : |
| 34 | ParabolicHorizontalCalculus (spacetimeRescaling R Q hQ a) := by |
| 35 | let P := spacetimeRescaling R Q hQ a |
| 36 | have hsource := hEquation.leafwise_calculus X A.time A.interval |
| 37 | R.spacetime R.slices R.timeIntervals R.gaugeCover |
| 38 | have htarget := hEquation.leafwise_calculus X P.atlasRescaling.atlas.time |
| 39 | P.atlasRescaling.atlas.interval P.realization.spacetime P.realization.slices |
| 40 | P.realization.timeIntervals P.realization.gaugeCover |
| 41 | obtain ⟨D⟩ := hsource.1 |
| 42 | obtain ⟨D'⟩ := htarget.1 |
| 43 | have hlie := parabolic_horizontal_lie D D' (hsource.2 D) (htarget.2 D') |
| 44 | refine { |
| 45 | source_connections := ⟨D⟩ |
| 46 | target_connections := ⟨D'⟩ |
| 47 | source_calculus := hsource.2 |
| 48 | target_calculus := htarget.2 |
| 49 | slice_calculus := parabolic_slice_calculus |
| 50 | normalized_isometry := ⟨normalizedHorizontalIsometry P⟩ |
| 51 | section_smooth_iff := parabolic_section_smooth_iff |
| 52 | lie_eq := hlie |
| 53 | riemann_eq := parabolic_horizontal_riemann |
| 54 | ricci_eq := parabolic_horizontal_ricci |
| 55 | scalar_eq := parabolic_horizontal_scalar |
| 56 | norm_eq := parabolic_horizontal_norm |
| 57 | normSq_eq := parabolic_horizontal_normSq |
| 58 | equation_iff := ?_ |
| 59 | time_bracket := fun _ _ V _ p _ ↦ parabolic_timeBracket V p |
| 60 | leafwise_connection := parabolic_leafwise_connection htarget.2 |
| 61 | horizontal_connection := parabolic_horizontal_connection htarget.2 |
| 62 | backward_time := backward_time P |
| 63 | backward_derivative := backward_mfderiv P |
| 64 | backward_velocity_val := backward_velocity_val |
| 65 | backward_velocity := backward_velocity P |
| 66 | backward_energy := backward_energy P } |
| 67 | intro D₁ D₂ |
| 68 | constructor |
| 69 | · intro h p v w |
| 70 | have hp := h p (P.horizontal p v) (P.horizontal p w) |
| 71 | rw [hlie, parabolic_horizontal_ricci D₁ D₂] at hp |
| 72 | exact hp |
| 73 | · intro h p v w |
| 74 | obtain ⟨v₀, rfl⟩ := (P.horizontal p).surjective v |
| 75 | obtain ⟨w₀, rfl⟩ := (P.horizontal p).surjective w |
| 76 | rw [hlie, parabolic_horizontal_ricci D₁ D₂] |
| 77 | exact h p v₀ w₀ |
| 78 | |
| 79 | end PoincareMT.ParabolicRescaling |