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 NavierStokes.HarmonicWaveInteraction |
| 2 | |
| 3 | /-! |
| 4 | # Structure preserved by actual harmonic block addition |
| 5 | |
| 6 | The carrier-retaining sum is the actual `HarmonicWaveInteraction.addBlock`. |
| 7 | Smoothness of its input coefficient functions justifies linearity of the |
| 8 | Fréchet derivatives in the cylindrical divergence. No output divergence |
| 9 | condition, nonzero frequency, or nonzero angular frequency is assumed. |
| 10 | -/ |
| 11 | |
| 12 | noncomputable section |
| 13 | |
| 14 | namespace NavierStokes.HarmonicStructurePreservation |
| 15 | |
| 16 | open Set |
| 17 | open HarmonicCalculus HarmonicFields WeightedClasses HarmonicWaveInteraction |
| 18 | open scoped Topology ContDiff |
| 19 | |
| 20 | variable {D : Type} [NormedAddCommGroup D] [NormedSpace ℝ D] |
| 21 | |
| 22 | omit [NormedAddCommGroup D] [NormedSpace ℝ D] in |
| 23 | theorem amplitude_addBlock (a b : CorrectionState.HarmonicBlock D) (j : ℤ) (n : ℕ) : |
| 24 | amplitude (addBlock a b) j n = amplitude a j n + amplitude b j n := by |
| 25 | funext x i |
| 26 | simp only [amplitude, blockAmplitude_addBlock, Pi.add_apply, HarmonicMeanInteraction.coeff_add] |
| 27 | |
| 28 | omit [NormedAddCommGroup D] [NormedSpace ℝ D] in |
| 29 | theorem amplitude_withCarrier (a b : CorrectionState.HarmonicBlock D) (j : ℤ) (n : ℕ) : |
| 30 | amplitude (withCarrier a b) j n = amplitude b j n := rfl |
| 31 | |
| 32 | omit [NormedAddCommGroup D] [NormedSpace ℝ D] in |
| 33 | /-- The complex single Fourier fields add before any real projection or |
| 34 | differentiation. This identity also holds at harmonic zero. -/ |
| 35 | theorem singleMode_addBlock (a b : CorrectionState.HarmonicBlock D) (j : ℤ) (n : ℕ) : |
| 36 | singleMode (addBlock a b) j n = singleMode a j n + singleMode (withCarrier a b) j n := by |
| 37 | funext p i |
| 38 | simp only [singleMode, HarmonicResidual.vectorField, field, evaluate_single, Pi.add_apply] |
| 39 | rw [amplitude_addBlock, amplitude_withCarrier] |
| 40 | simp only [addBlock, withCarrier, Pi.add_apply, add_mul] |
| 41 | |
| 42 | omit [NormedAddCommGroup D] [NormedSpace ℝ D] in |
| 43 | theorem withCarrier_eq {a b : CorrectionState.HarmonicBlock D} |
| 44 | (hfrequency : b.frequency = a.frequency) (hphase : b.phase = a.phase) |
| 45 | (hangular : b.angularFrequency = a.angularFrequency) : withCarrier a b = b := by |
| 46 | cases a |
| 47 | cases b |
| 48 | simp only [withCarrier] at * |
| 49 | cases hfrequency |
| 50 | cases hphase |
| 51 | cases hangular |
| 52 | rfl |
| 53 | |
| 54 | omit [NormedAddCommGroup D] [NormedSpace ℝ D] in |
| 55 | theorem singleMode_addBlock_of_sameCarrier {a b : CorrectionState.HarmonicBlock D} |
| 56 | (hfrequency : b.frequency = a.frequency) (hphase : b.phase = a.phase) |
| 57 | (hangular : b.angularFrequency = a.angularFrequency) (j : ℤ) (n : ℕ) : |
| 58 | singleMode (addBlock a b) j n = singleMode a j n + singleMode b j n := by |
| 59 | rw [singleMode_addBlock, withCarrier_eq hfrequency hphase hangular] |
| 60 | |
| 61 | theorem amplitude_contDiffOn {U : Set D} {b : CorrectionState.HarmonicBlock D} |
| 62 | (hb : ∀ n i, HarmonicResidual.SmoothCoefficients U (b.velocity n i)) |
| 63 | (j : ℤ) (n : ℕ) (i : Fin 3) : |
| 64 | ContDiffOn ℝ ∞ (fun x => amplitude b j n x i) U := |
| 65 | (hb n i).realCoefficients j |
| 66 | |
| 67 | theorem singleMode_contDiffOn {U : Set D} {b : CorrectionState.HarmonicBlock D} |
| 68 | (hb : ∀ n i, HarmonicResidual.SmoothCoefficients U (b.velocity n i)) |
| 69 | (hphase : ∀ n, ContDiffOn ℝ ∞ (b.phase n) U) |
| 70 | (j : ℤ) (n : ℕ) (i : Fin 3) : |
| 71 | ContDiffOn ℝ ∞ (fun p => singleMode b j n p i) (HarmonicResidual.liftDomain U) := by |
| 72 | apply HarmonicResidual.field_smoothOn (Φ := b.phase n) _ (hphase n) |
| 73 | intro l |
| 74 | change ContDiffOn ℝ ∞ ((Finsupp.single j (fun x => amplitude b j n x i)) l) U |
| 75 | by_cases hlj : j = l |
| 76 | · subst l |
| 77 | simpa only [Finsupp.single_eq_same] using amplitude_contDiffOn hb j n i |
| 78 | · rw [Finsupp.single_eq_of_ne (Ne.symm hlj)] |
| 79 | exact contDiffOn_const |
| 80 | |
| 81 | /-- Additivity uses actual differentiability of all components at the |
| 82 | evaluation point. The geometric direction fields need no derivatives. -/ |
| 83 | theorem cylindricalDivergence_add {E : Type*} [NormedAddCommGroup E] [NormedSpace ℝ E] |
| 84 | (R : E → ℝ) (Vr Vθ Vz : E → E) {a b : E → ComplexVector} {x : E} |
| 85 | (ha : ∀ i, DifferentiableAt ℝ (fun y => a y i) x) |
| 86 | (hb : ∀ i, DifferentiableAt ℝ (fun y => b y i) x) : |
| 87 | cylindricalDivergence R Vr Vθ Vz (a + b) x = |
| 88 | cylindricalDivergence R Vr Vθ Vz a x + cylindricalDivergence R Vr Vθ Vz b x := by |
| 89 | simp only [cylindricalDivergence, Pi.add_apply, |
| 90 | along_add _ (ha 0) (hb 0), along_add _ (ha 1) (hb 1), along_add _ (ha 2) (hb 2), |
| 91 | smul_add] |
| 92 | abel |
| 93 | |
| 94 | theorem velocity_smooth_addBlock {U : Set D} {a b : CorrectionState.HarmonicBlock D} |
| 95 | (ha : ∀ n i, HarmonicResidual.SmoothCoefficients U (a.velocity n i)) |
| 96 | (hb : ∀ n i, HarmonicResidual.SmoothCoefficients U (b.velocity n i)) : |
| 97 | ∀ n i, HarmonicResidual.SmoothCoefficients U ((addBlock a b).velocity n i) := |
| 98 | fun n i => (ha n i).add (hb n i) |
| 99 | |
| 100 | theorem pressure_smooth_addBlock {U : Set D} {a b : CorrectionState.HarmonicBlock D} |
| 101 | (ha : ∀ n, HarmonicResidual.SmoothCoefficients U (a.pressure n)) |
| 102 | (hb : ∀ n, HarmonicResidual.SmoothCoefficients U (b.pressure n)) : |
| 103 | ∀ n, HarmonicResidual.SmoothCoefficients U ((addBlock a b).pressure n) := |
| 104 | fun n => (ha n).add (hb n) |
| 105 | |
| 106 | theorem phase_smooth_addBlock {U : Set D} {a b : CorrectionState.HarmonicBlock D} |
| 107 | (ha : ∀ n, ContDiffOn ℝ ∞ (a.phase n) U) : |
| 108 | ∀ n, ContDiffOn ℝ ∞ ((addBlock a b).phase n) U := ha |
| 109 | |
| 110 | /-- The carrier-retaining sum preserves modewise solenoidality when the |
| 111 | second input is interpreted on the retained carrier. -/ |
| 112 | theorem modeSolenoidal_addBlock_withCarrier {s : StripData D} |
| 113 | {c : CorrectionState.Context D} {a b : CorrectionState.HarmonicBlock D} |
| 114 | (ha : ∀ n i, HarmonicResidual.SmoothCoefficients s.domain (a.velocity n i)) |
| 115 | (hb : ∀ n i, HarmonicResidual.SmoothCoefficients s.domain (b.velocity n i)) |
| 116 | (hphase : ∀ n, ContDiffOn ℝ ∞ (a.phase n) s.domain) |
| 117 | (hda : ModeSolenoidal s c a) (hdb : ModeSolenoidal s c (withCarrier a b)) : |
| 118 | ModeSolenoidal s c (addBlock a b) := by |
| 119 | intro j hj n p hp |
| 120 | have hmem : p ∈ HarmonicResidual.liftDomain s.domain := ⟨hp, mem_univ _⟩ |
| 121 | have hnb := (HarmonicResidual.liftDomain_open s.isOpen_domain).mem_nhds hmem |
| 122 | have hsa (i : Fin 3) : DifferentiableAt ℝ (fun q => singleMode a j n q i) p := |
| 123 | ((singleMode_contDiffOn ha hphase j n i).contDiffAt hnb).differentiableAt (by simp) |
| 124 | have hsb (i : Fin 3) : DifferentiableAt ℝ (fun q => singleMode (withCarrier a b) j n q i) p := |
| 125 | ((singleMode_contDiffOn (b := withCarrier a b) hb hphase j n i).contDiffAt hnb).differentiableAt (by simp) |
| 126 | rw [singleMode_addBlock, cylindricalDivergence_add _ _ _ _ hsa hsb, |
| 127 | hda j hj n p hp, hdb j hj n p hp, add_zero] |
| 128 | |
| 129 | /-- Actual addition of two smooth solenoidal blocks on a common carrier |
| 130 | preserves the same primitive solenoidality condition on the same strip. -/ |
| 131 | theorem modeSolenoidal_addBlock {s : StripData D} |
| 132 | {c : CorrectionState.Context D} {a b : CorrectionState.HarmonicBlock D} |
| 133 | (hfrequency : b.frequency = a.frequency) (hphase_eq : b.phase = a.phase) |
| 134 | (hangular : b.angularFrequency = a.angularFrequency) |
| 135 | (ha : ∀ n i, HarmonicResidual.SmoothCoefficients s.domain (a.velocity n i)) |
| 136 | (hb : ∀ n i, HarmonicResidual.SmoothCoefficients s.domain (b.velocity n i)) |
| 137 | (hphase : ∀ n, ContDiffOn ℝ ∞ (a.phase n) s.domain) |
| 138 | (hda : ModeSolenoidal s c a) (hdb : ModeSolenoidal s c b) : |
| 139 | ModeSolenoidal s c (addBlock a b) := by |
| 140 | apply modeSolenoidal_addBlock_withCarrier ha hb hphase hda |
| 141 | rw [withCarrier_eq hfrequency hphase_eq hangular] |
| 142 | exact hdb |
| 143 | |
| 144 | omit [NormedAddCommGroup D] [NormedSpace ℝ D] in |
| 145 | /-- The velocity zero-mode condition is preserved coefficientwise, as an |
| 146 | identity of actual coefficient functions. -/ |
| 147 | theorem zeroMode_addBlock {a b : CorrectionState.HarmonicBlock D} |
| 148 | (ha : ZeroMode a) (hb : ZeroMode b) : ZeroMode (addBlock a b) := by |
| 149 | intro n i |
| 150 | change (a.velocity n i + b.velocity n i) 0 = 0 |
| 151 | rw [AddMonoidAlgebra.coeff_add, Finsupp.add_apply, ha n i, hb n i, add_zero] |
| 152 | |
| 153 | omit [NormedAddCommGroup D] [NormedSpace ℝ D] in |
| 154 | /-- Pressure has the same algebraic preservation without any derivative |
| 155 | or regularity assumptions. -/ |
| 156 | theorem zeroPressure_addBlock {a b : CorrectionState.HarmonicBlock D} |
| 157 | (ha : ∀ n, a.pressure n 0 = 0) (hb : ∀ n, b.pressure n 0 = 0) : |
| 158 | ∀ n, (addBlock a b).pressure n 0 = 0 := by |
| 159 | intro n |
| 160 | change (a.pressure n + b.pressure n) 0 = 0 |
| 161 | rw [AddMonoidAlgebra.coeff_add, Finsupp.add_apply, ha n, hb n, add_zero] |
| 162 | |
| 163 | omit [NormedAddCommGroup D] [NormedSpace ℝ D] in |
| 164 | theorem zeroMode_withCarrier {a b : CorrectionState.HarmonicBlock D} |
| 165 | (hb : ZeroMode b) : ZeroMode (withCarrier a b) := hb |
| 166 | |
| 167 | omit [NormedAddCommGroup D] [NormedSpace ℝ D] in |
| 168 | theorem zeroPressure_withCarrier {a b : CorrectionState.HarmonicBlock D} |
| 169 | (hb : ∀ n, b.pressure n 0 = 0) : ∀ n, (withCarrier a b).pressure n 0 = 0 := hb |
| 170 | |
| 171 | end NavierStokes.HarmonicStructurePreservation |