AFTD Auto-Formalizing Theoretical Domains

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

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
See it in the graphDiscuss this resultChallenge it