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.ParentPacketPhysicalCoefficients |
| 2 | import Euler.SmoothTimeFieldChain |
| 3 | |
| 4 | /-! The actual parent strain obeys the matrix Riccati equation. Its |
| 5 | inverse derivative is derived from the polynomial cofactor construction |
| 6 | and the genuine frame identity, including the time-interval endpoints. -/ |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | namespace EulerParentPacketFrames |
| 11 | |
| 12 | open Set ContinuousLinearMap EulerSmoothLimit EulerMeanCoefficients EulerPacketCofactor |
| 13 | EulerVolterraConvolution |
| 14 | open scoped ContDiff BoundedContinuousFunction |
| 15 | |
| 16 | namespace Parent |
| 17 | |
| 18 | variable (G : Parent) |
| 19 | |
| 20 | def inverseDerivative : SmoothTimeField (Icc (0 : ℝ) G.T) Space EndSpace := |
| 21 | (SmoothTimeField.bilinear (compL ℝ Space Space Space) G.inverse |
| 22 | (SmoothTimeField.bilinear (compL ℝ Space Space Space) G.first G.inverse)).map |
| 23 | (-ContinuousLinearMap.id ℝ EndSpace) |
| 24 | |
| 25 | @[simp] theorem inverseDerivative_apply (t : Icc (0 : ℝ) G.T) (x : Space) : |
| 26 | G.inverseDerivative.field t x = |
| 27 | -((G.inverse.field t x).comp ((G.first.field t x).comp (G.inverse.field t x))) := rfl |
| 28 | |
| 29 | theorem inverse_time : SmoothTimeField.TimeDerivative G.T G.T_pos.le G.inverse G.inverseDerivative := by |
| 30 | let J := (SmoothTimeField.bilinear cofactorBilinear G.first G.frame).add |
| 31 | (SmoothTimeField.bilinear cofactorBilinear G.frame G.first) |
| 32 | have hJ : SmoothTimeField.TimeDerivative G.T G.T_pos.le G.inverse J := |
| 33 | G.frame_time.bilinear cofactorBilinear G.frame_time |
| 34 | apply hJ.congr_fields (fun _ _ => rfl) |
| 35 | intro t x |
| 36 | have hd := (hJ t x).clm_comp (G.frame_time t x) |
| 37 | have he : (fun s => (G.inverse.realField G.T G.T_pos.le s x).comp |
| 38 | (G.frame.realField G.T G.T_pos.le s x)) = fun _ => ContinuousLinearMap.id ℝ Space := by |
| 39 | funext s |
| 40 | apply ContinuousLinearMap.ext |
| 41 | intro v |
| 42 | exact G.inverse_left (projIcc 0 G.T G.T_pos.le s) x v |
| 43 | rw [he] at hd |
| 44 | simp only [SmoothTimeField.realField_apply] at hd |
| 45 | have hz : (J.field t x).comp (G.frame.field t x)+ |
| 46 | (G.inverse.field t x).comp (G.first.field t x)=0 := |
| 47 | (hd.derivWithin (uniqueDiffOn_Icc G.T_pos t t.property)).symm.trans |
| 48 | ((hasDerivWithinAt_const (t : ℝ) (Icc (0 : ℝ) G.T) |
| 49 | (ContinuousLinearMap.id ℝ Space)).derivWithin |
| 50 | (uniqueDiffOn_Icc G.T_pos t t.property)) |
| 51 | rw [G.inverseDerivative_apply] |
| 52 | apply ContinuousLinearMap.ext |
| 53 | intro v |
| 54 | have hv := congrArg (fun A : EndSpace => A (G.inverse.field t x v)) hz |
| 55 | simp only [add_apply,comp_apply,G.inverse_right,zero_apply] at hv |
| 56 | simpa only [neg_apply,comp_apply] using eq_neg_of_add_eq_zero_left hv |
| 57 | |
| 58 | def strainDerivative : SmoothTimeField (Icc (0 : ℝ) G.T) Space EndSpace := |
| 59 | ((SmoothTimeField.bilinear (compL ℝ Space Space Space) G.strain G.strain).add G.curvature).map |
| 60 | (-ContinuousLinearMap.id ℝ EndSpace) |
| 61 | |
| 62 | @[simp] theorem strainDerivative_apply (t : Icc (0 : ℝ) G.T) (x : Space) : |
| 63 | G.strainDerivative.field t x = |
| 64 | -(G.strain.field t x).comp (G.strain.field t x)-G.curvature.field t x := by |
| 65 | change -((G.strain.field t x).comp (G.strain.field t x)+G.curvature.field t x)=_ |
| 66 | abel |
| 67 | |
| 68 | theorem strain_time : SmoothTimeField.TimeDerivative G.T G.T_pos.le G.strain G.strainDerivative := by |
| 69 | have h := G.first_time.bilinear (compL ℝ Space Space Space) G.inverse_time |
| 70 | apply h.congr_fields (fun _ _ => rfl) |
| 71 | intro t x |
| 72 | change (G.second.field t x).comp (G.inverse.field t x)+ |
| 73 | (G.first.field t x).comp (G.inverseDerivative.field t x)=G.strainDerivative.field t x |
| 74 | rw [G.strainDerivative_apply,G.inverseDerivative_apply,G.strain_apply,G.curvature_apply] |
| 75 | apply ContinuousLinearMap.ext |
| 76 | intro v |
| 77 | simp only [add_apply,comp_apply,neg_apply,sub_apply,map_neg] |
| 78 | abel |
| 79 | |
| 80 | /-- The exact clamped-time form used by the source ray/velocity dynamics. -/ |
| 81 | theorem strain_within (t : Icc (0 : ℝ) G.T) (x : Space) : |
| 82 | HasDerivWithinAt (fun s => extendPath G.T G.T_pos.le G.strain.field s x) |
| 83 | (-(G.strain.field t x).comp (G.strain.field t x)-G.curvature.field t x) |
| 84 | (Icc (0 : ℝ) G.T) t := by |
| 85 | simpa only [SmoothTimeField.realField,G.strainDerivative_apply] using G.strain_time t x |
| 86 | |
| 87 | theorem strainDerivative_norm_le (t : Icc (0 : ℝ) G.T) (x : Space) : |
| 88 | ‖G.strainDerivative.field t x‖ ≤ ‖G.strain.field t x‖^2+‖G.curvature.field t x‖ := by |
| 89 | rw [G.strainDerivative_apply] |
| 90 | calc |
| 91 | _ ≤ ‖-(G.strain.field t x).comp (G.strain.field t x)‖+‖G.curvature.field t x‖ := |
| 92 | norm_sub_le _ _ |
| 93 | _ ≤ _ := by |
| 94 | rw [norm_neg,pow_two] |
| 95 | exact add_le_add (opNorm_comp_le _ _) le_rfl |
| 96 | |
| 97 | theorem strainDerivative_norm_bound (CM CH : ℝ) (hCM : 0 ≤ CM) |
| 98 | (t : Icc (0 : ℝ) G.T) (x : Space) |
| 99 | (hM : ‖G.strain.field t x‖ ≤ CM) (hH : ‖G.curvature.field t x‖ ≤ CH) : |
| 100 | ‖G.strainDerivative.field t x‖ ≤ CM^2+CH := by |
| 101 | apply (G.strainDerivative_norm_le t x).trans |
| 102 | simpa only [pow_two] using add_le_add (mul_le_mul hM hM (norm_nonneg _) hCM) hH |
| 103 | |
| 104 | def centerStrain (t : ℝ) : EndSpace := |
| 105 | extendPath G.T G.T_pos.le G.strain.field t 0 |
| 106 | |
| 107 | def centerCurvature (t : ℝ) : EndSpace := |
| 108 | extendPath G.T G.T_pos.le G.curvature.field t 0 |
| 109 | |
| 110 | def centerStrainDerivative (t : ℝ) : EndSpace := |
| 111 | extendPath G.T G.T_pos.le G.strainDerivative.field t 0 |
| 112 | |
| 113 | theorem centerStrainDerivative_eq (t : ℝ) : |
| 114 | G.centerStrainDerivative t = -(G.centerStrain t).comp (G.centerStrain t)-G.centerCurvature t := |
| 115 | G.strainDerivative_apply (projIcc 0 G.T G.T_pos.le t) 0 |
| 116 | |
| 117 | theorem centerStrain_derivative (τ : ℝ) (hτ : 0 ≤ τ) |
| 118 | (t : ℝ) (ht : t ∈ Icc τ G.T) : |
| 119 | HasDerivWithinAt G.centerStrain (G.centerStrainDerivative t) (Icc τ G.T) t := by |
| 120 | have ht0 : t ∈ Icc (0 : ℝ) G.T := ⟨hτ.trans ht.1,ht.2⟩ |
| 121 | have hd := G.strain_time ⟨t,ht0⟩ 0 |
| 122 | have hd' := hd.mono (show Icc τ G.T ⊆ Icc (0 : ℝ) G.T from fun _ hs => ⟨hτ.trans hs.1,hs.2⟩) |
| 123 | unfold centerStrain centerStrainDerivative |
| 124 | simpa only [SmoothTimeField.realField,extendPath, |
| 125 | projIcc_of_mem G.T_pos.le ht0] using hd' |
| 126 | |
| 127 | /-- The fixed-center derivative bound needed by the next geometric stage |
| 128 | follows from the actual strain/curvature bounds and one scalar guard. -/ |
| 129 | theorem centerStrainDerivative_bound (τ CM CH K : ℝ) (hτ : 0 ≤ τ) (hCM : 0 ≤ CM) |
| 130 | (hM : ∀ t ∈ Icc τ G.T, ‖G.centerStrain t‖ ≤ CM) |
| 131 | (hH : ∀ t ∈ Icc τ G.T, ‖G.centerCurvature t‖ ≤ CH) |
| 132 | (hK : CM^2+CH ≤ K^2) (t : ℝ) (ht : t ∈ Icc τ G.T) : |
| 133 | ‖G.centerStrainDerivative t‖ ≤ K^2 := by |
| 134 | have ht0 : t ∈ Icc (0 : ℝ) G.T := ⟨hτ.trans ht.1,ht.2⟩ |
| 135 | have hm := hM t ht |
| 136 | have hh := hH t ht |
| 137 | simp only [centerStrain,centerCurvature,extendPath,projIcc_of_mem G.T_pos.le ht0] at hm hh |
| 138 | have hb := (G.strainDerivative_norm_bound CM CH hCM ⟨t,ht0⟩ 0 hm hh).trans hK |
| 139 | simpa only [centerStrainDerivative,extendPath,projIcc_of_mem G.T_pos.le ht0] using hb |
| 140 | |
| 141 | section Transverse |
| 142 | |
| 143 | variable {U : Type*} [NormedAddCommGroup U] [InnerProductSpace ℝ U] |
| 144 | (m : Space) (hm : ‖m‖=1) (R : U ≃ₗᵢ[ℝ] EulerTransverseFrameCoordinates.referencePlane m) |
| 145 | (S : Set Space) (hS : IsCompact S) |
| 146 | |
| 147 | theorem transverse_strain_within (t : Icc (0 : ℝ) G.T) (x : Space) : |
| 148 | HasDerivWithinAt |
| 149 | (fun s => extendPath G.T G.T_pos.le (G.transverseData m hm R S hS).M.field s x) |
| 150 | (-((G.transverseData m hm R S hS).M.field t x).comp |
| 151 | ((G.transverseData m hm R S hS).M.field t x)-G.curvature.field t x) |
| 152 | (Icc (0 : ℝ) G.T) t := G.strain_within t x |
| 153 | |
| 154 | end Transverse |
| 155 | |
| 156 | end Parent |
| 157 | end EulerParentPacketFrames |