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.BoundedLipschitzFlow |
| 2 | |
| 3 | /-! The actual bounded Lipschitz flow is jointly continuous in both times |
| 4 | and the initial point. Reversing its two time arguments gives its genuine |
| 5 | continuous inverse, so each fixed-time map is a homeomorphism. -/ |
| 6 | |
| 7 | noncomputable section |
| 8 | |
| 9 | open Set Function Metric |
| 10 | open scoped Topology NNReal |
| 11 | |
| 12 | namespace EulerBoundedLipschitzFlow.Data |
| 13 | |
| 14 | variable {E : Type*} [NormedAddCommGroup E] [NormedSpace ℝ E] [CompleteSpace E] |
| 15 | (V : EulerBoundedLipschitzFlow.Data E) |
| 16 | |
| 17 | theorem flow_distance (s t s₀ t₀ : ℝ) (x x₀ : E) : |
| 18 | dist (V.flow s t x) (V.flow s₀ t₀ x₀) ≤ |
| 19 | (dist x x₀ + V.speedBound*|s-s₀|) * |
| 20 | Real.exp (V.lipschitzConstant*|t-s|) + V.speedBound*|t-t₀| := by |
| 21 | have hs : dist x₀ (V.flow s₀ s x₀) ≤ V.speedBound*|s-s₀| := by |
| 22 | simpa only [V.flow_initial, Real.dist_eq, abs_sub_comm s₀ s] using |
| 23 | (V.flow_lipschitz_time s₀ x₀).dist_le_mul s₀ s |
| 24 | have hx : dist x (V.flow s₀ s x₀) ≤ dist x x₀ + V.speedBound*|s-s₀| := |
| 25 | (dist_triangle x x₀ (V.flow s₀ s x₀)).trans (add_le_add (le_refl _) hs) |
| 26 | have hspace := V.flow_distance_initial s t x (V.flow s₀ s x₀) |
| 27 | rw [V.flow_cocycle] at hspace |
| 28 | have ht : dist (V.flow s₀ t x₀) (V.flow s₀ t₀ x₀) ≤ V.speedBound*|t-t₀| := by |
| 29 | simpa only [Real.dist_eq] using (V.flow_lipschitz_time s₀ x₀).dist_le_mul t t₀ |
| 30 | calc |
| 31 | _ ≤ dist (V.flow s t x) (V.flow s₀ t x₀) + dist (V.flow s₀ t x₀) (V.flow s₀ t₀ x₀) := |
| 32 | dist_triangle _ _ _ |
| 33 | _ ≤ dist x (V.flow s₀ s x₀) * Real.exp (V.lipschitzConstant*|t-s|) + |
| 34 | V.speedBound*|t-t₀| := add_le_add hspace ht |
| 35 | _ ≤ _ := add_le_add |
| 36 | (mul_le_mul_of_nonneg_right hx (Real.exp_pos _).le) (le_refl _) |
| 37 | |
| 38 | theorem flow_joint_continuous : |
| 39 | Continuous (fun p : ℝ × (ℝ × E) => V.flow p.1 p.2.1 p.2.2) := by |
| 40 | apply continuous_iff_continuousAt.mpr |
| 41 | intro p₀ |
| 42 | apply tendsto_iff_dist_tendsto_zero.2 |
| 43 | have hc : Continuous (fun p : ℝ × (ℝ × E) => |
| 44 | (dist p.2.2 p₀.2.2 + V.speedBound*|p.1-p₀.1|) * |
| 45 | Real.exp (V.lipschitzConstant*|p.2.1-p.1|) + V.speedBound*|p.2.1-p₀.2.1|) := by |
| 46 | fun_prop |
| 47 | apply squeeze_zero |
| 48 | (f := fun p : ℝ × (ℝ × E) => dist (V.flow p.1 p.2.1 p.2.2) |
| 49 | (V.flow p₀.1 p₀.2.1 p₀.2.2)) |
| 50 | (g := fun p : ℝ × (ℝ × E) => |
| 51 | (dist p.2.2 p₀.2.2 + V.speedBound*|p.1-p₀.1|) * |
| 52 | Real.exp (V.lipschitzConstant*|p.2.1-p.1|) + V.speedBound*|p.2.1-p₀.2.1|) |
| 53 | (fun _ => dist_nonneg) |
| 54 | (fun p => V.flow_distance p.1 p.2.1 p₀.1 p₀.2.1 p.2.2 p₀.2.2) |
| 55 | simpa only [dist_self, sub_self, abs_zero, mul_zero, add_zero, zero_mul] using |
| 56 | hc.tendsto p₀ |
| 57 | |
| 58 | def flowHomeomorph (s t : ℝ) : E ≃ₜ E where |
| 59 | toFun := V.flow s t |
| 60 | invFun := V.flow t s |
| 61 | left_inv := V.flow_inverse s t |
| 62 | right_inv := V.flow_inverse t s |
| 63 | continuous_toFun := V.flow_joint_continuous.comp |
| 64 | (continuous_const.prodMk (continuous_const.prodMk continuous_id)) |
| 65 | continuous_invFun := V.flow_joint_continuous.comp |
| 66 | (continuous_const.prodMk (continuous_const.prodMk continuous_id)) |
| 67 | |
| 68 | def forward (t : ℝ) (x : E) : E := V.flow 0 t x |
| 69 | |
| 70 | def backward (t : ℝ) (x : E) : E := V.flow t 0 x |
| 71 | |
| 72 | @[simp] theorem backward_forward (t : ℝ) (x : E) : |
| 73 | V.backward t (V.forward t x) = x := V.flow_inverse 0 t x |
| 74 | |
| 75 | @[simp] theorem forward_backward (t : ℝ) (x : E) : |
| 76 | V.forward t (V.backward t x) = x := V.flow_inverse t 0 x |
| 77 | |
| 78 | @[simp] theorem forward_zero (x : E) : V.forward 0 x = x := V.flow_initial 0 x |
| 79 | |
| 80 | @[simp] theorem backward_zero (x : E) : V.backward 0 x = x := V.flow_initial 0 x |
| 81 | |
| 82 | theorem forward_hasDerivAt (t : ℝ) (x : E) : |
| 83 | HasDerivAt (fun s => V.forward s x) (V.velocity t (V.forward t x)) t := |
| 84 | V.flow_hasDerivAt 0 t x |
| 85 | |
| 86 | theorem forward_joint_continuous : Continuous (Function.uncurry V.forward) := |
| 87 | V.flow_joint_continuous.comp (continuous_const.prodMk continuous_id) |
| 88 | |
| 89 | theorem backward_joint_continuous : Continuous (Function.uncurry V.backward) := |
| 90 | V.flow_joint_continuous.comp |
| 91 | (continuous_fst.prodMk (continuous_const.prodMk continuous_snd)) |
| 92 | |
| 93 | theorem forward_displacement (t : ℝ) (x : E) : |
| 94 | dist (V.forward t x) x ≤ V.speedBound*|t| := by |
| 95 | simpa only [forward, V.flow_initial, Real.dist_eq, sub_zero] using |
| 96 | (V.flow_lipschitz_time 0 x).dist_le_mul t 0 |
| 97 | |
| 98 | end EulerBoundedLipschitzFlow.Data |