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.PacketPressureRemainder |
| 2 | import Euler.PacketInitializedRemainder |
| 3 | import Euler.PacketJoinedPressureAssembly |
| 4 | import Euler.PacketPressureFastHessian |
| 5 | import Euler.PacketPressureFastBounds |
| 6 | import Euler.PacketPrimaryPressureShear |
| 7 | |
| 8 | /-! The actual finite pressure Hessian is its primary normal tensor plus |
| 9 | a uniform inverse-frequency error. No derivative or remainder estimate |
| 10 | is assumed for a solved field. -/ |
| 11 | |
| 12 | /-! ## From `Euler/PacketInitializedPressureRemainder.lean` |
| 13 | |
| 14 | The text of `Euler/PacketInitializedPressureRemainder.lean`, folded into this file, which was its only importer. -/ |
| 15 | |
| 16 | section |
| 17 | |
| 18 | /-! The initialized finite pressure has its actual leading angular force |
| 19 | and a uniformly small covector remainder. -/ |
| 20 | |
| 21 | noncomputable section |
| 22 | |
| 23 | namespace EulerPacketTerminalDatum |
| 24 | |
| 25 | open Set InnerProductSpace ContinuousLinearMap EulerSmoothLimit EulerSpatialCutoffs |
| 26 | EulerTransversePacketProvider EulerPacketCylinderField EulerPacketProfileRecursion |
| 27 | EulerPacketPointJets EulerPacketTimeProfile EulerParameterWordGevrey |
| 28 | EulerPacketCoarseMajorant EulerPacketPressure EulerPacketGraphHessian |
| 29 | EulerGraphPullback EulerTransversePacketPrimary |
| 30 | open scoped ContDiff |
| 31 | |
| 32 | variable (M : EulerMeanPacketProvider.Data) |
| 33 | {U : Type*} [NormedAddCommGroup U] [InnerProductSpace ℝ U] [CompleteSpace U] |
| 34 | (D : Data U) (hTime : M.T = D.T) (τ : ℝ) (hτ : 0 < τ) (hτT : τ < D.T) |
| 35 | (B : HistoryData (D.initial τ hτ hτT.le)) |
| 36 | (δ : ℝ) (hδ : 0 < δ) (ξ : U) (hs : tsupport innerCutoff ⊆ D.support) (α : ℝ) |
| 37 | |
| 38 | theorem initializedProfiles_one_highPressure : |
| 39 | (initializedProfiles M D τ hτ hτT B δ hδ ξ hs α 1).highPressure = |
| 40 | scalar τ hτ hτT B (initialData D δ hδ (α • ξ) hs) := by |
| 41 | simp only [initializedProfiles,joinedSourceProfiles,profiles_one] |
| 42 | rfl |
| 43 | |
| 44 | theorem initializedProfiles_one_meanPressure : |
| 45 | (initializedProfiles M D τ hτ hτT B δ hδ ξ hs α 1).meanPressure = 0 := by |
| 46 | simp only [initializedProfiles,joinedSourceProfiles,profiles_one] |
| 47 | rfl |
| 48 | |
| 49 | def initializedAngularPressure : ScalarField := fun z => |
| 50 | (pressureJet (scalar τ hτ hτT B (initialData D δ hδ (α • ξ) hs)) z).2 angleDirection |
| 51 | |
| 52 | def initializedCovectorRemainder (N : ℕ) (κ : ℝ) : VectorField := |
| 53 | covectorRemainder (N := N) (a := initializedProfiles M D τ hτ hτT B δ hδ ξ hs α) D.m₀ κ |
| 54 | |
| 55 | include hTime in |
| 56 | theorem initializedPressure_gradient_decomposition (N : ℕ) (k : ℝ) (hk : k ≠ 0) |
| 57 | (t : Icc (0 : ℝ) D.T) (Y : Space → Space) (x : Space) |
| 58 | (hY : HasFDerivAt Y (D.FInv.field t (Y x)) x) : |
| 59 | gradient (fun y => initializedPressure M D τ hτ hτT B δ hδ ξ hs α N k⁻¹ |
| 60 | (t,(Y y,k*⟪D.m₀,Y y⟫_ℝ))) x = |
| 61 | fastForce (fun z => initializedAngularPressure D τ hτ hτT B δ hδ ξ hs α (t,z)) |
| 62 | k D.m₀ Y (fun y => D.FInv.field t (Y y)) x + |
| 63 | (D.FInv.field t (Y x)).adjoint |
| 64 | (initializedCovectorRemainder M D τ hτ hτT B δ hδ ξ hs α N k⁻¹ |
| 65 | (t,(Y x,k*⟪D.m₀,Y x⟫_ℝ))) := by |
| 66 | let tm : Icc (0 : ℝ) M.T := ⟨t.val,by simpa only [hTime] using t.property⟩ |
| 67 | let a := initializedProfiles M D τ hτ hτT B δ hδ ξ hs α |
| 68 | let primary := joinedTerminalPrimary period M D τ hτ hτT B (initialData D δ hδ (α • ξ) hs) |
| 69 | let hprimary := joinedTerminalPrimaryWitness period M D hTime τ hτ hτT B |
| 70 | (initialData D δ hδ (α • ξ) hs) |
| 71 | have hm (i : ℕ) : ContDiff ℝ ∞ (fun z => (a i).meanPressure (t,z)) := |
| 72 | joinedSource_meanPressure_smooth_all period M D hTime τ hτ hτT B primary hprimary rfl i tm |
| 73 | have hh (i : ℕ) : ContDiff ℝ ∞ (fun z => (a i).highPressure (t,z)) := |
| 74 | joinedSource_highPressure_smooth_all period M D hTime τ hτ hτT B primary hprimary |
| 75 | (fun s => joinedTerminalPrimary_pressure_smooth period M D τ hτ hτT B _ s.val) i tm |
| 76 | have ha (i : ℕ) : (pressureJet (a i).meanPressure (t,(Y x,k*⟪D.m₀,Y x⟫_ℝ))).2 angleDirection=0 := |
| 77 | joinedSource_meanPressure_angle_all period M D hTime τ hτ hτT B primary hprimary rfl i tm _ _ |
| 78 | have hp : DifferentiableAt ℝ |
| 79 | (fun z => initializedPressure M D τ hτ hτT B δ hδ ξ hs α N k⁻¹ (t,z)) |
| 80 | (graphMap k D.m₀ (Y x)) := |
| 81 | ((initializedPressureWitness M D hTime τ hτ hτT B δ hδ ξ hs α N k⁻¹).smooth tm).differentiable |
| 82 | (by simp) _ |
| 83 | rw [gradient_physical_covector k D.m₀ _ t Y _ x hY hp] |
| 84 | have he := covector_finite N k⁻¹ (inv_ne_zero hk) D.m₀ a |
| 85 | (t,(Y x,k*⟪D.m₀,Y x⟫_ℝ)) |
| 86 | (fun i _ => (hm i).differentiable (by simp) _) (fun i _ => (hh i).differentiable (by simp) _) |
| 87 | (fun i _ => ha i) |
| 88 | rw [inv_inv] at he |
| 89 | change covector k D.m₀ (initializedPressure M D τ hτ hτT B δ hδ ξ hs α N k⁻¹) |
| 90 | (t,(Y x,k*⟪D.m₀,Y x⟫_ℝ)) = _ at he |
| 91 | rw [he] |
| 92 | have h1 : (a 1).highPressure=scalar τ hτ hτT B (initialData D δ hδ (α • ξ) hs) := |
| 93 | initializedProfiles_one_highPressure M D τ hτ hτT B δ hδ ξ hs α |
| 94 | have hv : fieldSum (N+1) k⁻¹ (covectorGrades N D.m₀ a) (t,(Y x,k*⟪D.m₀,Y x⟫_ℝ)) = |
| 95 | k⁻¹ • angularPressure D.m₀ (a 1).highPressure (t,(Y x,k*⟪D.m₀,Y x⟫_ℝ)) + |
| 96 | initializedCovectorRemainder M D τ hτ hτT B δ hδ ξ hs α N k⁻¹ |
| 97 | (t,(Y x,k*⟪D.m₀,Y x⟫_ℝ)) := by |
| 98 | dsimp only [initializedCovectorRemainder,covectorRemainder,Pi.sub_apply,Pi.smul_apply] |
| 99 | abel |
| 100 | rw [hv,map_add,map_smul] |
| 101 | simp only [fastForce,transportedNormal,graphMap_apply,angularPressure, |
| 102 | initializedAngularPressure,map_smul,h1] |
| 103 | |
| 104 | variable |
| 105 | (L : EulerTransversePacketJoin.Budget D τ hτ hτT B (Fin 4) 6) |
| 106 | (H : EulerTransversePacketPrimary.Budget L) |
| 107 | (NB : EulerTransversePacketJoin.NormalBudget D 6 L.R) |
| 108 | (W : EulerTransversePacketJoin.Budget.GradeGuards (P := period) L NB) |
| 109 | (LM : EulerMeanPacketProvider.Budget M 6 L.R) |
| 110 | (WM : EulerMeanPacketProvider.Budget.GradeGuards LM) |
| 111 | (BC : CoefficientBudget (joinedSourceCoefficientData period M D τ hτ hτT B hTime)) |
| 112 | (hRc : sobolevCoefficientRadius (Fin 4) BC.Rc ≤ L.R) (hcost : BC.termCost ≤ L.R) |
| 113 | (hδ1 : δ ≤ 1) (hα : 0 < α) (hR : wordRadius (Fin 4) δ ≤ L.R) |
| 114 | (WP : EulerTransversePacketPrimary.Budget.GradeGuards (P := period) H NB (wordCost (Fin 4) 6 δ*‖ξ‖)) |
| 115 | (S : Scales (Icc (0 : ℝ) M.T)) |
| 116 | (hgrowth : timeProfileChange S.growth hTime=α • L.fullProfile) |
| 117 | |
| 118 | def initializedPressureBudget (p : ℕ) := |
| 119 | Classical.choice (initializedPressureBudget_exists M D hTime τ hτ hτT B δ hδ ξ hs α |
| 120 | L H NB W LM WM BC hRc hcost hδ1 hα hR WP S hgrowth p) |
| 121 | |
| 122 | def initializedAngularPressureField : |
| 123 | Field period D.T (fun z => initializedAngularPressure D τ hτ hτT B δ hδ ξ hs α z • D.m₀) := |
| 124 | (((initializedPressureBudget M D hTime τ hτ hτT B δ hδ ξ hs α |
| 125 | L H NB W LM WM BC hRc hcost hδ1 hα hR WP S hgrowth 1).angular).changeTime hTime).congr |
| 126 | (fun _ _ _ => by rw [initializedProfiles_one_highPressure]; rfl) |
| 127 | |
| 128 | theorem initializedAngularPressure_bound : |
| 129 | (initializedAngularPressureField M D hTime τ hτ hτT B δ hδ ξ hs α |
| 130 | L H NB W LM WM BC hRc hcost hδ1 hα hR WP S hgrowth).WordBound |
| 131 | 6 (4*L.R) (fixedVelocityGradeCost L.R S.H0 1) 0 := by |
| 132 | let K := initializedPressureBudget M D hTime τ hτ hτT B δ hδ ξ hs α |
| 133 | L H NB W LM WM BC hRc hcost hδ1 hα hR WP S hgrowth 1 |
| 134 | have hb := K.angular_bound.remove_profile M.T_pos.le (S.high 1) (S.high_pos 1) |
| 135 | (S.H0^(2*1)) (pow_nonneg S.H0_pos.le _) (S.high_le_coarse 1 le_rfl) |
| 136 | simp only [mul_one] at hb |
| 137 | have ha : S.H0^2 ≤ 3*S.H0^(2*1) := by |
| 138 | norm_num only [Nat.mul_one] |
| 139 | linarith [sq_nonneg S.H0] |
| 140 | have hc := (hb.mono_amplitude (zero_le_one.trans L.radius_bounds.1) ha).fixed_velocity_grade |
| 141 | (n := 1) (zero_le_one.trans L.radius_bounds.1) S.H0_pos.le |
| 142 | exact (hc.changeTime hTime).of_raw_eq _ |
| 143 | (fun _ _ _ => by rw [initializedProfiles_one_highPressure]; rfl) |
| 144 | |
| 145 | def initializedCovectorRemainderField (N : ℕ) (hN : 1 ≤ N) (κ : ℝ) : |
| 146 | Field period D.T (initializedCovectorRemainder M D τ hτ hτT B δ hδ ξ hs α N κ) := |
| 147 | (covectorRemainderField M.T_pos D.m₀ |
| 148 | (fun i (_ : i ≤ N) => initializedProfileWitness M D hTime τ hτ hτT B δ hδ ξ hs α i) |
| 149 | (fun i (_ : i ≤ N) => initializedPressureBudget M D hTime τ hτ hτT B δ hδ ξ hs α |
| 150 | L H NB W LM WM BC hRc hcost hδ1 hα hR WP S hgrowth i) |
| 151 | (initializedProfiles_zero M D τ hτ hτT B δ hδ ξ hs α) hN |
| 152 | (initializedProfiles_one_meanPressure M D τ hτ hτT B δ hδ ξ hs α) κ).changeTime hTime |
| 153 | |
| 154 | include H NB W LM WM BC hRc hcost hδ1 hα hR WP hgrowth |
| 155 | theorem initializedCovectorRemainder_bound (N : ℕ) (hN : 1 ≤ N) (k : ℝ) (hk : 4 ≤ k) |
| 156 | (hbase : tailBase L.R S.H0 BC.termCost N ≤ k^(1/100 : ℝ)) : |
| 157 | (initializedCovectorRemainderField M D hTime τ hτ hτT B δ hδ ξ hs α |
| 158 | L H NB W LM WM BC hRc hcost hδ1 hα hR WP S hgrowth N hN k⁻¹).WordBound |
| 159 | 6 (4*L.R) ((fixedVelocityGradeCost L.R S.H0 2+2)/k^2) 0 := by |
| 160 | exact (covectorRemainder_bound M.T_pos D.m₀ |
| 161 | (fun i (_ : i ≤ N) => initializedProfileWitness M D hTime τ hτ hτT B δ hδ ξ hs α i) |
| 162 | (fun i (_ : i ≤ N) => initializedPressureBudget M D hTime τ hτ hτT B δ hδ ξ hs α |
| 163 | L H NB W LM WM BC hRc hcost hδ1 hα hR WP S hgrowth i) |
| 164 | (fun i _ hi => initialized_profile_budgets M D hTime τ hτ hτT B δ hδ ξ hs α |
| 165 | L H NB W LM WM BC hRc hcost hδ1 hα hR WP S hgrowth i hi) |
| 166 | L.radius_bounds.1 (initializedProfiles_zero M D τ hτ hτT B δ hδ ξ hs α) hN |
| 167 | (initializedProfiles_one_meanPressure M D τ hτ hτT B δ hδ ξ hs α) BC k hk hbase).changeTime hTime |
| 168 | |
| 169 | end EulerPacketTerminalDatum |
| 170 | end |
| 171 | |
| 172 | end |
| 173 | |
| 174 | noncomputable section |
| 175 | |
| 176 | namespace EulerPacketTerminalDatum |
| 177 | |
| 178 | open Set InnerProductSpace ContinuousLinearMap EulerSmoothLimit EulerSpatialCutoffs |
| 179 | EulerTransversePacketProvider EulerPacketCylinderField EulerPacketProfileRecursion |
| 180 | EulerPacketPointJets EulerPacketTimeProfile EulerParameterWordGevrey |
| 181 | EulerPacketCoarseMajorant EulerPacketPressure EulerPacketGraphHessian |
| 182 | EulerGraphPullback EulerTransversePacketPrimary EulerPeriodicProfile |
| 183 | EulerPacketInverseFlowGevrey EulerPacketPhysicalGevrey EulerGevrey |
| 184 | EulerLiftedGradientSpace EulerCylinderSobolevSpace |
| 185 | open scoped ContDiff |
| 186 | |
| 187 | variable {U : Type*} [NormedAddCommGroup U] [InnerProductSpace ℝ U] [CompleteSpace U] |
| 188 | |
| 189 | def initializedPressureHessianCost {D : Data U} {q : ℕ} {R₀ : ℝ} |
| 190 | (NB : EulerTransversePacketJoin.NormalBudget D q R₀) (R H0 Rc C : ℝ) : ℝ := |
| 191 | fastHessianCost (P := period) NB (4*R) (fixedVelocityGradeCost R H0 1)+ |
| 192 | 9*C*physicalFixedCost D Rc C (4*R) 1*sobolevEmbeddingConstant period 3* |
| 193 | (fixedVelocityGradeCost R H0 2+2) |
| 194 | |
| 195 | variable (M : EulerMeanPacketProvider.Data) (D : Data U) (hTime : M.T = D.T) |
| 196 | (τ : ℝ) (hτ : 0 < τ) (hτT : τ < D.T) (B : HistoryData (D.initial τ hτ hτT.le)) |
| 197 | (δ : ℝ) (hδ : 0 < δ) (ξ : U) (hs : tsupport innerCutoff ⊆ D.support) (α : ℝ) |
| 198 | |
| 199 | theorem initializedAngularPressure_smooth (t : ℝ) : |
| 200 | ContDiff ℝ ∞ (fun z => initializedAngularPressure D τ hτ hτT B δ hδ ξ hs α (t,z)) := by |
| 201 | have hq := scalar_smooth τ hτ hτT B (initialData D δ hδ (α • ξ) hs) t |
| 202 | simp only [initializedAngularPressure,pressureJet_angle] |
| 203 | change ContDiff ℝ ∞ (angularDerivative (fun y => |
| 204 | scalar τ hτ hτT B (initialData D δ hδ (α • ξ) hs) (t,y))) |
| 205 | exact angularDerivative_contDiff hq |
| 206 | |
| 207 | theorem initializedAngularPressure_second (t : Icc (0 : ℝ) D.T) (z : LiftTangent) : |
| 208 | angularDerivative (fun w => initializedAngularPressure D τ hτ hτT B δ hδ ξ hs α (t,w)) z = |
| 209 | EulerPacketPrimaryPressure.coefficient τ hτ hτT B ξ hs α t z.1 * deriv (profile δ) z.2 := by |
| 210 | have hq := scalar_smooth τ hτ hτT B (initialData D δ hδ (α • ξ) hs) t |
| 211 | simp only [initializedAngularPressure,pressureJet_angle] |
| 212 | change angularDerivative (angularDerivative (fun w => |
| 213 | scalar τ hτ hτT B (initialData D δ hδ (α • ξ) hs) (t,w))) z = _ |
| 214 | rw [angularSecond_eq_deriv hq] |
| 215 | exact EulerPacketPrimaryPressure.scalar_second_deriv τ hτ hτT B δ hδ ξ hs α t z.1 z.2 |
| 216 | |
| 217 | variable |
| 218 | (L : EulerTransversePacketJoin.Budget D τ hτ hτT B (Fin 4) 6) |
| 219 | (H : EulerTransversePacketPrimary.Budget L) |
| 220 | (NB : EulerTransversePacketJoin.NormalBudget D 6 L.R) |
| 221 | (W : EulerTransversePacketJoin.Budget.GradeGuards (P := period) L NB) |
| 222 | (LM : EulerMeanPacketProvider.Budget M 6 L.R) |
| 223 | (WM : EulerMeanPacketProvider.Budget.GradeGuards LM) |
| 224 | (BC : CoefficientBudget (joinedSourceCoefficientData period M D τ hτ hτT B hTime)) |
| 225 | (hRc : sobolevCoefficientRadius (Fin 4) BC.Rc ≤ L.R) (hcost : BC.termCost ≤ L.R) |
| 226 | (hδ1 : δ ≤ 1) (hα : 0 < α) (hR : wordRadius (Fin 4) δ ≤ L.R) |
| 227 | (WP : EulerTransversePacketPrimary.Budget.GradeGuards (P := period) H NB (wordCost (Fin 4) 6 δ*‖ξ‖)) |
| 228 | (S : Scales (Icc (0 : ℝ) M.T)) |
| 229 | (hgrowth : timeProfileChange S.growth hTime=α • L.fullProfile) |
| 230 | |
| 231 | include H NB W LM WM BC hRc hcost hδ1 hα hR WP hgrowth |
| 232 | |
| 233 | theorem initializedPressure_hessian_bound (N : ℕ) (hN : 1 ≤ N) (k : ℝ) (hk : 4 ≤ k) |
| 234 | (hbase : tailBase L.R S.H0 BC.termCost N ≤ k^(1/100 : ℝ)) |
| 235 | (X Y : Icc (0 : ℝ) D.T → Space → Space) |
| 236 | (hX : ∀ t x, HasFDerivAt (X t) (D.F.field t x) x) |
| 237 | (hXY : ∀ t x, X t (Y t x)=x) (hY : Continuous (Function.uncurry Y)) |
| 238 | (hdet : ∀ t x, (EulerPacketPiola.operatorMatrix (D.F.field t x)).det=1) |
| 239 | (t : Icc (0 : ℝ) D.T) (x : Space) : |
| 240 | ‖fderiv ℝ (gradient (fun y => initializedPressure M D τ hτ hτT B δ hδ ξ hs α N k⁻¹ |
| 241 | (t,(Y t y,k*⟪D.m₀,Y t y⟫_ℝ)))) x - |
| 242 | (EulerPacketPrimaryPressure.coefficient τ hτ hτT B ξ hs α t (Y t x) * |
| 243 | deriv (profile δ) (k*⟪D.m₀,Y t x⟫_ℝ)) • |
| 244 | rankOne ℝ (D.normal.field t (Y t x)) (D.normal.field t (Y t x))‖ ≤ |
| 245 | initializedPressureHessianCost NB L.R S.H0 L.Rc L.C₀/k := by |
| 246 | have hk0 : 0 < k := by linarith |
| 247 | have hr0 : 0 ≤ L.R := zero_le_one.trans L.radius_bounds.1 |
| 248 | let AF := initializedAngularPressureField M D hTime τ hτ hτT B δ hδ ξ hs α |
| 249 | L H NB W LM WM BC hRc hcost hδ1 hα hR WP S hgrowth |
| 250 | let RF := initializedCovectorRemainderField M D hTime τ hτ hτT B δ hδ ξ hs α |
| 251 | L H NB W LM WM BC hRc hcost hδ1 hα hR WP S hgrowth N hN k⁻¹ |
| 252 | let a : LiftTangent → ℝ := fun z => initializedAngularPressure D τ hτ hτT B δ hδ ξ hs α (t,z) |
| 253 | let J : Space → Space →L[ℝ] Space := fun y => D.FInv.field t (Y t y) |
| 254 | have hYd := continuousInverse_differentiable D X Y hX hXY hY |
| 255 | have hYder := continuousInverse_hasFDerivAt D X Y hX hXY hY |
| 256 | have hJ : DifferentiableAt ℝ J x := |
| 257 | ((D.FInv.smooth t).differentiable (by simp) (Y t x)).comp x (hYd t x) |
| 258 | have ha : ContDiff ℝ ∞ a := initializedAngularPressure_smooth D τ hτ hτT B δ hδ ξ hs α t |
| 259 | have hf := fastForce_hasFDerivAt a k hk0.ne' D.m₀ (Y t) J x (hYder t x) hJ |
| 260 | (ha.differentiable (by simp) _) |
| 261 | have hsecond : angularDerivative a (graphMap k D.m₀ (Y t x)) = |
| 262 | EulerPacketPrimaryPressure.coefficient τ hτ hτT B ξ hs α t (Y t x)* |
| 263 | deriv (profile δ) (k*⟪D.m₀,Y t x⟫_ℝ) := |
| 264 | initializedAngularPressure_second D τ hτ hτT B δ hδ ξ hs α t _ |
| 265 | have hn : transportedNormal D.m₀ J x = D.normal.field t (Y t x) := rfl |
| 266 | rw [hsecond,hn] at hf |
| 267 | have hRF := initializedCovectorRemainder_bound M D hTime τ hτ hτT B δ hδ ξ hs α |
| 268 | L H NB W LM WM BC hRc hcost hδ1 hα hR WP S hgrowth N hN k hk hbase |
| 269 | have hAF := initializedAngularPressure_bound M D hTime τ hτ hτT B δ hδ ξ hs α |
| 270 | L H NB W LM WM BC hRc hcost hδ1 hα hR WP S hgrowth |
| 271 | have hfast := fastHessianRemainder_bound NB |
| 272 | (initializedAngularPressure D τ hτ hτT B δ hδ ξ hs α) AF (4*L.R) |
| 273 | (fixedVelocityGradeCost L.R S.H0 1) (by positivity) |
| 274 | (fixedVelocityGradeCost_nonneg L.R S.H0 hr0 1) hAF k hk0 t (Y t) x (hYder t x) |
| 275 | (ha.differentiable (by simp) _) |
| 276 | have htail := physicalCovector_error_bound D RF (4*L.R) |
| 277 | (fixedVelocityGradeCost L.R S.H0 2+2) (by positivity) |
| 278 | (by have h := fixedVelocityGradeCost_nonneg L.R S.H0 hr0 2; linarith) |
| 279 | k (by linarith) hRF L.Rc L.C₀ L.Rc_nonneg L.C₀_nonneg hdet L.frame_bound |
| 280 | X Y hX hYd hXY t x |
| 281 | have htaild : DifferentiableAt ℝ (physicalCovector D RF k Y t) x := by |
| 282 | have hI := (adjoint.differentiableAt.comp x hJ) |
| 283 | have hR := (RF.raw_graph_contDiff t k D.m₀).differentiable (by simp) (Y t x) |
| 284 | have hRg := hR.comp x (hYd t x) |
| 285 | exact hI.clm_apply hRg |
| 286 | have he : gradient (fun y => initializedPressure M D τ hτ hτT B δ hδ ξ hs α N k⁻¹ |
| 287 | (t,(Y t y,k*⟪D.m₀,Y t y⟫_ℝ))) = |
| 288 | fastForce a k D.m₀ (Y t) J + physicalCovector D RF k Y t := by |
| 289 | funext y |
| 290 | exact initializedPressure_gradient_decomposition M D hTime τ hτ hτT B δ hδ ξ hs α |
| 291 | N k hk0.ne' t (Y t) y (hYder t y) |
| 292 | calc |
| 293 | _ = ‖fastHessianRemainder a k D.m₀ (Y t) J x + |
| 294 | fderiv ℝ (physicalCovector D RF k Y t) x‖ := by |
| 295 | rw [he,fderiv_add hf.differentiableAt htaild,hf.fderiv] |
| 296 | congr 1 |
| 297 | abel |
| 298 | _ ≤ _ := (norm_add_le _ _).trans ((add_le_add hfast htail).trans_eq (by |
| 299 | unfold initializedPressureHessianCost |
| 300 | ring)) |
| 301 | |
| 302 | end EulerPacketTerminalDatum |