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 | /-! ## Identification with the coherent physical mean potential -/ |
| 294 | |
| 295 | theorem projection_forward (z : SpaceTime) : |
| 296 | PhysicalGraphBounds.radialProjection (z.1, CylindricalResidual.chart z.2) = |
| 297 | PolarCharts.polar (z.2 0, z.2 1) := by |
| 298 | simp [PhysicalGraphBounds.radialProjection_apply, CylindricalResidual.chart, PolarCharts.polar] |
| 299 | |
| 300 | theorem radius_forward {z : SpaceTime} (hr : 0 < z.2 0) : |
| 301 | PhysicalClassBounds.cartesianRadius |
| 302 | (PhysicalGraphBounds.radialProjection (z.1, CylindricalResidual.chart z.2)) = z.2 0 := by |
| 303 | change PolarCharts.radius (PhysicalGraphBounds.radialProjection (z.1, CylindricalResidual.chart z.2)) = _ |
| 304 | rw [projection_forward, PolarCharts.radius_polar, abs_of_pos hr] |
| 305 | |
| 306 | theorem physicalPoint_forward (h : ℝ) {z : SpaceTime} (hr : 0 < z.2 0) : |
| 307 | PhysicalMeanJetBounds.physicalPoint h (z.1, CylindricalResidual.chart z.2) = |
| 308 | PhysicalResidualTZ.absoluteLiftTZ h z := by |
| 309 | have hp : PhysicalGraphBounds.radialProfile (ChartScales.radialExponent h) |
| 310 | (PhysicalGraphBounds.radialProjection (z.1, CylindricalResidual.chart z.2)) = |
| 311 | (z.2 0) ^ ChartScales.radialExponent h • PhysicalGraphBounds.radialDirection := by |
| 312 | rw [PhysicalGraphBounds.radialProfile, PhysicalGraphBounds.radiusPower_eq] |
| 313 | change (PhysicalClassBounds.cartesianRadius |
| 314 | (PhysicalGraphBounds.radialProjection (z.1, CylindricalResidual.chart z.2))) ^ _ • _ = _ |
| 315 | rw [radius_forward hr] |
| 316 | unfold PhysicalMeanJetBounds.physicalPoint |
| 317 | rw [radius_forward hr, hp] |
| 318 | simp only [PhysicalResidualTZ.absoluteLiftTZ, PhysicalResidualBridge.absoluteLift, |
| 319 | PhysicalResidualTZ.swapSlow_apply, CylindricalResidual.chart, AxisymmetricResidual.pack_two] |
| 320 | |
| 321 | theorem physicalToChartTZ_eq (h : ℝ) (n k : ℕ) : |
| 322 | PhysicalResidualTZ.physicalToChartTZ h n k = VariableGaugeMean.physicalToChartTZ h n k := by |
| 323 | rfl |
| 324 | |
| 325 | theorem chartPoint_eq_graph_forward (h : ℝ) (n d : ℕ) |
| 326 | (hd : d ≤ ChartScales.nativeIndex h n) {z : SpaceTime} (hr : 0 < z.2 0) : |
| 327 | chartPoint (PhysicalResidualBridge.commonGraph (ChartScales.Q n) h |
| 328 | (ChartScales.nativeIndex h n - d)) z = |
| 329 | PhysicalMeanJetBounds.graph h n d (z.1, CylindricalResidual.chart z.2) := by |
| 330 | rw [PhysicalMeanJetBounds.graph_eq_physicalToChartTZ h n d hd, physicalPoint_forward h hr] |
| 331 | have he := congrArg Prod.fst (PhysicalResidualTZ.commonGraph_eq_physicalToChartTZ h n |
| 332 | (ChartScales.nativeIndex h n - d) hr) |
| 333 | simpa only [chartPoint, physicalToChartTZ_eq] using he |
| 334 | |
| 335 | theorem chartPoint_eq_graph {a : ℝ} (ha : 0 < a) (j : PolarCharts.Index) (h : ℝ) |
| 336 | (n d : ℕ) (hd : d ≤ ChartScales.nativeIndex h n) {w : SpaceTime} |
| 337 | (hw : w ∈ cartesianDomain a j) : |
| 338 | chartPoint (PhysicalResidualBridge.commonGraph (ChartScales.Q n) h |
| 339 | (ChartScales.nativeIndex h n - d)) (PhysicalCurlCovariance.polarCoordinates a j w) = |
| 340 | PhysicalMeanJetBounds.graph h n d w := by |
| 341 | have he := chartPoint_eq_graph_forward h n d hd (polarCoordinates_valid ha j hw).1 |
| 342 | simpa only [polarCoordinates_back ha j hw] using he |
| 343 | |
| 344 | theorem angularVector_forward {z : SpaceTime} (hr : 0 < z.2 0) : |
| 345 | PhysicalMeanJetBounds.angularVector |
| 346 | (PhysicalGraphBounds.radialProjection (z.1, CylindricalResidual.chart z.2)) = |
| 347 | CylindricalResidual.frame (z.2 1) (coordinateVector 1) := by |
| 348 | rw [PhysicalMeanJetBounds.angularVector, radius_forward hr] |
| 349 | ext i |
| 350 | fin_cases i <;> simp [PhysicalGraphBounds.radialProjection_apply, CylindricalResidual.chart, |
| 351 | CylindricalResidual.frame_apply, coordinateVector] |
| 352 | · field_simp [hr.ne'] |
| 353 | · field_simp [hr.ne'] |
| 354 | |
| 355 | theorem common_potential_units (h : ℝ) (n k : ℕ) : |
| 356 | ChartScales.Q n ^ (-(CoordinateAlgebra.A h - 1 / 2)) = |
| 357 | (PhysicalResidualBridge.commonGraph (ChartScales.Q n) h k).velocityScale / |
| 358 | (PhysicalResidualBridge.commonGraph (ChartScales.Q n) h k).radialScale := by |
| 359 | rw [PhysicalCurlCovariance.commonGraph_potentialScale (ChartScales.Q_pos n)] |
| 360 | congr 1 |
| 361 | unfold CoordinateAlgebra.A |
| 362 | ring |
| 363 | |
| 364 | theorem bandAngularField_forward (h : ℝ) (n d : ℕ) (hd : d ≤ ChartScales.nativeIndex h n) |
| 365 | (Ψ : Point → ℝ) {z : SpaceTime} (hr : 0 < z.2 0) : |
| 366 | PhysicalMeanJetBounds.bandAngularField h n d (CoordinateAlgebra.A h - 1 / 2) Ψ |
| 367 | (z.1, CylindricalResidual.chart z.2) = |
| 368 | CylindricalResidual.frame (z.2 1) (componentPotential |
| 369 | (PhysicalResidualBridge.commonGraph (ChartScales.Q n) h (ChartScales.nativeIndex h n - d)) Ψ z) := by |
| 370 | rw [PhysicalMeanJetBounds.bandAngularField, PhysicalMeanJetBounds.bandField, |
| 371 | ← chartPoint_eq_graph_forward h n d hd hr, angularVector_forward hr, |
| 372 | common_potential_units h n (ChartScales.nativeIndex h n - d)] |
| 373 | simp only [smul_eq_mul, componentPotential, AxisymmetricResidual.pack, |
| 374 | zero_smul, zero_add, add_zero, map_smul] |
| 375 | |
| 376 | theorem bandAngularField_eq_cartesianPotential {a : ℝ} (ha : 0 < a) (j : PolarCharts.Index) |
| 377 | (h : ℝ) (n d : ℕ) (hd : d ≤ ChartScales.nativeIndex h n) (Ψ : Point → ℝ) |
| 378 | {w : SpaceTime} (hw : w ∈ cartesianDomain a j) : |
| 379 | PhysicalMeanJetBounds.bandAngularField h n d (CoordinateAlgebra.A h - 1 / 2) Ψ w = |
| 380 | cartesianPotential a j |
| 381 | (PhysicalResidualBridge.commonGraph (ChartScales.Q n) h (ChartScales.nativeIndex h n - d)) Ψ w := by |
| 382 | have hb := bandAngularField_forward h n d hd Ψ (polarCoordinates_valid ha j hw).1 |
| 383 | have hp := polar_forward ha j (componentPotential |
| 384 | (PhysicalResidualBridge.commonGraph (ChartScales.Q n) h (ChartScales.nativeIndex h n - d)) Ψ) |
| 385 | (polarCoordinates_valid ha j hw) |
| 386 | rw [polarCoordinates_back ha j hw] at hb hp |
| 387 | exact hb.trans hp.symm |
| 388 | |
| 389 | theorem coherent_angularField_germ {a h : ℝ} (ha : 0 < a) (j : PolarCharts.Index) |
| 390 | {N Δ : ℕ} {U : Set (ℝ × ℝ)} |
| 391 | (D : PhysicalMeanJetBounds.CoherentFamily h (CoordinateAlgebra.A h - 1 / 2) N Δ U ℝ) |
| 392 | (hU : IsOpen U) (n : ℕ) (hn : N ≤ n) {w : SpaceTime} |
| 393 | (ht : w ∈ PhysicalWaveSum.preterminal) (hu : (PhysicalMeanJetBounds.graph h n (D.gap n) w).2.1 ∈ U) |
| 394 | (hw : w ∈ cartesianDomain a j) : |
| 395 | D.angularField =ᶠ[𝓝 w] cartesianPotential a j |
| 396 | (PhysicalResidualBridge.commonGraph (ChartScales.Q n) h |
| 397 | (ChartScales.nativeIndex h n - D.gap n)) (D.native n) := by |
| 398 | apply (D.angularField_germ hU n hn ht hu).trans |
| 399 | filter_upwards [(cartesianDomain_open a j).mem_nhds hw] with z hz |
| 400 | exact bandAngularField_eq_cartesianPotential ha j h n (D.gap n) (D.gap_native n hn) (D.native n) hz |
| 401 | |
| 402 | /-! ## Finite sums of the actual potentials -/ |
| 403 | |
| 404 | theorem cartesianPotential_finset_curl {ι : Type} (S : Finset ι) |
| 405 | {a : ℝ} (ha : 0 < a) (j : PolarCharts.Index) (G : ScaledGraph) |
| 406 | (hl : 0 < G.radialScale) (Ψ : ι → Point → ℝ) {w : SpaceTime} |
| 407 | (hw : w ∈ cartesianDomain a j) |
| 408 | (hΨ : ∀ i ∈ S, ContDiffAt ℝ ∞ (Ψ i) |
| 409 | (chartPoint G (PhysicalCurlCovariance.polarCoordinates a j w))) : |
| 410 | SpatialCurl.spatialCurl (fun z => ∑ i ∈ S, cartesianPotential a j G (Ψ i) z) w = |
| 411 | CyclePhysicalPrefixes.polarVelocityMap a j |
| 412 | (CyclePhysicalPrefixes.velocityMap G (∑ i ∈ S, meridional G (Ψ i))) w := by |
| 413 | rw [PhysicalParticularWave.spatialCurl_finset_sum S _ (fun i hi => |
| 414 | (cartesianPotential_smoothAt ha j G |
| 415 | (mul_pos hl (polarCoordinates_valid ha j hw).1).ne' (hΨ i hi)).differentiableAt (by simp))] |
| 416 | simp only [map_sum, Finset.sum_apply] |
| 417 | exact Finset.sum_congr rfl (fun i hi => cartesianPotential_curl ha j G hl hw (hΨ i hi)) |
| 418 | |
| 419 | theorem cartesianPotential_add_curl {a : ℝ} (ha : 0 < a) (j : PolarCharts.Index) |
| 420 | (G : ScaledGraph) (hl : 0 < G.radialScale) (Ψ Φ : Point → ℝ) {w : SpaceTime} |
| 421 | (hw : w ∈ cartesianDomain a j) |
| 422 | (hΨ : ContDiffAt ℝ ∞ Ψ (chartPoint G (PhysicalCurlCovariance.polarCoordinates a j w))) |
| 423 | (hΦ : ContDiffAt ℝ ∞ Φ (chartPoint G (PhysicalCurlCovariance.polarCoordinates a j w))) : |
| 424 | SpatialCurl.spatialCurl (cartesianPotential a j G Ψ + cartesianPotential a j G Φ) w = |
| 425 | CyclePhysicalPrefixes.polarVelocityMap a j |
| 426 | (CyclePhysicalPrefixes.velocityMap G (meridional G Ψ + meridional G Φ)) w := by |
| 427 | have he := cartesianPotential_finset_curl (Finset.univ : Finset (Fin 2)) ha j G hl ![Ψ, Φ] hw |
| 428 | (by |
| 429 | intro i hi |
| 430 | fin_cases i |
| 431 | · exact hΨ |
| 432 | · exact hΦ) |
| 433 | simp only [Fin.sum_univ_two, Matrix.cons_val_zero, Matrix.cons_val_one] at he ⊢ |
| 434 | exact he |
| 435 | |
| 436 | theorem meridionalComponents_updated (m t : MeanIncrementBounds.Triple Point) (n : ℕ) : |
| 437 | CyclePhysicalPrefixes.meridionalComponents (MeanIncrementBounds.updated m t) n = |
| 438 | CyclePhysicalPrefixes.meridionalComponents m n + CyclePhysicalPrefixes.meridionalComponents t n := by |
| 439 | funext x i |
| 440 | fin_cases i <;> simp [CyclePhysicalPrefixes.meridionalComponents, MeanIncrementBounds.updated] |
| 441 | |
| 442 | open CorrectionState CorrectionStep |
| 443 | |
| 444 | /-! ## The actual initialized mean -/ |
| 445 | |
| 446 | open CorrectionInitialization CorrectionInitialization.GaugeInitialization |
| 447 | |
| 448 | theorem initializedBands_mean {ι : Type} |
| 449 | (g : VariableGaugeMean.GaugeData (ℝ × ℝ)) (r : RankData (ℝ × ℝ)) |
| 450 | (h : ℝ) (index : ℕ → ℕ) (c : Context Point) |
| 451 | (labels : ℕ → Finset ι) (pieces : ι → PrimaryPiece (Point × ℝ)) |
| 452 | (baseError : Oscillation Point) : |
| 453 | (initializedBands g r h index axial c labels pieces baseError).mean = |
| 454 | MeanIncrementBounds.updated |
| 455 | (VariableGaugeMean.temporalIncrementState g h index axial c (primaryBands g c labels pieces baseError)) |
| 456 | (VariableGaugeMean.rankIncrementState g r axial c |
| 457 | (temporalBands g h index axial c labels pieces baseError)) := by |
| 458 | change MeanIncrementBounds.updated |
| 459 | (MeanIncrementBounds.updated ⟨0, 0, 0⟩ |
| 460 | (VariableGaugeMean.temporalIncrementState g h index axial c (primaryBands g c labels pieces baseError))) |
| 461 | (VariableGaugeMean.rankIncrementState g r axial c |
| 462 | (temporalBands g h index axial c labels pieces baseError)) = _ |
| 463 | simp only [MeanIncrementBounds.updated, zero_add] |
| 464 | |
| 465 | /-! ## Finite prefixes of the literal iteration -/ |
| 466 | |
| 467 | end NavierStokes.ActualMeanPotentialRealization |