import Mathlib import OAI.Analysis.HardSphere.Paths.LiftedSkeleton namespace OAI section noncomputable section open MeasureTheory ProbabilityTheory Set open scoped ENNReal BigOperators namespace HardSphere.DyadicSkeleton open HardSphere.Lattice attribute [local instance] Classical.propDecidable lemma measurable_simpleEncounter {K : ℕ} [NeZero K] (R : ℕ) (x y : DiscreteTorus K) : Measurable (fun p : SimplePath x y × SimplePath x y ↦ simpleEncounter R p.1 p.2) := measurable_of_countable _ lemma measurable_simpleEncounter_comp {Ω : Type*} [MeasurableSpace Ω] {K : ℕ} [NeZero K] (R : ℕ) {x y : DiscreteTorus K} (f : Ω → SimplePath x y) (hf : Measurable f) : Measurable (fun z : Ω×Ω ↦ simpleEncounter (K:=K) R (x:=x) (y:=y) (f z.1) (f z.2)) := by have hf1 : Measurable (fun z : Ω×Ω ↦ f z.1) := hf.comp measurable_fst have hf2 : Measurable (fun z : Ω×Ω ↦ f z.2) := hf.comp measurable_snd have hpair : Measurable (fun z : Ω×Ω ↦ (f z.1,f z.2)) := hf1.prodMk hf2 exact Measurable.comp (g:=fun p : SimplePath x y × SimplePath x y ↦ simpleEncounter (K:=K) R p.1 p.2) (f:=fun z : Ω×Ω ↦ (f z.1,f z.2)) (measurable_simpleEncounter (K:=K) R x y) hpair @[fun_prop] lemma measurable_dyadicEncounter {K n : ℕ} [NeZero K] (hK : 2 fun_prop lemma dyadic_environment_moment {K n : ℕ} [NeZero K] (hK : 2