import Mathlib import OAI.Analysis.HardSphere.Conditioning.PhysicalFullReference namespace OAI section noncomputable section open MeasureTheory ProbabilityTheory Set open scoped ENNReal BigOperators namespace HardSphere.Groups open Wiener Bridge Sampling Comparison GaussianPacking PathCutoff CellOrbital attribute [local instance] Classical.propDecidable theorem physicalBranch_primary_midpoint {N K M G : ℕ} {L : Length} (hL : L.val=(K:ℝ)) (hK : 1≤K) (h50 : 50 exact (projectPoint_continuous L).measurable.comp ((continuous_eval_const midpointTime).measurable.comp measurable_snd) | some i => exact (measurable_pi_apply i).comp ((continuous_eval_const midpointTime).measurable.comp ((labelBridgePath_measurable N L (2*t)).comp measurable_fst)))] at H have hf : Measurable (fun z ↦ labelBridgePath N L (2*t) z midpointTime) := (continuous_eval_const midpointTime).measurable.comp (labelBridgePath_measurable N L (2*t)) have he : Measurable (fun e : C(Time,Point) ↦ projectPoint L (e midpointTime)) := (projectPoint_continuous L).measurable.comp (continuous_eval_const midpointTime).measurable rw [Measure.map_prod_map _ _ hf he,Measure.map_map (by apply Measurable.of_eval intro i cases i with | none => exact measurable_snd | some i => exact (measurable_pi_apply i).comp measurable_fst) (hf.prodMap he)] exact H end HardSphere.Groups end end end OAI