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 NavierStokes.CommonCoverClass |
| 2 | |
| 3 | /-! |
| 4 | # Compatibility of the actual copy-path solve with a common-cover change |
| 5 | |
| 6 | The native slot is held fixed while the common cover is refined. Sources |
| 7 | are pulled back along the covering map. Equality is proved first for the |
| 8 | actual coefficient/forcing paths and then for the constructed Volterra |
| 9 | inverse; no native periodicity of an inhomogeneous solution is assumed. |
| 10 | -/ |
| 11 | |
| 12 | noncomputable section |
| 13 | |
| 14 | namespace NavierStokes.CopySolveCompatibility |
| 15 | |
| 16 | open Set Function Filter |
| 17 | open scoped ContDiff Topology BigOperators |
| 18 | open TorusInverse CommonCoverSolve |
| 19 | |
| 20 | theorem coverPower_add (d k : ℕ) (Y : Plane) : |
| 21 | coverPower (d + k) Y = coverPower d (coverPower k Y) := by |
| 22 | simp only [coverPower_apply, pow_add, _root_.mul_apply_eq_comp] |
| 23 | |
| 24 | noncomputable def refineGeometry (g : Geometry) (k : ℕ) : Geometry := |
| 25 | { g with gap := g.gap + k } |
| 26 | |
| 27 | theorem coordinates_refine (g : Geometry) (k : ℕ) (j : Frequency) (Y : Plane) : |
| 28 | (refineGeometry g k).coordinates j Y = g.coordinates j (coverPower k Y) := by |
| 29 | simp only [Geometry.coordinates, refineGeometry, coverPower_add] |
| 30 | |
| 31 | theorem point_refine (g : Geometry) (k : ℕ) (j : Frequency) (z : Plane) : |
| 32 | coverPower k ((refineGeometry g k).point j z) = g.point j z := by |
| 33 | apply (coverPower g.gap).injective |
| 34 | change coverPower g.gap (coverPower k ((coverPower (g.gap + k)).symm _)) = |
| 35 | coverPower g.gap ((coverPower g.gap).symm _) |
| 36 | rw [← coverPower_add, ContinuousLinearEquiv.apply_symm_apply, |
| 37 | ContinuousLinearEquiv.apply_symm_apply] |
| 38 | rfl |
| 39 | |
| 40 | theorem path_refine (g : Geometry) (k : ℕ) (j : Frequency) (Y : Plane) (s : ℝ) : |
| 41 | coverPower k ((refineGeometry g k).path j Y s) = g.path j (coverPower k Y) s := by |
| 42 | simp only [Geometry.path, coordinates_refine, point_refine] |
| 43 | |
| 44 | /-- This includes cutoff indicators and copy envelopes, with no regularity |
| 45 | assumption on the native function. -/ |
| 46 | theorem native_copy_sum_refine {E : Type} [NormedAddCommGroup E] (g : Geometry) (k : ℕ) |
| 47 | (f : Plane → E) (Y : Plane) : |
| 48 | (∑' j : Frequency, f ((refineGeometry g k).coordinates j Y)) = |
| 49 | ∑' j : Frequency, f (g.coordinates j (coverPower k Y)) := by |
| 50 | apply tsum_congr |
| 51 | intro j |
| 52 | rw [coordinates_refine] |
| 53 | |
| 54 | section Paths |
| 55 | |
| 56 | variable {P Q V E : Type} |
| 57 | [NormedAddCommGroup V] [NormedSpace ℝ V] |
| 58 | [NormedAddCommGroup E] [NormedSpace ℝ E] |
| 59 | |
| 60 | /-- Input data transported through a slow-parameter map and a refinement of |
| 61 | the common cover. All native coefficients retain their native arguments. -/ |
| 62 | noncomputable def transformData (d : LinearData P V E) (φ : Q → P) (k : ℕ) : |
| 63 | LinearData Q V E where |
| 64 | coefficient z := d.coefficient (φ z.1, z.2) |
| 65 | forcingMap z := d.forcingMap (φ z.1, z.2) |
| 66 | source z := d.source (φ z.1, coverPower k z.2) |
| 67 | |
| 68 | theorem coefficientAlong_transform (d : LinearData P V E) (φ : Q → P) |
| 69 | (g : Geometry) (k : ℕ) (j : Frequency) (q : Q) (Y : Plane) (s : ℝ) : |
| 70 | (transformData d φ k).coefficientAlong (refineGeometry g k) j ((q, Y), s) = |
| 71 | d.coefficientAlong g j ((φ q, coverPower k Y), s) := by |
| 72 | simp only [LinearData.coefficientAlong, transformData, coordinates_refine] |
| 73 | |
| 74 | theorem forcingAlong_transform (d : LinearData P V E) (φ : Q → P) |
| 75 | (g : Geometry) (k : ℕ) (j : Frequency) (q : Q) (Y : Plane) (s : ℝ) : |
| 76 | (transformData d φ k).forcingAlong (refineGeometry g k) j ((q, Y), s) = |
| 77 | d.forcingAlong g j ((φ q, coverPower k Y), s) := by |
| 78 | simp only [LinearData.forcingAlong, transformData, coordinates_refine, path_refine] |
| 79 | |
| 80 | omit [NormedSpace ℝ E] in |
| 81 | /-- Equality of input paths may compare different parameter spaces. The |
| 82 | canonical zero branch for a noncontinuous slice is respected as well. -/ |
| 83 | theorem pathFamily_congr {a b : ℝ} (F : P × ℝ → E) (G : Q × ℝ → E) |
| 84 | (p : P) (q : Q) (h : ∀ s : Icc a b, F (p, s) = G (q, s)) : |
| 85 | SmoothPathFamily.pathFamily (a := a) (b := b) F p = |
| 86 | SmoothPathFamily.pathFamily G q := by |
| 87 | have he : (fun s : Icc a b => F (p, s)) = (fun s : Icc a b => G (q, s)) := funext h |
| 88 | by_cases hF : Continuous (fun s : Icc a b => F (p, s)) |
| 89 | · have hG : Continuous (fun s : Icc a b => G (q, s)) := he ▸ hF |
| 90 | ext s |
| 91 | rw [SmoothPathFamily.pathFamily_apply F p hF, SmoothPathFamily.pathFamily_apply G q hG] |
| 92 | exact h s |
| 93 | · have hG : ¬ Continuous (fun s : Icc a b => G (q, s)) := fun hc => hF (he.symm ▸ hc) |
| 94 | simp only [SmoothPathFamily.pathFamily, dite_eq_right hF, dite_eq_right hG] |
| 95 | |
| 96 | theorem coefficientPath_transform {a b : ℝ} (d : LinearData P V E) (φ : Q → P) |
| 97 | (g : Geometry) (k : ℕ) (j : Frequency) (q : Q) (Y : Plane) : |
| 98 | (transformData d φ k).coefficientPath (a := a) (b := b) (refineGeometry g k) j (q, Y) = |
| 99 | d.coefficientPath g j (φ q, coverPower k Y) := by |
| 100 | apply pathFamily_congr |
| 101 | intro s |
| 102 | exact coefficientAlong_transform d φ g k j q Y s |
| 103 | |
| 104 | theorem forcingPath_transform {a b : ℝ} (d : LinearData P V E) (φ : Q → P) |
| 105 | (g : Geometry) (k : ℕ) (j : Frequency) (q : Q) (Y : Plane) : |
| 106 | (transformData d φ k).forcingPath (a := a) (b := b) (refineGeometry g k) j (q, Y) = |
| 107 | d.forcingPath g j (φ q, coverPower k Y) := by |
| 108 | apply pathFamily_congr |
| 109 | intro s |
| 110 | exact forcingAlong_transform d φ g k j q Y s |
| 111 | |
| 112 | variable [CompleteSpace E] {a b : ℝ} |
| 113 | |
| 114 | theorem anchoredSolve_transform (d : LinearData P V E) (φ : Q → P) |
| 115 | (g : Geometry) (hab : a ≤ b) (k : ℕ) (j : Frequency) (q : Q) (Y : Plane) (s : ℝ) : |
| 116 | (transformData d φ k).anchoredSolve (refineGeometry g k) hab j (q, Y) s = |
| 117 | d.anchoredSolve g hab j (φ q, coverPower k Y) s := by |
| 118 | unfold LinearData.anchoredSolve |
| 119 | rw [coefficientPath_transform, forcingPath_transform] |
| 120 | |
| 121 | theorem copySolve_transform (d : LinearData P V E) (φ : Q → P) |
| 122 | (g : Geometry) (hab : a ≤ b) (k : ℕ) (j : Frequency) (q : Q) (Y : Plane) : |
| 123 | (transformData d φ k).copySolve (refineGeometry g k) hab j (q, Y) = |
| 124 | d.copySolve g hab j (φ q, coverPower k Y) := by |
| 125 | unfold LinearData.copySolve |
| 126 | rw [coordinates_refine, anchoredSolve_transform] |
| 127 | |
| 128 | theorem localizedCopy_transform (d : LinearData P V E) (φ : Q → P) |
| 129 | (g : Geometry) (hab : a ≤ b) (k : ℕ) (κ : Plane → ℝ) (j : Frequency) (q : Q) (Y : Plane) : |
| 130 | (transformData d φ k).localizedCopy (refineGeometry g k) hab κ j (q, Y) = |
| 131 | d.localizedCopy g hab κ j (φ q, coverPower k Y) := by |
| 132 | unfold LinearData.localizedCopy |
| 133 | rw [coordinates_refine, copySolve_transform] |
| 134 | |
| 135 | /-- Equality of the actual periodized solves, obtained term by term before |
| 136 | forming the sum. No periodicity hypothesis on a native inhomogeneous solve |
| 137 | is used, or needed. -/ |
| 138 | theorem commonSolve_transform (d : LinearData P V E) (φ : Q → P) |
| 139 | (g : Geometry) (hab : a ≤ b) (k : ℕ) (κ : Plane → ℝ) (q : Q) (Y : Plane) : |
| 140 | (transformData d φ k).commonSolve (refineGeometry g k) hab κ (q, Y) = |
| 141 | d.commonSolve g hab κ (φ q, coverPower k Y) := by |
| 142 | apply tsum_congr |
| 143 | intro j |
| 144 | exact localizedCopy_transform d φ g hab k κ j q Y |
| 145 | |
| 146 | end Paths |
| 147 | |
| 148 | /-! ## Changing the integer representative of the native slot center -/ |
| 149 | |
| 150 | section Recenter |
| 151 | |
| 152 | variable {P V E : Type} |
| 153 | [NormedAddCommGroup V] [NormedSpace ℝ V] |
| 154 | [NormedAddCommGroup E] [NormedSpace ℝ E] [CompleteSpace E] |
| 155 | {a b : ℝ} |
| 156 | |
| 157 | end Recenter |
| 158 | |
| 159 | /-! ## Physical units: scaling the actual source scales the actual solution -/ |
| 160 | |
| 161 | section SourceScale |
| 162 | |
| 163 | variable {P V E : Type} |
| 164 | [NormedAddCommGroup V] [NormedSpace ℝ V] |
| 165 | [NormedAddCommGroup E] [NormedSpace ℝ E] [CompleteSpace E] |
| 166 | {a b : ℝ} |
| 167 | |
| 168 | noncomputable def scaleSource (d : LinearData P V E) (c : ℝ) : LinearData P V E := |
| 169 | { d with source := fun x => c • d.source x } |
| 170 | |
| 171 | omit [CompleteSpace E] in |
| 172 | theorem pathFamily_smul (F : P × ℝ → E) (p : P) (c : ℝ) : |
| 173 | SmoothPathFamily.pathFamily (a := a) (b := b) (fun x => c • F x) p = |
| 174 | c • SmoothPathFamily.pathFamily F p := by |
| 175 | by_cases hc : c = 0 |
| 176 | · subst c |
| 177 | simp only [zero_smul] |
| 178 | simp only [SmoothPathFamily.pathFamily, dite_eq_left continuous_const] |
| 179 | rfl |
| 180 | by_cases hF : Continuous (fun s : Icc a b => F (p, s)) |
| 181 | · have hCF : Continuous (fun s : Icc a b => c • F (p, s)) := continuous_const.smul hF |
| 182 | ext s |
| 183 | rw [SmoothPathFamily.pathFamily_apply _ _ hCF, ContinuousMap.smul_apply, |
| 184 | SmoothPathFamily.pathFamily_apply _ _ hF] |
| 185 | · have hCF : ¬ Continuous (fun s : Icc a b => c • F (p, s)) := by |
| 186 | intro hh |
| 187 | have h : Continuous (fun s : Icc a b => c⁻¹ • (c • F (p, s))) := continuous_const.smul hh |
| 188 | apply hF |
| 189 | simpa only [smul_smul, inv_mul_cancel₀ hc, one_smul] using h |
| 190 | simp only [SmoothPathFamily.pathFamily, dite_eq_right hF, dite_eq_right hCF, smul_zero] |
| 191 | |
| 192 | theorem solution_zero_smul (hab : a ≤ b) (A : ParametricODE.Coefficient a b E) |
| 193 | (f : ParametricODE.Curve a b E) (c : ℝ) : |
| 194 | ParametricODE.solution hab A 0 (c • f) = c • ParametricODE.solution hab A 0 f := by |
| 195 | simp only [ParametricODE.solution, ParametricODE.source, map_zero, zero_add, map_smul] |
| 196 | |
| 197 | theorem solutionExtension_zero_smul (hab : a ≤ b) (A : ParametricODE.Coefficient a b E) |
| 198 | (f : ParametricODE.Curve a b E) (c s : ℝ) : |
| 199 | ParametricODE.solutionExtension hab A 0 (c • f) s = |
| 200 | c • ParametricODE.solutionExtension hab A 0 f s := by |
| 201 | have he : ParametricODE.applyCoefficient A (c • ParametricODE.solution hab A 0 f) + c • f = |
| 202 | c • (ParametricODE.applyCoefficient A (ParametricODE.solution hab A 0 f) + f) := by |
| 203 | ext t |
| 204 | simp only [ParametricODE.applyCoefficient, ContinuousMap.add_apply, |
| 205 | ContinuousMap.smul_apply, ContinuousMap.coe_mk, map_smul, smul_add] |
| 206 | simp only [ParametricODE.solutionExtension, solution_zero_smul, he, zero_add, |
| 207 | ParametricODE.extend, ContinuousMap.smul_apply, intervalIntegral.integral_smul] |
| 208 | |
| 209 | theorem anchoredSolve_scaleSource (d : LinearData P V E) (g : Geometry) (hab : a ≤ b) |
| 210 | (c : ℝ) (j : Frequency) (p : P) (Y : Plane) (s : ℝ) : |
| 211 | (scaleSource d c).anchoredSolve g hab j (p, Y) s = |
| 212 | c • d.anchoredSolve g hab j (p, Y) s := by |
| 213 | have hf : (scaleSource d c).forcingPath (a := a) (b := b) g j (p, Y) = |
| 214 | c • d.forcingPath g j (p, Y) := by |
| 215 | unfold LinearData.forcingPath |
| 216 | have hh : (scaleSource d c).forcingAlong g j = fun x => c • d.forcingAlong g j x := by |
| 217 | funext x |
| 218 | simp only [LinearData.forcingAlong, scaleSource, map_smul] |
| 219 | rw [hh, pathFamily_smul] |
| 220 | change ParametricODE.solutionExtension hab (d.coefficientPath g j (p, Y)) 0 |
| 221 | ((scaleSource d c).forcingPath g j (p, Y)) s = _ |
| 222 | rw [hf, solutionExtension_zero_smul] |
| 223 | rfl |
| 224 | |
| 225 | theorem copySolve_scaleSource (d : LinearData P V E) (g : Geometry) (hab : a ≤ b) |
| 226 | (c : ℝ) (j : Frequency) (p : P) (Y : Plane) : |
| 227 | (scaleSource d c).copySolve g hab j (p, Y) = c • d.copySolve g hab j (p, Y) := by |
| 228 | simp only [LinearData.copySolve, anchoredSolve_scaleSource] |
| 229 | |
| 230 | theorem localizedCopy_scaleSource (d : LinearData P V E) (g : Geometry) (hab : a ≤ b) |
| 231 | (c : ℝ) (κ : Plane → ℝ) (j : Frequency) (p : P) (Y : Plane) : |
| 232 | (scaleSource d c).localizedCopy g hab κ j (p, Y) = |
| 233 | c • d.localizedCopy g hab κ j (p, Y) := by |
| 234 | simp only [LinearData.localizedCopy, copySolve_scaleSource] |
| 235 | exact smul_comm _ _ _ |
| 236 | |
| 237 | theorem commonSolve_scaleSource (d : LinearData P V E) (g : Geometry) (hab : a ≤ b) |
| 238 | (c : ℝ) (κ : Plane → ℝ) (p : P) (Y : Plane) : |
| 239 | (scaleSource d c).commonSolve g hab κ (p, Y) = c • d.commonSolve g hab κ (p, Y) := by |
| 240 | simp only [LinearData.commonSolve, localizedCopy_scaleSource] |
| 241 | exact tsum_const_smul'' c |
| 242 | |
| 243 | end SourceScale |
| 244 | |
| 245 | /-! ## Transporting the native clock, its anchor, and its cutoff together -/ |
| 246 | |
| 247 | noncomputable def nativeTimeMap (τ rate : ℝ) (z : Plane) : Plane := |
| 248 | (z.1, τ + rate * z.2) |
| 249 | |
| 250 | theorem nativeTimeMap_continuous (τ rate : ℝ) : Continuous (nativeTimeMap τ rate) := |
| 251 | continuous_fst.prodMk (continuous_const.add (continuous_const.mul continuous_snd)) |
| 252 | |
| 253 | noncomputable def timeGeometry (g : Geometry) (τ rate : ℝ) (hrate : rate ≠ 0) : Geometry where |
| 254 | gap := g.gap |
| 255 | basis := CommonCoverClass.scaledBasis g.basis rate hrate |
| 256 | center := g.center + g.basis (0, τ) |
| 257 | |
| 258 | theorem point_timeGeometry (g : Geometry) (τ rate : ℝ) (hrate : rate ≠ 0) |
| 259 | (j : Frequency) (z : Plane) : |
| 260 | (timeGeometry g τ rate hrate).point j z = g.point j (nativeTimeMap τ rate z) := by |
| 261 | simp only [Geometry.point, timeGeometry, CommonCoverClass.scaledBasis_apply, nativeTimeMap] |
| 262 | have hv : (z.1, τ + rate * z.2) = (0, τ) + (z.1, rate * z.2) := by |
| 263 | ext <;> simp |
| 264 | rw [hv, map_add g.basis] |
| 265 | congr 1 |
| 266 | ext <;> simp only [Prod.fst_add, Prod.snd_add] <;> ring |
| 267 | |
| 268 | theorem coordinates_timeGeometry (g : Geometry) (τ rate : ℝ) (hrate : rate ≠ 0) |
| 269 | (j : Frequency) (Y : Plane) : |
| 270 | nativeTimeMap τ rate ((timeGeometry g τ rate hrate).coordinates j Y) = g.coordinates j Y := by |
| 271 | have h := point_timeGeometry g τ rate hrate j ((timeGeometry g τ rate hrate).coordinates j Y) |
| 272 | rw [Geometry.point_coordinates] at h |
| 273 | have hh := congrArg (g.coordinates j) h |
| 274 | rw [g.coordinates_point] at hh |
| 275 | exact hh.symm |
| 276 | |
| 277 | theorem coordinates_timeGeometry_fst (g : Geometry) (τ rate : ℝ) (hrate : rate ≠ 0) |
| 278 | (j : Frequency) (Y : Plane) : |
| 279 | ((timeGeometry g τ rate hrate).coordinates j Y).1 = (g.coordinates j Y).1 := by |
| 280 | simpa only [nativeTimeMap] using |
| 281 | congrArg Prod.fst (coordinates_timeGeometry g τ rate hrate j Y) |
| 282 | |
| 283 | theorem path_timeGeometry (g : Geometry) (τ rate : ℝ) (hrate : rate ≠ 0) |
| 284 | (j : Frequency) (Y : Plane) (s : ℝ) : |
| 285 | (timeGeometry g τ rate hrate).path j Y s = g.path j Y (τ + rate * s) := by |
| 286 | simp only [Geometry.path, point_timeGeometry, nativeTimeMap, coordinates_timeGeometry_fst] |
| 287 | |
| 288 | theorem time_interval_mono {a b rate : ℝ} (τ : ℝ) (hrate : 0 < rate) (hab : a ≤ b) : |
| 289 | τ + rate * a ≤ τ + rate * b := add_le_add_right (mul_le_mul_of_nonneg_left hab hrate.le) τ |
| 290 | |
| 291 | section TimeData |
| 292 | |
| 293 | variable {P V E : Type} [NormedAddCommGroup V] [NormedSpace ℝ V] |
| 294 | [NormedAddCommGroup E] [NormedSpace ℝ E] |
| 295 | |
| 296 | noncomputable def timeData (d : LinearData P V E) (τ rate : ℝ) : LinearData P V E where |
| 297 | coefficient z := rate • d.coefficient (z.1, nativeTimeMap τ rate z.2) |
| 298 | forcingMap z := rate • d.forcingMap (z.1, nativeTimeMap τ rate z.2) |
| 299 | source := d.source |
| 300 | |
| 301 | theorem coefficientAlong_timeData (d : LinearData P V E) (g : Geometry) |
| 302 | (τ rate : ℝ) (hrate : rate ≠ 0) (j : Frequency) (p : P) (Y : Plane) (s : ℝ) : |
| 303 | (timeData d τ rate).coefficientAlong (timeGeometry g τ rate hrate) j ((p, Y), s) = |
| 304 | rate • d.coefficientAlong g j ((p, Y), τ + rate * s) := by |
| 305 | simp only [LinearData.coefficientAlong, timeData, nativeTimeMap, coordinates_timeGeometry_fst] |
| 306 | |
| 307 | theorem forcingAlong_timeData (d : LinearData P V E) (g : Geometry) |
| 308 | (τ rate : ℝ) (hrate : rate ≠ 0) (j : Frequency) (p : P) (Y : Plane) (s : ℝ) : |
| 309 | (timeData d τ rate).forcingAlong (timeGeometry g τ rate hrate) j ((p, Y), s) = |
| 310 | rate • d.forcingAlong g j ((p, Y), τ + rate * s) := by |
| 311 | simp only [LinearData.forcingAlong, timeData, nativeTimeMap, |
| 312 | coordinates_timeGeometry_fst, path_timeGeometry, _root_.smul_apply] |
| 313 | |
| 314 | variable [NormedAddCommGroup P] [NormedSpace ℝ P] |
| 315 | |
| 316 | omit [NormedSpace ℝ P] in |
| 317 | theorem timeData_coefficient_continuousOn (d : LinearData P V E) (τ rate : ℝ) {U : Set P} |
| 318 | (hA : ContinuousOn d.coefficient (U ×ˢ univ)) : |
| 319 | ContinuousOn (timeData d τ rate).coefficient (U ×ˢ univ) := by |
| 320 | have hmap : Continuous (fun z : P × Plane => (z.1, nativeTimeMap τ rate z.2)) := |
| 321 | continuous_fst.prodMk ((nativeTimeMap_continuous τ rate).comp continuous_snd) |
| 322 | exact (hA.comp hmap.continuousOn (fun z hz => ⟨hz.1, mem_univ _⟩)).const_smul rate |
| 323 | |
| 324 | omit [NormedSpace ℝ P] in |
| 325 | theorem timeData_forcingMap_continuousOn (d : LinearData P V E) (τ rate : ℝ) {U : Set P} |
| 326 | (hB : ContinuousOn d.forcingMap (U ×ˢ univ)) : |
| 327 | ContinuousOn (timeData d τ rate).forcingMap (U ×ˢ univ) := by |
| 328 | have hmap : Continuous (fun z : P × Plane => (z.1, nativeTimeMap τ rate z.2)) := |
| 329 | continuous_fst.prodMk ((nativeTimeMap_continuous τ rate).comp continuous_snd) |
| 330 | exact (hB.comp hmap.continuousOn (fun z hz => ⟨hz.1, mem_univ _⟩)).const_smul rate |
| 331 | |
| 332 | variable [CompleteSpace E] {a b : ℝ} |
| 333 | |
| 334 | /-- Clock transport is proved from uniqueness of the actual zero-entry |
| 335 | Volterra solution on the transported interval. -/ |
| 336 | theorem anchoredSolve_timeData (d : LinearData P V E) (g : Geometry) |
| 337 | (τ rate : ℝ) (hrate : 0 < rate) (hab : a ≤ b) {U : Set P} |
| 338 | (hA : ContinuousOn d.coefficient (U ×ˢ univ)) |
| 339 | (hB : ContinuousOn d.forcingMap (U ×ˢ univ)) |
| 340 | (hf : ContinuousOn d.source (U ×ˢ univ)) |
| 341 | (j : Frequency) {p : P} (hp : p ∈ U) (Y : Plane) {s : ℝ} (hs : s ∈ Icc a b) : |
| 342 | (timeData d τ rate).anchoredSolve (timeGeometry g τ rate hrate.ne') hab j (p, Y) s = |
| 343 | d.anchoredSolve g (time_interval_mono τ hrate hab) j (p, Y) (τ + rate * s) := by |
| 344 | let u := fun t => d.anchoredSolve g (time_interval_mono τ hrate hab) j (p, Y) (τ + rate * t) |
| 345 | have hu0 : u a = 0 := d.anchoredSolve_initial g _ j (p, Y) |
| 346 | have hu (t : ℝ) (ht : t ∈ Icc a b) : HasDerivAt u |
| 347 | ((timeData d τ rate).coefficientAlong (timeGeometry g τ rate hrate.ne') j ((p, Y), t) (u t) + |
| 348 | (timeData d τ rate).forcingAlong (timeGeometry g τ rate hrate.ne') j ((p, Y), t)) t := by |
| 349 | have ht' : τ + rate * t ∈ Icc (τ + rate * a) (τ + rate * b) := |
| 350 | ⟨time_interval_mono τ hrate ht.1, time_interval_mono τ hrate ht.2⟩ |
| 351 | have hold := d.anchoredSolve_hasDerivAt g (time_interval_mono τ hrate hab) |
| 352 | j hA hB hf hp Y ⟨τ + rate * t, ht'⟩ |
| 353 | have hclock : HasDerivAt (fun t : ℝ => τ + rate * t) rate t := by |
| 354 | simpa only [mul_one, id_eq] using ((hasDerivAt_id t).const_mul rate).const_add τ |
| 355 | have hderiv := hold.scomp t hclock |
| 356 | simpa only [u, coefficientAlong_timeData, forcingAlong_timeData, |
| 357 | _root_.smul_apply, smul_add, Function.comp_def] using hderiv |
| 358 | exact ((timeData d τ rate).anchoredSolve_unique (timeGeometry g τ rate hrate.ne') hab j |
| 359 | (timeData_coefficient_continuousOn d τ rate hA) |
| 360 | (timeData_forcingMap_continuousOn d τ rate hB) hf hp Y hu0 hu hs).symm |
| 361 | |
| 362 | theorem copySolve_timeData (d : LinearData P V E) (g : Geometry) |
| 363 | (τ rate : ℝ) (hrate : 0 < rate) (hab : a ≤ b) {U : Set P} |
| 364 | (hA : ContinuousOn d.coefficient (U ×ˢ univ)) |
| 365 | (hB : ContinuousOn d.forcingMap (U ×ˢ univ)) |
| 366 | (hf : ContinuousOn d.source (U ×ˢ univ)) |
| 367 | (j : Frequency) {p : P} (hp : p ∈ U) (Y : Plane) |
| 368 | (hs : ((timeGeometry g τ rate hrate.ne').coordinates j Y).2 ∈ Icc a b) : |
| 369 | (timeData d τ rate).copySolve (timeGeometry g τ rate hrate.ne') hab j (p, Y) = |
| 370 | d.copySolve g (time_interval_mono τ hrate hab) j (p, Y) := by |
| 371 | unfold LinearData.copySolve |
| 372 | rw [anchoredSolve_timeData d g τ rate hrate hab hA hB hf j hp Y hs] |
| 373 | congr 1 |
| 374 | exact congrArg Prod.snd (coordinates_timeGeometry g τ rate hrate.ne' j Y) |
| 375 | |
| 376 | theorem localizedCopy_timeData (d : LinearData P V E) (g : Geometry) |
| 377 | (τ rate : ℝ) (hrate : 0 < rate) (hab : a ≤ b) {U : Set P} |
| 378 | (hA : ContinuousOn d.coefficient (U ×ˢ univ)) |
| 379 | (hB : ContinuousOn d.forcingMap (U ×ˢ univ)) |
| 380 | (hf : ContinuousOn d.source (U ×ˢ univ)) |
| 381 | (κ : Plane → ℝ) (hκ : support κ ⊆ univ ×ˢ Icc (τ + rate * a) (τ + rate * b)) |
| 382 | (j : Frequency) {p : P} (hp : p ∈ U) (Y : Plane) : |
| 383 | (timeData d τ rate).localizedCopy (timeGeometry g τ rate hrate.ne') hab |
| 384 | (κ ∘ nativeTimeMap τ rate) j (p, Y) = |
| 385 | d.localizedCopy g (time_interval_mono τ hrate hab) κ j (p, Y) := by |
| 386 | simp only [LinearData.localizedCopy, Function.comp_apply, coordinates_timeGeometry] |
| 387 | by_cases hz : κ (g.coordinates j Y) = 0 |
| 388 | · simp only [hz, zero_smul] |
| 389 | · congr 1 |
| 390 | apply copySolve_timeData d g τ rate hrate hab hA hB hf j hp Y |
| 391 | have hbounds := (hκ hz).2 |
| 392 | have ht := congrArg Prod.snd (coordinates_timeGeometry g τ rate hrate.ne' j Y) |
| 393 | change τ + rate * ((timeGeometry g τ rate hrate.ne').coordinates j Y).2 = _ at ht |
| 394 | constructor <;> nlinarith [hbounds.1, hbounds.2] |
| 395 | |
| 396 | theorem commonSolve_timeData (d : LinearData P V E) (g : Geometry) |
| 397 | (τ rate : ℝ) (hrate : 0 < rate) (hab : a ≤ b) {U : Set P} |
| 398 | (hA : ContinuousOn d.coefficient (U ×ˢ univ)) |
| 399 | (hB : ContinuousOn d.forcingMap (U ×ˢ univ)) |
| 400 | (hf : ContinuousOn d.source (U ×ˢ univ)) |
| 401 | (κ : Plane → ℝ) (hκ : support κ ⊆ univ ×ˢ Icc (τ + rate * a) (τ + rate * b)) |
| 402 | {p : P} (hp : p ∈ U) (Y : Plane) : |
| 403 | (timeData d τ rate).commonSolve (timeGeometry g τ rate hrate.ne') hab |
| 404 | (κ ∘ nativeTimeMap τ rate) (p, Y) = |
| 405 | d.commonSolve g (time_interval_mono τ hrate hab) κ (p, Y) := by |
| 406 | apply tsum_congr |
| 407 | intro j |
| 408 | exact localizedCopy_timeData d g τ rate hrate hab hA hB hf κ hκ j hp Y |
| 409 | |
| 410 | end TimeData |
| 411 | |
| 412 | /-! ## A single output represented in all transported charts -/ |
| 413 | |
| 414 | section PhysicalCompatibility |
| 415 | |
| 416 | variable {P Q V E X I : Type} |
| 417 | [NormedAddCommGroup P] [NormedSpace ℝ P] |
| 418 | [NormedAddCommGroup V] [NormedSpace ℝ V] |
| 419 | [NormedAddCommGroup E] [NormedSpace ℝ E] [CompleteSpace E] |
| 420 | |
| 421 | noncomputable def transportData (d : LinearData P V E) (φ : Q → P) (k : ℕ) |
| 422 | (τ rate amplitude : ℝ) : LinearData Q V E := |
| 423 | scaleSource (transformData (timeData d τ rate) φ k) amplitude |
| 424 | |
| 425 | noncomputable def transportGeometry (g : Geometry) (k : ℕ) (τ rate : ℝ) (hrate : rate ≠ 0) : |
| 426 | Geometry := refineGeometry (timeGeometry g τ rate hrate) k |
| 427 | |
| 428 | theorem commonSolve_transport {a b : ℝ} (d : LinearData P V E) (φ : Q → P) |
| 429 | (g : Geometry) (hab : a ≤ b) (k : ℕ) (τ rate amplitude : ℝ) (hrate : 0 < rate) |
| 430 | {U : Set P} (hA : ContinuousOn d.coefficient (U ×ˢ univ)) |
| 431 | (hB : ContinuousOn d.forcingMap (U ×ˢ univ)) (hf : ContinuousOn d.source (U ×ˢ univ)) |
| 432 | (κ : Plane → ℝ) (hκ : support κ ⊆ univ ×ˢ Icc (τ + rate * a) (τ + rate * b)) |
| 433 | (q : Q) (hq : φ q ∈ U) (Y : Plane) : |
| 434 | (transportData d φ k τ rate amplitude).commonSolve |
| 435 | (transportGeometry g k τ rate hrate.ne') hab (κ ∘ nativeTimeMap τ rate) (q, Y) = |
| 436 | amplitude • d.commonSolve g (time_interval_mono τ hrate hab) κ (φ q, coverPower k Y) := by |
| 437 | unfold transportData transportGeometry |
| 438 | rw [commonSolve_scaleSource, commonSolve_transform, |
| 439 | commonSolve_timeData d g τ rate hrate hab hA hB hf κ hκ hq] |
| 440 | |
| 441 | end PhysicalCompatibility |
| 442 | |
| 443 | section ConcreteBandChart |
| 444 | |
| 445 | variable {V E : Type} [NormedAddCommGroup V] [NormedSpace ℝ V] |
| 446 | [NormedAddCommGroup E] [NormedSpace ℝ E] [CompleteSpace E] {a b : ℝ} |
| 447 | |
| 448 | end ConcreteBandChart |
| 449 | |
| 450 | /-! ## Binding existing chart data through primitive input identities -/ |
| 451 | |
| 452 | section InputCompatibility |
| 453 | |
| 454 | variable {P Q V E X I : Type} |
| 455 | [NormedAddCommGroup V] [NormedSpace ℝ V] |
| 456 | [NormedAddCommGroup E] [NormedSpace ℝ E] |
| 457 | |
| 458 | /-- These are identities of the coefficient and converted source before |
| 459 | any integration. They allow different source/map scalings with the same |
| 460 | product, and impose no assertion about solved fields. -/ |
| 461 | structure SameInputsAt (d e : LinearData P V E) (p : P) : Prop where |
| 462 | coefficient : ∀ z, d.coefficient (p, z) = e.coefficient (p, z) |
| 463 | forcing : ∀ z Y, d.forcingMap (p, z) (d.source (p, Y)) = |
| 464 | e.forcingMap (p, z) (e.source (p, Y)) |
| 465 | |
| 466 | variable [CompleteSpace E] {a b : ℝ} |
| 467 | |
| 468 | theorem anchoredSolve_eq_of_sameInputs (d e : LinearData P V E) (g : Geometry) |
| 469 | (hab : a ≤ b) (p : P) (hi : SameInputsAt d e p) (j : Frequency) (Y : Plane) (s : ℝ) : |
| 470 | d.anchoredSolve g hab j (p, Y) s = e.anchoredSolve g hab j (p, Y) s := by |
| 471 | have hA : d.coefficientPath (a := a) (b := b) g j (p, Y) = |
| 472 | e.coefficientPath g j (p, Y) := by |
| 473 | apply pathFamily_congr |
| 474 | intro t |
| 475 | exact hi.coefficient _ |
| 476 | have hf : d.forcingPath (a := a) (b := b) g j (p, Y) = e.forcingPath g j (p, Y) := by |
| 477 | apply pathFamily_congr |
| 478 | intro t |
| 479 | exact hi.forcing _ _ |
| 480 | simp only [LinearData.anchoredSolve, hA, hf] |
| 481 | |
| 482 | theorem commonSolve_eq_of_sameInputs (d e : LinearData P V E) (g : Geometry) |
| 483 | (hab : a ≤ b) (p : P) (hi : SameInputsAt d e p) (κ : Plane → ℝ) (Y : Plane) : |
| 484 | d.commonSolve g hab κ (p, Y) = e.commonSolve g hab κ (p, Y) := by |
| 485 | apply tsum_congr |
| 486 | intro j |
| 487 | simp only [LinearData.localizedCopy, LinearData.copySolve, |
| 488 | anchoredSolve_eq_of_sameInputs d e g hab p hi] |
| 489 | |
| 490 | variable [NormedAddCommGroup P] [NormedSpace ℝ P] |
| 491 | |
| 492 | theorem commonSolve_of_compatibleInputs (d : LinearData P V E) (e : LinearData Q V E) |
| 493 | (φ : Q → P) (g : Geometry) (hab : a ≤ b) (k : ℕ) |
| 494 | (τ rate amplitude : ℝ) (hrate : 0 < rate) |
| 495 | {U : Set P} (hA : ContinuousOn d.coefficient (U ×ˢ univ)) |
| 496 | (hB : ContinuousOn d.forcingMap (U ×ˢ univ)) (hf : ContinuousOn d.source (U ×ˢ univ)) |
| 497 | (κ : Plane → ℝ) (hκ : support κ ⊆ univ ×ˢ Icc (τ + rate * a) (τ + rate * b)) |
| 498 | (q : Q) (hq : φ q ∈ U) |
| 499 | (hi : SameInputsAt e (transportData d φ k τ rate amplitude) q) (Y : Plane) : |
| 500 | e.commonSolve (transportGeometry g k τ rate hrate.ne') hab |
| 501 | (κ ∘ nativeTimeMap τ rate) (q, Y) = |
| 502 | amplitude • d.commonSolve g (time_interval_mono τ hrate hab) κ (φ q, coverPower k Y) := by |
| 503 | rw [commonSolve_eq_of_sameInputs e (transportData d φ k τ rate amplitude) |
| 504 | _ hab q hi] |
| 505 | exact commonSolve_transport d φ g hab k τ rate amplitude hrate hA hB hf κ hκ q hq Y |
| 506 | |
| 507 | end InputCompatibility |
| 508 | |
| 509 | /-! ## Why the anchor must be transported as input data -/ |
| 510 | |
| 511 | end NavierStokes.CopySolveCompatibility |