import Mathlib import OAI.Analysis.HardSphere.Conditioning.ReferenceResample import OAI.Analysis.HardSphere.Allocation.PhysicalAssembly import OAI.Analysis.HardSphere.Allocation.PhysicalDatum namespace OAI section noncomputable section open MeasureTheory ProbabilityTheory Set Filter open scoped ENNReal NNReal Topology BigOperators namespace HardSphere.Groups open Wiener Bridge GaussianPacking PathCutoff CellOrbital lemma nearestLift_eq_of_near {L : Length} (hL : 50 linarith change ((AddCircle.equivIco L.val (-L.val/2)) ((y j:AddCircle L.val)-(c j:AddCircle L.val))).val+c j=y j rw [←AddCircle.coe_sub,AddCircle.equivIco_coe_eq hmem] simp lemma near_lift_unique {L : Length} (hL : 50 congr 10 all_goals try exact Subsingleton.elim _ _ all_goals rw [hd] · filter_upwards [allocated_selected_flags hL μ g b a (labelInteraction N L r (2*t)∩flagEvent (eligibilityFlag (K:=K) m r R C S s₀ (2*t) u) b)] with w hw exact (hb (fun i ↦ hw i i.property)).elim end HardSphere.Groups end end end OAI