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.CorrectionAssemblyData |
| 2 | |
| 3 | /-! Compatibility of independently supplied actual finite-order corrections, proved from their equations. -/ |
| 4 | |
| 5 | noncomputable section |
| 6 | |
| 7 | namespace EulerCorrectionAssembly |
| 8 | |
| 9 | open MeasureTheory Set EulerLiftedGradientSpace EulerCylinderSobolevSpace |
| 10 | EulerCorrectionOperators EulerCorrectionLowerData EulerAllOrderCorrectionData |
| 11 | EulerCorrectionStabilityBudget EulerInviscidCorrectionCompatibility |
| 12 | EulerInviscidCorrectionUniqueness EulerVolterraConvolution |
| 13 | |
| 14 | variable (period : ℝ) [Fact (0 < period)] |
| 15 | variable {T : ℝ} {hT : 0 < T} {A : Data period T} |
| 16 | |
| 17 | /-- Adjacent supplied finite corrections coincide after restriction, by actual inviscid uniqueness. -/ |
| 18 | theorem FiniteFamily.compatible (F : FiniteFamily period hT A) (C : ComparisonData period hT A) |
| 19 | (q : ℕ) (hq : 6 ≤ q) : |
| 20 | (truncateOperator period (q+1)).compLeftContinuous ℝ (Icc (0 : ℝ) T) |
| 21 | (F.solution (q+1) (hq.trans (Nat.le_succ q))) = F.solution q hq := by |
| 22 | have hs : StabilityBudget period hT.le |
| 23 | (lowerData period (A.atOrder period (q+1)) (A.metric.jet q) (A.linear.jet q) |
| 24 | (fun i => (A.quadratic i).jet q) (A.metric.continuous q) (A.linear.continuous q) |
| 25 | (fun i => (A.quadratic i).continuous q)) := by |
| 26 | rw [A.lower_atOrder period q] |
| 27 | exact C.stabilityBudget period q |
| 28 | apply inviscid_corrections_compatible period hq T hT.le (A.atOrder period (q+1)) |
| 29 | (A.metric.jet q) (A.linear.jet q) (fun i => (A.quadratic i).jet q) |
| 30 | (A.metric.continuous q) (A.linear.continuous q) (fun i => (A.quadratic i).continuous q) |
| 31 | (F.solution (q+1) (hq.trans (Nat.le_succ q))) |
| 32 | (F.equation (q+1) (hq.trans (Nat.le_succ q))) hs (F.solution q hq) |
| 33 | · simpa only [A.lower_atOrder period q] using F.equation q hq |
| 34 | · rw [F.initial, F.initial, map_zero] |
| 35 | · intro t |
| 36 | change value period (A.approximation.realization ((q+1)+1) t) ∈ _ |
| 37 | rw [A.approximation.value_eq] |
| 38 | exact C.divergence t |
| 39 | · exact F.divergence (q+1) (hq.trans (Nat.le_succ q)) |
| 40 | · exact F.divergence q hq |
| 41 | |
| 42 | /-- Adjacent actual finite corrections have the same underlying L² field. -/ |
| 43 | theorem FiniteFamily.value_succ (F : FiniteFamily period hT A) (C : ComparisonData period hT A) |
| 44 | (q : ℕ) (hq : 6 ≤ q) (t : Icc (0 : ℝ) T) : |
| 45 | value period (F.solution (q+1) (hq.trans (Nat.le_succ q)) t) = |
| 46 | value period (F.solution q hq t) := |
| 47 | congrArg (fun f => value period (f t)) (F.compatible period C q hq) |
| 48 | |
| 49 | /-- All supplied finite corrections have the same actual base L² field. -/ |
| 50 | theorem FiniteFamily.value_base (F : FiniteFamily period hT A) (C : ComparisonData period hT A) |
| 51 | (q : ℕ) (hq : 6 ≤ q) (t : Icc (0 : ℝ) T) : |
| 52 | value period (F.solution q hq t) = value period (F.solution 6 le_rfl t) := by |
| 53 | exact Nat.le_induction (P := fun n hn => value period (F.solution n hn t) = |
| 54 | value period (F.solution 6 le_rfl t)) rfl |
| 55 | (fun n hn ih => (F.value_succ period C n hn t).trans ih) q hq |
| 56 | |
| 57 | /-- Every other actual finite-order correction with zero trace and the same genuine PDE and divergence condition equals the supplied finite correction. |
| 58 | No comparison estimate or compatibility is assumed. -/ |
| 59 | theorem FiniteFamily.unique_at_order (F : FiniteFamily period hT A) (C : ComparisonData period hT A) |
| 60 | (q : ℕ) (hq : 6 ≤ q) (u : C(Icc (0 : ℝ) T, SobolevSpace period (q+1))) |
| 61 | (hi : u ⟨0, le_rfl, hT.le⟩ = 0) |
| 62 | (hd : ∀ t, value period (u t) ∈ divergenceFreeSpace period A.κ A.direction) |
| 63 | (hu : ∀ t (ht : t ∈ Ioo 0 T), |
| 64 | HasDerivAt (fun r => value period (extendPath T hT.le u r)) |
| 65 | (value period (((A.atOrder period q).coefficients period hq).apply |
| 66 | ⟨t, ht.1.le, ht.2.le⟩ (u ⟨t, ht.1.le, ht.2.le⟩))) t) : |
| 67 | u = F.solution q hq := by |
| 68 | apply inviscid_correction_unique period hq T hT.le (A.atOrder period q) |
| 69 | (C.stabilityBudget period q) u (F.solution q hq) |
| 70 | · rw [hi, F.initial] |
| 71 | · exact hu |
| 72 | · exact F.equation q hq |
| 73 | · intro t |
| 74 | change value period (A.approximation.realization (q+1) t) ∈ _ |
| 75 | rw [A.approximation.value_eq] |
| 76 | exact C.divergence t |
| 77 | · exact hd |
| 78 | · exact F.divergence q hq |
| 79 | |
| 80 | end EulerCorrectionAssembly |