import NavierStokes.GluedStageEstimates import NavierStokes.SharpPhysicalLogBounds noncomputable section namespace NavierStokes.SharpParticularGluing open Set Function Filter ProblemStatement PhysicalWaveSum SharpGluedStageBounds open CorrectionInitialization.ActualPrimary CorrectionStep open scoped Topology ContDiff BigOperators private theorem choose_mode_constants {P : ℤ → ℝ → ℕ → Prop} (hP : ∀ k, k ≠ 0 → ∃ C : ℝ, 0 ≤ C ∧ ∃ N : ℕ, P k C N) : ∃ C : ℤ → ℝ, (∀ k, 0 ≤ C k) ∧ ∃ N : ℤ → ℕ, ∀ k, k ≠ 0 → P k (C k) (N k) := by classical have hs (k : ℤ) : ∃ C : ℝ, 0 ≤ C ∧ ∃ N : ℕ, k ≠ 0 → P k C N := by by_cases hk : k = 0 · exact ⟨0,le_rfl,0,fun hn => (hn hk).elim⟩ · obtain ⟨C,hC,N,hb⟩ := hP k hk exact ⟨C,hC,N,fun _ => hb⟩ choose C hC N hb using hs exact ⟨C,hC,N,hb⟩ section HarmonicSums variable {B N0 : ℕ} {σ : ℝ} {x : CycleState (ActualInitialization.Index B N0)} (H : ActualParticularCycleData.Invariant σ x) (hGeom : ActualCarrierGeometry.geometricThreshold ≤ N0) include H hGeom end HarmonicSums end NavierStokes.SharpParticularGluing