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 | theorem cutoff_refine (g : Geometry) (k : ℕ) (κ : Plane → ℝ) (j : Frequency) (Y : Plane) : |
| 45 | κ ((refineGeometry g k).coordinates j Y) = κ (g.coordinates j (coverPower k Y)) := by |
| 46 | rw [coordinates_refine] |
| 47 | |
| 48 | /-- This includes cutoff indicators and copy envelopes, with no regularity |
| 49 | assumption on the native function. -/ |
| 50 | theorem native_copy_sum_refine {E : Type} [NormedAddCommGroup E] (g : Geometry) (k : ℕ) |
| 51 | (f : Plane → E) (Y : Plane) : |
| 52 | (∑' j : Frequency, f ((refineGeometry g k).coordinates j Y)) = |
| 53 | ∑' j : Frequency, f (g.coordinates j (coverPower k Y)) := by |
| 54 | apply tsum_congr |
| 55 | intro j |
| 56 | rw [coordinates_refine] |
| 57 | |
| 58 | section Paths |
| 59 | |
| 60 | variable {P Q V E : Type} |
| 61 | [NormedAddCommGroup V] [NormedSpace ℝ V] |
| 62 | [NormedAddCommGroup E] [NormedSpace ℝ E] |
| 63 | |
| 64 | /-- Input data transported through a slow-parameter map and a refinement of |
| 65 | the common cover. All native coefficients retain their native arguments. -/ |
| 66 | noncomputable def transformData (d : LinearData P V E) (φ : Q → P) (k : ℕ) : |
| 67 | LinearData Q V E where |
| 68 | coefficient z := d.coefficient (φ z.1, z.2) |
| 69 | forcingMap z := d.forcingMap (φ z.1, z.2) |
| 70 | source z := d.source (φ z.1, coverPower k z.2) |
| 71 | |
| 72 | noncomputable def pullbackData (d : LinearData P V E) (k : ℕ) : LinearData P V E := |
| 73 | transformData d id k |
| 74 | |
| 75 | theorem coefficientAlong_transform (d : LinearData P V E) (φ : Q → P) |
| 76 | (g : Geometry) (k : ℕ) (j : Frequency) (q : Q) (Y : Plane) (s : ℝ) : |
| 77 | (transformData d φ k).coefficientAlong (refineGeometry g k) j ((q, Y), s) = |
| 78 | d.coefficientAlong g j ((φ q, coverPower k Y), s) := by |
| 79 | simp only [LinearData.coefficientAlong, transformData, coordinates_refine] |
| 80 | |
| 81 | theorem forcingAlong_transform (d : LinearData P V E) (φ : Q → P) |
| 82 | (g : Geometry) (k : ℕ) (j : Frequency) (q : Q) (Y : Plane) (s : ℝ) : |
| 83 | (transformData d φ k).forcingAlong (refineGeometry g k) j ((q, Y), s) = |
| 84 | d.forcingAlong g j ((φ q, coverPower k Y), s) := by |
| 85 | simp only [LinearData.forcingAlong, transformData, coordinates_refine, path_refine] |
| 86 | |
| 87 | omit [NormedSpace ℝ E] in |
| 88 | /-- Equality of input paths may compare different parameter spaces. The |
| 89 | canonical zero branch for a noncontinuous slice is respected as well. -/ |
| 90 | theorem pathFamily_congr {a b : ℝ} (F : P × ℝ → E) (G : Q × ℝ → E) |
| 91 | (p : P) (q : Q) (h : ∀ s : Icc a b, F (p, s) = G (q, s)) : |
| 92 | SmoothPathFamily.pathFamily (a := a) (b := b) F p = |
| 93 | SmoothPathFamily.pathFamily G q := by |
| 94 | have he : (fun s : Icc a b => F (p, s)) = (fun s : Icc a b => G (q, s)) := funext h |
| 95 | by_cases hF : Continuous (fun s : Icc a b => F (p, s)) |
| 96 | · have hG : Continuous (fun s : Icc a b => G (q, s)) := he ▸ hF |
| 97 | ext s |
| 98 | rw [SmoothPathFamily.pathFamily_apply F p hF, SmoothPathFamily.pathFamily_apply G q hG] |
| 99 | exact h s |
| 100 | · have hG : ¬ Continuous (fun s : Icc a b => G (q, s)) := fun hc => hF (he.symm ▸ hc) |
| 101 | simp only [SmoothPathFamily.pathFamily, dite_eq_right hF, dite_eq_right hG] |
| 102 | |
| 103 | theorem coefficientPath_transform {a b : ℝ} (d : LinearData P V E) (φ : Q → P) |
| 104 | (g : Geometry) (k : ℕ) (j : Frequency) (q : Q) (Y : Plane) : |
| 105 | (transformData d φ k).coefficientPath (a := a) (b := b) (refineGeometry g k) j (q, Y) = |
| 106 | d.coefficientPath g j (φ q, coverPower k Y) := by |
| 107 | apply pathFamily_congr |
| 108 | intro s |
| 109 | exact coefficientAlong_transform d φ g k j q Y s |
| 110 | |
| 111 | theorem forcingPath_transform {a b : ℝ} (d : LinearData P V E) (φ : Q → P) |
| 112 | (g : Geometry) (k : ℕ) (j : Frequency) (q : Q) (Y : Plane) : |
| 113 | (transformData d φ k).forcingPath (a := a) (b := b) (refineGeometry g k) j (q, Y) = |
| 114 | d.forcingPath g j (φ q, coverPower k Y) := by |
| 115 | apply pathFamily_congr |
| 116 | intro s |
| 117 | exact forcingAlong_transform d φ g k j q Y s |
| 118 | |
| 119 | variable [CompleteSpace E] {a b : ℝ} |
| 120 | |
| 121 | theorem anchoredSolve_transform (d : LinearData P V E) (φ : Q → P) |
| 122 | (g : Geometry) (hab : a ≤ b) (k : ℕ) (j : Frequency) (q : Q) (Y : Plane) (s : ℝ) : |
| 123 | (transformData d φ k).anchoredSolve (refineGeometry g k) hab j (q, Y) s = |
| 124 | d.anchoredSolve g hab j (φ q, coverPower k Y) s := by |
| 125 | unfold LinearData.anchoredSolve |
| 126 | rw [coefficientPath_transform, forcingPath_transform] |
| 127 | |
| 128 | theorem copySolve_transform (d : LinearData P V E) (φ : Q → P) |
| 129 | (g : Geometry) (hab : a ≤ b) (k : ℕ) (j : Frequency) (q : Q) (Y : Plane) : |
| 130 | (transformData d φ k).copySolve (refineGeometry g k) hab j (q, Y) = |
| 131 | d.copySolve g hab j (φ q, coverPower k Y) := by |
| 132 | unfold LinearData.copySolve |
| 133 | rw [coordinates_refine, anchoredSolve_transform] |
| 134 | |
| 135 | theorem localizedCopy_transform (d : LinearData P V E) (φ : Q → P) |
| 136 | (g : Geometry) (hab : a ≤ b) (k : ℕ) (κ : Plane → ℝ) (j : Frequency) (q : Q) (Y : Plane) : |
| 137 | (transformData d φ k).localizedCopy (refineGeometry g k) hab κ j (q, Y) = |
| 138 | d.localizedCopy g hab κ j (φ q, coverPower k Y) := by |
| 139 | unfold LinearData.localizedCopy |
| 140 | rw [coordinates_refine, copySolve_transform] |
| 141 | |
| 142 | /-- Equality of the actual periodized solves, obtained term by term before |
| 143 | forming the sum. No periodicity hypothesis on a native inhomogeneous solve |
| 144 | is used, or needed. -/ |
| 145 | theorem commonSolve_transform (d : LinearData P V E) (φ : Q → P) |
| 146 | (g : Geometry) (hab : a ≤ b) (k : ℕ) (κ : Plane → ℝ) (q : Q) (Y : Plane) : |
| 147 | (transformData d φ k).commonSolve (refineGeometry g k) hab κ (q, Y) = |
| 148 | d.commonSolve g hab κ (φ q, coverPower k Y) := by |
| 149 | apply tsum_congr |
| 150 | intro j |
| 151 | exact localizedCopy_transform d φ g hab k κ j q Y |
| 152 | |
| 153 | theorem commonSolve_refine (d : LinearData P V E) (g : Geometry) (hab : a ≤ b) |
| 154 | (k : ℕ) (κ : Plane → ℝ) (p : P) (Y : Plane) : |
| 155 | (pullbackData d k).commonSolve (refineGeometry g k) hab κ (p, Y) = |
| 156 | d.commonSolve g hab κ (p, coverPower k Y) := |
| 157 | commonSolve_transform d id g hab k κ p Y |
| 158 | |
| 159 | omit [CompleteSpace E] in |
| 160 | theorem source_periodic_transform (d : LinearData P V E) (φ : Q → P) (k : ℕ) |
| 161 | (q : Q) (hp : PeriodicAt d.source (φ q)) : |
| 162 | PeriodicAt (transformData d φ k).source q := by |
| 163 | intro Y j |
| 164 | change d.source (φ q, coverPower k (Y + TorusAverages.latticePoint j)) = _ |
| 165 | rw [map_add, coverPower_lattice] |
| 166 | exact hp (coverPower k Y) (coverIndex k j) |
| 167 | |
| 168 | theorem commonOnTorus_refine [NormedAddCommGroup P] [NormedSpace ℝ P] |
| 169 | (d : LinearData P V E) (g : Geometry) (hab : a ≤ b) |
| 170 | (k : ℕ) (κ : Plane → ℝ) (p : P) (hp : PeriodicAt d.source p) (Y : Plane) : |
| 171 | (pullbackData d k).commonOnTorus (refineGeometry g k) hab κ p |
| 172 | (source_periodic_transform d id k p hp) (TorusAverages.quotientPoint Y) = |
| 173 | d.commonOnTorus g hab κ p hp (TorusAverages.quotientPoint (coverPower k Y)) := by |
| 174 | simp only [LinearData.commonOnTorus_coe] |
| 175 | exact commonSolve_refine d g hab k κ p Y |
| 176 | |
| 177 | end Paths |
| 178 | |
| 179 | /-! ## Changing the integer representative of the native slot center -/ |
| 180 | |
| 181 | noncomputable def recenterGeometry (g : Geometry) (l : Frequency) : Geometry := |
| 182 | { g with center := g.center + TorusAverages.latticePoint l } |
| 183 | |
| 184 | theorem coordinates_recenter (g : Geometry) (l j : Frequency) (Y : Plane) : |
| 185 | (recenterGeometry g l).coordinates j Y = g.coordinates (j + l) Y := by |
| 186 | unfold Geometry.coordinates recenterGeometry |
| 187 | rw [TorusAverages.latticePoint_add] |
| 188 | congr 1 |
| 189 | ext <;> simp only [Prod.fst_add, Prod.snd_add, Prod.fst_sub, Prod.snd_sub] <;> ring |
| 190 | |
| 191 | theorem point_recenter (g : Geometry) (l j : Frequency) (z : Plane) : |
| 192 | (recenterGeometry g l).point j z = g.point (j + l) z := by |
| 193 | unfold Geometry.point recenterGeometry |
| 194 | rw [TorusAverages.latticePoint_add] |
| 195 | congr 1 |
| 196 | ext <;> simp only [Prod.fst_add, Prod.snd_add] <;> ring |
| 197 | |
| 198 | theorem path_recenter (g : Geometry) (l j : Frequency) (Y : Plane) (s : ℝ) : |
| 199 | (recenterGeometry g l).path j Y s = g.path (j + l) Y s := by |
| 200 | simp only [Geometry.path, coordinates_recenter, point_recenter] |
| 201 | |
| 202 | section Recenter |
| 203 | |
| 204 | variable {P V E : Type} |
| 205 | [NormedAddCommGroup V] [NormedSpace ℝ V] |
| 206 | [NormedAddCommGroup E] [NormedSpace ℝ E] [CompleteSpace E] |
| 207 | {a b : ℝ} |
| 208 | |
| 209 | theorem anchoredSolve_recenter (d : LinearData P V E) (g : Geometry) (hab : a ≤ b) |
| 210 | (l j : Frequency) (p : P) (Y : Plane) (s : ℝ) : |
| 211 | d.anchoredSolve (recenterGeometry g l) hab j (p, Y) s = |
| 212 | d.anchoredSolve g hab (j + l) (p, Y) s := by |
| 213 | have hA : d.coefficientPath (a := a) (b := b) (recenterGeometry g l) j (p, Y) = |
| 214 | d.coefficientPath g (j + l) (p, Y) := by |
| 215 | apply pathFamily_congr |
| 216 | intro t |
| 217 | simp only [LinearData.coefficientAlong, coordinates_recenter] |
| 218 | have hf : d.forcingPath (a := a) (b := b) (recenterGeometry g l) j (p, Y) = |
| 219 | d.forcingPath g (j + l) (p, Y) := by |
| 220 | apply pathFamily_congr |
| 221 | intro t |
| 222 | simp only [LinearData.forcingAlong, coordinates_recenter, path_recenter] |
| 223 | simp only [LinearData.anchoredSolve, hA, hf] |
| 224 | |
| 225 | theorem copySolve_recenter (d : LinearData P V E) (g : Geometry) (hab : a ≤ b) |
| 226 | (l j : Frequency) (p : P) (Y : Plane) : |
| 227 | d.copySolve (recenterGeometry g l) hab j (p, Y) = |
| 228 | d.copySolve g hab (j + l) (p, Y) := by |
| 229 | simp only [LinearData.copySolve, coordinates_recenter, anchoredSolve_recenter] |
| 230 | |
| 231 | theorem localizedCopy_recenter (d : LinearData P V E) (g : Geometry) (hab : a ≤ b) |
| 232 | (l j : Frequency) (κ : Plane → ℝ) (p : P) (Y : Plane) : |
| 233 | d.localizedCopy (recenterGeometry g l) hab κ j (p, Y) = |
| 234 | d.localizedCopy g hab κ (j + l) (p, Y) := by |
| 235 | simp only [LinearData.localizedCopy, coordinates_recenter, copySolve_recenter] |
| 236 | |
| 237 | theorem commonSolve_recenter (d : LinearData P V E) (g : Geometry) (hab : a ≤ b) |
| 238 | (l : Frequency) (κ : Plane → ℝ) (p : P) (Y : Plane) : |
| 239 | d.commonSolve (recenterGeometry g l) hab κ (p, Y) = d.commonSolve g hab κ (p, Y) := by |
| 240 | simp only [LinearData.commonSolve, localizedCopy_recenter] |
| 241 | exact (Equiv.addRight l).tsum_eq (fun j => d.localizedCopy g hab κ j (p, Y)) |
| 242 | |
| 243 | end Recenter |
| 244 | |
| 245 | /-! ## Physical units: scaling the actual source scales the actual solution -/ |
| 246 | |
| 247 | section SourceScale |
| 248 | |
| 249 | variable {P V E : Type} |
| 250 | [NormedAddCommGroup V] [NormedSpace ℝ V] |
| 251 | [NormedAddCommGroup E] [NormedSpace ℝ E] [CompleteSpace E] |
| 252 | {a b : ℝ} |
| 253 | |
| 254 | noncomputable def scaleSource (d : LinearData P V E) (c : ℝ) : LinearData P V E := |
| 255 | { d with source := fun x => c • d.source x } |
| 256 | |
| 257 | omit [CompleteSpace E] in |
| 258 | theorem pathFamily_smul (F : P × ℝ → E) (p : P) (c : ℝ) : |
| 259 | SmoothPathFamily.pathFamily (a := a) (b := b) (fun x => c • F x) p = |
| 260 | c • SmoothPathFamily.pathFamily F p := by |
| 261 | by_cases hc : c = 0 |
| 262 | · subst c |
| 263 | simp only [zero_smul] |
| 264 | simp only [SmoothPathFamily.pathFamily, dite_eq_left continuous_const] |
| 265 | rfl |
| 266 | by_cases hF : Continuous (fun s : Icc a b => F (p, s)) |
| 267 | · have hCF : Continuous (fun s : Icc a b => c • F (p, s)) := continuous_const.smul hF |
| 268 | ext s |
| 269 | rw [SmoothPathFamily.pathFamily_apply _ _ hCF, ContinuousMap.smul_apply, |
| 270 | SmoothPathFamily.pathFamily_apply _ _ hF] |
| 271 | · have hCF : ¬ Continuous (fun s : Icc a b => c • F (p, s)) := by |
| 272 | intro hh |
| 273 | have h : Continuous (fun s : Icc a b => c⁻¹ • (c • F (p, s))) := continuous_const.smul hh |
| 274 | apply hF |
| 275 | simpa only [smul_smul, inv_mul_cancel₀ hc, one_smul] using h |
| 276 | simp only [SmoothPathFamily.pathFamily, dite_eq_right hF, dite_eq_right hCF, smul_zero] |
| 277 | |
| 278 | theorem solution_zero_smul (hab : a ≤ b) (A : ParametricODE.Coefficient a b E) |
| 279 | (f : ParametricODE.Curve a b E) (c : ℝ) : |
| 280 | ParametricODE.solution hab A 0 (c • f) = c • ParametricODE.solution hab A 0 f := by |
| 281 | simp only [ParametricODE.solution, ParametricODE.source, map_zero, zero_add, map_smul] |
| 282 | |
| 283 | theorem solutionExtension_zero_smul (hab : a ≤ b) (A : ParametricODE.Coefficient a b E) |
| 284 | (f : ParametricODE.Curve a b E) (c s : ℝ) : |
| 285 | ParametricODE.solutionExtension hab A 0 (c • f) s = |
| 286 | c • ParametricODE.solutionExtension hab A 0 f s := by |
| 287 | have he : ParametricODE.applyCoefficient A (c • ParametricODE.solution hab A 0 f) + c • f = |
| 288 | c • (ParametricODE.applyCoefficient A (ParametricODE.solution hab A 0 f) + f) := by |
| 289 | ext t |
| 290 | simp only [ParametricODE.applyCoefficient, ContinuousMap.add_apply, |
| 291 | ContinuousMap.smul_apply, ContinuousMap.coe_mk, map_smul, smul_add] |
| 292 | simp only [ParametricODE.solutionExtension, solution_zero_smul, he, zero_add, |
| 293 | ParametricODE.extend, ContinuousMap.smul_apply, intervalIntegral.integral_smul] |
| 294 | |
| 295 | theorem anchoredSolve_scaleSource (d : LinearData P V E) (g : Geometry) (hab : a ≤ b) |
| 296 | (c : ℝ) (j : Frequency) (p : P) (Y : Plane) (s : ℝ) : |
| 297 | (scaleSource d c).anchoredSolve g hab j (p, Y) s = |
| 298 | c • d.anchoredSolve g hab j (p, Y) s := by |
| 299 | have hf : (scaleSource d c).forcingPath (a := a) (b := b) g j (p, Y) = |
| 300 | c • d.forcingPath g j (p, Y) := by |
| 301 | unfold LinearData.forcingPath |
| 302 | have hh : (scaleSource d c).forcingAlong g j = fun x => c • d.forcingAlong g j x := by |
| 303 | funext x |
| 304 | simp only [LinearData.forcingAlong, scaleSource, map_smul] |
| 305 | rw [hh, pathFamily_smul] |
| 306 | change ParametricODE.solutionExtension hab (d.coefficientPath g j (p, Y)) 0 |
| 307 | ((scaleSource d c).forcingPath g j (p, Y)) s = _ |
| 308 | rw [hf, solutionExtension_zero_smul] |
| 309 | rfl |
| 310 | |
| 311 | theorem copySolve_scaleSource (d : LinearData P V E) (g : Geometry) (hab : a ≤ b) |
| 312 | (c : ℝ) (j : Frequency) (p : P) (Y : Plane) : |
| 313 | (scaleSource d c).copySolve g hab j (p, Y) = c • d.copySolve g hab j (p, Y) := by |
| 314 | simp only [LinearData.copySolve, anchoredSolve_scaleSource] |
| 315 | |
| 316 | theorem localizedCopy_scaleSource (d : LinearData P V E) (g : Geometry) (hab : a ≤ b) |
| 317 | (c : ℝ) (κ : Plane → ℝ) (j : Frequency) (p : P) (Y : Plane) : |
| 318 | (scaleSource d c).localizedCopy g hab κ j (p, Y) = |
| 319 | c • d.localizedCopy g hab κ j (p, Y) := by |
| 320 | simp only [LinearData.localizedCopy, copySolve_scaleSource] |
| 321 | exact smul_comm _ _ _ |
| 322 | |
| 323 | theorem commonSolve_scaleSource (d : LinearData P V E) (g : Geometry) (hab : a ≤ b) |
| 324 | (c : ℝ) (κ : Plane → ℝ) (p : P) (Y : Plane) : |
| 325 | (scaleSource d c).commonSolve g hab κ (p, Y) = c • d.commonSolve g hab κ (p, Y) := by |
| 326 | simp only [LinearData.commonSolve, localizedCopy_scaleSource] |
| 327 | exact tsum_const_smul'' c |
| 328 | |
| 329 | end SourceScale |
| 330 | |
| 331 | /-! ## Transporting the native clock, its anchor, and its cutoff together -/ |
| 332 | |
| 333 | noncomputable def nativeTimeMap (τ rate : ℝ) (z : Plane) : Plane := |
| 334 | (z.1, τ + rate * z.2) |
| 335 | |
| 336 | theorem nativeTimeMap_continuous (τ rate : ℝ) : Continuous (nativeTimeMap τ rate) := |
| 337 | continuous_fst.prodMk (continuous_const.add (continuous_const.mul continuous_snd)) |
| 338 | |
| 339 | noncomputable def timeGeometry (g : Geometry) (τ rate : ℝ) (hrate : rate ≠ 0) : Geometry where |
| 340 | gap := g.gap |
| 341 | basis := CommonCoverClass.scaledBasis g.basis rate hrate |
| 342 | center := g.center + g.basis (0, τ) |
| 343 | |
| 344 | theorem point_timeGeometry (g : Geometry) (τ rate : ℝ) (hrate : rate ≠ 0) |
| 345 | (j : Frequency) (z : Plane) : |
| 346 | (timeGeometry g τ rate hrate).point j z = g.point j (nativeTimeMap τ rate z) := by |
| 347 | simp only [Geometry.point, timeGeometry, CommonCoverClass.scaledBasis_apply, nativeTimeMap] |
| 348 | have hv : (z.1, τ + rate * z.2) = (0, τ) + (z.1, rate * z.2) := by |
| 349 | ext <;> simp |
| 350 | rw [hv, map_add g.basis] |
| 351 | congr 1 |
| 352 | ext <;> simp only [Prod.fst_add, Prod.snd_add] <;> ring |
| 353 | |
| 354 | theorem coordinates_timeGeometry (g : Geometry) (τ rate : ℝ) (hrate : rate ≠ 0) |
| 355 | (j : Frequency) (Y : Plane) : |
| 356 | nativeTimeMap τ rate ((timeGeometry g τ rate hrate).coordinates j Y) = g.coordinates j Y := by |
| 357 | have h := point_timeGeometry g τ rate hrate j ((timeGeometry g τ rate hrate).coordinates j Y) |
| 358 | rw [Geometry.point_coordinates] at h |
| 359 | have hh := congrArg (g.coordinates j) h |
| 360 | rw [g.coordinates_point] at hh |
| 361 | exact hh.symm |
| 362 | |
| 363 | theorem coordinates_timeGeometry_fst (g : Geometry) (τ rate : ℝ) (hrate : rate ≠ 0) |
| 364 | (j : Frequency) (Y : Plane) : |
| 365 | ((timeGeometry g τ rate hrate).coordinates j Y).1 = (g.coordinates j Y).1 := by |
| 366 | simpa only [nativeTimeMap] using |
| 367 | congrArg Prod.fst (coordinates_timeGeometry g τ rate hrate j Y) |
| 368 | |
| 369 | theorem path_timeGeometry (g : Geometry) (τ rate : ℝ) (hrate : rate ≠ 0) |
| 370 | (j : Frequency) (Y : Plane) (s : ℝ) : |
| 371 | (timeGeometry g τ rate hrate).path j Y s = g.path j Y (τ + rate * s) := by |
| 372 | simp only [Geometry.path, point_timeGeometry, nativeTimeMap, coordinates_timeGeometry_fst] |
| 373 | |
| 374 | theorem time_interval_mono {a b rate : ℝ} (τ : ℝ) (hrate : 0 < rate) (hab : a ≤ b) : |
| 375 | τ + rate * a ≤ τ + rate * b := add_le_add_right (mul_le_mul_of_nonneg_left hab hrate.le) τ |
| 376 | |
| 377 | section TimeData |
| 378 | |
| 379 | variable {P V E : Type} [NormedAddCommGroup V] [NormedSpace ℝ V] |
| 380 | [NormedAddCommGroup E] [NormedSpace ℝ E] |
| 381 | |
| 382 | noncomputable def timeData (d : LinearData P V E) (τ rate : ℝ) : LinearData P V E where |
| 383 | coefficient z := rate • d.coefficient (z.1, nativeTimeMap τ rate z.2) |
| 384 | forcingMap z := rate • d.forcingMap (z.1, nativeTimeMap τ rate z.2) |
| 385 | source := d.source |
| 386 | |
| 387 | theorem coefficientAlong_timeData (d : LinearData P V E) (g : Geometry) |
| 388 | (τ rate : ℝ) (hrate : rate ≠ 0) (j : Frequency) (p : P) (Y : Plane) (s : ℝ) : |
| 389 | (timeData d τ rate).coefficientAlong (timeGeometry g τ rate hrate) j ((p, Y), s) = |
| 390 | rate • d.coefficientAlong g j ((p, Y), τ + rate * s) := by |
| 391 | simp only [LinearData.coefficientAlong, timeData, nativeTimeMap, coordinates_timeGeometry_fst] |
| 392 | |
| 393 | theorem forcingAlong_timeData (d : LinearData P V E) (g : Geometry) |
| 394 | (τ rate : ℝ) (hrate : rate ≠ 0) (j : Frequency) (p : P) (Y : Plane) (s : ℝ) : |
| 395 | (timeData d τ rate).forcingAlong (timeGeometry g τ rate hrate) j ((p, Y), s) = |
| 396 | rate • d.forcingAlong g j ((p, Y), τ + rate * s) := by |
| 397 | simp only [LinearData.forcingAlong, timeData, nativeTimeMap, |
| 398 | coordinates_timeGeometry_fst, path_timeGeometry, _root_.smul_apply] |
| 399 | |
| 400 | variable [NormedAddCommGroup P] [NormedSpace ℝ P] |
| 401 | |
| 402 | omit [NormedSpace ℝ P] in |
| 403 | theorem timeData_coefficient_continuousOn (d : LinearData P V E) (τ rate : ℝ) {U : Set P} |
| 404 | (hA : ContinuousOn d.coefficient (U ×ˢ univ)) : |
| 405 | ContinuousOn (timeData d τ rate).coefficient (U ×ˢ univ) := by |
| 406 | have hmap : Continuous (fun z : P × Plane => (z.1, nativeTimeMap τ rate z.2)) := |
| 407 | continuous_fst.prodMk ((nativeTimeMap_continuous τ rate).comp continuous_snd) |
| 408 | exact (hA.comp hmap.continuousOn (fun z hz => ⟨hz.1, mem_univ _⟩)).const_smul rate |
| 409 | |
| 410 | omit [NormedSpace ℝ P] in |
| 411 | theorem timeData_forcingMap_continuousOn (d : LinearData P V E) (τ rate : ℝ) {U : Set P} |
| 412 | (hB : ContinuousOn d.forcingMap (U ×ˢ univ)) : |
| 413 | ContinuousOn (timeData d τ rate).forcingMap (U ×ˢ univ) := by |
| 414 | have hmap : Continuous (fun z : P × Plane => (z.1, nativeTimeMap τ rate z.2)) := |
| 415 | continuous_fst.prodMk ((nativeTimeMap_continuous τ rate).comp continuous_snd) |
| 416 | exact (hB.comp hmap.continuousOn (fun z hz => ⟨hz.1, mem_univ _⟩)).const_smul rate |
| 417 | |
| 418 | variable [CompleteSpace E] {a b : ℝ} |
| 419 | |
| 420 | /-- Clock transport is proved from uniqueness of the actual zero-entry |
| 421 | Volterra solution on the transported interval. -/ |
| 422 | theorem anchoredSolve_timeData (d : LinearData P V E) (g : Geometry) |
| 423 | (τ rate : ℝ) (hrate : 0 < rate) (hab : a ≤ b) {U : Set P} |
| 424 | (hA : ContinuousOn d.coefficient (U ×ˢ univ)) |
| 425 | (hB : ContinuousOn d.forcingMap (U ×ˢ univ)) |
| 426 | (hf : ContinuousOn d.source (U ×ˢ univ)) |
| 427 | (j : Frequency) {p : P} (hp : p ∈ U) (Y : Plane) {s : ℝ} (hs : s ∈ Icc a b) : |
| 428 | (timeData d τ rate).anchoredSolve (timeGeometry g τ rate hrate.ne') hab j (p, Y) s = |
| 429 | d.anchoredSolve g (time_interval_mono τ hrate hab) j (p, Y) (τ + rate * s) := by |
| 430 | let u := fun t => d.anchoredSolve g (time_interval_mono τ hrate hab) j (p, Y) (τ + rate * t) |
| 431 | have hu0 : u a = 0 := d.anchoredSolve_initial g _ j (p, Y) |
| 432 | have hu (t : ℝ) (ht : t ∈ Icc a b) : HasDerivAt u |
| 433 | ((timeData d τ rate).coefficientAlong (timeGeometry g τ rate hrate.ne') j ((p, Y), t) (u t) + |
| 434 | (timeData d τ rate).forcingAlong (timeGeometry g τ rate hrate.ne') j ((p, Y), t)) t := by |
| 435 | have ht' : τ + rate * t ∈ Icc (τ + rate * a) (τ + rate * b) := |
| 436 | ⟨time_interval_mono τ hrate ht.1, time_interval_mono τ hrate ht.2⟩ |
| 437 | have hold := d.anchoredSolve_hasDerivAt g (time_interval_mono τ hrate hab) |
| 438 | j hA hB hf hp Y ⟨τ + rate * t, ht'⟩ |
| 439 | have hclock : HasDerivAt (fun t : ℝ => τ + rate * t) rate t := by |
| 440 | simpa only [mul_one, id_eq] using ((hasDerivAt_id t).const_mul rate).const_add τ |
| 441 | have hderiv := hold.scomp t hclock |
| 442 | simpa only [u, coefficientAlong_timeData, forcingAlong_timeData, |
| 443 | _root_.smul_apply, smul_add, Function.comp_def] using hderiv |
| 444 | exact ((timeData d τ rate).anchoredSolve_unique (timeGeometry g τ rate hrate.ne') hab j |
| 445 | (timeData_coefficient_continuousOn d τ rate hA) |
| 446 | (timeData_forcingMap_continuousOn d τ rate hB) hf hp Y hu0 hu hs).symm |
| 447 | |
| 448 | theorem copySolve_timeData (d : LinearData P V E) (g : Geometry) |
| 449 | (τ rate : ℝ) (hrate : 0 < rate) (hab : a ≤ b) {U : Set P} |
| 450 | (hA : ContinuousOn d.coefficient (U ×ˢ univ)) |
| 451 | (hB : ContinuousOn d.forcingMap (U ×ˢ univ)) |
| 452 | (hf : ContinuousOn d.source (U ×ˢ univ)) |
| 453 | (j : Frequency) {p : P} (hp : p ∈ U) (Y : Plane) |
| 454 | (hs : ((timeGeometry g τ rate hrate.ne').coordinates j Y).2 ∈ Icc a b) : |
| 455 | (timeData d τ rate).copySolve (timeGeometry g τ rate hrate.ne') hab j (p, Y) = |
| 456 | d.copySolve g (time_interval_mono τ hrate hab) j (p, Y) := by |
| 457 | unfold LinearData.copySolve |
| 458 | rw [anchoredSolve_timeData d g τ rate hrate hab hA hB hf j hp Y hs] |
| 459 | congr 1 |
| 460 | exact congrArg Prod.snd (coordinates_timeGeometry g τ rate hrate.ne' j Y) |
| 461 | |
| 462 | theorem localizedCopy_timeData (d : LinearData P V E) (g : Geometry) |
| 463 | (τ rate : ℝ) (hrate : 0 < rate) (hab : a ≤ b) {U : Set P} |
| 464 | (hA : ContinuousOn d.coefficient (U ×ˢ univ)) |
| 465 | (hB : ContinuousOn d.forcingMap (U ×ˢ univ)) |
| 466 | (hf : ContinuousOn d.source (U ×ˢ univ)) |
| 467 | (κ : Plane → ℝ) (hκ : support κ ⊆ univ ×ˢ Icc (τ + rate * a) (τ + rate * b)) |
| 468 | (j : Frequency) {p : P} (hp : p ∈ U) (Y : Plane) : |
| 469 | (timeData d τ rate).localizedCopy (timeGeometry g τ rate hrate.ne') hab |
| 470 | (κ ∘ nativeTimeMap τ rate) j (p, Y) = |
| 471 | d.localizedCopy g (time_interval_mono τ hrate hab) κ j (p, Y) := by |
| 472 | simp only [LinearData.localizedCopy, Function.comp_apply, coordinates_timeGeometry] |
| 473 | by_cases hz : κ (g.coordinates j Y) = 0 |
| 474 | · simp only [hz, zero_smul] |
| 475 | · congr 1 |
| 476 | apply copySolve_timeData d g τ rate hrate hab hA hB hf j hp Y |
| 477 | have hbounds := (hκ hz).2 |
| 478 | have ht := congrArg Prod.snd (coordinates_timeGeometry g τ rate hrate.ne' j Y) |
| 479 | change τ + rate * ((timeGeometry g τ rate hrate.ne').coordinates j Y).2 = _ at ht |
| 480 | constructor <;> nlinarith [hbounds.1, hbounds.2] |
| 481 | |
| 482 | theorem commonSolve_timeData (d : LinearData P V E) (g : Geometry) |
| 483 | (τ rate : ℝ) (hrate : 0 < rate) (hab : a ≤ b) {U : Set P} |
| 484 | (hA : ContinuousOn d.coefficient (U ×ˢ univ)) |
| 485 | (hB : ContinuousOn d.forcingMap (U ×ˢ univ)) |
| 486 | (hf : ContinuousOn d.source (U ×ˢ univ)) |
| 487 | (κ : Plane → ℝ) (hκ : support κ ⊆ univ ×ˢ Icc (τ + rate * a) (τ + rate * b)) |
| 488 | {p : P} (hp : p ∈ U) (Y : Plane) : |
| 489 | (timeData d τ rate).commonSolve (timeGeometry g τ rate hrate.ne') hab |
| 490 | (κ ∘ nativeTimeMap τ rate) (p, Y) = |
| 491 | d.commonSolve g (time_interval_mono τ hrate hab) κ (p, Y) := by |
| 492 | apply tsum_congr |
| 493 | intro j |
| 494 | exact localizedCopy_timeData d g τ rate hrate hab hA hB hf κ hκ j hp Y |
| 495 | |
| 496 | end TimeData |
| 497 | |
| 498 | /-! ## A single output represented in all transported charts -/ |
| 499 | |
| 500 | section PhysicalCompatibility |
| 501 | |
| 502 | variable {P Q V E X I : Type} |
| 503 | [NormedAddCommGroup P] [NormedSpace ℝ P] |
| 504 | [NormedAddCommGroup V] [NormedSpace ℝ V] |
| 505 | [NormedAddCommGroup E] [NormedSpace ℝ E] [CompleteSpace E] |
| 506 | |
| 507 | noncomputable def transportData (d : LinearData P V E) (φ : Q → P) (k : ℕ) |
| 508 | (τ rate amplitude : ℝ) : LinearData Q V E := |
| 509 | scaleSource (transformData (timeData d τ rate) φ k) amplitude |
| 510 | |
| 511 | noncomputable def transportGeometry (g : Geometry) (k : ℕ) (τ rate : ℝ) (hrate : rate ≠ 0) : |
| 512 | Geometry := refineGeometry (timeGeometry g τ rate hrate) k |
| 513 | |
| 514 | theorem commonSolve_transport {a b : ℝ} (d : LinearData P V E) (φ : Q → P) |
| 515 | (g : Geometry) (hab : a ≤ b) (k : ℕ) (τ rate amplitude : ℝ) (hrate : 0 < rate) |
| 516 | {U : Set P} (hA : ContinuousOn d.coefficient (U ×ˢ univ)) |
| 517 | (hB : ContinuousOn d.forcingMap (U ×ˢ univ)) (hf : ContinuousOn d.source (U ×ˢ univ)) |
| 518 | (κ : Plane → ℝ) (hκ : support κ ⊆ univ ×ˢ Icc (τ + rate * a) (τ + rate * b)) |
| 519 | (q : Q) (hq : φ q ∈ U) (Y : Plane) : |
| 520 | (transportData d φ k τ rate amplitude).commonSolve |
| 521 | (transportGeometry g k τ rate hrate.ne') hab (κ ∘ nativeTimeMap τ rate) (q, Y) = |
| 522 | amplitude • d.commonSolve g (time_interval_mono τ hrate hab) κ (φ q, coverPower k Y) := by |
| 523 | unfold transportData transportGeometry |
| 524 | rw [commonSolve_scaleSource, commonSolve_transform, |
| 525 | commonSolve_timeData d g τ rate hrate hab hA hB hf κ hκ hq] |
| 526 | |
| 527 | noncomputable def physicalOutput {a b : ℝ} (d : LinearData P V E) (g : Geometry) |
| 528 | (hab : a ≤ b) (κ : Plane → ℝ) (χ : X → P × Plane) : X → E := |
| 529 | fun x => d.commonSolve g hab κ (χ x) |
| 530 | |
| 531 | /-- The single reference output is an actual smooth field under the usual |
| 532 | compact native cutoff and smooth input hypotheses. Local finiteness of the |
| 533 | periodization is supplied by the constructed copy solver. -/ |
| 534 | theorem physicalOutput_contDiffOn [NormedAddCommGroup X] [NormedSpace ℝ X] |
| 535 | {a b : ℝ} (d : LinearData P V E) (g : Geometry) (hab : a ≤ b) |
| 536 | {U : Set P} (hU : IsOpen U) |
| 537 | (hA : ContDiffOn ℝ ∞ d.coefficient (U ×ˢ univ)) |
| 538 | (hB : ContDiffOn ℝ ∞ d.forcingMap (U ×ˢ univ)) |
| 539 | (hf : ContDiffOn ℝ ∞ d.source (U ×ˢ univ)) |
| 540 | {κ : Plane → ℝ} (hκ : ContDiff ℝ ∞ κ) (hcκ : HasCompactSupport κ) |
| 541 | (hsupp : tsupport κ ⊆ univ ×ˢ Ioo a b) |
| 542 | {Ω : Set X} {χ : X → P × Plane} (hχ : ContDiffOn ℝ ∞ χ Ω) |
| 543 | (hmaps : MapsTo χ Ω (U ×ˢ univ)) : |
| 544 | ContDiffOn ℝ ∞ (physicalOutput d g hab κ χ) Ω := |
| 545 | (d.commonSolve_contDiffOn g hab hU hA hB hf hκ hcκ hsupp).comp hχ hmaps |
| 546 | |
| 547 | /-- The family of chart solves represents one explicitly constructed |
| 548 | physical field. Assumptions concern only input transport and the coordinate |
| 549 | maps; no output equality or chartwise existence witness is assumed. -/ |
| 550 | theorem commonSolve_family_represents |
| 551 | {A B : ℝ} (hAB : A ≤ B) (d : LinearData P V E) (g : Geometry) |
| 552 | {U : Set P} (hA : ContinuousOn d.coefficient (U ×ˢ univ)) |
| 553 | (hB : ContinuousOn d.forcingMap (U ×ˢ univ)) (hf : ContinuousOn d.source (U ×ˢ univ)) |
| 554 | (κ : Plane → ℝ) (hκ : support κ ⊆ univ ×ˢ Icc A B) |
| 555 | (χ : X → P × Plane) (domains : I → Set X) |
| 556 | (charts : I → X → Q × Plane) (φ : I → Q → P) (gaps : I → ℕ) |
| 557 | (entry exit shift rate amplitude : I → ℝ) |
| 558 | (hrate : ∀ i, 0 < rate i) (hinterval : ∀ i, entry i ≤ exit i) |
| 559 | (hentry : ∀ i, shift i + rate i * entry i = A) |
| 560 | (hexit : ∀ i, shift i + rate i * exit i = B) |
| 561 | (hchart : ∀ i x, x ∈ domains i → |
| 562 | (φ i (charts i x).1, coverPower (gaps i) (charts i x).2) = χ x) |
| 563 | (hslow : ∀ i x, x ∈ domains i → (χ x).1 ∈ U) : |
| 564 | ∀ i x, x ∈ domains i → |
| 565 | (transportData d (φ i) (gaps i) (shift i) (rate i) (amplitude i)).commonSolve |
| 566 | (transportGeometry g (gaps i) (shift i) (rate i) (hrate i).ne') (hinterval i) |
| 567 | (κ ∘ nativeTimeMap (shift i) (rate i)) (charts i x) = |
| 568 | amplitude i • physicalOutput d g hAB κ χ x := by |
| 569 | intro i x hx |
| 570 | have hq : φ i (charts i x).1 ∈ U := by |
| 571 | have he := congrArg Prod.fst (hchart i x hx) |
| 572 | change φ i (charts i x).1 = (χ x).1 at he |
| 573 | rw [he] |
| 574 | exact hslow i x hx |
| 575 | have hκi : support κ ⊆ univ ×ˢ Icc (shift i + rate i * entry i) (shift i + rate i * exit i) := by |
| 576 | simpa only [hentry i, hexit i] using hκ |
| 577 | have h := commonSolve_transport d (φ i) g (hinterval i) (gaps i) |
| 578 | (shift i) (rate i) (amplitude i) (hrate i) hA hB hf κ hκi |
| 579 | (charts i x).1 hq (charts i x).2 |
| 580 | simpa only [hentry i, hexit i, hchart i x hx, physicalOutput] using h |
| 581 | |
| 582 | end PhysicalCompatibility |
| 583 | |
| 584 | section ConcreteBandChart |
| 585 | |
| 586 | variable {V E : Type} [NormedAddCommGroup V] [NormedSpace ℝ V] |
| 587 | [NormedAddCommGroup E] [NormedSpace ℝ E] [CompleteSpace E] {a b : ℝ} |
| 588 | |
| 589 | /-- The slow/torus argument is exactly the existing common-band chart map. -/ |
| 590 | theorem commonSolve_bandCommonChart (d : LinearData CommonCoverClass.SlowPoint V E) |
| 591 | (g : Geometry) (hab : a ≤ b) (D : ℝ) (n m k : ℕ) (κ : Plane → ℝ) |
| 592 | (x : CommonCoverClass.SlowPoint × Plane) : |
| 593 | (transformData d (CommonCoverClass.bandChart D n m) k).commonSolve |
| 594 | (refineGeometry g k) hab κ x = |
| 595 | d.commonSolve g hab κ (CommonCoverClass.bandCommonChart D n m true k x) := by |
| 596 | simpa only [CommonCoverClass.bandCommonChart_apply, CommonCoverClass.coverChange, |
| 597 | Bool.true_eq, ite_true, ContinuousLinearEquiv.coe_coe] using |
| 598 | commonSolve_transform d (CommonCoverClass.bandChart D n m) g hab k κ x.1 x.2 |
| 599 | |
| 600 | end ConcreteBandChart |
| 601 | |
| 602 | /-! ## Binding existing chart data through primitive input identities -/ |
| 603 | |
| 604 | section InputCompatibility |
| 605 | |
| 606 | variable {P Q V E X I : Type} |
| 607 | [NormedAddCommGroup V] [NormedSpace ℝ V] |
| 608 | [NormedAddCommGroup E] [NormedSpace ℝ E] |
| 609 | |
| 610 | /-- These are identities of the coefficient and converted source before |
| 611 | any integration. They allow different source/map scalings with the same |
| 612 | product, and impose no assertion about solved fields. -/ |
| 613 | structure SameInputsAt (d e : LinearData P V E) (p : P) : Prop where |
| 614 | coefficient : ∀ z, d.coefficient (p, z) = e.coefficient (p, z) |
| 615 | forcing : ∀ z Y, d.forcingMap (p, z) (d.source (p, Y)) = |
| 616 | e.forcingMap (p, z) (e.source (p, Y)) |
| 617 | |
| 618 | variable [CompleteSpace E] {a b : ℝ} |
| 619 | |
| 620 | theorem anchoredSolve_eq_of_sameInputs (d e : LinearData P V E) (g : Geometry) |
| 621 | (hab : a ≤ b) (p : P) (hi : SameInputsAt d e p) (j : Frequency) (Y : Plane) (s : ℝ) : |
| 622 | d.anchoredSolve g hab j (p, Y) s = e.anchoredSolve g hab j (p, Y) s := by |
| 623 | have hA : d.coefficientPath (a := a) (b := b) g j (p, Y) = |
| 624 | e.coefficientPath g j (p, Y) := by |
| 625 | apply pathFamily_congr |
| 626 | intro t |
| 627 | exact hi.coefficient _ |
| 628 | have hf : d.forcingPath (a := a) (b := b) g j (p, Y) = e.forcingPath g j (p, Y) := by |
| 629 | apply pathFamily_congr |
| 630 | intro t |
| 631 | exact hi.forcing _ _ |
| 632 | simp only [LinearData.anchoredSolve, hA, hf] |
| 633 | |
| 634 | theorem commonSolve_eq_of_sameInputs (d e : LinearData P V E) (g : Geometry) |
| 635 | (hab : a ≤ b) (p : P) (hi : SameInputsAt d e p) (κ : Plane → ℝ) (Y : Plane) : |
| 636 | d.commonSolve g hab κ (p, Y) = e.commonSolve g hab κ (p, Y) := by |
| 637 | apply tsum_congr |
| 638 | intro j |
| 639 | simp only [LinearData.localizedCopy, LinearData.copySolve, |
| 640 | anchoredSolve_eq_of_sameInputs d e g hab p hi] |
| 641 | |
| 642 | variable [NormedAddCommGroup P] [NormedSpace ℝ P] |
| 643 | |
| 644 | theorem commonSolve_of_compatibleInputs (d : LinearData P V E) (e : LinearData Q V E) |
| 645 | (φ : Q → P) (g : Geometry) (hab : a ≤ b) (k : ℕ) |
| 646 | (τ rate amplitude : ℝ) (hrate : 0 < rate) |
| 647 | {U : Set P} (hA : ContinuousOn d.coefficient (U ×ˢ univ)) |
| 648 | (hB : ContinuousOn d.forcingMap (U ×ˢ univ)) (hf : ContinuousOn d.source (U ×ˢ univ)) |
| 649 | (κ : Plane → ℝ) (hκ : support κ ⊆ univ ×ˢ Icc (τ + rate * a) (τ + rate * b)) |
| 650 | (q : Q) (hq : φ q ∈ U) |
| 651 | (hi : SameInputsAt e (transportData d φ k τ rate amplitude) q) (Y : Plane) : |
| 652 | e.commonSolve (transportGeometry g k τ rate hrate.ne') hab |
| 653 | (κ ∘ nativeTimeMap τ rate) (q, Y) = |
| 654 | amplitude • d.commonSolve g (time_interval_mono τ hrate hab) κ (φ q, coverPower k Y) := by |
| 655 | rw [commonSolve_eq_of_sameInputs e (transportData d φ k τ rate amplitude) |
| 656 | _ hab q hi] |
| 657 | exact commonSolve_transport d φ g hab k τ rate amplitude hrate hA hB hf κ hκ q hq Y |
| 658 | |
| 659 | /-- Existing, separately defined chart inputs produce the same single |
| 660 | physical output as the canonical transported data when their primitive |
| 661 | coefficient and forcing identities are verified. -/ |
| 662 | theorem compatible_family_represents |
| 663 | {A B : ℝ} (hAB : A ≤ B) (d : LinearData P V E) (g : Geometry) |
| 664 | {U : Set P} (hA : ContinuousOn d.coefficient (U ×ˢ univ)) |
| 665 | (hB : ContinuousOn d.forcingMap (U ×ˢ univ)) (hf : ContinuousOn d.source (U ×ˢ univ)) |
| 666 | (κ : Plane → ℝ) (hκ : support κ ⊆ univ ×ˢ Icc A B) |
| 667 | (χ : X → P × Plane) (domains : I → Set X) |
| 668 | (charts : I → X → Q × Plane) (φ : I → Q → P) (gaps : I → ℕ) |
| 669 | (entry exit shift rate amplitude : I → ℝ) |
| 670 | (hrate : ∀ i, 0 < rate i) (hinterval : ∀ i, entry i ≤ exit i) |
| 671 | (hentry : ∀ i, shift i + rate i * entry i = A) |
| 672 | (hexit : ∀ i, shift i + rate i * exit i = B) |
| 673 | (hchart : ∀ i x, x ∈ domains i → |
| 674 | (φ i (charts i x).1, coverPower (gaps i) (charts i x).2) = χ x) |
| 675 | (hslow : ∀ i x, x ∈ domains i → (χ x).1 ∈ U) |
| 676 | (data : I → LinearData Q V E) |
| 677 | (hdata : ∀ i x, x ∈ domains i → SameInputsAt (data i) |
| 678 | (transportData d (φ i) (gaps i) (shift i) (rate i) (amplitude i)) (charts i x).1) : |
| 679 | ∀ i x, x ∈ domains i → |
| 680 | (data i).commonSolve |
| 681 | (transportGeometry g (gaps i) (shift i) (rate i) (hrate i).ne') (hinterval i) |
| 682 | (κ ∘ nativeTimeMap (shift i) (rate i)) (charts i x) = |
| 683 | amplitude i • physicalOutput d g hAB κ χ x := by |
| 684 | intro i x hx |
| 685 | have hi := commonSolve_eq_of_sameInputs (data i) |
| 686 | (transportData d (φ i) (gaps i) (shift i) (rate i) (amplitude i)) |
| 687 | (transportGeometry g (gaps i) (shift i) (rate i) (hrate i).ne') (hinterval i) |
| 688 | (charts i x).1 (hdata i x hx) (κ ∘ nativeTimeMap (shift i) (rate i)) (charts i x).2 |
| 689 | exact hi.trans (commonSolve_family_represents hAB d g hA hB hf κ hκ χ domains charts φ gaps |
| 690 | entry exit shift rate amplitude hrate hinterval hentry hexit hchart hslow i x hx) |
| 691 | |
| 692 | end InputCompatibility |
| 693 | |
| 694 | /-! ## Why the anchor must be transported as input data -/ |
| 695 | |
| 696 | noncomputable def constantForcing : LinearData ℝ ℝ ℝ where |
| 697 | coefficient := fun _ => 0 |
| 698 | forcingMap := fun _ => ContinuousLinearMap.id ℝ ℝ |
| 699 | source := fun _ => 1 |
| 700 | |
| 701 | theorem constantForcing_anchoredSolve {a b : ℝ} (g : Geometry) (hab : a ≤ b) |
| 702 | (j : Frequency) (p : ℝ) (Y : Plane) {s : ℝ} (hs : s ∈ Icc a b) : |
| 703 | constantForcing.anchoredSolve g hab j (p, Y) s = s - a := by |
| 704 | have h := constantForcing.anchoredSolve_unique g hab j (U := univ) |
| 705 | continuousOn_const continuousOn_const continuousOn_const (mem_univ p) Y |
| 706 | (u := fun t => t - a) (sub_self a) (fun t _ => by |
| 707 | simpa only [LinearData.coefficientAlong, LinearData.forcingAlong, constantForcing, |
| 708 | _root_.zero_apply, ContinuousLinearMap.id_apply, zero_add, id_eq] using |
| 709 | (hasDerivAt_id t).sub_const a) |
| 710 | exact (h hs).symm |
| 711 | |
| 712 | /-- Even smooth constant source/coefficient data do not make differently |
| 713 | anchored solves equal. This is an actual constructed-solution counterexample. -/ |
| 714 | theorem changing_anchor_changes_solution (g : Geometry) : |
| 715 | constantForcing.anchoredSolve g (a := 0) (b := 1) (by norm_num) 0 (0, 0) 0 ≠ |
| 716 | constantForcing.anchoredSolve g (a := -1) (b := 1) (by norm_num) 0 (0, 0) 0 := by |
| 717 | rw [constantForcing_anchoredSolve g _ _ _ _ (by norm_num : (0 : ℝ) ∈ Icc 0 1), |
| 718 | constantForcing_anchoredSolve g _ _ _ _ (by norm_num : (0 : ℝ) ∈ Icc (-1) 1)] |
| 719 | norm_num |
| 720 | |
| 721 | end NavierStokes.CopySolveCompatibility |