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.Ramp.LocalFlow.Initial.ResponseTrace |
| 2 | |
| 3 | /-! |
| 4 | # Actual initial heat parameter operators |
| 5 | |
| 6 | The closed heat path and the initial high L2 class depend bounded |
| 7 | linearly on the actual initial trace state. The high identity is |
| 8 | asserted for each initial state almost everywhere in time. |
| 9 | MT2007 Claim 19.1, p. 437; |
| 10 | `2026-09-21-initial-heat-parameter-operators.md`. |
| 11 | -/ |
| 12 | |
| 13 | set_option autoImplicit false |
| 14 | |
| 15 | open Set Filter MeasureTheory |
| 16 | |
| 17 | namespace PoincareMT.M63 |
| 18 | |
| 19 | open SpectralHeatNative QuasilinearDeTurckNative |
| 20 | |
| 21 | variable {iota : Type*} (lambda : iota → NNReal) {T : ℝ} |
| 22 | |
| 23 | /-- The actual closed homogeneous heat path is a contractive bounded |
| 24 | linear map of the initial state. MT2007 Claim 19.1, p. 437; initial |
| 25 | heat parameter derivation, statement 1. -/ |
| 26 | theorem exists_initialHeatPath_operator [Countable iota] (_hT : 0 ≤ T) : |
| 27 | ∃ V : State iota →L[ℝ] ResponsePath iota T, ‖V‖ ≤ 1 ∧ |
| 28 | ∀ w (t : Icc (0 : ℝ) T), V w t = heat lambda (t : ℝ).toNNReal w := by |
| 29 | let V0 (w : State iota) : ResponsePath iota T := |
| 30 | ⟨fun t => heat lambda (t : ℝ).toNNReal w, |
| 31 | (continuous_heat_apply lambda w).comp |
| 32 | (continuous_real_toNNReal.comp continuous_subtype_val)⟩ |
| 33 | let V1 : State iota →ₗ[ℝ] ResponsePath iota T := |
| 34 | { toFun := V0 |
| 35 | map_add' := by |
| 36 | intro u v |
| 37 | apply ContinuousMap.ext |
| 38 | intro t |
| 39 | exact (heat lambda (t : ℝ).toNNReal).map_add u v |
| 40 | map_smul' := by |
| 41 | intro c w |
| 42 | apply ContinuousMap.ext |
| 43 | intro t |
| 44 | exact (heat lambda (t : ℝ).toNNReal).map_smul c w } |
| 45 | have hnorm (w : State iota) : ‖V1 w‖ ≤ 1 * ‖w‖ := by |
| 46 | rw [one_mul] |
| 47 | exact (ContinuousMap.norm_le _ (norm_nonneg w)).mpr |
| 48 | (fun t => norm_heat_apply_le lambda (t : ℝ).toNNReal w) |
| 49 | let V := V1.mkContinuous 1 hnorm |
| 50 | exact ⟨V, ContinuousLinearMap.opNorm_le_bound _ zero_le_one hnorm, fun _ _ => rfl⟩ |
| 51 | |
| 52 | /-- The actual initial high path is a bounded linear time-L2 map, with |
| 53 | the existing energy bound and a per-state almost-everywhere identity. |
| 54 | MT2007 Claim 19.1, p. 437; initial heat parameter derivation, statement 2. |
| 55 | No common representative before all initial states is asserted. -/ |
| 56 | theorem exists_initialHeatHigh_operator [Countable iota] (hT : 0 ≤ T) : |
| 57 | ∃ P : State iota →L[ℝ] ForcingSpace iota T, ‖P‖ ≤ Real.sqrt (2 * T + 1) ∧ |
| 58 | ∀ w, ∀ᵐ t ∂timeMeasure T, P w t = initialHeatHigh lambda w t := by |
| 59 | have hmem (w : State iota) := (initialHeatHigh_memLp_energy lambda w hT).1 |
| 60 | let P0 (w : State iota) : ForcingSpace iota T := (hmem w).toLp (initialHeatHigh lambda w) |
| 61 | have hP0 (w : State iota) : ∀ᵐ t ∂timeMeasure T, P0 w t = initialHeatHigh lambda w t := |
| 62 | (hmem w).coeFn_toLp |
| 63 | have hadd (u v : State iota) : P0 (u + v) = P0 u + P0 v := by |
| 64 | apply Lp.ext |
| 65 | filter_upwards [hP0 (u + v), hP0 u, hP0 v, Lp.coeFn_add (P0 u) (P0 v), |
| 66 | ae_restrict_mem measurableSet_Ioc] with t huv hu hv hsum ht |
| 67 | rw [huv, hsum, Pi.add_apply, hu, hv] |
| 68 | simp only [initialHeatHigh, initialHeatGenerator_eq lambda _ ht.1, map_add] |
| 69 | abel |
| 70 | have hsmul (c : ℝ) (w : State iota) : P0 (c • w) = c • P0 w := by |
| 71 | apply Lp.ext |
| 72 | filter_upwards [hP0 (c • w), hP0 w, Lp.coeFn_smul c (P0 w), |
| 73 | ae_restrict_mem measurableSet_Ioc] with t hcw hw hscale ht |
| 74 | rw [hcw, hscale, Pi.smul_apply, hw] |
| 75 | simp only [initialHeatHigh, initialHeatGenerator_eq lambda _ ht.1, map_smul, smul_add] |
| 76 | let P1 : State iota →ₗ[ℝ] ForcingSpace iota T := |
| 77 | { toFun := P0 |
| 78 | map_add' := hadd |
| 79 | map_smul' := hsmul } |
| 80 | have hnorm (w : State iota) : ‖P1 w‖ ≤ Real.sqrt (2 * T + 1) * ‖w‖ := by |
| 81 | apply (sq_le_sq₀ (norm_nonneg _) (mul_nonneg (Real.sqrt_nonneg _) (norm_nonneg _))).mp |
| 82 | calc |
| 83 | ‖P1 w‖ ^ 2 = ∫ t, ‖initialHeatHigh lambda w t‖ ^ 2 ∂timeMeasure T := norm_toLp_sq (hmem w) |
| 84 | _ ≤ (2 * T + 1) * ‖w‖ ^ 2 := (initialHeatHigh_memLp_energy lambda w hT).2 |
| 85 | _ = (Real.sqrt (2 * T + 1) * ‖w‖) ^ 2 := by |
| 86 | rw [mul_pow, Real.sq_sqrt (by linarith : 0 ≤ 2 * T + 1)] |
| 87 | let P := P1.mkContinuous (Real.sqrt (2 * T + 1)) hnorm |
| 88 | exact ⟨P, ContinuousLinearMap.opNorm_le_bound _ (Real.sqrt_nonneg _) hnorm, hP0⟩ |
| 89 | |
| 90 | end PoincareMT.M63 |