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.ProfileSpectralCone |
| 2 | import NavierStokes.EntranceAlignedBase |
| 3 | |
| 4 | /-! |
| 5 | # The spectral cone of the actual aligned modulated base |
| 6 | |
| 7 | This module binds the generic profile and physical-shear identities to the |
| 8 | same finite modulation, aligned coefficient family, and covariance target. |
| 9 | -/ |
| 10 | |
| 11 | noncomputable section |
| 12 | |
| 13 | namespace NavierStokes.AlignedProfileSpectralCone |
| 14 | |
| 15 | open Set Function Filter ProfileHistories ProfileSpectralCone |
| 16 | open scoped ContDiff Topology InnerProductSpace |
| 17 | |
| 18 | /-! ## The same finite modulated profile and aligned slow coefficients -/ |
| 19 | |
| 20 | section Modulated |
| 21 | |
| 22 | variable {F : OutgoingProfile.Profile} {W : NominalProfile.Witness F} |
| 23 | (H : NominalConeAssembly.Certificate W) {d : ModulatedProfileAssembly.LoopData W} |
| 24 | (v : ModulatedProfileAssembly.Witness d) |
| 25 | |
| 26 | theorem modulated_fields_radial_germ {p : Point} (hX : 0 < p.1) (heta : |p.2| ≤ 1) : |
| 27 | ((fun X => (EntranceAlignedBase.modulatedCoefficients H v).phi 0 (X, p.2)) =ᶠ[𝓝 p.1] |
| 28 | (fun X => W.axis.normalization * v.profiles.f (X, p.2))) ∧ |
| 29 | ((fun X => (EntranceAlignedBase.modulatedCoefficients H v).axial 0 (X, p.2)) =ᶠ[𝓝 p.1] |
| 30 | (fun X => v.profiles.U (X, p.2))) := by |
| 31 | constructor |
| 32 | · filter_upwards [Ioi_mem_nhds hX] with X hXp |
| 33 | exact (EntranceAlignedBase.modulated_zero_fields H v (p := (X, p.2)) hXp.le heta).1 |
| 34 | · filter_upwards [Ioi_mem_nhds hX] with X hXp |
| 35 | exact (EntranceAlignedBase.modulated_zero_fields H v (p := (X, p.2)) hXp.le heta).2.1 |
| 36 | |
| 37 | theorem modulated_frequency_eq {p : Slow} (hT : 0 < p.2.2) (hR : 0 < p.1) : |
| 38 | BaseChartJets.leadingFrequency F.data.h W.axis.normalization |
| 39 | (EntranceAlignedBase.modulatedCoefficients H v) p = |
| 40 | (BaseChartJets.normalizedCoordinates F.data.h p).1 ^ (-CoordinateAlgebra.A F.data.h - 1 / 2) * |
| 41 | v.profiles.f (BaseChartJets.normalizedCoordinates F.data.h p).2 := by |
| 42 | have hh := ConstructedSlowBase.height_pos W |
| 43 | have hh1 := ConstructedSlowBase.height_lt_half W |
| 44 | have hX := normalized_X_pos hh hh1 hT hR |
| 45 | have heta := BaseChartJets.normalizedCoordinates_eta hh hh1 hT |
| 46 | rw [BaseChartJets.leadingFrequency_eq hh hh1 hT hR, |
| 47 | (EntranceAlignedBase.modulated_zero_fields H v hX.le heta.le).1] |
| 48 | field_simp [W.axis.normalization_pos.ne'] |
| 49 | |
| 50 | theorem modulated_frequency_pos {p : Slow} (hT : 0 < p.2.2) (hR : 0 < p.1) : |
| 51 | 0 < BaseChartJets.leadingFrequency F.data.h W.axis.normalization |
| 52 | (EntranceAlignedBase.modulatedCoefficients H v) p := by |
| 53 | have hh := ConstructedSlowBase.height_pos W |
| 54 | have hh1 := ConstructedSlowBase.height_lt_half W |
| 55 | rw [modulated_frequency_eq H v hT hR] |
| 56 | exact mul_pos (Real.rpow_pos_of_pos (BaseChartJets.normalizedCoordinates_q_pos hh hh1 hT) _) |
| 57 | (v.positive_f (normalized_X_pos hh hh1 hT hR) |
| 58 | (abs_le.mp (BaseChartJets.normalizedCoordinates_eta hh hh1 hT).le)) |
| 59 | |
| 60 | theorem modulated_shear_eq {p : Slow} (hT : 0 < p.2.2) (hR : 0 < p.1) : |
| 61 | PhaseEstimates.shearVector |
| 62 | (BaseChartJets.leadingFrequency F.data.h W.axis.normalization |
| 63 | (EntranceAlignedBase.modulatedCoefficients H v)) |
| 64 | (BaseChartJets.leadingAxial F.data.h (EntranceAlignedBase.modulatedCoefficients H v)) p = |
| 65 | BaseChartJets.leadingFrequency F.data.h W.axis.normalization |
| 66 | (EntranceAlignedBase.modulatedCoefficients H v) p • |
| 67 | !₂[-ModulatedCone.angularShear v.profiles.E (BaseChartJets.normalizedCoordinates F.data.h p).2, |
| 68 | -ModulatedCone.signedAxialShear v.profiles.E v.profiles.U |
| 69 | (BaseChartJets.normalizedCoordinates F.data.h p).2] := by |
| 70 | have hh := ConstructedSlowBase.height_pos W |
| 71 | have hh1 := ConstructedSlowBase.height_lt_half W |
| 72 | have hX := normalized_X_pos hh hh1 hT hR |
| 73 | have heta := (BaseChartJets.normalizedCoordinates_eta hh hh1 hT).le |
| 74 | have hg := modulated_fields_radial_germ H v hX heta |
| 75 | exact leading_shear_eq_profile v.profiles hh hh1 W.axis.normalization_pos.ne' |
| 76 | (EntranceAlignedBase.modulated_smooth H v) hT hR |
| 77 | (d.domain_nonnegative hX.le (d.parameters_contains (abs_le.mp heta))) |
| 78 | (v.positive_f hX (abs_le.mp heta)).ne' hg.1 hg.2 |
| 79 | |
| 80 | /-- The primitive true-cone conclusion of the actual finite modulation is |
| 81 | converted into the two spectral cones for its own leading fields. -/ |
| 82 | theorem modulated_spectral_cones |
| 83 | (hcone : ∀ w : Point, NominalConeAssembly.activeLeft W < w.1 → |
| 84 | w.1 < NominalConeAssembly.activeRight W → w.2 ∈ Icc (-1 : ℝ) 1 → |
| 85 | TrueConeLoop.InTrueCone (ActivationStocks.profileStockOne v.profiles F.data.h w) |
| 86 | (ActivationStocks.profileStockTwo v.profiles F.data.h w) |
| 87 | (ModulatedCone.angularShear v.profiles.E w) |
| 88 | (ModulatedCone.signedAxialShear v.profiles.E v.profiles.U w)) |
| 89 | {p : Slow} (hT : 0 < p.2.2) (hR : 0 < p.1) |
| 90 | (hl : NominalConeAssembly.activeLeft W < (BaseChartJets.normalizedCoordinates F.data.h p).2.1) |
| 91 | (hr : (BaseChartJets.normalizedCoordinates F.data.h p).2.1 < NominalConeAssembly.activeRight W) : |
| 92 | let F₀ := BaseChartJets.leadingFrequency F.data.h W.axis.normalization |
| 93 | (EntranceAlignedBase.modulatedCoefficients H v) |
| 94 | let G₀ := BaseChartJets.leadingAxial F.data.h (EntranceAlignedBase.modulatedCoefficients H v) |
| 95 | PrimaryRepresentatives.ReferenceCone (F₀ p) (PhaseEstimates.shearVector F₀ G₀ p) ∧ |
| 96 | PrimaryRepresentatives.TargetCone (F₀ p) (PhaseEstimates.shearVector F₀ G₀ p) |
| 97 | (stressVector v.profiles F.data.h (BaseChartJets.normalizedCoordinates F.data.h p).2) := by |
| 98 | dsimp only |
| 99 | rw [modulated_shear_eq H v hT hR] |
| 100 | have hh := ConstructedSlowBase.height_pos W |
| 101 | have hh1 := ConstructedSlowBase.height_lt_half W |
| 102 | have hX := normalized_X_pos hh hh1 hT hR |
| 103 | have heta := abs_le.mp (BaseChartJets.normalizedCoordinates_eta hh hh1 hT).le |
| 104 | exact profile_spectral_cones v.profiles F.data.h |
| 105 | (d.domain_nonnegative hX.le (d.parameters_contains heta)) hX (v.positive_f hX heta) |
| 106 | (modulated_frequency_pos H v hT hR) (hcone _ hl hr heta) |
| 107 | |
| 108 | /-- The literal covariance target is a positive chart rescaling of the |
| 109 | same actual zeroth stress coefficients. -/ |
| 110 | theorem modulated_chartTarget_cones |
| 111 | (hcone : ∀ w : Point, NominalConeAssembly.activeLeft W < w.1 → |
| 112 | w.1 < NominalConeAssembly.activeRight W → w.2 ∈ Icc (-1 : ℝ) 1 → |
| 113 | TrueConeLoop.InTrueCone (ActivationStocks.profileStockOne v.profiles F.data.h w) |
| 114 | (ActivationStocks.profileStockTwo v.profiles F.data.h w) |
| 115 | (ModulatedCone.angularShear v.profiles.E w) |
| 116 | (ModulatedCone.signedAxialShear v.profiles.E v.profiles.U w)) |
| 117 | {p : Slow} (hT : 0 < p.2.2) (hR : 0 < p.1) |
| 118 | (hl : NominalConeAssembly.activeLeft W < (BaseChartJets.normalizedCoordinates F.data.h p).2.1) |
| 119 | (hr : (BaseChartJets.normalizedCoordinates F.data.h p).2.1 < NominalConeAssembly.activeRight W) |
| 120 | {q : ℝ} (hq : 0 < q) (N : ℕ) (U : PartitionedCovariance.UnsignedLabel) : |
| 121 | let coeff := EntranceAlignedBase.modulatedCoefficients H v |
| 122 | let w := (BaseChartJets.normalizedCoordinates F.data.h p).2 |
| 123 | let F₀ := BaseChartJets.leadingFrequency F.data.h W.axis.normalization coeff |
| 124 | let G₀ := BaseChartJets.leadingAxial F.data.h coeff |
| 125 | let T := PartitionedCovariance.chartTarget F.data.h q N |
| 126 | ![coeff.stressTheta 0 w, coeff.stressAxial 0 w] U |
| 127 | PrimaryRepresentatives.ReferenceCone (F₀ p) (PhaseEstimates.shearVector F₀ G₀ p) ∧ |
| 128 | PrimaryRepresentatives.TargetCone (F₀ p) (PhaseEstimates.shearVector F₀ G₀ p) !₂[T 0, T 1] := by |
| 129 | have hbase := modulated_spectral_cones H v hcone hT hR hl hr |
| 130 | have hX := normalized_X_pos (ConstructedSlowBase.height_pos W) |
| 131 | (ConstructedSlowBase.height_lt_half W) hT hR |
| 132 | have heta := (BaseChartJets.normalizedCoordinates_eta (ConstructedSlowBase.height_pos W) |
| 133 | (ConstructedSlowBase.height_lt_half W) hT).le |
| 134 | have he := EntranceAlignedBase.modulated_leading_stress_eq H v hX.le heta |
| 135 | dsimp only |
| 136 | refine ⟨hbase.1, ?_⟩ |
| 137 | have ht := hbase.2.pos_smul (Real.rpow_pos_of_pos |
| 138 | (div_pos (ChartScales.Q_pos (U.1 + N)) hq) |
| 139 | (PartitionedCovariance.velocityExponent F.data.h + 1 / 2)) |
| 140 | convert! ht using 1 |
| 141 | ext i |
| 142 | fin_cases i <;> simp [PartitionedCovariance.chartTarget, stressVector, he.1, he.2] |
| 143 | |
| 144 | /-- Continuity of the actual leading frequency, actual radial shear, and |
| 145 | actual leading stress follows from the constructed smooth profile. -/ |
| 146 | theorem modulated_continuousOn {K : Set Slow} |
| 147 | (hpos : ∀ p ∈ K, 0 < p.2.2 ∧ 0 < p.1) : |
| 148 | let F₀ := BaseChartJets.leadingFrequency F.data.h W.axis.normalization |
| 149 | (EntranceAlignedBase.modulatedCoefficients H v) |
| 150 | let G₀ := BaseChartJets.leadingAxial F.data.h (EntranceAlignedBase.modulatedCoefficients H v) |
| 151 | ContinuousOn F₀ K ∧ ContinuousOn (PhaseEstimates.shearVector F₀ G₀) K ∧ |
| 152 | ContinuousOn (fun p => stressVector v.profiles F.data.h |
| 153 | (BaseChartJets.normalizedCoordinates F.data.h p).2) K := by |
| 154 | dsimp only |
| 155 | have hh := ConstructedSlowBase.height_pos W |
| 156 | have hh1 := ConstructedSlowBase.height_lt_half W |
| 157 | have hd := EntranceAlignedBase.modulated_smooth H v |
| 158 | have hF : ContinuousOn (BaseChartJets.leadingFrequency F.data.h W.axis.normalization |
| 159 | (EntranceAlignedBase.modulatedCoefficients H v)) K := |
| 160 | fun p hp => (leadingFrequency_smoothAt hh hh1 hd (hpos p hp).1 (hpos p hp).2).continuousAt.continuousWithinAt |
| 161 | have hA : ContinuousOn (fun p => ActivationContinuation.shearA v.profiles |
| 162 | (BaseChartJets.normalizedCoordinates F.data.h p).2) K := by |
| 163 | intro p hp |
| 164 | have hx := normalized_X_pos hh hh1 (hpos p hp).1 (hpos p hp).2 |
| 165 | have he := abs_le.mp (BaseChartJets.normalizedCoordinates_eta hh hh1 (hpos p hp).1).le |
| 166 | have hs := NominalConeAssembly.shears_smoothAt v.profiles |
| 167 | (d.domain_nonnegative hx.le (d.parameters_contains he)) hx (v.positive_f hx he).ne' |
| 168 | exact (hs.1.continuousAt.comp_of_eq |
| 169 | (BaseChartJets.normalizedCoordinates_smoothAt hh hh1 (hpos p hp).1).snd.continuousAt rfl).continuousWithinAt |
| 170 | have hC : ContinuousOn (fun p => ActivationContinuation.shearB v.profiles |
| 171 | (BaseChartJets.normalizedCoordinates F.data.h p).2) K := by |
| 172 | intro p hp |
| 173 | have hx := normalized_X_pos hh hh1 (hpos p hp).1 (hpos p hp).2 |
| 174 | have he := abs_le.mp (BaseChartJets.normalizedCoordinates_eta hh hh1 (hpos p hp).1).le |
| 175 | have hs := NominalConeAssembly.shears_smoothAt v.profiles |
| 176 | (d.domain_nonnegative hx.le (d.parameters_contains he)) hx (v.positive_f hx he).ne' |
| 177 | exact (hs.2.continuousAt.comp_of_eq |
| 178 | (BaseChartJets.normalizedCoordinates_smoothAt hh hh1 (hpos p hp).1).snd.continuousAt rfl).continuousWithinAt |
| 179 | refine ⟨hF, ?_, ?_⟩ |
| 180 | · apply (signedShear_continuousOn hF hA hC).congr |
| 181 | intro p hp |
| 182 | have hx := normalized_X_pos hh hh1 (hpos p hp).1 (hpos p hp).2 |
| 183 | have he := abs_le.mp (BaseChartJets.normalizedCoordinates_eta hh hh1 (hpos p hp).1).le |
| 184 | have hs := NominalConeAssembly.modulated_shears_eq v.profiles |
| 185 | (d.domain_nonnegative hx.le (d.parameters_contains he)) hx (v.positive_f hx he).ne' |
| 186 | rw [modulated_shear_eq H v (hpos p hp).1 (hpos p hp).2, hs.1, hs.2] |
| 187 | · apply (PiLp.continuous_toLp 2 _).comp_continuousOn |
| 188 | change ContinuousOn (fun p => (![LeadingStress.theta v.profiles F.data.h |
| 189 | (BaseChartJets.normalizedCoordinates F.data.h p).2, |
| 190 | LeadingStress.axial v.profiles F.data.h (BaseChartJets.normalizedCoordinates F.data.h p).2] : Fin 2 → ℝ)) K |
| 191 | have hS (p : Slow) (hp : p ∈ K) := by |
| 192 | have hx := normalized_X_pos hh hh1 (hpos p hp).1 (hpos p hp).2 |
| 193 | have he := abs_le.mp (BaseChartJets.normalizedCoordinates_eta hh hh1 (hpos p hp).1).le |
| 194 | have hdom := d.domain_nonnegative hx.le (d.parameters_contains he) |
| 195 | have hL : CoordinateAlgebra.L F.data.h (BaseChartJets.normalizedCoordinates F.data.h p).2.2 ≠ 0 := |
| 196 | (NaturalAxisData.L_pos W.axis.small he).ne' |
| 197 | exact And.intro (LeadingStress.theta_smoothAt v.profiles F.data.h hdom hx.ne' |
| 198 | (v.positive_f hx he).ne' hL) (LeadingStress.axial_smoothAt v.profiles F.data.h hdom hx.ne' hL) |
| 199 | apply continuousOn_pi.mpr |
| 200 | intro i |
| 201 | fin_cases i |
| 202 | · exact fun p hp => ((hS p hp).1.continuousAt.comp_of_eq |
| 203 | (BaseChartJets.normalizedCoordinates_smoothAt hh hh1 (hpos p hp).1).snd.continuousAt rfl).continuousWithinAt |
| 204 | · exact fun p hp => ((hS p hp).2.continuousAt.comp_of_eq |
| 205 | (BaseChartJets.normalizedCoordinates_smoothAt hh hh1 (hpos p hp).1).snd.continuousAt rfl).continuousWithinAt |
| 206 | |
| 207 | /-- Uniform reference bounds and one mixed target margin for any compact |
| 208 | positive-time subset of the actual active annulus. -/ |
| 209 | theorem modulated_compact_bounds (hcone : LeadingStressWeights.FullTrueCone v) |
| 210 | {K : Set Slow} (hK : IsCompact K) (hpos : ∀ p ∈ K, 0 < p.2.2 ∧ 0 < p.1) |
| 211 | (hactive : ∀ p ∈ K, NominalConeAssembly.activeLeft W < |
| 212 | (BaseChartJets.normalizedCoordinates F.data.h p).2.1 ∧ |
| 213 | (BaseChartJets.normalizedCoordinates F.data.h p).2.1 < NominalConeAssembly.activeRight W) : |
| 214 | let F₀ := BaseChartJets.leadingFrequency F.data.h W.axis.normalization |
| 215 | (EntranceAlignedBase.modulatedCoefficients H v) |
| 216 | let G₀ := BaseChartJets.leadingAxial F.data.h (EntranceAlignedBase.modulatedCoefficients H v) |
| 217 | let g₀ := PhaseEstimates.shearVector F₀ G₀ |
| 218 | let T₀ := fun p => stressVector v.profiles F.data.h (BaseChartJets.normalizedCoordinates F.data.h p).2 |
| 219 | ∃ M u eta delta : ℝ, 1 ≤ M ∧ 0 < u ∧ 0 < eta ∧ 0 < delta ∧ |
| 220 | (∀ p ∈ K, PrimaryRepresentatives.ParameterBounds M p.1 (F₀ p) (g₀ p)) ∧ |
| 221 | ∀ p₀ ∈ K, ∀ p ∈ K, dist p p₀ < delta → |
| 222 | ⟪T₀ p, PrimaryRepresentatives.normalDirection (g₀ p₀)⟫_ℝ ≤ -eta ∧ |
| 223 | |PrimaryRepresentatives.c0 (F₀ p₀) (g₀ p₀) * |
| 224 | ⟪T₀ p, PrimaryRepresentatives.transverseDirection (g₀ p₀)⟫_ℝ / |
| 225 | ⟪T₀ p, PrimaryRepresentatives.normalDirection (g₀ p₀)⟫_ℝ| + eta ≤ |
| 226 | PrimaryRepresentatives.slopeRatio u := by |
| 227 | dsimp only |
| 228 | have hc := modulated_continuousOn H v hpos |
| 229 | have hs (p : Slow) (hp : p ∈ K) := modulated_spectral_cones H v hcone |
| 230 | (hpos p hp).1 (hpos p hp).2 (hactive p hp).1 (hactive p hp).2 |
| 231 | obtain ⟨M, hM, hb⟩ := PrimaryRepresentatives.compact_parameter_bounds hK hc.1 hc.2.1 |
| 232 | (fun p hp => (hpos p hp).2) (fun p hp => (hs p hp).1) |
| 233 | obtain ⟨u, eta, delta, hu, he, hd, hm⟩ := |
| 234 | PrimaryRepresentatives.compact_mixed_target_margin hK hc.1 hc.2.1 hc.2.2 |
| 235 | (fun p hp => (hs p hp).1) (fun p hp => (hs p hp).2) |
| 236 | exact ⟨M, u, eta, delta, hM, hu, he, hd, hb, hm⟩ |
| 237 | |
| 238 | end Modulated |
| 239 | |
| 240 | /-! ## A single Euclidean direction through both zero-amplitude edges -/ |
| 241 | |
| 242 | noncomputable def planeOfPair : (ℝ × ℝ) →L[ℝ] Plane := |
| 243 | LinearMap.toContinuousLinearMap { |
| 244 | toFun := fun p => !₂[p.1, p.2] |
| 245 | map_add' := by intro p q; ext i; fin_cases i <;> simp |
| 246 | map_smul' := by intro c p; ext i; fin_cases i <;> simp } |
| 247 | |
| 248 | theorem planeOfPair_injective : Injective planeOfPair := by |
| 249 | intro p q h |
| 250 | apply Prod.ext |
| 251 | · exact congrArg (fun z : Plane => z 0) h |
| 252 | · exact congrArg (fun z : Plane => z 1) h |
| 253 | |
| 254 | noncomputable def planeEdgeFactor {J : Set ℝ} {c : ℝ} {S : (ℝ × ℝ) → ℝ × ℝ} |
| 255 | (F : ActiveAnnulusWeight.EdgeFactor J c S) : |
| 256 | ActiveAnnulusWeight.EdgeFactor J c (fun p => planeOfPair (S p)) where |
| 257 | coefficient := fun p => planeOfPair (F.coefficient p) |
| 258 | order := F.order |
| 259 | width := F.width |
| 260 | width_pos := F.width_pos |
| 261 | domain := F.domain |
| 262 | domain_open := F.domain_open |
| 263 | boundary_mem := F.boundary_mem |
| 264 | smooth := planeOfPair.contDiff.comp_contDiffOn F.smooth |
| 265 | boundary_ne_zero := by |
| 266 | intro eta heta hz |
| 267 | apply F.boundary_ne_zero eta heta |
| 268 | apply planeOfPair_injective |
| 269 | simpa only [map_zero] using hz |
| 270 | identity := by |
| 271 | intro eta heta x hx hxw |
| 272 | rw [F.identity eta heta x hx hxw, map_smul] |
| 273 | |
| 274 | theorem normalDirection_pos_smul (T : Plane) {c : ℝ} (hc : 0 < c) : |
| 275 | PrimaryRepresentatives.normalDirection (c • T) = PrimaryRepresentatives.normalDirection T := by |
| 276 | simp only [PrimaryRepresentatives.normalDirection, norm_smul, |
| 277 | Real.norm_of_nonneg hc.le, mul_inv_rev, smul_smul] |
| 278 | rw [mul_assoc, inv_mul_cancel₀ hc.ne', mul_one] |
| 279 | |
| 280 | private theorem normalDirection_continuousAt {S : (ℝ × ℝ) → Plane} {p : ℝ × ℝ} |
| 281 | (hS : ContinuousAt S p) (hne : S p ≠ 0) : |
| 282 | ContinuousAt (fun q => PrimaryRepresentatives.normalDirection (S q)) p := |
| 283 | (hS.norm.inv₀ (norm_ne_zero_iff.mpr hne)).smul hS |
| 284 | |
| 285 | /-- In the interior this is the actual stress normalized in the Euclidean |
| 286 | norm. At the two endpoints it uses the corresponding genuine flat factor. -/ |
| 287 | noncomputable def gluedDirection (a b : ℝ) (S BL BR : (ℝ × ℝ) → Plane) |
| 288 | (p : ℝ × ℝ) : Plane := |
| 289 | if p.2 ≤ a then PrimaryRepresentatives.normalDirection (BL (p.1, p.2 - a)) |
| 290 | else if b ≤ p.2 then PrimaryRepresentatives.normalDirection (BR (p.1, b - p.2)) |
| 291 | else PrimaryRepresentatives.normalDirection (S p) |
| 292 | |
| 293 | theorem gluedDirection_interior {a b : ℝ} (S BL BR : (ℝ × ℝ) → Plane) {p : ℝ × ℝ} |
| 294 | (hp : p.2 ∈ Ioo a b) : gluedDirection a b S BL BR p = PrimaryRepresentatives.normalDirection (S p) := by |
| 295 | simp [gluedDirection, not_le.mpr hp.1, not_le.mpr hp.2] |
| 296 | |
| 297 | private theorem gluedDirection_left_germ {J : Set ℝ} {a b cL cR : ℝ} |
| 298 | {S : (ℝ × ℝ) → Plane} (hab : a < b) |
| 299 | (FL : ActiveAnnulusWeight.EdgeFactor J cL (ActiveAnnulusWeight.leftChart a S)) |
| 300 | (FR : ActiveAnnulusWeight.EdgeFactor J cR (ActiveAnnulusWeight.rightChart b S)) |
| 301 | {eta : ℝ} (_heta : eta ∈ J) : |
| 302 | gluedDirection a b S FL.coefficient FR.coefficient =ᶠ[𝓝[J ×ˢ Icc a b] (eta, a)] |
| 303 | (fun q => PrimaryRepresentatives.normalDirection (FL.coefficient (q.1, q.2 - a))) := by |
| 304 | have hw : ∀ᶠ q : ℝ × ℝ in 𝓝 (eta, a), q.2 < a + FL.width := |
| 305 | continuous_snd.continuousAt.eventually (Iio_mem_nhds (by linarith [FL.width_pos])) |
| 306 | have hb : ∀ᶠ q : ℝ × ℝ in 𝓝 (eta, a), q.2 < b := |
| 307 | continuous_snd.continuousAt.eventually (Iio_mem_nhds hab) |
| 308 | filter_upwards [self_mem_nhdsWithin, hw.filter_mono nhdsWithin_le_nhds, |
| 309 | hb.filter_mono nhdsWithin_le_nhds] with q hq hqw hqb |
| 310 | by_cases hqa : q.2 ≤ a |
| 311 | · simp only [gluedDirection, ite_eq_left hqa] |
| 312 | · simp only [gluedDirection, ite_eq_right hqa, ite_eq_right (not_le.mpr hqb)] |
| 313 | have hx : 0 < q.2 - a := sub_pos.mpr (lt_of_not_ge hqa) |
| 314 | have he := FL.identity q.1 hq.1 (q.2 - a) hx (by linarith) |
| 315 | simp only [ActiveAnnulusWeight.leftChart] at he |
| 316 | rw [show a + (q.2 - a) = q.2 by ring] at he |
| 317 | change S q = _ at he |
| 318 | rw [he, normalDirection_pos_smul _ (div_pos (FlatCutoff.edge_pos _ hx) (pow_pos hx _))] |
| 319 | |
| 320 | private theorem gluedDirection_right_germ {J : Set ℝ} {a b cL cR : ℝ} |
| 321 | {S : (ℝ × ℝ) → Plane} (hab : a < b) |
| 322 | (FL : ActiveAnnulusWeight.EdgeFactor J cL (ActiveAnnulusWeight.leftChart a S)) |
| 323 | (FR : ActiveAnnulusWeight.EdgeFactor J cR (ActiveAnnulusWeight.rightChart b S)) |
| 324 | {eta : ℝ} (_heta : eta ∈ J) : |
| 325 | gluedDirection a b S FL.coefficient FR.coefficient =ᶠ[𝓝[J ×ˢ Icc a b] (eta, b)] |
| 326 | (fun q => PrimaryRepresentatives.normalDirection (FR.coefficient (q.1, b - q.2))) := by |
| 327 | have hw : ∀ᶠ q : ℝ × ℝ in 𝓝 (eta, b), b - FR.width < q.2 := |
| 328 | continuous_snd.continuousAt.eventually (Ioi_mem_nhds (by linarith [FR.width_pos])) |
| 329 | have ha : ∀ᶠ q : ℝ × ℝ in 𝓝 (eta, b), a < q.2 := |
| 330 | continuous_snd.continuousAt.eventually (Ioi_mem_nhds hab) |
| 331 | filter_upwards [self_mem_nhdsWithin, hw.filter_mono nhdsWithin_le_nhds, |
| 332 | ha.filter_mono nhdsWithin_le_nhds] with q hq hqw hqa |
| 333 | simp only [gluedDirection, ite_eq_right (not_le.mpr hqa)] |
| 334 | by_cases hqb : b ≤ q.2 |
| 335 | · simp only [ite_eq_left hqb] |
| 336 | · simp only [ite_eq_right hqb] |
| 337 | have hx : 0 < b - q.2 := sub_pos.mpr (lt_of_not_ge hqb) |
| 338 | have he := FR.identity q.1 hq.1 (b - q.2) hx (by linarith) |
| 339 | simp only [ActiveAnnulusWeight.rightChart] at he |
| 340 | rw [show b - (b - q.2) = q.2 by ring] at he |
| 341 | change S q = _ at he |
| 342 | rw [he, normalDirection_pos_smul _ (div_pos (FlatCutoff.edge_pos _ hx) (pow_pos hx _))] |
| 343 | |
| 344 | theorem gluedDirection_continuousOn {J : Set ℝ} {a b cL cR : ℝ} |
| 345 | {S : (ℝ × ℝ) → Plane} (hab : a < b) |
| 346 | (FL : ActiveAnnulusWeight.EdgeFactor J cL (ActiveAnnulusWeight.leftChart a S)) |
| 347 | (FR : ActiveAnnulusWeight.EdgeFactor J cR (ActiveAnnulusWeight.rightChart b S)) |
| 348 | (hS : ∀ p ∈ J ×ˢ Ioo a b, ContinuousAt S p) |
| 349 | (hne : ∀ p ∈ J ×ˢ Ioo a b, S p ≠ 0) : |
| 350 | ContinuousOn (gluedDirection a b S FL.coefficient FR.coefficient) (J ×ˢ Icc a b) := by |
| 351 | rintro ⟨eta, y⟩ ⟨heta, hy⟩ |
| 352 | by_cases hl : y = a |
| 353 | · subst y |
| 354 | have hB : ContinuousAt FL.coefficient (eta, 0) := FL.smooth.continuousOn.continuousAt |
| 355 | (FL.domain_open.mem_nhds (FL.boundary_mem ⟨heta, rfl⟩)) |
| 356 | have hn := normalDirection_continuousAt hB (FL.boundary_ne_zero eta heta) |
| 357 | have hm : ContinuousAt (fun q : ℝ × ℝ => (q.1, q.2 - a)) (eta, a) := |
| 358 | continuous_fst.continuousAt.prodMk (continuous_snd.continuousAt.sub continuousAt_const) |
| 359 | have hc := hn.comp_of_eq hm (by simp) |
| 360 | exact hc.continuousWithinAt.congr_of_eventuallyEq_of_mem |
| 361 | (gluedDirection_left_germ hab FL FR heta) ⟨heta, hy⟩ |
| 362 | by_cases hr : y = b |
| 363 | · subst y |
| 364 | have hB : ContinuousAt FR.coefficient (eta, 0) := FR.smooth.continuousOn.continuousAt |
| 365 | (FR.domain_open.mem_nhds (FR.boundary_mem ⟨heta, rfl⟩)) |
| 366 | have hn := normalDirection_continuousAt hB (FR.boundary_ne_zero eta heta) |
| 367 | have hm : ContinuousAt (fun q : ℝ × ℝ => (q.1, b - q.2)) (eta, b) := |
| 368 | continuous_fst.continuousAt.prodMk (continuousAt_const.sub continuous_snd.continuousAt) |
| 369 | have hc := hn.comp_of_eq hm (by simp) |
| 370 | exact hc.continuousWithinAt.congr_of_eventuallyEq_of_mem |
| 371 | (gluedDirection_right_germ hab FL FR heta) ⟨heta, hy⟩ |
| 372 | have hmid : y ∈ Ioo a b := ⟨lt_of_le_of_ne hy.1 (Ne.symm hl), lt_of_le_of_ne hy.2 hr⟩ |
| 373 | have hn := normalDirection_continuousAt (hS (eta, y) ⟨heta, hmid⟩) (hne (eta, y) ⟨heta, hmid⟩) |
| 374 | apply (hn.continuousWithinAt (s := J ×ˢ Icc a b)).congr_of_eventuallyEq_of_mem _ ⟨heta, hy⟩ |
| 375 | have hm : ∀ᶠ q : ℝ × ℝ in 𝓝 (eta, y), q.2 ∈ Ioo a b := |
| 376 | continuous_snd.continuousAt.eventually (isOpen_Ioo.mem_nhds hmid) |
| 377 | filter_upwards [hm.filter_mono nhdsWithin_le_nhds] with q hq |
| 378 | exact gluedDirection_interior S FL.coefficient FR.coefficient hq |
| 379 | |
| 380 | theorem gluedDirection_norm {J : Set ℝ} {a b cL cR : ℝ} |
| 381 | {S : (ℝ × ℝ) → Plane} (_hab : a < b) |
| 382 | (FL : ActiveAnnulusWeight.EdgeFactor J cL (ActiveAnnulusWeight.leftChart a S)) |
| 383 | (FR : ActiveAnnulusWeight.EdgeFactor J cR (ActiveAnnulusWeight.rightChart b S)) |
| 384 | (hne : ∀ p ∈ J ×ˢ Ioo a b, S p ≠ 0) {p : ℝ × ℝ} (hp : p ∈ J ×ˢ Icc a b) : |
| 385 | ‖gluedDirection a b S FL.coefficient FR.coefficient p‖ = 1 := by |
| 386 | by_cases hl : p.2 ≤ a |
| 387 | · have he : p.2 = a := le_antisymm hl hp.2.1 |
| 388 | rw [gluedDirection, ite_eq_left hl, he, sub_self] |
| 389 | exact PrimaryRepresentatives.normalDirection_unit (FL.boundary_ne_zero p.1 hp.1) |
| 390 | by_cases hr : b ≤ p.2 |
| 391 | · have he : p.2 = b := le_antisymm hp.2.2 hr |
| 392 | rw [gluedDirection, ite_eq_right hl, ite_eq_left hr, he, sub_self] |
| 393 | exact PrimaryRepresentatives.normalDirection_unit (FR.boundary_ne_zero p.1 hp.1) |
| 394 | rw [gluedDirection_interior S FL.coefficient FR.coefficient ⟨lt_of_not_ge hl, lt_of_not_ge hr⟩] |
| 395 | exact PrimaryRepresentatives.normalDirection_unit (hne p ⟨hp.1, lt_of_not_ge hl, lt_of_not_ge hr⟩) |
| 396 | |
| 397 | |
| 398 | private theorem referenceCone_of_speed {F a c : ℝ} (hF : 0 < F) (ha : 0 < a) |
| 399 | (hv : 2 < a * (1 + (c / a) ^ 2)) : |
| 400 | PrimaryRepresentatives.ReferenceCone F (F • !₂[-a, -c]) := by |
| 401 | apply PrimaryRepresentatives.referenceCone_of_shear_coordinates hF ha |
| 402 | have he : a * (a * (1 + (c / a) ^ 2)) = a ^ 2 + c ^ 2 := by |
| 403 | field_simp |
| 404 | have hm := mul_lt_mul_of_pos_left hv ha |
| 405 | nlinarith |
| 406 | |
| 407 | private theorem normalized_target_of_tilt {F a c : ℝ} (hF : 0 < F) (ha : 0 < a) |
| 408 | (hv : 2 < a * (1 + (c / a) ^ 2)) (B : ℝ × ℝ) (hB : 0 < B.1) |
| 409 | (hin : 0 < 1 + (c / a) * (B.2 / B.1)) |
| 410 | (hgap : 0 < 2 * (1 + (c / a) * (B.2 / B.1)) ^ 2 - |
| 411 | (a * (1 + (c / a) ^ 2) - 2) * (B.2 / B.1 - c / a) ^ 2) : |
| 412 | PrimaryRepresentatives.TargetCone F (F • !₂[-a, -c]) |
| 413 | (PrimaryRepresentatives.normalDirection (planeOfPair B)) := by |
| 414 | have hne : planeOfPair B ≠ 0 := by |
| 415 | intro hz |
| 416 | have hb := congrArg (fun z : Plane => z 0) hz |
| 417 | change B.1 = 0 at hb |
| 418 | exact hB.ne' hb |
| 419 | exact (targetCone_of_tilt hF ha hv (planeOfPair B) hB hin hgap).pos_smul |
| 420 | (inv_pos.mpr (norm_pos_iff.mpr hne)) |
| 421 | |
| 422 | section ClosedDirection |
| 423 | |
| 424 | variable {F : OutgoingProfile.Profile} {W : NominalProfile.Witness F} |
| 425 | {d : ModulatedProfileAssembly.LoopData W} (v : ModulatedProfileAssembly.Witness d) |
| 426 | |
| 427 | noncomputable def logShear (omega : ℝ) (p : ℝ × ℝ) : Plane := |
| 428 | omega • !₂[-LeadingStressWeights.logShearA v.profiles p, |
| 429 | -LeadingStressWeights.logShearB v.profiles p] |
| 430 | |
| 431 | /-- A single actual unit direction, continuous through both flat edges, |
| 432 | with the strict spectral target cone on the entire closed annulus. -/ |
| 433 | theorem exists_closed_direction (hcone : LeadingStressWeights.FullTrueCone v) : |
| 434 | ∃ D : (ℝ × ℝ) → Plane, |
| 435 | ContinuousOn D (Icc (-1 : ℝ) 1 ×ˢ Icc (LeadingStressWeights.leftEdge W) (LeadingStressWeights.rightEdge W)) ∧ |
| 436 | (∀ p ∈ Icc (-1 : ℝ) 1 ×ˢ Icc (LeadingStressWeights.leftEdge W) (LeadingStressWeights.rightEdge W), ‖D p‖ = 1) ∧ |
| 437 | (∀ p ∈ Icc (-1 : ℝ) 1 ×ˢ Ioo (LeadingStressWeights.leftEdge W) (LeadingStressWeights.rightEdge W), |
| 438 | D p = PrimaryRepresentatives.normalDirection |
| 439 | (planeOfPair (LeadingStressWeights.logStress v.profiles F.data.h p))) ∧ |
| 440 | ∀ p ∈ Icc (-1 : ℝ) 1 ×ˢ Icc (LeadingStressWeights.leftEdge W) (LeadingStressWeights.rightEdge W), |
| 441 | ∀ omega : ℝ, 0 < omega → PrimaryRepresentatives.ReferenceCone omega (logShear v omega p) ∧ |
| 442 | PrimaryRepresentatives.TargetCone omega (logShear v omega p) (D p) := by |
| 443 | obtain ⟨FL, hFL, hDL⟩ := LeadingStressWeights.inner_direction_positive v hcone |
| 444 | obtain ⟨FR, hFR, hDR⟩ := LeadingStressWeights.outer_direction_positive v |
| 445 | let S : (ℝ × ℝ) → Plane := fun p => planeOfPair (LeadingStressWeights.logStress v.profiles F.data.h p) |
| 446 | let L : ActiveAnnulusWeight.EdgeFactor (Icc (-1 : ℝ) 1) (W.controls.activationTime ^ 2) |
| 447 | (ActiveAnnulusWeight.leftChart (LeadingStressWeights.leftEdge W) S) := planeEdgeFactor FL |
| 448 | let R : ActiveAnnulusWeight.EdgeFactor (Icc (-1 : ℝ) 1) 4 |
| 449 | (ActiveAnnulusWeight.rightChart (LeadingStressWeights.rightEdge W) S) := planeEdgeFactor FR |
| 450 | let D : (ℝ × ℝ) → Plane := gluedDirection (LeadingStressWeights.leftEdge W) (LeadingStressWeights.rightEdge W) |
| 451 | S L.coefficient R.coefficient |
| 452 | have hab := LeadingStressWeights.edges_ordered W |
| 453 | have hS (p : ℝ × ℝ) (hp : p ∈ Icc (-1 : ℝ) 1 ×ˢ |
| 454 | Ioo (LeadingStressWeights.leftEdge W) (LeadingStressWeights.rightEdge W)) : ContinuousAt S p := by |
| 455 | have hm := LeadingStressWeights.logStress_mem v (p := p) hp.1 |
| 456 | exact planeOfPair.continuous.continuousAt.comp_of_eq |
| 457 | ((LeadingStressWeights.logStress_smooth v.profiles F.data.h).continuousOn.continuousAt |
| 458 | ((LeadingStressWeights.logStressDomain_open v.profiles F.data.h).mem_nhds hm)) rfl |
| 459 | have hne (p : ℝ × ℝ) (hp : p ∈ Icc (-1 : ℝ) 1 ×ˢ |
| 460 | Ioo (LeadingStressWeights.leftEdge W) (LeadingStressWeights.rightEdge W)) : S p ≠ 0 := by |
| 461 | intro hz |
| 462 | apply LeadingStressWeights.logStress_ne_zero v hcone hp.1 hp.2 |
| 463 | apply planeOfPair_injective |
| 464 | simpa only [map_zero] using hz |
| 465 | refine ⟨D, gluedDirection_continuousOn hab L R hS hne, |
| 466 | (fun p hp => gluedDirection_norm hab L R hne hp), |
| 467 | (fun p hp => gluedDirection_interior S L.coefficient R.coefficient hp.2), ?_⟩ |
| 468 | rintro ⟨eta, y⟩ ⟨heta, hy⟩ omega homega |
| 469 | have hspeed := LeadingStressWeights.closed_shear_positive v hcone heta hy |
| 470 | have href : PrimaryRepresentatives.ReferenceCone omega (logShear v omega (eta, y)) := |
| 471 | referenceCone_of_speed homega hspeed.1 hspeed.2 |
| 472 | refine ⟨href, ?_⟩ |
| 473 | by_cases hl : y = LeadingStressWeights.leftEdge W |
| 474 | · subst y |
| 475 | obtain ⟨dl, el, O, hdl, _, hel, _, _, _, hmargin, _⟩ := hDL.1 |
| 476 | have hm := hmargin eta heta 0 ⟨le_rfl, hdl.le⟩ |
| 477 | have hin := hel.trans_le hm.1 |
| 478 | have hgap := hel.trans_le hm.2 |
| 479 | simp only [ActiveAnnulusWeight.leftChart, add_zero, |
| 480 | ActiveAnnulusWeight.directionProjection, ActiveAnnulusWeight.directionGap, |
| 481 | ActiveAnnulusWeight.tilt, LeadingStressWeights.logSlope, |
| 482 | LeadingStressWeights.logSpeed, ActivationContinuation.shearSize] at hin hgap |
| 483 | have ht := normalized_target_of_tilt homega hspeed.1 hspeed.2 |
| 484 | (FL.coefficient (eta, 0)) (hFL eta heta) hin hgap |
| 485 | simpa only [D, gluedDirection, ite_eq_left le_rfl, sub_self, L, planeEdgeFactor, |
| 486 | logShear] using ht |
| 487 | by_cases hr : y = LeadingStressWeights.rightEdge W |
| 488 | · subst y |
| 489 | obtain ⟨dr, er, O, hdr, _, her, _, _, _, hmargin, _⟩ := hDR.1 |
| 490 | have hm := hmargin eta heta 0 ⟨le_rfl, hdr.le⟩ |
| 491 | have hin := her.trans_le hm.1 |
| 492 | have hgap := her.trans_le hm.2 |
| 493 | simp only [ActiveAnnulusWeight.rightChart, sub_zero, |
| 494 | ActiveAnnulusWeight.directionProjection, ActiveAnnulusWeight.directionGap, |
| 495 | ActiveAnnulusWeight.tilt, LeadingStressWeights.logSlope, |
| 496 | LeadingStressWeights.logSpeed, ActivationContinuation.shearSize] at hin hgap |
| 497 | have ht := normalized_target_of_tilt homega hspeed.1 hspeed.2 |
| 498 | (FR.coefficient (eta, 0)) (hFR eta heta) hin hgap |
| 499 | simpa only [D, gluedDirection, ite_eq_right (not_le.mpr hab), ite_eq_left le_rfl, |
| 500 | sub_self, R, planeEdgeFactor, logShear] using ht |
| 501 | have hmid : y ∈ Ioo (LeadingStressWeights.leftEdge W) (LeadingStressWeights.rightEdge W) := |
| 502 | ⟨lt_of_le_of_ne hy.1 (Ne.symm hl), lt_of_le_of_ne hy.2 hr⟩ |
| 503 | have hx : 0 < Real.exp y := Real.exp_pos _ |
| 504 | have hleft : NominalConeAssembly.activeLeft W < Real.exp y := |
| 505 | (Real.log_lt_iff_lt_exp (NominalConeAssembly.activeLeft_pos W)).mp hmid.1 |
| 506 | have hright : Real.exp y < NominalConeAssembly.activeRight W := |
| 507 | (Real.lt_log_iff_exp_lt (LeadingStressWeights.activeRight_pos W)).mp hmid.2 |
| 508 | have hdom := d.domain_nonnegative (p := (Real.exp y, eta)) hx.le (d.parameters_contains heta) |
| 509 | have hf := v.positive_f (p := (Real.exp y, eta)) hx heta |
| 510 | have hs := NominalConeAssembly.modulated_shears_eq v.profiles hdom hx hf.ne' |
| 511 | have ht := (profile_spectral_cones v.profiles F.data.h hdom hx hf homega |
| 512 | (hcone (Real.exp y, eta) hleft hright heta)).2 |
| 513 | rw [hs.1, hs.2] at ht |
| 514 | have he : S (eta, y) = stressVector v.profiles F.data.h (Real.exp y, eta) := rfl |
| 515 | have ht' := ht.pos_smul (inv_pos.mpr (norm_pos_iff.mpr (hne (eta, y) ⟨heta, hmid⟩))) |
| 516 | change PrimaryRepresentatives.TargetCone omega _ (D (eta, y)) |
| 517 | rw [show D (eta, y) = PrimaryRepresentatives.normalDirection (S (eta, y)) from |
| 518 | gluedDirection_interior S L.coefficient R.coefficient hmid] |
| 519 | simpa only [logShear, LeadingStressWeights.logShearA, LeadingStressWeights.logShearB, |
| 520 | LeadingStressWeights.logPoint, PrimaryRepresentatives.normalDirection, he] using ht' |
| 521 | |
| 522 | end ClosedDirection |
| 523 | |
| 524 | noncomputable def referenceSet {F : OutgoingProfile.Profile} (W : NominalProfile.Witness F) : Set Slow := |
| 525 | PrimaryRepresentatives.referenceCompact F.data.h (NominalConeAssembly.activeLeft W) |
| 526 | (NominalConeAssembly.activeRight W) |
| 527 | |
| 528 | noncomputable def referenceLogPoint {F : OutgoingProfile.Profile} (_W : NominalProfile.Witness F) |
| 529 | (p : Slow) : ℝ × ℝ := |
| 530 | ((PositiveRepresentatives.stableInner F.data.h p).2, |
| 531 | Real.log (PositiveRepresentatives.stableInner F.data.h p).1) |
| 532 | |
| 533 | structure ReferencePointData {F : OutgoingProfile.Profile} (W : NominalProfile.Witness F) |
| 534 | (p : Slow) : Prop where |
| 535 | stable : p ∈ PositiveRepresentatives.stableDomain F.data.h |
| 536 | radius : 0 < p.1 |
| 537 | scalar : 0 < PositiveRepresentatives.stableQ F.data.h p |
| 538 | inner_pos : 0 < (PositiveRepresentatives.stableInner F.data.h p).1 |
| 539 | parameter : (PositiveRepresentatives.stableInner F.data.h p).2 ∈ Icc (-1 : ℝ) 1 |
| 540 | log_mem : referenceLogPoint W p ∈ Icc (-1 : ℝ) 1 ×ˢ |
| 541 | Icc (LeadingStressWeights.leftEdge W) (LeadingStressWeights.rightEdge W) |
| 542 | |
| 543 | private theorem active_order {F : OutgoingProfile.Profile} (W : NominalProfile.Witness F) : |
| 544 | NominalConeAssembly.activeLeft W < NominalConeAssembly.activeRight W := by |
| 545 | have he := Real.exp_lt_exp.mpr (LeadingStressWeights.edges_ordered W) |
| 546 | simpa only [LeadingStressWeights.leftEdge, LeadingStressWeights.rightEdge, |
| 547 | Real.exp_log (NominalConeAssembly.activeLeft_pos W), |
| 548 | Real.exp_log (LeadingStressWeights.activeRight_pos W)] using he |
| 549 | |
| 550 | theorem referenceSet_compact {F : OutgoingProfile.Profile} (W : NominalProfile.Witness F) : |
| 551 | IsCompact (referenceSet W) := |
| 552 | PrimaryRepresentatives.referenceCompact_isCompact (ConstructedSlowBase.height_pos W).le |
| 553 | (ConstructedSlowBase.height_lt_half W) (NominalConeAssembly.activeLeft_pos W) (active_order W).le |
| 554 | |
| 555 | theorem reference_point {F : OutgoingProfile.Profile} (W : NominalProfile.Witness F) |
| 556 | {p : Slow} (hp : p ∈ referenceSet W) : ReferencePointData W p := by |
| 557 | have hh := (ConstructedSlowBase.height_pos W).le |
| 558 | have hh1 := ConstructedSlowBase.height_lt_half W |
| 559 | have ha := NominalConeAssembly.activeLeft_pos W |
| 560 | have hab := (active_order W).le |
| 561 | have hs := PositiveRepresentatives.referenceCompact_subset_stableDomain hh hh1 ha hab hp |
| 562 | have hX := (PositiveRepresentatives.stableQ_bounds_reference hh hh1 ha hab hp).2 |
| 563 | have he := PositiveRepresentatives.stableEta_mem_reference hh hh1 ha hab hp |
| 564 | have hx : 0 < (PositiveRepresentatives.stableInner F.data.h p).1 := ha.trans_le hX.1 |
| 565 | refine ⟨hs, hs.1, (PositiveRepresentatives.stableQ_spec hs).1, hx, he, he, ?_, ?_⟩ |
| 566 | · exact Real.log_le_log ha hX.1 |
| 567 | · exact Real.log_le_log hx hX.2 |
| 568 | |
| 569 | section ReferenceFunctions |
| 570 | |
| 571 | variable {F : OutgoingProfile.Profile} {W : NominalProfile.Witness F} |
| 572 | {d : ModulatedProfileAssembly.LoopData W} (v : ModulatedProfileAssembly.Witness d) |
| 573 | |
| 574 | noncomputable def referenceFrequency : Slow → ℝ := |
| 575 | PositiveRepresentatives.stablePullback F.data.h (-CoordinateAlgebra.A F.data.h - 1 / 2) v.profiles.f |
| 576 | |
| 577 | noncomputable def referenceShear (p : Slow) : Plane := |
| 578 | referenceFrequency v p • !₂[-ActivationContinuation.shearA v.profiles (PositiveRepresentatives.stableInner F.data.h p), |
| 579 | -ActivationContinuation.shearB v.profiles (PositiveRepresentatives.stableInner F.data.h p)] |
| 580 | |
| 581 | theorem referenceFrequency_pos {p : Slow} (hp : p ∈ referenceSet W) : 0 < referenceFrequency v p := by |
| 582 | have h := reference_point W hp |
| 583 | exact mul_pos (Real.rpow_pos_of_pos h.scalar _) (v.positive_f h.inner_pos h.parameter) |
| 584 | |
| 585 | theorem reference_continuous : ContinuousOn (referenceFrequency v) (referenceSet W) ∧ |
| 586 | ContinuousOn (referenceShear v) (referenceSet W) ∧ ContinuousOn (referenceLogPoint W) (referenceSet W) := by |
| 587 | have hh := (ConstructedSlowBase.height_pos W).le |
| 588 | have hh1 := (ConstructedSlowBase.height_lt_half W).le |
| 589 | have hF : ContinuousOn (referenceFrequency v) (referenceSet W) := by |
| 590 | intro p hp |
| 591 | have h := reference_point W hp |
| 592 | exact (PositiveRepresentatives.stablePullback_smoothAt hh hh1 _ h.stable |
| 593 | (v.profiles.f_smooth.contDiffAt (d.domain.isOpen.mem_nhds |
| 594 | (d.domain_nonnegative h.inner_pos.le (d.parameters_contains h.parameter))))).continuousAt.continuousWithinAt |
| 595 | have hA : ContinuousOn (fun p => ActivationContinuation.shearA v.profiles |
| 596 | (PositiveRepresentatives.stableInner F.data.h p)) (referenceSet W) := by |
| 597 | intro p hp |
| 598 | have h := reference_point W hp |
| 599 | have hs := NominalConeAssembly.shears_smoothAt v.profiles |
| 600 | (d.domain_nonnegative h.inner_pos.le (d.parameters_contains h.parameter)) h.inner_pos |
| 601 | (v.positive_f h.inner_pos h.parameter).ne' |
| 602 | exact (hs.1.comp p (PositiveRepresentatives.stableInner_smoothAt hh hh1 h.stable)).continuousAt.continuousWithinAt |
| 603 | have hC : ContinuousOn (fun p => ActivationContinuation.shearB v.profiles |
| 604 | (PositiveRepresentatives.stableInner F.data.h p)) (referenceSet W) := by |
| 605 | intro p hp |
| 606 | have h := reference_point W hp |
| 607 | have hs := NominalConeAssembly.shears_smoothAt v.profiles |
| 608 | (d.domain_nonnegative h.inner_pos.le (d.parameters_contains h.parameter)) h.inner_pos |
| 609 | (v.positive_f h.inner_pos h.parameter).ne' |
| 610 | exact (hs.2.comp p (PositiveRepresentatives.stableInner_smoothAt hh hh1 h.stable)).continuousAt.continuousWithinAt |
| 611 | refine ⟨hF, signedShear_continuousOn hF hA hC, ?_⟩ |
| 612 | intro p hp |
| 613 | have h := reference_point W hp |
| 614 | have hs := (PositiveRepresentatives.stableInner_smoothAt hh hh1 h.stable).continuousAt |
| 615 | exact (hs.snd.prodMk (hs.fst.log h.inner_pos.ne')).continuousWithinAt |
| 616 | |
| 617 | theorem stableInner_eq_normalized (W : NominalProfile.Witness F) {p : Slow} (hT : 0 < p.2.2) : |
| 618 | PositiveRepresentatives.stableInner F.data.h p = (BaseChartJets.normalizedCoordinates F.data.h p).2 := by |
| 619 | rw [PositiveRepresentatives.stableInner_eq_chartInner (ConstructedSlowBase.height_pos W) |
| 620 | (ConstructedSlowBase.height_lt_half W) hT, BaseChartJets.normalizedCoordinates_eq] |
| 621 | rfl |
| 622 | |
| 623 | theorem referenceFrequency_eq_actual (H : NominalConeAssembly.Certificate W) |
| 624 | {p : Slow} (hT : 0 < p.2.2) (hR : 0 < p.1) : |
| 625 | referenceFrequency v p = BaseChartJets.leadingFrequency F.data.h W.axis.normalization |
| 626 | (EntranceAlignedBase.modulatedCoefficients H v) p := by |
| 627 | rw [modulated_frequency_eq H v hT hR] |
| 628 | unfold referenceFrequency PositiveRepresentatives.stablePullback |
| 629 | rw [stableInner_eq_normalized W hT, PositiveRepresentatives.stableQ_eq_chartQ |
| 630 | (ConstructedSlowBase.height_pos W) (ConstructedSlowBase.height_lt_half W) hT, |
| 631 | BaseChartJets.normalizedCoordinates_eq] |
| 632 | |
| 633 | theorem referenceShear_eq_actual (H : NominalConeAssembly.Certificate W) |
| 634 | {p : Slow} (hT : 0 < p.2.2) (hR : 0 < p.1) : referenceShear v p = |
| 635 | PhaseEstimates.shearVector (BaseChartJets.leadingFrequency F.data.h W.axis.normalization |
| 636 | (EntranceAlignedBase.modulatedCoefficients H v)) |
| 637 | (BaseChartJets.leadingAxial F.data.h (EntranceAlignedBase.modulatedCoefficients H v)) p := by |
| 638 | have hh := ConstructedSlowBase.height_pos W |
| 639 | have hh1 := ConstructedSlowBase.height_lt_half W |
| 640 | have hx := normalized_X_pos hh hh1 hT hR |
| 641 | have he := abs_le.mp (BaseChartJets.normalizedCoordinates_eta hh hh1 hT).le |
| 642 | have hs := NominalConeAssembly.modulated_shears_eq v.profiles |
| 643 | (d.domain_nonnegative hx.le (d.parameters_contains he)) hx (v.positive_f hx he).ne' |
| 644 | rw [referenceShear, referenceFrequency_eq_actual v H hT hR, stableInner_eq_normalized W hT, |
| 645 | modulated_shear_eq H v hT hR, hs.1, hs.2] |
| 646 | |
| 647 | theorem referenceLogPoint_profile {p : Slow} (hp : p ∈ referenceSet W) : |
| 648 | LeadingStressWeights.logPoint (referenceLogPoint W p) = PositiveRepresentatives.stableInner F.data.h p := by |
| 649 | have h := reference_point W hp |
| 650 | apply Prod.ext |
| 651 | · exact Real.exp_log h.inner_pos |
| 652 | · rfl |
| 653 | |
| 654 | theorem reference_cone (hcone : LeadingStressWeights.FullTrueCone v) |
| 655 | {p : Slow} (hp : p ∈ referenceSet W) : |
| 656 | PrimaryRepresentatives.ReferenceCone (referenceFrequency v p) (referenceShear v p) := by |
| 657 | have h := reference_point W hp |
| 658 | obtain ⟨ha, hv⟩ := LeadingStressWeights.closed_shear_positive v hcone h.parameter h.log_mem.2 |
| 659 | change 0 < LeadingStressWeights.logShearA v.profiles (referenceLogPoint W p) at ha |
| 660 | change 2 < LeadingStressWeights.logSpeed v.profiles (referenceLogPoint W p) at hv |
| 661 | simp only [LeadingStressWeights.logShearA, LeadingStressWeights.logShearB, |
| 662 | LeadingStressWeights.logSpeed, referenceLogPoint_profile hp] at ha hv |
| 663 | exact referenceCone_of_speed (referenceFrequency_pos v hp) ha hv |
| 664 | |
| 665 | theorem modulated_positive_reference_cone (H : NominalConeAssembly.Certificate W) |
| 666 | (hcone : LeadingStressWeights.FullTrueCone v) {p : Slow} |
| 667 | (hp : p ∈ PositiveRepresentatives.positivePart (referenceSet W)) : |
| 668 | PrimaryRepresentatives.ReferenceCone |
| 669 | (BaseChartJets.leadingFrequency F.data.h W.axis.normalization |
| 670 | (EntranceAlignedBase.modulatedCoefficients H v) p) |
| 671 | (PhaseEstimates.shearVector (BaseChartJets.leadingFrequency F.data.h W.axis.normalization |
| 672 | (EntranceAlignedBase.modulatedCoefficients H v)) |
| 673 | (BaseChartJets.leadingAxial F.data.h (EntranceAlignedBase.modulatedCoefficients H v)) p) := by |
| 674 | have h := reference_cone v hcone hp.1 |
| 675 | rwa [referenceFrequency_eq_actual v H hp.2 (reference_point W hp.1).radius, |
| 676 | referenceShear_eq_actual v H hp.2 (reference_point W hp.1).radius] at h |
| 677 | |
| 678 | /-- The global normalized direction is pulled back by the genuine stable |
| 679 | similarity branch. This includes the regular zero-time boundary. -/ |
| 680 | theorem exists_reference_direction (hcone : LeadingStressWeights.FullTrueCone v) : |
| 681 | ∃ T : Slow → Plane, ContinuousOn T (referenceSet W) ∧ |
| 682 | ∀ p ∈ referenceSet W, ‖T p‖ = 1 ∧ |
| 683 | PrimaryRepresentatives.ReferenceCone (referenceFrequency v p) (referenceShear v p) ∧ |
| 684 | PrimaryRepresentatives.TargetCone (referenceFrequency v p) (referenceShear v p) (T p) ∧ |
| 685 | ((PositiveRepresentatives.stableInner F.data.h p).1 ∈ |
| 686 | Ioo (NominalConeAssembly.activeLeft W) (NominalConeAssembly.activeRight W) → |
| 687 | T p = PrimaryRepresentatives.normalDirection |
| 688 | (stressVector v.profiles F.data.h (PositiveRepresentatives.stableInner F.data.h p))) := by |
| 689 | obtain ⟨D, hDc, hDn, hDi, hDs⟩ := exists_closed_direction v hcone |
| 690 | let T : Slow → Plane := fun p => D (referenceLogPoint W p) |
| 691 | refine ⟨T, hDc.comp (reference_continuous v).2.2 (fun p hp => (reference_point W hp).log_mem), ?_⟩ |
| 692 | intro p hp |
| 693 | have h := reference_point W hp |
| 694 | have hs := hDs (referenceLogPoint W p) h.log_mem (referenceFrequency v p) (referenceFrequency_pos v hp) |
| 695 | have hshear : logShear v (referenceFrequency v p) (referenceLogPoint W p) = referenceShear v p := by |
| 696 | unfold logShear referenceShear LeadingStressWeights.logShearA LeadingStressWeights.logShearB |
| 697 | rw [referenceLogPoint_profile hp] |
| 698 | rw [hshear] at hs |
| 699 | refine ⟨hDn _ h.log_mem, hs.1, hs.2, ?_⟩ |
| 700 | intro hinner |
| 701 | have hlog : (referenceLogPoint W p).2 ∈ |
| 702 | Ioo (LeadingStressWeights.leftEdge W) (LeadingStressWeights.rightEdge W) := by |
| 703 | constructor |
| 704 | · exact Real.log_lt_log (NominalConeAssembly.activeLeft_pos W) hinner.1 |
| 705 | · exact Real.log_lt_log h.inner_pos hinner.2 |
| 706 | have he := hDi (referenceLogPoint W p) ⟨h.parameter, hlog⟩ |
| 707 | change T p = _ at he |
| 708 | rw [he] |
| 709 | change PrimaryRepresentatives.normalDirection (stressVector v.profiles F.data.h |
| 710 | (LeadingStressWeights.logPoint (referenceLogPoint W p))) = _ |
| 711 | rw [referenceLogPoint_profile hp] |
| 712 | |
| 713 | /-- All reference parameters and the mixed target margin are now derived |
| 714 | for the actual positive-time representatives of the same aligned base. |
| 715 | The constants and one threshold precede every active band and label. -/ |
| 716 | theorem modulated_representative_bounds (H : NominalConeAssembly.Certificate W) |
| 717 | (hcone : LeadingStressWeights.FullTrueCone v) : |
| 718 | let K := referenceSet W |
| 719 | let F₀ := BaseChartJets.leadingFrequency F.data.h W.axis.normalization |
| 720 | (EntranceAlignedBase.modulatedCoefficients H v) |
| 721 | let G₀ := BaseChartJets.leadingAxial F.data.h (EntranceAlignedBase.modulatedCoefficients H v) |
| 722 | let g₀ := PhaseEstimates.shearVector F₀ G₀ |
| 723 | ∃ (T : Slow → Plane) (M u eta : ℝ), 1 ≤ M ∧ 0 < u ∧ 0 < eta ∧ |
| 724 | ContinuousOn T K ∧ (∀ p ∈ K, ‖T p‖ = 1) ∧ |
| 725 | (∀ p ∈ K, (PositiveRepresentatives.stableInner F.data.h p).1 ∈ |
| 726 | Ioo (NominalConeAssembly.activeLeft W) (NominalConeAssembly.activeRight W) → |
| 727 | T p = PrimaryRepresentatives.normalDirection |
| 728 | (stressVector v.profiles F.data.h (PositiveRepresentatives.stableInner F.data.h p))) ∧ |
| 729 | (∀ L : PositiveRepresentatives.ActiveLabel K, |
| 730 | PrimaryRepresentatives.ParameterBounds M (PositiveRepresentatives.representative K L).1 |
| 731 | (F₀ (PositiveRepresentatives.representative K L)) |
| 732 | (g₀ (PositiveRepresentatives.representative K L))) ∧ |
| 733 | ∃ N : ℕ, ∀ L : PositiveRepresentatives.ActiveLabel K, N ≤ L.val.1 → |
| 734 | ∀ p ∈ PositiveRepresentatives.positivePart K, |
| 735 | p ∈ PrimaryRepresentatives.gridBox L.val.1 L.val.2 2 → |
| 736 | ⟪T p, PrimaryRepresentatives.normalDirection (g₀ (PositiveRepresentatives.representative K L))⟫_ℝ ≤ -eta ∧ |
| 737 | |PrimaryRepresentatives.c0 (F₀ (PositiveRepresentatives.representative K L)) |
| 738 | (g₀ (PositiveRepresentatives.representative K L)) * |
| 739 | ⟪T p, PrimaryRepresentatives.transverseDirection (g₀ (PositiveRepresentatives.representative K L))⟫_ℝ / |
| 740 | ⟪T p, PrimaryRepresentatives.normalDirection (g₀ (PositiveRepresentatives.representative K L))⟫_ℝ| + eta ≤ |
| 741 | PrimaryRepresentatives.slopeRatio u := by |
| 742 | dsimp only |
| 743 | obtain ⟨T, hT, hspec⟩ := exists_reference_direction v hcone |
| 744 | have hcont := reference_continuous v |
| 745 | have hF : EqOn (BaseChartJets.leadingFrequency F.data.h W.axis.normalization |
| 746 | (EntranceAlignedBase.modulatedCoefficients H v)) (referenceFrequency v) |
| 747 | (PositiveRepresentatives.positivePart (referenceSet W)) := by |
| 748 | intro p hp |
| 749 | exact (referenceFrequency_eq_actual v H hp.2 (reference_point W hp.1).radius).symm |
| 750 | have hg : EqOn (PhaseEstimates.shearVector |
| 751 | (BaseChartJets.leadingFrequency F.data.h W.axis.normalization (EntranceAlignedBase.modulatedCoefficients H v)) |
| 752 | (BaseChartJets.leadingAxial F.data.h (EntranceAlignedBase.modulatedCoefficients H v))) |
| 753 | (referenceShear v) (PositiveRepresentatives.positivePart (referenceSet W)) := by |
| 754 | intro p hp |
| 755 | exact (referenceShear_eq_actual v H hp.2 (reference_point W hp.1).radius).symm |
| 756 | obtain ⟨M, hM, hMb⟩ := PositiveRepresentatives.representative_parameter_bounds |
| 757 | (referenceSet_compact W) hcont.1 hcont.2.1 (fun p hp => (reference_point W hp).radius) |
| 758 | (fun p hp => (hspec p hp).2.1) hF hg |
| 759 | obtain ⟨u, eta, hu, he, N, hNb⟩ := PositiveRepresentatives.representative_target_margin |
| 760 | (T := T) (Text := T) (referenceSet_compact W) hcont.1 hcont.2.1 hT |
| 761 | (fun p hp => (hspec p hp).2.1) (fun p hp => (hspec p hp).2.2.1) |
| 762 | hF hg (fun _ _ => rfl) |
| 763 | exact ⟨T, M, u, eta, hM, hu, he, hT, fun p hp => (hspec p hp).1, |
| 764 | fun p hp => (hspec p hp).2.2.2, hMb, N, hNb⟩ |
| 765 | |
| 766 | end ReferenceFunctions |
| 767 | |
| 768 | end NavierStokes.AlignedProfileSpectralCone |