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 | /- Adapted from Mapher `PoincareMT/Proofs/M03/Existence/WithinConjugatingFlowNative.lean` at |
| 2 | f927d9e1f0810042766d3b5f64d3f4da02ee93cc. See |
| 3 | `references/ricci-flow/mapher/local-theory/port.json`. -/ |
| 4 | |
| 5 | import PoincareLib.Geometry.RicciFlow.Local.Gauge.Flow.TangentHalfSpaceExtension |
| 6 | import PoincareLib.Geometry.RicciFlow.Local.Gauge.Flow.FiniteOrderConjugatingFlow |
| 7 | |
| 8 | /-! |
| 9 | # Smooth conjugating flows from within-time field regularity |
| 10 | |
| 11 | The finite-order extensions are constructed from the actual native field. |
| 12 | Their flows agree with one fixed C1 flow on a common positive time interval. |
| 13 | -/ |
| 14 | |
| 15 | set_option autoImplicit false |
| 16 | |
| 17 | open Set Manifold |
| 18 | open scoped Topology ContDiff Bundle |
| 19 | |
| 20 | noncomputable section |
| 21 | |
| 22 | namespace PoincareMT.WithinConjugatingFlowNative |
| 23 | |
| 24 | variable {n : ℕ} {M : Type*} [TopologicalSpace M] |
| 25 | [ChartedSpace (EuclideanSpace ℝ (Fin n)) M] [IsManifold (𝓡 n) ∞ M] |
| 26 | [T2Space M] [CompactSpace M] |
| 27 | |
| 28 | local notation "E" => EuclideanSpace ℝ (Fin n) |
| 29 | local notation "I" => 𝓡 n |
| 30 | local notation "J" => ModelWithCorners.prod 𝓘(ℝ, ℝ) (𝓡 n) |
| 31 | |
| 32 | theorem exists_diffeomorph_family |
| 33 | (X : ℝ → (x : M) → TangentSpace I x) {T₀ : ℝ} (hT₀ : 0 < T₀) |
| 34 | (hX : ContMDiffOn J (ModelWithCorners.prod I 𝓘(ℝ, E)) ∞ |
| 35 | (fun q : ℝ × M => (Bundle.TotalSpace.mk' E q.2 (X q.1 q.2) : TangentBundle I M)) |
| 36 | (Ico 0 T₀ ×ˢ univ)) : |
| 37 | ∃ T > 0, T ≤ T₀ / 2 ∧ ∃ Phi : ℝ → Diffeomorph I I M M ∞, |
| 38 | Phi 0 = Diffeomorph.refl I M ∞ ∧ |
| 39 | ContMDiffOn J I ∞ (fun q : ℝ × M => Phi q.1 q.2) (Ico 0 T ×ˢ univ) ∧ |
| 40 | ∀ t ∈ Ico 0 T, ∀ x : M, |
| 41 | HasMFDerivWithinAt 𝓘(ℝ, ℝ) I (fun s => Phi s x) (Ico 0 T) t |
| 42 | ((1 : ℝ →L[ℝ] ℝ).smulRight (X t (Phi t x))) := by |
| 43 | apply FiniteOrderConjugatingFlowNative.exists_diffeomorph_family_of_finite_extensions |
| 44 | (fun q : M × ℝ => X q.2 q.1) (half_pos hT₀) |
| 45 | intro k |
| 46 | obtain ⟨Y, hY, hEq⟩ := TangentHalfSpaceExtensionNative.exists_contMDiff_extension_swapped |
| 47 | (k + 1) X hT₀ (hX.of_le (by |
| 48 | simpa only [Nat.cast_succ] using |
| 49 | ENat.natCast_le_of_coe_top_le_withTop (N := ∞) le_rfl (k + 1))) |
| 50 | exact ⟨Y, hY, fun q hq => hEq q.2 ⟨hq.1, hq.2.le⟩ q.1⟩ |
| 51 | |
| 52 | theorem exists_neg_intrinsicDeTurck_family |
| 53 | {g : ℝ → RiemannianMetric n M} {background : RiemannianMetric n M} |
| 54 | (D : ∀ t : ℝ, LeviCivitaData (g t)) (B : LeviCivitaData background) |
| 55 | {T₀ : ℝ} (hT₀ : 0 < T₀) |
| 56 | (hW : ContMDiffOn J (ModelWithCorners.prod I 𝓘(ℝ, E)) ∞ |
| 57 | (fun q : ℝ × M => |
| 58 | (Bundle.TotalSpace.mk' E q.2 |
| 59 | (DeTurckNative.intrinsicDeTurckField (D q.1) B q.2) : TangentBundle I M)) |
| 60 | (Ico 0 T₀ ×ˢ univ)) : |
| 61 | ∃ T > 0, T ≤ T₀ / 2 ∧ ∃ Phi : ℝ → Diffeomorph I I M M ∞, |
| 62 | Phi 0 = Diffeomorph.refl I M ∞ ∧ |
| 63 | ContMDiffOn J I ∞ (fun q : ℝ × M => Phi q.1 q.2) (Ico 0 T ×ˢ univ) ∧ |
| 64 | ∀ t ∈ Ico 0 T, ∀ x : M, |
| 65 | HasMFDerivWithinAt 𝓘(ℝ, ℝ) I (fun s => Phi s x) (Ico 0 T) t |
| 66 | ((1 : ℝ →L[ℝ] ℝ).smulRight |
| 67 | (-(DeTurckNative.intrinsicDeTurckField (D t) B (Phi t x)))) := by |
| 68 | have hneg : ContMDiffOn J (ModelWithCorners.prod I 𝓘(ℝ, E)) ∞ |
| 69 | (fun q : ℝ × M => |
| 70 | (Bundle.TotalSpace.mk' E q.2 |
| 71 | (-(DeTurckNative.intrinsicDeTurckField (D q.1) B q.2)) : TangentBundle I M)) |
| 72 | (Ico 0 T₀ ×ˢ univ) := by |
| 73 | intro q hq |
| 74 | exact TimeDependentConjugatingFlowNative.contMDiffWithinAt_neg_intrinsicDeTurckField |
| 75 | D B (hW q hq) |
| 76 | exact exists_diffeomorph_family |
| 77 | (fun t x => -(DeTurckNative.intrinsicDeTurckField (D t) B x)) hT₀ hneg |
| 78 | |
| 79 | end PoincareMT.WithinConjugatingFlowNative |
| 80 | |
| 81 | end |