sampfordProbSubset
def
The Sampford sampling probability of a set S of parties given residues r with sum k: in the degenerate cases k = 0 and k = n it is the point mass at the empty set and at the full set respectively, and otherwise it is the normalized weight of S among all size-k subsets.
Statement
open Classical in noncomputable def sampfordProbSubset {n : ℕ} (r : Fin n → ℝ) (k : ℕ) (S : Finset (Fin n)) : ℝ
- Source
- step towards sampford_consecutive_house_coupling_loss_delta_four
- Verified
- 18 Nov 2026
- Axioms
- none listed
- Built on 2
- sampfordWeightThe Sampford (unnormalized) weight of a set S of parties for a residue vector r, matching Eq. (2) of Correa et al. (arXiv:2405.03687):…
- sampfordTotalWeightThe total Sampford weight of all size-k subsets of the n parties, i.e. the normalizing constant (the probability of non-rejection) of…
- Used by 3
- sampfordIsCouplingprob is a valid coupling of the Sampford apportionments at house sizes h and h+1 for the vote-share vector p: it is nonnegative and its…
- sampford_consecutive_house_coupling_loss_delta_six_ge_asymmetricFor six parties, the maximal consecutive-house coupling loss Delta_6 is at least 650133/3333400, witnessed by the asymmetric configuration…
- sampford_consecutive_house_coupling_loss_delta_unfoldDelta_n is the supremum, over all positive vote-share vectors p and all house sizes h >= 1, of the infimum over all valid couplings of the…
Lean source view module on GitHub
open Classical in /-- Sampford sampling probability of a subset of parties. -/ noncomputable def sampfordProbSubset {n : ℕ} (r : Fin n → ℝ) (k : ℕ) (S : Finset (Fin n)) : ℝ := if k = 0 then (if S = ∅ then 1 else 0) else if k = n then (if S = Finset.univ then 1 else 0) else if S.card = k ∧ sampfordTotalWeight r k ≠ 0 then sampfordWeight r S / sampfordTotalWeight r k else 0