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.TransversePacketHistoryPressure |
| 2 | import Euler.TransversePacketPressureParity |
| 3 | import Euler.TransversePacketJoinedCorrector |
| 4 | import Euler.CylinderLocalSupport |
| 5 | import Euler.CylinderCorrectorMeanZero |
| 6 | import Euler.PacketCylinderTimeParity |
| 7 | import Euler.TransversePacketJoinedField |
| 8 | import Euler.TransversePacketJets |
| 9 | import Euler.TransversePacketJoinedPressure |
| 10 | import Euler.TransversePacketHomogeneity |
| 11 | import Euler.PacketCylinderFieldUnique |
| 12 | |
| 13 | /-! |
| 14 | # Total raw-field provider for a positive history time |
| 15 | |
| 16 | Every admissible input is sent to the constructed history/forward solution. |
| 17 | Its raw PDE, tangent constraint, parity, actual Field witnesses, true time |
| 18 | derivative, pressure gradient and literal curl corrector are all exported. |
| 19 | -/ |
| 20 | |
| 21 | /-! ## From `Euler/TransversePacketHistoryParity.lean` |
| 22 | |
| 23 | The text of `Euler/TransversePacketHistoryParity.lean`, folded into this file, which was its only importer. -/ |
| 24 | |
| 25 | section |
| 26 | |
| 27 | /-! Joint parity of the actual source history inverse and its normalized pressure. -/ |
| 28 | |
| 29 | noncomputable section |
| 30 | |
| 31 | namespace EulerTransversePacketProvider.HistoryData |
| 32 | |
| 33 | open Set ContinuousLinearMap InnerProductSpace EulerSmoothLimit EulerLiftedGradientSpace |
| 34 | EulerLpCylinderTranslation EulerLpCylinderPaths EulerCylinderSmoothOrbit EulerCylinderFieldReflection |
| 35 | EulerPacketProfileRecursion EulerCylinderScalarPrimitive EulerMetricTransport |
| 36 | |
| 37 | variable {P : ℝ} [Fact (0 < P)] |
| 38 | {U : Type*} [NormedAddCommGroup U] [InnerProductSpace ℝ U] [CompleteSpace U] |
| 39 | {D : Data U} (B : HistoryData D) {raw : VectorField} (G : Forcing P D raw) |
| 40 | (hF : ∀ t x, D.F.field t (-x) = D.F.field t x) |
| 41 | (hM : ∀ t x, D.M.field t (-x) = D.M.field t x) |
| 42 | (hH : ∀ t x, B.H.field t (-x) = B.H.field t x) |
| 43 | (hraw : ∀ (t : Icc (0 : ℝ) D.T) x θ, raw (t,(-x,-θ)) = -raw (t,(x,θ))) |
| 44 | |
| 45 | include hF hM hH hraw |
| 46 | |
| 47 | theorem coordinatePath_reflection_neg (t : Icc (0 : ℝ) D.T) : |
| 48 | reflection P (B.coordinatePath G t) = -B.coordinatePath G t := |
| 49 | B.coefficients.velocityPath_odd P (D.frame_even hF) (D.frameDerivative_even hF hM) hH |
| 50 | (forcingPath G) (G.path_reflection_neg hraw) t |
| 51 | |
| 52 | theorem velocityPath_reflection_neg (t : Icc (0 : ℝ) D.T) : |
| 53 | reflection P (B.velocityPath G t) = -B.velocityPath G t := |
| 54 | B.coefficients.physicalVelocity_odd P (D.frame_even hF) (D.frameDerivative_even hF hM) hH |
| 55 | (forcingPath G) (G.path_reflection_neg hraw) t |
| 56 | |
| 57 | theorem field_odd (t : Icc (0 : ℝ) D.T) (x : Space) (θ : ℝ) : |
| 58 | B.field G t (-x,((-θ : ℝ) : AddCircle P)) = -B.field G t (x,(θ : AddCircle P)) := by |
| 59 | have he := representative_of_reflection P (B.velocityPath G t) (B.field G t) |
| 60 | (B.field_ae G t) (smoothField_continuous P _ (B.field_smooth G t)) (-1) |
| 61 | (by simpa only [neg_one_smul] using B.velocityPath_reflection_neg G hF hM hH hraw t) |
| 62 | (x,(θ : AddCircle P)) |
| 63 | simpa only [Prod.neg_mk,AddCircle.coe_neg,neg_one_smul] using he |
| 64 | |
| 65 | theorem normalResidual_odd (t : Icc (0 : ℝ) D.T) (x : Space) (θ : ℝ) : |
| 66 | B.normalResidual G t (-x,((-θ : ℝ) : AddCircle P)) = |
| 67 | -B.normalResidual G t (x,(θ : AddCircle P)) := by |
| 68 | have hf : forceField G t (-x,((-θ : ℝ) : AddCircle P)) = |
| 69 | -forceField G t (x,(θ : AddCircle P)) := by |
| 70 | change pointField P (forcingPath G) G.path_orbit t (-x,((-θ : ℝ) : AddCircle P)) = |
| 71 | -pointField P (forcingPath G) G.path_orbit t (x,(θ : AddCircle P)) |
| 72 | rw [← G.raw_eq t (-x) (-θ),← G.raw_eq t x θ] |
| 73 | exact hraw t x θ |
| 74 | change (⟪D.normal.field t (-x),forceField G t (-x,((-θ : ℝ) : AddCircle P))⟫_ℝ- |
| 75 | 2*⟪D.normal.field t (-x),D.M.field t (-x) (B.field G t (-x,((-θ : ℝ) : AddCircle P)))⟫_ℝ)/ |
| 76 | ‖D.normal.field t (-x)‖^2 = _ |
| 77 | rw [D.normal_even hF,hM,hf,B.field_odd G hF hM hH hraw] |
| 78 | simp only [map_neg,inner_neg_right,normalResidual] |
| 79 | ring |
| 80 | |
| 81 | theorem pressureField_even (t : Icc (0 : ℝ) D.T) (x : Space) (θ : ℝ) : |
| 82 | B.pressureField G t (-x,((-θ : ℝ) : AddCircle P)) = |
| 83 | B.pressureField G t (x,(θ : AddCircle P)) := |
| 84 | classicalPrimitive_joint_even P (B.normalResidual G t) (B.normalResidual_continuous G t) |
| 85 | (B.normalResidual_mean_zero G t) (B.normalResidual_odd G hF hM hH hraw t) x θ |
| 86 | |
| 87 | end EulerTransversePacketProvider.HistoryData |
| 88 | end |
| 89 | |
| 90 | end |
| 91 | |
| 92 | /-! ## From `Euler/TransversePacketJoinedCorrectorSupport.lean` |
| 93 | |
| 94 | The text of `Euler/TransversePacketJoinedCorrectorSupport.lean`, folded into this file, which was its only importer. -/ |
| 95 | |
| 96 | section |
| 97 | |
| 98 | /-! Support and zero angular mean of the literal joined corrector and its actual time derivative. -/ |
| 99 | |
| 100 | noncomputable section |
| 101 | |
| 102 | namespace EulerTransversePacketJoin |
| 103 | |
| 104 | open Set ContinuousLinearMap EulerSmoothLimit EulerLiftedGradientSpace |
| 105 | EulerLpCylinderTranslation EulerLpCylinderPaths EulerCylinderSmoothOrbit EulerCylinderLocalSupport |
| 106 | EulerCylinderAngleAverage EulerCylinderCorrectorMeanZero EulerPacketProfileRecursion |
| 107 | EulerTransversePacketProvider EulerElapsedTimePathGluing |
| 108 | |
| 109 | variable {P : ℝ} [Fact (0 < P)] |
| 110 | {U : Type*} [NormedAddCommGroup U] [InnerProductSpace ℝ U] [CompleteSpace U] |
| 111 | {D : Data U} (τ : ℝ) (hτ : 0 < τ) (hτT : τ < D.T) |
| 112 | (B : HistoryData (D.initial τ hτ hτT.le)) {raw : VectorField} (G : Forcing P D raw) |
| 113 | |
| 114 | theorem potentialPath_supported (t : Icc (0 : ℝ) D.T) : |
| 115 | potentialPath τ hτ hτT B G t ∈ Supported P Space D.support D.support_measurable := |
| 116 | EulerCylinderLocalSupport.potentialPath_supported P D.support D.support_measurable |
| 117 | (velocityPath τ hτ hτT B G) D.potentialCoefficientPath (velocityPath_supported τ hτ hτT B G) t |
| 118 | |
| 119 | theorem correctorPath_supported (t : Icc (0 : ℝ) D.T) : |
| 120 | correctorPath τ hτ hτT B G t ∈ Supported P Space D.support D.support_measurable := |
| 121 | slowCurlPath_supported P D.support D.support_measurable (potentialPath τ hτ hτT B G) |
| 122 | (potentialPath_orbit τ hτ hτT B G) D.FInv.field D.support_compact.isClosed |
| 123 | (potentialPath_supported τ hτ hτT B G) t |
| 124 | |
| 125 | theorem corrector_zero_outside (t : ℝ) (x : Space) (hx : x ∉ D.support) (θ : ℝ) : |
| 126 | corrector τ hτ hτT B G (t,(x,θ)) = 0 := |
| 127 | pointField_zero_outside P D.support D.support_measurable (correctorPath τ hτ hτT B G) |
| 128 | (correctorPath_orbit τ hτ hτT B G) D.support_compact.isClosed |
| 129 | (correctorPath_supported τ hτ hτT B G) (D.clamp t) (x,(θ : AddCircle P)) hx |
| 130 | |
| 131 | end EulerTransversePacketJoin |
| 132 | end |
| 133 | |
| 134 | end |
| 135 | |
| 136 | /-! ## From `Euler/TransversePacketJoinedParity.lean` |
| 137 | |
| 138 | The text of `Euler/TransversePacketJoinedParity.lean`, folded into this file, which was its only importer. -/ |
| 139 | |
| 140 | section |
| 141 | |
| 142 | /-! Joint parity of the complete constructed high inverse, pressure and actual corrector. -/ |
| 143 | |
| 144 | noncomputable section |
| 145 | |
| 146 | namespace EulerTransversePacketJoin |
| 147 | |
| 148 | open Set ContinuousLinearMap EulerSmoothLimit EulerLiftedGradientSpace |
| 149 | EulerLpCylinderTranslation EulerLpCylinderPaths EulerCylinderFieldReflection |
| 150 | EulerPacketProfileRecursion EulerTransversePacketProvider EulerTimeIntervalRestriction |
| 151 | EulerElapsedTimePathGluing |
| 152 | |
| 153 | variable {P : ℝ} [Fact (0 < P)] |
| 154 | {U : Type*} [NormedAddCommGroup U] [InnerProductSpace ℝ U] [CompleteSpace U] |
| 155 | {D : Data U} (τ : ℝ) (hτ : 0 < τ) (hτT : τ < D.T) |
| 156 | (B : HistoryData (D.initial τ hτ hτT.le)) {raw : VectorField} (G : Forcing P D raw) |
| 157 | (hSym : ∀ x, -x ∈ D.support ↔ x ∈ D.support) |
| 158 | (hF : ∀ t x, D.F.field t (-x) = D.F.field t x) |
| 159 | (hM : ∀ t x, D.M.field t (-x) = D.M.field t x) |
| 160 | (hH : ∀ t x, B.H.field t (-x) = B.H.field t x) |
| 161 | (hraw : ∀ (t : Icc (0 : ℝ) D.T) x θ, raw (t,(-x,-θ)) = -raw (t,(x,θ))) |
| 162 | |
| 163 | include hF hM hH hraw |
| 164 | |
| 165 | theorem forwardInitial_reflection_neg : |
| 166 | reflection P ((forwardInitial τ hτ hτT B G).value : CylinderL2 P U) = |
| 167 | -((forwardInitial τ hτ hτT B G).value : CylinderL2 P U) := |
| 168 | B.coordinatePath_reflection_neg (G.initial τ hτ hτT.le) |
| 169 | (fun t x => hF (initialInclusion D.T τ hτT.le t) x) |
| 170 | (fun t x => hM (initialInclusion D.T τ hτT.le t) x) hH |
| 171 | (fun t x θ => hraw (initialInclusion D.T τ hτT.le t) x θ) ⟨τ,hτ.le,le_rfl⟩ |
| 172 | |
| 173 | include hSym |
| 174 | |
| 175 | theorem futureVelocity_reflection_neg (t : Icc (0 : ℝ) (D.T-τ)) : |
| 176 | reflection P (futureVelocity τ hτ hτT B G t) = -futureVelocity τ hτ hτT B G t := |
| 177 | (G.tail τ hτ.le hτT).velocityPath_reflection_neg (forwardInitial τ hτ hτT B G) hSym |
| 178 | (fun s x => hF (tailInclusion D.T τ hτ.le s) x) |
| 179 | (fun s x => hM (tailInclusion D.T τ hτ.le s) x) |
| 180 | (fun s x θ => hraw (tailInclusion D.T τ hτ.le s) x θ) |
| 181 | (forwardInitial_reflection_neg τ hτ hτT B G hF hM hH hraw) t |
| 182 | |
| 183 | theorem velocityPath_reflection_neg (t : Icc (0 : ℝ) D.T) : |
| 184 | reflection P (velocityPath τ hτ hτT B G t) = -velocityPath τ hτ hτT B G t := by |
| 185 | apply join_mem D.T τ hτ.le hτT.le _ _ (velocity_match τ hτ hτT B G) |
| 186 | {u | reflection P u = -u} _ _ t |
| 187 | · exact B.velocityPath_reflection_neg (G.initial τ hτ hτT.le) |
| 188 | (fun s x => hF (initialInclusion D.T τ hτT.le s) x) |
| 189 | (fun s x => hM (initialInclusion D.T τ hτT.le s) x) hH |
| 190 | (fun s x θ => hraw (initialInclusion D.T τ hτT.le s) x θ) |
| 191 | · exact futureVelocity_reflection_neg τ hτ hτT B G hSym hF hM hH hraw |
| 192 | |
| 193 | theorem vector_odd (t : Icc (0 : ℝ) D.T) (x : Space) (θ : ℝ) : |
| 194 | vector τ hτ hτT B G (t,(-x,-θ)) = -vector τ hτ hτT B G (t,(x,θ)) := |
| 195 | (vectorField τ hτ hτT B G).raw_odd_of_reflection_neg t |
| 196 | (velocityPath_reflection_neg τ hτ hτT B G hSym hF hM hH hraw t) x θ |
| 197 | |
| 198 | theorem scalar_even (t : Icc (0 : ℝ) D.T) (x : Space) (θ : ℝ) : |
| 199 | scalar τ hτ hτT B G (t,(-x,-θ)) = scalar τ hτ hτT B G (t,(x,θ)) := by |
| 200 | by_cases ht : (t : ℝ) ≤ τ |
| 201 | · let th : Icc (0 : ℝ) τ := ⟨t,t.property.1,ht⟩ |
| 202 | rw [scalar_left τ hτ hτT B G th (-x) (-θ),scalar_left τ hτ hτT B G th x θ] |
| 203 | exact B.pressureField_even (G.initial τ hτ hτT.le) |
| 204 | (fun s x => hF (initialInclusion D.T τ hτT.le s) x) |
| 205 | (fun s x => hM (initialInclusion D.T τ hτT.le s) x) hH |
| 206 | (fun s x θ => hraw (initialInclusion D.T τ hτT.le s) x θ) th x θ |
| 207 | · let tr : Icc τ D.T := ⟨t,(not_le.mp ht).le,t.property.2⟩ |
| 208 | let tf : Icc (0 : ℝ) (D.T-τ) := |
| 209 | ⟨(t : ℝ)-τ,sub_nonneg.mpr tr.property.1,sub_le_sub_right t.property.2 τ⟩ |
| 210 | rw [scalar_right τ hτ hτT B G tr (-x) (-θ),scalar_right τ hτ hτT B G tr x θ] |
| 211 | exact (G.tail τ hτ.le hτT).scalar_even (forwardInitial τ hτ hτT B G) hSym |
| 212 | (fun s x => hF (tailInclusion D.T τ hτ.le s) x) |
| 213 | (fun s x => hM (tailInclusion D.T τ hτ.le s) x) |
| 214 | (fun s x θ => hraw (tailInclusion D.T τ hτ.le s) x θ) |
| 215 | (forwardInitial_reflection_neg τ hτ hτT B G hF hM hH hraw) tf x θ |
| 216 | |
| 217 | theorem curlCorrector_odd (t : Icc (0 : ℝ) D.T) (x : Space) (θ : ℝ) : |
| 218 | D.curlCorrector P (vector τ hτ hτT B G) (t,(-x,-θ)) = |
| 219 | -D.curlCorrector P (vector τ hτ hτT B G) (t,(x,θ)) := by |
| 220 | apply D.curlCorrector_odd P (vector τ hτ hτT B G) t |
| 221 | · simpa only [Data.clamp_coe] using D.inverse_even hF t |
| 222 | · exact (vectorField τ hτ hτT B G).raw_smooth t |
| 223 | · exact vector_periodic τ hτ hτT B G t |
| 224 | · exact vector_mean_zero τ hτ hτT B G t |
| 225 | · exact vector_odd τ hτ hτT B G hSym hF hM hH hraw t |
| 226 | |
| 227 | end EulerTransversePacketJoin |
| 228 | end |
| 229 | |
| 230 | end |
| 231 | |
| 232 | /-! ## From `Euler/TransversePacketJoinedEquation.lean` |
| 233 | |
| 234 | The text of `Euler/TransversePacketJoinedEquation.lean`, folded into this file, which was its only importer. -/ |
| 235 | |
| 236 | section |
| 237 | |
| 238 | /-! The complete constructed transverse path satisfies the literal packet equation on the whole closed interval. -/ |
| 239 | |
| 240 | noncomputable section |
| 241 | |
| 242 | namespace EulerTransversePacketJoin |
| 243 | |
| 244 | open Set ContinuousLinearMap EulerSmoothLimit EulerLiftedGradientSpace EulerLpCylinderTranslation |
| 245 | EulerCylinderSmoothOrbit EulerCylinderScalarPrimitive EulerPacketProfileRecursion |
| 246 | EulerTransversePacketProvider EulerPacketCylinderField EulerLpCylinderPaths |
| 247 | EulerPacketPointJets EulerMetricTransport EulerTimeIntervalRestriction |
| 248 | open scoped ContDiff |
| 249 | |
| 250 | variable {P : ℝ} [Fact (0 < P)] |
| 251 | {U : Type*} [NormedAddCommGroup U] [InnerProductSpace ℝ U] [CompleteSpace U] |
| 252 | {D : Data U} (τ : ℝ) (hτ : 0 < τ) (hτT : τ < D.T) |
| 253 | (B : HistoryData (D.initial τ hτ hτT.le)) {raw : VectorField} (G : Forcing P D raw) |
| 254 | |
| 255 | theorem scalar_smooth (t : ℝ) : ContDiff ℝ ∞ (fun y : Space × ℝ => scalar τ hτ hτT B G (t,y)) := |
| 256 | coverField_contDiff P _ (scalarPointField_smooth P (pressurePath τ hτ hτT B G) |
| 257 | (pressurePath_orbit τ hτ hτT B G) (D.clamp t)) |
| 258 | |
| 259 | /-- The complete actual high field and normalized pressure satisfy (11), |
| 260 | including at the history/forward junction. -/ |
| 261 | theorem equation (t : Icc (0 : ℝ) D.T) (x : Space) (θ : ℝ) : |
| 262 | vectorDerivative τ hτ hτT B G (t,(x,θ))+ |
| 263 | D.strain (t,(x,θ)) (vector τ hτ hτT B G (t,(x,θ)))+ |
| 264 | deriv (fun s => scalar τ hτ hτT B G (t,(x,s))) θ • D.normalField (t,(x,θ)) = raw (t,(x,θ)) := by |
| 265 | by_cases ht : (t : ℝ) ≤ τ |
| 266 | · let th : Icc (0 : ℝ) τ := ⟨t,t.property.1,ht⟩ |
| 267 | have hs : (fun s => scalar τ hτ hτT B G (t,(x,s))) = |
| 268 | fun s : ℝ => B.pressureField (G.initial τ hτ hτT.le) th (x,(s : AddCircle P)) := |
| 269 | funext (fun s => scalar_left τ hτ hτT B G th x s) |
| 270 | have hM : D.strain (t,(x,θ)) = (D.initial τ hτ hτT.le).M.field th x := by |
| 271 | simp only [Data.strain,Data.clamp_coe] |
| 272 | rfl |
| 273 | have hm : D.normalField (t,(x,θ)) = (D.initial τ hτ hτT.le).normal.field th x := by |
| 274 | simp only [Data.normalField,Data.clamp_coe] |
| 275 | rfl |
| 276 | rw [vectorDerivative_left τ hτ hτT B G th x θ,vector_left τ hτ hτT B G th x θ,hs,hM,hm] |
| 277 | exact B.field_pressure_equation (G.initial τ hτ hτT.le) th x θ |
| 278 | · let tr : Icc τ D.T := ⟨t,(not_le.mp ht).le,t.property.2⟩ |
| 279 | let tf : Icc (0 : ℝ) (D.T-τ) := |
| 280 | ⟨(t : ℝ)-τ,sub_nonneg.mpr tr.property.1,sub_le_sub_right t.property.2 τ⟩ |
| 281 | have heT : tailInclusion D.T τ hτ.le tf = t := by |
| 282 | apply Subtype.ext |
| 283 | change τ+((t : ℝ)-τ) = t |
| 284 | ring |
| 285 | have htf : (D.tail τ hτ.le hτT).clamp tf = tf := |
| 286 | (D.tail τ hτ.le hτT).clamp_coe tf |
| 287 | have hs : (fun s => scalar τ hτ hτT B G (t,(x,s))) = |
| 288 | fun s => (G.tail τ hτ.le hτT).scalar (forwardInitial τ hτ hτT B G) (tf,(x,s)) := |
| 289 | funext (fun s => scalar_right τ hτ hτT B G tr x s) |
| 290 | have hM : D.strain (t,(x,θ)) = (D.tail τ hτ.le hτT).strain (tf,(x,θ)) := by |
| 291 | simp only [Data.strain,Data.clamp_coe,htf] |
| 292 | change D.M.field t x = D.M.field (tailInclusion D.T τ hτ.le tf) x |
| 293 | rw [heT] |
| 294 | have hm : D.normalField (t,(x,θ)) = (D.tail τ hτ.le hτT).normalField (tf,(x,θ)) := by |
| 295 | simp only [Data.normalField,Data.clamp_coe,htf] |
| 296 | change D.normal.field t x = D.normal.field (tailInclusion D.T τ hτ.le tf) x |
| 297 | rw [heT] |
| 298 | have hr : shiftedRaw τ raw (tf,(x,θ)) = raw (t,(x,θ)) := by |
| 299 | change raw (τ+((t : ℝ)-τ),(x,θ)) = raw (t,(x,θ)) |
| 300 | rw [show τ+((t : ℝ)-τ) = t by ring] |
| 301 | rw [vectorDerivative_right τ hτ hτT B G tr x θ,vector_right τ hτ hτT B G tr x θ,hs,hM,hm,← hr] |
| 302 | exact (G.tail τ hτ.le hτT).equation (forwardInitial τ hτ hτT B G) tf x θ |
| 303 | |
| 304 | /-- The literal sliced-jet equation consumed by the packet grade recursion. -/ |
| 305 | theorem jet_equation (t : Icc (0 : ℝ) D.T) (x : Space) (θ : ℝ) : |
| 306 | linearPart (D.strain (t,(x,θ))) |
| 307 | (slicedJet (Icc (0 : ℝ) D.T) (vector τ hτ hτT B G) (t,(x,θ)))+ |
| 308 | fastPressure (D.normalField (t,(x,θ))) (pressureJet (scalar τ hτ hτT B G) (t,(x,θ))) = raw (t,(x,θ)) := by |
| 309 | change (slicedJet (Icc (0 : ℝ) D.T) (vector τ hτ hτT B G) (t,(x,θ))).2 timeDirection+ |
| 310 | D.strain (t,(x,θ)) (vector τ hτ hτT B G (t,(x,θ)))+_ = _ |
| 311 | rw [(vectorField τ hτ hτT B G).slicedJet_temporal D.T_pos (vectorDerivativeField τ hτ hτT B G) |
| 312 | (vectorField_time τ hτ hτT B G),fastPressure_pressureJet _ (scalar τ hτ hτT B G) t x θ |
| 313 | ((scalar_smooth τ hτ hτT B G t).differentiable (by simp) (x,θ))] |
| 314 | exact equation τ hτ hτT B G t x θ |
| 315 | |
| 316 | end EulerTransversePacketJoin |
| 317 | end |
| 318 | |
| 319 | end |
| 320 | |
| 321 | noncomputable section |
| 322 | |
| 323 | namespace EulerTransversePacketProvider.Forcing |
| 324 | |
| 325 | open EulerLpCylinderPaths |
| 326 | |
| 327 | variable {P : ℝ} [Fact (0 < P)] |
| 328 | {U : Type*} [NormedAddCommGroup U] [InnerProductSpace ℝ U] |
| 329 | {D : Data U} {raw : EulerPacketProfileRecursion.VectorField} |
| 330 | |
| 331 | /-- The genuine cylinder forcing path is determined by its prescribed raw field. -/ |
| 332 | theorem path_unique (G H : Forcing P D raw) : G.path = H.path := by |
| 333 | have he := G.forcingField.path_eq_of_same_raw H.forcingField |
| 334 | have hp := congrArg (projectPath P D.support D.support_measurable) he |
| 335 | simpa only [forcingField,project_include] using hp |
| 336 | |
| 337 | end EulerTransversePacketProvider.Forcing |
| 338 | |
| 339 | namespace EulerTransversePacketJoin |
| 340 | |
| 341 | open Set ContinuousLinearMap InnerProductSpace EulerSmoothLimit EulerLiftedGradientSpace |
| 342 | EulerLpCylinderTranslation EulerLpCylinderPaths EulerCylinderSmoothOrbit |
| 343 | EulerPacketProfileRecursion EulerTransversePacketProvider EulerTimeIntervalRestriction |
| 344 | EulerPacketCylinderField EulerSourceNormalResidualBounds EulerPacketPointJets |
| 345 | |
| 346 | variable {P : ℝ} [Fact (0 < P)] |
| 347 | {U : Type*} [NormedAddCommGroup U] [InnerProductSpace ℝ U] [CompleteSpace U] |
| 348 | {D : Data U} (τ : ℝ) (hτ : 0 < τ) (hτT : τ < D.T) |
| 349 | (B : HistoryData (D.initial τ hτ hτT.le)) {raw : VectorField} (G H : Forcing P D raw) |
| 350 | |
| 351 | theorem vector_independent_of_witness : vector τ hτ hτT B G = vector τ hτ hτT B H := by |
| 352 | have hv : velocityPath τ hτ hτT B G = velocityPath τ hτ hτT B H := by |
| 353 | simpa only [one_smul] using velocityPath_eq_smul τ hτ hτT B H G 1 |
| 354 | (by simpa only [one_smul] using G.path_unique H) |
| 355 | funext z |
| 356 | exact congrFun (pointField_eq_of_slice_eq P _ _ (velocityPath_orbit τ hτ hτT B G) |
| 357 | (velocityPath_orbit τ hτ hτT B H) (D.clamp z.1) (D.clamp z.1) |
| 358 | (congrArg (fun p => p (D.clamp z.1)) hv)) (z.2.1,(z.2.2 : AddCircle P)) |
| 359 | |
| 360 | theorem scalar_independent_of_witness : scalar τ hτ hτT B G = scalar τ hτ hτT B H := by |
| 361 | have hv : velocityPath τ hτ hτT B G = velocityPath τ hτ hτT B H := by |
| 362 | simpa only [one_smul] using velocityPath_eq_smul τ hτ hτT B H G 1 |
| 363 | (by simpa only [one_smul] using G.path_unique H) |
| 364 | have hp : pressurePath τ hτ hτT B G = pressurePath τ hτ hτT B H := by |
| 365 | rw [pressurePath_eq_source,pressurePath_eq_source,hv] |
| 366 | exact congrArg (fun p => sourcePressure P D.M D.normal D.normalLower D.normalLower_pos D.normal_lower |
| 367 | (includePath P D.support D.support_measurable p) (velocityPath τ hτ hτT B H)) (G.path_unique H) |
| 368 | funext z |
| 369 | exact congrFun (scalarPointField_eq_of_slice_eq P _ _ (pressurePath_orbit τ hτ hτT B G) |
| 370 | (pressurePath_orbit τ hτ hτT B H) (D.clamp z.1) (D.clamp z.1) |
| 371 | (congrArg (fun p => p (D.clamp z.1)) hp)) (z.2.1,(z.2.2 : AddCircle P)) |
| 372 | |
| 373 | theorem vector_tangent (t : Set.Icc (0 : ℝ) D.T) (x : Space) (θ : ℝ) : |
| 374 | ⟪D.normalField (t,(x,θ)),vector τ hτ hτT B G (t,(x,θ))⟫_ℝ = 0 := by |
| 375 | by_cases ht : (t : ℝ) ≤ τ |
| 376 | · let th : Icc (0 : ℝ) τ := ⟨t,t.property.1,ht⟩ |
| 377 | rw [vector_left τ hτ hτT B G th x θ] |
| 378 | simp only [Data.normalField,Data.clamp_coe] |
| 379 | change ⟪(D.initial τ hτ hτT.le).normal.field th x, |
| 380 | B.field (G.initial τ hτ hτT.le) th (x,(θ : AddCircle P))⟫_ℝ = 0 |
| 381 | exact B.field_tangent (G.initial τ hτ hτT.le) th (x,(θ : AddCircle P)) |
| 382 | · let tr : Icc τ D.T := ⟨t,(not_le.mp ht).le,t.property.2⟩ |
| 383 | let tf : Icc (0 : ℝ) (D.tail τ hτ.le hτT).T := |
| 384 | ⟨(t : ℝ)-τ,sub_nonneg.mpr tr.property.1,sub_le_sub_right t.property.2 τ⟩ |
| 385 | have he : tailInclusion D.T τ hτ.le tf = t := by |
| 386 | apply Subtype.ext |
| 387 | change τ+((t : ℝ)-τ) = t |
| 388 | ring |
| 389 | have hm : (D.tail τ hτ.le hτT).normalField (tf,(x,θ)) = D.normalField (t,(x,θ)) := by |
| 390 | simp only [Data.normalField,Data.clamp_coe] |
| 391 | change D.normal.field (tailInclusion D.T τ hτ.le tf) x = _ |
| 392 | rw [he] |
| 393 | rw [vector_right τ hτ hτT B G tr x θ,← hm] |
| 394 | exact (G.tail τ hτ.le hτT).vector_tangent (forwardInitial τ hτ hτT B G) tf x θ |
| 395 | |
| 396 | /-- The total high operator, backed by the unique genuine solution on admissible inputs. -/ |
| 397 | def highSolve (raw : VectorField) : VectorField × ScalarField := by |
| 398 | classical |
| 399 | exact if h : Nonempty (Forcing P D raw) then |
| 400 | (vector τ hτ hτT B (Classical.choice h),scalar τ hτ hτT B (Classical.choice h)) |
| 401 | else (0,0) |
| 402 | |
| 403 | theorem highSolve_of_admissible (h : Nonempty (Forcing P D raw)) : |
| 404 | highSolve (P := P) τ hτ hτT B raw = |
| 405 | (vector τ hτ hτT B (Classical.choice h),scalar τ hτ hτT B (Classical.choice h)) := by |
| 406 | simp only [highSolve,dite_eq_left h] |
| 407 | |
| 408 | theorem highSolve_eq : highSolve (P := P) τ hτ hτT B raw = |
| 409 | (vector τ hτ hτT B G,scalar τ hτ hτT B G) := by |
| 410 | rw [highSolve_of_admissible τ hτ hτT B ⟨G⟩] |
| 411 | exact Prod.ext (vector_independent_of_witness τ hτ hτT B _ G) |
| 412 | (scalar_independent_of_witness τ hτ hτT B _ G) |
| 413 | |
| 414 | variable (h : Nonempty (Forcing P D raw)) |
| 415 | |
| 416 | include h in |
| 417 | theorem highSolve_equation (t : Icc (0 : ℝ) D.T) (x : Space) (θ : ℝ) : |
| 418 | linearPart (D.strain (t,(x,θ))) |
| 419 | (slicedJet (Icc (0 : ℝ) D.T) (highSolve (P := P) τ hτ hτT B raw).1 (t,(x,θ)))+ |
| 420 | fastPressure (D.normalField (t,(x,θ))) |
| 421 | (pressureJet (highSolve (P := P) τ hτ hτT B raw).2 (t,(x,θ))) = raw (t,(x,θ)) := by |
| 422 | rw [highSolve_of_admissible τ hτ hτT B h] |
| 423 | exact jet_equation τ hτ hτT B (Classical.choice h) t x θ |
| 424 | |
| 425 | end EulerTransversePacketJoin |