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/Label): delete 59 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
ci/docs
Details
+0 −311 NavierStokes/LabelCounting.lean View file
| @@ -20,315 +20,4 @@ open Set | ||
| 20 | 20 | open scoped BigOperators |
| 21 | 21 | open SlotColoring SquaredPartition |
| 22 | 22 | |
| 23 | -/-- A closed slow-coordinate grid box with an arbitrary enlargement factor. -/ | |
| 24 | -def normalizedBox (A : ℝ) (L : Label) : Set Position := | |
| 25 | - {x | ∀ j, |x j - nativeSpacing L.1 * (L.2.1 j : ℝ)| ≤ A * nativeSpacing L.1} | |
| 26 | - | |
| 27 | -/-- Both signs are counted separately, exactly as in the manuscript. -/ | |
| 28 | -def relevantLabels (n : ℕ) (A : ℝ) (B : Set Position) : Set Label := | |
| 29 | - {L | L.1 = n ∧ (normalizedBox A L ∩ B).Nonempty} | |
| 30 | - | |
| 31 | -theorem nativeSpacing_eq (n : ℕ) : nativeSpacing n = ((n : ℝ) ^ 6)⁻¹ := by | |
| 32 | - simp only [nativeSpacing, ChartScales.S, ← pow_mul] | |
| 33 | - | |
| 34 | -theorem nativeSpacing_mul_six {n : ℕ} (hn : 1 ≤ n) : | |
| 35 | - nativeSpacing n * (n : ℝ) ^ 6 = 1 := by | |
| 36 | - rw [nativeSpacing_eq, inv_mul_cancel₀] | |
| 37 | - exact pow_ne_zero _ (by exact_mod_cast (by omega : n ≠ 0)) | |
| 38 | - | |
| 39 | -/-- A coordinate bounded in physical chart units gives an explicit integer | |
| 40 | -index bound. The center may vary freely; only the radius affects the count. -/ | |
| 41 | -theorem index_bound {n : ℕ} (hn : 1 ≤ n) {A x c : ℝ} {i : ℤ} {M K : ℕ} | |
| 42 | - (hA : A ≤ K) (hx : |x - c| ≤ M) | |
| 43 | - (hi : |x - nativeSpacing n * (i : ℝ)| ≤ A * nativeSpacing n) : | |
| 44 | - |i - ⌊c / nativeSpacing n⌋| ≤ (M * n ^ 6 + K + 1 : ℕ) := by | |
| 45 | - have hd := nativeSpacing_pos hn | |
| 46 | - have hdist : |c - nativeSpacing n * (i : ℝ)| ≤ (M : ℝ) + A * nativeSpacing n := by | |
| 47 | - have h := abs_sub_le c x (nativeSpacing n * (i : ℝ)) | |
| 48 | - rw [abs_sub_comm c x] at h | |
| 49 | - linarith | |
| 50 | - have hgap : |c / nativeSpacing n - (i : ℝ)| ≤ (M : ℝ) * (n : ℝ) ^ 6 + K := by | |
| 51 | - calc | |
| 52 | - |c / nativeSpacing n - (i : ℝ)| = | |
| 53 | - |c - nativeSpacing n * (i : ℝ)| / nativeSpacing n := by | |
| 54 | - have he : c / nativeSpacing n - (i : ℝ) = | |
| 55 | - (c - nativeSpacing n * (i : ℝ)) / nativeSpacing n := by field_simp | |
| 56 | - rw [he, abs_div, abs_of_pos hd] | |
| 57 | - _ ≤ ((M : ℝ) + A * nativeSpacing n) / nativeSpacing n := | |
| 58 | - div_le_div_of_nonneg_right hdist hd.le | |
| 59 | - _ = (M : ℝ) * (n : ℝ) ^ 6 + A := by | |
| 60 | - rw [add_div, mul_div_cancel_right₀ _ hd.ne'] | |
| 61 | - simp [nativeSpacing_eq, div_eq_mul_inv] | |
| 62 | - _ ≤ (M : ℝ) * (n : ℝ) ^ 6 + K := by linarith | |
| 63 | - apply index_near_floor _ _ _ _ hgap | |
| 64 | - push_cast | |
| 65 | - rfl | |
| 66 | - | |
| 67 | -theorem slowMask_tsupport_subset_normalizedBox {n : ℕ} (hn : 1 ≤ n) | |
| 68 | - (k : Grid) (σ : Bool) {A : ℝ} (hA : 1 ≤ A) : | |
| 69 | - tsupport (slowMask n k) ⊆ normalizedBox A (n, k, σ) := by | |
| 70 | - intro x hx j | |
| 71 | - have hj := slowMask_tsupport_subset hn k hx j (mem_univ j) | |
| 72 | - change |x j - nativeSpacing n * (k j : ℝ)| ≤ A * nativeSpacing n | |
| 73 | - have hδ := nativeSpacing_pos hn | |
| 74 | - have hm : nativeSpacing n ≤ A * nativeSpacing n := by nlinarith | |
| 75 | - rw [abs_le] | |
| 76 | - constructor <;> linarith [hj.1, hj.2] | |
| 77 | - | |
| 78 | -/-- Explicit count for any chart region contained in a coordinate rectangle. | |
| 79 | -Coordinates of radius zero make only a constant contribution to this bound. -/ | |
| 80 | -theorem rectangle_count {n : ℕ} (hn : 1 ≤ n) {A : ℝ} {K : ℕ} (hA : A ≤ K) | |
| 81 | - (B : Set Position) (c : Position) (M : Fin 3 → ℕ) | |
| 82 | - (hB : ∀ x ∈ B, ∀ j, |x j - c j| ≤ (M j : ℝ)) : | |
| 83 | - (relevantLabels n A B).Finite ∧ | |
| 84 | - (relevantLabels n A B).ncard ≤ 2 * ∏ j, (2 * (M j * n ^ 6 + K + 1) + 1) := by | |
| 85 | - have hi : ∀ L ∈ relevantLabels n A B, L.1 = n ∧ | |
| 86 | - ∀ j, |L.2.1 j - ⌊c j / nativeSpacing n⌋| ≤ (M j * n ^ 6 + K + 1 : ℕ) := by | |
| 87 | - intro L hL | |
| 88 | - obtain ⟨hl, x, hx, hxB⟩ := hL | |
| 89 | - refine ⟨hl, fun j => ?_⟩ | |
| 90 | - apply index_bound hn hA (hB x hxB j) | |
| 91 | - simpa only [normalizedBox, mem_ofPred_eq, hl] using hx j | |
| 92 | - exact ⟨LabelCountingFinite.finite_of_index_bounds n _ _ hi, | |
| 93 | - LabelCountingFinite.ncard_le_of_index_bounds n _ _ hi⟩ | |
| 94 | - | |
| 95 | -/-- A normalized radial slice; the two transverse coordinates are arbitrary. -/ | |
| 96 | -def radialSlice (I : Set ℝ) (Z T : ℝ) : Set Position := | |
| 97 | - {x | x 0 ∈ I ∧ x 1 = Z ∧ x 2 = T} | |
| 98 | - | |
| 99 | -theorem radial_rectangle_count {n : ℕ} (hn : 1 ≤ n) {A : ℝ} {K M : ℕ} | |
| 100 | - (hA : A ≤ K) (I : Set ℝ) (hI : ∀ r ∈ I, |r| ≤ (M : ℝ)) (Z T : ℝ) : | |
| 101 | - (relevantLabels n A (radialSlice I Z T)).Finite ∧ | |
| 102 | - (relevantLabels n A (radialSlice I Z T)).ncard ≤ | |
| 103 | - 2 * ∏ j, (2 * (![M, 0, 0] j * n ^ 6 + K + 1) + 1) := by | |
| 104 | - apply rectangle_count hn hA _ ![0, Z, T] ![M, 0, 0] | |
| 105 | - intro x hx j | |
| 106 | - fin_cases j | |
| 107 | - · simpa using hI _ hx.1 | |
| 108 | - · simp [hx.2.1] | |
| 109 | - · simp [hx.2.2] | |
| 110 | - | |
| 111 | -/-- The three-coordinate count with its polynomial dependence separated from | |
| 112 | -the fixed chart radius and the fixed box enlargement. -/ | |
| 113 | -theorem chart_count_of_coordinate_bound {n : ℕ} (hn : 1 ≤ n) {A : ℝ} | |
| 114 | - {K M : ℕ} (hA : A ≤ K) (B : Set Position) | |
| 115 | - (hB : ∀ x ∈ B, ∀ j, |x j| ≤ (M : ℝ)) : | |
| 116 | - (relevantLabels n A B).Finite ∧ | |
| 117 | - ((relevantLabels n A B).ncard : ℝ) ≤ | |
| 118 | - (2 * (2 * ((M : ℝ) + K + 1) + 1) ^ 3) * ChartScales.S n ^ 9 := by | |
| 119 | - obtain ⟨hfin, hcard⟩ := rectangle_count hn hA B 0 (fun _ => M) | |
| 120 | - (by simpa only [Pi.zero_apply, sub_zero] using hB) | |
| 121 | - refine ⟨hfin, ?_⟩ | |
| 122 | - have hb := hcard.trans (LabelCountingFinite.box_polynomial_bound n M K hn) | |
| 123 | - have hr : ((relevantLabels n A B).ncard : ℝ) ≤ | |
| 124 | - (2 * (2 * ((M : ℝ) + K + 1) + 1) ^ 3) * (n : ℝ) ^ 18 := by | |
| 125 | - exact_mod_cast hb | |
| 126 | - simpa only [ChartScales.S, ← pow_mul] using hr | |
| 127 | - | |
| 128 | -/-- The radial count has only one growing coordinate. Its constant is | |
| 129 | -independent of both transverse coordinates, including arbitrarily large ones. -/ | |
| 130 | -theorem radial_count_of_bound {n : ℕ} (hn : 1 ≤ n) {A : ℝ} {K M : ℕ} | |
| 131 | - (hA : A ≤ K) (I : Set ℝ) (hI : ∀ r ∈ I, |r| ≤ (M : ℝ)) (Z T : ℝ) : | |
| 132 | - (relevantLabels n A (radialSlice I Z T)).Finite ∧ | |
| 133 | - ((relevantLabels n A (radialSlice I Z T)).ncard : ℝ) ≤ | |
| 134 | - (2 * (2 * ((M : ℝ) + K + 1) + 1) * (2 * (K + 1) + 1) ^ 2) * | |
| 135 | - ChartScales.S n ^ 3 := by | |
| 136 | - obtain ⟨hfin, hcard⟩ := radial_rectangle_count hn hA I hI Z T | |
| 137 | - refine ⟨hfin, ?_⟩ | |
| 138 | - have hpoly := LabelCountingFinite.radial_polynomial_bound n M K hn | |
| 139 | - simp [Fin.prod_univ_three] at hcard hpoly | |
| 140 | - have hb := hcard.trans hpoly | |
| 141 | - have hr : ((relevantLabels n A (radialSlice I Z T)).ncard : ℝ) ≤ | |
| 142 | - (2 * (2 * ((M : ℝ) + K + 1) + 1) * (2 * (K + 1) + 1) ^ 2) * | |
| 143 | - (n : ℝ) ^ 6 := by | |
| 144 | - exact_mod_cast hb | |
| 145 | - simpa only [ChartScales.S, ← pow_mul] using hr | |
| 146 | - | |
| 147 | -/-- The compact-chart estimate of `geom:counting-bounds`, proved for every | |
| 148 | -bounded chart set. The one constant works in every positive band. -/ | |
| 149 | -theorem bounded_chart_count (A : ℝ) {B : Set Position} (hB : Bornology.IsBounded B) : | |
| 150 | - ∃ C > 0, ∀ n : ℕ, 1 ≤ n → | |
| 151 | - (relevantLabels n A B).Finite ∧ | |
| 152 | - ((relevantLabels n A B).ncard : ℝ) ≤ C * ChartScales.S n ^ 9 := by | |
| 153 | - obtain ⟨R, hR⟩ := hB.exists_norm_le | |
| 154 | - obtain ⟨M, hM⟩ := exists_nat_ge R | |
| 155 | - obtain ⟨K, hK⟩ := exists_nat_ge A | |
| 156 | - refine ⟨2 * (2 * ((M : ℝ) + K + 1) + 1) ^ 3, by positivity, ?_⟩ | |
| 157 | - intro n hn | |
| 158 | - apply chart_count_of_coordinate_bound hn hK B | |
| 159 | - intro x hx j | |
| 160 | - simpa only [Real.norm_eq_abs] using (norm_le_pi_norm x j).trans ((hR x hx).trans hM) | |
| 161 | - | |
| 162 | -/-- Compact chart sets satisfy the manuscript's `C_B S_n^9` estimate. | |
| 163 | -The enlargement factor is arbitrary and affects only `C_B`. -/ | |
| 164 | -theorem compact_chart_count (A : ℝ) {B : Set Position} (hB : IsCompact B) : | |
| 165 | - ∃ C > 0, ∀ n : ℕ, 1 ≤ n → | |
| 166 | - (relevantLabels n A B).Finite ∧ | |
| 167 | - ((relevantLabels n A B).ncard : ℝ) ≤ C * ChartScales.S n ^ 9 := | |
| 168 | - bounded_chart_count A hB.isBounded | |
| 169 | - | |
| 170 | -/-- The radial-line estimate of `geom:counting-bounds`. A single constant | |
| 171 | -works simultaneously for all bands and all `Z,T`. Bounded intervals are | |
| 172 | -included; no closedness or endpoint conventions are needed. -/ | |
| 173 | -theorem bounded_radial_count (A : ℝ) {I : Set ℝ} (hI : Bornology.IsBounded I) : | |
| 174 | - ∃ C > 0, ∀ n : ℕ, 1 ≤ n → ∀ Z T : ℝ, | |
| 175 | - (relevantLabels n A (radialSlice I Z T)).Finite ∧ | |
| 176 | - ((relevantLabels n A (radialSlice I Z T)).ncard : ℝ) ≤ C * ChartScales.S n ^ 3 := by | |
| 177 | - obtain ⟨R, hR⟩ := hI.exists_norm_le | |
| 178 | - obtain ⟨M, hM⟩ := exists_nat_ge R | |
| 179 | - obtain ⟨K, hK⟩ := exists_nat_ge A | |
| 180 | - refine ⟨2 * (2 * ((M : ℝ) + K + 1) + 1) * (2 * (K + 1) + 1) ^ 2, | |
| 181 | - by positivity, ?_⟩ | |
| 182 | - intro n hn Z T | |
| 183 | - apply radial_count_of_bound hn hK I _ Z T | |
| 184 | - intro r hr | |
| 185 | - simpa only [Real.norm_eq_abs] using (hR r hr).trans hM | |
| 186 | - | |
| 187 | -/-- Labels whose genuine closed dyadic band and enlarged slow box contain | |
| 188 | -the point. Each band uses its own physical-to-normalized chart. -/ | |
| 189 | -def pointwiseLabels (D A q : ℝ) (x : Position) : Set Label := | |
| 190 | - {L | 1 ≤ L.1 ∧ q ∈ tsupport (dyadicMask (L.1 : ℤ)) ∧ | |
| 191 | - slowCoordinates D L.1 x ∈ normalizedBox A L} | |
| 192 | - | |
| 193 | -/-- For arbitrary fixed slow-box enlargement, no more than five bands and | |
| 194 | -a constant number of grid indices per band contribute at a point. -/ | |
| 195 | -theorem pointwise_count_of_bound (D : ℝ) {A : ℝ} {K : ℕ} (hA : A ≤ K) | |
| 196 | - (q : ℝ) (x : Position) : | |
| 197 | - (pointwiseLabels D A q x).Finite ∧ | |
| 198 | - (pointwiseLabels D A q x).ncard ≤ 5 * (2 * (2 * (K + 1) + 1) ^ 3) := by | |
| 199 | - by_cases hq : 0 < q | |
| 200 | - · have hs : ∀ L ∈ pointwiseLabels D A q x, | |
| 201 | - L.1 ∈ LabelCountingFinite.bandCandidates (logCoordinate q) ∧ | |
| 202 | - ∀ j, |L.2.1 j - ⌊slowCoordinates D L.1 x j / nativeSpacing L.1⌋| ≤ | |
| 203 | - ((fun _ : Fin 3 => K + 1) j : ℤ) := by | |
| 204 | - intro L hL | |
| 205 | - have hb : ChartScales.Q L.1 / 2 ≤ q ∧ q ≤ 2 * ChartScales.Q L.1 := by | |
| 206 | - simpa only [dyadicMask_tsupport, integerQ_nat, mem_Icc] using hL.2.1 | |
| 207 | - refine ⟨LabelCountingFinite.mem_bandCandidates | |
| 208 | - (PhysicalWaveSum.logCoordinate_in_band hq hb.1 hb.2), ?_⟩ | |
| 209 | - intro j | |
| 210 | - have hi := index_bound hL.1 hA (M := 0) | |
| 211 | - (x := slowCoordinates D L.1 x j) (c := slowCoordinates D L.1 x j) | |
| 212 | - (by simp) (hL.2.2 j) | |
| 213 | - simpa only [Nat.zero_mul, Nat.zero_add] using hi | |
| 214 | - obtain ⟨hfin, hcount⟩ := LabelCountingFinite.count_of_band_index_bounds | |
| 215 | - (LabelCountingFinite.bandCandidates (logCoordinate q)) | |
| 216 | - (fun n j => ⌊slowCoordinates D n x j / nativeSpacing n⌋) (fun _ => K + 1) hs | |
| 217 | - refine ⟨hfin, hcount.trans ?_⟩ | |
| 218 | - simpa only [Finset.prod_const, Finset.card_univ, Fintype.card_fin] using | |
| 219 | - Nat.mul_le_mul_right (2 * (2 * (K + 1) + 1) ^ 3) | |
| 220 | - (LabelCountingFinite.bandCandidates_card_le (logCoordinate q)) | |
| 221 | - · have he : pointwiseLabels D A q x = ∅ := by | |
| 222 | - apply Set.eq_empty_iff_forall_notMem.mpr | |
| 223 | - intro L hL | |
| 224 | - have hb : ChartScales.Q L.1 / 2 ≤ q ∧ q ≤ 2 * ChartScales.Q L.1 := by | |
| 225 | - simpa only [dyadicMask_tsupport, integerQ_nat, mem_Icc] using hL.2.1 | |
| 226 | - exact hq ((div_pos (ChartScales.Q_pos L.1) (by norm_num)).trans_le hb.1) | |
| 227 | - simp [he] | |
| 228 | - | |
| 229 | -/-- The uniform pointwise overlap estimate, including every fixed-factor | |
| 230 | -enlargement of the mesh boxes. The constant is also independent of `D`. -/ | |
| 231 | -theorem pointwise_count (A : ℝ) : | |
| 232 | - ∃ C > 0, ∀ D q : ℝ, ∀ x : Position, | |
| 233 | - (pointwiseLabels D A q x).Finite ∧ | |
| 234 | - ((pointwiseLabels D A q x).ncard : ℝ) ≤ C := by | |
| 235 | - obtain ⟨K, hK⟩ := exists_nat_ge A | |
| 236 | - refine ⟨(5 * (2 * (2 * ((K : ℝ) + 1) + 1) ^ 3)), by positivity, ?_⟩ | |
| 237 | - intro D q x | |
| 238 | - obtain ⟨hfin, hcount⟩ := pointwise_count_of_bound D hK q x | |
| 239 | - exact ⟨hfin, by exact_mod_cast hcount⟩ | |
| 240 | - | |
| 241 | -/-- The original mask-support regions are contained in every enlargement | |
| 242 | -of factor at least one. Thus the count above applies to the actual labels | |
| 243 | -of the constructed partition, including their support boundaries. -/ | |
| 244 | -theorem labelRegion_subset_pointwiseLabels {D A q : ℝ} {x : Position} {L : Label} | |
| 245 | - (hA : 1 ≤ A) (hn : 1 ≤ L.1) | |
| 246 | - (hL : (q, x) ∈ PhysicalWaveSum.labelRegion D L) : | |
| 247 | - L ∈ pointwiseLabels D A q x := by | |
| 248 | - refine ⟨hn, hL.1, slowMask_tsupport_subset_normalizedBox hn L.2.1 L.2.2 hA ?_⟩ | |
| 249 | - have hs : tsupport (physicalSlowMask D L.1 L.2.1) ⊆ | |
| 250 | - (slowCoordinates D L.1) ⁻¹' tsupport (slowMask L.1 L.2.1) := by | |
| 251 | - apply closure_minimal | |
| 252 | - · intro y hy | |
| 253 | - exact subset_tsupport (slowMask L.1 L.2.1) hy | |
| 254 | - · exact isClosed_closure.preimage (slowCoordinates_smooth D L.1).continuous | |
| 255 | - exact hs hL.2 | |
| 256 | - | |
| 257 | -/-- All three conclusions of `geom:label-counts` for an arbitrary fixed | |
| 258 | -enlargement. Constants are chosen before the band and point variables. -/ | |
| 259 | -theorem number_of_relevant_labels (A : ℝ) : | |
| 260 | - (∃ C > 0, ∀ D q : ℝ, ∀ x : Position, | |
| 261 | - (pointwiseLabels D A q x).Finite ∧ | |
| 262 | - ((pointwiseLabels D A q x).ncard : ℝ) ≤ C) ∧ | |
| 263 | - (∀ B : Set Position, IsCompact B → ∃ C > 0, ∀ n : ℕ, 1 ≤ n → | |
| 264 | - (relevantLabels n A B).Finite ∧ | |
| 265 | - ((relevantLabels n A B).ncard : ℝ) ≤ C * ChartScales.S n ^ 9) ∧ | |
| 266 | - (∀ I : Set ℝ, Bornology.IsBounded I → ∃ C > 0, ∀ n : ℕ, 1 ≤ n → ∀ Z T : ℝ, | |
| 267 | - (relevantLabels n A (radialSlice I Z T)).Finite ∧ | |
| 268 | - ((relevantLabels n A (radialSlice I Z T)).ncard : ℝ) ≤ C * ChartScales.S n ^ 3) := | |
| 269 | - ⟨pointwise_count A, fun _ hB => compact_chart_count A hB, | |
| 270 | - fun _ hI => bounded_radial_count A hI⟩ | |
| 271 | - | |
| 272 | -/-- Admissibility restrictions on labels can only reduce any of the three | |
| 273 | -counts. This applies without any finiteness assumption on the restriction | |
| 274 | -`Γ` itself. -/ | |
| 275 | -theorem restrict_count (Γ : Set Label) {s : Set Label} {C : ℝ} | |
| 276 | - (hs : s.Finite ∧ (s.ncard : ℝ) ≤ C) : | |
| 277 | - (Γ ∩ s).Finite ∧ ((Γ ∩ s).ncard : ℝ) ≤ C := by | |
| 278 | - refine ⟨hs.1.subset inter_subset_right, ?_⟩ | |
| 279 | - have hcard : ((Γ ∩ s).ncard : ℝ) ≤ s.ncard := by | |
| 280 | - exact_mod_cast Set.ncard_le_ncard inter_subset_right hs.1 | |
| 281 | - exact hcard.trans hs.2 | |
| 282 | - | |
| 283 | -/-- Literal label-family version of the three counting bounds. The fixed | |
| 284 | -set `Γ` may impose every admissibility condition of the construction. -/ | |
| 285 | -theorem number_of_relevant_labels_restrict (A : ℝ) (Γ : Set Label) : | |
| 286 | - (∃ C > 0, ∀ D q : ℝ, ∀ x : Position, | |
| 287 | - (Γ ∩ pointwiseLabels D A q x).Finite ∧ | |
| 288 | - ((Γ ∩ pointwiseLabels D A q x).ncard : ℝ) ≤ C) ∧ | |
| 289 | - (∀ B : Set Position, IsCompact B → ∃ C > 0, ∀ n : ℕ, 1 ≤ n → | |
| 290 | - (Γ ∩ relevantLabels n A B).Finite ∧ | |
| 291 | - ((Γ ∩ relevantLabels n A B).ncard : ℝ) ≤ C * ChartScales.S n ^ 9) ∧ | |
| 292 | - (∀ I : Set ℝ, Bornology.IsBounded I → ∃ C > 0, ∀ n : ℕ, 1 ≤ n → ∀ Z T : ℝ, | |
| 293 | - (Γ ∩ relevantLabels n A (radialSlice I Z T)).Finite ∧ | |
| 294 | - ((Γ ∩ relevantLabels n A (radialSlice I Z T)).ncard : ℝ) ≤ | |
| 295 | - C * ChartScales.S n ^ 3) := by | |
| 296 | - obtain ⟨⟨C, hC, hpoint⟩, hchart, hradial⟩ := number_of_relevant_labels A | |
| 297 | - refine ⟨⟨C, hC, fun D q x => restrict_count Γ (hpoint D q x)⟩, ?_, ?_⟩ | |
| 298 | - · intro B hB | |
| 299 | - obtain ⟨C, hC, hcount⟩ := hchart B hB | |
| 300 | - exact ⟨C, hC, fun n hn => restrict_count Γ (hcount n hn)⟩ | |
| 301 | - · intro I hI | |
| 302 | - obtain ⟨C, hC, hcount⟩ := hradial I hI | |
| 303 | - exact ⟨C, hC, fun n hn Z T => restrict_count Γ (hcount n hn Z T)⟩ | |
| 304 | - | |
| 305 | -theorem physicalBox_iff_normalizedBox (D : ℝ) {n : ℕ} (_hn : 1 ≤ n) | |
| 306 | - (k : Grid) (σ : Bool) (x : Position) : | |
| 307 | - x ∈ physicalBox D (n, k, σ) ↔ | |
| 308 | - slowCoordinates D n x ∈ normalizedBox 2 (n, k, σ) := by | |
| 309 | - have hw (j : Fin 3) : width D j n = | |
| 310 | - ChartScales.Q n ^ axisExponent D j * nativeSpacing n := by | |
| 311 | - unfold width | |
| 312 | - rw [spacing_eq_scaled_mesh] | |
| 313 | - simp only [ChartScales.Q, nativeSpacing, ChartScales.S, one_div] | |
| 314 | - have he (j : Fin 3) : | |
| 315 | - |slowCoordinates D n x j - nativeSpacing n * (k j : ℝ)| = | |
| 316 | - |x j - width D j n * (k j : ℝ)| / ChartScales.Q n ^ axisExponent D j := by | |
| 317 | - have hq := Real.rpow_pos_of_pos (ChartScales.Q_pos n) (axisExponent D j) | |
| 318 | - have he : slowCoordinates D n x j - nativeSpacing n * (k j : ℝ) = | |
| 319 | - (x j - width D j n * (k j : ℝ)) / ChartScales.Q n ^ axisExponent D j := by | |
| 320 | - dsimp [slowCoordinates] | |
| 321 | - rw [hw] | |
| 322 | - field_simp | |
| 323 | - rw [he, abs_div, abs_of_pos hq] | |
| 324 | - change (∀ j, |x j - width D j n * (k j : ℝ)| ≤ 2 * width D j n) ↔ _ | |
| 325 | - change _ ↔ ∀ j, |slowCoordinates D n x j - nativeSpacing n * (k j : ℝ)| ≤ | |
| 326 | - 2 * nativeSpacing n | |
| 327 | - simp only [he] | |
| 328 | - apply forall_congr' | |
| 329 | - intro j | |
| 330 | - have hq := Real.rpow_pos_of_pos (ChartScales.Q_pos n) (axisExponent D j) | |
| 331 | - rw [div_le_iff₀ hq, hw] | |
| 332 | - constructor <;> intro h <;> nlinarith | |
| 333 | - | |
| 334 | 23 | end NavierStokes.LabelCounting |
+0 −137 NavierStokes/LabelCountingFinite.lean View file
| @@ -8,141 +8,4 @@ namespace NavierStokes.LabelCountingFinite | ||
| 8 | 8 | open SlotColoring |
| 9 | 9 | open scoped BigOperators |
| 10 | 10 | |
| 11 | -def gridCandidates (c : Grid) (K : Fin 3 → ℕ) : Finset Grid := | |
| 12 | - Fintype.piFinset (fun j => Finset.Icc (c j - (K j : ℤ)) (c j + (K j : ℤ))) | |
| 13 | - | |
| 14 | -def labelCandidates (n : ℕ) (c : Grid) (K : Fin 3 → ℕ) : Finset Label := | |
| 15 | - ((gridCandidates c K).product (Finset.univ : Finset Bool)).image (fun gs => (n, gs)) | |
| 16 | - | |
| 17 | -theorem mem_gridCandidates_iff (c : Grid) (K : Fin 3 → ℕ) (g : Grid) : | |
| 18 | - g ∈ gridCandidates c K ↔ ∀ j, |g j - c j| ≤ (K j : ℤ) := by | |
| 19 | - simp only [gridCandidates, Fintype.mem_piFinset, Finset.mem_Icc, abs_le] | |
| 20 | - constructor | |
| 21 | - · intro h j | |
| 22 | - obtain ⟨hlo, hhi⟩ := h j | |
| 23 | - omega | |
| 24 | - · intro h j | |
| 25 | - obtain ⟨hlo, hhi⟩ := h j | |
| 26 | - omega | |
| 27 | - | |
| 28 | -theorem mem_labelCandidates_iff (n : ℕ) (c : Grid) (K : Fin 3 → ℕ) (L : Label) : | |
| 29 | - L ∈ labelCandidates n c K ↔ L.1 = n ∧ ∀ j, |L.2.1 j - c j| ≤ (K j : ℤ) := by | |
| 30 | - constructor | |
| 31 | - · intro h | |
| 32 | - obtain ⟨gs, hgs, rfl⟩ := Finset.mem_image.mp h | |
| 33 | - exact ⟨rfl, (mem_gridCandidates_iff c K gs.1).mp (Finset.mem_product.mp hgs).1⟩ | |
| 34 | - · rintro ⟨hn, hL⟩ | |
| 35 | - apply Finset.mem_image.mpr | |
| 36 | - refine ⟨L.2, Finset.mem_product.mpr ⟨(mem_gridCandidates_iff c K L.2.1).mpr hL, | |
| 37 | - Finset.mem_univ _⟩, ?_⟩ | |
| 38 | - exact Prod.ext hn.symm rfl | |
| 39 | - | |
| 40 | -theorem gridCandidates_card (c : Grid) (K : Fin 3 → ℕ) : | |
| 41 | - (gridCandidates c K).card = ∏ j, (2 * K j + 1) := by | |
| 42 | - simp only [gridCandidates, Fintype.card_piFinset, integer_interval_card] | |
| 43 | - | |
| 44 | -theorem labelCandidates_card (n : ℕ) (c : Grid) (K : Fin 3 → ℕ) : | |
| 45 | - (labelCandidates n c K).card = 2 * ∏ j, (2 * K j + 1) := by | |
| 46 | - unfold labelCandidates | |
| 47 | - rw [Finset.card_image_of_injective _ (fun _ _ h => Prod.mk.inj h |>.2)] | |
| 48 | - change ((gridCandidates c K) ×ˢ (Finset.univ : Finset Bool)).card = _ | |
| 49 | - rw [Finset.card_product, gridCandidates_card] | |
| 50 | - simp only [Finset.card_univ, Fintype.card_bool, Nat.mul_comm] | |
| 51 | - | |
| 52 | -theorem finite_of_index_bounds {s : Set Label} (n : ℕ) (c : Grid) (K : Fin 3 → ℕ) | |
| 53 | - (hs : ∀ L ∈ s, L.1 = n ∧ ∀ j, |L.2.1 j - c j| ≤ (K j : ℤ)) : s.Finite := by | |
| 54 | - apply (labelCandidates n c K).finite_toSet.subset | |
| 55 | - intro L hL | |
| 56 | - exact (mem_labelCandidates_iff n c K L).mpr (hs L hL) | |
| 57 | - | |
| 58 | -theorem ncard_le_of_index_bounds {s : Set Label} (n : ℕ) (c : Grid) (K : Fin 3 → ℕ) | |
| 59 | - (hs : ∀ L ∈ s, L.1 = n ∧ ∀ j, |L.2.1 j - c j| ≤ (K j : ℤ)) : | |
| 60 | - s.ncard ≤ 2 * ∏ j, (2 * K j + 1) := by | |
| 61 | - have hsub : s ⊆ (labelCandidates n c K : Set Label) := by | |
| 62 | - intro L hL | |
| 63 | - exact (mem_labelCandidates_iff n c K L).mpr (hs L hL) | |
| 64 | - simpa only [Set.ncard_coe_finset, labelCandidates_card] using | |
| 65 | - Set.ncard_le_ncard hsub (labelCandidates n c K).finite_toSet | |
| 66 | - | |
| 67 | -/-- Count a finite collection of bands while allowing the grid center to | |
| 68 | -depend on the band. This dependence is essential for physical points viewed | |
| 69 | -in their respective normalized charts. -/ | |
| 70 | -theorem count_of_band_index_bounds {s : Set Label} (F : Finset ℕ) | |
| 71 | - (c : ℕ → Grid) (K : Fin 3 → ℕ) | |
| 72 | - (hs : ∀ L ∈ s, L.1 ∈ F ∧ ∀ j, |L.2.1 j - c L.1 j| ≤ (K j : ℤ)) : | |
| 73 | - s.Finite ∧ s.ncard ≤ F.card * (2 * ∏ j, (2 * K j + 1)) := by | |
| 74 | - classical | |
| 75 | - let G := F.biUnion (fun n => labelCandidates n (c n) K) | |
| 76 | - have hsub : s ⊆ (G : Set Label) := by | |
| 77 | - intro L hL | |
| 78 | - obtain ⟨hn, hj⟩ := hs L hL | |
| 79 | - exact Finset.mem_biUnion.mpr ⟨L.1, hn, | |
| 80 | - (mem_labelCandidates_iff L.1 (c L.1) K L).mpr ⟨rfl, hj⟩⟩ | |
| 81 | - refine ⟨G.finite_toSet.subset hsub, ?_⟩ | |
| 82 | - have hcount : G.card ≤ F.card * (2 * ∏ j, (2 * K j + 1)) := by | |
| 83 | - calc | |
| 84 | - G.card ≤ ∑ n ∈ F, (labelCandidates n (c n) K).card := Finset.card_biUnion_le | |
| 85 | - _ = F.card * (2 * ∏ j, (2 * K j + 1)) := by | |
| 86 | - simp [labelCandidates_card] | |
| 87 | - exact (Set.ncard_le_ncard hsub G.finite_toSet).trans | |
| 88 | - (by simpa only [Set.ncard_coe_finset] using hcount) | |
| 89 | - | |
| 90 | -/-- Five consecutive integer indices include every natural band at distance | |
| 91 | -at most one from a real logarithmic coordinate. -/ | |
| 92 | -def bandCandidates (c : ℝ) : Finset ℕ := | |
| 93 | - (Finset.Icc (⌊c⌋ - 2) (⌊c⌋ + 2)).image Int.toNat | |
| 94 | - | |
| 95 | -theorem mem_bandCandidates {c : ℝ} {n : ℕ} | |
| 96 | - (hc : c ∈ Set.Icc ((n : ℝ) - 1) ((n : ℝ) + 1)) : | |
| 97 | - n ∈ bandCandidates c := by | |
| 98 | - have hi : |(n : ℤ) - ⌊c⌋| ≤ (2 : ℤ) := by | |
| 99 | - apply index_near_floor c 1 (n : ℤ) 2 | |
| 100 | - · simp only [Int.cast_natCast, abs_le] | |
| 101 | - constructor <;> linarith [hc.1, hc.2] | |
| 102 | - · norm_num | |
| 103 | - apply Finset.mem_image.mpr | |
| 104 | - refine ⟨(n : ℤ), Finset.mem_Icc.mpr ?_, Int.toNat_natCast n⟩ | |
| 105 | - rw [abs_le] at hi | |
| 106 | - omega | |
| 107 | - | |
| 108 | -theorem bandCandidates_card_le (c : ℝ) : (bandCandidates c).card ≤ 5 := by | |
| 109 | - calc | |
| 110 | - (bandCandidates c).card ≤ (Finset.Icc (⌊c⌋ - 2) (⌊c⌋ + 2)).card := | |
| 111 | - Finset.card_image_le | |
| 112 | - _ = 5 := by simpa using integer_interval_card ⌊c⌋ 2 | |
| 113 | - | |
| 114 | -theorem index_factor_le (n M K : ℕ) (hn : 1 ≤ n) : | |
| 115 | - 2 * (M * n ^ 6 + K + 1) + 1 ≤ (2 * (M + K + 1) + 1) * n ^ 6 := by | |
| 116 | - have hpow : 1 ≤ n ^ 6 := Nat.one_le_pow 6 n hn | |
| 117 | - have hconst : 2 * K + 3 ≤ (2 * K + 3) * n ^ 6 := by | |
| 118 | - simpa only [Nat.mul_one] using Nat.mul_le_mul_left (2 * K + 3) hpow | |
| 119 | - calc | |
| 120 | - 2 * (M * n ^ 6 + K + 1) + 1 = 2 * M * n ^ 6 + (2 * K + 3) := by ring | |
| 121 | - _ ≤ 2 * M * n ^ 6 + (2 * K + 3) * n ^ 6 := Nat.add_le_add_left hconst _ | |
| 122 | - _ = (2 * (M + K + 1) + 1) * n ^ 6 := by ring | |
| 123 | - | |
| 124 | -theorem box_polynomial_bound (n M K : ℕ) (hn : 1 ≤ n) : | |
| 125 | - 2 * (∏ _j : Fin 3, (2 * (M * n ^ 6 + K + 1) + 1)) ≤ | |
| 126 | - (2 * (2 * (M + K + 1) + 1) ^ 3) * n ^ 18 := by | |
| 127 | - simp only [Finset.prod_const, Finset.card_univ, Fintype.card_fin] | |
| 128 | - calc | |
| 129 | - 2 * (2 * (M * n ^ 6 + K + 1) + 1) ^ 3 ≤ | |
| 130 | - 2 * ((2 * (M + K + 1) + 1) * n ^ 6) ^ 3 := | |
| 131 | - Nat.mul_le_mul_left 2 (Nat.pow_le_pow_left (index_factor_le n M K hn) 3) | |
| 132 | - _ = (2 * (2 * (M + K + 1) + 1) ^ 3) * n ^ 18 := by ring | |
| 133 | - | |
| 134 | -theorem radial_polynomial_bound (n M K : ℕ) (hn : 1 ≤ n) : | |
| 135 | - 2 * (∏ j : Fin 3, (2 * (![M * n ^ 6 + K + 1, K + 1, K + 1] j) + 1)) ≤ | |
| 136 | - (2 * (2 * (M + K + 1) + 1) * (2 * (K + 1) + 1) ^ 2) * n ^ 6 := by | |
| 137 | - simp only [Fin.prod_univ_three, Matrix.cons_val_zero, Matrix.cons_val_one, | |
| 138 | - Matrix.cons_val_two] | |
| 139 | - calc | |
| 140 | - 2 * ((2 * (M * n ^ 6 + K + 1) + 1) * (2 * (K + 1) + 1) * | |
| 141 | - (2 * (K + 1) + 1)) ≤ | |
| 142 | - 2 * (((2 * (M + K + 1) + 1) * n ^ 6) * (2 * (K + 1) + 1) * | |
| 143 | - (2 * (K + 1) + 1)) := | |
| 144 | - Nat.mul_le_mul_left 2 (Nat.mul_le_mul_right _ | |
| 145 | - (Nat.mul_le_mul_right _ (index_factor_le n M K hn))) | |
| 146 | - _ = (2 * (2 * (M + K + 1) + 1) * (2 * (K + 1) + 1) ^ 2) * n ^ 6 := by ring | |
| 147 | - | |
| 148 | 11 | end NavierStokes.LabelCountingFinite |
+0 −108 NavierStokes/LabelSumBounds.lean View file
| @@ -305,17 +305,6 @@ theorem labelRegion_subset_closedWindow {d : ℝ} {l : SlotColoring.Label} {x : | ||
| 305 | 305 | refine ⟨⟨by linarith [ht.1], by linarith [ht.2]⟩, ?_⟩ |
| 306 | 306 | exact SquaredPartition.physicalSlowMask_tsupport_subset_physicalBox d hl _ _ hx.2 |
| 307 | 307 | |
| 308 | -theorem physicalMask_tsupport_closedWindow {d : ℝ} {l : SlotColoring.Label} {x : WindowPoint} | |
| 309 | - (hl : 1 ≤ l.1) (hq : 0 < x.1) (hx : x ∈ tsupport (PhysicalWaveSum.physicalMask d l)) : | |
| 310 | - (SquaredPartition.logCoordinate x.1, x.2) ∈ closedWindow d l := | |
| 311 | - labelRegion_subset_closedWindow hl (PhysicalWaveSum.physicalMask_tsupport_subset d l hx) hq | |
| 312 | - | |
| 313 | -theorem physicalMask_jet_tsupport_closedWindow {d : ℝ} {l : SlotColoring.Label} {x : WindowPoint} | |
| 314 | - (hl : 1 ≤ l.1) (hq : 0 < x.1) (m : ℕ) | |
| 315 | - (hx : x ∈ tsupport (iteratedFDeriv ℝ m (PhysicalWaveSum.physicalMask d l))) : | |
| 316 | - (SquaredPartition.logCoordinate x.1, x.2) ∈ closedWindow d l := | |
| 317 | - physicalMask_tsupport_closedWindow hl hq ((tsupport_iteratedFDeriv_subset m) hx) | |
| 318 | - | |
| 319 | 308 | theorem window_card_le {d : ℝ} {x : WindowPoint} (F : Finset ι) |
| 320 | 309 | (label : ι → SlotColoring.Label) (hinj : Set.InjOn label (F : Set ι)) |
| 321 | 310 | (hF : ∀ l ∈ F, 1 ≤ (label l).1 ∧ x ∈ closedWindow d (label l)) : F.card ≤ 2250 := by |
| @@ -679,65 +668,6 @@ theorem SupportedOscillations.sub {d h : ℝ} {vr vt : TorusInverse.Plane} | ||
| 679 | 668 | simpa only [Pi.sub_apply, hzero, zero_sub, neg_ne_zero] using hn |
| 680 | 669 | · exact hu l n x hx θ i hzero |
| 681 | 670 | |
| 682 | -omit [NormedAddCommGroup D] [NormedSpace ℝ D] in | |
| 683 | -/-- A native covered profile and a supported slow factor give the exact | |
| 684 | -support predicate used above. This also covers derivatives of the slow | |
| 685 | -mask, since their closed supports lie in the same window. -/ | |
| 686 | -theorem covered_product_supported {d h : ℝ} {vr vt : TorusInverse.Plane} | |
| 687 | - (sys : PartitionedCovariance.SlotSystem d h vr vt) | |
| 688 | - (label : ℕ → ι → SlotColoring.Label) (χ : ℕ → D → WindowPoint) | |
| 689 | - (Y : ℕ → D → TorusInverse.Plane) (U : Set D) | |
| 690 | - (a : ι → ℕ → D → ℝ → Fin 3 → ℝ) | |
| 691 | - (f : ι → ℕ → D → ℝ → Fin 3 → TorusInverse.Plane → ℝ) | |
| 692 | - (ha : ∀ l n x, x ∈ U → ∀ θ i, a l n x θ i ≠ 0 → χ n x ∈ closedWindow d (label n l)) | |
| 693 | - (hf : ∀ l n x, x ∈ U → ∀ θ i, support (f l n x θ i) ⊆ | |
| 694 | - PartitionedCovariance.slotSet h sys.radius vr vt (label n l)) : | |
| 695 | - SupportedOscillations sys label χ Y U (fun l n p i => | |
| 696 | - a l n p.1 p.2 i * PartitionedCovariance.covered | |
| 697 | - (SlotColoring.nativeIndex h (label n l).1) (f l n p.1 p.2 i) (Y n p.1)) := by | |
| 698 | - intro l n x hx θ i hn | |
| 699 | - obtain ⟨ha0, hf0⟩ := mul_ne_zero_iff.mp hn | |
| 700 | - exact ⟨ha l n x hx θ i ha0, PartitionedCovariance.covered_support (hf l n x hx θ i) _ hf0⟩ | |
| 701 | - | |
| 702 | -omit [NormedAddCommGroup D] [NormedSpace ℝ D] in | |
| 703 | -/-- The actual physical mask automatically supplies the slow-window | |
| 704 | -condition for a covered native wave, with arbitrary phase and amplitude. -/ | |
| 705 | -theorem native_wave_supported {d h : ℝ} {vr vt : TorusInverse.Plane} | |
| 706 | - (sys : PartitionedCovariance.SlotSystem d h vr vt) | |
| 707 | - (label : ℕ → ι → SlotColoring.Label) (hlevel : ∀ n l, 1 ≤ (label n l).1) | |
| 708 | - (q : ℕ → D → ℝ) (position : ℕ → D → SlotColoring.Position) | |
| 709 | - (Y : ℕ → D → TorusInverse.Plane) (U : Set D) (hq : ∀ n x, x ∈ U → 0 < q n x) | |
| 710 | - (scale : ι → ℕ → D → Fin 3 → ℝ) | |
| 711 | - (f : ι → ℕ → D → Fin 3 → TorusInverse.Plane → ℝ) | |
| 712 | - (mode : ι → ℕ → ℤ) (phase : ι → ℕ → D → TorusInverse.Plane → ℝ) | |
| 713 | - (hf : ∀ l n x, x ∈ U → ∀ i, support (f l n x i) ⊆ | |
| 714 | - PartitionedCovariance.slotSet h sys.radius vr vt (label n l)) : | |
| 715 | - SupportedOscillations sys label | |
| 716 | - (fun n x => (SquaredPartition.logCoordinate (q n x), position n x)) Y U | |
| 717 | - (fun l n p i => PartitionedCovariance.wave | |
| 718 | - (scale l n p.1 i * PartitionedCovariance.physicalMask d (label n l) | |
| 719 | - (q n p.1) (position n p.1)) | |
| 720 | - (SlotColoring.nativeIndex h (label n l).1) (f l n p.1 i) | |
| 721 | - (mode l n) (phase l n p.1) (Y n p.1) p.2) := by | |
| 722 | - intro l n x hx θ i hn | |
| 723 | - obtain ⟨hprod, _⟩ := mul_ne_zero_iff.mp hn | |
| 724 | - obtain ⟨hamp, hprof⟩ := mul_ne_zero_iff.mp hprod | |
| 725 | - have hmask := (mul_ne_zero_iff.mp hamp).2 | |
| 726 | - have hregion : (q n x, position n x) ∈ PhysicalWaveSum.labelRegion d (label n l) := | |
| 727 | - PhysicalWaveSum.physicalMask_support_subset d (label n l) hmask | |
| 728 | - exact ⟨labelRegion_subset_closedWindow (hlevel n l) hregion (hq n x hx), | |
| 729 | - PartitionedCovariance.covered_support (hf l n x hx i) _ hprof⟩ | |
| 730 | - | |
| 731 | -/-- The signed tail-label convention used by PrimaryFieldAssembly is | |
| 732 | -injective and has positive levels for every chosen start `N ≥ 1`. -/ | |
| 733 | -theorem signedTailLabel_admissible {N : ℕ} (hN : 1 ≤ N) : | |
| 734 | - Function.Injective (PartitionedCovariance.signedTailLabel N) ∧ | |
| 735 | - ∀ a, 1 ≤ (PartitionedCovariance.signedTailLabel N a).1 := by | |
| 736 | - refine ⟨PartitionedCovariance.signedTailLabel_injective N, ?_⟩ | |
| 737 | - intro a | |
| 738 | - change 1 ≤ a.1.1 + N | |
| 739 | - omega | |
| 740 | - | |
| 741 | 671 | /-! ## The full signed covariance remainder, below CorrectionStep -/ |
| 742 | 672 | |
| 743 | 673 | abbrev Tensor (D : Type) := Fin 3 → Fin 3 → ScalarField D |
| @@ -1143,19 +1073,6 @@ theorem uniformClass_of_envelopeJets {s : StripData D} | ||
| 1143 | 1073 | (mul_nonneg (Real.rpow_pos_of_pos (s.epsilon_pos n) α).le (hw l n x hx)) |
| 1144 | 1074 | _ = _ := by unfold majorant; ring |
| 1145 | 1075 | |
| 1146 | -theorem uniformWaveClass_of_envelopeJets {s : StripData D} | |
| 1147 | - {V : PhaseJetBounds.Domain (ℕ × ι) D} {W : (ℕ × ι) → D → ℝ} | |
| 1148 | - {a : (ℕ × ι) → D → E} (ha : PrimaryPulseBounds.EnvelopeJets V W a) | |
| 1149 | - {P : ι → ℕ → D → ℝ} {α K : ℝ} {q : ℕ} (hK : 1 ≤ K) | |
| 1150 | - (hscale : ∀ n l, V.scale (n, l) ≤ K * s.slow n ^ q) | |
| 1151 | - (hdom : ∀ n l, s.domain ⊆ V.carrier (n, l)) | |
| 1152 | - (hP : ∀ l n x, x ∈ s.domain → 0 ≤ P l n x) | |
| 1153 | - (hW : ∀ l n x, x ∈ s.domain → | |
| 1154 | - W (n, l) x ≤ s.epsilon n ^ α * (Real.sqrt (s.zeta x) * P l n x)) : | |
| 1155 | - UniformWaveClass s P α (fun l n => a (n, l)) := | |
| 1156 | - uniformClass_of_envelopeJets ha hK hscale hdom | |
| 1157 | - (fun l n x hx => mul_nonneg (Real.sqrt_nonneg _) (hP l n x hx)) hW | |
| 1158 | - | |
| 1159 | 1076 | theorem uniformClass_of_polynomialJets {s : StripData D} |
| 1160 | 1077 | {V : PhaseJetBounds.Domain (ℕ × ι) D} {a : (ℕ × ι) → D → E} |
| 1161 | 1078 | (ha : PhaseJetBounds.PolynomialJets V a) {K : ℝ} {q : ℕ} (hK : 1 ≤ K) |
| @@ -1165,29 +1082,4 @@ theorem uniformClass_of_polynomialJets {s : StripData D} | ||
| 1165 | 1082 | uniformClass_of_envelopeJets (PrimaryPulseBounds.EnvelopeJets.of_polynomial ha) |
| 1166 | 1083 | hK hscale hdom (fun _ _ _ _ => zero_le_one) (by intro l n x hx; simp) |
| 1167 | 1084 | |
| 1168 | -theorem slotSet_isCompact (h r : ℝ) (vr vt : TorusInverse.Plane) (l : SlotColoring.Label) : | |
| 1169 | - IsCompact (PartitionedCovariance.slotSet h r vr vt l) := by | |
| 1170 | - have he : PartitionedCovariance.slotSet h r vr vt l = | |
| 1171 | - (fun z : ℝ × ℝ => PartitionedCovariance.slotCenter h l + z.1 • vr + z.2 • vt) '' | |
| 1172 | - (Icc (-(2 * r)) (2 * r) ×ˢ Icc (-(2 * r)) (2 * r)) := by | |
| 1173 | - ext x | |
| 1174 | - constructor | |
| 1175 | - · rintro ⟨ξ, η, hξ, hη, he⟩ | |
| 1176 | - exact ⟨(ξ, η), ⟨abs_le.mp hξ, abs_le.mp hη⟩, he.symm⟩ | |
| 1177 | - · rintro ⟨⟨ξ, η⟩, ⟨hξ, hη⟩, he⟩ | |
| 1178 | - exact ⟨ξ, η, abs_le.mpr hξ, abs_le.mpr hη, he.symm⟩ | |
| 1179 | - rw [he] | |
| 1180 | - exact (isCompact_Icc.prod isCompact_Icc).image | |
| 1181 | - ((continuous_const.add (continuous_fst.smul continuous_const)).add | |
| 1182 | - (continuous_snd.smul continuous_const)) | |
| 1183 | - | |
| 1184 | -/-- Native derivatives stay inside the same closed padded slot, including | |
| 1185 | -entry and exit. Periodizing such a derivative can therefore reuse | |
| 1186 | -`PartitionedCovariance.covered_support` and the original slot separation. -/ | |
| 1187 | -theorem native_jet_tsupport_subset {h r : ℝ} {vr vt : TorusInverse.Plane} | |
| 1188 | - {l : SlotColoring.Label} {f : TorusInverse.Plane → E} | |
| 1189 | - (hf : support f ⊆ PartitionedCovariance.slotSet h r vr vt l) (m : ℕ) : | |
| 1190 | - tsupport (iteratedFDeriv ℝ m f) ⊆ PartitionedCovariance.slotSet h r vr vt l := | |
| 1191 | - (tsupport_iteratedFDeriv_subset m).trans (closure_minimal hf (slotSet_isCompact h r vr vt l).isClosed) | |
| 1192 | - | |
| 1193 | 1085 | end NavierStokes.LabelSumBounds |
+0 −252 NavierStokes/LabelSupportPreservation.lean View file
| @@ -148,126 +148,12 @@ variable {Label P : Type} [NormedAddCommGroup P] [NormedSpace ℝ P] | ||
| 148 | 148 | |
| 149 | 149 | include hS hsupport |
| 150 | 150 | |
| 151 | -theorem data_pressure_zero_germ (l : Label) (n : ℕ) (k : Frequency) | |
| 152 | - {x : (P × ℝ) × Plane} (hx : x.1.1 ∈ s.domain) | |
| 153 | - (htime : ((ScaledActualParticularControl.geometry reference gap clock l n).coordinates k x.2).2 ∈ | |
| 154 | - Ioo 0 (ScaledActualParticularControl.length F clock l n)) | |
| 155 | - (hpath : ∀ v ∈ Icc 0 (ScaledActualParticularControl.length F clock l n), | |
| 156 | - (x.1.1, (ScaledActualParticularControl.geometry reference gap clock l n).path k x.2 v) ∉ | |
| 157 | - sourceRegions F clock reference gap r S l n) : | |
| 158 | - (data F clock reference gap r hr base tangent ctx u b G A j l).pressure n k | |
| 159 | - =ᶠ[𝓝 x] fun _ => 0 := by | |
| 160 | - apply complexCopyPressure_zero_germ _ _ _ _ _ htime | |
| 161 | - intro v hv | |
| 162 | - exact data_source_zero_germ F clock reference gap r hr base tangent ctx u b G A j | |
| 163 | - s S hS hsupport l n (x := (x.1, _)) hx (hpath v hv) | |
| 164 | - | |
| 165 | -/-- The exact particular solve retains the smaller source cell, even | |
| 166 | -though its raw cutoff is supported on a larger padded cell. -/ | |
| 167 | -theorem data_native_zero_alternative | |
| 168 | - (hinj : ∀ l n, InjOn TorusAverages.quotientPoint | |
| 169 | - ((fun z => (reference l n).center + (reference l n).basis z) '' | |
| 170 | - (referenceWindow (r l n) (F.L (l,n)) (hr l n) (F.L_pos (l,n))).outer)) | |
| 171 | - (l : Label) (n : ℕ) (k : Frequency) {x : (P × ℝ) × Plane} | |
| 172 | - (hx : x.1.1 ∈ s.domain) | |
| 173 | - (hk : x ∈ nativeCell (ScaledActualParticularControl.geometry reference gap clock l n) | |
| 174 | - (outerFamily F clock r l n) k) | |
| 175 | - (hn : (x.1.1, x.2) ∉ sourceRegions F clock reference gap r S l n) : | |
| 176 | - ((data F clock reference gap r hr base tangent ctx u b G A j l).cutoff n k | |
| 177 | - =ᶠ[𝓝 x] fun _ => 0) ∨ | |
| 178 | - (((data F clock reference gap r hr base tangent ctx u b G A j l).amplitude n k | |
| 179 | - =ᶠ[𝓝 x] fun _ => 0) ∧ | |
| 180 | - ((data F clock reference gap r hr base tangent ctx u b G A j l).pressure n k | |
| 181 | - =ᶠ[𝓝 x] fun _ => 0)) := by | |
| 182 | - let g := ScaledActualParticularControl.geometry reference gap clock l n | |
| 183 | - have hi : InjOn TorusAverages.quotientPoint | |
| 184 | - ((fun z => g.center + g.basis z) '' outerCell (r l n) (F.L (l,n)) (clock.value l n)) := | |
| 185 | - transported_outer_injective (reference l n) (gap l n) (hr l n) (F.L_pos (l,n)) | |
| 186 | - (clock.value_pos l n) (hinj l n) | |
| 187 | - have hk' : g.coordinates k x.2 ∈ outerCell (r l n) (F.L (l,n)) (clock.value l n) := hk | |
| 188 | - by_cases ht : (g.coordinates k x.2).2 ∈ Ioo 0 (ScaledActualParticularControl.length F clock l n) | |
| 189 | - · have hzero (hpath : ∀ v ∈ Icc 0 (ScaledActualParticularControl.length F clock l n), | |
| 190 | - (x.1.1, g.path k x.2 v) ∉ sourceRegions F clock reference gap r S l n) : | |
| 191 | - ((data F clock reference gap r hr base tangent ctx u b G A j l).amplitude n k | |
| 192 | - =ᶠ[𝓝 x] fun _ => 0) ∧ | |
| 193 | - ((data F clock reference gap r hr base tangent ctx u b G A j l).pressure n k | |
| 194 | - =ᶠ[𝓝 x] fun _ => 0) := | |
| 195 | - ⟨data_amplitude_zero_germ F clock reference gap r hr base tangent ctx u b G A j | |
| 196 | - s S hS hsupport l n k hx hpath, | |
| 197 | - data_pressure_zero_germ F clock reference gap r hr base tangent ctx u b G A j | |
| 198 | - s S hS hsupport l n k hx ht hpath⟩ | |
| 199 | - by_cases hp : x.1.1 ∈ S l n | |
| 200 | - · by_cases hxi : (g.coordinates k x.2).1 ∈ Icc (-(r l n)) (r l n) | |
| 201 | - · left | |
| 202 | - have htime : (g.coordinates k x.2).2 ∉ | |
| 203 | - Icc ((F.L (l,n) / clock.value l n) / 6) (5 * (F.L (l,n) / clock.value l n) / 6) := by | |
| 204 | - intro hv | |
| 205 | - apply hn | |
| 206 | - refine ⟨hp, mem_iUnion.mpr ⟨k, ?_⟩⟩ | |
| 207 | - exact ⟨hxi, hv⟩ | |
| 208 | - exact (nativeCutoff_source_time_zero_germ (hr l n) (F.L_pos (l,n)) | |
| 209 | - (clock.value_pos l n) htime).comp_tendsto | |
| 210 | - ((g.coordinates_contDiff k).continuous.comp continuous_snd).continuousAt | |
| 211 | - · right | |
| 212 | - apply hzero | |
| 213 | - intro v hv hh | |
| 214 | - obtain ⟨i, hi'⟩ := mem_iUnion.mp hh.2 | |
| 215 | - exact path_sourceCell_excluded g (hr l n) (F.L_pos (l,n)) (clock.value_pos l n) | |
| 216 | - hi hk' hxi v hv i hi' | |
| 217 | - · right | |
| 218 | - exact hzero (fun _ _ hh => hp hh.1) | |
| 219 | - · left | |
| 220 | - exact (nativeCutoff_time_zero_germ (hr l n) (F.L_pos (l,n)) (clock.value_pos l n) ht).comp_tendsto | |
| 221 | - ((g.coordinates_contDiff k).continuous.comp continuous_snd).continuousAt | |
| 222 | - | |
| 223 | -/-- All three literal particular output fields have zero germs off the | |
| 224 | -incoming label carrier. This is independent of every numerical jet bound. -/ | |
| 225 | -theorem particular_zero_germs | |
| 226 | - (hinj : ∀ l n, InjOn TorusAverages.quotientPoint | |
| 227 | - ((fun z => (reference l n).center + (reference l n).basis z) '' | |
| 228 | - (referenceWindow (r l n) (F.L (l,n)) (hr l n) (F.L_pos (l,n))).outer)) | |
| 229 | - (outStrip : StripData ((P × ℝ) × Plane)) (d : GraphDirections ((P × ℝ) × Plane)) | |
| 230 | - (l : Label) (n : ℕ) {x : (P × ℝ) × Plane} (hx : x.1.1 ∈ s.domain) | |
| 231 | - (hn : (x.1.1, x.2) ∉ sourceRegions F clock reference gap r S l n) : | |
| 232 | - (((data F clock reference gap r hr base tangent ctx u b G A j l).commonCorrected outStrip d).amplitude n | |
| 233 | - =ᶠ[𝓝 x] fun _ => 0) ∧ | |
| 234 | - ((data F clock reference gap r hr base tangent ctx u b G A j l).common.pressure n | |
| 235 | - =ᶠ[𝓝 x] fun _ => 0) ∧ | |
| 236 | - ((data F clock reference gap r hr base tangent ctx u b G A j l).globalGaussian d n | |
| 237 | - =ᶠ[𝓝 x] fun _ => 0) := by | |
| 238 | - apply common_zero_germs_of_native | |
| 239 | - (data F clock reference gap r hr base tangent ctx u b G A j l) | |
| 240 | - (cells F clock reference gap r hr hinj l) | |
| 241 | - (data_cutoff_support F clock reference gap r hr base tangent ctx u b G A j l) outStrip d | |
| 242 | - (data_source_zero_germ F clock reference gap r hr base tangent ctx u b G A j | |
| 243 | - s S hS hsupport l n hx hn) | |
| 244 | - intro k hk | |
| 245 | - exact data_native_zero_alternative F clock reference gap r hr base tangent ctx u b G A j | |
| 246 | - s S hS hsupport hinj l n k hx hk hn | |
| 247 | - | |
| 248 | 151 | end Particular |
| 249 | 152 | |
| 250 | 153 | section Signed |
| 251 | 154 | |
| 252 | 155 | variable {D I : Type} [NormedAddCommGroup D] [NormedSpace ℝ D] |
| 253 | 156 | |
| 254 | -/-- The same copy data as the signed update: the inverse-quotient | |
| 255 | -amplitude, its projected homogeneous pressure, and zero inhomogeneous source. -/ | |
| 256 | -noncomputable def signedCopyData (base : WaveCoefficients D) (s : StripData D) | |
| 257 | - (d : GraphDirections D) (matrix : I → ℕ → D → SignedWaveUpdate.Mat2) | |
| 258 | - (target : I → ℕ → D → SignedWaveUpdate.Vec2) | |
| 259 | - (request : ℕ → D → SignedWaveUpdate.Vec2) (mask : I → ℕ → D → ℝ) | |
| 260 | - (fundamental normalMotion : I → ℕ → D → ProblemStatement.Space) | |
| 261 | - (action : I → ℕ → D → ProblemStatement.Space →L[ℝ] ProblemStatement.Space) | |
| 262 | - (cutoff : I → ℕ → D → ℝ) (column : Fin 2) : CopyData D I where | |
| 263 | - background := base | |
| 264 | - amplitude n i := (SignedWaveUpdate.coefficients base s d (matrix i) (target i) request | |
| 265 | - (mask i) (fundamental i) (normalMotion i) (action i) column).amplitude n | |
| 266 | - pressure n i := (SignedWaveUpdate.coefficients base s d (matrix i) (target i) request | |
| 267 | - (mask i) (fundamental i) (normalMotion i) (action i) column).pressure n | |
| 268 | - cutoff n i := cutoff i n | |
| 269 | - source := fun _ _ => 0 | |
| 270 | - | |
| 271 | 157 | variable (base : WaveCoefficients D) (s : StripData D) (d : GraphDirections D) |
| 272 | 158 | (matrix : I → ℕ → D → SignedWaveUpdate.Mat2) |
| 273 | 159 | (target : I → ℕ → D → SignedWaveUpdate.Vec2) |
| @@ -276,47 +162,12 @@ variable (base : WaveCoefficients D) (s : StripData D) (d : GraphDirections D) | ||
| 276 | 162 | (action : I → ℕ → D → ProblemStatement.Space →L[ℝ] ProblemStatement.Space) |
| 277 | 163 | (cutoff : I → ℕ → D → ℝ) (column : Fin 2) |
| 278 | 164 | |
| 279 | -theorem signed_raw_zero_of_mask (n : ℕ) (i : I) (x : D) (hm : mask i n x = 0) : | |
| 280 | - (signedCopyData base s d matrix target request mask fundamental normalMotion action cutoff column).amplitude n i x = 0 ∧ | |
| 281 | - (signedCopyData base s d matrix target request mask fundamental normalMotion action cutoff column).pressure n i x = 0 := by | |
| 282 | - simp [signedCopyData, SignedWaveUpdate.coefficients, | |
| 283 | - SignedWaveUpdate.homogeneousCoefficients, SignedWaveUpdate.signedVector, SignedWaveUpdate.signedScalar, | |
| 284 | - hm, ParticularWaveBounds.projectedPressure, TangentProjection.pressureCoefficient] | |
| 285 | - | |
| 286 | -theorem signed_zero_germs_of_mask_germs (K : Cells D I) | |
| 287 | - (hcutoff : ∀ n i, support (cutoff i n) ⊆ K.carrier n i) | |
| 288 | - {n : ℕ} {x : D} (hm : ∀ i, mask i n =ᶠ[𝓝 x] fun _ => 0) : | |
| 289 | - (((signedCopyData base s d matrix target request mask fundamental normalMotion action cutoff column).commonCorrected s d).amplitude n | |
| 290 | - =ᶠ[𝓝 x] fun _ => 0) ∧ | |
| 291 | - ((signedCopyData base s d matrix target request mask fundamental normalMotion action cutoff column).common.pressure n | |
| 292 | - =ᶠ[𝓝 x] fun _ => 0) ∧ | |
| 293 | - ((signedCopyData base s d matrix target request mask fundamental normalMotion action cutoff column).globalGaussian d n | |
| 294 | - =ᶠ[𝓝 x] fun _ => 0) := by | |
| 295 | - apply common_zero_germs_of_native _ K hcutoff s d (Filter.EventuallyEq.refl _ _) | |
| 296 | - intro i _ | |
| 297 | - right | |
| 298 | - constructor | |
| 299 | - · filter_upwards [hm i] with y hy | |
| 300 | - exact (signed_raw_zero_of_mask base s d matrix target request mask fundamental normalMotion action cutoff column n i y hy).1 | |
| 301 | - · filter_upwards [hm i] with y hy | |
| 302 | - exact (signed_raw_zero_of_mask base s d matrix target request mask fundamental normalMotion action cutoff column n i y hy).2 | |
| 303 | - | |
| 304 | 165 | end Signed |
| 305 | 166 | |
| 306 | 167 | section ClosedSupport |
| 307 | 168 | |
| 308 | 169 | variable {D E : Type} [NormedAddCommGroup D] [NormedSpace ℝ D] [Zero E] |
| 309 | 170 | |
| 310 | -omit [NormedSpace ℝ D] in | |
| 311 | -/-- Relative support on an open physical domain gives ambient zero germs | |
| 312 | -outside a closed carrier. No off-domain totalization is constrained. -/ | |
| 313 | -theorem zero_germ_of_local_support {U K : Set D} (hU : IsOpen U) (hK : IsClosed K) | |
| 314 | - {f : D → E} (hs : U ∩ support f ⊆ K) {x : D} (hx : x ∈ U) (hn : x ∉ K) : | |
| 315 | - f =ᶠ[𝓝 x] fun _ => 0 := by | |
| 316 | - filter_upwards [hU.mem_nhds hx, hK.isOpen_compl.mem_nhds hn] with y hy hny | |
| 317 | - by_contra hz | |
| 318 | - exact hny (hs ⟨hy, hz⟩) | |
| 319 | - | |
| 320 | 171 | end ClosedSupport |
| 321 | 172 | |
| 322 | 173 | section CoefficientSupport |
| @@ -473,45 +324,6 @@ variable {Label P : Type} [NormedAddCommGroup P] [NormedSpace ℝ P] | ||
| 473 | 324 | |
| 474 | 325 | include hS hsupport hinj |
| 475 | 326 | |
| 476 | -/-- A single actual particular mode, with its actual Gaussian error, | |
| 477 | -has the same carrier as its incoming label. -/ | |
| 478 | -theorem particular_mode_inputSupport (j : ℤ) (l : Label) : | |
| 479 | - HarmonicSourceSupport.InputSupportOn (s.domain ×ˢ univ) (sourceRegions F clock reference gap r S l) | |
| 480 | - (ParticularWaveAssembly.nativeModeBlock j (b l) | |
| 481 | - ((data F clock reference gap r hr base tangent ctx u b G A j l).commonCorrected outStrip d)) | |
| 482 | - (ParticularWaveAssembly.nativeModeBlock j (b l) | |
| 483 | - { base l with | |
| 484 | - amplitude := (data F clock reference gap r hr base tangent ctx u b G A j l).globalGaussian d | |
| 485 | - pressure := fun _ _ => 0 }).velocity 0 := by | |
| 486 | - apply modeBlock_inputSupport | |
| 487 | - · intro n x hx hn | |
| 488 | - exact (particular_zero_germs F clock reference gap r hr base tangent ctx u b G A j | |
| 489 | - s S hS hsupport hinj outStrip d l n (x := ((x.1, 0), x.2)) hx.1 hn).1.self_of_nhds | |
| 490 | - · intro n x hx hn | |
| 491 | - exact (particular_zero_germs F clock reference gap r hr base tangent ctx u b G A j | |
| 492 | - s S hS hsupport hinj outStrip d l n (x := ((x.1, 0), x.2)) hx.1 hn).2.1.self_of_nhds | |
| 493 | - · intro n x hx hn | |
| 494 | - exact (particular_zero_germs F clock reference gap r hr base tangent ctx u b G A j | |
| 495 | - s S hS hsupport hinj outStrip d l n (x := ((x.1, 0), x.2)) hx.1 hn).2.2.self_of_nhds | |
| 496 | - | |
| 497 | -/-- Finite reassembly of all signed particular modes retains the fixed | |
| 498 | -label carrier, with no growth or derivative estimate as an input. -/ | |
| 499 | -theorem particular_assembled_inputSupport (N : ℕ) (l : Label) : | |
| 500 | - HarmonicSourceSupport.InputSupportOn (s.domain ×ˢ univ) (sourceRegions F clock reference gap r S l) | |
| 501 | - (ErrorHarmonics.sumBlock (ParticularWaveAssembly.modes N) | |
| 502 | - (b l).frequency (b l).phase (b l).angularFrequency (fun j => | |
| 503 | - ParticularWaveAssembly.nativeModeBlock j (b l) | |
| 504 | - ((data F clock reference gap r hr base tangent ctx u b G A j l).commonCorrected outStrip d))) | |
| 505 | - (fun n i => ∑ j ∈ ParticularWaveAssembly.modes N, | |
| 506 | - (ParticularWaveAssembly.nativeModeBlock j (b l) | |
| 507 | - { base l with | |
| 508 | - amplitude := (data F clock reference gap r hr base tangent ctx u b G A j l).globalGaussian d | |
| 509 | - pressure := fun _ _ => 0 }).velocity n i) 0 := by | |
| 510 | - apply inputSupport_sumBlock | |
| 511 | - intro j _ | |
| 512 | - exact particular_mode_inputSupport F clock reference gap r hr base tangent ctx u b G A | |
| 513 | - s S hS hsupport hinj outStrip d j l | |
| 514 | - | |
| 515 | 327 | end ParticularAssembly |
| 516 | 328 | |
| 517 | 329 | section SignedAssembly |
| @@ -525,34 +337,6 @@ variable {D I : Type} [NormedAddCommGroup D] [NormedSpace ℝ D] | ||
| 525 | 337 | (action : I → ℕ → D × ℝ → ProblemStatement.Space →L[ℝ] ProblemStatement.Space) |
| 526 | 338 | (cutoff : I → ℕ → D × ℝ → ℝ) (column : Fin 2) |
| 527 | 339 | |
| 528 | -/-- Local support of the actual signed masks supplies the new block's | |
| 529 | -support. Mask support is the only hypothesis on the inverse quotient, | |
| 530 | -fundamental, and projected pressure; their numerical size is immaterial. -/ | |
| 531 | -theorem signed_inputSupport (outer : Cells (D × ℝ) I) | |
| 532 | - (hcutoff : ∀ n i, support (cutoff i n) ⊆ outer.carrier n i) | |
| 533 | - {U : Set D} {K : ℕ → Set D} (hU : IsOpen U) (hK : ∀ n, IsClosed (K n)) | |
| 534 | - (hmask : ∀ n i, (U ×ˢ (univ : Set ℝ)) ∩ support (mask i n) ⊆ Prod.fst ⁻¹' K n) | |
| 535 | - (angularFrequency : ℕ → ℤ) : | |
| 536 | - HarmonicSourceSupport.InputSupportOn U K | |
| 537 | - (SignedWaveUpdate.blockOfCoefficients | |
| 538 | - ((signedCopyData base s d matrix target request mask fundamental normalMotion action cutoff column).commonCorrected s d) | |
| 539 | - angularFrequency) | |
| 540 | - (SignedWaveUpdate.coefficientBlock base.frequency (fun n x => base.phase n (x, 0)) angularFrequency | |
| 541 | - (fun n x => (signedCopyData base s d matrix target request mask fundamental normalMotion action cutoff column).globalGaussian d n (x, 0)) | |
| 542 | - (fun _ _ => 0)).velocity 0 := by | |
| 543 | - have hzero (n : ℕ) (x : D) (hx : x ∈ U) (hn : x ∉ K n) := | |
| 544 | - signed_zero_germs_of_mask_germs base s d matrix target request mask fundamental normalMotion action cutoff column | |
| 545 | - outer hcutoff (n := n) (x := (x, 0)) (fun i => | |
| 546 | - zero_germ_of_local_support (hU.prod isOpen_univ) ((hK n).preimage continuous_fst) | |
| 547 | - (hmask n i) ⟨hx, mem_univ _⟩ hn) | |
| 548 | - apply blockOfCoefficients_inputSupport | |
| 549 | - · intro n x hx hn | |
| 550 | - exact (hzero n x hx hn).1.self_of_nhds | |
| 551 | - · intro n x hx hn | |
| 552 | - exact (hzero n x hx hn).2.1.self_of_nhds | |
| 553 | - · intro n x hx hn | |
| 554 | - exact (hzero n x hx hn).2.2.self_of_nhds | |
| 555 | - | |
| 556 | 340 | end SignedAssembly |
| 557 | 341 | |
| 558 | 342 | section TransportedMask |
| @@ -560,42 +344,6 @@ section TransportedMask | ||
| 560 | 344 | variable {P Q : Type} [NormedAddCommGroup P] [NormedSpace ℝ P] |
| 561 | 345 | [NormedAddCommGroup Q] [NormedSpace ℝ Q] |
| 562 | 346 | |
| 563 | -/-- Clock transport of a native mask keeps the actual source window. | |
| 564 | -The primitive mask may contain all radial and dyadic slow cutoffs. -/ | |
| 565 | -theorem transported_mask_support (χ : P →L[ℝ] Q) (g : Geometry) (k : Frequency) | |
| 566 | - {S : Set Q} {r L c : ℝ} (hc : 0 < c) {mask : Q × Plane → ℝ} | |
| 567 | - (hm : support mask ⊆ S ×ˢ ActualGaussianCoverage.sourceCell r L 1) : | |
| 568 | - support (fun x : P × Plane => mask | |
| 569 | - (χ x.1, CopySolveCompatibility.nativeTimeMap 0 c (g.coordinates k x.2))) ⊆ | |
| 570 | - ActualGaussianCoverage.sourceRegion (χ ⁻¹' S) g r L c := by | |
| 571 | - intro x hx | |
| 572 | - have hs := hm hx | |
| 573 | - exact ⟨hs.1, mem_iUnion.mpr ⟨k, (ActualGaussianCoverage.mem_sourceCell_clock hc _).mpr hs.2⟩⟩ | |
| 574 | - | |
| 575 | -/-- The slow pullback and the locally finite native union form one closed | |
| 576 | -carrier. This is the closure used by the next residual-source calculation. -/ | |
| 577 | -theorem transported_carrier_closed (χ : P →L[ℝ] Q) (g : Geometry) | |
| 578 | - {S : Set Q} (hS : IsClosed S) (r L c : ℝ) : | |
| 579 | - IsClosed (ActualGaussianCoverage.sourceRegion (χ ⁻¹' S) g r L c) := | |
| 580 | - ActualGaussianCoverage.sourceRegion_closed (hS.preimage χ.continuous) g r L c | |
| 581 | - | |
| 582 | -theorem transported_mask_tsupport (χ : P →L[ℝ] Q) (g : Geometry) (k : Frequency) | |
| 583 | - {S : Set Q} (hS : IsClosed S) {r L c : ℝ} (hc : 0 < c) {mask : Q × Plane → ℝ} | |
| 584 | - (hm : support mask ⊆ S ×ˢ ActualGaussianCoverage.sourceCell r L 1) : | |
| 585 | - tsupport (fun x : P × Plane => mask | |
| 586 | - (χ x.1, CopySolveCompatibility.nativeTimeMap 0 c (g.coordinates k x.2))) ⊆ | |
| 587 | - ActualGaussianCoverage.sourceRegion (χ ⁻¹' S) g r L c := | |
| 588 | - closure_minimal (transported_mask_support χ g k hc hm) (transported_carrier_closed χ g hS r L c) | |
| 589 | - | |
| 590 | -theorem transported_mask_zero_germ (χ : P →L[ℝ] Q) (g : Geometry) (k : Frequency) | |
| 591 | - {S : Set Q} (hS : IsClosed S) {r L c : ℝ} (hc : 0 < c) {mask : Q × Plane → ℝ} | |
| 592 | - (hm : support mask ⊆ S ×ˢ ActualGaussianCoverage.sourceCell r L 1) | |
| 593 | - {x : P × Plane} (hx : x ∉ ActualGaussianCoverage.sourceRegion (χ ⁻¹' S) g r L c) : | |
| 594 | - (fun y : P × Plane => mask | |
| 595 | - (χ y.1, CopySolveCompatibility.nativeTimeMap 0 c (g.coordinates k y.2))) =ᶠ[𝓝 x] fun _ => 0 := | |
| 596 | - zero_germ_of_support (transported_carrier_closed χ g hS r L c) | |
| 597 | - (transported_mask_support χ g k hc hm) hx | |
| 598 | - | |
| 599 | 347 | end TransportedMask |
| 600 | 348 | |
| 601 | 349 | end NavierStokes.LabelSupportPreservation |
+30 −0 routes/s1-ns-label-1/README.md added View file
| @@ -0,0 +1,30 @@ | ||
| 1 | +--- | |
| 2 | +issue: 10 | |
| 3 | +status: working | |
| 4 | +--- | |
| 5 | +# s1-ns-label-1 | |
| 6 | + | |
| 7 | +One declarations unit of S-1 (issue #10), family `NavierStokes/Label*`: the 59 declarations the unit | |
| 8 | +lists, 808 lines in four files — `NavierStokes/LabelCounting.lean` (22 declarations, 311 lines), | |
| 9 | +`NavierStokes/LabelCountingFinite.lean` (15, 137), `NavierStokes/LabelSumBounds.lean` (8, 108) and | |
| 10 | +`NavierStokes/LabelSupportPreservation.lean` (14, 252). The diff is deletions only; no statement and | |
| 11 | +no proof that stays is changed. | |
| 12 | + | |
| 13 | +How the list was cut. Treant's run of 2026-12-03 (TitiSkywalker/NavierStokesAndEuler, upstream | |
| 14 | +`f9e8bc5`) deleted them as unreachable from the four Comparator theorems. On this project's main the | |
| 15 | +declaration graph was read again under the rule that the paper's results stay: a declaration stays | |
| 16 | +when the files `NavierStokes/PaperResults.lean` imports, `NavierStokes/R3/Theorem.lean` or | |
| 17 | +`NavierStokes/LocalPaperTheorem.lean` reach it, when its docstring cites the paper, or when the text | |
| 18 | +of a declaration that stays names it. None of the 59 is in that kept set. | |
| 19 | + | |
| 20 | +Checked before committing: `git grep -n -w` for each of the 59 short names over the whole tree finds | |
| 21 | +nothing for 56 of them; the three that hit are different declarations of the same short name | |
| 22 | +(`TerminalStress.radialSlice`, `ActualCandidateAssembly.particular_zero_germs`, | |
| 23 | +`ActualCyclePreservation.SignedEquations.signed_inputSupport`). No deleted docstring cites a numbered | |
| 24 | +Lemma, Theorem, Proposition, Corollary, Section or Equation of the paper. `python3 checks/challenge.py .` | |
| 25 | +ends with `ok`. | |
| 26 | + | |
| 27 | +## Next | |
| 28 | + | |
| 29 | +Push and open the pull request (`Part of #10`); the `build` check says whether it compiles. Another | |
| 30 | +`NavierStokes/Label*` unit of #10, if one is cut, is separate. | |