Navier–Stokes: the Lean blow-up proof, cleaned up together
OpenAI's 2026 Lean proofs of blowup for forced Navier–Stokes and Euler, rerun by others, not refereed, no ruling from Clay; cleaned up together: more readable, faster to build

| 1 | import Euler.ContinuousTimeIntegral |
| 2 | import Euler.InitialTimePrimitive |
| 3 | import Euler.TimeH1WeakPairing |
| 4 | import Euler.TransverseEndpointEnergy |
| 5 | |
| 6 | /-! |
| 7 | Uniqueness for an actual twice differentiable zero-endpoint path follows |
| 8 | from the source short-time energy coercivity. The differential residual |
| 9 | need only be orthogonal to the displacement, as for a constrained frame |
| 10 | equation. No inverse or uniqueness assertion is assumed. |
| 11 | -/ |
| 12 | |
| 13 | /-! ## From `Euler/TimeContinuousPrimitive.lean` |
| 14 | |
| 15 | The text of `Euler/TimeContinuousPrimitive.lean`, folded into this file, which was its only importer. -/ |
| 16 | |
| 17 | section |
| 18 | |
| 19 | /-! The actual continuous-time integral agrees with both Bochner primitive constructions. -/ |
| 20 | |
| 21 | noncomputable section |
| 22 | |
| 23 | namespace EulerTimeContinuousPrimitive |
| 24 | |
| 25 | open Set MeasureTheory ContinuousLinearMap EulerTimeLp EulerInitialTimePrimitive |
| 26 | EulerTerminalTimePrimitive EulerVolterraConvolution |
| 27 | |
| 28 | variable {E : Type*} [NormedAddCommGroup E] [NormedSpace ℝ E] [CompleteSpace E] |
| 29 | (T : ℝ) (hT : 0 ≤ T) |
| 30 | |
| 31 | theorem initialPrimitive_pathLp (f : C(Icc (0 : ℝ) T,E)) : |
| 32 | initialPrimitive T hT (pathLp T hT f) = EulerContinuousTimeIntegral.integral T hT f := by |
| 33 | apply ContinuousMap.ext |
| 34 | intro t |
| 35 | rw [initialPrimitive_apply,initialRealPrimitive_eq_integral] |
| 36 | change (∫ s in (0 : ℝ)..(t : ℝ), zeroExtension T (pathLp T hT f) s) = |
| 37 | ∫ s in (0 : ℝ)..(t : ℝ), extendPath T hT f s |
| 38 | rw [intervalIntegral.integral_of_le t.property.1,intervalIntegral.integral_of_le t.property.1] |
| 39 | apply integral_congr_ae |
| 40 | have he := (zeroExtension_ae T (pathLp T hT f)).trans (pathLp_ae T hT f) |
| 41 | exact ae_restrict_of_ae_restrict_of_subset |
| 42 | (show Ioc (0 : ℝ) (t : ℝ) ⊆ Icc (0 : ℝ) T from |
| 43 | fun s hs => ⟨hs.1.le,hs.2.trans t.property.2⟩) he |
| 44 | |
| 45 | theorem primitive_eq_path (p q : C(Icc (0 : ℝ) T,E)) |
| 46 | (hd : ∀ t : Icc (0 : ℝ) T, |
| 47 | HasDerivWithinAt (extendPath T hT p) (q t) (Icc (0 : ℝ) T) t) |
| 48 | (hzero : p ⟨0,le_rfl,hT⟩ = 0) : |
| 49 | initialPrimitive T hT (pathLp T hT q) = p := by |
| 50 | rw [initialPrimitive_pathLp] |
| 51 | apply ContinuousMap.ext |
| 52 | intro t |
| 53 | have he := EulerContinuousTimeIntegral.eq_initial_add_integral T hT q (extendPath T hT p) hd t |
| 54 | simpa only [extendPath,projIcc_of_mem hT t.property, |
| 55 | projIcc_of_mem hT (show (0 : ℝ) ∈ Icc 0 T from ⟨le_rfl,hT⟩),hzero,zero_add] using he.symm |
| 56 | |
| 57 | theorem initialTrace_eq_zero (p q : C(Icc (0 : ℝ) T,E)) |
| 58 | (hd : ∀ t : Icc (0 : ℝ) T, |
| 59 | HasDerivWithinAt (extendPath T hT p) (q t) (Icc (0 : ℝ) T) t) |
| 60 | (hzero : p ⟨0,le_rfl,hT⟩ = 0) (hterminal : p ⟨T,hT,le_rfl⟩ = 0) : |
| 61 | initialTrace T hT (pathLp T hT q) = 0 := by |
| 62 | have he := initialPrimitive_eq_terminal_sub T hT (pathLp T hT q) ⟨T,hT,le_rfl⟩ |
| 63 | rw [primitive_eq_path T hT p q hd hzero,hterminal,terminalPrimitive_terminal,zero_sub] at he |
| 64 | exact neg_eq_zero.mp he.symm |
| 65 | |
| 66 | theorem primitiveTimeLp_eq_pathLp (p q : C(Icc (0 : ℝ) T,E)) |
| 67 | (hd : ∀ t : Icc (0 : ℝ) T, |
| 68 | HasDerivWithinAt (extendPath T hT p) (q t) (Icc (0 : ℝ) T) t) |
| 69 | (hzero : p ⟨0,le_rfl,hT⟩ = 0) (hterminal : p ⟨T,hT,le_rfl⟩ = 0) : |
| 70 | primitiveTimeLp T hT (pathLp T hT q) = pathLp T hT p := by |
| 71 | have hc : terminalPrimitive T hT (pathLp T hT q) = p := by |
| 72 | apply ContinuousMap.ext |
| 73 | intro t |
| 74 | have he := initialPrimitive_eq_terminal_sub T hT (pathLp T hT q) t |
| 75 | rw [primitive_eq_path T hT p q hd hzero,initialTrace_eq_zero T hT p q hd hzero hterminal, |
| 76 | sub_zero] at he |
| 77 | exact he.symm |
| 78 | change pathLp T hT (terminalPrimitive T hT (pathLp T hT q)) = pathLp T hT p |
| 79 | rw [hc] |
| 80 | |
| 81 | omit [CompleteSpace E] [NormedSpace ℝ E] in |
| 82 | theorem pathLp_injective (hTpos : 0 < T) : |
| 83 | Function.Injective (pathLp (E := E) T hT) := by |
| 84 | intro p q he |
| 85 | have hae : extendPath T hT p =ᵐ[timeMeasure T] extendPath T hT q := |
| 86 | (pathLp_ae T hT p).symm.trans (he ▸ pathLp_ae T hT q) |
| 87 | have hfun := Measure.eqOn_Icc_of_ae_eq volume hTpos.ne hae |
| 88 | (extendPath_continuous T hT p).continuousOn (extendPath_continuous T hT q).continuousOn |
| 89 | apply ContinuousMap.ext |
| 90 | intro t |
| 91 | simpa only [extendPath,projIcc_of_mem hT t.property] using hfun t.property |
| 92 | |
| 93 | end EulerTimeContinuousPrimitive |
| 94 | end |
| 95 | |
| 96 | end |
| 97 | |
| 98 | noncomputable section |
| 99 | |
| 100 | namespace EulerTimeEndpointEnergyUniqueness |
| 101 | |
| 102 | open Set MeasureTheory InnerProductSpace EulerTimeLp EulerVolterraConvolution |
| 103 | EulerInitialTimePrimitive EulerTerminalTimePrimitive EulerTimeContinuousPrimitive |
| 104 | EulerTimeH1WeakPairing EulerTransverseEndpointEnergy |
| 105 | |
| 106 | variable {E : Type*} [NormedAddCommGroup E] [InnerProductSpace ℝ E] [CompleteSpace E] |
| 107 | |
| 108 | theorem zero_of_energy_equation (T : ℝ) (hT : 0 ≤ T) (hTpos : 0 < T) |
| 109 | (H : C(Icc (0 : ℝ) T,E →L[ℝ] E)) (K : ℝ) (hK : 0 ≤ K) |
| 110 | (hH : ∀ t x, ⟪H t x,x⟫_ℝ ≤ K*‖x‖^2) |
| 111 | (hsmall : K*(T^2/2) ≤ 1/2) |
| 112 | (p u q : C(Icc (0 : ℝ) T,E)) |
| 113 | (hp : ∀ t : Icc (0 : ℝ) T, |
| 114 | HasDerivWithinAt (extendPath T hT p) (u t) (Icc (0 : ℝ) T) t) |
| 115 | (hu : ∀ t : Icc (0 : ℝ) T, |
| 116 | HasDerivWithinAt (extendPath T hT u) (q t) (Icc (0 : ℝ) T) t) |
| 117 | (hzero : p ⟨0,le_rfl,hT⟩ = 0) (hterminal : p ⟨T,hT,le_rfl⟩ = 0) |
| 118 | (heq : ∀ t, ⟪q t+H t (p t),p t⟫_ℝ = 0) : p = 0 ∧ u = 0 := by |
| 119 | let pu := pathLp T hT u |
| 120 | let pp := pathLp T hT p |
| 121 | let pq := pathLp T hT q |
| 122 | have htrace : initialTrace T hT pu = 0 := |
| 123 | initialTrace_eq_zero T hT p u hp hzero hterminal |
| 124 | have hprimitive : primitiveTimeLp T hT pu = pp := |
| 125 | primitiveTimeLp_eq_pathLp T hT p u hp hzero hterminal |
| 126 | have hinitial : initialPrimitiveTimeLp T hT pu = pp := by |
| 127 | change pathLp T hT (initialPrimitive T hT pu) = pp |
| 128 | rw [primitive_eq_path T hT p u hp hzero] |
| 129 | have hparts : ⟪pu,pu⟫_ℝ = -⟪pq,pp⟫_ℝ := by |
| 130 | have hh := pathLp_inner_zero_trace T hT u q hu pu htrace |
| 131 | rw [hprimitive] at hh |
| 132 | exact hh |
| 133 | have horth : ⟪pq+timeMultiplier T hT H pp,pp⟫_ℝ = 0 := by |
| 134 | rw [L2.inner_def] |
| 135 | apply integral_eq_zero_of_ae |
| 136 | filter_upwards [Lp.coeFn_add pq (timeMultiplier T hT H pp), |
| 137 | pathLp_ae T hT p,pathLp_ae T hT q,timeMultiplier_ae T hT H pp] |
| 138 | with t hadd hpt hqt hHt |
| 139 | change ⟪(pq+timeMultiplier T hT H pp) t,pp t⟫_ℝ = 0 |
| 140 | rw [hadd,Pi.add_apply,hHt] |
| 141 | change ⟪pathLp T hT q t+extendPath T hT H t (pathLp T hT p t), |
| 142 | pathLp T hT p t⟫_ℝ = 0 |
| 143 | rw [hpt,hqt] |
| 144 | exact heq (projIcc 0 T hT t) |
| 145 | have henergy : ⟪energyOperator T hT H pu,pu⟫_ℝ = 0 := by |
| 146 | rw [energyOperator_inner,hinitial,hparts] |
| 147 | rw [inner_add_left] at horth |
| 148 | linarith only [horth] |
| 149 | have hnorm := energyOperator_coercive T hT H K hK hH hsmall pu |
| 150 | rw [henergy] at hnorm |
| 151 | have hpu : pu = 0 := by |
| 152 | apply norm_eq_zero.mp |
| 153 | nlinarith [norm_nonneg pu] |
| 154 | have hpzero : p = 0 := by |
| 155 | rw [← primitive_eq_path T hT p u hp hzero] |
| 156 | change initialPrimitive T hT pu = 0 |
| 157 | rw [hpu,map_zero] |
| 158 | refine ⟨hpzero,?_⟩ |
| 159 | apply pathLp_injective T hT hTpos |
| 160 | change pu = pathLp T hT 0 |
| 161 | rw [hpu] |
| 162 | exact ((pathLpOperator T hT).map_zero).symm |
| 163 | |
| 164 | end EulerTimeEndpointEnergyUniqueness |