import OAI.Probability.InvariantIsing.Pressure.RandomOrbitAlmostSure namespace OAI /-! Conditional Haar concentration along a selected sequence of dimensions. -/ noncomputable section open MeasureTheory ProbabilityTheory Filter Set open scoped Topology ENNReal namespace InvariantIsing theorem ae_selected_orbit_pressure_sub_mean (hhaar : HaarConcentrationInput) {Ω : Type*} [MeasurableSpace Ω] (P : Measure Ω) [IsProbabilityMeasure P] (s : ℕ → ℕ) (hs : ∀ k, k ≤ s k) (d : (k : ℕ) → Ω → FieldSpectralData (s k+1)) (Y : ℕ → Ω → ℝ) (hd : ∀ N, Measurable (d N)) (hY : ∀ N, Measurable (Y N)) (H : (N : ℕ) → Measure (Orthogonal N)) [∀ N, IsProbabilityMeasure (H N)] [∀ N, (H N).IsMulRightInvariant] (hlaw : ∀ N, ConditionalFieldOrbitLaw P (d N) (Y N) (H (s N+1))) (hbound : ∀ᵐ ω ∂P, ∃ K : ℝ, ∀ᶠ k in atTop, spectralRadius ((d k ω).1) ≤ K) : ∀ᵐ ω ∂P, Tendsto (fun k => Y k ω- ∫ U, dataPhysicalPressure (d k ω) U ∂H (s k+1)) atTop (𝓝 0) := by apply ae_tendsto_zero_of_localized_exponential_tail P (fun k ω => Y k ω-∫ U, dataPhysicalPressure (d k ω) U ∂H (s k+1)) (fun k ω => spectralRadius ((d k ω).1)) _ hbound intro K ε hK hε obtain ⟨C,a,hC,ha,ht⟩ := uniform_physical_pressure_mean_tail hhaar obtain ⟨N₀,hN₀⟩ := ht K ε hK hε refine ⟨C,a*(ε/2)^2/K^2,hC.le,by positivity,max N₀ 3,?_⟩ intro n hn have hb := conditional_orbit_tail_bound (Nat.succ_pos (s n)) P (d n) (Y n) (hd n) (hY n) (H (s n+1)) (hlaw n) K ε (C*Real.exp (-a*(s n+1 : ℝ)*(ε/2)^2/K^2)) (fun data hdata => by simpa only [dataPhysicalPressure,Nat.cast_add,Nat.cast_one] using hN₀ (s n+1) (by have := hs n; omega) (by have := hs n; omega) (H (s n+1)) inferInstance inferInstance data.1 data.2 hdata) have he : {ω | (∀ i, |(d n ω).1 i| ≤ K) ∧ ε ≤ |Y n ω-∫ U, dataPhysicalPressure (d n ω) U ∂H (s n+1)|}= {ω | ε ≤ |Y n ω-∫ U, dataPhysicalPressure (d n ω) U ∂H (s n+1)| ∧ spectralRadius ((d n ω).1) ≤ K} := by ext ω simp only [mem_ofPred_eq,spectralRadius_le_iff,and_comm] rw [he] at hb have hreal := ENNReal.toReal_mono (ENNReal.ofReal_ne_top) hb rw [ENNReal.toReal_ofReal (by positivity)] at hreal refine hreal.trans ?_ apply mul_le_mul_of_nonneg_left _ hC.le apply Real.exp_le_exp.mpr have hc : 0 ≤ a*(ε/2)^2/K^2 := by positivity calc -a*(s n+1 : ℝ)*(ε/2)^2/K^2= -(a*(ε/2)^2/K^2)*((s n : ℝ)+1) := by ring _ ≤ -(a*(ε/2)^2/K^2)*(n : ℝ) := by have hsn : (n : ℝ) ≤ s n := by exact_mod_cast hs n nlinarith end InvariantIsing end end OAI