Documentation

CslibFrontier.Foundations.Data.Finset.Expect.Threshold

Threshold cuts and real-valued distances #

For two finite families of ordered pairs, a first-moment comparison for every placement into a space with two points at positive distance implies the same comparison for every real-valued placement. At a threshold t, the two sides of the cut are placed at the two points. The set of thresholds separating two real numbers has length equal to their distance.

theorem Fintype.expect_abs_sub_le_of_forall_expect_dist_le {V : Type u_1} {I : Type u_2} {J : Type u_3} {X : Type u_4} [Fintype I] [Fintype J] [PseudoMetricSpace X] (a b : I → V) (c d : J → V) {K : ℝ} (h : ∀ (f : V → X), (Finset.univ.expect fun (i : I) => dist (f (a i)) (f (b i))) ≤ K * Finset.univ.expect fun (j : J) => dist (f (c j)) (f (d j))) {x y : X} (hxy : 0 < dist x y) (u : V → ℝ) :
(Finset.univ.expect fun (i : I) => |u (a i) - u (b i)|) ≤ K * Finset.univ.expect fun (j : J) => |u (c j) - u (d j)|

Comparing the mean distances of two finite families of pairs for every placement into X also compares their mean distances on the real line. Two points of X at positive distance suffice.