Navier–Stokes: the Lean blow-up proof, cleaned up together
OpenAI's 2026 Lean proofs of blowup for forced Navier–Stokes and Euler, rerun by others, not refereed, no ruling from Clay; cleaned up together: more readable, faster to build

| 1 | import NavierStokes.PrimaryCopyBounds |
| 2 | import NavierStokes.SignedCopyBounds |
| 3 | import NavierStokes.PhysicalSignedWave |
| 4 | |
| 5 | /-! |
| 6 | # Controls from the actual shared primary construction |
| 7 | |
| 8 | The reference matrix, target, unit pulse, normal motion and action below |
| 9 | are computed from the same prepared primary family. Their native-copy |
| 10 | estimates have constants before all labels, bands and copies. |
| 11 | -/ |
| 12 | |
| 13 | noncomputable section |
| 14 | |
| 15 | namespace NavierStokes.ActualSignedControl |
| 16 | |
| 17 | open Set Function Filter PhaseJetBounds PrimaryPulseBounds PrimaryCopyBounds |
| 18 | open WeightedClasses PeriodizedWaveBounds |
| 19 | open scoped ContDiff Topology InnerProductSpace BigOperators |
| 20 | |
| 21 | abbrev Mat2 := SmoothCovariance.Mat2 |
| 22 | abbrev Vec2 := SmoothCovariance.Vec2 |
| 23 | abbrev Space := ProblemStatement.Space |
| 24 | |
| 25 | variable {ι Λ I D X E : Type} |
| 26 | [NormedAddCommGroup D] [NormedSpace ℝ D] |
| 27 | [NormedAddCommGroup X] [NormedSpace ℝ X] |
| 28 | [NormedAddCommGroup E] [NormedSpace ℝ E] |
| 29 | |
| 30 | noncomputable def phaseNormal {U : Domain ι PhaseCalculus.Slow} |
| 31 | (F : PhaseConstruction U) (χ : ι → D → PhaseCalculus.Slow × ℝ) : ι → D → Space := |
| 32 | fun i x => F.phase.normal i (PrimaryCopyBounds.phasePoint F χ i x) |
| 33 | |
| 34 | noncomputable def phaseMotion {U : Domain ι PhaseCalculus.Slow} |
| 35 | (F : PhaseConstruction U) (χ : ι → D → PhaseCalculus.Slow × ℝ) : ι → D → Space := |
| 36 | fun i x => F.phase.velocity i (PrimaryCopyBounds.phasePoint F χ i x) |
| 37 | |
| 38 | noncomputable def phaseAction {U : Domain ι PhaseCalculus.Slow} |
| 39 | (F : PhaseConstruction U) (χ : ι → D → PhaseCalculus.Slow × ℝ) : |
| 40 | ι → D → Space →L[ℝ] Space := |
| 41 | fun i x => PrimaryCopyBridge.baseOperator (F.phase.F i (χ i x).1) |
| 42 | (F.phase.shear i (PrimaryCopyBounds.phasePoint F χ i x)) |
| 43 | |
| 44 | omit [NormedAddCommGroup D] [NormedSpace ℝ D] in |
| 45 | theorem pulseMatrix_eq_phaseMatrix {U : Domain ℕ PhaseCalculus.Slow} |
| 46 | (F : Fin 2 → PhaseConstruction U) (pref : Fin 2 → ℕ → ℝ) |
| 47 | (χ : ℕ → D → PhaseCalculus.Slow × ℝ) : |
| 48 | pulseMatrix F pref χ = SignedWaveUpdate.phaseMatrix F pref χ := rfl |
| 49 | |
| 50 | omit [NormedAddCommGroup D] [NormedSpace ℝ D] in |
| 51 | theorem pulseVector_eq_phaseFundamental {U : Domain ℕ PhaseCalculus.Slow} |
| 52 | (F : Fin 2 → PhaseConstruction U) (χ : ℕ → D → PhaseCalculus.Slow × ℝ) (j : Fin 2) : |
| 53 | pulseVector F χ j = SignedWaveUpdate.phaseFundamental F χ j := rfl |
| 54 | |
| 55 | /-- The three geometric jet estimates are obtained from the actual phase |
| 56 | construction, rather than being supplied for the pressure output. -/ |
| 57 | theorem phase_geometry_jets {V : JetDomain ι D} {U : Domain ι PhaseCalculus.Slow} |
| 58 | (F : PhaseConstruction U) (χ : ι → D → PhaseCalculus.Slow × ℝ) |
| 59 | (hscale : ∀ i, U.scale i = V.scale i) (hχ : PolynomialJets V.toDomain χ) |
| 60 | (hmap : ∀ i x, x ∈ V.carrier i → χ i x ∈ U.carrier i ×ˢ Ioo (0 : ℝ) 1) : |
| 61 | PolynomialJets V.toDomain (phaseNormal F χ) ∧ |
| 62 | PolynomialJets V.toDomain (phaseMotion F χ) ∧ |
| 63 | PolynomialJets V.toDomain (phaseAction F χ) ∧ |
| 64 | (∀ i x, x ∈ V.carrier i → F.b ≤ ‖phaseNormal F χ i x‖) ∧ |
| 65 | (∀ i x, x ∈ V.carrier i → ‖phaseNormal F χ i x‖ ≤ F.M ^ 2 + 3 * F.M) := by |
| 66 | have hp := PrimaryCopyBounds.phasePoint_jets F χ hscale hχ |
| 67 | have hm := PrimaryCopyBounds.phasePoint_maps F χ hmap |
| 68 | have hb := F.phase.polynomial_jets U F.V F.openV F.baseF F.baseG |
| 69 | F.r_pos F.one_le_M F.constants F.epsilon_ne F.radius F.slot |
| 70 | have hN := ((EnvelopeJets.of_polynomial hb.1).comp hp hscale hm).to_polynomial |
| 71 | (fun _ _ _ => le_rfl) |
| 72 | have hNd := ((EnvelopeJets.of_polynomial hb.2.1).comp hp hscale hm).to_polynomial |
| 73 | (fun _ _ _ => le_rfl) |
| 74 | have hshear := ((EnvelopeJets.of_polynomial hb.2.2).comp hp hscale hm).to_polynomial |
| 75 | (fun _ _ _ => le_rfl) |
| 76 | have hF := ((EnvelopeJets.of_polynomial F.baseF).comp |
| 77 | (hχ.clm (ContinuousLinearMap.fst ℝ PhaseCalculus.Slow ℝ)) hscale |
| 78 | (fun i x hx => (hmap i x hx).1)).to_polynomial (fun _ _ _ => le_rfl) |
| 79 | exact ⟨hN, hNd, (hF.pair hshear).clm PrimaryCopyBridge.baseOperatorFamily, |
| 80 | fun i x hx => F.normal_range.1 i _ (hm i x hx), |
| 81 | fun i x hx => F.normal_range.2 i _ (hm i x hx)⟩ |
| 82 | |
| 83 | /-- A proved reference certificate. The prepared-family constructor below |
| 84 | derives its target and mask estimates and all three scalar margins. -/ |
| 85 | structure ReferenceBounds (V : JetDomain ι D) (U : Domain ι PhaseCalculus.Slow) |
| 86 | (F : Fin 2 → PhaseConstruction U) (pref : Fin 2 → ι → ℝ) |
| 87 | (χ : ι → D → PhaseCalculus.Slow × ℝ) (T : ι → D → Vec2) |
| 88 | (mask ζ : ι → D → ℝ) where |
| 89 | scale : ∀ i, U.scale i = V.scale i |
| 90 | coordinate_jets : PolynomialJets V.toDomain χ |
| 91 | coordinate_mem : ∀ i x, x ∈ V.carrier i → χ i x ∈ U.carrier i ×ˢ Ioo (0 : ℝ) 1 |
| 92 | prefactor_jets : ∀ j, PolynomialJets U (fun i _ => pref j i) |
| 93 | target_jets : ∀ q, NativeJets V ζ (fun i x => T i x q) |
| 94 | mask_jets : PolynomialJets V.toDomain mask |
| 95 | weight_pos : ∀ i x, x ∈ V.carrier i → 0 < ζ i x |
| 96 | determinantGap : ℝ |
| 97 | entryBound : ℝ |
| 98 | primaryLower : ℝ |
| 99 | gap_pos : 0 < determinantGap |
| 100 | entry_one : 1 ≤ entryBound |
| 101 | lower_pos : 0 < primaryLower |
| 102 | zero_order : ∀ i x, x ∈ V.carrier i → |
| 103 | PrimaryCovarianceBounds.ZeroOrderBounds (Real.sqrt (V.scale i)) |
| 104 | determinantGap entryBound primaryLower (ζ i x) |
| 105 | (pulseMatrix F pref χ i x) (T i x) |
| 106 | |
| 107 | namespace ReferenceBounds |
| 108 | |
| 109 | variable {V : JetDomain ι D} {U : Domain ι PhaseCalculus.Slow} |
| 110 | {F : Fin 2 → PhaseConstruction U} {pref : Fin 2 → ι → ℝ} |
| 111 | {χ : ι → D → PhaseCalculus.Slow × ℝ} {T : ι → D → Vec2} {mask ζ : ι → D → ℝ} |
| 112 | (h : ReferenceBounds V U F pref χ T mask ζ) |
| 113 | |
| 114 | include h |
| 115 | |
| 116 | theorem matrix_jets (j k : Fin 2) : |
| 117 | PolynomialJets V.toDomain (fun i x => pulseMatrix F pref χ i x j k) := |
| 118 | pulseMatrix_jets F pref χ h.scale h.coordinate_jets |
| 119 | (fun i x hx => (h.coordinate_mem i x hx).1) h.prefactor_jets j k |
| 120 | |
| 121 | theorem unit_jets (j : Fin 2) : NativeJets V (pulseEnvelope F χ j) (pulseVector F χ j) := |
| 122 | pulseVector_jets F χ h.scale h.coordinate_jets h.coordinate_mem j |
| 123 | |
| 124 | theorem geometry_jets (j : Fin 2) : |
| 125 | PolynomialJets V.toDomain (phaseNormal (F j) χ) ∧ |
| 126 | PolynomialJets V.toDomain (phaseMotion (F j) χ) ∧ |
| 127 | PolynomialJets V.toDomain (phaseAction (F j) χ) ∧ |
| 128 | (∀ i x, x ∈ V.carrier i → (F j).b ≤ ‖phaseNormal (F j) χ i x‖) ∧ |
| 129 | (∀ i x, x ∈ V.carrier i → ‖phaseNormal (F j) χ i x‖ ≤ (F j).M ^ 2 + 3 * (F j).M) := |
| 130 | phase_geometry_jets (F j) χ h.scale h.coordinate_jets h.coordinate_mem |
| 131 | |
| 132 | theorem cutoff_jets : PolynomialJets V.toDomain |
| 133 | (fun i x => GaussianTailFlat.profile (χ i x).2) := by |
| 134 | apply (h.coordinate_jets.clm (ContinuousLinearMap.snd ℝ PhaseCalculus.Slow ℝ)).compact_comp |
| 135 | isOpen_univ GaussianTailFlat.profile_contDiff.contDiffOn isCompact_Icc (subset_univ _) |
| 136 | intro i x hx |
| 137 | exact ⟨(h.coordinate_mem i x hx).2.1.le, (h.coordinate_mem i x hx).2.2.le⟩ |
| 138 | |
| 139 | end ReferenceBounds |
| 140 | |
| 141 | /-- Only affine coordinate geometry and weight/scale comparisons are |
| 142 | stored here. No copied field or copied derivative bound is an input. -/ |
| 143 | structure CopyChart (s : StripData X) (V : JetDomain ι D) (ζ : ι → D → ℝ) |
| 144 | (K : Λ → ℕ → I → Set X) where |
| 145 | index : Λ → ℕ → ι |
| 146 | linear : Λ → ℕ → I → X →L[ℝ] D |
| 147 | shift : Λ → ℕ → I → D |
| 148 | maps : ∀ l n i x, x ∈ s.domain → x ∈ K l n i → |
| 149 | linear l n i x + shift l n i ∈ V.carrier (index l n) |
| 150 | growthConstant : ℝ |
| 151 | linearConstant : ℝ |
| 152 | growth_one : 1 ≤ growthConstant |
| 153 | linear_one : 1 ≤ linearConstant |
| 154 | growthDegree : ℕ |
| 155 | linearDegree : ℕ |
| 156 | growth_bound : ∀ l n i x, x ∈ s.domain → x ∈ K l n i → |
| 157 | V.growth (index l n) (linear l n i x + shift l n i) ≤ |
| 158 | growthConstant * s.growth n x ^ growthDegree |
| 159 | linear_bound : ∀ l n i, ‖linear l n i‖ ≤ linearConstant * s.slow n ^ linearDegree |
| 160 | weight_eq : ∀ l n i x, x ∈ s.domain → x ∈ K l n i → |
| 161 | ζ (index l n) (linear l n i x + shift l n i) = s.zeta x |
| 162 | ratioLower : ℝ |
| 163 | ratioUpper : ℝ |
| 164 | ratio_pos : 0 < ratioLower |
| 165 | ratio_one : 1 ≤ ratioUpper |
| 166 | scale_ratio : ∀ l n, ratioLower ≤ Real.sqrt (s.slow n) / Real.sqrt (V.scale (index l n)) ∧ |
| 167 | Real.sqrt (s.slow n) / Real.sqrt (V.scale (index l n)) ≤ ratioUpper |
| 168 | |
| 169 | namespace CopyChart |
| 170 | |
| 171 | variable {s : StripData X} {V : JetDomain ι D} {ζ : ι → D → ℝ} |
| 172 | {K : Λ → ℕ → I → Set X} (c : CopyChart s V ζ K) |
| 173 | |
| 174 | noncomputable def pull (f : ι → D → E) : Λ → ℕ → I → X → E := |
| 175 | affineCopy f c.index c.linear c.shift |
| 176 | |
| 177 | theorem unweighted {f : ι → D → E} (hf : PolynomialJets V.toDomain f) : |
| 178 | UniformLocalJets s (fun _ _ _ => 1) 0 K (c.pull f) := by |
| 179 | apply (NativeJets.of_polynomial hf).copy_localJets s (fun _ _ _ => 1) 0 |
| 180 | c.index c.linear c.shift K (fun _ _ _ _ => zero_le_one) c.maps c.growth_one c.linear_one |
| 181 | c.growthDegree c.linearDegree c.growth_bound c.linear_bound |
| 182 | intro l n i x hx hi |
| 183 | simp |
| 184 | |
| 185 | theorem weighted {f : ι → D → E} (hf : NativeJets V ζ f) : |
| 186 | UniformLocalJets s (fun _ _ x => s.zeta x) 0 K (c.pull f) := by |
| 187 | apply hf.copy_localJets s (fun _ _ x => s.zeta x) 0 c.index c.linear c.shift K |
| 188 | (fun _ _ x hx => s.zeta_nonneg x hx) c.maps c.growth_one c.linear_one |
| 189 | c.growthDegree c.linearDegree c.growth_bound c.linear_bound |
| 190 | intro l n i x hx hi |
| 191 | simp only [Real.rpow_zero, one_mul, c.weight_eq l n i x hx hi, le_refl] |
| 192 | |
| 193 | theorem envelope {w : ι → D → ℝ} {f : ι → D → E} (hf : NativeJets V w f) |
| 194 | {W : Λ → ℕ → X → ℝ} (hW : ∀ l n x, x ∈ s.domain → 0 ≤ W l n x) |
| 195 | (hw : ∀ l n i x, x ∈ s.domain → x ∈ K l n i → |
| 196 | w (c.index l n) (c.linear l n i x + c.shift l n i) ≤ W l n x) : |
| 197 | UniformLocalJets s W 0 K (c.pull f) := by |
| 198 | apply hf.copy_localJets s W 0 c.index c.linear c.shift K hW c.maps c.growth_one c.linear_one |
| 199 | c.growthDegree c.linearDegree c.growth_bound c.linear_bound |
| 200 | simpa only [Real.rpow_zero, one_mul] using hw |
| 201 | |
| 202 | end CopyChart |
| 203 | |
| 204 | /-! ## The reference certificate is produced from the same actual profile -/ |
| 205 | |
| 206 | section Prepared |
| 207 | |
| 208 | variable {F₀ : OutgoingProfile.Profile} {W₀ : NominalProfile.Witness F₀} |
| 209 | (H₀ : NominalConeAssembly.Certificate W₀) {ld : ModulatedProfileAssembly.LoopData W₀} |
| 210 | (v₀ : ModulatedProfileAssembly.Witness ld) |
| 211 | {upper : ℝ} {B : ℕ} {r0 : ℝ} {N0 : ℕ} |
| 212 | |
| 213 | /-- Primitive local chart geometry for a selected prepared family. |
| 214 | The target, matrix, mask and pulse jets are not fields of this record. -/ |
| 215 | structure PreparedChart (a : PrimaryGeometryAssembly.Prepared H₀ v₀ upper B r0 N0) |
| 216 | (D : Type) [NormedAddCommGroup D] [NormedSpace ℝ D] where |
| 217 | native : JetDomain (PrimaryGeometryAssembly.Index W₀ a.N) D |
| 218 | slow : JetDomain (PrimaryGeometryAssembly.Index W₀ a.N) PhaseCalculus.Slow |
| 219 | coordinate : PrimaryGeometryAssembly.Index W₀ a.N → D → PhaseCalculus.Slow × ℝ |
| 220 | scale : ∀ L, (PrimaryGeometryAssembly.domain W₀ a.N).scale L = native.scale L |
| 221 | coordinate_jets : PolynomialJets native.toDomain coordinate |
| 222 | maps : ∀ L x, x ∈ native.carrier L → |
| 223 | coordinate L x ∈ (PrimaryGeometryAssembly.domain W₀ a.N).carrier L ×ˢ Ioo (0 : ℝ) 1 |
| 224 | positive : ∀ L x, x ∈ native.carrier L → (coordinate L x).1 ∈ |
| 225 | PositiveRepresentatives.positivePart (PrimaryGeometryAssembly.referenceSet W₀) |
| 226 | slow_maps : ∀ L x, x ∈ native.carrier L → (coordinate L x).1 ∈ slow.carrier L |
| 227 | slow_growth : ∀ L x, x ∈ native.carrier L → slow.growth L (coordinate L x).1 ≤ native.growth L x |
| 228 | radiusLower : ℝ |
| 229 | normUpper : ℝ |
| 230 | qLower : ℝ |
| 231 | qUpper : ℝ |
| 232 | radius_pos : 0 < radiusLower |
| 233 | q_pos : 0 < qLower |
| 234 | geometry : BaseChartJets.GeometryBounds slow.toDomain F₀.data.h radiusLower normUpper qLower qUpper |
| 235 | (NominalConeAssembly.activeLeft W₀) (NominalConeAssembly.activeRight W₀) |
| 236 | inverse_edge : ∀ L p, p ∈ slow.carrier L → |
| 237 | (FinalSlowBase.edgeDistance W₀ (BaseChartJets.normalizedCoordinates F₀.data.h p).2)⁻¹ ≤ slow.growth L p |
| 238 | |
| 239 | namespace PreparedChart |
| 240 | |
| 241 | variable {H₀ v₀} |
| 242 | {a : PrimaryGeometryAssembly.Prepared H₀ v₀ upper B r0 N0} |
| 243 | (c : PreparedChart H₀ v₀ a D) |
| 244 | |
| 245 | noncomputable def target : PrimaryGeometryAssembly.Index W₀ a.N → D → Vec2 := |
| 246 | fun L x k => PrimaryTargetBounds.actualTarget v₀ (c.coordinate L x).1 k |
| 247 | |
| 248 | noncomputable def weight : PrimaryGeometryAssembly.Index W₀ a.N → D → ℝ := |
| 249 | fun L x => PrimaryTargetBounds.movingWeight W₀ (c.coordinate L x).1 |
| 250 | |
| 251 | noncomputable def mask : PrimaryGeometryAssembly.Index W₀ a.N → D → ℝ := |
| 252 | fun L x => PrimaryRepresentatives.nativeMask (PrimaryGeometryAssembly.label W₀ L).1 |
| 253 | (PrimaryGeometryAssembly.label W₀ L).2 (c.coordinate L x).1 |
| 254 | |
| 255 | theorem target_jets (hcone : LeadingStressWeights.FullTrueCone v₀) (k : Fin 2) : |
| 256 | NativeJets c.native c.weight (fun L x => c.target L x k) := by |
| 257 | have ht := (PrimaryCopyBounds.actualTarget_jets v₀ hcone c.slow |
| 258 | c.radius_pos c.q_pos c.geometry c.inverse_edge).comp |
| 259 | (c.coordinate_jets.clm (ContinuousLinearMap.fst ℝ PhaseCalculus.Slow ℝ)) c.slow_maps c.slow_growth |
| 260 | exact ht.map (PiLp.proj 2 (fun _ : Fin 2 => ℝ) k) |
| 261 | |
| 262 | theorem mask_jets : PolynomialJets c.native.toDomain c.mask := by |
| 263 | apply nativeMask_comp_jets c.native.toDomain |
| 264 | (fun L x => (c.coordinate L x).1) |
| 265 | (c.coordinate_jets.clm (ContinuousLinearMap.fst ℝ PhaseCalculus.Slow ℝ)) |
| 266 | (fun L => (PrimaryGeometryAssembly.label W₀ L).1) |
| 267 | (fun L => (PrimaryGeometryAssembly.label W₀ L).2) |
| 268 | (fun L => L.val.property.1) |
| 269 | intro L |
| 270 | rw [← c.scale L] |
| 271 | rfl |
| 272 | |
| 273 | theorem weight_pos (L : PrimaryGeometryAssembly.Index W₀ a.N) {x : D} |
| 274 | (hx : x ∈ c.native.carrier L) : 0 < c.weight L x := by |
| 275 | have hs := c.slow_maps L x hx |
| 276 | rw [weight, PrimaryTargetBounds.movingWeight_eq W₀ (c.geometry.time L _ hs) |
| 277 | (c.radius_pos.trans_le (c.geometry.radius L _ hs))] |
| 278 | apply ActiveAnnulusWeight.radialWeight_pos |
| 279 | simp only [FinalSlowBase.logLeft, FinalSlowBase.logRight, |
| 280 | Real.exp_log (NominalConeAssembly.activeLeft_pos W₀), |
| 281 | Real.exp_log (FinalSlowBase.terminal_pos W₀)] |
| 282 | exact c.geometry.x_range L _ hs |
| 283 | |
| 284 | /-- Every jet field in this reference certificate is derived from the |
| 285 | actual prepared phase, actual leading target and actual grid mask. -/ |
| 286 | noncomputable def referenceBounds (hcone : LeadingStressWeights.FullTrueCone v₀) |
| 287 | (hr0 : 0 < r0) (vr vt : TorusInverse.Plane) |
| 288 | (dg eb il : ℝ) (hdg : 0 < dg) (heb : 1 ≤ eb) (hil : 0 < il) |
| 289 | (hz : ∀ (L : PrimaryGeometryAssembly.Index W₀ a.N) (p : PhaseCalculus.Slow), |
| 290 | p ∈ PositiveRepresentatives.positivePart (PrimaryGeometryAssembly.referenceSet W₀) → |
| 291 | p ∈ (PrimaryGeometryAssembly.domain W₀ a.N).carrier L → |
| 292 | PrimaryCovarianceBounds.ZeroOrderBounds (Real.sqrt (ChartScales.S (BaseChartJets.cellBand L))) |
| 293 | dg eb il (PrimaryTargetBounds.movingWeight W₀ p) |
| 294 | (PrimaryTargetBounds.preparedCovariance H₀ v₀ a vr vt L p) |
| 295 | (fun k => PrimaryTargetBounds.actualTarget v₀ p k)) : |
| 296 | ReferenceBounds c.native (PrimaryGeometryAssembly.domain W₀ a.N) |
| 297 | (PrimaryGeometryAssembly.construction H₀ v₀ a hr0) |
| 298 | (preparedPrefactor r0 vr vt) c.coordinate c.target c.mask c.weight where |
| 299 | scale := c.scale |
| 300 | coordinate_jets := c.coordinate_jets |
| 301 | coordinate_mem := c.maps |
| 302 | prefactor_jets := fun j => preparedPrefactor_jets r0 vr vt a.N j |
| 303 | target_jets := c.target_jets hcone |
| 304 | mask_jets := c.mask_jets |
| 305 | weight_pos := fun L _ hx => c.weight_pos L hx |
| 306 | determinantGap := dg |
| 307 | entryBound := eb |
| 308 | primaryLower := il |
| 309 | gap_pos := hdg |
| 310 | entry_one := heb |
| 311 | lower_pos := hil |
| 312 | zero_order := by |
| 313 | intro L x hx |
| 314 | have h := hz L (c.coordinate L x).1 (c.positive L x hx) (c.maps L x hx).1 |
| 315 | have hscale : c.native.scale L = ChartScales.S (BaseChartJets.cellBand L) := (c.scale L).symm |
| 316 | simp only [hscale, pulseMatrix, weight] at h ⊢ |
| 317 | exact h |
| 318 | |
| 319 | end PreparedChart |
| 320 | |
| 321 | /-- A supplied prepared family is only restricted to a later tail. |
| 322 | Every surviving phase and representative is the same one used by the |
| 323 | primary construction. No determinant or final control record is assumed. -/ |
| 324 | theorem exists_referenceBounds (a : PrimaryGeometryAssembly.Prepared H₀ v₀ upper B r0 N0) |
| 325 | (hcone : LeadingStressWeights.FullTrueCone v₀) (hr0 : 0 < r0) |
| 326 | (vr vt : TorusInverse.Plane) (hdet : vr.1 * vt.2 - vr.2 * vt.1 ≠ 0) : |
| 327 | ∃ N : ℕ, ∃ hN : a.N ≤ N, |
| 328 | ∀ c : PreparedChart H₀ v₀ (a.restrict N hN) D, |
| 329 | Nonempty (ReferenceBounds c.native (PrimaryGeometryAssembly.domain W₀ N) |
| 330 | (PrimaryGeometryAssembly.construction H₀ v₀ (a.restrict N hN) hr0) |
| 331 | (preparedPrefactor r0 vr vt) c.coordinate c.target c.mask c.weight) := by |
| 332 | obtain ⟨N, hN, dg, eb, il, hdg, heb, hil, hz⟩ := |
| 333 | PrimaryTargetBounds.exists_restricted_actual_bounds H₀ v₀ a hcone vr vt hdet hr0 |
| 334 | exact ⟨N, hN, fun c => ⟨c.referenceBounds hcone hr0 vr vt dg eb il hdg heb hil hz⟩⟩ |
| 335 | |
| 336 | end Prepared |
| 337 | |
| 338 | /-! ## Transport through the actual affine views -/ |
| 339 | |
| 340 | /-- Positive band scalars with uniform primitive zeroth-order margins. -/ |
| 341 | structure PositiveScale (Λ : Type) where |
| 342 | value : Λ → ℕ → ℝ |
| 343 | lower : ℝ |
| 344 | upper : ℝ |
| 345 | lower_pos : 0 < lower |
| 346 | upper_one : 1 ≤ upper |
| 347 | bounds : ∀ l n, lower ≤ value l n ∧ value l n ≤ upper |
| 348 | |
| 349 | namespace PositiveScale |
| 350 | |
| 351 | variable (a b : PositiveScale Λ) |
| 352 | |
| 353 | theorem value_pos (l : Λ) (n : ℕ) : 0 < a.value l n := a.lower_pos.trans_le (a.bounds l n).1 |
| 354 | |
| 355 | theorem bandBound (s : StripData X) : UniformPrimaryWeights.UniformBandBound s 0 a.value := by |
| 356 | refine ⟨a.upper, zero_le_one.trans a.upper_one, 0, ?_⟩ |
| 357 | intro l n |
| 358 | simpa only [Real.norm_eq_abs, abs_of_pos (a.value_pos l n), Real.rpow_zero, |
| 359 | pow_zero, mul_one] using (a.bounds l n).2 |
| 360 | |
| 361 | theorem square_bandBound (s : StripData X) : |
| 362 | UniformPrimaryWeights.UniformBandBound s 0 (fun l n => a.value l n ^ 2) := by |
| 363 | refine ⟨a.upper ^ 2, sq_nonneg _, 0, ?_⟩ |
| 364 | intro l n |
| 365 | simpa only [Real.norm_eq_abs, abs_of_nonneg (sq_nonneg (a.value l n)), Real.rpow_zero, |
| 366 | pow_zero, mul_one] using pow_le_pow_left₀ (a.value_pos l n).le (a.bounds l n).2 2 |
| 367 | |
| 368 | noncomputable def mul : PositiveScale Λ where |
| 369 | value l n := a.value l n * b.value l n |
| 370 | lower := a.lower * b.lower |
| 371 | upper := a.upper * b.upper |
| 372 | lower_pos := mul_pos a.lower_pos b.lower_pos |
| 373 | upper_one := one_le_mul_of_one_le_of_one_le a.upper_one b.upper_one |
| 374 | bounds l n := ⟨mul_le_mul (a.bounds l n).1 (b.bounds l n).1 b.lower_pos.le (a.value_pos l n).le, |
| 375 | mul_le_mul (a.bounds l n).2 (b.bounds l n).2 (b.value_pos l n).le (zero_le_one.trans a.upper_one)⟩ |
| 376 | |
| 377 | end PositiveScale |
| 378 | |
| 379 | theorem uniform_band_smul [Countable Λ] [Nonempty Λ] |
| 380 | {s : StripData X} {K : Λ → ℕ → I → Set X} {w : Λ → ℕ → X → ℝ} {α β : ℝ} |
| 381 | {f : Λ → ℕ → I → X → E} {r : Λ → ℕ → ℝ} |
| 382 | (hf : UniformLocalJets s w α K f) (hr : UniformPrimaryWeights.UniformBandBound s β r) |
| 383 | (hw : ∀ l n x, x ∈ s.domain → 0 ≤ w l n x) : |
| 384 | UniformLocalJets s w (α + β) K (fun l n i x => r l n • f l n i x) := by |
| 385 | let e := UniformPrimaryWeights.enumeration Λ |
| 386 | apply SignedCopyBounds.uniform_local_of_pull (UniformPrimaryWeights.enumeration_surjective Λ) |
| 387 | have hr' : UniformPrimaryWeights.UniformBandBound (UniformPrimaryWeights.reindexedStrip s e) β |
| 388 | (fun (_ : I) k => r (e k).2 (e k).1) := by |
| 389 | obtain ⟨C, hC, p, hb⟩ := hr |
| 390 | exact ⟨C, hC, p, fun _ k => hb (e k).2 (e k).1⟩ |
| 391 | exact SignedCopyBounds.local_indexed_band_smul (SignedCopyBounds.local_pull hf e) hr' |
| 392 | (fun k => hw (e k).2 (e k).1) |
| 393 | |
| 394 | theorem uniform_local_congr {s : StripData X} {K : Λ → ℕ → I → Set X} |
| 395 | {w : Λ → ℕ → X → ℝ} {α : ℝ} {f g : Λ → ℕ → I → X → E} |
| 396 | (hf : UniformLocalJets s w α K f) |
| 397 | (he : ∀ l n i x, x ∈ s.domain → x ∈ K l n i → f l n i =ᶠ[𝓝 x] g l n i) : |
| 398 | UniformLocalJets s w α K g := by |
| 399 | refine ⟨fun l n i x hx hi => (hf.smooth l n i x hx hi).congr_of_eventuallyEq |
| 400 | (he l n i x hx hi).symm, ?_⟩ |
| 401 | intro m |
| 402 | obtain ⟨C, hC, p, hb⟩ := hf.bounds m |
| 403 | refine ⟨C, hC, p, ?_⟩ |
| 404 | intro l n i x hx hi j hj |
| 405 | rw [← PeriodizedWaveBounds.jets_eq_of_germ (he l n i x hx hi) j] |
| 406 | exact hb l n i x hx hi j hj |
| 407 | |
| 408 | /-- Changing the band's normalization and scaling the actual target |
| 409 | preserves quantitative Cramer margins with explicit constants. -/ |
| 410 | theorem rescale_margins {r R dg eb il ζ c clo rlo rhi : ℝ} {H : Mat2} {T : Vec2} |
| 411 | (h : PrimaryCovarianceBounds.ZeroOrderBounds r dg eb il ζ H T) |
| 412 | (hr : 1 ≤ r) (hdg : 0 ≤ dg) (hil : 0 ≤ il) (hζ : 0 ≤ ζ) (hclo : 0 < clo) (hc : clo ≤ c) |
| 413 | (hrlo : 0 < rlo) (hlo : rlo ≤ R / r) (hhi : R / r ≤ rhi) : |
| 414 | rlo ^ 2 * dg ≤ |(normalizedMatrix R H).det| ∧ |
| 415 | (∀ i j, |R * H i j| ≤ rhi * eb) ∧ |
| 416 | (∀ j, (clo ^ 2 * il) * ζ ≤ SmoothCovariance.weights H (c ^ 2 • T) j) := by |
| 417 | have hrp : 0 < r := zero_lt_one.trans_le hr |
| 418 | have hratio : 0 < R / r := hrlo.trans_le hlo |
| 419 | have he : normalizedMatrix R H = normalizedMatrix (R / r) (normalizedMatrix r H) := by |
| 420 | ext i j |
| 421 | simp only [normalizedMatrix] |
| 422 | field_simp |
| 423 | have hdet : |(normalizedMatrix R H).det| = (R / r) ^ 2 * |(normalizedMatrix r H).det| := by |
| 424 | rw [he, normalizedMatrix_det, abs_mul, abs_of_nonneg (sq_nonneg _)] |
| 425 | refine ⟨?_, ?_, ?_⟩ |
| 426 | · rw [hdet] |
| 427 | exact mul_le_mul (pow_le_pow_left₀ hrlo.le hlo 2) h.determinant |
| 428 | hdg (sq_nonneg _) |
| 429 | · intro i j |
| 430 | have hentry : R * H i j = (R / r) * (r * H i j) := by field_simp |
| 431 | rw [hentry, abs_mul, abs_of_pos hratio] |
| 432 | exact mul_le_mul hhi (h.entries i j) (abs_nonneg _) (by linarith [hratio, hhi]) |
| 433 | · intro j |
| 434 | rw [PhysicalSignedWave.weights_smul_target, Pi.smul_apply, smul_eq_mul] |
| 435 | have hbase : il * ζ ≤ SmoothCovariance.weights H T j := by |
| 436 | apply le_trans _ (h.weights j) |
| 437 | nlinarith [mul_nonneg hil hζ] |
| 438 | have hh := mul_le_mul (pow_le_pow_left₀ hclo.le hc 2) hbase |
| 439 | (mul_nonneg hil hζ) (sq_nonneg c) |
| 440 | simpa only [mul_assoc] using hh |
| 441 | |
| 442 | namespace ReferenceBounds |
| 443 | |
| 444 | variable [Countable Λ] [Nonempty Λ] |
| 445 | {V : JetDomain ι D} {U : Domain ι PhaseCalculus.Slow} |
| 446 | {F : Fin 2 → PhaseConstruction U} {pref : Fin 2 → ι → ℝ} |
| 447 | {χ : ι → D → PhaseCalculus.Slow × ℝ} {T : ι → D → Vec2} {mask ζ : ι → D → ℝ} |
| 448 | (h : ReferenceBounds V U F pref χ T mask ζ) |
| 449 | {s : StripData X} {K : Λ → ℕ → I → Set X} |
| 450 | (c : CopyChart s V ζ K) (scale : PositiveScale Λ) |
| 451 | |
| 452 | /-- Construct the actual uniform native covariance record from the |
| 453 | derived reference jets and the primitive view geometry. -/ |
| 454 | noncomputable def nativeCovariance (hzeta : ∀ x ∈ s.domain, 0 < s.zeta x) : |
| 455 | SignedCopyBounds.UniformNativeCovariance s K |
| 456 | (fun l i n => c.pull (pulseMatrix F pref χ) l n i) |
| 457 | (fun l i n x => scale.value l n ^ 2 • c.pull T l n i x) where |
| 458 | matrix_jets j k := c.unweighted (h.matrix_jets j k) |
| 459 | target_jets q := by |
| 460 | have ht := uniform_band_smul (c.weighted (h.target_jets q)) (scale.square_bandBound s) |
| 461 | (fun _ _ x hx => s.zeta_nonneg x hx) |
| 462 | simp only [zero_add] at ht |
| 463 | exact ht |
| 464 | zeta_pos := hzeta |
| 465 | determinantGap := c.ratioLower ^ 2 * h.determinantGap |
| 466 | entryBound := c.ratioUpper * h.entryBound |
| 467 | primaryLower := scale.lower ^ 2 * h.primaryLower |
| 468 | gap_pos := mul_pos (sq_pos_of_pos c.ratio_pos) h.gap_pos |
| 469 | entry_one := one_le_mul_of_one_le_of_one_le c.ratio_one h.entry_one |
| 470 | lower_pos := mul_pos (sq_pos_of_pos scale.lower_pos) h.lower_pos |
| 471 | determinant := by |
| 472 | intro l n i x hx hi |
| 473 | have hz := h.zero_order (c.index l n) _ (c.maps l n i x hx hi) |
| 474 | rw [c.weight_eq l n i x hx hi] at hz |
| 475 | exact (rescale_margins hz (Real.one_le_sqrt.mpr (V.one_le_scale _)) h.gap_pos.le h.lower_pos.le |
| 476 | (s.zeta_nonneg x hx) scale.lower_pos (scale.bounds l n).1 c.ratio_pos |
| 477 | (c.scale_ratio l n).1 (c.scale_ratio l n).2).1 |
| 478 | entries := by |
| 479 | intro l n i x hx hi |
| 480 | have hz := h.zero_order (c.index l n) _ (c.maps l n i x hx hi) |
| 481 | rw [c.weight_eq l n i x hx hi] at hz |
| 482 | exact (rescale_margins hz (Real.one_le_sqrt.mpr (V.one_le_scale _)) h.gap_pos.le h.lower_pos.le |
| 483 | (s.zeta_nonneg x hx) scale.lower_pos (scale.bounds l n).1 c.ratio_pos |
| 484 | (c.scale_ratio l n).1 (c.scale_ratio l n).2).2.1 |
| 485 | lower := by |
| 486 | intro l n i x hx hi |
| 487 | have hz := h.zero_order (c.index l n) _ (c.maps l n i x hx hi) |
| 488 | rw [c.weight_eq l n i x hx hi] at hz |
| 489 | exact (rescale_margins hz (Real.one_le_sqrt.mpr (V.one_le_scale _)) h.gap_pos.le h.lower_pos.le |
| 490 | (s.zeta_nonneg x hx) scale.lower_pos (scale.bounds l n).1 c.ratio_pos |
| 491 | (c.scale_ratio l n).1 (c.scale_ratio l n).2).2.2 |
| 492 | |
| 493 | /-- The requested copy-level `NativeCovariance` is a projection of the |
| 494 | jointly proved record, retaining the same numerical margins. -/ |
| 495 | noncomputable def nativeCovarianceAt (hzeta : ∀ x ∈ s.domain, 0 < s.zeta x) (l : Λ) : |
| 496 | SignedCopyBounds.NativeCovariance s (K l) |
| 497 | (fun i n => c.pull (pulseMatrix F pref χ) l n i) |
| 498 | (fun i n x => scale.value l n ^ 2 • c.pull T l n i x) := by |
| 499 | let hc := h.nativeCovariance c scale hzeta |
| 500 | exact { |
| 501 | matrix_jets := fun j k => (hc.matrix_jets j k).each l |
| 502 | target_jets := fun j => (hc.target_jets j).each l |
| 503 | zeta_pos := hc.zeta_pos |
| 504 | determinantGap := hc.determinantGap |
| 505 | entryBound := hc.entryBound |
| 506 | primaryLower := hc.primaryLower |
| 507 | gap_pos := hc.gap_pos |
| 508 | entry_one := hc.entry_one |
| 509 | lower_pos := hc.lower_pos |
| 510 | determinant := hc.determinant l |
| 511 | entries := hc.entries l |
| 512 | lower := hc.lower l } |
| 513 | |
| 514 | include h |
| 515 | |
| 516 | omit [Countable Λ] [Nonempty Λ] in |
| 517 | theorem copied_unit_jets (j : Fin 2) {W : Λ → ℕ → X → ℝ} |
| 518 | (hW : ∀ l n x, x ∈ s.domain → 0 ≤ W l n x) |
| 519 | (henv : ∀ l n i x, x ∈ s.domain → x ∈ K l n i → |
| 520 | c.pull (pulseEnvelope F χ j) l n i x ≤ W l n x) : |
| 521 | UniformLocalJets s W 0 K (c.pull (pulseVector F χ j)) := |
| 522 | c.envelope (h.unit_jets j) hW henv |
| 523 | |
| 524 | /-- The modeled normal, normal motion and action are the transported |
| 525 | ones from the selected primary phase, with its actual clock factors. -/ |
| 526 | theorem copied_geometry_jets (normal clock : PositiveScale Λ) (j : Fin 2) : |
| 527 | UniformLocalJets s (fun _ _ _ => 1) 0 K |
| 528 | (fun l n i x => normal.value l n • c.pull (phaseNormal (F j) χ) l n i x) ∧ |
| 529 | UniformLocalJets s (fun _ _ _ => 1) 0 K |
| 530 | (fun l n i x => (normal.value l n * clock.value l n) • c.pull (phaseMotion (F j) χ) l n i x) ∧ |
| 531 | UniformLocalJets s (fun _ _ _ => 1) 0 K |
| 532 | (fun l n i x => clock.value l n • c.pull (phaseAction (F j) χ) l n i x) := by |
| 533 | have hg := h.geometry_jets j |
| 534 | refine ⟨?_, ?_, ?_⟩ |
| 535 | · simpa only [zero_add] using uniform_band_smul (c.unweighted hg.1) (normal.bandBound s) |
| 536 | (fun _ _ _ _ => zero_le_one) |
| 537 | · simpa only [zero_add, PositiveScale.mul] using |
| 538 | uniform_band_smul (c.unweighted hg.2.1) ((normal.mul clock).bandBound s) |
| 539 | (fun _ _ _ _ => zero_le_one) |
| 540 | · simpa only [zero_add] using uniform_band_smul (c.unweighted hg.2.2.1) (clock.bandBound s) |
| 541 | (fun _ _ _ _ => zero_le_one) |
| 542 | |
| 543 | omit [Countable Λ] [Nonempty Λ] in |
| 544 | theorem copied_normal_bounds (normal : PositiveScale Λ) (j : Fin 2) |
| 545 | (l : Λ) (n : ℕ) (i : I) {x : X} (hx : x ∈ s.domain) (hi : x ∈ K l n i) : |
| 546 | normal.lower * (F j).b ≤ ‖normal.value l n • c.pull (phaseNormal (F j) χ) l n i x‖ ∧ |
| 547 | ‖normal.value l n • c.pull (phaseNormal (F j) χ) l n i x‖ ≤ |
| 548 | normal.upper * ((F j).M ^ 2 + 3 * (F j).M) := by |
| 549 | have hg := h.geometry_jets j |
| 550 | have hlo := hg.2.2.2.1 (c.index l n) _ (c.maps l n i x hx hi) |
| 551 | have hhi := hg.2.2.2.2 (c.index l n) _ (c.maps l n i x hx hi) |
| 552 | simp only [norm_smul, Real.norm_eq_abs, abs_of_pos (normal.value_pos l n)] |
| 553 | exact ⟨mul_le_mul (normal.bounds l n).1 hlo (F j).b_pos.le (normal.value_pos l n).le, |
| 554 | mul_le_mul (normal.bounds l n).2 hhi (norm_nonneg _) (zero_le_one.trans normal.upper_one)⟩ |
| 555 | |
| 556 | end ReferenceBounds |
| 557 | |
| 558 | /-- The carrier bound is derived for any nonzero integral harmonic, with |
| 559 | one constant before both the label and the copy. -/ |
| 560 | theorem harmonic_frequency_bound (s : StripData X) |
| 561 | (base : Λ → I → LinearWaveBounds.WaveCoefficients X) |
| 562 | (harmonic : Λ → ℕ → ℤ) (hn : ∀ l n, harmonic l n ≠ 0) |
| 563 | (hf : ∀ l i n, (base l i).frequency n = CurlClassBounds.carrierFrequency s n * (harmonic l n : ℝ)) : |
| 564 | UniformPrimaryWeights.UniformBandBound s (1 / 2) |
| 565 | (fun li : Λ × I => fun n => 1 / (base li.1 li.2).frequency n) := by |
| 566 | obtain ⟨C, hC, p, hb⟩ := UniformPrimaryWeights.harmonic_inverse_bandBound s harmonic hn |
| 567 | exact ⟨C, hC, p, fun li n => by dsimp only; rw [hf]; exact hb li.1 n⟩ |
| 568 | |
| 569 | namespace ReferenceBounds |
| 570 | |
| 571 | variable [Countable Λ] [Nonempty Λ] |
| 572 | {V : JetDomain ι D} {U : Domain ι PhaseCalculus.Slow} |
| 573 | {F : Fin 2 → PhaseConstruction U} {pref : Fin 2 → ι → ℝ} |
| 574 | {χ : ι → D → PhaseCalculus.Slow × ℝ} {T : ι → D → Vec2} {mask ζ : ι → D → ℝ} |
| 575 | (h : ReferenceBounds V U F pref χ T mask ζ) |
| 576 | {s : StripData X} {K : Λ → ℕ → I → Set X} |
| 577 | (c : CopyChart s V ζ K) (scale normal clock : PositiveScale Λ) |
| 578 | |
| 579 | /-- Exact functional form of the transported shared-reference signed |
| 580 | constructor, including the target square and the pressure clock factors. -/ |
| 581 | noncomputable def copiedCoefficients |
| 582 | (base : Λ → I → LinearWaveBounds.WaveCoefficients X) |
| 583 | (dirs : Λ → I → LinearWaveBounds.GraphDirections X) |
| 584 | (request : ℕ → X → Vec2) (j : Fin 2) (l : Λ) (i : I) : |
| 585 | LinearWaveBounds.WaveCoefficients X := |
| 586 | SignedWaveUpdate.coefficients (base l i) s (dirs l i) |
| 587 | (fun n => c.pull (pulseMatrix F pref χ) l n i) |
| 588 | (fun n x => scale.value l n ^ 2 • c.pull T l n i x) request |
| 589 | (fun n => c.pull mask l n i) (fun n => c.pull (pulseVector F χ j) l n i) |
| 590 | (fun n x => (normal.value l n * clock.value l n) • c.pull (phaseMotion (F j) χ) l n i x) |
| 591 | (fun n x => clock.value l n • c.pull (phaseAction (F j) χ) l n i x) j |
| 592 | |
| 593 | include h |
| 594 | |
| 595 | /-- The native signed estimates are obtained from the constructed |
| 596 | reference, without accepting a completed native covariance record. -/ |
| 597 | theorem copied_coefficients_jets |
| 598 | (base : Λ → I → LinearWaveBounds.WaveCoefficients X) |
| 599 | (dirs : Λ → I → LinearWaveBounds.GraphDirections X) |
| 600 | (request : ℕ → X → Vec2) {β : ℝ} {W : Λ → ℕ → X → ℝ} |
| 601 | (hzeta : ∀ x ∈ s.domain, 0 < s.zeta x) |
| 602 | (hR : ∀ q, UniformLocalJets s (fun _ _ x => s.zeta x) β K (fun _ n _ x => request n x q)) |
| 603 | (hW : ∀ l n x, x ∈ s.domain → 0 ≤ W l n x) |
| 604 | (j : Fin 2) |
| 605 | (henv : ∀ l n i x, x ∈ s.domain → x ∈ K l n i → |
| 606 | c.pull (pulseEnvelope F χ j) l n i x ≤ W l n x) |
| 607 | (hnormal : ∀ l n i x, x ∈ s.domain → x ∈ K l n i → |
| 608 | (fun y => normal.value l n • c.pull (phaseNormal (F j) χ) l n i y) =ᶠ[𝓝 x] |
| 609 | (base l i).normal s (dirs l i) n) |
| 610 | (hfrequency : UniformPrimaryWeights.UniformBandBound s (1 / 2) |
| 611 | (fun li : Λ × I => fun n => 1 / (base li.1 li.2).frequency n)) : |
| 612 | UniformLocalJets s (fun l n x => Real.sqrt (s.zeta x) * W l n x) (β + 1 / 2) K |
| 613 | (fun l n i => (copiedCoefficients (F := F) (pref := pref) (χ := χ) (T := T) (mask := mask) |
| 614 | c scale normal clock base dirs request j l i).amplitude n) ∧ |
| 615 | UniformLocalJets s (fun l n x => Real.sqrt (s.zeta x) * W l n x) (β + 1) K |
| 616 | (fun l n i => (copiedCoefficients (F := F) (pref := pref) (χ := χ) (T := T) (mask := mask) |
| 617 | c scale normal clock base dirs request j l i).pressure n) := by |
| 618 | have hg := h.copied_geometry_jets c normal clock j |
| 619 | have hN := uniform_local_congr hg.1 hnormal |
| 620 | apply SignedCopyBounds.uniform_coefficients_jets (M := normal.upper * ((F j).M ^ 2 + 3 * (F j).M)) |
| 621 | (h.nativeCovariance c scale hzeta) hR |
| 622 | (c.unweighted h.mask_jets) (h.copied_unit_jets c j hW henv) hW hN hg.2.1 hg.2.2 |
| 623 | (mul_pos normal.lower_pos (F j).b_pos) _ _ hfrequency j |
| 624 | · intro l n i x hx hi |
| 625 | rw [← Filter.EventuallyEq.eq_of_nhds (hnormal l n i x hx hi)] |
| 626 | exact (h.copied_normal_bounds c normal j l n i hx hi).1 |
| 627 | · intro l n i x hx hi |
| 628 | rw [← Filter.EventuallyEq.eq_of_nhds (hnormal l n i x hx hi)] |
| 629 | exact (h.copied_normal_bounds c normal j l n i hx hi).2 |
| 630 | |
| 631 | end ReferenceBounds |
| 632 | |
| 633 | /-! ## The signed request is the measured current-state request -/ |
| 634 | |
| 635 | theorem uniformLocalJets_of_memClass {s : StripData X} {w : ℕ → X → ℝ} {α : ℝ} |
| 636 | {f : ℕ → X → E} (hf : MemClass s w α f) (K : Λ → ℕ → I → Set X) : |
| 637 | UniformLocalJets s (fun _ => w) α K (fun _ n _ => f n) := by |
| 638 | refine ⟨fun _ n _ x hx _ => (hf.smooth n).contDiffAt (s.isOpen_domain.mem_nhds hx), ?_⟩ |
| 639 | intro m |
| 640 | obtain ⟨C, hC, p, hb⟩ := hf.bounds m |
| 641 | exact ⟨C, hC, p, fun _ n _ x hx _ j hj => hb n x hx j hj⟩ |
| 642 | |
| 643 | theorem fullRequest_localJets (s : StripData LocalSignedRequest.Point) |
| 644 | (P : SignedStressPrimitive.Patch) (coord : ℝ) |
| 645 | (ctx : CorrectionState.Context LocalSignedRequest.Point) |
| 646 | (u : CorrectionState.State LocalSignedRequest.Point) {β : ℝ} |
| 647 | (h : ∀ q, MeanClass s β (fun n x => LocalSignedRequest.normalizedRequest s P coord ctx u n x q)) |
| 648 | (K : Λ → ℕ → I → Set (LocalSignedRequest.Point × ℝ)) : |
| 649 | ∀ q, UniformLocalJets (HarmonicWaveInteraction.productStrip s) |
| 650 | (fun _ _ x => s.zeta x.1) β K |
| 651 | (fun _ n _ x => LocalSignedRequest.fullRequest s P coord ctx u n x q) := |
| 652 | fun q => uniformLocalJets_of_memClass (LocalSignedRequest.fullRequest_class s P coord ctx u h q) K |
| 653 | |
| 654 | /-- The actual residuals, their support, and their incoming mean classes |
| 655 | give the complete copy-uniform request estimate. No request jet is assumed. -/ |
| 656 | theorem physical_fullRequest_localJets {coord : ℝ} (U : LocalSignedRequest.SlowRegion coord) |
| 657 | (P : SignedStressPrimitive.Patch) {cL cR : ℝ} (hcL : 0 < cL) (hcR : 0 < cR) |
| 658 | (ε L : ℕ → ℝ) (hε : ∀ n, 0 < ε n) (hεone : ∀ n, ε n ≤ 1) (hL : ∀ n, 1 ≤ L n) |
| 659 | (ctx : CorrectionState.Context LocalSignedRequest.Point) |
| 660 | (u : CorrectionState.State LocalSignedRequest.Point) (α : ℝ) |
| 661 | (hθ : ∀ n, ContDiffOn ℝ ∞ (u.thetaResidual ctx n) (PhysicalMeanDomain.slowDomain U.carrier)) |
| 662 | (hz : ∀ n, ContDiffOn ℝ ∞ (u.axialResidual ctx n) (PhysicalMeanDomain.slowDomain U.carrier)) |
| 663 | (hsθ : ∀ n, LocalSignedRequest.MovingSupport P.a P.b coord U.carrier (u.thetaResidual ctx n)) |
| 664 | (hsz : ∀ n, LocalSignedRequest.MovingSupport P.a P.b coord U.carrier (u.axialResidual ctx n)) |
| 665 | (hcθ : MeanClass (LocalSignedRequest.movingStripData U P.a P.b cL cR P.a_pos hcL hcR |
| 666 | ε L hε hεone hL) α (u.thetaResidual ctx)) |
| 667 | (hcz : MeanClass (LocalSignedRequest.movingStripData U P.a P.b cL cR P.a_pos hcL hcR |
| 668 | ε L hε hεone hL) α (u.axialResidual ctx)) |
| 669 | (K : Λ → ℕ → I → Set (LocalSignedRequest.Point × ℝ)) : |
| 670 | let s := LocalSignedRequest.movingStripData U P.a P.b cL cR P.a_pos hcL hcR ε L hε hεone hL |
| 671 | ∀ q, UniformLocalJets (HarmonicWaveInteraction.productStrip s) |
| 672 | (fun _ _ x => s.zeta x.1) (α - 1) K |
| 673 | (fun _ n _ x => LocalSignedRequest.fullRequest s P coord ctx u n x q) := by |
| 674 | dsimp only |
| 675 | exact fullRequest_localJets _ P coord ctx u |
| 676 | (LocalSignedRequest.normalizedRequest_class U P hcL hcR ε L hε hεone hL ctx u α |
| 677 | hθ hz hsθ hsz hcθ hcz) K |
| 678 | |
| 679 | /-! ## One selected reference family supplies the complete signed input -/ |
| 680 | |
| 681 | section Combined |
| 682 | |
| 683 | variable [Countable Λ] [Nonempty Λ] |
| 684 | {F₀ : OutgoingProfile.Profile} {W₀ : NominalProfile.Witness F₀} |
| 685 | {H₀ : NominalConeAssembly.Certificate W₀} {ld : ModulatedProfileAssembly.LoopData W₀} |
| 686 | {v₀ : ModulatedProfileAssembly.Witness ld} |
| 687 | {upper : ℝ} {B : ℕ} {r0 : ℝ} {N0 : ℕ} |
| 688 | |
| 689 | namespace PreparedChart |
| 690 | |
| 691 | variable {a : PrimaryGeometryAssembly.Prepared H₀ v₀ upper B r0 N0} |
| 692 | (C : PreparedChart H₀ v₀ a D) (hr0 : 0 < r0) (vr vt : TorusInverse.Plane) |
| 693 | {s : StripData X} {K : Λ → ℕ → I → Set X} |
| 694 | (copy : CopyChart s C.native C.weight K) |
| 695 | |
| 696 | noncomputable def copiedMatrix : Λ → I → ℕ → X → Mat2 := |
| 697 | fun l i n => copy.pull (pulseMatrix (PrimaryGeometryAssembly.construction H₀ v₀ a hr0) |
| 698 | (preparedPrefactor r0 vr vt) C.coordinate) l n i |
| 699 | |
| 700 | noncomputable def copiedTarget (scale : PositiveScale Λ) : Λ → I → ℕ → X → Vec2 := |
| 701 | fun l i n x => scale.value l n ^ 2 • copy.pull C.target l n i x |
| 702 | |
| 703 | noncomputable def copiedCoefficients (scale normal clock : PositiveScale Λ) |
| 704 | (base : Λ → I → LinearWaveBounds.WaveCoefficients X) |
| 705 | (dirs : Λ → I → LinearWaveBounds.GraphDirections X) (request : ℕ → X → Vec2) (j : Fin 2) : |
| 706 | Λ → I → LinearWaveBounds.WaveCoefficients X := |
| 707 | ReferenceBounds.copiedCoefficients |
| 708 | (F := PrimaryGeometryAssembly.construction H₀ v₀ a hr0) |
| 709 | (pref := preparedPrefactor r0 vr vt) (χ := C.coordinate) (T := C.target) (mask := C.mask) |
| 710 | copy scale normal clock base dirs request j |
| 711 | |
| 712 | end PreparedChart |
| 713 | |
| 714 | /-- Starting with an already selected prepared primary, a common tail |
| 715 | restriction gives actual uniform native covariance, request-driven signed |
| 716 | amplitude/pressure bounds, and the actual cutoff jets. No finished control |
| 717 | record, target jet, fundamental jet, or copied request jet is an input. -/ |
| 718 | theorem exists_actual_signed_control |
| 719 | (a : PrimaryGeometryAssembly.Prepared H₀ v₀ upper B r0 N0) |
| 720 | (hcone : LeadingStressWeights.FullTrueCone v₀) (hr0 : 0 < r0) |
| 721 | (vr vt : TorusInverse.Plane) (hdet : vr.1 * vt.2 - vr.2 * vt.1 ≠ 0) : |
| 722 | ∃ N : ℕ, ∃ hN : a.N ≤ N, |
| 723 | ∀ (C : PreparedChart H₀ v₀ (a.restrict N hN) D) |
| 724 | (s : StripData LocalSignedRequest.Point) |
| 725 | (K : Λ → ℕ → I → Set (LocalSignedRequest.Point × ℝ)) |
| 726 | (copy : CopyChart (HarmonicWaveInteraction.productStrip s) C.native C.weight K) |
| 727 | (scale normal clock : PositiveScale Λ) |
| 728 | (base : Λ → I → LinearWaveBounds.WaveCoefficients (LocalSignedRequest.Point × ℝ)) |
| 729 | (dirs : Λ → I → LinearWaveBounds.GraphDirections (LocalSignedRequest.Point × ℝ)) |
| 730 | (P : SignedStressPrimitive.Patch) (coord : ℝ) |
| 731 | (ctx : CorrectionState.Context LocalSignedRequest.Point) |
| 732 | (u : CorrectionState.State LocalSignedRequest.Point) (β : ℝ) |
| 733 | (W : Λ → ℕ → LocalSignedRequest.Point × ℝ → ℝ) |
| 734 | (j : Fin 2), |
| 735 | (∀ x ∈ s.domain, 0 < s.zeta x) → |
| 736 | (∀ q, MeanClass s β (fun n x => LocalSignedRequest.normalizedRequest s P coord ctx u n x q)) → |
| 737 | (∀ l n x, x ∈ (HarmonicWaveInteraction.productStrip s).domain → 0 ≤ W l n x) → |
| 738 | (∀ l n i x, x ∈ (HarmonicWaveInteraction.productStrip s).domain → x ∈ K l n i → |
| 739 | copy.pull (pulseEnvelope (PrimaryGeometryAssembly.construction H₀ v₀ (a.restrict N hN) hr0) |
| 740 | C.coordinate j) l n i x ≤ W l n x) → |
| 741 | (∀ l n i x, x ∈ (HarmonicWaveInteraction.productStrip s).domain → x ∈ K l n i → |
| 742 | (fun y => normal.value l n • copy.pull |
| 743 | (phaseNormal (PrimaryGeometryAssembly.construction H₀ v₀ (a.restrict N hN) hr0 j) C.coordinate) |
| 744 | l n i y) =ᶠ[𝓝 x] (base l i).normal (HarmonicWaveInteraction.productStrip s) (dirs l i) n) → |
| 745 | UniformPrimaryWeights.UniformBandBound (HarmonicWaveInteraction.productStrip s) (1 / 2) |
| 746 | (fun li : Λ × I => fun n => 1 / (base li.1 li.2).frequency n) → |
| 747 | Nonempty (SignedCopyBounds.UniformNativeCovariance (HarmonicWaveInteraction.productStrip s) K |
| 748 | (C.copiedMatrix hr0 vr vt copy) (C.copiedTarget copy scale)) ∧ |
| 749 | UniformLocalJets (HarmonicWaveInteraction.productStrip s) |
| 750 | (fun l n x => Real.sqrt (s.zeta x.1) * W l n x) (β + 1 / 2) K |
| 751 | (fun l n i => (C.copiedCoefficients hr0 vr vt copy scale normal clock base dirs |
| 752 | (LocalSignedRequest.fullRequest s P coord ctx u) j l i).amplitude n) ∧ |
| 753 | UniformLocalJets (HarmonicWaveInteraction.productStrip s) |
| 754 | (fun l n x => Real.sqrt (s.zeta x.1) * W l n x) (β + 1) K |
| 755 | (fun l n i => (C.copiedCoefficients hr0 vr vt copy scale normal clock base dirs |
| 756 | (LocalSignedRequest.fullRequest s P coord ctx u) j l i).pressure n) ∧ |
| 757 | UniformLocalJets (HarmonicWaveInteraction.productStrip s) (fun _ _ _ => 1) 0 K |
| 758 | (copy.pull (fun L x => GaussianTailFlat.profile (C.coordinate L x).2)) := by |
| 759 | obtain ⟨N, hN, hc⟩ := exists_referenceBounds (D := D) H₀ v₀ a hcone hr0 vr vt hdet |
| 760 | refine ⟨N, hN, ?_⟩ |
| 761 | intro C s K copy scale normal clock base dirs P coord ctx u β W j hzeta hrequest hW henv hnormal hfrequency |
| 762 | obtain ⟨hr⟩ := hc C |
| 763 | have hζ : ∀ x ∈ (HarmonicWaveInteraction.productStrip s).domain, |
| 764 | 0 < (HarmonicWaveInteraction.productStrip s).zeta x := fun x hx => hzeta x.1 hx |
| 765 | have hb := hr.copied_coefficients_jets copy scale normal clock base dirs |
| 766 | (LocalSignedRequest.fullRequest s P coord ctx u) hζ |
| 767 | (fullRequest_localJets s P coord ctx u hrequest K) hW j henv hnormal hfrequency |
| 768 | exact ⟨⟨hr.nativeCovariance copy scale hζ⟩, hb.1, hb.2, copy.unweighted hr.cutoff_jets⟩ |
| 769 | |
| 770 | end Combined |
| 771 | |
| 772 | end NavierStokes.ActualSignedControl |