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.PhysicalMeanJetBounds |
| 2 | import NavierStokes.OffplaneCorrectionExtensions |
| 3 | import NavierStokes.CyclePhysicalPrefixes |
| 4 | import NavierStokes.CorrectionInitialization |
| 5 | |
| 6 | /-! |
| 7 | # Actual Cartesian curls of the mean stream potentials |
| 8 | |
| 9 | The azimuthal potential carries the scale velocity/radialScale. Its genuine |
| 10 | Cartesian curl is the meridional stream pair in the same physical graph. |
| 11 | -/ |
| 12 | |
| 13 | noncomputable section |
| 14 | |
| 15 | namespace NavierStokes.ActualMeanPotentialRealization |
| 16 | |
| 17 | open Set Filter Function ProblemStatement HarmonicCalculus |
| 18 | open scoped ContDiff Topology BigOperators |
| 19 | |
| 20 | abbrev Point := PhysicalResidualTZ.Lift |
| 21 | abbrev Cylinder := PhysicalResidualTZ.Cylinder |
| 22 | abbrev ScaledGraph := PhysicalResidualBridge.ScaledGraph |
| 23 | |
| 24 | noncomputable def axial : (ℝ × ℝ) × (ℝ × ℝ) := ((0, 1), 0) |
| 25 | |
| 26 | noncomputable def chartPoint (G : ScaledGraph) (z : SpaceTime) : Point := |
| 27 | (PhysicalResidualTZ.graphMapTZ G z).1 |
| 28 | |
| 29 | noncomputable def meridional (G : ScaledGraph) (Ψ : Point → ℝ) (x : Cylinder) : Fin 3 → ℝ := |
| 30 | ![PressureStream.streamBeta (G.epsilon • axial) Ψ x.1, 0, |
| 31 | PressureStream.streamGamma (PressureStream.physicalSpeed G.exponent G.frequency) |
| 32 | ((0 : ℝ × ℝ), G.radialVector) Ψ x.1] |
| 33 | |
| 34 | noncomputable def componentPotential (G : ScaledGraph) (Ψ : Point → ℝ) (z : SpaceTime) : Space := |
| 35 | AxisymmetricResidual.pack 0 ((G.velocityScale / G.radialScale) * Ψ (chartPoint G z)) 0 |
| 36 | |
| 37 | /-- The same local polar realization used by the physical cycle prefixes. -/ |
| 38 | noncomputable def cartesianPotential (a : ℝ) (j : PolarCharts.Index) |
| 39 | (G : ScaledGraph) (Ψ : Point → ℝ) : VelocityField := |
| 40 | CyclePhysicalPrefixes.polarVelocityMap a j (componentPotential G Ψ) |
| 41 | |
| 42 | theorem chartPoint_smoothAt (G : ScaledGraph) {z : SpaceTime} |
| 43 | (hr : G.radialScale * z.2 0 ≠ 0) : ContDiffAt ℝ ∞ (chartPoint G) z := |
| 44 | PhysicalResidualTZ.swapSlow.toContinuousLinearEquiv.contDiff.contDiffAt.comp z |
| 45 | (G.map_smoothAt hr).fst |
| 46 | |
| 47 | theorem chartPoint_fderiv (G : ScaledGraph) {z : SpaceTime} |
| 48 | (hr : G.radialScale * z.2 0 ≠ 0) (w : SpaceTime) : |
| 49 | fderiv ℝ (chartPoint G) z w = PhysicalResidualTZ.swapSlow ((fderiv ℝ G.map z w).1) := by |
| 50 | have hd := PhysicalResidualTZ.swapSlow.toContinuousLinearEquiv.hasFDerivAt.comp z |
| 51 | (((G.map_smoothAt hr).differentiableAt (by simp)).hasFDerivAt.fst) |
| 52 | change fderiv ℝ (PhysicalResidualTZ.swapSlow.toContinuousLinearEquiv ∘ fun p => (G.map p).1) z w = _ |
| 53 | rw [hd.fderiv] |
| 54 | rfl |
| 55 | |
| 56 | theorem chartPoint_radius (G : ScaledGraph) (z : SpaceTime) : |
| 57 | (chartPoint G z).1 = G.radialScale * z.2 0 := rfl |
| 58 | |
| 59 | theorem chartPoint_radial (G : ScaledGraph) {z : SpaceTime} |
| 60 | (hr : G.radialScale * z.2 0 ≠ 0) : |
| 61 | fderiv ℝ (chartPoint G) z (LinearWaveResidual.spaceDirection 0 z) = |
| 62 | G.radialScale • PressureStream.radialVector |
| 63 | (PressureStream.physicalSpeed G.exponent G.frequency) |
| 64 | ((0 : ℝ × ℝ), G.radialVector) (chartPoint G z) := by |
| 65 | rw [chartPoint_fderiv G hr, G.map_radial hr] |
| 66 | ext <;> simp [PhysicalResidualBridge.ScaledGraph.radial, PhysicalResidualTZ.swapSlow_apply, |
| 67 | PressureStream.radialVector, PressureStream.physicalSpeed, RadialPullback.radialJacobian, |
| 68 | GraphCalculus.radialSpeed, chartPoint_radius, PhysicalResidualBridge.ScaledGraph.map, |
| 69 | smul_smul, smul_eq_mul] <;> ring_nf <;> simp |
| 70 | |
| 71 | theorem chartPoint_axial (G : ScaledGraph) {z : SpaceTime} |
| 72 | (hr : G.radialScale * z.2 0 ≠ 0) : |
| 73 | fderiv ℝ (chartPoint G) z (LinearWaveResidual.spaceDirection 2 z) = |
| 74 | G.radialScale • ((0 : ℝ), G.epsilon • axial) := by |
| 75 | rw [chartPoint_fderiv G hr, G.map_axial hr] |
| 76 | ext <;> simp [PhysicalResidualBridge.ScaledGraph.axial, PhysicalResidualTZ.swapSlow_apply, |
| 77 | axial, smul_eq_mul] |
| 78 | |
| 79 | theorem scalar_radial (G : ScaledGraph) (hl : 0 < G.radialScale) {z : SpaceTime} |
| 80 | (hr : 0 < z.2 0) {Ψ : Point → ℝ} (hΨ : DifferentiableAt ℝ Ψ (chartPoint G z)) : |
| 81 | along (LinearWaveResidual.spaceDirection 0) |
| 82 | (fun p => (G.velocityScale / G.radialScale) * Ψ (chartPoint G p)) z = |
| 83 | G.velocityScale * PressureStream.graphDr |
| 84 | (PressureStream.physicalSpeed G.exponent G.frequency) |
| 85 | ((0 : ℝ × ℝ), G.radialVector) Ψ (chartPoint G z) := by |
| 86 | have he := PhysicalResidualBridge.along_scaled_pull (G.velocityScale / G.radialScale) G.radialScale |
| 87 | ((chartPoint_smoothAt G (mul_pos hl hr).ne').differentiableAt (by simp)) hΨ |
| 88 | (chartPoint_radial G (mul_pos hl hr).ne') |
| 89 | simpa only [div_mul_cancel₀ _ hl.ne', along, PressureStream.graphDr] using he |
| 90 | |
| 91 | theorem scalar_axial (G : ScaledGraph) (hl : 0 < G.radialScale) {z : SpaceTime} |
| 92 | (hr : 0 < z.2 0) {Ψ : Point → ℝ} (hΨ : DifferentiableAt ℝ Ψ (chartPoint G z)) : |
| 93 | along (LinearWaveResidual.spaceDirection 2) |
| 94 | (fun p => (G.velocityScale / G.radialScale) * Ψ (chartPoint G p)) z = |
| 95 | G.velocityScale * PressureStream.graphDz (G.epsilon • axial) Ψ (chartPoint G z) := by |
| 96 | have he := PhysicalResidualBridge.along_scaled_pull |
| 97 | (V := LinearWaveResidual.spaceDirection 2) (W := fun _ : Point => ((0 : ℝ), G.epsilon • axial)) |
| 98 | (G.velocityScale / G.radialScale) G.radialScale |
| 99 | ((chartPoint_smoothAt G (mul_pos hl hr).ne').differentiableAt (by simp)) hΨ |
| 100 | (chartPoint_axial G (mul_pos hl hr).ne') |
| 101 | simpa only [div_mul_cancel₀ _ hl.ne', along, PressureStream.graphDz] using he |
| 102 | |
| 103 | theorem componentPotential_smoothAt (G : ScaledGraph) {z : SpaceTime} |
| 104 | (hr : G.radialScale * z.2 0 ≠ 0) {Ψ : Point → ℝ} |
| 105 | (hΨ : ContDiffAt ℝ ∞ Ψ (chartPoint G z)) : |
| 106 | ContDiffAt ℝ ∞ (componentPotential G Ψ) z := by |
| 107 | have h : ContDiffAt ℝ ∞ (fun p => (G.velocityScale / G.radialScale) * Ψ (chartPoint G p)) z := |
| 108 | contDiffAt_const.mul (hΨ.comp z (chartPoint_smoothAt G hr)) |
| 109 | convert! h.smul (contDiffAt_const (c := coordinateVector 1)) using 1 |
| 110 | funext p |
| 111 | simp [componentPotential, AxisymmetricResidual.pack] |
| 112 | |
| 113 | /-- The connection term Ψ/R is retained in the actual cylindrical curl. -/ |
| 114 | theorem componentPotential_realCurl (G : ScaledGraph) (hl : 0 < G.radialScale) {z : SpaceTime} |
| 115 | (hr : 0 < z.2 0) {Ψ : Point → ℝ} (hΨ : DifferentiableAt ℝ Ψ (chartPoint G z)) (i : Fin 3) : |
| 116 | PhysicalCurlCovariance.realCurl LinearWaveResidual.coordinateRadius |
| 117 | (LinearWaveResidual.spaceDirection 0) (LinearWaveResidual.spaceDirection 1) |
| 118 | (LinearWaveResidual.spaceDirection 2) (fun p i => componentPotential G Ψ p i) z i = |
| 119 | G.velocityScale * meridional G Ψ (PhysicalResidualTZ.graphMapTZ G z) i := by |
| 120 | have h0 (k : Fin 3) : along (LinearWaveResidual.spaceDirection k) (fun _ : SpaceTime => (0 : ℝ)) z = 0 := by |
| 121 | simp [along] |
| 122 | have hR := scalar_radial G hl hr hΨ |
| 123 | have hZ := scalar_axial G hl hr hΨ |
| 124 | fin_cases i <;> simp [PhysicalCurlCovariance.realCurl, componentPotential, |
| 125 | AxisymmetricResidual.pack_zero, AxisymmetricResidual.pack_one, AxisymmetricResidual.pack_two, |
| 126 | Matrix.cons_val_zero, Matrix.cons_val_one, Matrix.cons_val_two, h0, hR, hZ, |
| 127 | meridional, PressureStream.streamBeta, PressureStream.streamGamma, |
| 128 | PressureStream.divideRadius, LinearWaveResidual.coordinateRadius, |
| 129 | mul_zero, zero_sub, sub_zero] |
| 130 | · exact Or.inl rfl |
| 131 | · rw [show (PhysicalResidualTZ.graphMapTZ G z).1.1 = G.radialScale * z.2 0 from rfl] |
| 132 | change G.velocityScale * _ + (z.2 0)⁻¹ * ((G.velocityScale / G.radialScale) * Ψ (chartPoint G z)) = _ |
| 133 | field_simp [hl.ne', hr.ne'] |
| 134 | unfold chartPoint |
| 135 | ring |
| 136 | |
| 137 | theorem cartesianPotential_smoothAt {a : ℝ} (ha : 0 < a) (j : PolarCharts.Index) |
| 138 | (G : ScaledGraph) {Ψ : Point → ℝ} {w : SpaceTime} |
| 139 | (hr : G.radialScale * (PhysicalCurlCovariance.polarCoordinates a j w).2 0 ≠ 0) |
| 140 | (hΨ : ContDiffAt ℝ ∞ Ψ (chartPoint G (PhysicalCurlCovariance.polarCoordinates a j w))) : |
| 141 | ContDiffAt ℝ ∞ (cartesianPotential a j G Ψ) w := by |
| 142 | exact (CylindricalResidual.contDiff_frame.contDiffAt.comp w |
| 143 | (PhysicalCurlCovariance.polarInput_smooth ha j).contDiffAt.snd).clm_apply |
| 144 | ((componentPotential_smoothAt G hr hΨ).comp w |
| 145 | (PhysicalCurlCovariance.polarCoordinates_smooth ha j).contDiffAt) |
| 146 | |
| 147 | theorem polar_forward {a : ℝ} (ha : 0 < a) (j : PolarCharts.Index) (v : VelocityField) |
| 148 | {z : SpaceTime} (hz : z ∈ PhysicalCurlCovariance.validCylindrical a j) : |
| 149 | CyclePhysicalPrefixes.polarVelocityMap a j v (z.1, CylindricalResidual.chart z.2) = |
| 150 | CylindricalResidual.frame (z.2 1) (v z) := by |
| 151 | change CylindricalResidual.frame |
| 152 | (PhysicalCurlCovariance.polarInput a j (z.1, CylindricalResidual.chart z.2)).2 |
| 153 | (v (PhysicalCurlCovariance.polarCoordinates a j (z.1, CylindricalResidual.chart z.2))) = _ |
| 154 | rw [PhysicalCurlCovariance.polarInput_forward ha j hz, |
| 155 | PhysicalCurlCovariance.polarCoordinates_forward ha j hz] |
| 156 | |
| 157 | theorem cartesianPotential_forward_germ {a : ℝ} (ha : 0 < a) (j : PolarCharts.Index) |
| 158 | (G : ScaledGraph) (Ψ : Point → ℝ) {z : SpaceTime} |
| 159 | (hz : z ∈ PhysicalCurlCovariance.validCylindrical a j) : |
| 160 | (fun p : SpaceTime => cartesianPotential a j G Ψ (p.1, CylindricalResidual.chart p.2)) =ᶠ[𝓝 z] |
| 161 | (fun p => CylindricalResidual.frame (p.2 1) (componentPotential G Ψ p)) := |
| 162 | eventually_of_mem ((PhysicalCurlCovariance.validCylindrical_open a j).mem_nhds hz) |
| 163 | (fun _ hp => polar_forward ha j _ hp) |
| 164 | |
| 165 | /-- A value formula for the potential, differentiated by the real Cartesian |
| 166 | curl theorem, yields the actual meridional velocity. -/ |
| 167 | theorem cartesianPotential_curl_forward {a : ℝ} (ha : 0 < a) (j : PolarCharts.Index) |
| 168 | (G : ScaledGraph) (hl : 0 < G.radialScale) {Ψ : Point → ℝ} {z : SpaceTime} |
| 169 | (hz : z ∈ PhysicalCurlCovariance.validCylindrical a j) |
| 170 | (hΨ : ContDiffAt ℝ ∞ Ψ (chartPoint G z)) : |
| 171 | SpatialCurl.spatialCurl (cartesianPotential a j G Ψ) (z.1, CylindricalResidual.chart z.2) = |
| 172 | CyclePhysicalPrefixes.polarVelocityMap a j (CyclePhysicalPrefixes.velocityMap G (meridional G Ψ)) |
| 173 | (z.1, CylindricalResidual.chart z.2) := by |
| 174 | have hrad := (mul_pos hl hz.1).ne' |
| 175 | have hb := componentPotential_smoothAt G hrad hΨ |
| 176 | have ha' : ContDiffAt ℝ ∞ (cartesianPotential a j G Ψ) (z.1, CylindricalResidual.chart z.2) := by |
| 177 | apply cartesianPotential_smoothAt ha j G |
| 178 | · rwa [PhysicalCurlCovariance.polarCoordinates_forward ha j hz] |
| 179 | · rwa [PhysicalCurlCovariance.polarCoordinates_forward ha j hz] |
| 180 | have he : CylindricalResidual.frame (-(z.2 1)) |
| 181 | (SpatialCurl.spatialCurl (cartesianPotential a j G Ψ) (z.1, CylindricalResidual.chart z.2)) = |
| 182 | CyclePhysicalPrefixes.velocityMap G (meridional G Ψ) z := by |
| 183 | ext i |
| 184 | rw [PhysicalCurlCovariance.curl_of_representation (ha'.differentiableAt (by simp)) |
| 185 | (hb.differentiableAt (by simp)) hz.1.ne' (cartesianPotential_forward_germ ha j G Ψ hz) i, |
| 186 | componentPotential_realCurl G hl hz.1 (hΨ.differentiableAt (by simp))] |
| 187 | simp [CyclePhysicalPrefixes.velocityMap, PhysicalResidualTZ.velocityTZ, |
| 188 | PhysicalResidualBridge.ScaledGraph.velocity_apply, PhysicalResidualTZ.graphMapTZ] |
| 189 | rw [polar_forward ha j _ hz] |
| 190 | simpa only [CylindricalResidual.frame_inverse'] using |
| 191 | congrArg (CylindricalResidual.frame (z.2 1)) he |
| 192 | |
| 193 | /-! ## Ordinary Cartesian chart domains -/ |
| 194 | |
| 195 | noncomputable def cartesianDomain (a : ℝ) (j : PolarCharts.Index) : Set SpaceTime := |
| 196 | PhysicalGraphBounds.radialProjection ⁻¹' PolarCharts.chartDomain a j |
| 197 | |
| 198 | theorem cartesianDomain_open (a : ℝ) (j : PolarCharts.Index) : IsOpen (cartesianDomain a j) := |
| 199 | (PolarCharts.chartDomain_open a j).preimage PhysicalGraphBounds.radialProjection.continuous |
| 200 | |
| 201 | theorem polarCoordinates_valid {a : ℝ} (ha : 0 < a) (j : PolarCharts.Index) {w : SpaceTime} |
| 202 | (hw : w ∈ cartesianDomain a j) : |
| 203 | PhysicalCurlCovariance.polarCoordinates a j w ∈ PhysicalCurlCovariance.validCylindrical a j := by |
| 204 | have hrot : 0 < (PolarCharts.rotate j (PhysicalGraphBounds.radialProjection w)).1 := |
| 205 | (by positivity : 0 < a / 4).trans hw |
| 206 | have hr : 0 < PolarCharts.radius (PhysicalGraphBounds.radialProjection w) := by |
| 207 | rw [← PolarCharts.radius_rotate j] |
| 208 | exact PolarCharts.radius_pos_of_fst_pos hrot |
| 209 | have hp := PolarCharts.polar_chart ha j hw |
| 210 | have hc : PhysicalCurlCovariance.polarInput a j w = |
| 211 | (PolarCharts.radius (PhysicalGraphBounds.radialProjection w), |
| 212 | Real.arctan ((PolarCharts.rotate j (PhysicalGraphBounds.radialProjection w)).2 / |
| 213 | (PolarCharts.rotate j (PhysicalGraphBounds.radialProjection w)).1) + PolarCharts.offset j) := by |
| 214 | rw [PhysicalCurlCovariance.polarInput, PolarCharts.chart_eq_localChart ha j hw, |
| 215 | PolarCharts.localChart_apply] |
| 216 | refine ⟨?_, ?_, ?_⟩ |
| 217 | · simpa only [PhysicalCurlCovariance.polarCoordinates, hc, AxisymmetricResidual.pack_zero] using hr |
| 218 | · simpa only [PhysicalCurlCovariance.polarCoordinates, hc, AxisymmetricResidual.pack_one, |
| 219 | add_sub_cancel_right, Set.mem_Ioo] using |
| 220 | And.intro (Real.neg_pi_div_two_lt_arctan _) (Real.arctan_lt_pi_div_two _) |
| 221 | · simp only [PhysicalCurlCovariance.polarCoordinates, AxisymmetricResidual.pack_zero, |
| 222 | AxisymmetricResidual.pack_one, PhysicalCurlCovariance.polarInput, Prod.eta, hp] |
| 223 | exact hw |
| 224 | |
| 225 | theorem polarCoordinates_back {a : ℝ} (ha : 0 < a) (j : PolarCharts.Index) {w : SpaceTime} |
| 226 | (hw : w ∈ cartesianDomain a j) : |
| 227 | ((PhysicalCurlCovariance.polarCoordinates a j w).1, |
| 228 | CylindricalResidual.chart (PhysicalCurlCovariance.polarCoordinates a j w).2) = w := by |
| 229 | have hp := PolarCharts.polar_chart ha j hw |
| 230 | apply Prod.ext |
| 231 | · rfl |
| 232 | · ext i |
| 233 | fin_cases i |
| 234 | · simpa [PhysicalCurlCovariance.polarCoordinates, CylindricalResidual.chart, |
| 235 | AxisymmetricResidual.pack_zero, AxisymmetricResidual.pack_one, |
| 236 | PhysicalCurlCovariance.polarInput, PolarCharts.polar, PhysicalGraphBounds.radialProjection_apply] |
| 237 | using congrArg Prod.fst hp |
| 238 | · simpa [PhysicalCurlCovariance.polarCoordinates, CylindricalResidual.chart, |
| 239 | AxisymmetricResidual.pack_zero, AxisymmetricResidual.pack_one, |
| 240 | PhysicalCurlCovariance.polarInput, PolarCharts.polar, PhysicalGraphBounds.radialProjection_apply] |
| 241 | using congrArg Prod.snd hp |
| 242 | · simp [PhysicalCurlCovariance.polarCoordinates, CylindricalResidual.chart, |
| 243 | AxisymmetricResidual.pack_two] |
| 244 | |
| 245 | theorem cartesianPotential_curl {a : ℝ} (ha : 0 < a) (j : PolarCharts.Index) |
| 246 | (G : ScaledGraph) (hl : 0 < G.radialScale) {Ψ : Point → ℝ} {w : SpaceTime} |
| 247 | (hw : w ∈ cartesianDomain a j) |
| 248 | (hΨ : ContDiffAt ℝ ∞ Ψ (chartPoint G (PhysicalCurlCovariance.polarCoordinates a j w))) : |
| 249 | SpatialCurl.spatialCurl (cartesianPotential a j G Ψ) w = |
| 250 | CyclePhysicalPrefixes.polarVelocityMap a j (CyclePhysicalPrefixes.velocityMap G (meridional G Ψ)) w := by |
| 251 | have ht := cartesianPotential_curl_forward ha j G hl (polarCoordinates_valid ha j hw) hΨ |
| 252 | simpa only [polarCoordinates_back ha j hw] using ht |
| 253 | |
| 254 | /-! ## The actual variable-gauge temporal and rank fields -/ |
| 255 | |
| 256 | /-- Only literal chart coefficients are matched here; no derivative or curl |
| 257 | identity is part of this predicate. -/ |
| 258 | structure GaugeMatches (g : VariableGaugeMean.GaugeData (ℝ × ℝ)) |
| 259 | (c : CorrectionState.Context Point) (G : ScaledGraph) (n : ℕ) : Prop where |
| 260 | epsilon : c.operators.epsilon n = G.epsilon |
| 261 | exponent : g.radial.exponent = G.exponent |
| 262 | frequency : g.radial.frequency n = G.frequency |
| 263 | radialVector : g.radial.radialDirection = G.radialVector |
| 264 | |
| 265 | theorem similarityGauge_matches (h a b : ℝ) (hab : a < b) (index : ℕ → ℕ) |
| 266 | (c : CorrectionState.Context Point) (n : ℕ) (hε : c.operators.epsilon n = ChartScales.Q n ^ h) : |
| 267 | GaugeMatches (VariableGaugeMean.similarityGauge h (ChartScales.radialExponent h) a b 1 hab index) |
| 268 | c (PhysicalResidualBridge.commonGraph (ChartScales.Q n) h (index n)) n := by |
| 269 | refine ⟨hε, rfl, ?_, rfl⟩ |
| 270 | simp [VariableGaugeMean.similarityGauge, MeanChartCompatibility.radialFrequency, |
| 271 | PhysicalResidualBridge.commonGraph] |
| 272 | |
| 273 | theorem meridional_temporal (g : VariableGaugeMean.GaugeData (ℝ × ℝ)) (h : ℝ) |
| 274 | (index : ℕ → ℕ) (c : CorrectionState.Context Point) (u : CorrectionState.State Point) |
| 275 | (G : ScaledGraph) (n : ℕ) (H : GaugeMatches g c G n) : |
| 276 | meridional G (VariableGaugeMean.temporalPotential g h index c u n) = |
| 277 | CyclePhysicalPrefixes.meridionalComponents |
| 278 | (VariableGaugeMean.temporalIncrementState g h index axial c u) n := by |
| 279 | funext x i |
| 280 | fin_cases i <;> simp [meridional, CyclePhysicalPrefixes.meridionalComponents, |
| 281 | VariableGaugeMean.temporalIncrementState, H.epsilon, H.exponent, H.frequency, H.radialVector] |
| 282 | |
| 283 | theorem meridional_rank (g : VariableGaugeMean.GaugeData (ℝ × ℝ)) (r : CorrectionState.RankData (ℝ × ℝ)) |
| 284 | (c : CorrectionState.Context Point) (u : CorrectionState.State Point) |
| 285 | (G : ScaledGraph) (n : ℕ) (H : GaugeMatches g c G n) : |
| 286 | meridional G (VariableGaugeMean.rankPotential g r c u n) = |
| 287 | CyclePhysicalPrefixes.meridionalComponents |
| 288 | (VariableGaugeMean.rankIncrementState g r axial c u) n := by |
| 289 | funext x i |
| 290 | fin_cases i <;> simp [meridional, CyclePhysicalPrefixes.meridionalComponents, |
| 291 | VariableGaugeMean.rankIncrementState, H.epsilon, H.exponent, H.frequency, H.radialVector] |
| 292 | |
| 293 | theorem temporalPotential_curl {a : ℝ} (ha : 0 < a) (j : PolarCharts.Index) |
| 294 | (g : VariableGaugeMean.GaugeData (ℝ × ℝ)) (h : ℝ) (index : ℕ → ℕ) |
| 295 | (c : CorrectionState.Context Point) (u : CorrectionState.State Point) |
| 296 | (G : ScaledGraph) (hl : 0 < G.radialScale) (n : ℕ) (H : GaugeMatches g c G n) |
| 297 | {w : SpaceTime} (hw : w ∈ cartesianDomain a j) |
| 298 | (hΨ : ContDiffAt ℝ ∞ (VariableGaugeMean.temporalPotential g h index c u n) |
| 299 | (chartPoint G (PhysicalCurlCovariance.polarCoordinates a j w))) : |
| 300 | SpatialCurl.spatialCurl (cartesianPotential a j G (VariableGaugeMean.temporalPotential g h index c u n)) w = |
| 301 | CyclePhysicalPrefixes.polarVelocityMap a j (CyclePhysicalPrefixes.velocityMap G |
| 302 | (CyclePhysicalPrefixes.meridionalComponents |
| 303 | (VariableGaugeMean.temporalIncrementState g h index axial c u) n)) w := by |
| 304 | rw [cartesianPotential_curl ha j G hl hw hΨ, meridional_temporal g h index c u G n H] |
| 305 | |
| 306 | theorem rankPotential_curl {a : ℝ} (ha : 0 < a) (j : PolarCharts.Index) |
| 307 | (g : VariableGaugeMean.GaugeData (ℝ × ℝ)) (r : CorrectionState.RankData (ℝ × ℝ)) |
| 308 | (c : CorrectionState.Context Point) (u : CorrectionState.State Point) |
| 309 | (G : ScaledGraph) (hl : 0 < G.radialScale) (n : ℕ) (H : GaugeMatches g c G n) |
| 310 | {w : SpaceTime} (hw : w ∈ cartesianDomain a j) |
| 311 | (hΨ : ContDiffAt ℝ ∞ (VariableGaugeMean.rankPotential g r c u n) |
| 312 | (chartPoint G (PhysicalCurlCovariance.polarCoordinates a j w))) : |
| 313 | SpatialCurl.spatialCurl (cartesianPotential a j G (VariableGaugeMean.rankPotential g r c u n)) w = |
| 314 | CyclePhysicalPrefixes.polarVelocityMap a j (CyclePhysicalPrefixes.velocityMap G |
| 315 | (CyclePhysicalPrefixes.meridionalComponents (VariableGaugeMean.rankIncrementState g r axial c u) n)) w := by |
| 316 | rw [cartesianPotential_curl ha j G hl hw hΨ, meridional_rank g r c u G n H] |
| 317 | |
| 318 | /-! ## Identification with the coherent physical mean potential -/ |
| 319 | |
| 320 | theorem projection_forward (z : SpaceTime) : |
| 321 | PhysicalGraphBounds.radialProjection (z.1, CylindricalResidual.chart z.2) = |
| 322 | PolarCharts.polar (z.2 0, z.2 1) := by |
| 323 | simp [PhysicalGraphBounds.radialProjection_apply, CylindricalResidual.chart, PolarCharts.polar] |
| 324 | |
| 325 | theorem radius_forward {z : SpaceTime} (hr : 0 < z.2 0) : |
| 326 | PhysicalClassBounds.cartesianRadius |
| 327 | (PhysicalGraphBounds.radialProjection (z.1, CylindricalResidual.chart z.2)) = z.2 0 := by |
| 328 | change PolarCharts.radius (PhysicalGraphBounds.radialProjection (z.1, CylindricalResidual.chart z.2)) = _ |
| 329 | rw [projection_forward, PolarCharts.radius_polar, abs_of_pos hr] |
| 330 | |
| 331 | theorem physicalPoint_forward (h : ℝ) {z : SpaceTime} (hr : 0 < z.2 0) : |
| 332 | PhysicalMeanJetBounds.physicalPoint h (z.1, CylindricalResidual.chart z.2) = |
| 333 | PhysicalResidualTZ.absoluteLiftTZ h z := by |
| 334 | have hp : PhysicalGraphBounds.radialProfile (ChartScales.radialExponent h) |
| 335 | (PhysicalGraphBounds.radialProjection (z.1, CylindricalResidual.chart z.2)) = |
| 336 | (z.2 0) ^ ChartScales.radialExponent h • PhysicalGraphBounds.radialDirection := by |
| 337 | rw [PhysicalGraphBounds.radialProfile, PhysicalGraphBounds.radiusPower_eq] |
| 338 | change (PhysicalClassBounds.cartesianRadius |
| 339 | (PhysicalGraphBounds.radialProjection (z.1, CylindricalResidual.chart z.2))) ^ _ • _ = _ |
| 340 | rw [radius_forward hr] |
| 341 | unfold PhysicalMeanJetBounds.physicalPoint |
| 342 | rw [radius_forward hr, hp] |
| 343 | simp only [PhysicalResidualTZ.absoluteLiftTZ, PhysicalResidualBridge.absoluteLift, |
| 344 | PhysicalResidualTZ.swapSlow_apply, CylindricalResidual.chart, AxisymmetricResidual.pack_two] |
| 345 | |
| 346 | theorem physicalToChartTZ_eq (h : ℝ) (n k : ℕ) : |
| 347 | PhysicalResidualTZ.physicalToChartTZ h n k = VariableGaugeMean.physicalToChartTZ h n k := by |
| 348 | rfl |
| 349 | |
| 350 | theorem chartPoint_eq_graph_forward (h : ℝ) (n d : ℕ) |
| 351 | (hd : d ≤ ChartScales.nativeIndex h n) {z : SpaceTime} (hr : 0 < z.2 0) : |
| 352 | chartPoint (PhysicalResidualBridge.commonGraph (ChartScales.Q n) h |
| 353 | (ChartScales.nativeIndex h n - d)) z = |
| 354 | PhysicalMeanJetBounds.graph h n d (z.1, CylindricalResidual.chart z.2) := by |
| 355 | rw [PhysicalMeanJetBounds.graph_eq_physicalToChartTZ h n d hd, physicalPoint_forward h hr] |
| 356 | have he := congrArg Prod.fst (PhysicalResidualTZ.commonGraph_eq_physicalToChartTZ h n |
| 357 | (ChartScales.nativeIndex h n - d) hr) |
| 358 | simpa only [chartPoint, physicalToChartTZ_eq] using he |
| 359 | |
| 360 | theorem chartPoint_eq_graph {a : ℝ} (ha : 0 < a) (j : PolarCharts.Index) (h : ℝ) |
| 361 | (n d : ℕ) (hd : d ≤ ChartScales.nativeIndex h n) {w : SpaceTime} |
| 362 | (hw : w ∈ cartesianDomain a j) : |
| 363 | chartPoint (PhysicalResidualBridge.commonGraph (ChartScales.Q n) h |
| 364 | (ChartScales.nativeIndex h n - d)) (PhysicalCurlCovariance.polarCoordinates a j w) = |
| 365 | PhysicalMeanJetBounds.graph h n d w := by |
| 366 | have he := chartPoint_eq_graph_forward h n d hd (polarCoordinates_valid ha j hw).1 |
| 367 | simpa only [polarCoordinates_back ha j hw] using he |
| 368 | |
| 369 | theorem angularVector_forward {z : SpaceTime} (hr : 0 < z.2 0) : |
| 370 | PhysicalMeanJetBounds.angularVector |
| 371 | (PhysicalGraphBounds.radialProjection (z.1, CylindricalResidual.chart z.2)) = |
| 372 | CylindricalResidual.frame (z.2 1) (coordinateVector 1) := by |
| 373 | rw [PhysicalMeanJetBounds.angularVector, radius_forward hr] |
| 374 | ext i |
| 375 | fin_cases i <;> simp [PhysicalGraphBounds.radialProjection_apply, CylindricalResidual.chart, |
| 376 | CylindricalResidual.frame_apply, coordinateVector] |
| 377 | · field_simp [hr.ne'] |
| 378 | · field_simp [hr.ne'] |
| 379 | |
| 380 | theorem common_potential_units (h : ℝ) (n k : ℕ) : |
| 381 | ChartScales.Q n ^ (-(CoordinateAlgebra.A h - 1 / 2)) = |
| 382 | (PhysicalResidualBridge.commonGraph (ChartScales.Q n) h k).velocityScale / |
| 383 | (PhysicalResidualBridge.commonGraph (ChartScales.Q n) h k).radialScale := by |
| 384 | rw [PhysicalCurlCovariance.commonGraph_potentialScale (ChartScales.Q_pos n)] |
| 385 | congr 1 |
| 386 | unfold CoordinateAlgebra.A |
| 387 | ring |
| 388 | |
| 389 | theorem bandAngularField_forward (h : ℝ) (n d : ℕ) (hd : d ≤ ChartScales.nativeIndex h n) |
| 390 | (Ψ : Point → ℝ) {z : SpaceTime} (hr : 0 < z.2 0) : |
| 391 | PhysicalMeanJetBounds.bandAngularField h n d (CoordinateAlgebra.A h - 1 / 2) Ψ |
| 392 | (z.1, CylindricalResidual.chart z.2) = |
| 393 | CylindricalResidual.frame (z.2 1) (componentPotential |
| 394 | (PhysicalResidualBridge.commonGraph (ChartScales.Q n) h (ChartScales.nativeIndex h n - d)) Ψ z) := by |
| 395 | rw [PhysicalMeanJetBounds.bandAngularField, PhysicalMeanJetBounds.bandField, |
| 396 | ← chartPoint_eq_graph_forward h n d hd hr, angularVector_forward hr, |
| 397 | common_potential_units h n (ChartScales.nativeIndex h n - d)] |
| 398 | simp only [smul_eq_mul, componentPotential, AxisymmetricResidual.pack, |
| 399 | zero_smul, zero_add, add_zero, map_smul] |
| 400 | |
| 401 | theorem bandAngularField_eq_cartesianPotential {a : ℝ} (ha : 0 < a) (j : PolarCharts.Index) |
| 402 | (h : ℝ) (n d : ℕ) (hd : d ≤ ChartScales.nativeIndex h n) (Ψ : Point → ℝ) |
| 403 | {w : SpaceTime} (hw : w ∈ cartesianDomain a j) : |
| 404 | PhysicalMeanJetBounds.bandAngularField h n d (CoordinateAlgebra.A h - 1 / 2) Ψ w = |
| 405 | cartesianPotential a j |
| 406 | (PhysicalResidualBridge.commonGraph (ChartScales.Q n) h (ChartScales.nativeIndex h n - d)) Ψ w := by |
| 407 | have hb := bandAngularField_forward h n d hd Ψ (polarCoordinates_valid ha j hw).1 |
| 408 | have hp := polar_forward ha j (componentPotential |
| 409 | (PhysicalResidualBridge.commonGraph (ChartScales.Q n) h (ChartScales.nativeIndex h n - d)) Ψ) |
| 410 | (polarCoordinates_valid ha j hw) |
| 411 | rw [polarCoordinates_back ha j hw] at hb hp |
| 412 | exact hb.trans hp.symm |
| 413 | |
| 414 | theorem coherent_angularField_germ {a h : ℝ} (ha : 0 < a) (j : PolarCharts.Index) |
| 415 | {N Δ : ℕ} {U : Set (ℝ × ℝ)} |
| 416 | (D : PhysicalMeanJetBounds.CoherentFamily h (CoordinateAlgebra.A h - 1 / 2) N Δ U ℝ) |
| 417 | (hU : IsOpen U) (n : ℕ) (hn : N ≤ n) {w : SpaceTime} |
| 418 | (ht : w ∈ PhysicalWaveSum.preterminal) (hu : (PhysicalMeanJetBounds.graph h n (D.gap n) w).2.1 ∈ U) |
| 419 | (hw : w ∈ cartesianDomain a j) : |
| 420 | D.angularField =ᶠ[𝓝 w] cartesianPotential a j |
| 421 | (PhysicalResidualBridge.commonGraph (ChartScales.Q n) h |
| 422 | (ChartScales.nativeIndex h n - D.gap n)) (D.native n) := by |
| 423 | apply (D.angularField_germ hU n hn ht hu).trans |
| 424 | filter_upwards [(cartesianDomain_open a j).mem_nhds hw] with z hz |
| 425 | exact bandAngularField_eq_cartesianPotential ha j h n (D.gap n) (D.gap_native n hn) (D.native n) hz |
| 426 | |
| 427 | /-- This is a curl identity for the coherent physical field itself, obtained |
| 428 | from its proved value coherence and the actual Cartesian derivative. -/ |
| 429 | theorem coherent_angularField_curl {a h : ℝ} (ha : 0 < a) (j : PolarCharts.Index) |
| 430 | {N Δ : ℕ} {U : Set (ℝ × ℝ)} |
| 431 | (D : PhysicalMeanJetBounds.CoherentFamily h (CoordinateAlgebra.A h - 1 / 2) N Δ U ℝ) |
| 432 | (hU : IsOpen U) (n : ℕ) (hn : N ≤ n) {w : SpaceTime} |
| 433 | (ht : w ∈ PhysicalWaveSum.preterminal) (hu : (PhysicalMeanJetBounds.graph h n (D.gap n) w).2.1 ∈ U) |
| 434 | (hw : w ∈ cartesianDomain a j) |
| 435 | (hΨ : ContDiffAt ℝ ∞ (D.native n) (PhysicalMeanJetBounds.graph h n (D.gap n) w)) : |
| 436 | SpatialCurl.spatialCurl D.angularField w = |
| 437 | let G := PhysicalResidualBridge.commonGraph (ChartScales.Q n) h (ChartScales.nativeIndex h n - D.gap n) |
| 438 | CyclePhysicalPrefixes.polarVelocityMap a j (CyclePhysicalPrefixes.velocityMap G (meridional G (D.native n))) w := by |
| 439 | rw [PhysicalCurlCovariance.spatialCurl_congr (coherent_angularField_germ ha j D hU n hn ht hu hw)] |
| 440 | apply cartesianPotential_curl ha j _ (Real.rpow_pos_of_pos (ChartScales.Q_pos n) _) hw |
| 441 | rwa [chartPoint_eq_graph ha j h n (D.gap n) (D.gap_native n hn) hw] |
| 442 | |
| 443 | /-- For the reconstructed mean stream, smoothness of the scalar potential is |
| 444 | proved from the supported axial source. No curl identity or smoothness of the |
| 445 | output is an input. The radial exponent and frequency are the physical ones. -/ |
| 446 | theorem reconstructStream_curl {a b h ρ : ℝ} (hρ : 0 < ρ) (j : PolarCharts.Index) |
| 447 | (U : LocalSignedRequest.SlowRegion (2 * h)) {N Δ : ℕ} |
| 448 | (D : PhysicalMeanJetBounds.CoherentFamily h (CoordinateAlgebra.A h) N Δ U.carrier ℝ) |
| 449 | (hh : 0 < h) (hh1 : h < 1 / 2) (ha : 0 < a) (hab : a < b) |
| 450 | (hf : ∀ n ≥ N, ContDiffOn ℝ ∞ (D.native n) (PhysicalMeanDomain.slowDomain U.carrier)) |
| 451 | (hs : PhysicalMeanJetBounds.NativeSupport h a b N U.carrier D.native) |
| 452 | (n : ℕ) (hn : N ≤ n) {w : SpaceTime} |
| 453 | (ht : w ∈ PhysicalWaveSum.preterminal) |
| 454 | (hu : (PhysicalMeanJetBounds.graph h n (D.gap n) w).2.1 ∈ U.carrier) |
| 455 | (hw : w ∈ cartesianDomain ρ j) : |
| 456 | let R := D.reconstructStream hh hh1 ha hab (ChartScales.radialExponent_pos h hh.le) |
| 457 | 1 U.isOpen hf hs |
| 458 | SpatialCurl.spatialCurl R.angularField w = |
| 459 | let G := PhysicalResidualBridge.commonGraph (ChartScales.Q n) h |
| 460 | (ChartScales.nativeIndex h n - D.gap n) |
| 461 | CyclePhysicalPrefixes.polarVelocityMap ρ j |
| 462 | (CyclePhysicalPrefixes.velocityMap G (meridional G (R.native n))) w := by |
| 463 | dsimp only |
| 464 | apply coherent_angularField_curl hρ j |
| 465 | (D.reconstructStream hh hh1 ha hab (ChartScales.radialExponent_pos h hh.le) 1 U.isOpen hf hs) |
| 466 | U.isOpen n hn ht hu hw |
| 467 | exact (VariableGaugeMean.streamPotential_q_contDiffOn U ha hab |
| 468 | (ChartScales.radialExponent_pos h hh.le) _ _ (hf n hn) (hs n hn)).contDiffAt |
| 469 | ((PhysicalMeanDomain.slowDomain_open U.isOpen).mem_nhds hu) |
| 470 | |
| 471 | /-! ## Finite sums of the actual potentials -/ |
| 472 | |
| 473 | theorem cartesianPotential_finset_curl {ι : Type} (S : Finset ι) |
| 474 | {a : ℝ} (ha : 0 < a) (j : PolarCharts.Index) (G : ScaledGraph) |
| 475 | (hl : 0 < G.radialScale) (Ψ : ι → Point → ℝ) {w : SpaceTime} |
| 476 | (hw : w ∈ cartesianDomain a j) |
| 477 | (hΨ : ∀ i ∈ S, ContDiffAt ℝ ∞ (Ψ i) |
| 478 | (chartPoint G (PhysicalCurlCovariance.polarCoordinates a j w))) : |
| 479 | SpatialCurl.spatialCurl (fun z => ∑ i ∈ S, cartesianPotential a j G (Ψ i) z) w = |
| 480 | CyclePhysicalPrefixes.polarVelocityMap a j |
| 481 | (CyclePhysicalPrefixes.velocityMap G (∑ i ∈ S, meridional G (Ψ i))) w := by |
| 482 | rw [PhysicalParticularWave.spatialCurl_finset_sum S _ (fun i hi => |
| 483 | (cartesianPotential_smoothAt ha j G |
| 484 | (mul_pos hl (polarCoordinates_valid ha j hw).1).ne' (hΨ i hi)).differentiableAt (by simp))] |
| 485 | simp only [map_sum, Finset.sum_apply] |
| 486 | exact Finset.sum_congr rfl (fun i hi => cartesianPotential_curl ha j G hl hw (hΨ i hi)) |
| 487 | |
| 488 | theorem cartesianPotential_add_curl {a : ℝ} (ha : 0 < a) (j : PolarCharts.Index) |
| 489 | (G : ScaledGraph) (hl : 0 < G.radialScale) (Ψ Φ : Point → ℝ) {w : SpaceTime} |
| 490 | (hw : w ∈ cartesianDomain a j) |
| 491 | (hΨ : ContDiffAt ℝ ∞ Ψ (chartPoint G (PhysicalCurlCovariance.polarCoordinates a j w))) |
| 492 | (hΦ : ContDiffAt ℝ ∞ Φ (chartPoint G (PhysicalCurlCovariance.polarCoordinates a j w))) : |
| 493 | SpatialCurl.spatialCurl (cartesianPotential a j G Ψ + cartesianPotential a j G Φ) w = |
| 494 | CyclePhysicalPrefixes.polarVelocityMap a j |
| 495 | (CyclePhysicalPrefixes.velocityMap G (meridional G Ψ + meridional G Φ)) w := by |
| 496 | have he := cartesianPotential_finset_curl (Finset.univ : Finset (Fin 2)) ha j G hl ![Ψ, Φ] hw |
| 497 | (by |
| 498 | intro i hi |
| 499 | fin_cases i |
| 500 | · exact hΨ |
| 501 | · exact hΦ) |
| 502 | simp only [Fin.sum_univ_two, Matrix.cons_val_zero, Matrix.cons_val_one] at he ⊢ |
| 503 | exact he |
| 504 | |
| 505 | theorem meridionalComponents_updated (m t : MeanIncrementBounds.Triple Point) (n : ℕ) : |
| 506 | CyclePhysicalPrefixes.meridionalComponents (MeanIncrementBounds.updated m t) n = |
| 507 | CyclePhysicalPrefixes.meridionalComponents m n + CyclePhysicalPrefixes.meridionalComponents t n := by |
| 508 | funext x i |
| 509 | fin_cases i <;> simp [CyclePhysicalPrefixes.meridionalComponents, MeanIncrementBounds.updated] |
| 510 | |
| 511 | /-- The temporal and rank inputs may be successive actual states. Their |
| 512 | potentials realize exactly the radial/axial parts of those literal increments. -/ |
| 513 | theorem temporal_rank_curl {a : ℝ} (ha : 0 < a) (j : PolarCharts.Index) |
| 514 | (g : VariableGaugeMean.GaugeData (ℝ × ℝ)) (r : CorrectionState.RankData (ℝ × ℝ)) |
| 515 | (h : ℝ) (index : ℕ → ℕ) (c : CorrectionState.Context Point) |
| 516 | (ut ur : CorrectionState.State Point) (G : ScaledGraph) (hl : 0 < G.radialScale) |
| 517 | (n : ℕ) (H : GaugeMatches g c G n) {w : SpaceTime} (hw : w ∈ cartesianDomain a j) |
| 518 | (ht : ContDiffAt ℝ ∞ (VariableGaugeMean.temporalPotential g h index c ut n) |
| 519 | (chartPoint G (PhysicalCurlCovariance.polarCoordinates a j w))) |
| 520 | (hr : ContDiffAt ℝ ∞ (VariableGaugeMean.rankPotential g r c ur n) |
| 521 | (chartPoint G (PhysicalCurlCovariance.polarCoordinates a j w))) : |
| 522 | SpatialCurl.spatialCurl |
| 523 | (cartesianPotential a j G (VariableGaugeMean.temporalPotential g h index c ut n) + |
| 524 | cartesianPotential a j G (VariableGaugeMean.rankPotential g r c ur n)) w = |
| 525 | CyclePhysicalPrefixes.polarVelocityMap a j (CyclePhysicalPrefixes.velocityMap G |
| 526 | (CyclePhysicalPrefixes.meridionalComponents |
| 527 | (VariableGaugeMean.temporalIncrementState g h index axial c ut) n + |
| 528 | CyclePhysicalPrefixes.meridionalComponents |
| 529 | (VariableGaugeMean.rankIncrementState g r axial c ur) n)) w := by |
| 530 | rw [cartesianPotential_add_curl ha j G hl _ _ hw ht hr, |
| 531 | meridional_temporal g h index c ut G n H, meridional_rank g r c ur G n H] |
| 532 | |
| 533 | open CorrectionState CorrectionStep |
| 534 | |
| 535 | /-- The two scalar streams are evaluated at the actual successive states of |
| 536 | the four-stage cycle. -/ |
| 537 | noncomputable def cycleMeanPotential {ι : Type} (p : CycleParameters ι) |
| 538 | (v : CycleCoefficients ι) (c : Context Point) (u : State Point) |
| 539 | (a : ℝ) (j : PolarCharts.Index) (G : ScaledGraph) (n : ℕ) : VelocityField := |
| 540 | cartesianPotential a j G |
| 541 | (VariableGaugeMean.temporalPotential p.gauge p.timeExponent p.commonIndex c (p.afterSigned v c u) n) + |
| 542 | cartesianPotential a j G |
| 543 | (VariableGaugeMean.rankPotential p.gauge p.rank c (p.afterTemporal v c u) n) |
| 544 | |
| 545 | theorem cycleMeanPotential_curl {ι : Type} (p : CycleParameters ι) (v : CycleCoefficients ι) |
| 546 | (c : Context Point) (u : State Point) {a : ℝ} (ha : 0 < a) (j : PolarCharts.Index) |
| 547 | (G : ScaledGraph) (hl : 0 < G.radialScale) (n : ℕ) (H : GaugeMatches p.gauge c G n) |
| 548 | (hax : p.axial = axial) {w : SpaceTime} (hw : w ∈ cartesianDomain a j) |
| 549 | (ht : ContDiffAt ℝ ∞ |
| 550 | (VariableGaugeMean.temporalPotential p.gauge p.timeExponent p.commonIndex c (p.afterSigned v c u) n) |
| 551 | (chartPoint G (PhysicalCurlCovariance.polarCoordinates a j w))) |
| 552 | (hr : ContDiffAt ℝ ∞ (VariableGaugeMean.rankPotential p.gauge p.rank c (p.afterTemporal v c u) n) |
| 553 | (chartPoint G (PhysicalCurlCovariance.polarCoordinates a j w))) : |
| 554 | SpatialCurl.spatialCurl (cycleMeanPotential p v c u a j G n) w = |
| 555 | CyclePhysicalPrefixes.polarVelocityMap a j (CyclePhysicalPrefixes.velocityMap G |
| 556 | (CyclePhysicalPrefixes.meridionalComponents (p.temporalIncrement v c u) n + |
| 557 | CyclePhysicalPrefixes.meridionalComponents (p.rankIncrement v c u) n)) w := by |
| 558 | simpa only [cycleMeanPotential, CycleParameters.temporalIncrement, CycleParameters.rankIncrement, hax] |
| 559 | using temporal_rank_curl ha j p.gauge p.rank p.timeExponent p.commonIndex c |
| 560 | (p.afterSigned v c u) (p.afterTemporal v c u) G hl n H hw ht hr |
| 561 | |
| 562 | theorem cycleMeanPotential_smoothAt {ι : Type} (p : CycleParameters ι) (v : CycleCoefficients ι) |
| 563 | (c : Context Point) (u : State Point) {a : ℝ} (ha : 0 < a) (j : PolarCharts.Index) |
| 564 | (G : ScaledGraph) (hl : 0 < G.radialScale) (n : ℕ) {w : SpaceTime} (hw : w ∈ cartesianDomain a j) |
| 565 | (ht : ContDiffAt ℝ ∞ |
| 566 | (VariableGaugeMean.temporalPotential p.gauge p.timeExponent p.commonIndex c (p.afterSigned v c u) n) |
| 567 | (chartPoint G (PhysicalCurlCovariance.polarCoordinates a j w))) |
| 568 | (hr : ContDiffAt ℝ ∞ (VariableGaugeMean.rankPotential p.gauge p.rank c (p.afterTemporal v c u) n) |
| 569 | (chartPoint G (PhysicalCurlCovariance.polarCoordinates a j w))) : |
| 570 | ContDiffAt ℝ ∞ (cycleMeanPotential p v c u a j G n) w := |
| 571 | (cartesianPotential_smoothAt ha j G (mul_pos hl (polarCoordinates_valid ha j hw).1).ne' ht).add |
| 572 | (cartesianPotential_smoothAt ha j G (mul_pos hl (polarCoordinates_valid ha j hw).1).ne' hr) |
| 573 | |
| 574 | /-! ## The actual initialized mean -/ |
| 575 | |
| 576 | open CorrectionInitialization CorrectionInitialization.GaugeInitialization |
| 577 | |
| 578 | noncomputable def initializedMeanPotential {ι : Type} |
| 579 | (g : VariableGaugeMean.GaugeData (ℝ × ℝ)) (r : RankData (ℝ × ℝ)) |
| 580 | (h : ℝ) (index : ℕ → ℕ) (c : Context Point) |
| 581 | (labels : ℕ → Finset ι) (pieces : ι → PrimaryPiece (Point × ℝ)) |
| 582 | (baseError : Oscillation Point) (a : ℝ) (j : PolarCharts.Index) (G : ScaledGraph) (n : ℕ) : |
| 583 | VelocityField := |
| 584 | cartesianPotential a j G (VariableGaugeMean.temporalPotential g h index c |
| 585 | (primaryBands g c labels pieces baseError) n) + |
| 586 | cartesianPotential a j G (VariableGaugeMean.rankPotential g r c |
| 587 | (temporalBands g h index axial c labels pieces baseError) n) |
| 588 | |
| 589 | theorem initializedBands_mean {ι : Type} |
| 590 | (g : VariableGaugeMean.GaugeData (ℝ × ℝ)) (r : RankData (ℝ × ℝ)) |
| 591 | (h : ℝ) (index : ℕ → ℕ) (c : Context Point) |
| 592 | (labels : ℕ → Finset ι) (pieces : ι → PrimaryPiece (Point × ℝ)) |
| 593 | (baseError : Oscillation Point) : |
| 594 | (initializedBands g r h index axial c labels pieces baseError).mean = |
| 595 | MeanIncrementBounds.updated |
| 596 | (VariableGaugeMean.temporalIncrementState g h index axial c (primaryBands g c labels pieces baseError)) |
| 597 | (VariableGaugeMean.rankIncrementState g r axial c |
| 598 | (temporalBands g h index axial c labels pieces baseError)) := by |
| 599 | change MeanIncrementBounds.updated |
| 600 | (MeanIncrementBounds.updated ⟨0, 0, 0⟩ |
| 601 | (VariableGaugeMean.temporalIncrementState g h index axial c (primaryBands g c labels pieces baseError))) |
| 602 | (VariableGaugeMean.rankIncrementState g r axial c |
| 603 | (temporalBands g h index axial c labels pieces baseError)) = _ |
| 604 | simp only [MeanIncrementBounds.updated, zero_add] |
| 605 | |
| 606 | /-- The initial mean potential is the sum of the two actual initialized |
| 607 | streams. Its curl equals the initialized mean's meridional components. -/ |
| 608 | theorem initializedMeanPotential_curl {ι : Type} |
| 609 | (g : VariableGaugeMean.GaugeData (ℝ × ℝ)) (r : RankData (ℝ × ℝ)) |
| 610 | (h : ℝ) (index : ℕ → ℕ) (c : Context Point) |
| 611 | (labels : ℕ → Finset ι) (pieces : ι → PrimaryPiece (Point × ℝ)) |
| 612 | (baseError : Oscillation Point) {a : ℝ} (ha : 0 < a) (j : PolarCharts.Index) |
| 613 | (G : ScaledGraph) (hl : 0 < G.radialScale) (n : ℕ) (H : GaugeMatches g c G n) |
| 614 | {w : SpaceTime} (hw : w ∈ cartesianDomain a j) |
| 615 | (ht : ContDiffAt ℝ ∞ (VariableGaugeMean.temporalPotential g h index c |
| 616 | (primaryBands g c labels pieces baseError) n) |
| 617 | (chartPoint G (PhysicalCurlCovariance.polarCoordinates a j w))) |
| 618 | (hr : ContDiffAt ℝ ∞ (VariableGaugeMean.rankPotential g r c |
| 619 | (temporalBands g h index axial c labels pieces baseError) n) |
| 620 | (chartPoint G (PhysicalCurlCovariance.polarCoordinates a j w))) : |
| 621 | SpatialCurl.spatialCurl (initializedMeanPotential g r h index c labels pieces baseError a j G n) w = |
| 622 | CyclePhysicalPrefixes.polarVelocityMap a j (CyclePhysicalPrefixes.velocityMap G |
| 623 | (CyclePhysicalPrefixes.meridionalComponents |
| 624 | (initializedBands g r h index axial c labels pieces baseError).mean n)) w := by |
| 625 | rw [initializedBands_mean, meridionalComponents_updated] |
| 626 | exact temporal_rank_curl ha j g r h index c _ _ G hl n H hw ht hr |
| 627 | |
| 628 | /-! ## Finite prefixes of the literal iteration -/ |
| 629 | |
| 630 | noncomputable def meanIncrementComponents {ι : Type} (p : CycleParameters ι) |
| 631 | (v : CycleCoefficients ι) (c : Context Point) (u : State Point) (n : ℕ) : |
| 632 | CyclePhysicalPrefixes.Components := |
| 633 | CyclePhysicalPrefixes.meridionalComponents (p.temporalIncrement v c u) n + |
| 634 | CyclePhysicalPrefixes.meridionalComponents (p.rankIncrement v c u) n |
| 635 | |
| 636 | theorem meridionalComponents_next {ι : Type} (p : CycleParameters ι) |
| 637 | (v : CycleCoefficients ι) (c : Context Point) (u : State Point) (n : ℕ) : |
| 638 | CyclePhysicalPrefixes.meridionalComponents (p.next v c u).mean n = |
| 639 | CyclePhysicalPrefixes.meridionalComponents u.mean n + meanIncrementComponents p v c u n := by |
| 640 | rw [p.next_mean, meridionalComponents_updated, meridionalComponents_updated] |
| 641 | exact add_assoc _ _ _ |
| 642 | |
| 643 | theorem meridionalComponents_iterate {ι : Type} (p : ℕ → CycleParameters ι) |
| 644 | (c : Context Point) (seed : CycleState ι) (n J : ℕ) : |
| 645 | CyclePhysicalPrefixes.meridionalComponents (CycleState.iterate p c seed J).state.mean n = |
| 646 | CyclePhysicalPrefixes.meridionalComponents seed.state.mean n + |
| 647 | ∑ k ∈ Finset.range J, meanIncrementComponents (p k) |
| 648 | (CycleState.iterate p c seed k).coefficients c (CycleState.iterate p c seed k).state n := by |
| 649 | induction J with |
| 650 | | zero => simp only [CycleState.iterate_zero, Finset.range_zero, Finset.sum_empty, add_zero] |
| 651 | | succ J ih => |
| 652 | change CyclePhysicalPrefixes.meridionalComponents |
| 653 | ((p J).next (CycleState.iterate p c seed J).coefficients c (CycleState.iterate p c seed J).state).mean n = _ |
| 654 | rw [meridionalComponents_next, ih, Finset.sum_range_succ, add_assoc] |
| 655 | |
| 656 | /-- The finite sum is evaluated on the actual successive cycle states. -/ |
| 657 | noncomputable def cycleMeanPrefix {ι : Type} (p : ℕ → CycleParameters ι) |
| 658 | (c : Context Point) (seed : CycleState ι) |
| 659 | (a : ℝ) (j : PolarCharts.Index) (G : ScaledGraph) (n J : ℕ) : VelocityField := |
| 660 | fun w => ∑ k ∈ Finset.range J, cycleMeanPotential (p k) |
| 661 | (CycleState.iterate p c seed k).coefficients c (CycleState.iterate p c seed k).state a j G n w |
| 662 | |
| 663 | theorem cycleMeanPrefix_curl {ι : Type} (p : ℕ → CycleParameters ι) |
| 664 | (c : Context Point) (seed : CycleState ι) {a : ℝ} (ha : 0 < a) |
| 665 | (j : PolarCharts.Index) (G : ScaledGraph) (hl : 0 < G.radialScale) (n J : ℕ) |
| 666 | (H : ∀ k < J, GaugeMatches (p k).gauge c G n) |
| 667 | (hax : ∀ k < J, (p k).axial = axial) {w : SpaceTime} (hw : w ∈ cartesianDomain a j) |
| 668 | (ht : ∀ k < J, ContDiffAt ℝ ∞ |
| 669 | (VariableGaugeMean.temporalPotential (p k).gauge (p k).timeExponent (p k).commonIndex c |
| 670 | ((p k).afterSigned (CycleState.iterate p c seed k).coefficients c (CycleState.iterate p c seed k).state) n) |
| 671 | (chartPoint G (PhysicalCurlCovariance.polarCoordinates a j w))) |
| 672 | (hr : ∀ k < J, ContDiffAt ℝ ∞ |
| 673 | (VariableGaugeMean.rankPotential (p k).gauge (p k).rank c |
| 674 | ((p k).afterTemporal (CycleState.iterate p c seed k).coefficients c (CycleState.iterate p c seed k).state) n) |
| 675 | (chartPoint G (PhysicalCurlCovariance.polarCoordinates a j w))) : |
| 676 | SpatialCurl.spatialCurl (cycleMeanPrefix p c seed a j G n J) w = |
| 677 | CyclePhysicalPrefixes.polarVelocityMap a j (CyclePhysicalPrefixes.velocityMap G |
| 678 | (CyclePhysicalPrefixes.meridionalComponents (CycleState.iterate p c seed J).state.mean n - |
| 679 | CyclePhysicalPrefixes.meridionalComponents seed.state.mean n)) w := by |
| 680 | rw [meridionalComponents_iterate, add_sub_cancel_left] |
| 681 | unfold cycleMeanPrefix |
| 682 | rw [PhysicalParticularWave.spatialCurl_finset_sum _ _ (fun k hk => |
| 683 | (cycleMeanPotential_smoothAt (p k) _ c _ ha j G hl n hw |
| 684 | (ht k (Finset.mem_range.mp hk)) (hr k (Finset.mem_range.mp hk))).differentiableAt (by simp))] |
| 685 | simp only [map_sum, Finset.sum_apply] |
| 686 | exact Finset.sum_congr rfl (fun k hk => cycleMeanPotential_curl (p k) _ c _ ha j G hl n |
| 687 | (H k (Finset.mem_range.mp hk)) (hax k (Finset.mem_range.mp hk)) hw |
| 688 | (ht k (Finset.mem_range.mp hk)) (hr k (Finset.mem_range.mp hk))) |
| 689 | |
| 690 | end NavierStokes.ActualMeanPotentialRealization |