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.Generalized.ReducedGeometry.Calculus.Local.InitialSliceInjectivity |
| 2 | import PoincareLib.Geometry.RicciFlow.Generalized.ReducedGeometry.SmallTime.Coordinates.SmallTimeDifferentialGauge |
| 3 | import PoincareLib.Geometry.RicciFlow.Generalized.ReducedGeometry.Exponential.InitialValue.InitialGaugeNeighborhood |
| 4 | import PoincareLib.Geometry.RicciFlow.Generalized.ReducedGeometry.Exponential.Construction.ExponentialSlices |
| 5 | |
| 6 | /-! |
| 7 | # Uniform noncriticality near one surviving initial vector |
| 8 | |
| 9 | One actual initial gauge gives the closed coordinate jets. Their uniform |
| 10 | operator estimate transfers through the actual gauge tangent maps to the |
| 11 | supplied exponential differential. Morgan-Tian Claim 6.20, p. 114, and |
| 12 | Corollary 6.79, pp. 144-145. A surviving positive prefix is sufficient. |
| 13 | -/ |
| 14 | |
| 15 | set_option autoImplicit false |
| 16 | -- The gauge lift and source metric retain the same actual tangent models. |
| 17 | set_option backward.isDefEq.respectTransparency false |
| 18 | |
| 19 | open Set Filter |
| 20 | open scoped Manifold ContDiff Bundle Topology |
| 21 | |
| 22 | universe u |
| 23 | |
| 24 | namespace PoincareMT.M14 |
| 25 | |
| 26 | variable {n : ℕ} {X : Type u} [TopologicalSpace X] {time : X → ℝ} |
| 27 | {I : SpacetimeInterval} {G : GeneralizedLGeometryTransport n X time I} |
| 28 | {T : ℝ} {x : G.Point} |
| 29 | |
| 30 | private theorem horizontal_t2Space {p : G.Point} : T2Space (G.Horizontal p) := |
| 31 | FiberBundle.t2Space (EuclideanSpace ℝ (Fin n)) G.Horizontal p |
| 32 | |
| 33 | attribute [local instance] horizontal_t2Space |
| 34 | |
| 35 | /-- Near each source vector with a positive surviving prefix, the actual |
| 36 | exponential differential is uniformly bijective for all sufficiently |
| 37 | small positive square times, Corollary 6.79, pp. 144-145. -/ |
| 38 | theorem exists_open_smallTime_differential_bijective |
| 39 | (E : M14ExponentialFamily G T x) {Z : G.Horizontal x} {S : ℝ} |
| 40 | (hS : 0 < S) (hsurv : (Z, S) ∈ E.domain) : |
| 41 | ∃ U : Set (G.Horizontal x), IsOpen U ∧ Z ∈ U ∧ |
| 42 | ∃ d : ℝ, 0 < d ∧ d ≤ S ∧ |
| 43 | ∀ W ∈ U, ∀ s ∈ Ioc 0 d, |
| 44 | ∃ hs : (W, s) ∈ E.domain, Function.Bijective (E.differential W s hs) := by |
| 45 | obtain ⟨b, ⟨t₀, x₀⟩, rfl⟩ := G.gaugeCover.covers x |
| 46 | let base := (G.gaugeCover.cylinder b).toSpacetime (t₀, x₀) |
| 47 | let metric := G.spacetime.horizontalMetric.toRiemannianMetric |
| 48 | let : NormedAddCommGroup (G.Horizontal base) := |
| 49 | (metric.toCore base).toNormedAddCommGroupOfTopology |
| 50 | (metric.continuousAt base) (metric.isVonNBounded base) |
| 51 | let : InnerProductSpace ℝ (G.Horizontal base) := |
| 52 | .ofCoreOfTopology (metric.toCore base) (metric.continuousAt base) (metric.isVonNBounded base) |
| 53 | let : Bundle.RiemannianBundle (G.Horizontal : G.Point → Type _) := ⟨metric⟩ |
| 54 | let : FiniteDimensional ℝ (G.Horizontal base) := |
| 55 | VectorBundle.finiteDimensional ℝ (EuclideanSpace ℝ (Fin n)) G.Horizontal base |
| 56 | let U : Set (G.Horizontal base) := {A | (A, S) ∈ E.domain} |
| 57 | have hU : IsOpen U := exponentialFamily_domain_slice_isOpen E S |
| 58 | have hZU : Z ∈ U := hsurv |
| 59 | have htube : U ×ˢ Icc 0 S ⊆ E.domain := fun z hz => |
| 60 | (E.maximal_lifetime z.1).out (E.domain_zero z.1) hz.1 hz.2 |
| 61 | obtain ⟨N, hN, hZN, hNU, d, hd, hdS, β, hβ, hrec, _, hzero⟩ := |
| 62 | exists_smooth_initial_gaugeFamily b t₀ x₀ hU hZU hS |
| 63 | (fun z : G.Horizontal base × ℝ => E.gamma z.1 z.2) |
| 64 | (E.family_smooth.mono htube) (fun A _ => E.gamma_at_zero A) |
| 65 | let f : ℝ × G.Horizontal base → EuclideanSpace ℝ (Fin n) := |
| 66 | fun z => (β (z.2, z.1)).2.val |
| 67 | have hf : ContDiffOn ℝ ∞ f (Icc 0 d ×ˢ N) := by |
| 68 | have hval : ContMDiff (𝓡 n) (𝓡 n) ∞ |
| 69 | (Subtype.val : G.gaugeCover.spatial b → EuclideanSpace ℝ (Fin n)) := |
| 70 | contMDiff_subtype_val |
| 71 | have hq := hval.comp_contMDiffOn (fun z hz => (hβ z hz).snd) |
| 72 | rw [← modelWithCornersSelf_prod, chartedSpaceSelf_prod] at hq |
| 73 | exact hq.contDiffOn.comp (contDiffOn_snd.prodMk contDiffOn_fst) |
| 74 | (fun _ hz => ⟨hz.2, hz.1⟩) |
| 75 | let j := (G.gaugeCover.metric b).spatialTangentEquiv t₀ x₀ |
| 76 | let L : G.Horizontal base →L[ℝ] EuclideanSpace ℝ (Fin n) := |
| 77 | (2 : ℝ) • j.symm.toContinuousLinearMap |
| 78 | have hL : Function.Injective L := |
| 79 | (smul_right_injective (EuclideanSpace ℝ (Fin n)) (by norm_num : (2 : ℝ) ≠ 0)).comp |
| 80 | j.symm.injective |
| 81 | have hfzero (A : G.Horizontal base) (hA : A ∈ N) : f (0, A) = x₀.val := |
| 82 | congrArg (fun z => z.2.val) (hzero A hA) |
| 83 | have hfvelocity (A : G.Horizontal base) (hA : A ∈ N) : |
| 84 | derivWithin (fun s => f (s, A)) (Icc 0 d) 0 = L A := by |
| 85 | exact exponentialGauge_initial_velocity b t₀ x₀ E hS hd hdS |
| 86 | (htube ⟨hNU hA, hS.le, le_rfl⟩) |
| 87 | (hβ.comp (contMDiff_const.prodMk contMDiff_id).contMDiffOn |
| 88 | (fun _ hs => ⟨hA, hs⟩)) |
| 89 | (fun s hs => hrec (A, s) ⟨hA, hs⟩) (hzero A hA) |
| 90 | obtain ⟨V, hV, hZV, hVN, e, he, hed, hgood⟩ := |
| 91 | exists_open_initial_sliceDerivative_injective hN hZN hd f hf x₀.val hfzero L hL |
| 92 | hfvelocity |
| 93 | refine ⟨V, hV, hZV, e, he, hed.trans hdS, ?_⟩ |
| 94 | intro W hW s hs |
| 95 | have hsD : s ∈ Icc 0 d := ⟨hs.1.le, hs.2.trans hed⟩ |
| 96 | have hWN : W ∈ N := hVN hW |
| 97 | have hWs : (W, s) ∈ E.domain := htube ⟨hNU hWN, hs.1.le, hsD.2.trans hdS⟩ |
| 98 | refine ⟨hWs, ?_⟩ |
| 99 | have hslice : ContMDiffOn (𝓘(ℝ, G.Horizontal base)) (spacetimeModel n) ∞ |
| 100 | (fun A => β (A, s)) N := |
| 101 | hβ.comp (contMDiff_id.prodMk contMDiff_const).contMDiffOn |
| 102 | (fun _ hA => ⟨hA, hsD⟩) |
| 103 | have hslice' := ((hslice W hWN).contMDiffAt (hN.mem_nhds hWN)).mdifferentiableAt |
| 104 | (by simp) |
| 105 | have hgerm : (fun A => E.gamma A s) =ᶠ[𝓝 W] |
| 106 | (fun A => (G.gaugeCover.cylinder b).toSpacetime (β (A, s))) := by |
| 107 | filter_upwards [hN.mem_nhds hWN] with A hA |
| 108 | exact (hrec (A, s) ⟨hA, hsD⟩).symm |
| 109 | let jₛ := (G.gaugeCover.metric b).spatialTangentEquiv (β (W, s)).1 (β (W, s)).2 |
| 110 | have hident (v : G.Horizontal base) : HEq (E.differential W s hWs v) |
| 111 | (jₛ (fderiv ℝ (fun A => f (s, A)) W v)) := |
| 112 | exponentialGauge_differential_heq E hWs b (fun A => β (A, s)) v hslice' hgerm |
| 113 | have hinj : Function.Injective (E.differential W s hWs) := by |
| 114 | intro v w hvw |
| 115 | apply hgood W hW s hs |
| 116 | apply jₛ.injective |
| 117 | exact eq_of_heq ((hident v).symm.trans ((heq_of_eq hvw).trans (hident w))) |
| 118 | let : FiniteDimensional ℝ (G.Horizontal (E.gamma W s)) := |
| 119 | VectorBundle.finiteDimensional ℝ (EuclideanSpace ℝ (Fin n)) G.Horizontal (E.gamma W s) |
| 120 | have hdim : Module.finrank ℝ (G.Horizontal base) = |
| 121 | Module.finrank ℝ (G.Horizontal (E.gamma W s)) := |
| 122 | (VectorBundle.finrank_eq ℝ (EuclideanSpace ℝ (Fin n)) G.Horizontal base).trans |
| 123 | (VectorBundle.finrank_eq ℝ (EuclideanSpace ℝ (Fin n)) G.Horizontal (E.gamma W s)).symm |
| 124 | exact (LinearEquiv.ofInjectiveOfFinrankEq |
| 125 | (E.differential W s hWs).toLinearMap hinj hdim).bijective |
| 126 | |
| 127 | end PoincareMT.M14 |