import Mathlib import OAI.Analysis.HardSphere.Thermodynamics.ScaledJointLowCounts namespace OAI noncomputable section open MeasureTheory Filter Set open scoped ENNReal Topology BigOperators open scoped BigOperators ComplexConjugate open MeasureTheory ProbabilityTheory Filter Set open scoped ENNReal NNReal Topology BigOperators open MeasureTheory ProbabilityTheory Real Complex open scoped ENNReal ComplexConjugate open ProbabilityTheory open MeasureTheory Filter Set open scoped ENNReal Topology open MeasureTheory Set open scoped ENNReal namespace HardSphere open MeasureTheory Set Filter def groundPositionLaw (N : ℕ) (L : Length) (u : Jet N L) : Measure (Configuration N L) := volume.withDensity (fun X ↦ ENNReal.ofReal (‖u.1 X‖^2)) namespace CellOrbital lemma count_continuous {n : ℕ} (L : Length) (δ : ℝ) (c : Torus L) : Continuous (count (n:=n) L δ c) := by apply continuous_finsetSum intro i _ exact ((bump_continuous L (8*δ) c).comp (continuous_apply i)).pow 2 lemma joint_one {S : Type*} [DecidableEq S] {n : ℕ} {L : Length} {h : ℝ} (hh : 0