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.CurveShortening.Comparison.Compatibility.SourceNames |
| 2 | import PoincareLib.Geometry.CurveShortening.Ramp.LocalFlow.Initial.HeatParameterOperators |
| 3 | import PoincareLib.Geometry.CurveShortening.Ramp.Analysis.Compact.PathComposition |
| 4 | import PoincareLib.Geometry.RicciFlow.Local.DeTurck.Forcing.DeTurckMixedForcing |
| 5 | |
| 6 | /-! |
| 7 | # Finite-order regularity of the actual initial forcing |
| 8 | |
| 9 | The literal initial heat and shifted response operators assemble the |
| 10 | forcing jointly in initial state and time-L2 input, retaining the |
| 11 | shifted lower correction. MT2007 Claim 19.1, p. 437; |
| 12 | `2026-09-21-smooth-initial-forcing.md`. |
| 13 | -/ |
| 14 | |
| 15 | set_option autoImplicit false |
| 16 | |
| 17 | open Set Filter MeasureTheory |
| 18 | |
| 19 | namespace PoincareMT.M63 |
| 20 | |
| 21 | open SpectralHeatNative QuasilinearDeTurckNative TimeL2BilinearNative |
| 22 | DeTurckMetricProducerNative |
| 23 | |
| 24 | /-- Actual coefficient paths and high operators give a finite-order |
| 25 | joint forcing map, with its literal representative formula. MT2007 |
| 26 | Claim 19.1, p. 437; smooth initial forcing derivation. The a.e. set |
| 27 | is chosen after the initial state and forcing input. -/ |
| 28 | theorem exists_contDiff_initialForcing |
| 29 | {iota E : Type*} [Countable iota] [NormedAddCommGroup E] [NormedSpace ℝ E] |
| 30 | (lambda : iota → NNReal) {T : ℝ} (hT : 0 ≤ T) {k : ℕ∞} |
| 31 | (M : E →L[ℝ] State iota →L[ℝ] State iota) |
| 32 | (G : ℝ × State iota → E) (Q : ℝ × State iota → State iota) |
| 33 | (hG : ContDiff ℝ k G) (hQ : ContDiff ℝ k Q) : |
| 34 | ∃ R : State iota × ForcingSpace iota T → ForcingSpace iota T, |
| 35 | ContDiff ℝ k R ∧ ∀ w F, ∀ᵐ t ∂timeMeasure T, ∀ ht : t ∈ Icc (0 : ℝ) T, |
| 36 | R (w, F) t = |
| 37 | M (G (t, initialResponseTrace lambda w hT F ⟨t, ht⟩)) |
| 38 | (initialHeatHigh lambda w t + shiftedHighOperator hT lambda F t - |
| 39 | shiftedBaseMultiplier lambda (initialResponseTrace lambda w hT F ⟨t, ht⟩)) + |
| 40 | Q (t, initialResponseTrace lambda w hT F ⟨t, ht⟩) := by |
| 41 | obtain ⟨V0, _, hV0⟩ := exists_initialHeatPath_operator lambda hT |
| 42 | obtain ⟨P, _, hP⟩ := exists_initialHeatHigh_operator lambda hT |
| 43 | let S := State iota |
| 44 | let X := State iota × ForcingSpace iota T |
| 45 | let V : X →L[ℝ] ResponsePath iota T := |
| 46 | V0.comp (ContinuousLinearMap.fst ℝ S (ForcingSpace iota T)) + |
| 47 | (shiftedTraceOperator hT lambda).comp (ContinuousLinearMap.snd ℝ S (ForcingSpace iota T)) |
| 48 | let J := shiftedBaseMultiplier lambda |
| 49 | let Jp := J.compLeftContinuous ℝ (Icc (0 : ℝ) T) |
| 50 | let H : X →L[ℝ] ForcingSpace iota T := |
| 51 | P.comp (ContinuousLinearMap.fst ℝ S (ForcingSpace iota T)) + |
| 52 | (shiftedHighOperator hT lambda).comp (ContinuousLinearMap.snd ℝ S (ForcingSpace iota T)) - |
| 53 | (tracePathL2 hT).comp (Jp.comp V) |
| 54 | let Z0 : C(Icc (0 : ℝ) T, ℝ × S) := |
| 55 | ⟨fun t => ((t : ℝ), 0), continuous_subtype_val.prodMk continuous_const⟩ |
| 56 | let I := (ContinuousLinearMap.inr ℝ ℝ S).compLeftContinuous ℝ (Icc (0 : ℝ) T) |
| 57 | let Z : X → C(Icc (0 : ℝ) T, ℝ × S) := fun z => Z0 + I (V z) |
| 58 | have hZ : ContDiff ℝ k Z := contDiff_const.add (I.contDiff.comp V.contDiff) |
| 59 | let G0 : C(ℝ × S, E) := ⟨G, hG.continuous⟩ |
| 60 | let Q0 : C(ℝ × S, S) := ⟨Q, hQ.continuous⟩ |
| 61 | let A : X → TimePath E T := fun z => G0.comp (Z z) |
| 62 | let B : X → ResponsePath iota T := fun z => Q0.comp (Z z) |
| 63 | have hA : ContDiff ℝ k A := |
| 64 | (contDiff_postcomp_independent_universes (Icc (0 : ℝ) T) G0 hG).comp hZ |
| 65 | have hB : ContDiff ℝ k B := |
| 66 | (contDiff_postcomp_independent_universes (Icc (0 : ℝ) T) Q0 hQ).comp hZ |
| 67 | let R : X → ForcingSpace iota T := fun z => |
| 68 | productOperator hT M (A z) (H z) + tracePathL2 hT (B z) |
| 69 | have hR : ContDiff ℝ k R := |
| 70 | (((productOperator hT M).contDiff.comp hA).clm_apply H.contDiff).add |
| 71 | ((tracePathL2 (E := S) hT).contDiff.comp hB) |
| 72 | have hV (w : S) (F : ForcingSpace iota T) (t : Icc (0 : ℝ) T) : |
| 73 | V (w, F) t = initialResponseTrace lambda w hT F t := by |
| 74 | change V0 w t + shiftedTracePath hT lambda F t = _ |
| 75 | rw [hV0] |
| 76 | rfl |
| 77 | have hZval (z : X) (t : Icc (0 : ℝ) T) : Z z t = ((t : ℝ), V z t) := by |
| 78 | change ((t : ℝ) + 0, 0 + V z t) = _ |
| 79 | simp only [add_zero, zero_add] |
| 80 | refine ⟨R, hR, ?_⟩ |
| 81 | intro w F |
| 82 | filter_upwards [product_ae_eq_on_interval hT M (A (w, F)) (H (w, F)), |
| 83 | tracePathL2_ae_eq hT (B (w, F)), |
| 84 | Lp.coeFn_add (product hT M (A (w, F)) (H (w, F))) (tracePathL2 hT (B (w, F))), |
| 85 | Lp.coeFn_sub (P w + shiftedHighOperator hT lambda F) (tracePathL2 hT (Jp (V (w, F)))), |
| 86 | Lp.coeFn_add (P w) (shiftedHighOperator hT lambda F), hP w, |
| 87 | tracePathL2_ae_eq hT (Jp (V (w, F)))] with t hprod hBval hadd hsub hsum hp hJ |
| 88 | intro ht |
| 89 | have hH : H (w, F) t = initialHeatHigh lambda w t + shiftedHighOperator hT lambda F t - |
| 90 | J (V (w, F) ⟨t, ht⟩) := by |
| 91 | change (P w + shiftedHighOperator hT lambda F - tracePathL2 hT (Jp (V (w, F)))) t = _ |
| 92 | rw [hsub, Pi.sub_apply, hsum, Pi.add_apply, hp, hJ ht] |
| 93 | rfl |
| 94 | change (product hT M (A (w, F)) (H (w, F)) + tracePathL2 hT (B (w, F))) t = _ |
| 95 | rw [hadd, Pi.add_apply, hprod ht, hBval ht, hH] |
| 96 | change M (G (Z (w, F) ⟨t, ht⟩)) |
| 97 | (initialHeatHigh lambda w t + shiftedHighOperator hT lambda F t - |
| 98 | J (V (w, F) ⟨t, ht⟩)) + Q (Z (w, F) ⟨t, ht⟩) = _ |
| 99 | rw [hZval, hV] |
| 100 | |
| 101 | end PoincareMT.M63 |