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.ParentParticleInverse |
| 2 | import Euler.SmoothFlowDeformation |
| 3 | import Euler.SmoothTimeFieldRestriction |
| 4 | |
| 5 | /-! The genuine ordinary flow of a smooth divergence-free velocity gives |
| 6 | the first parent particle data. Its horizon can be shortened by an explicit |
| 7 | positive amount before applying the uniform flow-jet estimate. -/ |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | namespace EulerBaseEulerParent |
| 12 | |
| 13 | open Set MeasureTheory EulerSmoothLimit EulerSmoothBanachFlow |
| 14 | EulerParentPacketFrames EulerVolterraConvolution EulerTimeIntervalRestriction |
| 15 | open scoped ContDiff BoundedContinuousFunction |
| 16 | |
| 17 | private local instance (n : ℕ) : NormedAddCommGroup (Space [×n]→L[ℝ] Space) := inferInstance |
| 18 | private local instance (n : ℕ) : NormedSpace ℝ (Space [×n]→L[ℝ] Space) := inferInstance |
| 19 | private local instance (n : ℕ) : NormedAddCommGroup (Space →ᵇ (Space [×n]→L[ℝ] Space)) := inferInstance |
| 20 | private local instance (n : ℕ) : NormedSpace ℝ (Space →ᵇ (Space [×n]→L[ℝ] Space)) := inferInstance |
| 21 | |
| 22 | structure Input where |
| 23 | T : ℝ |
| 24 | T_pos : 0 < T |
| 25 | field : SmoothTimeField (Icc (0 : ℝ) T) Space Space |
| 26 | derivative : SmoothTimeField (Icc (0 : ℝ) T) Space Space |
| 27 | time_derivative : SmoothTimeField.TimeDerivative T T_pos.le field derivative |
| 28 | divergence : ∀ t x, EulerSmoothLimit.divergence (field.field t) x=0 |
| 29 | B : ℝ |
| 30 | R : ℝ |
| 31 | B_nonneg : 0 ≤ B |
| 32 | R_pos : 0 < R |
| 33 | small : B*R*T ≤ 1/8 |
| 34 | bound : ∀ n, ‖field.jet n‖ ≤ B*R^n*(n.factorial : ℝ)^2 |
| 35 | |
| 36 | namespace Input |
| 37 | |
| 38 | variable (I : Input) |
| 39 | |
| 40 | def displacement : SmoothTimeField (Icc (0 : ℝ) I.T) Space Space := |
| 41 | displacementCoefficient I.T I.T_pos.le I.field I.B I.R I.B_nonneg I.R_pos I.small I.bound |
| 42 | |
| 43 | def velocity : SmoothTimeField (Icc (0 : ℝ) I.T) Space Space := |
| 44 | I.field.compDisplacement I.displacement |
| 45 | |
| 46 | def acceleration : SmoothTimeField (Icc (0 : ℝ) I.T) Space Space := |
| 47 | accelerationCoefficient I.T I.T_pos.le I.field I.B I.R I.B_nonneg I.R_pos I.small I.bound I.derivative |
| 48 | |
| 49 | @[simp] theorem displacement_apply (t : Icc (0 : ℝ) I.T) (x : Space) : |
| 50 | I.displacement.field t x=(flowData I.T I.T_pos.le I.field).forward t x-x := rfl |
| 51 | |
| 52 | @[simp] theorem velocity_apply (t : Icc (0 : ℝ) I.T) (x : Space) : |
| 53 | I.velocity.field t x=velocityFamily I.T I.T_pos.le I.field x t := by |
| 54 | change I.field.field t (x+I.displacement.field t x)=_ |
| 55 | rw [I.displacement_apply] |
| 56 | have he : x+((flowData I.T I.T_pos.le I.field).forward t x-x)= |
| 57 | (flowData I.T I.T_pos.le I.field).forward t x := by abel |
| 58 | rw [he] |
| 59 | rfl |
| 60 | |
| 61 | @[simp] theorem acceleration_apply (t : Icc (0 : ℝ) I.T) (x : Space) : |
| 62 | I.acceleration.field t x=accelerationFamily I.T I.T_pos.le I.field I.derivative x t := |
| 63 | accelerationCoefficient_apply I.T I.T_pos.le I.field I.B I.R I.B_nonneg I.R_pos |
| 64 | I.small I.bound I.derivative t x |
| 65 | |
| 66 | theorem displacement_time : SmoothTimeField.TimeDerivative I.T I.T_pos.le |
| 67 | I.displacement I.velocity := by |
| 68 | intro t x |
| 69 | have he : (fun s => I.displacement.realField I.T I.T_pos.le s x)= |
| 70 | extendPath I.T I.T_pos.le (displacementFamily I.T I.T_pos.le I.field x) := rfl |
| 71 | rw [he,I.velocity_apply] |
| 72 | exact displacementFamily_time_derivative I.T I.T_pos.le I.field x t |
| 73 | |
| 74 | theorem velocity_time : SmoothTimeField.TimeDerivative I.T I.T_pos.le |
| 75 | I.velocity I.acceleration := by |
| 76 | intro t x |
| 77 | have he : (fun s => I.velocity.realField I.T I.T_pos.le s x)= |
| 78 | extendPath I.T I.T_pos.le (velocityFamily I.T I.T_pos.le I.field x) := by |
| 79 | funext s |
| 80 | exact I.velocity_apply (projIcc 0 I.T I.T_pos.le s) x |
| 81 | rw [he,I.acceleration_apply] |
| 82 | exact velocityFamily_time_derivative I.T I.T_pos.le I.field I.derivative I.time_derivative x t |
| 83 | |
| 84 | theorem displacement_initial (x : Space) : I.displacement.field ⟨0,le_rfl,I.T_pos.le⟩ x=0 := by |
| 85 | rw [I.displacement_apply,(flowData I.T I.T_pos.le I.field).forward_zero,sub_self] |
| 86 | |
| 87 | theorem displacement_det (t : Icc (0 : ℝ) I.T) (x : Space) : |
| 88 | (ContinuousLinearMap.id ℝ Space+fderiv ℝ (I.displacement.field t : Space → Space) x).det=1 := by |
| 89 | rw [← I.displacement.derivativeField_eq t x] |
| 90 | change ((deformationCoefficient I.T I.T_pos.le I.field I.B I.R I.B_nonneg I.R_pos |
| 91 | I.small I.bound).field t x).det=1 |
| 92 | rw [deformationCoefficient_apply] |
| 93 | exact forward_det_one I.T I.T_pos.le I.field I.divergence t x |
| 94 | |
| 95 | def parent (ell : ℝ) (hell : 0 < ell) (hell1 : ell ≤ 1) : Parent where |
| 96 | T := I.T |
| 97 | T_pos := I.T_pos |
| 98 | ell := ell |
| 99 | ell_pos := hell |
| 100 | ell_le_one := hell1 |
| 101 | displacement := I.displacement |
| 102 | velocity := I.velocity |
| 103 | acceleration := I.acceleration |
| 104 | displacement_time := I.displacement_time |
| 105 | velocity_time := I.velocity_time |
| 106 | initial := I.displacement_initial |
| 107 | determinant t x := by |
| 108 | rw [EulerPacketVolumeDivergence.operatorMatrix_det] |
| 109 | exact I.displacement_det t (ell • x) |
| 110 | |
| 111 | theorem parent_position (ell : ℝ) (hell : 0 < ell) (hell1 : ell ≤ 1) |
| 112 | (t : Icc (0 : ℝ) I.T) (x : Space) : |
| 113 | (I.parent ell hell hell1).position t x=(flowData I.T I.T_pos.le I.field).forward t x := by |
| 114 | change x+I.displacement.field t x=_ |
| 115 | rw [I.displacement_apply] |
| 116 | abel |
| 117 | |
| 118 | def particleInverse (ell : ℝ) (hell : 0 < ell) (hell1 : ell ≤ 1) : |
| 119 | ParticleInverse (I.parent ell hell hell1) where |
| 120 | field t x := (flowData I.T I.T_pos.le I.field).backward t x |
| 121 | left_inverse t x := by |
| 122 | erw [I.parent_position ell hell hell1] |
| 123 | exact (flowData I.T I.T_pos.le I.field).backward_forward t x |
| 124 | right_inverse t x := by |
| 125 | erw [I.parent_position ell hell hell1] |
| 126 | exact (flowData I.T I.T_pos.le I.field).forward_backward t x |
| 127 | continuous := by |
| 128 | have hc : Continuous (fun q : Icc (0 : ℝ) I.T × Space => ((q.1 : ℝ),q.2)) := |
| 129 | (continuous_subtype_val.comp continuous_fst).prodMk continuous_snd |
| 130 | exact (flowData I.T I.T_pos.le I.field).backward_joint_continuous.comp hc |
| 131 | |
| 132 | theorem parent_velocity (ell : ℝ) (hell : 0 < ell) (hell1 : ell ≤ 1) |
| 133 | (t : Icc (0 : ℝ) I.T) (x : Space) : |
| 134 | (I.parent ell hell hell1).velocity.field t x= |
| 135 | I.field.field t ((I.parent ell hell hell1).position t x) := by |
| 136 | rw [I.parent_position] |
| 137 | exact I.velocity_apply t x |
| 138 | |
| 139 | end Input |
| 140 | |
| 141 | def horizon (T B R : ℝ) : ℝ := min T (1/(8*(1+B*R))) |
| 142 | |
| 143 | theorem horizon_pos (T B R : ℝ) (hT : 0 < T) (hB : 0 ≤ B) (hR : 0 ≤ R) : |
| 144 | 0 < horizon T B R := by |
| 145 | unfold horizon |
| 146 | apply lt_min hT |
| 147 | positivity |
| 148 | |
| 149 | theorem horizon_le (T B R : ℝ) : horizon T B R ≤ T := min_le_left _ _ |
| 150 | |
| 151 | theorem horizon_small (T B R : ℝ) (hT : 0 < T) (hB : 0 ≤ B) (hR : 0 ≤ R) : |
| 152 | B*R*horizon T B R ≤ 1/8 := by |
| 153 | have hp := horizon_pos T B R hT hB hR |
| 154 | have hd : 0 < 8*(1+B*R) := by positivity |
| 155 | have he := (le_div_iff₀ hd).1 (min_le_right T (1/(8*(1+B*R)))) |
| 156 | change horizon T B R*(8*(1+B*R)) ≤ 1 at he |
| 157 | nlinarith |
| 158 | |
| 159 | def ofInterval (T : ℝ) (hT : 0 < T) |
| 160 | (A A₁ : SmoothTimeField (Icc (0 : ℝ) T) Space Space) |
| 161 | (htime : SmoothTimeField.TimeDerivative T hT.le A A₁) |
| 162 | (hdiv : ∀ t x, EulerSmoothLimit.divergence (A.field t) x=0) |
| 163 | (B R : ℝ) (hB : 0 ≤ B) (hR : 0 < R) |
| 164 | (hb : ∀ n, ‖A.jet n‖ ≤ B*R^n*(n.factorial : ℝ)^2) : Input where |
| 165 | T := horizon T B R |
| 166 | T_pos := horizon_pos T B R hT hB hR.le |
| 167 | field := A.compTime (initialInclusion T (horizon T B R) (horizon_le T B R)) |
| 168 | derivative := A₁.compTime (initialInclusion T (horizon T B R) (horizon_le T B R)) |
| 169 | time_derivative := htime.restrictInitial (horizon_pos T B R hT hB hR.le).le (horizon_le T B R) |
| 170 | divergence t x := hdiv (initialInclusion T (horizon T B R) (horizon_le T B R) t) x |
| 171 | B := B |
| 172 | R := R |
| 173 | B_nonneg := hB |
| 174 | R_pos := hR |
| 175 | small := horizon_small T B R hT hB hR.le |
| 176 | bound n := (A.compTime_jet_norm _ n).trans (hb n) |
| 177 | |
| 178 | end EulerBaseEulerParent |