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

chore(NavierStokes/Copy): delete 32 declarations nothing uses
Browse filesCo-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Checks
build Program · lake build and Comparator
Details
challenge Program · challenge files and build config
Details
+0 −102 NavierStokes/CopyAngularInvariance.lean View file
| @@ -61,12 +61,6 @@ theorem fderiv_invariant (hf : Invariant θ f) : Invariant θ (fderiv ℝ f) := | ||
| 61 | 61 | have he : (fun y => f (y + t • θ)) = f := funext (fun y => hf y t) |
| 62 | 62 | rw [← fderiv_comp_add_right (t • θ), he] |
| 63 | 63 | |
| 64 | -theorem iteratedFDeriv_invariant (hf : Invariant θ f) (j : ℕ) : | |
| 65 | - Invariant θ (iteratedFDeriv ℝ j f) := by | |
| 66 | - intro x t | |
| 67 | - have he : (fun y => f (y + t • θ)) = f := funext (fun y => hf y t) | |
| 68 | - rw [← iteratedFDeriv_comp_add_right j (t • θ) x, he] | |
| 69 | - | |
| 70 | 64 | theorem along {V : D → D} (hf : Invariant θ f) (hV : Invariant θ V) : |
| 71 | 65 | Invariant θ (HarmonicCalculus.along V f) := by |
| 72 | 66 | intro x t |
| @@ -161,33 +155,6 @@ theorem copySolve_invariant (d : LinearData P V E) (g : Geometry) (hab : a ≤ b | ||
| 161 | 155 | unfold LinearData.copySolve |
| 162 | 156 | exact slow_shift_apply (anchoredSolve_invariant d g hab θ hA hB hf j _) p Y t |
| 163 | 157 | |
| 164 | -theorem localizedCopy_invariant (d : LinearData P V E) (g : Geometry) (hab : a ≤ b) | |
| 165 | - (θ : P) (hA : Invariant (θ, (0 : Plane)) d.coefficient) | |
| 166 | - (hB : Invariant (θ, (0 : Plane)) d.forcingMap) | |
| 167 | - (hf : Invariant (θ, (0 : Plane)) d.source) (κ : Plane → ℝ) (j : Frequency) : | |
| 168 | - Invariant (θ, (0 : Plane)) (d.localizedCopy g hab κ j) := by | |
| 169 | - rintro ⟨p, Y⟩ t | |
| 170 | - change d.localizedCopy g hab κ j (p + t • θ, Y + t • (0 : Plane)) = _ | |
| 171 | - rw [smul_zero, add_zero] | |
| 172 | - simp only [LinearData.localizedCopy, slow_shift_apply (copySolve_invariant d g hab θ hA hB hf j)] | |
| 173 | - | |
| 174 | -theorem commonSolve_invariant (d : LinearData P V E) (g : Geometry) (hab : a ≤ b) | |
| 175 | - (θ : P) (hA : Invariant (θ, (0 : Plane)) d.coefficient) | |
| 176 | - (hB : Invariant (θ, (0 : Plane)) d.forcingMap) | |
| 177 | - (hf : Invariant (θ, (0 : Plane)) d.source) (κ : Plane → ℝ) : | |
| 178 | - Invariant (θ, (0 : Plane)) (d.commonSolve g hab κ) := by | |
| 179 | - intro x t | |
| 180 | - apply tsum_congr | |
| 181 | - intro j | |
| 182 | - exact localizedCopy_invariant d g hab θ hA hB hf κ j x t | |
| 183 | - | |
| 184 | -theorem copySolve_angular_zero (d : LinearData P V E) (g : Geometry) (hab : a ≤ b) | |
| 185 | - (θ : P) (hA : Invariant (θ, (0 : Plane)) d.coefficient) | |
| 186 | - (hB : Invariant (θ, (0 : Plane)) d.forcingMap) | |
| 187 | - (hf : Invariant (θ, (0 : Plane)) d.source) (j : Frequency) (x : P × Plane) : | |
| 188 | - HarmonicCalculus.along (fun _ => (θ, (0 : Plane))) (d.copySolve g hab j) x = 0 := | |
| 189 | - (copySolve_invariant d g hab θ hA hB hf j).along_zero x | |
| 190 | - | |
| 191 | 158 | end CopySolve |
| 192 | 159 | |
| 193 | 160 | /-! ## Tangent data and the actual pressure formula -/ |
| @@ -260,12 +227,6 @@ theorem TangentInvariant.copyPressure_invariant {θ : P} {d : TangentData P H} | ||
| 260 | 227 | Invariant (θ, (0 : Plane)) (copyPressure d g hab j K) := |
| 261 | 228 | (h.copyPressureReal_invariant g hab j).map (fun r : ℝ => Complex.I * (r : ℂ) / (K : ℂ)) |
| 262 | 229 | |
| 263 | -theorem TangentInvariant.copyPressure_angular_zero {θ : P} {d : TangentData P H} | |
| 264 | - (h : TangentInvariant θ d) (g : Geometry) (hab : a ≤ b) (j : Frequency) (K : ℝ) | |
| 265 | - (x : P × Plane) : | |
| 266 | - HarmonicCalculus.along (fun _ => (θ, (0 : Plane))) (copyPressure d g hab j K) x = 0 := | |
| 267 | - (h.copyPressure_invariant g hab j K).along_zero x | |
| 268 | - | |
| 269 | 230 | theorem nativeCutoff_invariant (θ : P) (g : Geometry) (κ : Plane → ℝ) (j : Frequency) : |
| 270 | 231 | Invariant (θ, (0 : Plane)) (fun x : P × Plane => κ (g.coordinates j x.2)) := by |
| 271 | 232 | have hY : Invariant (θ, (0 : Plane)) (fun x : P × Plane => x.2) := by |
| @@ -286,12 +247,6 @@ theorem TangentInvariant.commonPressure_invariant {θ : P} {d : TangentData P H} | ||
| 286 | 247 | exact (nativeCutoff_invariant θ g κ j).map₂ (h.copyPressure_invariant g hab j K) |
| 287 | 248 | (fun r p => (r : ℂ) * p) |
| 288 | 249 | |
| 289 | -theorem TangentInvariant.commonPressure_angular_zero {θ : P} {d : TangentData P H} | |
| 290 | - (h : TangentInvariant θ d) (g : Geometry) (hab : a ≤ b) (κ : Plane → ℝ) (K : ℝ) | |
| 291 | - (x : P × Plane) : | |
| 292 | - HarmonicCalculus.along (fun _ => (θ, (0 : Plane))) (commonPressure d g hab κ K) x = 0 := | |
| 293 | - (h.commonPressure_invariant g hab κ K).along_zero x | |
| 294 | - | |
| 295 | 250 | end Tangent |
| 296 | 251 | |
| 297 | 252 | /-! ## Invariance of the actual stripped cylindrical curl -/ |
| @@ -338,13 +293,6 @@ theorem realizedCoefficient_invariant (hR : Invariant θ R) | ||
| 338 | 293 | ha.map₂ (curlRemainder_invariant hR hr hθ hz (coefficient_invariant hR hr hθ hz hΦ ha) K) |
| 339 | 294 | (fun u v => u + v) |
| 340 | 295 | |
| 341 | -theorem realizedCoefficient_angular_zero (hR : Invariant θ R) | |
| 342 | - (hr : Invariant θ Vr) (hθ : Invariant θ Vθ) (hz : Invariant θ Vz) | |
| 343 | - (hΦ : AffinePhase θ m Φ) (ha : Invariant θ a) (K : ℝ) (i : Fin 3) (x : D) : | |
| 344 | - HarmonicCalculus.along (fun _ => θ) | |
| 345 | - (fun y => CurlClassBounds.realizedCoefficient K R Vr Vθ Vz Φ a y i) x = 0 := | |
| 346 | - ((realizedCoefficient_invariant hR hr hθ hz hΦ ha K).component i).along_zero x | |
| 347 | - | |
| 348 | 296 | end Curl |
| 349 | 297 | |
| 350 | 298 | section ActualCopyCurl |
| @@ -352,21 +300,6 @@ section ActualCopyCurl | ||
| 352 | 300 | variable {P : Type} [NormedAddCommGroup P] [NormedSpace ℝ P] |
| 353 | 301 | {θ : P} {d : TangentData P CurlClassBounds.RealVector} {a b : ℝ} |
| 354 | 302 | |
| 355 | -/-- The amplitude premise of the curl invariance theorem is discharged by | |
| 356 | -the actual tangent copy solve and invariant scalar mask. -/ | |
| 357 | -theorem actualCopy_realizedCoefficient_invariant (hd : TangentInvariant θ d) | |
| 358 | - (g : Geometry) (hab : a ≤ b) (j : Frequency) | |
| 359 | - {R ψ : P × Plane → ℝ} {Vr Vz : P × Plane → P × Plane} | |
| 360 | - {Φ : P × Plane → ℝ} {m : ℝ} | |
| 361 | - (hR : Invariant (θ, (0 : Plane)) R) (hψ : Invariant (θ, (0 : Plane)) ψ) | |
| 362 | - (hr : Invariant (θ, (0 : Plane)) Vr) (hz : Invariant (θ, (0 : Plane)) Vz) | |
| 363 | - (hΦ : AffinePhase (θ, (0 : Plane)) m Φ) (K : ℝ) : | |
| 364 | - Invariant (θ, (0 : Plane)) | |
| 365 | - (CurlClassBounds.realizedCoefficient K R Vr (fun _ => (θ, (0 : Plane))) Vz Φ | |
| 366 | - (fun x => ψ x • CurlClassBounds.complexify (d.linearData.copySolve g hab j x))) := by | |
| 367 | - apply realizedCoefficient_invariant hR hr (Invariant.const _) hz hΦ | |
| 368 | - exact hψ.map₂ ((hd.copySolve_invariant g hab j).map CurlClassBounds.complexify) (fun r v => r • v) | |
| 369 | - | |
| 370 | 303 | end ActualCopyCurl |
| 371 | 304 | |
| 372 | 305 | /-! ## The carrier has its angular character; only the coefficient is invariant -/ |
| @@ -398,27 +331,6 @@ theorem vectorMode_translate {a : D → HarmonicCalculus.ComplexVector} | ||
| 398 | 331 | ext i |
| 399 | 332 | exact mode_translate (ha.component i) hΦ K x t |
| 400 | 333 | |
| 401 | -/-- This version works with any chosen angular section, independently of | |
| 402 | -where the angular coordinate is stored in a product type. -/ | |
| 403 | -theorem mode_eq_field_along {P : Type} {f : D → ℂ} | |
| 404 | - (hf : Invariant θ f) (hΦ : AffinePhase θ m Φ) (σ : P → D) | |
| 405 | - (k : ℝ) (j kp : ℤ) (hkp : (kp : ℝ) = k * m) (p : P) (t : ℝ) : | |
| 406 | - HarmonicCalculus.mode ((j : ℝ) * k) Φ f (σ p + t • θ) = | |
| 407 | - HarmonicFields.field (AddMonoidAlgebra.single j (fun p => f (σ p))) k (fun p => Φ (σ p)) kp (p, t) := by | |
| 408 | - simp only [HarmonicCalculus.mode, HarmonicCalculus.carrier, HarmonicCalculus.phaseFactor, | |
| 409 | - HarmonicFields.field, HarmonicFields.evaluate_single, HarmonicFields.character] | |
| 410 | - rw [hf (σ p) t, hΦ (σ p) t] | |
| 411 | - simp only [hkp, Complex.ofReal_add, Complex.ofReal_mul, Complex.ofReal_intCast] | |
| 412 | - congr 2 | |
| 413 | - ring | |
| 414 | - | |
| 415 | -theorem vectorMode_eq_field_along_component {P : Type} {a : D → HarmonicCalculus.ComplexVector} | |
| 416 | - (ha : Invariant θ a) (hΦ : AffinePhase θ m Φ) (σ : P → D) | |
| 417 | - (k : ℝ) (j kp : ℤ) (hkp : (kp : ℝ) = k * m) (p : P) (t : ℝ) (i : Fin 3) : | |
| 418 | - HarmonicCalculus.vectorMode ((j : ℝ) * k) Φ a (σ p + t • θ) i = | |
| 419 | - HarmonicFields.field (AddMonoidAlgebra.single j (fun p => a (σ p) i)) k (fun p => Φ (σ p)) kp (p, t) := | |
| 420 | - mode_eq_field_along (ha.component i) hΦ σ k j kp hkp p t | |
| 421 | - | |
| 422 | 334 | end HarmonicPhase |
| 423 | 335 | |
| 424 | 336 | section Slice |
| @@ -434,20 +346,6 @@ theorem affinePhase_eq_zeroSlice {Φ : P × ℝ → ℝ} {m : ℝ} | ||
| 434 | 346 | Φ (p, t) = Φ (p, 0) + m * t := by |
| 435 | 347 | simpa using hΦ (p, 0) t |
| 436 | 348 | |
| 437 | -/-- The true full coefficient is equal to its zero-angle slice. The carrier | |
| 438 | -then agrees exactly with the existing finite-harmonic field constructor. -/ | |
| 439 | -theorem mode_eq_field_single {f : P × ℝ → ℂ} {Φ : P × ℝ → ℝ} {m : ℝ} | |
| 440 | - (hf : Invariant ((0 : P), (1 : ℝ)) f) (hΦ : AffinePhase ((0 : P), (1 : ℝ)) m Φ) | |
| 441 | - (k : ℝ) (j kp : ℤ) (hkp : (kp : ℝ) = k * m) (p : P) (t : ℝ) : | |
| 442 | - HarmonicCalculus.mode ((j : ℝ) * k) Φ f (p, t) = | |
| 443 | - HarmonicFields.field (AddMonoidAlgebra.single j (fun p => f (p, 0))) k (fun p => Φ (p, 0)) kp (p, t) := by | |
| 444 | - simp only [HarmonicCalculus.mode, HarmonicCalculus.carrier, HarmonicCalculus.phaseFactor, | |
| 445 | - HarmonicFields.field, HarmonicFields.evaluate_single, HarmonicFields.character] | |
| 446 | - rw [invariant_eq_zeroSlice hf p t, affinePhase_eq_zeroSlice hΦ p t] | |
| 447 | - simp only [hkp, Complex.ofReal_add, Complex.ofReal_mul, Complex.ofReal_intCast] | |
| 448 | - congr 2 | |
| 449 | - ring | |
| 450 | - | |
| 451 | 349 | end Slice |
| 452 | 350 | |
| 453 | 351 | /-! ## ExactConditions for the actual corrected coefficient -/ |
+0 −210 NavierStokes/CopySolveCompatibility.lean View file
| @@ -41,10 +41,6 @@ theorem path_refine (g : Geometry) (k : ℕ) (j : Frequency) (Y : Plane) (s : | ||
| 41 | 41 | coverPower k ((refineGeometry g k).path j Y s) = g.path j (coverPower k Y) s := by |
| 42 | 42 | simp only [Geometry.path, coordinates_refine, point_refine] |
| 43 | 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 | 44 | /-- This includes cutoff indicators and copy envelopes, with no regularity |
| 49 | 45 | assumption on the native function. -/ |
| 50 | 46 | theorem native_copy_sum_refine {E : Type} [NormedAddCommGroup E] (g : Geometry) (k : ℕ) |
| @@ -69,9 +65,6 @@ noncomputable def transformData (d : LinearData P V E) (φ : Q → P) (k : ℕ) | ||
| 69 | 65 | forcingMap z := d.forcingMap (φ z.1, z.2) |
| 70 | 66 | source z := d.source (φ z.1, coverPower k z.2) |
| 71 | 67 | |
| 72 | -noncomputable def pullbackData (d : LinearData P V E) (k : ℕ) : LinearData P V E := | |
| 73 | - transformData d id k | |
| 74 | - | |
| 75 | 68 | theorem coefficientAlong_transform (d : LinearData P V E) (φ : Q → P) |
| 76 | 69 | (g : Geometry) (k : ℕ) (j : Frequency) (q : Q) (Y : Plane) (s : ℝ) : |
| 77 | 70 | (transformData d φ k).coefficientAlong (refineGeometry g k) j ((q, Y), s) = |
| @@ -150,55 +143,10 @@ theorem commonSolve_transform (d : LinearData P V E) (φ : Q → P) | ||
| 150 | 143 | intro j |
| 151 | 144 | exact localizedCopy_transform d φ g hab k κ j q Y |
| 152 | 145 | |
| 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 | 146 | end Paths |
| 178 | 147 | |
| 179 | 148 | /-! ## Changing the integer representative of the native slot center -/ |
| 180 | 149 | |
| 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 | 150 | section Recenter |
| 203 | 151 | |
| 204 | 152 | variable {P V E : Type} |
| @@ -206,40 +154,6 @@ variable {P V E : Type} | ||
| 206 | 154 | [NormedAddCommGroup E] [NormedSpace ℝ E] [CompleteSpace E] |
| 207 | 155 | {a b : ℝ} |
| 208 | 156 | |
| 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 | 157 | end Recenter |
| 244 | 158 | |
| 245 | 159 | /-! ## Physical units: scaling the actual source scales the actual solution -/ |
| @@ -524,61 +438,6 @@ theorem commonSolve_transport {a b : ℝ} (d : LinearData P V E) (φ : Q → P) | ||
| 524 | 438 | rw [commonSolve_scaleSource, commonSolve_transform, |
| 525 | 439 | commonSolve_timeData d g τ rate hrate hab hA hB hf κ hκ hq] |
| 526 | 440 | |
| 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 | 441 | end PhysicalCompatibility |
| 583 | 442 | |
| 584 | 443 | section ConcreteBandChart |
| @@ -586,17 +445,6 @@ section ConcreteBandChart | ||
| 586 | 445 | variable {V E : Type} [NormedAddCommGroup V] [NormedSpace ℝ V] |
| 587 | 446 | [NormedAddCommGroup E] [NormedSpace ℝ E] [CompleteSpace E] {a b : ℝ} |
| 588 | 447 | |
| 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 | 448 | end ConcreteBandChart |
| 601 | 449 | |
| 602 | 450 | /-! ## Binding existing chart data through primitive input identities -/ |
| @@ -656,66 +504,8 @@ theorem commonSolve_of_compatibleInputs (d : LinearData P V E) (e : LinearData Q | ||
| 656 | 504 | _ hab q hi] |
| 657 | 505 | exact commonSolve_transport d φ g hab k τ rate amplitude hrate hA hB hf κ hκ q hq Y |
| 658 | 506 | |
| 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 | 507 | end InputCompatibility |
| 693 | 508 | |
| 694 | 509 | /-! ## Why the anchor must be transported as input data -/ |
| 695 | 510 | |
| 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 | 511 | end NavierStokes.CopySolveCompatibility |
+46 −0 routes/s1-ns-copy-1/README.md added View file
| @@ -0,0 +1,46 @@ | ||
| 1 | +--- | |
| 2 | +issue: 10 | |
| 3 | +status: working | |
| 4 | +--- | |
| 5 | +# s1-ns-copy-1 | |
| 6 | + | |
| 7 | +One declarations unit of S-1 (issue #10), family `NavierStokes/Copy*`: deletes 32 | |
| 8 | +declarations nothing uses, 312 lines in `NavierStokes/CopyAngularInvariance.lean` and | |
| 9 | +`NavierStokes/CopySolveCompatibility.lean`. The diff is deletions only; no statement or proof | |
| 10 | +that stays is changed. | |
| 11 | + | |
| 12 | +The declarations: `iteratedFDeriv_invariant`, `localizedCopy_invariant`, | |
| 13 | +`commonSolve_invariant`, `copySolve_angular_zero`, `TangentInvariant.copyPressure_angular_zero`, | |
| 14 | +`TangentInvariant.commonPressure_angular_zero`, `realizedCoefficient_angular_zero`, | |
| 15 | +`actualCopy_realizedCoefficient_invariant`, `mode_eq_field_along`, | |
| 16 | +`vectorMode_eq_field_along_component`, `mode_eq_field_single` in `CopyAngularInvariance.lean`; | |
| 17 | +and `cutoff_refine`, `pullbackData`, `commonSolve_refine`, `source_periodic_transform`, | |
| 18 | +`commonOnTorus_refine`, `recenterGeometry`, `coordinates_recenter`, `point_recenter`, | |
| 19 | +`path_recenter`, `anchoredSolve_recenter`, `copySolve_recenter`, `localizedCopy_recenter`, | |
| 20 | +`commonSolve_recenter`, `physicalOutput`, `physicalOutput_contDiffOn`, | |
| 21 | +`commonSolve_family_represents`, `commonSolve_bandCommonChart`, | |
| 22 | +`compatible_family_represents`, `constantForcing`, `constantForcing_anchoredSolve`, | |
| 23 | +`changing_anchor_changes_solution` in `CopySolveCompatibility.lean`. | |
| 24 | + | |
| 25 | +How they were found. Treant (TitiSkywalker/NavierStokesAndEuler, the run of 2026-12-03 at | |
| 26 | +upstream `f9e8bc5`) found them unreachable from the four Comparator theorems. On this | |
| 27 | +project's main the declaration graph, exported from the compiled tree, was read again under | |
| 28 | +this project's rule: a declaration that Treant deleted stays when one of the paper's results | |
| 29 | +reaches it (the files `NavierStokes/PaperResults.lean` imports, `NavierStokes/R3/Theorem.lean`, | |
| 30 | +`NavierStokes/LocalPaperTheorem.lean`), when its docstring cites the paper, or when the text | |
| 31 | +of a declaration that stays names it. None of the 32 here is reached by that rule. | |
| 32 | + | |
| 33 | +Checked on this branch. `git grep -n -w` over the Lean tree finds none of the 32 short names | |
| 34 | +except `pullbackData`, which is another declaration of the same short name | |
| 35 | +(`NavierStokes/PhysicalResidualBridge.lean`, a `ScaledGraph` theorem), not the deleted | |
| 36 | +`LinearData.pullbackData`. No deleted docstring cites a numbered Lemma, Theorem, Proposition, | |
| 37 | +Corollary, Section or Equation of a paper: the deleted docstrings mention only the angular | |
| 38 | +section, the finite-harmonic field constructor and the chart maps, by name. What used a | |
| 39 | +deleted declaration is itself deleted in this same unit. | |
| 40 | + | |
| 41 | +`python3 checks/challenge.py .` ends `ok`. | |
| 42 | + | |
| 43 | +## Next | |
| 44 | + | |
| 45 | +The maintainer's review after `challenge` and `build`; the other declaration units of #10 | |
| 46 | +follow in pull requests of their own. | |