import NavierStokes.BaseContextAssembly import NavierStokes.BaseStressClasses import NavierStokes.PhysicalResidualNaturality /-! # The actual slow base on a coarsest common integer cover The physical base, virtual stress, dyadic band and small parameter stay fixed. Only the integer cover used in the graph operators changes. The forward real-lift map is the genuine integer covering matrix, with its actual norm. -/ noncomputable section namespace NavierStokes.CommonBaseContext open Set Function Filter WeightedClasses open scoped ContDiff Topology BigOperators abbrev Plane := BaseContextAssembly.Plane abbrev Point := BaseContextAssembly.Point abbrev Slow := BaseContextAssembly.Slow /-- Scalar hypotheses on the chosen common index, including every low band. -/ structure IndexBounds (h : ℝ) (index : ℕ → ℕ) (K : ℕ) : Prop where le_native : ∀ n, index n ≤ ChartScales.nativeIndex h n gap_le : ∀ n, ChartScales.nativeIndex h n - index n ≤ K noncomputable def radialFrequency (h : ℝ) (index : ℕ → ℕ) (n : ℕ) : ℝ := ChartScales.Lambda ^ index n * ChartScales.Q n ^ (ChartScales.radialExponent h / 2) noncomputable def fastCoefficient (h : ℝ) (index : ℕ → ℕ) (n : ℕ) : ℝ := ChartScales.Tg ^ index n * ChartScales.Q n ^ (1 + h) theorem radialFrequency_pos (h : ℝ) (index : ℕ → ℕ) (n : ℕ) : 0 < radialFrequency h index n := mul_pos (pow_pos ChartScales.Lambda_pos _) (Real.rpow_pos_of_pos (ChartScales.Q_pos n) _) theorem fastCoefficient_pos (h : ℝ) (index : ℕ → ℕ) (n : ℕ) : 0 < fastCoefficient h index n := mul_pos (pow_pos ChartScales.Tg_pos _) (Real.rpow_pos_of_pos (ChartScales.Q_pos n) _) theorem radialFrequency_mono (h : ℝ) {i j : ℕ → ℕ} {n : ℕ} (hij : i n ≤ j n) : radialFrequency h i n ≤ radialFrequency h j n := mul_le_mul_of_nonneg_right (pow_le_pow_right₀ (by linarith [ChartScales.Lambda_two_lt]) hij) (Real.rpow_nonneg (ChartScales.Q_pos n).le _) theorem fastCoefficient_mono (h : ℝ) {i j : ℕ → ℕ} {n : ℕ} (hij : i n ≤ j n) : fastCoefficient h i n ≤ fastCoefficient h j n := mul_le_mul_of_nonneg_right (pow_le_pow_right₀ ChartScales.Tg_one_lt.le hij) (Real.rpow_nonneg (ChartScales.Q_pos n).le _) noncomputable def reconstruction (h : ℝ) (index : ℕ → ℕ) (a b : ℝ) (hab : a < b) : CorrectionState.ReconstructionData where exponent := ChartScales.radialExponent h inner := a outer := b inner_lt_outer := hab frequency := radialFrequency h index radialDirection := TorusInverse.vector .radial noncomputable def operators (h : ℝ) (index : ℕ → ℕ) (a b : ℝ) (hab : a < b) : MeanIncrementBounds.Operators Point := CorrectionState.graphOperators (reconstruction h index a b hab) (ChartScales.epsilon h) (fastCoefficient h index) ((0,1),0) ((1,0),0) (TorusInverse.vector .temporal) theorem operators_match_physical (h : ℝ) (index : ℕ → ℕ) (a b : ℝ) (hab : a < b) (n : ℕ) : PhysicalResidualTZ.MatchesAtTZ (operators h index a b hab) (PhysicalResidualBridge.commonGraph (ChartScales.Q n) h (index n)) n := by constructor <;> rfl theorem operator_bounds {h : ℝ} (hh : 0 ≤ h) (U : LocalSignedRequest.SlowRegion (2*h)) {index : ℕ → ℕ} (hi : ∀ n, index n ≤ ChartScales.nativeIndex h n) {a b cL cR : ℝ} (ha : 0 < a) (hab : a < b) (hcL : 0 < cL) (hcR : 0 < cR) : MeanIncrementBounds.OperatorBounds (BaseContextAssembly.movingStrip hh U a b cL cR ha hcL hcR) (operators h index a b hab) ChartScales.kappa := by have hn := BaseContextAssembly.operator_bounds hh U ha hab hcL hcR refine ⟨hn.epsilon_eq, hn.radialProfile, hn.invRadius, ?_, ?_, hn.kappa_nonneg, hn.weight_le_one⟩ · obtain ⟨C, hC, p, hp⟩ := hn.radialFrequency refine ⟨C, hC, p, fun n => ?_⟩ apply le_trans _ (hp n) change ‖radialFrequency h index n‖ ≤ ‖ChartScales.radialCoefficient h n‖ rw [Real.norm_eq_abs, Real.norm_eq_abs, abs_of_pos (radialFrequency_pos h index n), abs_of_pos (ChartScales.radialCoefficient_pos h n)] exact radialFrequency_mono h (hi n) · obtain ⟨C, hC, p, hp⟩ := hn.fastCoefficient refine ⟨C, hC, p, fun n => ?_⟩ apply le_trans _ (hp n) change ‖fastCoefficient h index n‖ ≤ ‖ChartScales.timeCoefficient h n‖ rw [Real.norm_eq_abs, Real.norm_eq_abs, abs_of_pos (fastCoefficient_pos h index n), abs_of_pos (ChartScales.timeCoefficient_pos h n)] exact fastCoefficient_mono h (hi n) section Cover /-- The forward integer covering on the full free auxiliary lift. -/ noncomputable def coverLift (k : ℕ) : Point ≃L[ℝ] Point := (ContinuousLinearEquiv.refl ℝ ℝ).prodCongr ((ContinuousLinearEquiv.refl ℝ Plane).prodCongr (CommonCoverSolve.coverPower k)) @[simp] theorem coverLift_apply (k : ℕ) (x : Point) : coverLift k x = (x.1, (x.2.1, CommonCoverSolve.coverPower k x.2.2)) := rfl @[simp] theorem coverLift_slow (k : ℕ) (x : Point) : BaseContextAssembly.slowCoordinates (coverLift k x) = BaseContextAssembly.slowCoordinates x := rfl @[simp] theorem coverLift_eR (k : ℕ) : coverLift k (1,(0,0)) = (1,(0,0)) := by simp only [coverLift_apply, map_zero] @[simp] theorem coverLift_eZ (k : ℕ) : coverLift k (0,((0,1),0)) = (0,((0,1),0)) := by simp only [coverLift_apply, map_zero] @[simp] theorem coverLift_eT (k : ℕ) : coverLift k (0,((1,0),0)) = (0,((1,0),0)) := by simp only [coverLift_apply, map_zero] theorem coverPower_radial (k : ℕ) : CommonCoverSolve.coverPower k (TorusInverse.vector .radial) = ChartScales.Lambda ^ k • TorusInverse.vector .radial := by rw [CommonCoverSolve.coverPower_apply] exact PhysicalGraphBounds.cover_pow_radialDirection k theorem coverPower_temporal (k : ℕ) : CommonCoverSolve.coverPower k (TorusInverse.vector .temporal) = ChartScales.Tg ^ k • TorusInverse.vector .temporal := by rw [CommonCoverSolve.coverPower_apply] exact PhysicalGraphBounds.cover_pow_timeDirection k noncomputable def pull {E : Type*} (gap : ℕ → ℕ) (f : ℕ → Point → E) (n : ℕ) (x : Point) : E := f n (coverLift (gap n) x) end Cover section CoverClass variable {F : OutgoingProfile.Profile} (W : NominalProfile.Witness F) (U : LocalSignedRequest.SlowRegion (2*F.data.h)) @[simp] theorem coverLift_mem (k : ℕ) (x : Point) : coverLift k x ∈ (BaseContextAssembly.nativeStrip W U).domain ↔ x ∈ (BaseContextAssembly.nativeStrip W U).domain := Iff.rfl @[simp] theorem coverLift_delta (k : ℕ) (x : Point) : (BaseContextAssembly.nativeStrip W U).delta (coverLift k x) = (BaseContextAssembly.nativeStrip W U).delta x := rfl @[simp] theorem coverLift_zeta (k : ℕ) (x : Point) : (BaseContextAssembly.nativeStrip W U).zeta (coverLift k x) = (BaseContextAssembly.nativeStrip W U).zeta x := rfl @[simp] theorem coverLift_growth (k n : ℕ) (x : Point) : (BaseContextAssembly.nativeStrip W U).growth n (coverLift k x) = (BaseContextAssembly.nativeStrip W U).growth n x := rfl end CoverClass section ActualContext variable {F : OutgoingProfile.Profile} {W : NominalProfile.Witness F} (H : NominalConeAssembly.Certificate W) {ld : ModulatedProfileAssembly.LoopData W} (v : ModulatedProfileAssembly.Witness ld) (upper : ℝ) (B : ℕ) /-- Same actual base and stress; only the graph's integer index changes. -/ noncomputable def context (index : ℕ → ℕ) : CorrectionState.Context Point := { BaseContextAssembly.nativeContext H v upper B with operators := operators F.data.h index (PrimaryTargetBounds.leftRadius W) (PrimaryTargetBounds.rightRadius W) (PrimaryTargetBounds.radii_ordered W) } @[simp] theorem context_base (index : ℕ → ℕ) : (context H v upper B index).base = (BaseContextAssembly.nativeContext H v upper B).base := rfl @[simp] theorem context_virtualTheta (index : ℕ → ℕ) : (context H v upper B index).virtualTheta = (BaseContextAssembly.nativeContext H v upper B).virtualTheta := rfl @[simp] theorem context_virtualAxial (index : ℕ → ℕ) : (context H v upper B index).virtualAxial = (BaseContextAssembly.nativeContext H v upper B).virtualAxial := rfl theorem context_operator_bounds (U : LocalSignedRequest.SlowRegion (2 * F.data.h)) {index : ℕ → ℕ} (hi : ∀ n, index n ≤ ChartScales.nativeIndex F.data.h n) : MeanIncrementBounds.OperatorBounds (BaseContextAssembly.nativeStrip W U) (context H v upper B index).operators ChartScales.kappa := operator_bounds F.data.h_pos.le U hi (PrimaryTargetBounds.leftRadius_pos W) (PrimaryTargetBounds.radii_ordered W) (div_pos (FinalSlowBase.edgeExponent_pos W) (by norm_num)) zero_lt_one theorem context_base_bounds (U : LocalSignedRequest.SlowRegion (2 * F.data.h)) (index : ℕ → ℕ) : MeanIncrementBounds.BaseBounds (BaseContextAssembly.nativeStrip W U) (context H v upper B index).base := BaseContextAssembly.native_base_bounds H v upper B U theorem context_base_smooth (U : LocalSignedRequest.SlowRegion (2 * F.data.h)) (index : ℕ → ℕ) : MeanIncrementBounds.SmoothTriple (LocalRankDefect.positiveDomain U.carrier) (context H v upper B index).base := BaseContextAssembly.native_base_smooth H v upper B U theorem context_operators_local (U : Set Plane) (index : ℕ → ℕ) : LocalRankDefect.LocalOperators U (context H v upper B index).operators := by have hn := BaseContextAssembly.native_operators_local H v upper B U exact ⟨hn.radius_eq, hn.radialProfile⟩ theorem context_isSlow (U : Set Plane) (index : ℕ → ℕ) : LocalRankDefect.IsSlowOn U (context H v upper B index).base.radial ∧ LocalRankDefect.IsSlowOn U (context H v upper B index).base.angular ∧ LocalRankDefect.IsSlowOn U (context H v upper B index).base.axial := ⟨BaseContextAssembly.native_radial_isSlow H v upper B U, BaseContextAssembly.native_angular_isSlow H v upper B U, BaseContextAssembly.native_axial_isSlow H v upper B U⟩ theorem context_matches_physical (index : ℕ → ℕ) (n : ℕ) : PhysicalResidualTZ.MatchesAtTZ (context H v upper B index).operators (PhysicalResidualBridge.commonGraph (ChartScales.Q n) F.data.h (index n)) n := operators_match_physical _ _ _ _ _ _ theorem context_radial_physical (index : ℕ → ℕ) (n : ℕ) (x : Point) : (context H v upper B index).base.radial n x = ChartScales.Q n ^ CoordinateAlgebra.A F.data.h * FinalSlowBase.velocity H v upper B (BaseContextAssembly.physicalPoint F.data.h n x) 0 := rfl theorem context_angular_physical (index : ℕ → ℕ) (n : ℕ) {x : Point} (hT : 0 < x.2.1.1) (hR : 0 < x.1) : (context H v upper B index).base.angular n x = ChartScales.Q n ^ CoordinateAlgebra.A F.data.h * FinalSlowBase.velocity H v upper B (BaseContextAssembly.physicalPoint F.data.h n x) 1 := BaseContextAssembly.angularBase_physical H v upper B n hT hR theorem context_axial_physical (index : ℕ → ℕ) (n : ℕ) {x : Point} (hT : 0 < x.2.1.1) : (context H v upper B index).base.axial n x = ChartScales.Q n ^ CoordinateAlgebra.A F.data.h * FinalSlowBase.velocity H v upper B (BaseContextAssembly.physicalPoint F.data.h n x) 2 := BaseContextAssembly.axialBase_physical H v upper B n hT theorem context_stress_properties (U : LocalSignedRequest.SlowRegion (2 * F.data.h)) (index : ℕ → ℕ) (n : ℕ) : ContDiffOn ℝ ∞ (fun x => ((context H v upper B index).virtualTheta n x, (context H v upper B index).virtualAxial n x)) (PhysicalMeanDomain.slowDomain U.carrier) ∧ PhysicalMeanDomain.PeriodicOn U.carrier ((context H v upper B index).virtualTheta n) ∧ PhysicalMeanDomain.PeriodicOn U.carrier ((context H v upper B index).virtualAxial n) ∧ LocalSignedRequest.MovingSupport (PrimaryTargetBounds.leftRadius W) (PrimaryTargetBounds.rightRadius W) (2 * F.data.h) U.carrier ((context H v upper B index).virtualTheta n) ∧ LocalSignedRequest.MovingSupport (PrimaryTargetBounds.leftRadius W) (PrimaryTargetBounds.rightRadius W) (2 * F.data.h) U.carrier ((context H v upper B index).virtualAxial n) := BaseContextAssembly.native_stress_properties H v upper B U n theorem context_stress_classes (hcone : LeadingStressWeights.FullTrueCone v) (U : LocalSignedRequest.SlowRegion (2 * F.data.h)) (index : ℕ → ℕ) : MeanClass (BaseContextAssembly.nativeStrip W U) 1 (context H v upper B index).virtualTheta ∧ MeanClass (BaseContextAssembly.nativeStrip W U) 1 (context H v upper B index).virtualAxial := BaseStressClasses.virtualStress_components H v hcone upper B U theorem context_higher_stress_classes (U : LocalSignedRequest.SlowRegion (2 * F.data.h)) (index : ℕ → ℕ) : MeanClass (BaseContextAssembly.nativeStrip W U) 2 (fun n x => (context H v upper B index).virtualTheta n x - (BaseContextAssembly.leadingVirtualStress H v n x).1) ∧ MeanClass (BaseContextAssembly.nativeStrip W U) 2 (fun n x => (context H v upper B index).virtualAxial n x - (BaseContextAssembly.leadingVirtualStress H v n x).2) := BaseStressClasses.higherStress_components H v upper B U end ActualContext end NavierStokes.CommonBaseContext