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.OrdinaryEulerDifference |
| 2 | import Mathlib.Analysis.Calculus.Deriv.Shift |
| 3 | |
| 4 | /-! Restriction of an ordinary Euler evolution to a translated closed interval. -/ |
| 5 | |
| 6 | noncomputable section |
| 7 | |
| 8 | |
| 9 | namespace EulerOrdinarySobolev |
| 10 | |
| 11 | open Set Filter EulerSmoothLimit |
| 12 | open scoped Topology |
| 13 | |
| 14 | /-- Embed the shifted time interval into the original evolution interval. -/ |
| 15 | def shiftTimeMap (S T a : ℝ) (ha : 0 ≤ a) (haT : a + T ≤ S) : |
| 16 | C(Icc (0 : ℝ) T, Icc (0 : ℝ) S) where |
| 17 | toFun t := ⟨a + t, add_nonneg ha t.property.1, |
| 18 | (add_le_add le_rfl t.property.2).trans haT⟩ |
| 19 | continuous_toFun := (continuous_subtype_val.const_add a).subtype_mk _ |
| 20 | |
| 21 | @[simp] theorem shiftTimeMap_val (S T a : ℝ) (ha : 0 ≤ a) (haT : a + T ≤ S) |
| 22 | (t : Icc (0 : ℝ) T) : ((shiftTimeMap S T a ha haT t) : ℝ) = a + t := rfl |
| 23 | |
| 24 | namespace Evolution |
| 25 | |
| 26 | variable {S : ℝ} {hS : 0 ≤ S} |
| 27 | |
| 28 | /-- Restart an evolution at time `a`, retaining its next `T` units of time. -/ |
| 29 | def shiftTime (U : Evolution S hS) (a : ℝ) (ha : 0 ≤ a) |
| 30 | (T : ℝ) (hT : 0 ≤ T) (haT : a + T ≤ S) : Evolution T hT where |
| 31 | velocity t := U.velocity (shiftTimeMap S T a ha haT t) |
| 32 | pressureForce t := U.pressureForce (shiftTimeMap S T a ha haT t) |
| 33 | velocity_continuous n := |
| 34 | (U.velocity_continuous n).comp (shiftTimeMap S T a ha haT).continuous |
| 35 | pressure_continuous n := |
| 36 | (U.pressure_continuous n).comp (shiftTimeMap S T a ha haT).continuous |
| 37 | solenoidal t := U.solenoidal (shiftTimeMap S T a ha haT t) |
| 38 | gradient t := U.gradient (shiftTimeMap S T a ha haT t) |
| 39 | time_law t ht x := by |
| 40 | have hat : a + t ∈ Ioo (0 : ℝ) S := |
| 41 | ⟨add_pos_of_nonneg_of_pos ha ht.1, |
| 42 | (add_lt_add_of_le_of_lt le_rfl ht.2).trans_le haT⟩ |
| 43 | have hd := (U.time_law (a + t) hat x).comp_const_add a t |
| 44 | apply hd.congr_of_eventuallyEq |
| 45 | filter_upwards [Ioo_mem_nhds ht.1 ht.2] with r hr |
| 46 | have hrT : r ∈ Icc (0 : ℝ) T := ⟨hr.1.le, hr.2.le⟩ |
| 47 | have har : a + r ∈ Icc (0 : ℝ) S := |
| 48 | ⟨add_nonneg ha hr.1.le, (add_le_add le_rfl hr.2.le).trans haT⟩ |
| 49 | rw [projIcc_of_mem hT hrT, projIcc_of_mem hS har] |
| 50 | rfl |
| 51 | |
| 52 | @[simp] theorem shiftTime_velocity (U : Evolution S hS) (a : ℝ) (ha : 0 ≤ a) |
| 53 | (T : ℝ) (hT : 0 ≤ T) (haT : a + T ≤ S) (t : Icc (0 : ℝ) T) : |
| 54 | (U.shiftTime a ha T hT haT).velocity t = |
| 55 | U.velocity (shiftTimeMap S T a ha haT t) := rfl |
| 56 | |
| 57 | @[simp] theorem shiftTime_pressureForce (U : Evolution S hS) (a : ℝ) (ha : 0 ≤ a) |
| 58 | (T : ℝ) (hT : 0 ≤ T) (haT : a + T ≤ S) (t : Icc (0 : ℝ) T) : |
| 59 | (U.shiftTime a ha T hT haT).pressureForce t = |
| 60 | U.pressureForce (shiftTimeMap S T a ha haT t) := rfl |
| 61 | |
| 62 | @[simp] theorem shiftTime_initial (U : Evolution S hS) (a : ℝ) (ha : 0 ≤ a) |
| 63 | (T : ℝ) (hT : 0 ≤ T) (haT : a + T ≤ S) : |
| 64 | (U.shiftTime a ha T hT haT).velocity ⟨0, le_rfl, hT⟩ = |
| 65 | U.velocity ⟨a, ha, (le_add_of_nonneg_right hT).trans haT⟩ := by |
| 66 | rw [shiftTime_velocity] |
| 67 | congr 1 |
| 68 | apply Subtype.ext |
| 69 | exact add_zero a |
| 70 | |
| 71 | end Evolution |
| 72 | end EulerOrdinarySobolev |