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/DeTurckSmoothForcingNative.lean` at |
| 2 | f927d9e1f0810042766d3b5f64d3f4da02ee93cc. See |
| 3 | `references/ricci-flow/mapher/local-theory/port.json`. -/ |
| 4 | |
| 5 | import PoincareLib.Geometry.RicciFlow.Local.DeTurck.Forcing.DeTurckResidual |
| 6 | |
| 7 | /-! |
| 8 | # The smooth forcing map of the actual native DeTurck residual |
| 9 | |
| 10 | The uncut source uses a continuous coefficient path and the actual high L2 |
| 11 | response. It agrees with the constructed cutoff forcing on its entire ball. |
| 12 | -/ |
| 13 | |
| 14 | set_option autoImplicit false |
| 15 | set_option maxHeartbeats 1800000 |
| 16 | set_option backward.isDefEq.respectTransparency false |
| 17 | |
| 18 | noncomputable section |
| 19 | |
| 20 | open MeasureTheory Set Filter |
| 21 | open scoped Manifold ContDiff Bundle Topology |
| 22 | |
| 23 | namespace PoincareMT.DeTurckSmoothForcingNative |
| 24 | |
| 25 | open SpectralHeatNative QuasilinearDeTurckNative TimeL2BilinearNative |
| 26 | DeTurckMetricProducerNative ContinuousPathCompositionNative |
| 27 | |
| 28 | section Forcing |
| 29 | |
| 30 | variable {iota : Type*} [Countable iota] {T : ℝ} |
| 31 | (lambda : iota → NNReal) |
| 32 | (A : C(State iota, State iota →L[ℝ] State iota)) (b : C(State iota, State iota)) |
| 33 | |
| 34 | /-- A continuous trace coefficient acts on the unrestricted high L2 response. -/ |
| 35 | def uncutForcing (hT : 0 ≤ T) (F : ForcingSpace iota T) : ForcingSpace iota T := |
| 36 | productOperator hT (ContinuousLinearMap.id ℝ (State iota →L[ℝ] State iota)) |
| 37 | (A.comp (shiftedTraceOperator hT lambda F)) (shiftedHighOperator hT lambda F) + |
| 38 | tracePathL2 hT (b.comp (shiftedTraceOperator hT lambda F)) |
| 39 | |
| 40 | theorem uncutForcing_contDiff (hT : 0 ≤ T) |
| 41 | (hA : ContDiff ℝ ∞ (A : State iota → State iota →L[ℝ] State iota)) |
| 42 | (hb : ContDiff ℝ ∞ (b : State iota → State iota)) : |
| 43 | ContDiff ℝ ∞ (uncutForcing lambda A b hT) := by |
| 44 | have hAc : ContDiff ℝ ∞ (fun F : ForcingSpace iota T => |
| 45 | A.comp (shiftedTraceOperator hT lambda F)) := |
| 46 | (contDiff_postcomp (Icc (0 : ℝ) T) A hA).comp |
| 47 | (shiftedTraceOperator hT lambda).contDiff |
| 48 | have hbc : ContDiff ℝ ∞ (fun F : ForcingSpace iota T => |
| 49 | b.comp (shiftedTraceOperator hT lambda F)) := |
| 50 | (contDiff_postcomp (Icc (0 : ℝ) T) b hb).comp |
| 51 | (shiftedTraceOperator hT lambda).contDiff |
| 52 | have htop : ContDiff ℝ ∞ (fun F : ForcingSpace iota T => |
| 53 | productOperator hT (ContinuousLinearMap.id ℝ (State iota →L[ℝ] State iota)) |
| 54 | (A.comp (shiftedTraceOperator hT lambda F)) (shiftedHighOperator hT lambda F)) := by |
| 55 | simpa only [Function.comp_def] using |
| 56 | (((productOperator hT |
| 57 | (ContinuousLinearMap.id ℝ (State iota →L[ℝ] State iota))).contDiff.comp hAc).clm_apply |
| 58 | (shiftedHighOperator hT lambda).contDiff) |
| 59 | have hlower : ContDiff ℝ ∞ (fun F : ForcingSpace iota T => |
| 60 | tracePathL2 (E := State iota) hT (b.comp (shiftedTraceOperator hT lambda F))) := by |
| 61 | simpa only [Function.comp_def] using |
| 62 | (tracePathL2 (E := State iota) hT).contDiff.comp hbc |
| 63 | change ContDiff ℝ ∞ (fun F : ForcingSpace iota T => |
| 64 | productOperator hT (ContinuousLinearMap.id ℝ (State iota →L[ℝ] State iota)) |
| 65 | (A.comp (shiftedTraceOperator hT lambda F)) (shiftedHighOperator hT lambda F) + |
| 66 | tracePathL2 (E := State iota) hT (b.comp (shiftedTraceOperator hT lambda F))) |
| 67 | exact htop.add hlower |
| 68 | |
| 69 | /-- All pointwise identifications are made on actual almost-everywhere representatives. -/ |
| 70 | theorem uncutForcing_coe (hT : 0 ≤ T) (F : ForcingSpace iota T) : |
| 71 | uncutForcing lambda A b hT F =ᵐ[timeMeasure T] fun t => |
| 72 | A (shiftedBaseMultiplier lambda (shiftedHighOperator hT lambda F t)) |
| 73 | (shiftedHighOperator hT lambda F t) + |
| 74 | b (shiftedBaseMultiplier lambda (shiftedHighOperator hT lambda F t)) := by |
| 75 | let ev := ContinuousLinearMap.id ℝ (State iota →L[ℝ] State iota) |
| 76 | let P := A.comp (shiftedTraceOperator hT lambda F) |
| 77 | let Q := b.comp (shiftedTraceOperator hT lambda F) |
| 78 | let H := shiftedHighOperator hT lambda F |
| 79 | filter_upwards [product_ae_eq_on_interval hT ev P H, tracePathL2_ae_eq hT Q, |
| 80 | Lp.coeFn_add (product hT ev P H) (tracePathL2 hT Q), |
| 81 | intermediate_high_eq_trace hT lambda F, ae_restrict_mem measurableSet_Ioc] |
| 82 | with t hproduct hlower hadd htrace ht |
| 83 | have hmem : t ∈ Icc (0 : ℝ) T := ⟨ht.1.le, ht.2⟩ |
| 84 | change (product hT ev P H + tracePathL2 hT Q) t = _ |
| 85 | rw [hadd, Pi.add_apply, hproduct hmem, hlower hmem] |
| 86 | change A (shiftedTracePath hT lambda F ⟨t, hmem⟩) (H t) + |
| 87 | b (shiftedTracePath hT lambda F ⟨t, hmem⟩) = _ |
| 88 | rw [← htrace hmem] |
| 89 | |
| 90 | theorem uncutForcing_eq_cutoff_forcing (hT : 0 ≤ T) (hT1 : T ≤ 1) |
| 91 | {rho : ℝ} (hrho : 0 < rho) (C C0 : NNReal) |
| 92 | (hmix : LocalMixedBound lambda rho C C0 |
| 93 | (fun x => A (shiftedBaseMultiplier lambda x) x + b (shiftedBaseMultiplier lambda x))) |
| 94 | (F : ForcingSpace iota T) |
| 95 | (hF : ‖F‖ ≤ (cutoffSpatialResidual lambda hrho |
| 96 | (fun x => A (shiftedBaseMultiplier lambda x) x + b (shiftedBaseMultiplier lambda x)) |
| 97 | C C0 hmix).forcingRadius) : |
| 98 | uncutForcing lambda A b hT F = |
| 99 | (cutoffSpatialResidual lambda hrho |
| 100 | (fun x => A (shiftedBaseMultiplier lambda x) x + b (shiftedBaseMultiplier lambda x)) |
| 101 | C C0 hmix).forcingResidual hT F := by |
| 102 | apply Lp.ext |
| 103 | filter_upwards [uncutForcing_coe lambda A b hT F, |
| 104 | (cutoffSpatialResidual lambda hrho |
| 105 | (fun x => A (shiftedBaseMultiplier lambda x) x + b (shiftedBaseMultiplier lambda x)) |
| 106 | C C0 hmix).forcingResidual_coe hT F, |
| 107 | cutoffSpatialResidual_response_eq hT hT1 lambda hrho |
| 108 | (fun x => A (shiftedBaseMultiplier lambda x) x + b (shiftedBaseMultiplier lambda x)) |
| 109 | C C0 hmix F hF] with t hraw hforcing hcutoff |
| 110 | exact hraw.trans (hcutoff.symm.trans hforcing.symm) |
| 111 | |
| 112 | end Forcing |
| 113 | |
| 114 | section NativeForcing |
| 115 | |
| 116 | open TensorProbeNative TensorHilbertNative NativeChartScalarLocalization |
| 117 | DeTurckJetCoordinatesNative DeTurckResidualNative ChartMeasureNative |
| 118 | |
| 119 | universe u |
| 120 | |
| 121 | variable {n : ℕ} {M : Type u} [TopologicalSpace M] [T2Space M] |
| 122 | [ChartedSpace (EuclideanSpace ℝ (Fin n)) M] [IsManifold (𝓡 n) ∞ M] |
| 123 | [CompactSpace M] [SecondCountableTopology M] [MeasurableSpace M] [BorelSpace M] |
| 124 | {g0 : RiemannianMetric n M} (d : Data g0) |
| 125 | (L : FiniteChartLocalizationData d.charts) |
| 126 | (A : CompatibleChartCover (n := n) (M := M)) |
| 127 | |
| 128 | include L A in |
| 129 | /-- One constructed native residual supplies a smooth forcing map at every time length. -/ |
| 130 | theorem exists_native_smooth_forcing (r p : ℕ) (hpr : 2 * p ≤ r) |
| 131 | (hp : (n : ℝ) < 2 * (2 * (p : ℝ))) : |
| 132 | ∃ rho : ℝ, 0 < rho ∧ ∃ N : SpatialResidual d.symmetricParameters, |
| 133 | 2 * N.forcingRadius < rho ∧ |
| 134 | (∀ (g : RiemannianMetric n M) (D : LeviCivitaData g) (B : LeviCivitaData g0) |
| 135 | (h : SmoothTensor (n := n) (M := M)) |
| 136 | (hsymm : ∀ (x : M) (v w : TangentSpace (𝓡 n) x), h x v w = h x w v), |
| 137 | (∀ (x : M) (v w : TangentSpace (𝓡 n) x), |
| 138 | g.inner x v w = g0.inner x v w + h x v w) → |
| 139 | ‖d.smoothTensorCoordinates (2 * r + 1) h hsymm‖ ≤ rho → |
| 140 | N.toFun (d.smoothTensorCoordinates (2 * r + 2) h hsymm) = |
| 141 | d.residualCoordinates (2 * r) D B h hsymm) ∧ |
| 142 | ∀ T : ℝ, ∀ hT : 0 ≤ T, |
| 143 | ∃ R : ForcingSpace d.SymmetricIndex T → ForcingSpace d.SymmetricIndex T, |
| 144 | ContDiff ℝ ∞ R ∧ |
| 145 | ∀ (_hT1 : T ≤ 1) (F : ForcingSpace d.SymmetricIndex T), |
| 146 | ‖F‖ ≤ N.forcingRadius → R F = N.forcingResidual hT F := by |
| 147 | obtain ⟨Aop, b, hA, hb, _, rho, hrho, C, C0, hmix, hEq⟩ := |
| 148 | exists_rawResidual d L A r p hpr hp |
| 149 | let Amap : C(State d.SymmetricIndex, State d.SymmetricIndex →L[ℝ] State d.SymmetricIndex) := |
| 150 | ⟨Aop, hA.continuous⟩ |
| 151 | let bmap : C(State d.SymmetricIndex, State d.SymmetricIndex) := ⟨b, hb.continuous⟩ |
| 152 | let raw := fun x => Aop (shiftedBaseMultiplier d.symmetricParameters x) x + |
| 153 | b (shiftedBaseMultiplier d.symmetricParameters x) |
| 154 | let N := cutoffSpatialResidual d.symmetricParameters hrho raw C C0 hmix |
| 155 | refine ⟨rho, hrho, N, |
| 156 | cutoffSpatialResidual_forcingRadius d.symmetricParameters hrho raw C C0 hmix, ?_, ?_⟩ |
| 157 | · intro g D B h hsymm hmetric hsmall |
| 158 | have hJ : shiftedBaseMultiplier d.symmetricParameters |
| 159 | (d.smoothTensorCoordinates (2 * r + 2) h hsymm) = |
| 160 | d.smoothTensorCoordinates (2 * r + 1) h hsymm := by |
| 161 | simpa only [Nat.add_assoc] using |
| 162 | shiftedBase_smoothTensorCoordinates d (2 * r + 1) h hsymm |
| 163 | change (cutoffSpatialResidual d.symmetricParameters hrho raw C C0 hmix).toFun _ = _ |
| 164 | rw [cutoffSpatialResidual_apply_of_small d.symmetricParameters hrho raw C C0 hmix |
| 165 | (by rw [hJ]; exact hsmall)] |
| 166 | exact hEq g D B h hsymm hmetric hsmall |
| 167 | · intro T hT |
| 168 | refine ⟨uncutForcing d.symmetricParameters Amap bmap hT, |
| 169 | uncutForcing_contDiff d.symmetricParameters Amap bmap hT hA hb, ?_⟩ |
| 170 | intro hT1 F hF |
| 171 | exact uncutForcing_eq_cutoff_forcing d.symmetricParameters Amap bmap hT hT1 |
| 172 | hrho C C0 hmix F hF |
| 173 | |
| 174 | end NativeForcing |
| 175 | |
| 176 | end PoincareMT.DeTurckSmoothForcingNative |
| 177 | |
| 178 | end |