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.ActualSignedStageControls |
| 2 | import NavierStokes.ActualPrimaryCovariance |
| 3 | import NavierStokes.ActualInitialization |
| 4 | import NavierStokes.BandReindexedSignedMeanGain |
| 5 | import NavierStokes.SignedCrossDefectClass |
| 6 | import NavierStokes.ActualCycleParameters |
| 7 | |
| 8 | /-! |
| 9 | # The actual signed mean cross and its physical scale |
| 10 | |
| 11 | The fixed comparison primary is the actual tangent block, and every signed |
| 12 | coefficient uses the same selected matrix, pulse and once-applied cutoff. |
| 13 | The physical partition scale is `Q n * q_normalized`; finite low bands retain |
| 14 | their partition factor. |
| 15 | -/ |
| 16 | |
| 17 | noncomputable section |
| 18 | |
| 19 | namespace NavierStokes.ActualSignedMeanBinding |
| 20 | |
| 21 | open Set Function Filter |
| 22 | open scoped ContDiff Topology BigOperators |
| 23 | open CorrectionInitialization.ActualPrimary ActualPrimaryCovariance |
| 24 | |
| 25 | abbrev Point := LocalSignedRequest.Point |
| 26 | abbrev FullPoint := Point × ℝ |
| 27 | abbrev Vec2 := SignedWaveUpdate.Vec2 |
| 28 | abbrev Mat2 := SignedWaveUpdate.Mat2 |
| 29 | abbrev Space := ProblemStatement.Space |
| 30 | abbrev Frequency := TorusInverse.Frequency |
| 31 | |
| 32 | /-! ## The legacy normalized-tail input cannot describe this chart -/ |
| 33 | |
| 34 | theorem Q_le_half {n : ℕ} (hn : 1 ≤ n) : ChartScales.Q n ≤ 1 / 2 := by |
| 35 | calc |
| 36 | ChartScales.Q n ≤ (2 : ℝ) ^ (-1 : ℝ) := |
| 37 | Real.rpow_le_rpow_of_exponent_le (by norm_num) |
| 38 | (neg_le_neg (by exact_mod_cast hn : (1 : ℝ) ≤ n)) |
| 39 | _ = 1 / 2 := by norm_num |
| 40 | |
| 41 | theorem legacy_nativeData_excludes_strip (B : SignedMeanGain.NativeData ActualInitialization.geometry) |
| 42 | {x : Point} (hx : x ∈ ActualInitialization.geometry.strip.domain) : False := by |
| 43 | have hs := ActualInitialization.geometry.strip_subset hx |
| 44 | have hlarge : (1 / 2 : ℝ) < SimilarityCoordinates.coordinateQ (2 * h) x.2.1 := hs.2.1 |
| 45 | have hsmall := (B.tail_bound 0 x hx).trans (Q_le_half (B.index_pos 0)) |
| 46 | exact (not_lt_of_ge hsmall) hlarge |
| 47 | |
| 48 | theorem normalized_axis_scale : SimilarityCoordinates.coordinateQ (2 * h) (1, 0) = 1 := by |
| 49 | symm |
| 50 | exact SimilarityCoordinates.eq_coordinateQ (by linarith [outgoing.data.h_pos]) |
| 51 | (by linarith [outgoing.data.h_lt_half]) (by norm_num) (by norm_num) |
| 52 | (by simp [SimilarityCoordinates.forwardScalar]) |
| 53 | |
| 54 | theorem actual_strip_nonempty : ActualInitialization.geometry.strip.domain.Nonempty := by |
| 55 | let G := ActualInitialization.geometry |
| 56 | refine ⟨((G.patch.a + G.patch.b) / 2, ((1, 0), (0, 0))), ?_⟩ |
| 57 | apply (LocalSignedRequest.movingStrip_domain G.region G.patch.a G.patch.b |
| 58 | G.leftWeight G.rightWeight G.patch.a_pos G.left_pos G.right_pos |
| 59 | G.epsilon G.slow G.epsilon_pos G.epsilon_le_one G.slow_ge_one _).mpr |
| 60 | constructor |
| 61 | · change 0 < (1 : ℝ) ∧ SimilarityCoordinates.coordinateQ (2 * h) (1, 0) ∈ Ioo (1 / 2 : ℝ) 2 |
| 62 | rw [normalized_axis_scale] |
| 63 | norm_num |
| 64 | · change ((G.patch.a + G.patch.b) / 2) / |
| 65 | Real.sqrt (SimilarityCoordinates.coordinateQ (2 * h) (1, 0)) ∈ Ioo G.patch.a G.patch.b |
| 66 | rw [normalized_axis_scale, Real.sqrt_one, div_one] |
| 67 | constructor <;> linarith [G.patch.a_lt_b] |
| 68 | |
| 69 | theorem no_legacy_nativeData : IsEmpty (SignedMeanGain.NativeData ActualInitialization.geometry) := by |
| 70 | obtain ⟨x, hx⟩ := actual_strip_nonempty |
| 71 | exact ⟨fun B => legacy_nativeData_excludes_strip B hx⟩ |
| 72 | |
| 73 | /-! ## Shared matrix, scaled target and ratio of the signed coefficients -/ |
| 74 | |
| 75 | variable {B N0 : ℕ} |
| 76 | |
| 77 | noncomputable def velocityScale (L : Label B N0) (n : ℕ) : ℝ := |
| 78 | PhysicalParticularWave.velocityWeight h (ChartScales.Q n) (ChartScales.Q (BaseChartJets.cellBand L)) |
| 79 | |
| 80 | noncomputable def commonMatrix (L : Label B N0) (n : ℕ) (x : Point) : Mat2 := |
| 81 | covariance B N0 L (nativePoint n x L) |
| 82 | |
| 83 | noncomputable def referenceTarget (L : Label B N0) (n : ℕ) (x : Point) : Vec2 := |
| 84 | fun i => PrimaryTargetBounds.actualTarget modulation (nativePoint n x L) i |
| 85 | |
| 86 | noncomputable def commonTarget (L : Label B N0) (n : ℕ) (x : Point) : Vec2 := |
| 87 | (ActualSignedStageControls.coefficientScale (L, (0 : Fin 2)) n) ^ 2 • referenceTarget L n x |
| 88 | |
| 89 | noncomputable def signedRatio (request : ℕ → FullPoint → Vec2) (L : Label B N0) |
| 90 | (n : ℕ) (x : Point) (j : Fin 2) : ℝ := |
| 91 | SignedCovariance.increment (commonMatrix L n x) (commonTarget L n x) (request n (x, 0)) j / |
| 92 | SmoothCovariance.amplitudes (commonMatrix L n x) (commonTarget L n x) j |
| 93 | |
| 94 | theorem velocityScale_pos (L : Label B N0) (n : ℕ) : 0 < velocityScale L n := |
| 95 | PhysicalParticularWave.ratioPower_pos (ChartScales.Q_pos n) (ChartScales.Q_pos _) _ |
| 96 | |
| 97 | theorem velocityScale_eq (L : Label B N0) (n : ℕ) : |
| 98 | velocityScale L n = ChartScales.Q n ^ CoordinateAlgebra.A h * |
| 99 | ChartScales.Q (BaseChartJets.cellBand L) ^ (-CoordinateAlgebra.A h) := by |
| 100 | simp only [velocityScale, PhysicalParticularWave.velocityWeight, PhysicalParticularWave.ratioPower, |
| 101 | Real.rpow_neg (ChartScales.Q_pos _).le, div_eq_mul_inv] |
| 102 | |
| 103 | theorem commonMatrix_eq (L : Label B N0) (n : ℕ) (x : Point) (j : Fin 2) (k : Frequency) : |
| 104 | ActualSignedStageControls.matrix (L, j) k n (x, 0) = commonMatrix L n x := rfl |
| 105 | |
| 106 | theorem commonTarget_eq (L : Label B N0) (n : ℕ) (x : Point) (j : Fin 2) (k : Frequency) : |
| 107 | ActualSignedStageControls.target (L, j) k n (x, 0) = commonTarget L n x := rfl |
| 108 | |
| 109 | theorem commonTarget_cone (L : Label B N0) (n : ℕ) {x : Point} |
| 110 | (hx : x ∈ ActualInitialization.geometry.strip.domain) |
| 111 | (hm : spatialMask L (nativePoint n x L) ≠ 0) : |
| 112 | SmoothCovariance.StrictCone (commonMatrix L n x) (commonTarget L n x) := by |
| 113 | have hT := BaseContextAssembly.nativeStrip_time nominal standardRegion hx |
| 114 | have hp := spatialMask_carrier L (nativePoint_time n hT L) hm |
| 115 | have hbase := sourcePair_strictCone L (nativePoint n x L) hp |
| 116 | (nativePoint_reference n hx L hm) (nativePoint_weight_pos n hx L) |
| 117 | rw [← PrimaryFieldAssembly.SourcePair.sourceMatrix_eq, sourcePair_matrix] at hbase |
| 118 | apply (SmoothCovariance.weights_pos_iff _ _).mp |
| 119 | intro i |
| 120 | rw [commonTarget, PhysicalSignedWave.weights_smul_target] |
| 121 | exact mul_pos (sq_pos_of_pos (ActualSignedStageControls.coefficientScale_pos (L, 0) n)) |
| 122 | (hbase.weights_pos i) |
| 123 | |
| 124 | theorem primary_scalar_common (L : Label B N0) (n : ℕ) (x : Point) (m : ℝ) (j : Fin 2) : |
| 125 | PartitionedCovariance.amplitude (ChartScales.epsilon h n) m |
| 126 | (commonMatrix L n x) (commonTarget L n x) j = |
| 127 | velocityScale L n * PartitionedCovariance.amplitude |
| 128 | (ChartScales.epsilon h (BaseChartJets.cellBand L)) m |
| 129 | (commonMatrix L n x) (referenceTarget L n x) j := |
| 130 | PhysicalSignedWave.primary_scalar_scale _ _ m (ChartScales.epsilon_pos h n) |
| 131 | (ChartScales.epsilon_pos h _) (velocityScale_pos L n) j |
| 132 | |
| 133 | theorem signed_scalar_ratio (request : ℕ → FullPoint → Vec2) (L : Label B N0) (n : ℕ) |
| 134 | {x : Point} (hx : x ∈ ActualInitialization.geometry.strip.domain) (j : Fin 2) : |
| 135 | Real.sqrt (ChartScales.epsilon h n) * |
| 136 | SignedCovariance.increment (commonMatrix L n x) (commonTarget L n x) (request n (x, 0)) j * |
| 137 | spatialMask L (nativePoint n x L) = |
| 138 | signedRatio request L n x j * velocityScale L n * |
| 139 | PartitionedCovariance.amplitude (ChartScales.epsilon h (BaseChartJets.cellBand L)) |
| 140 | (spatialMask L (nativePoint n x L)) (commonMatrix L n x) (referenceTarget L n x) j := by |
| 141 | by_cases hm : spatialMask L (nativePoint n x L) = 0 |
| 142 | · simp [hm, PartitionedCovariance.amplitude] |
| 143 | have ha := (commonTarget_cone L n hx hm).amplitudes_pos j |
| 144 | rw [mul_assoc (signedRatio request L n x j), ← primary_scalar_common] |
| 145 | unfold signedRatio PartitionedCovariance.amplitude |
| 146 | field_simp |
| 147 | |
| 148 | /-! ## The actual once-cutoff coefficients -/ |
| 149 | |
| 150 | theorem localized_amplitude_ratio (request : ℕ → FullPoint → Vec2) (L : Label B N0) |
| 151 | (n : ℕ) {x : Point} (hx : x ∈ ActualInitialization.geometry.strip.domain) |
| 152 | (j : Fin 2) (k : Frequency) : |
| 153 | (((ActualSignedStageControls.parameters (L, j)).copyData ActualInitialization.geometry.strip request).localized k).amplitude |
| 154 | n (x, 0) = |
| 155 | signedRatio request L n x j • (velocityScale L n • |
| 156 | CurlClassBounds.complexify (cutVelocity j L |
| 157 | (nativePoint n x L, (geometry j L).coordinates k (toAbsolute n x).2))) := by |
| 158 | have hr := signed_scalar_ratio request L n hx j |
| 159 | change (ActualSignedStageControls.cutoff (L, j) k n (x, 0)) • |
| 160 | CurlClassBounds.complexify |
| 161 | ((Real.sqrt (ChartScales.epsilon h n) * |
| 162 | SignedCovariance.increment (commonMatrix L n x) (commonTarget L n x) (request n (x, 0)) j * |
| 163 | spatialMask L (nativePoint n x L)) • |
| 164 | ActualSignedStageControls.fundamental (L, j) k n (x, 0)) = _ |
| 165 | rw [hr] |
| 166 | simp only [ActualSignedStageControls.cutoff, ActualSignedStageControls.fundamental, |
| 167 | ActualSignedStageControls.nativePoint, cutVelocity, rawVelocity, PartitionedCovariance.amplitude, |
| 168 | map_smul, smul_smul] |
| 169 | congr 1 |
| 170 | simp only [commonMatrix, nativePoint] |
| 171 | rw [show referenceTarget L n x = (fun i => PrimaryTargetBounds.actualTarget modulation |
| 172 | (nativeSlow L (toAbsolute n x)) i) from rfl] |
| 173 | ring |
| 174 | |
| 175 | theorem signed_common_amplitude_ratio (request : ℕ → FullPoint → Vec2) (L : Label B N0) |
| 176 | (n : ℕ) {x : Point} (hx : x ∈ ActualInitialization.geometry.strip.domain) (j : Fin 2) : |
| 177 | ((ActualSignedStageControls.parameters (L, j)).copyData ActualInitialization.geometry.strip request).common.amplitude |
| 178 | n (x, 0) = signedRatio request L n x j • cutAmplitude j L n (x, 0) := by |
| 179 | rw [cutAmplitude_eq_common j L n hx 0, ← velocityScale_eq] |
| 180 | change (∑' k : Frequency, |
| 181 | (((ActualSignedStageControls.parameters (L, j)).copyData ActualInitialization.geometry.strip request).localized k).amplitude |
| 182 | n (x, 0)) = _ |
| 183 | unfold commonAmplitude |
| 184 | rw [← tsum_const_smul'', ← tsum_const_smul''] |
| 185 | exact tsum_congr (fun k => localized_amplitude_ratio request L n hx j k) |
| 186 | |
| 187 | theorem primaryBlock_eq_model (L : Label B N0) (j : Fin 2) : |
| 188 | ActualInitialization.tangentBlock (L, j) = SignedWaveUpdate.blockOfCoefficients |
| 189 | ((chartCoefficients j L).withCutoff (chartCutoff j L)) |
| 190 | (fun _ => PrimaryGeometryAssembly.angularMode certificate modulation (choice B N0).prepared j L) := rfl |
| 191 | |
| 192 | theorem primary_tangent_band (l : Label B N0 × Fin 2) : |
| 193 | (ActualInitialization.tangentBlock l).BandLimited 1 := |
| 194 | CorrectionInitialization.PrimaryHarmonics.block_band _ _ _ |
| 195 | |
| 196 | theorem actual_sameCarrier (request : ℕ → FullPoint → Vec2) (L : Label B N0) (j : Fin 2) : |
| 197 | LabelSumBounds.SameCarrier (ActualInitialization.tangentBlock (L, j)) |
| 198 | ((ActualSignedStageControls.parameters (L, j)).tangentBlock ActualInitialization.geometry.strip request) := |
| 199 | ⟨rfl, rfl, rfl⟩ |
| 200 | |
| 201 | theorem signed_tangent_ratio (request : ℕ → FullPoint → Vec2) (L : Label B N0) |
| 202 | (n : ℕ) {x : Point} (hx : x ∈ ActualInitialization.geometry.strip.domain) |
| 203 | (j : Fin 2) (theta : ℝ) (i : Fin 3) : |
| 204 | ((ActualSignedStageControls.parameters (L, j)).tangentBlock ActualInitialization.geometry.strip request).oscillation |
| 205 | n (x, theta) i = signedRatio request L n x j * |
| 206 | (ActualInitialization.tangentBlock (L, j)).oscillation n (x, theta) i := by |
| 207 | rw [primaryBlock_eq_model] |
| 208 | unfold CorrectionStep.PeriodizedSignedParameters.tangentBlock SignedWaveUpdate.blockOfCoefficients |
| 209 | rw [SignedWaveUpdate.coefficientBlock_velocity, SignedWaveUpdate.coefficientBlock_velocity, |
| 210 | signed_common_amplitude_ratio request L n hx j] |
| 211 | simp only [PeriodizedWaveBounds.CopyData.common, CorrectionStep.PeriodizedSignedParameters.copyData, |
| 212 | ActualSignedStageControls.parameters, LinearWaveBounds.WaveCoefficients.withCutoff, |
| 213 | cutAmplitude, Pi.smul_apply, Complex.real_smul, |
| 214 | ← mul_assoc, Complex.mul_re, Complex.mul_im, Complex.ofReal_re, Complex.ofReal_im, |
| 215 | zero_mul, mul_zero, add_zero, sub_zero] |
| 216 | ring |
| 217 | |
| 218 | theorem signedRatio_fiber (c : CorrectionState.Context Point) (u : CorrectionState.State Point) |
| 219 | (L : Label B N0) (n : ℕ) (x : Point) (Y : TorusInverse.Plane) (j : Fin 2) : |
| 220 | signedRatio (LocalSignedRequest.fullRequest ActualInitialization.geometry.strip |
| 221 | ActualInitialization.geometry.patch ActualInitialization.geometry.coord c u) |
| 222 | L n (x.1, (x.2.1, Y)) j = |
| 223 | signedRatio (LocalSignedRequest.fullRequest ActualInitialization.geometry.strip |
| 224 | ActualInitialization.geometry.patch ActualInitialization.geometry.coord c u) L n x j := rfl |
| 225 | |
| 226 | /-! ## Individual primary modes at the actual common cover -/ |
| 227 | |
| 228 | theorem primary_mode_view (n : ℕ) {x : Point} |
| 229 | (hx : x ∈ ActualInitialization.geometry.strip.domain) |
| 230 | (l : Label B N0 × Fin 2) (Y : TorusInverse.Plane) (theta : ℝ) (i : Fin 3) : |
| 231 | (ActualInitialization.tangentBlock l).oscillation n ((x.1, (x.2.1, Y)), theta) i = |
| 232 | ChartScales.Q n ^ CoordinateAlgebra.A h * viewTangent n x l Y theta i := by |
| 233 | rw [ActualInitialization.tangentBlock_represents] |
| 234 | have hr := ((BaseContextAssembly.nativeStrip_mem nominal standardRegion x).mp hx).2 |
| 235 | have hT := BaseContextAssembly.nativeStrip_time nominal standardRegion hx |
| 236 | have hR := BaseContextAssembly.nativeStrip_radius nominal standardRegion hx |
| 237 | have hrad : PrimaryTargetBounds.profileRadius h (nativePoint n x l.1) ∈ |
| 238 | Ioo (PrimaryTargetBounds.leftRadius nominal) (PrimaryTargetBounds.rightRadius nominal) := by |
| 239 | rwa [nativePoint_profileRadius n hT hR] |
| 240 | unfold ActualInitialization.primaryPiece |
| 241 | rw [piece_tangent_representation, |
| 242 | absoluteTangent_eq l.2 l.1 (toAbsolute n (x.1, (x.2.1, Y)), theta) hrad] |
| 243 | rfl |
| 244 | |
| 245 | theorem primary_cross_zero (n : ℕ) {x : Point} |
| 246 | (hx : x ∈ ActualInitialization.geometry.strip.domain) |
| 247 | {l m : Label B N0 × Fin 2} (hlm : l ≠ m) |
| 248 | (Y : TorusInverse.Plane) (theta : ℝ) (i : Fin 2) : |
| 249 | (ActualInitialization.tangentBlock l).oscillation n ((x.1, (x.2.1, Y)), theta) 0 * |
| 250 | (ActualInitialization.tangentBlock m).oscillation n ((x.1, (x.2.1, Y)), theta) i.succ = 0 := by |
| 251 | rw [primary_mode_view n hx, primary_mode_view n hx] |
| 252 | have hz := viewTangent_cross_zero n hx hlm Y theta i |
| 253 | calc |
| 254 | _ = (ChartScales.Q n ^ CoordinateAlgebra.A h) ^ 2 * |
| 255 | (viewTangent n x l Y theta 0 * viewTangent n x m Y theta i.succ) := by ring |
| 256 | _ = 0 := by rw [hz, mul_zero] |
| 257 | |
| 258 | theorem primary_diagonal_continuous (n : ℕ) {x : Point} |
| 259 | (hx : x ∈ ActualInitialization.geometry.strip.domain) |
| 260 | (l : Label B N0 × Fin 2) (hl : l ∈ activeLabels standardRegion B N0 n) (i : Fin 2) : |
| 261 | (∀ Y, Continuous (fun theta => |
| 262 | (ActualInitialization.tangentBlock l).oscillation n ((x.1, (x.2.1, Y)), theta) 0 * |
| 263 | (ActualInitialization.tangentBlock l).oscillation n ((x.1, (x.2.1, Y)), theta) i.succ)) ∧ |
| 264 | Continuous (fun Y => SmoothLoop.angularMean (fun theta => |
| 265 | (ActualInitialization.tangentBlock l).oscillation n ((x.1, (x.2.1, Y)), theta) 0 * |
| 266 | (ActualInitialization.tangentBlock l).oscillation n ((x.1, (x.2.1, Y)), theta) i.succ)) := by |
| 267 | have hc := viewTangent_diagonal_continuous n hx l hl i |
| 268 | have he (Y : TorusInverse.Plane) (theta : ℝ) : |
| 269 | (ActualInitialization.tangentBlock l).oscillation n ((x.1, (x.2.1, Y)), theta) 0 * |
| 270 | (ActualInitialization.tangentBlock l).oscillation n ((x.1, (x.2.1, Y)), theta) i.succ = |
| 271 | (ChartScales.Q n ^ CoordinateAlgebra.A h) ^ 2 * |
| 272 | (viewTangent n x l Y theta 0 * viewTangent n x l Y theta i.succ) := by |
| 273 | rw [primary_mode_view n hx, primary_mode_view n hx] |
| 274 | ring |
| 275 | simp_rw [he] |
| 276 | constructor |
| 277 | · intro Y |
| 278 | exact continuous_const.mul (hc.1 Y) |
| 279 | · simp_rw [SmoothLoop.angularMean_const_mul] |
| 280 | exact continuous_const.mul hc.2 |
| 281 | |
| 282 | theorem primary_diagonal_average (n : ℕ) {x : Point} |
| 283 | (hx : x ∈ ActualInitialization.geometry.strip.domain) |
| 284 | (L : Label B N0) (hL : L ∈ unsignedLabels B N0 n) (j i : Fin 2) : |
| 285 | PartitionedCovariance.doubleAverage (fun Y theta => |
| 286 | (ActualInitialization.tangentBlock (L, j)).oscillation n ((x.1, (x.2.1, Y)), theta) 0 * |
| 287 | (ActualInitialization.tangentBlock (L, j)).oscillation n ((x.1, (x.2.1, Y)), theta) i.succ) = |
| 288 | (PartitionedCovariance.amplitude (ChartScales.epsilon h n) |
| 289 | (spatialMask L (nativePoint n x L)) (commonMatrix L n x) (commonTarget L n x) j) ^ 2 * |
| 290 | commonMatrix L n x i j := by |
| 291 | by_cases hm : spatialMask L (nativePoint n x L) = 0 |
| 292 | · simp only [primary_mode_view n hx, viewTangent, physicalTangentMode_zero_of_mask j L _ hm, |
| 293 | Pi.zero_apply, mul_zero, PartitionedCovariance.doubleAverage, SmoothLoop.angularMean, |
| 294 | TorusAverages.squareAverage, intervalIntegral.integral_zero, zero_div, |
| 295 | PartitionedCovariance.amplitude, hm, zero_pow (by decide : (2 : ℕ) ≠ 0), zero_mul] |
| 296 | have hT := BaseContextAssembly.nativeStrip_time nominal standardRegion hx |
| 297 | have hp := spatialMask_carrier L (nativePoint_time n hT L) hm |
| 298 | let P := (sourcePair L (nativePoint n x L) hp).pairData |
| 299 | have hmat : P.matrix = commonMatrix L n x := by |
| 300 | rw [← PrimaryFieldAssembly.SourcePair.sourceMatrix_eq, sourcePair_matrix] |
| 301 | rfl |
| 302 | have he (Y : TorusInverse.Plane) (theta : ℝ) : |
| 303 | (ActualInitialization.tangentBlock (L, j)).oscillation n ((x.1, (x.2.1, Y)), theta) 0 * |
| 304 | (ActualInitialization.tangentBlock (L, j)).oscillation n ((x.1, (x.2.1, Y)), theta) i.succ = |
| 305 | (ChartScales.Q n ^ CoordinateAlgebra.A h) ^ 2 * |
| 306 | (viewTangent n x (L, j) Y theta 0 * viewTangent n x (L, j) Y theta i.succ) := by |
| 307 | rw [primary_mode_view n hx, primary_mode_view n hx] |
| 308 | ring |
| 309 | simp_rw [he] |
| 310 | rw [PartitionedCovariance.doubleAverage_const_mul] |
| 311 | simp only [viewTangent, physicalTangentMode_eq_slot j L _ hp] |
| 312 | rw [pair_diagonal_common P vectors_det (active_cover_le n hL), hmat] |
| 313 | rw [primary_scalar_common, velocityScale_eq] |
| 314 | change _ = (_ * PartitionedCovariance.amplitude _ _ _ _ j) ^ 2 * _ |
| 315 | simp only [PartitionedCovariance.amplitude, commonMatrix, spatialMask] |
| 316 | rw [show referenceTarget L n x = (fun i => PrimaryTargetBounds.actualTarget modulation |
| 317 | (nativePoint n x L) i) from rfl] |
| 318 | ring |
| 319 | |
| 320 | /-! ## The literal requested field and its finite covariance sum -/ |
| 321 | |
| 322 | noncomputable def actualRequest (c : CorrectionState.Context Point) |
| 323 | (u : CorrectionState.State Point) : ℕ → FullPoint → Vec2 := |
| 324 | LocalSignedRequest.fullRequest ActualInitialization.geometry.strip |
| 325 | ActualInitialization.geometry.patch ActualInitialization.geometry.coord c u |
| 326 | |
| 327 | noncomputable def actualSignedBlock (c : CorrectionState.Context Point) |
| 328 | (u : CorrectionState.State Point) (l : Label B N0 × Fin 2) := |
| 329 | (ActualSignedStageControls.parameters l).tangentBlock ActualInitialization.geometry.strip |
| 330 | (actualRequest c u) |
| 331 | |
| 332 | noncomputable def actualPrimaryField (B N0 : ℕ) : CorrectionState.Oscillation Point := |
| 333 | LabelSumBounds.fieldSum (activeLabels standardRegion B N0) |
| 334 | (fun l => (ActualInitialization.tangentBlock l).oscillation) |
| 335 | |
| 336 | noncomputable def actualSignedField (B N0 : ℕ) (c : CorrectionState.Context Point) |
| 337 | (u : CorrectionState.State Point) : CorrectionState.Oscillation Point := |
| 338 | LabelSumBounds.fieldSum (activeLabels standardRegion B N0) |
| 339 | (fun l => (actualSignedBlock c u l).oscillation) |
| 340 | |
| 341 | noncomputable def actualCross (B N0 : ℕ) (c : CorrectionState.Context Point) |
| 342 | (u : CorrectionState.State Point) : LabelSumBounds.Tensor Point := |
| 343 | LabelSumBounds.symmetricCovariance (actualPrimaryField B N0) (actualSignedField B N0 c u) |
| 344 | |
| 345 | theorem actualSignedBlock_fiber (c : CorrectionState.Context Point) |
| 346 | (u : CorrectionState.State Point) (l : Label B N0 × Fin 2) |
| 347 | (n : ℕ) {x : Point} (hx : x ∈ ActualInitialization.geometry.strip.domain) |
| 348 | (Y : TorusInverse.Plane) (theta : ℝ) (i : Fin 3) : |
| 349 | (actualSignedBlock c u l).oscillation n ((x.1, (x.2.1, Y)), theta) i = |
| 350 | signedRatio (actualRequest c u) l.1 n x l.2 * |
| 351 | (ActualInitialization.tangentBlock l).oscillation n ((x.1, (x.2.1, Y)), theta) i := by |
| 352 | rw [actualSignedBlock, signed_tangent_ratio (actualRequest c u) l.1 n |
| 353 | (SignedMeanGain.Geometry.strip_fiber ActualInitialization.geometry hx Y)] |
| 354 | rfl |
| 355 | |
| 356 | theorem actual_cross_diagonal (c : CorrectionState.Context Point) |
| 357 | (u : CorrectionState.State Point) (n : ℕ) {x : Point} |
| 358 | (hx : x ∈ ActualInitialization.geometry.strip.domain) |
| 359 | (Y : TorusInverse.Plane) (theta : ℝ) (i : Fin 2) : |
| 360 | actualPrimaryField B N0 n ((x.1, (x.2.1, Y)), theta) 0 * |
| 361 | actualSignedField B N0 c u n ((x.1, (x.2.1, Y)), theta) i.succ + |
| 362 | actualSignedField B N0 c u n ((x.1, (x.2.1, Y)), theta) 0 * |
| 363 | actualPrimaryField B N0 n ((x.1, (x.2.1, Y)), theta) i.succ = |
| 364 | ∑ l ∈ activeLabels standardRegion B N0 n, |
| 365 | (2 * signedRatio (actualRequest c u) l.1 n x l.2) * |
| 366 | ((ActualInitialization.tangentBlock l).oscillation n ((x.1, (x.2.1, Y)), theta) 0 * |
| 367 | (ActualInitialization.tangentBlock l).oscillation n ((x.1, (x.2.1, Y)), theta) i.succ) := by |
| 368 | classical |
| 369 | simp only [actualPrimaryField, actualSignedField, LabelSumBounds.fieldSum, |
| 370 | actualSignedBlock_fiber c u _ n hx] |
| 371 | rw [PartitionedCovariance.sum_product_diagonal, |
| 372 | PartitionedCovariance.sum_product_diagonal, ← Finset.sum_add_distrib] |
| 373 | · apply Finset.sum_congr rfl |
| 374 | intro l hl |
| 375 | ring |
| 376 | · intro l hl m hm hlm |
| 377 | rw [mul_assoc, primary_cross_zero n hx hlm, mul_zero] |
| 378 | · intro l hl m hm hlm |
| 379 | rw [mul_left_comm, primary_cross_zero n hx hlm, mul_zero] |
| 380 | |
| 381 | theorem actual_cross_average_sum (c : CorrectionState.Context Point) |
| 382 | (u : CorrectionState.State Point) (n : ℕ) {x : Point} |
| 383 | (hx : x ∈ ActualInitialization.geometry.strip.domain) (i : Fin 2) : |
| 384 | StateMomentBalances.meanBar (actualCross B N0 c u 0 i.succ) n x = |
| 385 | ∑ l ∈ activeLabels standardRegion B N0 n, |
| 386 | (2 * signedRatio (actualRequest c u) l.1 n x l.2) * |
| 387 | ((PartitionedCovariance.amplitude (ChartScales.epsilon h n) |
| 388 | (spatialMask l.1 (nativePoint n x l.1)) |
| 389 | (commonMatrix l.1 n x) (commonTarget l.1 n x) l.2) ^ 2 * |
| 390 | commonMatrix l.1 n x i l.2) := by |
| 391 | rw [actualCross, SignedMeanGain.meanBar_symmetricCovariance |
| 392 | (actualPrimaryField B N0) (actualSignedField B N0 c u) |
| 393 | (LabelSumBounds.fieldSum_angularContinuous _ _ |
| 394 | (fun _ => LabelSumBounds.block_angularContinuous _)) |
| 395 | (LabelSumBounds.fieldSum_angularContinuous _ _ |
| 396 | (fun _ => LabelSumBounds.block_angularContinuous _))] |
| 397 | simp_rw [actual_cross_diagonal c u n hx] |
| 398 | rw [PartitionedCovariance.doubleAverage_sum] |
| 399 | · apply Finset.sum_congr rfl |
| 400 | intro l hl |
| 401 | rw [PartitionedCovariance.doubleAverage_const_mul, primary_diagonal_average n hx] |
| 402 | rw [activeLabels_product] at hl |
| 403 | exact (Finset.mem_product.mp hl).1 |
| 404 | · intro l hl Y |
| 405 | exact continuous_const.mul ((primary_diagonal_continuous n hx l hl i).1 Y) |
| 406 | · intro l hl |
| 407 | simp_rw [SmoothLoop.angularMean_const_mul] |
| 408 | exact continuous_const.mul (primary_diagonal_continuous n hx l hl i).2 |
| 409 | |
| 410 | theorem pair_signed_reconstruction (request : ℕ → FullPoint → Vec2) |
| 411 | (L : Label B N0) (n : ℕ) {x : Point} |
| 412 | (hx : x ∈ ActualInitialization.geometry.strip.domain) (i : Fin 2) : |
| 413 | ∑ j : Fin 2, |
| 414 | (2 * signedRatio request L n x j) * |
| 415 | ((PartitionedCovariance.amplitude (ChartScales.epsilon h n) |
| 416 | (spatialMask L (nativePoint n x L)) (commonMatrix L n x) (commonTarget L n x) j) ^ 2 * |
| 417 | commonMatrix L n x i j) = |
| 418 | ChartScales.epsilon h n * spatialMask L (nativePoint n x L) ^ 2 * request n (x, 0) i := by |
| 419 | by_cases hm : spatialMask L (nativePoint n x L) = 0 |
| 420 | · simp [PartitionedCovariance.amplitude, hm] |
| 421 | have hcone := commonTarget_cone L n hx hm |
| 422 | have hrec := SignedCovariance.cross_reconstruct_component |
| 423 | (commonMatrix L n x) (commonTarget L n x) (request n (x, 0)) hcone i |
| 424 | have heps := Real.sq_sqrt (ChartScales.epsilon_pos h n).le |
| 425 | calc |
| 426 | _ = ChartScales.epsilon h n * spatialMask L (nativePoint n x L) ^ 2 * |
| 427 | (2 * ((commonMatrix L n x).mulVec (fun j => |
| 428 | SmoothCovariance.amplitudes (commonMatrix L n x) (commonTarget L n x) j * |
| 429 | SignedCovariance.increment (commonMatrix L n x) (commonTarget L n x) |
| 430 | (request n (x, 0)) j)) i) := by |
| 431 | simp only [Matrix.mulVec, dotProduct, Finset.mul_sum] |
| 432 | apply Finset.sum_congr rfl |
| 433 | intro j hj |
| 434 | have ha := ne_of_gt (hcone.amplitudes_pos j) |
| 435 | unfold signedRatio PartitionedCovariance.amplitude |
| 436 | simp only [mul_pow, heps] |
| 437 | field_simp |
| 438 | _ = _ := by rw [hrec] |
| 439 | |
| 440 | /-! ## Exact physical partition factor, and exact cancellation on its tail -/ |
| 441 | |
| 442 | theorem requested_cross_factor (B N0 : ℕ) (c : CorrectionState.Context Point) |
| 443 | (u : CorrectionState.State Point) (n : ℕ) {x : Point} |
| 444 | (hx : x ∈ ActualInitialization.geometry.strip.domain) (i : Fin 2) : |
| 445 | StateMomentBalances.meanBar (actualCross B N0 c u 0 i.succ) n x = |
| 446 | partitionFactor B N0 n x * LocalSignedRequest.requestedStress |
| 447 | ActualInitialization.geometry.patch ActualInitialization.geometry.coord c u n x i := by |
| 448 | rw [actual_cross_average_sum c u n hx i, activeLabels_product, |
| 449 | Finset.product_eq_sprod, Finset.sum_product] |
| 450 | simp_rw [pair_signed_reconstruction (actualRequest c u) _ n hx i] |
| 451 | have he : ChartScales.epsilon h n * actualRequest c u n (x, 0) i = |
| 452 | LocalSignedRequest.requestedStress ActualInitialization.geometry.patch |
| 453 | ActualInitialization.geometry.coord c u n x i := by |
| 454 | change ChartScales.epsilon h n * ((ChartScales.epsilon h n)⁻¹ * _) = _ |
| 455 | rw [← mul_assoc, mul_inv_cancel₀ (ChartScales.epsilon_pos h n).ne', one_mul] |
| 456 | rw [partitionFactor, Finset.sum_mul] |
| 457 | apply Finset.sum_congr rfl |
| 458 | intro L hL |
| 459 | rw [mul_right_comm, he, mul_comm] |
| 460 | |
| 461 | /-- The physical scale, and therefore this threshold, is shared by every |
| 462 | signed request made from the fixed primary choice. -/ |
| 463 | theorem requested_cross_tail (B N0 : ℕ) (c : CorrectionState.Context Point) |
| 464 | (u : CorrectionState.State Point) {n : ℕ} |
| 465 | (hn : (choice B N0).prepared.N + 1 ≤ n) {x : Point} |
| 466 | (hx : x ∈ ActualInitialization.geometry.strip.domain) (i : Fin 2) : |
| 467 | StateMomentBalances.meanBar (actualCross B N0 c u 0 i.succ) n x = |
| 468 | LocalSignedRequest.requestedStress ActualInitialization.geometry.patch |
| 469 | ActualInitialization.geometry.coord c u n x i := by |
| 470 | rw [requested_cross_factor B N0 c u n hx i, |
| 471 | partitionFactor_eq_one B N0 n hx (physicalScale_tail B N0 hn hx), one_mul] |
| 472 | |
| 473 | /-- Earlier bands retain their actual cutoff deficit. In particular this |
| 474 | theorem makes no assertion of cancellation on every normalized band. -/ |
| 475 | theorem requested_cross_defect (B N0 : ℕ) (c : CorrectionState.Context Point) |
| 476 | (u : CorrectionState.State Point) (n : ℕ) {x : Point} |
| 477 | (hx : x ∈ ActualInitialization.geometry.strip.domain) (i : Fin 2) : |
| 478 | StateMomentBalances.meanBar (actualCross B N0 c u 0 i.succ) n x - |
| 479 | LocalSignedRequest.requestedStress ActualInitialization.geometry.patch |
| 480 | ActualInitialization.geometry.coord c u n x i = |
| 481 | -missingWeight (choice B N0).prepared.N (physicalScale n x) * |
| 482 | LocalSignedRequest.requestedStress ActualInitialization.geometry.patch |
| 483 | ActualInitialization.geometry.coord c u n x i := by |
| 484 | rw [requested_cross_factor B N0 c u n hx i, partitionFactor_eq_one_sub_missing B N0 n hx] |
| 485 | ring |
| 486 | |
| 487 | theorem theta_cross_tail (B N0 : ℕ) (c : CorrectionState.Context Point) |
| 488 | (u : CorrectionState.State Point) {n : ℕ} |
| 489 | (hn : (choice B N0).prepared.N + 1 ≤ n) {x : Point} |
| 490 | (hx : x ∈ ActualInitialization.geometry.strip.domain) : |
| 491 | StateMomentBalances.meanBar (actualCross B N0 c u 0 1) n x = |
| 492 | SignedMeanGain.physicalSigma ActualInitialization.geometry 2 (u.thetaResidual c) n x := |
| 493 | requested_cross_tail B N0 c u hn hx 0 |
| 494 | |
| 495 | theorem axial_cross_tail (B N0 : ℕ) (c : CorrectionState.Context Point) |
| 496 | (u : CorrectionState.State Point) {n : ℕ} |
| 497 | (hn : (choice B N0).prepared.N + 1 ≤ n) {x : Point} |
| 498 | (hx : x ∈ ActualInitialization.geometry.strip.domain) : |
| 499 | StateMomentBalances.meanBar (actualCross B N0 c u 0 2) n x = |
| 500 | SignedMeanGain.physicalSigma ActualInitialization.geometry 1 (u.axialResidual c) n x := |
| 501 | requested_cross_tail B N0 c u hn hx 1 |
| 502 | |
| 503 | theorem requested_cross_tail_jets (B N0 : ℕ) (c : CorrectionState.Context Point) |
| 504 | (u : CorrectionState.State Point) {n : ℕ} |
| 505 | (hn : (choice B N0).prepared.N + 1 ≤ n) {x : Point} |
| 506 | (hx : x ∈ ActualInitialization.geometry.strip.domain) (i : Fin 2) (m : ℕ) : |
| 507 | iteratedFDeriv ℝ m (StateMomentBalances.meanBar (actualCross B N0 c u 0 i.succ) n) x = |
| 508 | iteratedFDeriv ℝ m (fun x => LocalSignedRequest.requestedStress |
| 509 | ActualInitialization.geometry.patch ActualInitialization.geometry.coord c u n x i) x := by |
| 510 | exact (SolenoidalDiagonal.iteratedFDeriv_eventuallyEq |
| 511 | (eventually_of_mem (ActualInitialization.geometry.strip.isOpen_domain.mem_nhds hx) |
| 512 | (fun y hy => requested_cross_tail B N0 c u hn hy i)) m).self_of_nhds |
| 513 | |
| 514 | /-! ## Binding to the signed family of the literal correction cycle -/ |
| 515 | |
| 516 | open CorrectionStep CorrectionState |
| 517 | |
| 518 | /-- This is the actual cycle constructor with its particular solver left |
| 519 | as a parameter. Both fixed and state-dependent actual particular solvers |
| 520 | use this very signed subsystem. -/ |
| 521 | noncomputable def cycleParameters |
| 522 | (particular : (Label B N0 × Fin 2) → ParticularParameters CycleSlow) : |
| 523 | CycleParameters (Label B N0 × Fin 2) := |
| 524 | CycleParameters.ofGeometry ActualInitialization.geometry h |
| 525 | (CorrectionInitialization.CommonWindow.index h) ActualInitialization.axial |
| 526 | particular ActualSignedStageControls.parameters rankData |
| 527 | |
| 528 | theorem cycle_signedRequest_eq |
| 529 | (particular : (Label B N0 × Fin 2) → ParticularParameters CycleSlow) |
| 530 | (v : CycleCoefficients (Label B N0 × Fin 2)) (c : Context Point) (u : State Point) : |
| 531 | (cycleParameters particular).signedRequest v c u = |
| 532 | actualRequest c ((cycleParameters particular).afterParticular v c u) := rfl |
| 533 | |
| 534 | theorem cycle_signedTangent_eq |
| 535 | (particular : (Label B N0 × Fin 2) → ParticularParameters CycleSlow) |
| 536 | (v : CycleCoefficients (Label B N0 × Fin 2)) (c : Context Point) (u : State Point) |
| 537 | (l : Label B N0 × Fin 2) : |
| 538 | (cycleParameters particular).signedTangent v c u l = |
| 539 | actualSignedBlock c ((cycleParameters particular).afterParticular v c u) l := rfl |
| 540 | |
| 541 | theorem cycle_signed_sameCarrier |
| 542 | (particular : (Label B N0 × Fin 2) → ParticularParameters CycleSlow) |
| 543 | (v : CycleCoefficients (Label B N0 × Fin 2)) (c : Context Point) (u : State Point) |
| 544 | (l : Label B N0 × Fin 2) : |
| 545 | LabelSumBounds.SameCarrier (ActualInitialization.tangentBlock l) |
| 546 | ((cycleParameters particular).signedBlock v c u l) := ⟨rfl, rfl, rfl⟩ |
| 547 | |
| 548 | theorem cycle_current_signedCarrier |
| 549 | (particular : (Label B N0 × Fin 2) → ParticularParameters CycleSlow) |
| 550 | (v : CycleCoefficients (Label B N0 × Fin 2)) (c : Context Point) (u : State Point) |
| 551 | (hcp : ∀ l, LabelSumBounds.SameCarrier (v.blocks l) (ActualInitialization.tangentBlock l)) |
| 552 | (l : Label B N0 × Fin 2) : |
| 553 | LabelSumBounds.SameCarrier (v.blocks l) ((cycleParameters particular).signedBlock v c u l) := |
| 554 | ⟨(hcp l).frequency, (hcp l).phase, (hcp l).angular⟩ |
| 555 | |
| 556 | theorem fixedParameters_eq_cycle (B N0 : ℕ) : |
| 557 | ActualCycleParameters.fixedParameters B N0 = |
| 558 | cycleParameters (fun l : Label B N0 × Fin 2 => |
| 559 | ActualParticularStageControls.canonicalParameters (l.2, l.1)) := rfl |
| 560 | |
| 561 | theorem parameters_eq_cycle (x : CycleState (Label B N0 × Fin 2)) : |
| 562 | ActualCycleParameters.parameters x = |
| 563 | cycleParameters (fun l => ActualParticularStageControls.parameters |
| 564 | (ActualCycleParameters.particularState x) (ActualCycleParameters.swap B N0 l)) := rfl |
| 565 | |
| 566 | theorem initial_labels (B N0 : ℕ) : |
| 567 | (ActualInitialization.coefficients B N0).labels = activeLabels standardRegion B N0 := rfl |
| 568 | |
| 569 | theorem next_labels |
| 570 | (p : CycleParameters (Label B N0 × Fin 2)) |
| 571 | (v : CycleCoefficients (Label B N0 × Fin 2)) (c : Context Point) (u : State Point) : |
| 572 | (p.nextCoefficients v c u).labels = v.labels := rfl |
| 573 | |
| 574 | /-! The cycle field identity is stated without expanding its quantitative |
| 575 | `SignedFamily` proof object. Its coefficient projections are all that the |
| 576 | covariance uses. -/ |
| 577 | |
| 578 | theorem cycle_cross_eq |
| 579 | (particular : (Label B N0 × Fin 2) → ParticularParameters CycleSlow) |
| 580 | (v : CycleCoefficients (Label B N0 × Fin 2)) (c : Context Point) (u : State Point) |
| 581 | (hlabels : v.labels = activeLabels standardRegion B N0) : |
| 582 | LabelSumBounds.symmetricCovariance |
| 583 | (LabelSumBounds.fieldSum v.labels (fun l => (ActualInitialization.tangentBlock l).oscillation)) |
| 584 | (LabelSumBounds.fieldSum v.labels |
| 585 | (fun l => ((cycleParameters particular).signedTangent v c u l).oscillation)) = |
| 586 | actualCross B N0 c ((cycleParameters particular).afterParticular v c u) := by |
| 587 | rw [hlabels] |
| 588 | rfl |
| 589 | |
| 590 | theorem cycle_requested_cross_tail |
| 591 | (particular : (Label B N0 × Fin 2) → ParticularParameters CycleSlow) |
| 592 | (v : CycleCoefficients (Label B N0 × Fin 2)) (c : Context Point) (u : State Point) |
| 593 | (hlabels : v.labels = activeLabels standardRegion B N0) {n : ℕ} |
| 594 | (hn : (choice B N0).prepared.N + 1 ≤ n) {x : Point} |
| 595 | (hx : x ∈ ActualInitialization.geometry.strip.domain) (i : Fin 2) : |
| 596 | StateMomentBalances.meanBar (LabelSumBounds.symmetricCovariance |
| 597 | (LabelSumBounds.fieldSum v.labels (fun l => (ActualInitialization.tangentBlock l).oscillation)) |
| 598 | (LabelSumBounds.fieldSum v.labels |
| 599 | (fun l => ((cycleParameters particular).signedTangent v c u l).oscillation)) 0 i.succ) n x = |
| 600 | LocalSignedRequest.requestedStress ActualInitialization.geometry.patch |
| 601 | ActualInitialization.geometry.coord c ((cycleParameters particular).afterParticular v c u) n x i := by |
| 602 | rw [cycle_cross_eq particular v c u hlabels] |
| 603 | exact requested_cross_tail B N0 c _ hn hx i |
| 604 | |
| 605 | theorem fixed_requested_cross_tail |
| 606 | (v : CycleCoefficients (Label B N0 × Fin 2)) (c : Context Point) (u : State Point) |
| 607 | (hlabels : v.labels = activeLabels standardRegion B N0) {n : ℕ} |
| 608 | (hn : (choice B N0).prepared.N + 1 ≤ n) {x : Point} |
| 609 | (hx : x ∈ ActualInitialization.geometry.strip.domain) (i : Fin 2) : |
| 610 | StateMomentBalances.meanBar (LabelSumBounds.symmetricCovariance |
| 611 | (LabelSumBounds.fieldSum v.labels (fun l => (ActualInitialization.tangentBlock l).oscillation)) |
| 612 | (LabelSumBounds.fieldSum v.labels |
| 613 | (fun l => ((ActualCycleParameters.fixedParameters B N0).signedTangent v c u l).oscillation)) |
| 614 | 0 i.succ) n x = |
| 615 | LocalSignedRequest.requestedStress ActualInitialization.geometry.patch |
| 616 | ActualInitialization.geometry.coord c |
| 617 | ((ActualCycleParameters.fixedParameters B N0).afterParticular v c u) n x i := by |
| 618 | rw [fixedParameters_eq_cycle] |
| 619 | exact cycle_requested_cross_tail _ v c u hlabels hn hx i |
| 620 | |
| 621 | theorem literal_requested_cross_tail (state : CycleState (Label B N0 × Fin 2)) |
| 622 | (hlabels : state.coefficients.labels = activeLabels standardRegion B N0) {n : ℕ} |
| 623 | (hn : (choice B N0).prepared.N + 1 ≤ n) {x : Point} |
| 624 | (hx : x ∈ ActualInitialization.geometry.strip.domain) (i : Fin 2) : |
| 625 | StateMomentBalances.meanBar (LabelSumBounds.symmetricCovariance |
| 626 | (LabelSumBounds.fieldSum state.coefficients.labels |
| 627 | (fun l => (ActualInitialization.tangentBlock l).oscillation)) |
| 628 | (LabelSumBounds.fieldSum state.coefficients.labels |
| 629 | (fun l => ((ActualCycleParameters.parameters state).signedTangent |
| 630 | state.coefficients (commonContext B) state.state l).oscillation)) 0 i.succ) n x = |
| 631 | LocalSignedRequest.requestedStress ActualInitialization.geometry.patch |
| 632 | ActualInitialization.geometry.coord (commonContext B) |
| 633 | ((ActualCycleParameters.parameters state).afterParticular |
| 634 | state.coefficients (commonContext B) state.state) n x i := by |
| 635 | rw [parameters_eq_cycle] |
| 636 | exact cycle_requested_cross_tail _ state.coefficients (commonContext B) state.state hlabels hn hx i |
| 637 | |
| 638 | section Family |
| 639 | |
| 640 | variable {P : (Label B N0 × Fin 2) → ℕ → Point → ℝ} {α δ β η : ℝ} |
| 641 | |
| 642 | /-- Only stored coefficient projections identify the quantitative family. |
| 643 | For the literal `CycleParameters.signedFamily`, these equalities are `rfl`. -/ |
| 644 | theorem family_cross_eq (c : Context Point) (u : State Point) |
| 645 | (f : LabelSumBounds.SignedFamily ActualInitialization.geometry.strip P α δ β η) |
| 646 | (a : SignedMeanGain.Assembly f) |
| 647 | (hprimary : f.primary = ActualInitialization.tangentBlock) |
| 648 | (htangent : f.tangent = actualSignedBlock c u) |
| 649 | (hlabels : a.labels = activeLabels standardRegion B N0) : |
| 650 | SignedMeanGain.crossTensor f a = actualCross B N0 c u := by |
| 651 | simp only [SignedMeanGain.crossTensor, SignedMeanGain.primaryField, |
| 652 | SignedMeanGain.tangentField, hprimary, htangent, hlabels] |
| 653 | rfl |
| 654 | |
| 655 | theorem family_requested_cross_tail (c : Context Point) (u : State Point) |
| 656 | (f : LabelSumBounds.SignedFamily ActualInitialization.geometry.strip P α δ β η) |
| 657 | (a : SignedMeanGain.Assembly f) |
| 658 | (hprimary : f.primary = ActualInitialization.tangentBlock) |
| 659 | (htangent : f.tangent = actualSignedBlock c u) |
| 660 | (hlabels : a.labels = activeLabels standardRegion B N0) {n : ℕ} |
| 661 | (hn : (choice B N0).prepared.N + 1 ≤ n) {x : Point} |
| 662 | (hx : x ∈ ActualInitialization.geometry.strip.domain) (i : Fin 2) : |
| 663 | StateMomentBalances.meanBar (SignedMeanGain.crossTensor f a 0 i.succ) n x = |
| 664 | LocalSignedRequest.requestedStress ActualInitialization.geometry.patch |
| 665 | ActualInitialization.geometry.coord c u n x i := by |
| 666 | rw [family_cross_eq c u f a hprimary htangent hlabels] |
| 667 | exact requested_cross_tail B N0 c u hn hx i |
| 668 | |
| 669 | /-- Every requested exponent follows for the literal finite-head defects. |
| 670 | The analytic inputs are the usual supported residual/coefficient estimates, |
| 671 | not an assumption on the cross defect or its vanishing. -/ |
| 672 | theorem family_defects_all_exponents (c : Context Point) (u : State Point) {σ κ : ℝ} |
| 673 | (f : LabelSumBounds.SignedFamily ActualInitialization.geometry.strip P (1 / 2) (17 / 25) |
| 674 | (1 / 2 + σ - κ) (1 + σ - 2 * κ)) (a : SignedMeanGain.Assembly f) |
| 675 | (hprimary : f.primary = ActualInitialization.tangentBlock) |
| 676 | (htangent : f.tangent = actualSignedBlock c u) |
| 677 | (hlabels : a.labels = activeLabels standardRegion B N0) |
| 678 | (hS : ∀ i j, SignedMeanGain.MovingField ActualInitialization.geometry |
| 679 | (SignedMeanGain.crossTensor f a i j)) |
| 680 | (H : MeanStateRegularity.PrimitiveData ActualInitialization.geometry.region |
| 681 | ActualInitialization.geometry.patch.a ActualInitialization.geometry.patch.b c u) |
| 682 | (hfixed : (VariableGaugeMean.reconstructState ActualInitialization.geometry.gauge c u).pressure = u.pressure) |
| 683 | (hθ : WeightedClasses.MeanClass ActualInitialization.geometry.strip (1 + σ - κ) (u.thetaResidual c)) |
| 684 | (hz : WeightedClasses.MeanClass ActualInitialization.geometry.strip (1 + σ - κ) (u.axialResidual c)) : |
| 685 | ∀ γ : ℝ, |
| 686 | WeightedClasses.MeanClass ActualInitialization.geometry.strip γ |
| 687 | (StateMomentBalances.meanBar (SignedMeanGain.crossTensor f a 0 1) - |
| 688 | SignedMeanGain.physicalSigma ActualInitialization.geometry 2 (u.thetaResidual c)) ∧ |
| 689 | WeightedClasses.MeanClass ActualInitialization.geometry.strip γ |
| 690 | (StateMomentBalances.meanBar (SignedMeanGain.crossTensor f a 0 2) - |
| 691 | SignedMeanGain.physicalSigma ActualInitialization.geometry 1 (u.axialResidual c)) := by |
| 692 | apply SignedCrossDefectClass.residual_defects_all_exponents_of_primitive |
| 693 | ActualInitialization.geometry c u f a hS H hfixed hθ hz ((choice B N0).prepared.N + 1) |
| 694 | intro n hn x hx i |
| 695 | exact family_requested_cross_tail c u f a hprimary htangent hlabels hn hx i |
| 696 | |
| 697 | end Family |
| 698 | |
| 699 | end NavierStokes.ActualSignedMeanBinding |