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/Signed): delete 41 declarations nothing uses
Browse filesCo-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Checks
challenge Program · challenge files and build config
Details
+0 −311 NavierStokes/SignedCovariance.lean View file
| @@ -73,226 +73,8 @@ theorem cross_reconstruct (H : Mat2) (T R : Vec2) | ||
| 73 | 73 | |
| 74 | 74 | /-! ## A bilinear average of the actual waves -/ |
| 75 | 75 | |
| 76 | -theorem wave_product_rescale (a b : ℝ) (n : ℕ) (f g : Plane → ℝ) | |
| 77 | - (mode : ℤ) (phase : Plane → ℝ) (Y : Plane) (θ : ℝ) : | |
| 78 | - wave a n f mode phase Y θ * wave b n g mode phase Y θ = | |
| 79 | - (a * b) * (wave 1 n f mode phase Y θ * wave 1 n g mode phase Y θ) := by | |
| 80 | - unfold wave | |
| 81 | - ring | |
| 82 | - | |
| 83 | -theorem angularMean_bilinear (a b : ℝ) (n : ℕ) (f g : Plane → ℝ) | |
| 84 | - (mode : ℤ) (hmode : mode ≠ 0) (phase : Plane → ℝ) (Y : Plane) : | |
| 85 | - SmoothLoop.angularMean (fun θ => wave a n f mode phase Y θ * wave b n g mode phase Y θ) = | |
| 86 | - (a * b) * ((covered n f Y * covered n g Y) * (1 / 2)) := by | |
| 87 | - rw [show (fun θ => wave a n f mode phase Y θ * wave b n g mode phase Y θ) = | |
| 88 | - (fun θ => (a * b) * (wave 1 n f mode phase Y θ * wave 1 n g mode phase Y θ)) from | |
| 89 | - funext (fun θ => wave_product_rescale a b n f g mode phase Y θ)] | |
| 90 | - rw [SmoothLoop.angularMean_const_mul, angularMean_wave_product 1 n f g mode hmode phase] | |
| 91 | - ring | |
| 92 | - | |
| 93 | -theorem angularMean_bilinear_continuous (a b : ℝ) (n : ℕ) {f g : Plane → ℝ} | |
| 94 | - (hf : Continuous f) (hcf : HasCompactSupport f) (hg : Continuous g) (hcg : HasCompactSupport g) | |
| 95 | - (mode : ℤ) (hmode : mode ≠ 0) (phase : Plane → ℝ) : | |
| 96 | - Continuous (fun Y => SmoothLoop.angularMean | |
| 97 | - (fun θ => wave a n f mode phase Y θ * wave b n g mode phase Y θ)) := by | |
| 98 | - simp_rw [angularMean_bilinear a b n f g mode hmode phase] | |
| 99 | - exact continuous_const.mul (((covered_continuous hf hcf n).mul | |
| 100 | - (covered_continuous hg hcg n)).mul continuous_const) | |
| 101 | - | |
| 102 | -/-- Both scalar coefficients multiply precisely the same native pulse. -/ | |
| 103 | -theorem PairData.bilinear_diagonal {D h : ℝ} {vr vt : Plane} {sys : SlotSystem D h vr vt} | |
| 104 | - {U : UnsignedLabel} (P : PairData sys U) | |
| 105 | - (hdet : vr.1 * vt.2 - vr.2 * vt.1 ≠ 0) (a b : ℝ) (j i : Fin 2) : | |
| 106 | - doubleAverage (fun Y θ => | |
| 107 | - wave a (SlotColoring.nativeIndex h U.1) (P.rawRadial hdet j) (P.modes j) (P.phases j) Y θ * | |
| 108 | - wave b (SlotColoring.nativeIndex h U.1) (P.rawTangent hdet j i) (P.modes j) (P.phases j) Y θ) = | |
| 109 | - a * b * P.matrix i j := by | |
| 110 | - have heq : (fun Y θ => | |
| 111 | - wave a (SlotColoring.nativeIndex h U.1) (P.rawRadial hdet j) (P.modes j) (P.phases j) Y θ * | |
| 112 | - wave b (SlotColoring.nativeIndex h U.1) (P.rawTangent hdet j i) (P.modes j) (P.phases j) Y θ) = | |
| 113 | - fun Y θ => (a * b) * | |
| 114 | - (wave 1 (SlotColoring.nativeIndex h U.1) (P.rawRadial hdet j) (P.modes j) (P.phases j) Y θ * | |
| 115 | - wave 1 (SlotColoring.nativeIndex h U.1) (P.rawTangent hdet j i) (P.modes j) (P.phases j) Y θ) := by | |
| 116 | - funext Y θ | |
| 117 | - exact wave_product_rescale _ _ _ _ _ _ _ _ _ | |
| 118 | - rw [heq] | |
| 119 | - rw [doubleAverage_const_mul] | |
| 120 | - have hu := (P.pulses j).wave_covariance vr vt (slotCenter h (signedLabel U j)) hdet | |
| 121 | - (P.ci j) sys.radius (P.ci_pos j) sys.radius_pos | |
| 122 | - (slotSet h sys.radius vr vt (signedLabel U j)) (sys.injective _) | |
| 123 | - (P.rawRadial_support hdet j) (fun i => P.rawTangent_support hdet j i) | |
| 124 | - 1 (SlotColoring.nativeIndex h U.1) (P.phases j) (P.modes j) (P.modes_ne j) i | |
| 125 | - simpa only [PairData.rawRadial, PairData.rawTangent, PairData.matrix, pairMatrix, | |
| 126 | - one_pow, one_mul] using congrArg (fun z : ℝ => a * b * z) hu | |
| 127 | - | |
| 128 | 76 | /-! ## The same physical masks, slots, and phases for arbitrary coefficients -/ |
| 129 | 77 | |
| 130 | -noncomputable def radialWith {D h : ℝ} {vr vt : Plane} {sys : SlotSystem D h vr vt} | |
| 131 | - {U : UnsignedLabel} (P : PairData sys U) (hdet : vr.1 * vt.2 - vr.2 * vt.1 ≠ 0) | |
| 132 | - (outer ε : ℝ) (a : Vec2) (q : ℝ) (x : SlotColoring.Position) (j : Fin 2) : Plane → ℝ → ℝ := | |
| 133 | - wave (outer * (Real.sqrt ε * a j * mask D U q x)) | |
| 134 | - (SlotColoring.nativeIndex h U.1) (P.rawRadial hdet j) (P.modes j) (P.phases j) | |
| 135 | - | |
| 136 | -noncomputable def tangentWith {D h : ℝ} {vr vt : Plane} {sys : SlotSystem D h vr vt} | |
| 137 | - {U : UnsignedLabel} (P : PairData sys U) (hdet : vr.1 * vt.2 - vr.2 * vt.1 ≠ 0) | |
| 138 | - (outer ε : ℝ) (a : Vec2) (q : ℝ) (x : SlotColoring.Position) (j i : Fin 2) : Plane → ℝ → ℝ := | |
| 139 | - wave (outer * (Real.sqrt ε * a j * mask D U q x)) | |
| 140 | - (SlotColoring.nativeIndex h U.1) (P.rawTangent hdet j i) (P.modes j) (P.phases j) | |
| 141 | - | |
| 142 | -/-- Pointwise diagonal reduction uses padded-slot disjointness, including | |
| 143 | -when different labels carry the same angular harmonic. -/ | |
| 144 | -theorem finite_product_diagonal {D h : ℝ} {vr vt : Plane} (sys : SlotSystem D h vr vt) | |
| 145 | - (hdet : vr.1 * vt.2 - vr.2 * vt.1 ≠ 0) (N : ℕ) (hN : 1 ≤ N) | |
| 146 | - (P : (U : UnsignedLabel) → PairData sys (tailLabel N U)) | |
| 147 | - (outer ε : UnsignedLabel → ℝ) (a b : UnsignedLabel → Vec2) (F : Finset UnsignedLabel) | |
| 148 | - {q : ℝ} (hq : 0 < q) (x : SlotColoring.Position) (i : Fin 2) (Y : Plane) (θ : ℝ) : | |
| 149 | - (∑ v ∈ F.product (Finset.univ : Finset (Fin 2)), | |
| 150 | - radialWith (P v.1) hdet (outer v.1) (ε v.1) (a v.1) q x v.2 Y θ) * | |
| 151 | - (∑ v ∈ F.product (Finset.univ : Finset (Fin 2)), | |
| 152 | - tangentWith (P v.1) hdet (outer v.1) (ε v.1) (b v.1) q x v.2 i Y θ) = | |
| 153 | - ∑ v ∈ F.product (Finset.univ : Finset (Fin 2)), | |
| 154 | - radialWith (P v.1) hdet (outer v.1) (ε v.1) (a v.1) q x v.2 Y θ * | |
| 155 | - tangentWith (P v.1) hdet (outer v.1) (ε v.1) (b v.1) q x v.2 i Y θ := by | |
| 156 | - apply sum_product_diagonal | |
| 157 | - intro v hv w hw hvw | |
| 158 | - have hz := sys.wave_cross_zero | |
| 159 | - (L := signedTailLabel N v) (M := signedTailLabel N w) | |
| 160 | - (by change 1 ≤ v.1.1 + N; omega) (by change 1 ≤ w.1.1 + N; omega) | |
| 161 | - (fun he => hvw (signedTailLabel_injective N he)) | |
| 162 | - ((P v.1).rawRadial_support hdet v.2) ((P w.1).rawTangent_support hdet w.2 i) | |
| 163 | - hq x Y θ (outer v.1 * Real.sqrt (ε v.1) * a v.1 v.2) | |
| 164 | - (outer w.1 * Real.sqrt (ε w.1) * b w.1 w.2) | |
| 165 | - ((P v.1).modes v.2) ((P w.1).modes w.2) ((P v.1).phases v.2) ((P w.1).phases w.2) | |
| 166 | - simpa only [radialWith, tangentWith, signedTailLabel, physicalMask_signedLabel, | |
| 167 | - signedLabel, physicalMask, mask, mul_assoc] using hz | |
| 168 | - | |
| 169 | -theorem finite_bilinear_covariance {D h : ℝ} {vr vt : Plane} (sys : SlotSystem D h vr vt) | |
| 170 | - (hdet : vr.1 * vt.2 - vr.2 * vt.1 ≠ 0) (N : ℕ) (hN : 1 ≤ N) | |
| 171 | - (P : (U : UnsignedLabel) → PairData sys (tailLabel N U)) | |
| 172 | - (outer ε : UnsignedLabel → ℝ) (a b : UnsignedLabel → Vec2) (F : Finset UnsignedLabel) | |
| 173 | - (hε : ∀ U ∈ F, 0 ≤ ε U) {q : ℝ} (hq : 0 < q) (x : SlotColoring.Position) (i : Fin 2) : | |
| 174 | - doubleAverage (fun Y θ => | |
| 175 | - (∑ v ∈ F.product (Finset.univ : Finset (Fin 2)), | |
| 176 | - radialWith (P v.1) hdet (outer v.1) (ε v.1) (a v.1) q x v.2 Y θ) * | |
| 177 | - (∑ v ∈ F.product (Finset.univ : Finset (Fin 2)), | |
| 178 | - tangentWith (P v.1) hdet (outer v.1) (ε v.1) (b v.1) q x v.2 i Y θ)) = | |
| 179 | - ∑ U ∈ F, outer U ^ 2 * ε U * mask D (tailLabel N U) q x ^ 2 * | |
| 180 | - ((P U).matrix.mulVec (fun j => a U j * b U j)) i := by | |
| 181 | - simp_rw [finite_product_diagonal sys hdet N hN P outer ε a b F hq x i] | |
| 182 | - rw [doubleAverage_sum] | |
| 183 | - · apply (Finset.sum_product F Finset.univ _).trans | |
| 184 | - apply Finset.sum_congr rfl | |
| 185 | - intro U hU | |
| 186 | - simp only [radialWith, tangentWith, PairData.bilinear_diagonal, | |
| 187 | - Matrix.mulVec, dotProduct, Fin.sum_univ_two] | |
| 188 | - have hs := Real.sq_sqrt (hε U hU) | |
| 189 | - calc | |
| 190 | - _ = outer U ^ 2 * (Real.sqrt (ε U)) ^ 2 * mask D (tailLabel N U) q x ^ 2 * | |
| 191 | - ((P U).matrix i 0 * (a U 0 * b U 0) + (P U).matrix i 1 * (a U 1 * b U 1)) := by ring | |
| 192 | - _ = _ := by rw [hs] | |
| 193 | - · intro v hv Y | |
| 194 | - exact (wave_continuous_theta _ _ _ _ _ _).mul (wave_continuous_theta _ _ _ _ _ _) | |
| 195 | - · intro v hv | |
| 196 | - exact angularMean_bilinear_continuous _ _ _ ((P v.1).rawRadial_continuous hdet v.2) | |
| 197 | - ((P v.1).rawRadial_compact hdet v.2) ((P v.1).rawTangent_continuous hdet v.2 i) | |
| 198 | - ((P v.1).rawTangent_compact hdet v.2 i) ((P v.1).modes v.2) | |
| 199 | - ((P v.1).modes_ne v.2) ((P v.1).phases v.2) | |
| 200 | - | |
| 201 | -noncomputable def assembledRadialWith {D h : ℝ} {vr vt : Plane} {sys : SlotSystem D h vr vt} {N : ℕ} | |
| 202 | - (P : (U : UnsignedLabel) → PairData sys (tailLabel N U)) | |
| 203 | - (hdet : vr.1 * vt.2 - vr.2 * vt.1 ≠ 0) (outer ε : UnsignedLabel → ℝ) | |
| 204 | - (a : UnsignedLabel → Vec2) (q : ℝ) (x : SlotColoring.Position) (Y : Plane) (θ : ℝ) : ℝ := | |
| 205 | - ∑ᶠ v : UnsignedLabel × Fin 2, radialWith (P v.1) hdet (outer v.1) (ε v.1) (a v.1) q x v.2 Y θ | |
| 206 | - | |
| 207 | -noncomputable def assembledTangentWith {D h : ℝ} {vr vt : Plane} {sys : SlotSystem D h vr vt} {N : ℕ} | |
| 208 | - (P : (U : UnsignedLabel) → PairData sys (tailLabel N U)) | |
| 209 | - (hdet : vr.1 * vt.2 - vr.2 * vt.1 ≠ 0) (outer ε : UnsignedLabel → ℝ) | |
| 210 | - (a : UnsignedLabel → Vec2) (q : ℝ) (x : SlotColoring.Position) (i : Fin 2) (Y : Plane) (θ : ℝ) : ℝ := | |
| 211 | - ∑ᶠ v : UnsignedLabel × Fin 2, tangentWith (P v.1) hdet (outer v.1) (ε v.1) (a v.1) q x v.2 i Y θ | |
| 212 | - | |
| 213 | -theorem assembledRadialWith_finite {D h : ℝ} {vr vt : Plane} {sys : SlotSystem D h vr vt} {N : ℕ} | |
| 214 | - (P : (U : UnsignedLabel) → PairData sys (tailLabel N U)) | |
| 215 | - (hdet : vr.1 * vt.2 - vr.2 * vt.1 ≠ 0) (outer ε : UnsignedLabel → ℝ) | |
| 216 | - (a : UnsignedLabel → Vec2) {q : ℝ} (hq : 0 < q) (x : SlotColoring.Position) (Y : Plane) (θ : ℝ) : | |
| 217 | - assembledRadialWith P hdet outer ε a q x Y θ = | |
| 218 | - ∑ v ∈ (finite_active_masks D N hq x).toFinset.product (Finset.univ : Finset (Fin 2)), | |
| 219 | - radialWith (P v.1) hdet (outer v.1) (ε v.1) (a v.1) q x v.2 Y θ := by | |
| 220 | - classical | |
| 221 | - apply finsum_eq_sum_of_support_subset | |
| 222 | - intro v hv | |
| 223 | - refine Finset.mem_product.mpr ⟨?_, Finset.mem_univ _⟩ | |
| 224 | - apply (finite_active_masks D N hq x).mem_toFinset.mpr | |
| 225 | - intro hm | |
| 226 | - exact hv (by simp [radialWith, wave, hm]) | |
| 227 | - | |
| 228 | -theorem assembledTangentWith_finite {D h : ℝ} {vr vt : Plane} {sys : SlotSystem D h vr vt} {N : ℕ} | |
| 229 | - (P : (U : UnsignedLabel) → PairData sys (tailLabel N U)) | |
| 230 | - (hdet : vr.1 * vt.2 - vr.2 * vt.1 ≠ 0) (outer ε : UnsignedLabel → ℝ) | |
| 231 | - (a : UnsignedLabel → Vec2) {q : ℝ} (hq : 0 < q) (x : SlotColoring.Position) | |
| 232 | - (i : Fin 2) (Y : Plane) (θ : ℝ) : | |
| 233 | - assembledTangentWith P hdet outer ε a q x i Y θ = | |
| 234 | - ∑ v ∈ (finite_active_masks D N hq x).toFinset.product (Finset.univ : Finset (Fin 2)), | |
| 235 | - tangentWith (P v.1) hdet (outer v.1) (ε v.1) (a v.1) q x v.2 i Y θ := by | |
| 236 | - classical | |
| 237 | - apply finsum_eq_sum_of_support_subset | |
| 238 | - intro v hv | |
| 239 | - refine Finset.mem_product.mpr ⟨?_, Finset.mem_univ _⟩ | |
| 240 | - apply (finite_active_masks D N hq x).mem_toFinset.mpr | |
| 241 | - intro hm | |
| 242 | - exact hv (by simp [tangentWith, wave, hm]) | |
| 243 | - | |
| 244 | -theorem assembled_bilinear_covariance {D h : ℝ} {vr vt : Plane} (sys : SlotSystem D h vr vt) | |
| 245 | - (hdet : vr.1 * vt.2 - vr.2 * vt.1 ≠ 0) (N : ℕ) (hN : 1 ≤ N) | |
| 246 | - (P : (U : UnsignedLabel) → PairData sys (tailLabel N U)) | |
| 247 | - (outer ε : UnsignedLabel → ℝ) (a b : UnsignedLabel → Vec2) | |
| 248 | - {q : ℝ} (hq : 0 < q) (x : SlotColoring.Position) | |
| 249 | - (hε : ∀ U, mask D (tailLabel N U) q x ≠ 0 → 0 ≤ ε U) (i : Fin 2) : | |
| 250 | - doubleAverage (fun Y θ => assembledRadialWith P hdet outer ε a q x Y θ * | |
| 251 | - assembledTangentWith P hdet outer ε b q x i Y θ) = | |
| 252 | - ∑ᶠ U : UnsignedLabel, outer U ^ 2 * ε U * mask D (tailLabel N U) q x ^ 2 * | |
| 253 | - ((P U).matrix.mulVec (fun j => a U j * b U j)) i := by | |
| 254 | - classical | |
| 255 | - simp_rw [assembledRadialWith_finite P hdet outer ε a hq x, | |
| 256 | - assembledTangentWith_finite P hdet outer ε b hq x i] | |
| 257 | - rw [finite_bilinear_covariance sys hdet N hN P outer ε a b _ | |
| 258 | - (fun U hU => hε U ((finite_active_masks D N hq x).mem_toFinset.mp hU)) hq x i] | |
| 259 | - symm | |
| 260 | - apply finsum_eq_sum_of_support_subset | |
| 261 | - intro U hU | |
| 262 | - apply (finite_active_masks D N hq x).mem_toFinset.mpr | |
| 263 | - intro hm | |
| 264 | - exact hU (by simp [hm]) | |
| 265 | - | |
| 266 | -/-- Off-diagonal products vanish before either integral, so interchanging the | |
| 267 | -two scalar coefficient families leaves the product unchanged pointwise. -/ | |
| 268 | -theorem assembled_bilinear_symmetry {D h : ℝ} {vr vt : Plane} (sys : SlotSystem D h vr vt) | |
| 269 | - (hdet : vr.1 * vt.2 - vr.2 * vt.1 ≠ 0) (N : ℕ) (hN : 1 ≤ N) | |
| 270 | - (P : (U : UnsignedLabel) → PairData sys (tailLabel N U)) | |
| 271 | - (outer ε : UnsignedLabel → ℝ) (a b : UnsignedLabel → Vec2) | |
| 272 | - {q : ℝ} (hq : 0 < q) (x : SlotColoring.Position) (i : Fin 2) (Y : Plane) (θ : ℝ) : | |
| 273 | - assembledRadialWith P hdet outer ε a q x Y θ * assembledTangentWith P hdet outer ε b q x i Y θ = | |
| 274 | - assembledRadialWith P hdet outer ε b q x Y θ * assembledTangentWith P hdet outer ε a q x i Y θ := by | |
| 275 | - classical | |
| 276 | - simp_rw [assembledRadialWith_finite P hdet outer ε _ hq x, | |
| 277 | - assembledTangentWith_finite P hdet outer ε _ hq x i, | |
| 278 | - finite_product_diagonal sys hdet N hN P outer ε _ _ _ hq x i] | |
| 279 | - apply Finset.sum_congr rfl | |
| 280 | - intro v hv | |
| 281 | - unfold radialWith tangentWith wave | |
| 282 | - ring | |
| 283 | - | |
| 284 | -noncomputable def signedRadial {D h : ℝ} {vr vt : Plane} {sys : SlotSystem D h vr vt} {N : ℕ} | |
| 285 | - (P : (U : UnsignedLabel) → PairData sys (tailLabel N U)) | |
| 286 | - (hdet : vr.1 * vt.2 - vr.2 * vt.1 ≠ 0) (outer ε : UnsignedLabel → ℝ) | |
| 287 | - (T R : UnsignedLabel → Vec2) (q : ℝ) (x : SlotColoring.Position) : Plane → ℝ → ℝ := | |
| 288 | - assembledRadialWith P hdet outer ε (fun U => increment (P U).matrix (T U) (R U)) q x | |
| 289 | - | |
| 290 | -noncomputable def signedTangent {D h : ℝ} {vr vt : Plane} {sys : SlotSystem D h vr vt} {N : ℕ} | |
| 291 | - (P : (U : UnsignedLabel) → PairData sys (tailLabel N U)) | |
| 292 | - (hdet : vr.1 * vt.2 - vr.2 * vt.1 ≠ 0) (outer ε : UnsignedLabel → ℝ) | |
| 293 | - (T R : UnsignedLabel → Vec2) (q : ℝ) (x : SlotColoring.Position) (i : Fin 2) : Plane → ℝ → ℝ := | |
| 294 | - assembledTangentWith P hdet outer ε (fun U => increment (P U).matrix (T U) (R U)) q x i | |
| 295 | - | |
| 296 | 78 | theorem cross_reconstruct_component (H : Mat2) (T R : Vec2) |
| 297 | 79 | (hcone : SmoothCovariance.StrictCone H T) (i : Fin 2) : |
| 298 | 80 | 2 * (H.mulVec (fun j => SmoothCovariance.amplitudes H T j * increment H T R j)) i = R i := by |
| @@ -303,49 +85,6 @@ theorem cross_reconstruct_component (H : Mat2) (T R : Vec2) | ||
| 303 | 85 | H i 1 * (2 * SmoothCovariance.amplitudes H T 1 * increment H T R 1) := by ring |
| 304 | 86 | _ = _ := hc |
| 305 | 87 | |
| 306 | -/-- The assembled two-sided primary/signed cross covariance. Positivity is | |
| 307 | -required only for primary weights; the signed target is arbitrary. -/ | |
| 308 | -theorem assembled_cross_covariance {D h : ℝ} {vr vt : Plane} (sys : SlotSystem D h vr vt) | |
| 309 | - (hdet : vr.1 * vt.2 - vr.2 * vt.1 ≠ 0) (N : ℕ) (hN : 1 ≤ N) | |
| 310 | - (P : (U : UnsignedLabel) → PairData sys (tailLabel N U)) | |
| 311 | - (outer ε : UnsignedLabel → ℝ) (T R : UnsignedLabel → Vec2) | |
| 312 | - {q : ℝ} (hq : 0 < q) (x : SlotColoring.Position) | |
| 313 | - (hε : ∀ U, mask D (tailLabel N U) q x ≠ 0 → 0 ≤ ε U) | |
| 314 | - (hcone : ∀ U, mask D (tailLabel N U) q x ≠ 0 → SmoothCovariance.StrictCone (P U).matrix (T U)) | |
| 315 | - (i : Fin 2) : | |
| 316 | - doubleAverage (fun Y θ => | |
| 317 | - assembledRadial P hdet outer ε T q x Y θ * signedTangent P hdet outer ε T R q x i Y θ + | |
| 318 | - signedRadial P hdet outer ε T R q x Y θ * assembledTangent P hdet outer ε T q x i Y θ) = | |
| 319 | - ∑ᶠ U : UnsignedLabel, outer U ^ 2 * ε U * mask D (tailLabel N U) q x ^ 2 * R U i := by | |
| 320 | - let a : UnsignedLabel → Vec2 := fun U => SmoothCovariance.amplitudes (P U).matrix (T U) | |
| 321 | - let b : UnsignedLabel → Vec2 := fun U => increment (P U).matrix (T U) (R U) | |
| 322 | - have heq : (fun Y θ => | |
| 323 | - assembledRadial P hdet outer ε T q x Y θ * signedTangent P hdet outer ε T R q x i Y θ + | |
| 324 | - signedRadial P hdet outer ε T R q x Y θ * assembledTangent P hdet outer ε T q x i Y θ) = | |
| 325 | - fun Y θ => 2 * (assembledRadialWith P hdet outer ε a q x Y θ * | |
| 326 | - assembledTangentWith P hdet outer ε b q x i Y θ) := by | |
| 327 | - funext Y θ | |
| 328 | - change assembledRadialWith P hdet outer ε a q x Y θ * assembledTangentWith P hdet outer ε b q x i Y θ + | |
| 329 | - assembledRadialWith P hdet outer ε b q x Y θ * assembledTangentWith P hdet outer ε a q x i Y θ = _ | |
| 330 | - rw [assembled_bilinear_symmetry sys hdet N hN P outer ε b a hq x i] | |
| 331 | - ring | |
| 332 | - rw [heq, doubleAverage_const_mul, | |
| 333 | - assembled_bilinear_covariance sys hdet N hN P outer ε a b hq x hε i] | |
| 334 | - have hf : (support (fun U : UnsignedLabel => outer U ^ 2 * ε U * mask D (tailLabel N U) q x ^ 2 * | |
| 335 | - ((P U).matrix.mulVec (fun j => a U j * b U j)) i)).Finite := by | |
| 336 | - apply (finite_active_masks D N hq x).subset | |
| 337 | - intro U hU hm | |
| 338 | - exact hU (by simp [hm]) | |
| 339 | - rw [mul_finsum _ 2] | |
| 340 | - apply finsum_congr | |
| 341 | - intro U | |
| 342 | - by_cases hm : mask D (tailLabel N U) q x = 0 | |
| 343 | - · simp [hm] | |
| 344 | - · calc | |
| 345 | - _ = (outer U ^ 2 * ε U * mask D (tailLabel N U) q x ^ 2) * | |
| 346 | - (2 * ((P U).matrix.mulVec (fun j => a U j * b U j)) i) := by ring | |
| 347 | - _ = _ := by rw [cross_reconstruct_component (P U).matrix (T U) (R U) (hcone U hm) i] | |
| 348 | - | |
| 349 | 88 | /-! ## The physical signed target -/ |
| 350 | 89 | |
| 351 | 90 | /-- Section 10.2's chart stress `Q^(2 A) σ / ε`. -/ |
| @@ -353,56 +92,6 @@ noncomputable def chartStress (h : ℝ) (N : ℕ) (σ : Vec2) (U : UnsignedLabel | ||
| 353 | 92 | fun i => ChartScales.Q (U.1 + N) ^ (2 * velocityExponent h) * σ i / |
| 354 | 93 | physicalViscosity h N U |
| 355 | 94 | |
| 356 | -theorem physical_signed_scale (h : ℝ) (N : ℕ) (σ : Vec2) (U : UnsignedLabel) (i : Fin 2) : | |
| 357 | - physicalOuter h N U ^ 2 * physicalViscosity h N U * chartStress h N σ U i = σ i := by | |
| 358 | - have hQ := ChartScales.Q_pos (U.1 + N) | |
| 359 | - have hε := ChartScales.epsilon_pos h (U.1 + N) | |
| 360 | - have hp : (ChartScales.Q (U.1 + N) ^ (-velocityExponent h)) ^ 2 * | |
| 361 | - ChartScales.Q (U.1 + N) ^ (2 * velocityExponent h) = 1 := by | |
| 362 | - rw [← Real.rpow_mul_natCast hQ.le, ← Real.rpow_add hQ] | |
| 363 | - have he : -velocityExponent h * (2 : ℝ) + 2 * velocityExponent h = 0 := by ring | |
| 364 | - simp only [Nat.cast_ofNat, he, Real.rpow_zero] | |
| 365 | - unfold physicalOuter chartStress | |
| 366 | - change _ * ChartScales.epsilon h (U.1 + N) * | |
| 367 | - (_ * σ i / ChartScales.epsilon h (U.1 + N)) = _ | |
| 368 | - calc | |
| 369 | - _ = ((ChartScales.Q (U.1 + N) ^ (-velocityExponent h)) ^ 2 * | |
| 370 | - ChartScales.Q (U.1 + N) ^ (2 * velocityExponent h)) * σ i := by | |
| 371 | - field_simp | |
| 372 | - _ = _ := by rw [hp, one_mul] | |
| 373 | - | |
| 374 | -/-- The actual two-sided primary/signed covariance equals the prescribed | |
| 375 | -physical stress, for the same constructed squared partition as the primary. -/ | |
| 376 | -theorem physical_signed_cross_covariance {D h : ℝ} {vr vt : Plane} (sys : SlotSystem D h vr vt) | |
| 377 | - (hdet : vr.1 * vt.2 - vr.2 * vt.1 ≠ 0) (N : ℕ) (hN : 1 ≤ N) | |
| 378 | - (P : (U : UnsignedLabel) → PairData sys (tailLabel N U)) | |
| 379 | - {q : ℝ} (hq : 0 < q) (hqN : q ≤ ChartScales.Q N) (x : SlotColoring.Position) (T0 σ : Vec2) | |
| 380 | - (hcone : ∀ U, mask D (tailLabel N U) q x ≠ 0 → | |
| 381 | - SmoothCovariance.StrictCone (P U).matrix (chartTarget h q N T0 U)) (i : Fin 2) : | |
| 382 | - doubleAverage (fun Y θ => | |
| 383 | - assembledRadial P hdet (physicalOuter h N) (physicalViscosity h N) (chartTarget h q N T0) q x Y θ * | |
| 384 | - signedTangent P hdet (physicalOuter h N) (physicalViscosity h N) | |
| 385 | - (chartTarget h q N T0) (chartStress h N σ) q x i Y θ + | |
| 386 | - signedRadial P hdet (physicalOuter h N) (physicalViscosity h N) | |
| 387 | - (chartTarget h q N T0) (chartStress h N σ) q x Y θ * | |
| 388 | - assembledTangent P hdet (physicalOuter h N) (physicalViscosity h N) (chartTarget h q N T0) q x i Y θ) = | |
| 389 | - σ i := by | |
| 390 | - rw [assembled_cross_covariance sys hdet N hN P (physicalOuter h N) (physicalViscosity h N) | |
| 391 | - (chartTarget h q N T0) (chartStress h N σ) hq x | |
| 392 | - (fun U _ => (ChartScales.epsilon_pos h (U.1 + N)).le) hcone i] | |
| 393 | - have heq (U : UnsignedLabel) : physicalOuter h N U ^ 2 * physicalViscosity h N U * | |
| 394 | - mask D (tailLabel N U) q x ^ 2 * chartStress h N σ U i = mask D (tailLabel N U) q x ^ 2 * σ i := by | |
| 395 | - calc | |
| 396 | - _ = mask D (tailLabel N U) q x ^ 2 * | |
| 397 | - (physicalOuter h N U ^ 2 * physicalViscosity h N U * chartStress h N σ U i) := by ring | |
| 398 | - _ = _ := by rw [physical_signed_scale] | |
| 399 | - simp_rw [heq] | |
| 400 | - have hf : (support (fun U : UnsignedLabel => mask D (tailLabel N U) q x ^ 2)).Finite := by | |
| 401 | - apply (finite_active_masks D N hq x).subset | |
| 402 | - intro U hU hz | |
| 403 | - exact hU (by simp [hz]) | |
| 404 | - rw [← finsum_mul _ _, physical_mask_tail_sum_sq D N hq hqN x, one_mul] | |
| 405 | - | |
| 406 | 95 | /-! ## Uniform weighted jets from input classes and a primary lower bound -/ |
| 407 | 96 | |
| 408 | 97 | open WeightedClasses |
+0 −354 NavierStokes/SignedMeanGain.lean View file
| @@ -470,51 +470,6 @@ open PartitionedCovariance SignedWaveUpdate | ||
| 470 | 470 | |
| 471 | 471 | variable {d h : ℝ} {vr vt : TorusInverse.Plane} {sys : SlotSystem d h vr vt} |
| 472 | 472 | |
| 473 | -omit [NormedAddCommGroup D] [NormedSpace ℝ D] in | |
| 474 | -theorem nativeTangentBlock_zero {l : UnsignedLabel} (P : PairData sys l) | |
| 475 | - (hdet : vr.1 * vt.2 - vr.2 * vt.1 ≠ 0) (outer ε : ℝ) (a : SignedWaveUpdate.Vec2) | |
| 476 | - (q : ℝ) (x : SlotColoring.Position) (j : Fin 2) (hm : mask d l q x = 0) | |
| 477 | - (Y : TorusInverse.Plane) (θ : ℝ) (i : Fin 3) : | |
| 478 | - (nativeTangentBlock P hdet outer ε a q x j).oscillation 0 (Y, θ) i = 0 := by | |
| 479 | - rw [nativeTangentBlock, coefficientBlock_velocity] | |
| 480 | - simp [hm, CurlClassBounds.complexify_apply] | |
| 481 | - | |
| 482 | -omit [NormedAddCommGroup D] [NormedSpace ℝ D] in | |
| 483 | -theorem nativeAssembly_eq_finite {N : ℕ} | |
| 484 | - (P : (U : UnsignedLabel) → PairData sys (tailLabel N U)) | |
| 485 | - (hdet : vr.1 * vt.2 - vr.2 * vt.1 ≠ 0) (outer ε : UnsignedLabel → ℝ) | |
| 486 | - (a : UnsignedLabel → SignedWaveUpdate.Vec2) (q : ℝ) (x : SlotColoring.Position) | |
| 487 | - (F : Finset (UnsignedLabel × Fin 2)) | |
| 488 | - (hF : ∀ l, l ∉ F → mask d (tailLabel N l.1) q x = 0) | |
| 489 | - (Y : TorusInverse.Plane) (θ : ℝ) (i : Fin 3) : | |
| 490 | - nativeAssembly P hdet outer ε a q x Y θ i = | |
| 491 | - ∑ l ∈ F, (nativeTangentBlock (P l.1) hdet (outer l.1) (ε l.1) (a l.1) | |
| 492 | - q x l.2).oscillation 0 (Y, θ) i := by | |
| 493 | - unfold nativeAssembly | |
| 494 | - apply finsum_eq_sum_of_support_subset | |
| 495 | - intro l hl | |
| 496 | - by_contra hn | |
| 497 | - exact hl (nativeTangentBlock_zero (P l.1) hdet _ _ _ _ _ _ (hF l hn) Y θ i) | |
| 498 | - | |
| 499 | -omit [NormedAddCommGroup D] [NormedSpace ℝ D] in | |
| 500 | -theorem native_physical_cross | |
| 501 | - (hdet : vr.1 * vt.2 - vr.2 * vt.1 ≠ 0) (N : ℕ) (hN : 1 ≤ N) | |
| 502 | - (P : (U : UnsignedLabel) → PairData sys (tailLabel N U)) | |
| 503 | - {q : ℝ} (hq : 0 < q) (hqN : q ≤ ChartScales.Q N) (x : SlotColoring.Position) | |
| 504 | - (T σ : SignedWaveUpdate.Vec2) | |
| 505 | - (hcone : ∀ U, mask d (tailLabel N U) q x ≠ 0 → | |
| 506 | - SmoothCovariance.StrictCone (P U).matrix (chartTarget h q N T U)) (i : Fin 2) : | |
| 507 | - let primary := nativeAssembly P hdet (physicalOuter h N) (physicalViscosity h N) | |
| 508 | - (fun U => SmoothCovariance.amplitudes (P U).matrix (chartTarget h q N T U)) q x | |
| 509 | - let signed := nativeAssembly P hdet (physicalOuter h N) (physicalViscosity h N) | |
| 510 | - (fun U => SignedCovariance.increment (P U).matrix (chartTarget h q N T U) | |
| 511 | - (SignedCovariance.chartStress h N σ U)) q x | |
| 512 | - doubleAverage (fun Y θ => primary Y θ 0 * signed Y θ i.succ + | |
| 513 | - signed Y θ 0 * primary Y θ i.succ) = σ i := by | |
| 514 | - dsimp only | |
| 515 | - simp_rw [nativeAssembly_radial, nativeAssembly_tangent] | |
| 516 | - exact SignedCovariance.physical_signed_cross_covariance sys hdet N hN P hq hqN x T σ hcone i | |
| 517 | - | |
| 518 | 473 | end Native |
| 519 | 474 | |
| 520 | 475 | /-! ## One moving chart and its measured debts -/ |
| @@ -955,127 +910,6 @@ theorem averaged_residual_decomposition (G : Geometry) (c : Context Point) (u : | ||
| 955 | 910 | |
| 956 | 911 | /-! ## Quantitative mean gain -/ |
| 957 | 912 | |
| 958 | -/-- This intermediate estimate isolates the two exact cross identities. | |
| 959 | -The native theorem below discharges them by the signed inverse construction. -/ | |
| 960 | -theorem signed_mean_gain_of_cross | |
| 961 | - (G : Geometry) (c : Context Point) (u : State Point) | |
| 962 | - {ι : Type} {P : ι → ℕ → Point → ℝ} {σ κ : ℝ} | |
| 963 | - (hσ : 1 / 5 ≤ σ) (hκ : 0 ≤ κ) (hκsmall : κ ≤ 1 / 100000) | |
| 964 | - (f : LabelSumBounds.SignedFamily G.strip P (1 / 2) (17 / 25) | |
| 965 | - (1 / 2 + σ - κ) (1 + σ - 2 * κ)) (a : Assembly f) | |
| 966 | - (q : OscillatoryScalar Point) (gaussian : Oscillation Point) | |
| 967 | - (hold : u.oscillation = oldField f a) | |
| 968 | - (H : LocalData G c u (tangentField f a + curlField f a) q gaussian) | |
| 969 | - (ho : OperatorBounds G.strip G.operators κ) | |
| 970 | - (hX : ∀ i j, MovingField G (incrementTensor f a i j)) | |
| 971 | - (hS : ∀ i j, MovingField G (crossTensor f a i j)) | |
| 972 | - (hθ : MeanClass G.strip (1 + σ - κ) (u.thetaResidual c)) | |
| 973 | - (hz : MeanClass G.strip (1 + σ - κ) (u.axialResidual c)) | |
| 974 | - (hd : DefectBounds G.slowStrip (σ - κ) c u) | |
| 975 | - (hcrossθ : Agree G.strip.domain (StateMomentBalances.meanBar (crossTensor f a 0 1)) | |
| 976 | - (physicalSigma G 2 (u.thetaResidual c))) | |
| 977 | - (hcrossz : Agree G.strip.domain (StateMomentBalances.meanBar (crossTensor f a 0 2)) | |
| 978 | - (physicalSigma G 1 (u.axialResidual c))) : | |
| 979 | - let v := waveStage G.gauge c u (tangentField f a + curlField f a) q gaussian | |
| 980 | - MeanClass G.strip (1 + σ - 2 * κ) (v.thetaResidual c) ∧ | |
| 981 | - MeanClass G.strip (1 + σ - 2 * κ) (v.axialResidual c) ∧ | |
| 982 | - MeanClass G.strip (1 + σ + 17 / 100) (StateMomentBalances.meanBar (v.thetaResidual c)) ∧ | |
| 983 | - MeanClass G.strip (1 + σ + 17 / 100) (StateMomentBalances.meanBar (v.axialResidual c)) := by | |
| 984 | - dsimp only | |
| 985 | - obtain ⟨hXi, hEi⟩ := signed_tensor_bounds hσ hκsmall f a | |
| 986 | - have hEeq : remainderTensor f a = incrementTensor f a - crossTensor f a := by | |
| 987 | - rw [incrementTensor_split] | |
| 988 | - abel | |
| 989 | - have hSeq : crossTensor f a = incrementTensor f a - remainderTensor f a := by | |
| 990 | - rw [incrementTensor_split] | |
| 991 | - abel | |
| 992 | - have hEc : ∀ i j, MovingField G (remainderTensor f a i j) := by | |
| 993 | - intro i j | |
| 994 | - rw [hEeq] | |
| 995 | - exact (hX i j).sub (hS i j) | |
| 996 | - have hSi : TensorClass G.strip (1 + σ - κ) (crossTensor f a) := by | |
| 997 | - intro i j | |
| 998 | - rw [hSeq] | |
| 999 | - exact Class.sub (hXi i j) ((hEi i j).mono_exponent (by linarith)) | |
| 1000 | - have hactual : covarianceIncrement u.oscillation (tangentField f a + curlField f a) = | |
| 1001 | - crossTensor f a + remainderTensor f a := by | |
| 1002 | - rw [hold] | |
| 1003 | - exact incrementTensor_split f a | |
| 1004 | - have hactualClass : TensorClass G.strip (1 + σ - κ) | |
| 1005 | - (covarianceIncrement u.oscillation (tangentField f a + curlField f a)) := by | |
| 1006 | - simp only [hold] | |
| 1007 | - exact hXi | |
| 1008 | - have hp : MeanClass G.strip (1 + σ - 2 * κ) | |
| 1009 | - (pressureChange G.gauge c u (tangentField f a + curlField f a) q gaussian) := by | |
| 1010 | - convert! H.pressureChange_mem ho hactualClass using 1 | |
| 1011 | - ring | |
| 1012 | - have htchange : MeanClass G.strip (1 + σ - 2 * κ) | |
| 1013 | - ((waveStage G.gauge c u (tangentField f a + curlField f a) q gaussian).thetaResidual c - | |
| 1014 | - u.thetaResidual c) := by | |
| 1015 | - have hh := thetaCovarianceChange_mem ho hactualClass | |
| 1016 | - have heq := waveStage_theta_change G.strip.isOpen_domain G.gauge c u | |
| 1017 | - (tangentField f a + curlField f a) q gaussian H.base H.mean H.covariance | |
| 1018 | - (fun i j => (hactualClass i j).smooth) | |
| 1019 | - rw [H.operators_eq] at heq | |
| 1020 | - convert! class_congr hh heq using 1 | |
| 1021 | - ring | |
| 1022 | - have hzchange : MeanClass G.strip (1 + σ - 2 * κ) | |
| 1023 | - ((waveStage G.gauge c u (tangentField f a + curlField f a) q gaussian).axialResidual c - | |
| 1024 | - u.axialResidual c) := by | |
| 1025 | - have hh : MeanClass G.strip (1 + σ - 2 * κ) | |
| 1026 | - (axialCovarianceChange G.operators | |
| 1027 | - (covarianceIncrement u.oscillation (tangentField f a + curlField f a))) := by | |
| 1028 | - convert! axialCovarianceChange_mem ho hactualClass using 1 | |
| 1029 | - ring | |
| 1030 | - have heq := waveStage_axial_change G.strip.isOpen_domain G.gauge c u | |
| 1031 | - (tangentField f a + curlField f a) q gaussian H.base H.mean H.covariance | |
| 1032 | - (fun i j => (hactualClass i j).smooth) | |
| 1033 | - (fun n => (H.pressure_smooth n).mono G.strip_subset) hp.smooth | |
| 1034 | - rw [H.operators_eq] at heq | |
| 1035 | - exact class_congr (hh.add ((ho.dz hp).mono_exponent (by linarith))) heq | |
| 1036 | - have hRestθ : MeanClass G.strip (1 + σ + 17 / 100) | |
| 1037 | - (thetaRemainderField G (crossTensor f a) (remainderTensor f a)) := by | |
| 1038 | - apply MemClass.add | |
| 1039 | - · convert! thetaCovarianceChange_mem ho hEi using 1 | |
| 1040 | - ring | |
| 1041 | - · exact (ho.dz (hSi 2 1)).mono_exponent (by linarith) | |
| 1042 | - have hRestz : MeanClass G.strip (1 + σ + 17 / 100) | |
| 1043 | - (axialRemainderField G (crossTensor f a) (remainderTensor f a) | |
| 1044 | - (pressureChange G.gauge c u (tangentField f a + curlField f a) q gaussian)) := by | |
| 1045 | - apply MemClass.add | |
| 1046 | - · apply MemClass.add | |
| 1047 | - · convert! axialCovarianceChange_mem ho hEi using 1 | |
| 1048 | - ring | |
| 1049 | - · exact (ho.dz (hSi 2 2)).mono_exponent (by linarith) | |
| 1050 | - · exact (ho.dz hp).mono_exponent (by linarith) | |
| 1051 | - have hRestθs : SmoothOn G.domain (thetaRemainderField G (crossTensor f a) (remainderTensor f a)) := | |
| 1052 | - (MovingField.covariance_flux_smooth hEc).1.add | |
| 1053 | - (SmoothOn.dz (hS 2 1).smooth G.domain_open G.operators) | |
| 1054 | - have hRestzs : SmoothOn G.domain (axialRemainderField G (crossTensor f a) (remainderTensor f a) | |
| 1055 | - (pressureChange G.gauge c u (tangentField f a + curlField f a) q gaussian)) := | |
| 1056 | - ((MovingField.covariance_flux_smooth hEc).2.1.add | |
| 1057 | - (SmoothOn.dz (hS 2 2).smooth G.domain_open G.operators)).add | |
| 1058 | - (H.pressureChange_smooth.dz G.domain_open G.operators) | |
| 1059 | - have hdebt : ∀ i : Fin 3, UnweightedClass G.slowStrip (1 + σ - κ) (fun n z => debt c u n z i) := by | |
| 1060 | - intro i | |
| 1061 | - convert! hd i using 1 | |
| 1062 | - ring | |
| 1063 | - obtain ⟨hbθ, hbz⟩ := G.removed_bumps_mem c u H.operators_eq H.angular_flux H.axial_flux | |
| 1064 | - H.source H.reconstructed H.angular_mass H.axial_mass hdebt | |
| 1065 | - have hbar := averaged_residual_decomposition G c u (tangentField f a + curlField f a) | |
| 1066 | - q gaussian H (crossTensor f a) (remainderTensor f a) hS hEc hactual hcrossθ hcrossz | |
| 1067 | - refine ⟨?_, ?_, ?_, ?_⟩ | |
| 1068 | - · apply class_congr ((hθ.mono_exponent (by linarith)).add htchange) | |
| 1069 | - intro n x _ | |
| 1070 | - simp only [Pi.sub_apply] | |
| 1071 | - ring | |
| 1072 | - · apply class_congr ((hz.mono_exponent (by linarith)).add hzchange) | |
| 1073 | - intro n x _ | |
| 1074 | - simp only [Pi.sub_apply] | |
| 1075 | - ring | |
| 1076 | - · exact class_congr ((hbθ.mono_exponent (by linarith)).add (G.average_mem hRestθs hRestθ)) hbar.1 | |
| 1077 | - · exact class_congr ((hbz.mono_exponent (by linarith)).add (G.average_mem hRestzs hRestz)) hbar.2 | |
| 1078 | - | |
| 1079 | 913 | /-! ## A shared native construction, before any signed output is known -/ |
| 1080 | 914 | |
| 1081 | 915 | abbrev NativeIndex := PartitionedCovariance.UnsignedLabel × Fin 2 |
| @@ -1133,66 +967,6 @@ namespace NativeData | ||
| 1133 | 967 | |
| 1134 | 968 | variable {G : Geometry} (B : NativeData G) |
| 1135 | 969 | |
| 1136 | -noncomputable def block (A : PartitionedCovariance.UnsignedLabel → ℕ → Point → SignedWaveUpdate.Vec2) | |
| 1137 | - (l : NativeIndex) : HarmonicBlock Point := | |
| 1138 | - SignedWaveUpdate.coefficientBlock (B.frequency l) (B.phase l) (B.angular l) | |
| 1139 | - (fun n x => CurlClassBounds.complexify | |
| 1140 | - ((PartitionedCovariance.physicalOuter B.exponent (B.index n) l.1 * | |
| 1141 | - (Real.sqrt (PartitionedCovariance.physicalViscosity B.exponent (B.index n) l.1) * | |
| 1142 | - A l.1 n x l.2 * B.mask l.1 n x)) • B.unit l n x)) 0 | |
| 1143 | - | |
| 1144 | -noncomputable def primaryBlocks : NativeIndex → HarmonicBlock Point := | |
| 1145 | - B.block (fun l n x => SmoothCovariance.amplitudes (B.matrix l n x) (B.target l n x)) | |
| 1146 | - | |
| 1147 | -noncomputable def signedBlocks (c : Context Point) (u : State Point) : NativeIndex → HarmonicBlock Point := | |
| 1148 | - B.block (fun l n x => SignedCovariance.increment (B.matrix l n x) (B.target l n x) | |
| 1149 | - (SignedCovariance.chartStress B.exponent (B.index n) | |
| 1150 | - (LocalSignedRequest.requestedStress G.patch G.coord c u n x) l)) | |
| 1151 | - | |
| 1152 | -theorem block_realization | |
| 1153 | - (A : PartitionedCovariance.UnsignedLabel → ℕ → Point → SignedWaveUpdate.Vec2) | |
| 1154 | - (l : NativeIndex) (n : ℕ) {x : Point} (hx : x ∈ G.strip.domain) (θ : ℝ) (i : Fin 3) : | |
| 1155 | - (B.block A l).oscillation n (x, θ) i = | |
| 1156 | - (SignedWaveUpdate.nativeTangentBlock (B.pairs n (x.1, x.2.1) l.1) B.determinant | |
| 1157 | - (PartitionedCovariance.physicalOuter B.exponent (B.index n) l.1) | |
| 1158 | - (PartitionedCovariance.physicalViscosity B.exponent (B.index n) l.1) | |
| 1159 | - (A l.1 n x) (SimilarityCoordinates.coordinateQ G.coord x.2.1) | |
| 1160 | - (B.position n (x.1, x.2.1)) l.2).oscillation 0 (x.2.2, θ) i := by | |
| 1161 | - simp only [block, SignedWaveUpdate.nativeTangentBlock, SignedWaveUpdate.coefficientBlock_velocity] | |
| 1162 | - rw [B.unit_match l n x hx, B.mask_match l.1 n x hx, B.phase_match l n x hx, | |
| 1163 | - B.angular_match l n x hx] | |
| 1164 | - simp only [one_mul] | |
| 1165 | - | |
| 1166 | -theorem primary_realization (l : NativeIndex) (n : ℕ) {x : Point} (hx : x ∈ G.strip.domain) | |
| 1167 | - (θ : ℝ) (i : Fin 3) : | |
| 1168 | - (B.primaryBlocks l).oscillation n (x, θ) i = | |
| 1169 | - (SignedWaveUpdate.nativeTangentBlock (B.pairs n (x.1, x.2.1) l.1) B.determinant | |
| 1170 | - (PartitionedCovariance.physicalOuter B.exponent (B.index n) l.1) | |
| 1171 | - (PartitionedCovariance.physicalViscosity B.exponent (B.index n) l.1) | |
| 1172 | - (SmoothCovariance.amplitudes (B.pairs n (x.1, x.2.1) l.1).matrix | |
| 1173 | - (PartitionedCovariance.chartTarget B.exponent (SimilarityCoordinates.coordinateQ G.coord x.2.1) | |
| 1174 | - (B.index n) (B.modelTarget n (x.1, x.2.1)) l.1)) | |
| 1175 | - (SimilarityCoordinates.coordinateQ G.coord x.2.1) | |
| 1176 | - (B.position n (x.1, x.2.1)) l.2).oscillation 0 (x.2.2, θ) i := by | |
| 1177 | - rw [primaryBlocks, B.block_realization _ l n hx θ i, B.matrix_match l.1 n x hx, | |
| 1178 | - B.target_match l.1 n x hx] | |
| 1179 | - | |
| 1180 | -theorem signed_realization (c : Context Point) (u : State Point) | |
| 1181 | - (l : NativeIndex) (n : ℕ) {x : Point} (hx : x ∈ G.strip.domain) (θ : ℝ) (i : Fin 3) : | |
| 1182 | - (B.signedBlocks c u l).oscillation n (x, θ) i = | |
| 1183 | - (SignedWaveUpdate.nativeTangentBlock (B.pairs n (x.1, x.2.1) l.1) B.determinant | |
| 1184 | - (PartitionedCovariance.physicalOuter B.exponent (B.index n) l.1) | |
| 1185 | - (PartitionedCovariance.physicalViscosity B.exponent (B.index n) l.1) | |
| 1186 | - (SignedCovariance.increment (B.pairs n (x.1, x.2.1) l.1).matrix | |
| 1187 | - (PartitionedCovariance.chartTarget B.exponent (SimilarityCoordinates.coordinateQ G.coord x.2.1) | |
| 1188 | - (B.index n) (B.modelTarget n (x.1, x.2.1)) l.1) | |
| 1189 | - (SignedCovariance.chartStress B.exponent (B.index n) | |
| 1190 | - (LocalSignedRequest.requestedStress G.patch G.coord c u n x) l.1)) | |
| 1191 | - (SimilarityCoordinates.coordinateQ G.coord x.2.1) | |
| 1192 | - (B.position n (x.1, x.2.1)) l.2).oscillation 0 (x.2.2, θ) i := by | |
| 1193 | - rw [signedBlocks, B.block_realization _ l n hx θ i, B.matrix_match l.1 n x hx, | |
| 1194 | - B.target_match l.1 n x hx] | |
| 1195 | - | |
| 1196 | 970 | end NativeData |
| 1197 | 971 | |
| 1198 | 972 | theorem meanBar_symmetricCovariance (p t : Oscillation Point) |
| @@ -1213,132 +987,4 @@ theorem meanBar_symmetricCovariance (p t : Oscillation Point) | ||
| 1213 | 987 | rw [intervalIntegral.integral_add (((hp n _ i).fun_mul (ht n _ j)).intervalIntegrable _ _) |
| 1214 | 988 | (((ht n _ i).fun_mul (hp n _ j)).intervalIntegrable _ _), add_div] |
| 1215 | 989 | |
| 1216 | -theorem NativeData.requested_cross {G : Geometry} (B : NativeData G) | |
| 1217 | - (c : Context Point) (u : State Point) (i : Fin 2) : | |
| 1218 | - Agree G.strip.domain | |
| 1219 | - (StateMomentBalances.meanBar (LabelSumBounds.symmetricCovariance | |
| 1220 | - (LabelSumBounds.fieldSum B.labels (fun l => (B.primaryBlocks l).oscillation)) | |
| 1221 | - (LabelSumBounds.fieldSum B.labels (fun l => (B.signedBlocks c u l).oscillation)) 0 i.succ)) | |
| 1222 | - (fun n x => LocalSignedRequest.requestedStress G.patch G.coord c u n x i) := by | |
| 1223 | - intro n x hx | |
| 1224 | - rw [meanBar_symmetricCovariance _ _ | |
| 1225 | - (LabelSumBounds.fieldSum_angularContinuous _ _ (fun _ => LabelSumBounds.block_angularContinuous _)) | |
| 1226 | - (LabelSumBounds.fieldSum_angularContinuous _ _ (fun _ => LabelSumBounds.block_angularContinuous _))] | |
| 1227 | - have hp (Y : Plane) (θ : ℝ) (j : Fin 3) : | |
| 1228 | - LabelSumBounds.fieldSum B.labels (fun l => (B.primaryBlocks l).oscillation) | |
| 1229 | - n ((x.1, (x.2.1, Y)), θ) j = | |
| 1230 | - SignedWaveUpdate.nativeAssembly (B.pairs n (x.1, x.2.1)) B.determinant | |
| 1231 | - (PartitionedCovariance.physicalOuter B.exponent (B.index n)) | |
| 1232 | - (PartitionedCovariance.physicalViscosity B.exponent (B.index n)) | |
| 1233 | - (fun l => SmoothCovariance.amplitudes (B.pairs n (x.1, x.2.1) l).matrix | |
| 1234 | - (PartitionedCovariance.chartTarget B.exponent (SimilarityCoordinates.coordinateQ G.coord x.2.1) | |
| 1235 | - (B.index n) (B.modelTarget n (x.1, x.2.1)) l)) | |
| 1236 | - (SimilarityCoordinates.coordinateQ G.coord x.2.1) (B.position n (x.1, x.2.1)) Y θ j := by | |
| 1237 | - rw [nativeAssembly_eq_finite _ _ _ _ _ _ _ (B.labels n) (B.coverage n x hx)] | |
| 1238 | - apply Finset.sum_congr rfl | |
| 1239 | - intro l _ | |
| 1240 | - exact B.primary_realization l n (G.strip_fiber hx Y) θ j | |
| 1241 | - have ht (Y : Plane) (θ : ℝ) (j : Fin 3) : | |
| 1242 | - LabelSumBounds.fieldSum B.labels (fun l => (B.signedBlocks c u l).oscillation) | |
| 1243 | - n ((x.1, (x.2.1, Y)), θ) j = | |
| 1244 | - SignedWaveUpdate.nativeAssembly (B.pairs n (x.1, x.2.1)) B.determinant | |
| 1245 | - (PartitionedCovariance.physicalOuter B.exponent (B.index n)) | |
| 1246 | - (PartitionedCovariance.physicalViscosity B.exponent (B.index n)) | |
| 1247 | - (fun l => SignedCovariance.increment (B.pairs n (x.1, x.2.1) l).matrix | |
| 1248 | - (PartitionedCovariance.chartTarget B.exponent (SimilarityCoordinates.coordinateQ G.coord x.2.1) | |
| 1249 | - (B.index n) (B.modelTarget n (x.1, x.2.1)) l) | |
| 1250 | - (SignedCovariance.chartStress B.exponent (B.index n) | |
| 1251 | - (LocalSignedRequest.requestedStress G.patch G.coord c u n x) l)) | |
| 1252 | - (SimilarityCoordinates.coordinateQ G.coord x.2.1) (B.position n (x.1, x.2.1)) Y θ j := by | |
| 1253 | - rw [nativeAssembly_eq_finite _ _ _ _ _ _ _ (B.labels n) (B.coverage n x hx)] | |
| 1254 | - apply Finset.sum_congr rfl | |
| 1255 | - intro l _ | |
| 1256 | - exact B.signed_realization c u l n (G.strip_fiber hx Y) θ j | |
| 1257 | - simp_rw [hp, ht] | |
| 1258 | - exact native_physical_cross B.determinant (B.index n) (B.index_pos n) _ | |
| 1259 | - (G.region.qlo_pos.trans_le (G.region.q_mem x.2.1 (G.strip_subset hx)).1) | |
| 1260 | - (B.tail_bound n x hx) _ _ _ (B.cone n x hx) i | |
| 1261 | - | |
| 1262 | -omit [NormedAddCommGroup D] [NormedSpace ℝ D] in | |
| 1263 | -/-- Equality of the stored harmonic coefficients and carrier metadata | |
| 1264 | -identifies the actual oscillations; the pressure coefficients need not agree. -/ | |
| 1265 | -theorem oscillation_eq_of_coefficients (a b : HarmonicBlock D) | |
| 1266 | - (hv : a.velocity = b.velocity) (hc : LabelSumBounds.SameCarrier a b) : | |
| 1267 | - a.oscillation = b.oscillation := by | |
| 1268 | - unfold HarmonicBlock.oscillation | |
| 1269 | - rw [hv, hc.frequency, hc.phase, hc.angular] | |
| 1270 | - | |
| 1271 | -/-- This binds the abstract label-estimate package to the explicit common | |
| 1272 | -native construction by its coefficient definitions. The physical cross is | |
| 1273 | -a conclusion, with no signed-output realization as a hypothesis. -/ | |
| 1274 | -theorem native_family_cross | |
| 1275 | - (G : Geometry) (B : NativeData G) (c : Context Point) (u : State Point) | |
| 1276 | - {P : NativeIndex → ℕ → Point → ℝ} {α δ β η : ℝ} | |
| 1277 | - (f : LabelSumBounds.SignedFamily G.strip P α δ β η) (a : Assembly f) | |
| 1278 | - (hl : a.labels = B.labels) | |
| 1279 | - (hp : ∀ l, (f.primary l).velocity = (B.primaryBlocks l).velocity) | |
| 1280 | - (hcp : ∀ l, LabelSumBounds.SameCarrier (f.primary l) (B.primaryBlocks l)) | |
| 1281 | - (ht : ∀ l, (f.tangent l).velocity = (B.signedBlocks c u l).velocity) | |
| 1282 | - (hct : ∀ l, LabelSumBounds.SameCarrier (f.tangent l) (B.signedBlocks c u l)) : | |
| 1283 | - Agree G.strip.domain (StateMomentBalances.meanBar (crossTensor f a 0 1)) | |
| 1284 | - (physicalSigma G 2 (u.thetaResidual c)) ∧ | |
| 1285 | - Agree G.strip.domain (StateMomentBalances.meanBar (crossTensor f a 0 2)) | |
| 1286 | - (physicalSigma G 1 (u.axialResidual c)) := by | |
| 1287 | - have hprimary : primaryField f a = LabelSumBounds.fieldSum B.labels | |
| 1288 | - (fun l => (B.primaryBlocks l).oscillation) := by | |
| 1289 | - unfold primaryField | |
| 1290 | - rw [hl] | |
| 1291 | - apply congrArg (LabelSumBounds.fieldSum B.labels) | |
| 1292 | - funext l | |
| 1293 | - exact oscillation_eq_of_coefficients _ _ (hp l) (hcp l) | |
| 1294 | - have htangent : tangentField f a = LabelSumBounds.fieldSum B.labels | |
| 1295 | - (fun l => (B.signedBlocks c u l).oscillation) := by | |
| 1296 | - unfold tangentField | |
| 1297 | - rw [hl] | |
| 1298 | - apply congrArg (LabelSumBounds.fieldSum B.labels) | |
| 1299 | - funext l | |
| 1300 | - exact oscillation_eq_of_coefficients _ _ (ht l) (hct l) | |
| 1301 | - constructor | |
| 1302 | - · have he := B.requested_cross c u 0 | |
| 1303 | - simp only [crossTensor, hprimary, htangent, LocalSignedRequest.requestedStress, | |
| 1304 | - Matrix.cons_val_zero] at he ⊢ | |
| 1305 | - exact he | |
| 1306 | - · have he := B.requested_cross c u 1 | |
| 1307 | - simp only [crossTensor, hprimary, htangent, LocalSignedRequest.requestedStress, | |
| 1308 | - Matrix.cons_val_one] at he ⊢ | |
| 1309 | - exact he | |
| 1310 | - | |
| 1311 | -/-- The signed-wave mean gain for the actual reconstructed state. Incoming | |
| 1312 | -raw residuals and measured defects have exponent `1+σ-κ`; the output raw | |
| 1313 | -residuals have exponent `1+σ-2κ`, and their actual torus means gain `17/100`. | |
| 1314 | -The same native primary, masks, matrix, quotient, and fundamental supply the | |
| 1315 | -cross cancellation. All remaining covariance terms are estimated literally. -/ | |
| 1316 | -theorem native_signed_mean_gain | |
| 1317 | - (G : Geometry) (B : NativeData G) (c : Context Point) (u : State Point) | |
| 1318 | - {P : NativeIndex → ℕ → Point → ℝ} {σ κ : ℝ} | |
| 1319 | - (hσ : 1 / 5 ≤ σ) (hκ : 0 ≤ κ) (hκsmall : κ ≤ 1 / 100000) | |
| 1320 | - (f : LabelSumBounds.SignedFamily G.strip P (1 / 2) (17 / 25) | |
| 1321 | - (1 / 2 + σ - κ) (1 + σ - 2 * κ)) (a : Assembly f) | |
| 1322 | - (hl : a.labels = B.labels) | |
| 1323 | - (hp : ∀ l, (f.primary l).velocity = (B.primaryBlocks l).velocity) | |
| 1324 | - (hcp : ∀ l, LabelSumBounds.SameCarrier (f.primary l) (B.primaryBlocks l)) | |
| 1325 | - (ht : ∀ l, (f.tangent l).velocity = (B.signedBlocks c u l).velocity) | |
| 1326 | - (hct : ∀ l, LabelSumBounds.SameCarrier (f.tangent l) (B.signedBlocks c u l)) | |
| 1327 | - (q : OscillatoryScalar Point) (gaussian : Oscillation Point) | |
| 1328 | - (hold : u.oscillation = oldField f a) | |
| 1329 | - (H : LocalData G c u (tangentField f a + curlField f a) q gaussian) | |
| 1330 | - (ho : OperatorBounds G.strip G.operators κ) | |
| 1331 | - (hX : ∀ i j, MovingField G (incrementTensor f a i j)) | |
| 1332 | - (hS : ∀ i j, MovingField G (crossTensor f a i j)) | |
| 1333 | - (hθ : MeanClass G.strip (1 + σ - κ) (u.thetaResidual c)) | |
| 1334 | - (hz : MeanClass G.strip (1 + σ - κ) (u.axialResidual c)) | |
| 1335 | - (hd : DefectBounds G.slowStrip (σ - κ) c u) : | |
| 1336 | - let v := waveStage G.gauge c u (tangentField f a + curlField f a) q gaussian | |
| 1337 | - MeanClass G.strip (1 + σ - 2 * κ) (v.thetaResidual c) ∧ | |
| 1338 | - MeanClass G.strip (1 + σ - 2 * κ) (v.axialResidual c) ∧ | |
| 1339 | - MeanClass G.strip (1 + σ + 17 / 100) (StateMomentBalances.meanBar (v.thetaResidual c)) ∧ | |
| 1340 | - MeanClass G.strip (1 + σ + 17 / 100) (StateMomentBalances.meanBar (v.axialResidual c)) := by | |
| 1341 | - obtain ⟨hcθ, hcz⟩ := native_family_cross G B c u f a hl hp hcp ht hct | |
| 1342 | - exact signed_mean_gain_of_cross G c u hσ hκ hκsmall f a q gaussian hold H ho hX hS hθ hz hd hcθ hcz | |
| 1343 | - | |
| 1344 | 990 | end NavierStokes.SignedMeanGain |
+0 −75 NavierStokes/SignedWaveUpdate.lean View file
| @@ -654,13 +654,6 @@ theorem phase_coefficients_principal_zero | ||
| 654 | 654 | |
| 655 | 655 | /-! ## The constructed curl, pressure, and retained linear error -/ |
| 656 | 656 | |
| 657 | -noncomputable def exactCoefficients (a : LinearWaveBounds.WaveCoefficients D) | |
| 658 | - (s : StripData D) (d : LinearWaveBounds.GraphDirections D) | |
| 659 | - (H : ℕ → D → Mat2) (T R : ℕ → D → Vec2) (mask : ℕ → D → ℝ) | |
| 660 | - (v Ndot : ℕ → D → Space) (A : ℕ → D → Space →L[ℝ] Space) | |
| 661 | - (ψ : ℕ → D → ℝ) (j : Fin 2) : LinearWaveBounds.WaveCoefficients D := | |
| 662 | - (coefficients a s d H T R mask v Ndot A j).corrected s d ψ | |
| 663 | - | |
| 664 | 657 | theorem signed_bounds |
| 665 | 658 | {s : StripData D} {d : LinearWaveBounds.GraphDirections D} |
| 666 | 659 | {a : LinearWaveBounds.WaveCoefficients D} {P₀ P : ℕ → D → ℝ} {α₀ B κ : ℝ} |
| @@ -734,74 +727,6 @@ noncomputable def nativeUnit {D h : ℝ} {vr vt : TorusInverse.Plane} | ||
| 734 | 727 | covered (SlotColoring.nativeIndex h U.1) (P.rawTangent hdet j 0) Y, |
| 735 | 728 | covered (SlotColoring.nativeIndex h U.1) (P.rawTangent hdet j 1) Y] |
| 736 | 729 | |
| 737 | -noncomputable def nativeTangentBlock {D h : ℝ} {vr vt : TorusInverse.Plane} | |
| 738 | - {sys : SlotSystem D h vr vt} {U : UnsignedLabel} (P : PairData sys U) | |
| 739 | - (hdet : vr.1 * vt.2 - vr.2 * vt.1 ≠ 0) (outer ε : ℝ) (a : Vec2) | |
| 740 | - (q : ℝ) (x : SlotColoring.Position) (j : Fin 2) : | |
| 741 | - CorrectionState.HarmonicBlock TorusInverse.Plane := | |
| 742 | - coefficientBlock (fun _ => 1) (fun _ => P.phases j) (fun _ => P.modes j) | |
| 743 | - (fun _ Y => CurlClassBounds.complexify | |
| 744 | - ((outer * (Real.sqrt ε * a j * mask D U q x)) • nativeUnit P hdet j Y)) 0 | |
| 745 | - | |
| 746 | -theorem real_character_one (a t : ℝ) : | |
| 747 | - ((a : ℂ) * HarmonicFields.character 1 t).re = a * Real.cos t := by | |
| 748 | - simp [HarmonicFields.character, Complex.mul_re, Complex.exp_re] | |
| 749 | - | |
| 750 | -theorem nativeTangentBlock_radial {D h : ℝ} {vr vt : TorusInverse.Plane} | |
| 751 | - {sys : SlotSystem D h vr vt} {U : UnsignedLabel} (P : PairData sys U) | |
| 752 | - (hdet : vr.1 * vt.2 - vr.2 * vt.1 ≠ 0) (outer ε : ℝ) (a : Vec2) | |
| 753 | - (q : ℝ) (x : SlotColoring.Position) (j : Fin 2) (n : ℕ) (Y : TorusInverse.Plane) (θ : ℝ) : | |
| 754 | - (nativeTangentBlock P hdet outer ε a q x j).oscillation n (Y,θ) 0 = | |
| 755 | - SignedCovariance.radialWith P hdet outer ε a q x j Y θ := by | |
| 756 | - rw [nativeTangentBlock, coefficientBlock_velocity] | |
| 757 | - change ((outer * (Real.sqrt ε * a j * mask D U q x) * | |
| 758 | - covered (SlotColoring.nativeIndex h U.1) (P.rawRadial hdet j) Y : ℝ) * | |
| 759 | - HarmonicFields.character 1 (1 * P.phases j Y + (P.modes j : ℝ) * θ)).re = _ | |
| 760 | - rw [real_character_one] | |
| 761 | - simp only [SignedCovariance.radialWith, wave, one_mul, add_comm] | |
| 762 | - | |
| 763 | -theorem nativeTangentBlock_tangent {D h : ℝ} {vr vt : TorusInverse.Plane} | |
| 764 | - {sys : SlotSystem D h vr vt} {U : UnsignedLabel} (P : PairData sys U) | |
| 765 | - (hdet : vr.1 * vt.2 - vr.2 * vt.1 ≠ 0) (outer ε : ℝ) (a : Vec2) | |
| 766 | - (q : ℝ) (x : SlotColoring.Position) (j i : Fin 2) (n : ℕ) (Y : TorusInverse.Plane) (θ : ℝ) : | |
| 767 | - (nativeTangentBlock P hdet outer ε a q x j).oscillation n (Y,θ) i.succ = | |
| 768 | - SignedCovariance.tangentWith P hdet outer ε a q x j i Y θ := by | |
| 769 | - rw [nativeTangentBlock, coefficientBlock_velocity] | |
| 770 | - have hv : nativeUnit P hdet j Y i.succ = | |
| 771 | - covered (SlotColoring.nativeIndex h U.1) (P.rawTangent hdet j i) Y := by fin_cases i <;> rfl | |
| 772 | - simp only [ CurlClassBounds.complexify_apply, PiLp.smul_apply, | |
| 773 | - hv] | |
| 774 | - rw [real_character_one] | |
| 775 | - simp only [SignedCovariance.tangentWith, wave, one_mul, add_comm, smul_eq_mul] | |
| 776 | - | |
| 777 | -noncomputable def nativeAssembly {D h : ℝ} {vr vt : TorusInverse.Plane} | |
| 778 | - {sys : SlotSystem D h vr vt} {N : ℕ} | |
| 779 | - (P : (U : UnsignedLabel) → PairData sys (tailLabel N U)) | |
| 780 | - (hdet : vr.1 * vt.2 - vr.2 * vt.1 ≠ 0) (outer ε : UnsignedLabel → ℝ) | |
| 781 | - (a : UnsignedLabel → Vec2) (q : ℝ) (x : SlotColoring.Position) : | |
| 782 | - TorusInverse.Plane → ℝ → Fin 3 → ℝ := fun Y θ i => | |
| 783 | - ∑ᶠ v : UnsignedLabel × Fin 2, | |
| 784 | - (nativeTangentBlock (P v.1) hdet (outer v.1) (ε v.1) (a v.1) q x v.2).oscillation 0 (Y,θ) i | |
| 785 | - | |
| 786 | -theorem nativeAssembly_radial {D h : ℝ} {vr vt : TorusInverse.Plane} | |
| 787 | - {sys : SlotSystem D h vr vt} {N : ℕ} | |
| 788 | - (P : (U : UnsignedLabel) → PairData sys (tailLabel N U)) | |
| 789 | - (hdet : vr.1 * vt.2 - vr.2 * vt.1 ≠ 0) (outer ε : UnsignedLabel → ℝ) | |
| 790 | - (a : UnsignedLabel → Vec2) (q : ℝ) (x : SlotColoring.Position) (Y : TorusInverse.Plane) (θ : ℝ) : | |
| 791 | - nativeAssembly P hdet outer ε a q x Y θ 0 = | |
| 792 | - SignedCovariance.assembledRadialWith P hdet outer ε a q x Y θ := by | |
| 793 | - simp only [nativeAssembly, nativeTangentBlock_radial, SignedCovariance.assembledRadialWith] | |
| 794 | - | |
| 795 | -theorem nativeAssembly_tangent {D h : ℝ} {vr vt : TorusInverse.Plane} | |
| 796 | - {sys : SlotSystem D h vr vt} {N : ℕ} | |
| 797 | - (P : (U : UnsignedLabel) → PairData sys (tailLabel N U)) | |
| 798 | - (hdet : vr.1 * vt.2 - vr.2 * vt.1 ≠ 0) (outer ε : UnsignedLabel → ℝ) | |
| 799 | - (a : UnsignedLabel → Vec2) (q : ℝ) (x : SlotColoring.Position) | |
| 800 | - (i : Fin 2) (Y : TorusInverse.Plane) (θ : ℝ) : | |
| 801 | - nativeAssembly P hdet outer ε a q x Y θ i.succ = | |
| 802 | - SignedCovariance.assembledTangentWith P hdet outer ε a q x i Y θ := by | |
| 803 | - simp only [nativeAssembly, nativeTangentBlock_tangent, SignedCovariance.assembledTangentWith] | |
| 804 | - | |
| 805 | 730 | end NativeBlocks |
| 806 | 731 | |
| 807 | 732 | /-! ## Canonical pulse binding for the matrix and the native blocks -/ |
+28 −0 routes/s1-ns-signed-3/README.md added View file
| @@ -0,0 +1,28 @@ | ||
| 1 | +--- | |
| 2 | +issue: 10 | |
| 3 | +status: working | |
| 4 | +--- | |
| 5 | +# s1-ns-signed-3 | |
| 6 | + | |
| 7 | +One declarations unit of #10 (S-1), wave 3: the `NavierStokes/Signed*` family. It deletes 41 declarations | |
| 8 | +from `NavierStokes/SignedCovariance.lean` (19), `NavierStokes/SignedMeanGain.lean` (14) and | |
| 9 | +`NavierStokes/SignedWaveUpdate.lean` (8): 740 lines, deletions only, no statement or proof that stays | |
| 10 | +changed. The unit was cut from main at `4385cbe` after the reviews of the first two waves; it is disjoint | |
| 11 | +from `s1-ns-signed-1` (merged in pull request #275) and `s1-ns-signed-2`. | |
| 12 | + | |
| 13 | +How they were found. Treant (TitiSkywalker/NavierStokesAndEuler, the run of 2026-12-03 at upstream | |
| 14 | +`f9e8bc5`) found them unreachable from the four Comparator theorems; `docs/s1-dead-code/README.md` is the | |
| 15 | +plan. The maintainer's keep rule was applied as described in the pull request's description. | |
| 16 | + | |
| 17 | +Checked, as a reviewer would. Every short name of the 41 declarations was searched with `git grep -n -w` | |
| 18 | +over the tree after the deletion. Nothing left names them, except hits that are other declarations of the | |
| 19 | +same short name: `block` in `Euler/ParameterSobolevBlocks.lean`, `NavierStokes/CorrectionInitialization.lean` | |
| 20 | +and `NavierStokes/StateReindex.lean`; the structure field `signedTangent` (`p.signedTangent v c u l`) used in | |
| 21 | +the cycle files; and the `exactCoefficients` field of the primary pieces in | |
| 22 | +`NavierStokes/ActualInitialization.lean`. No qualified name of a deleted declaration occurs anywhere, | |
| 23 | +including outside the Lean sources. The 740 deleted lines were read for a numbered Lemma, Theorem, | |
| 24 | +Proposition, Corollary, Section or Equation of either paper and for "the manuscript": there is none. | |
| 25 | + | |
| 26 | +## Next | |
| 27 | + | |
| 28 | +Push and open the pull request; the site's `challenge` and `build` checks decide. | |