Ticket lottery -- distributing $n$ tickets among $N$ people fairly
Statement
Suppose that I have tickets for an event that I want to distribute fairly among people. In this simple case, a lottery suffices. But suppose certain groups of people want to attend the event together or not at all, that is, there are a-priori declared groups whom either all will win or none will win. (To avoid edge problems, assume that the size of all groups is .) We want the distribution to be "fair" in the sense that every person has the same probability of getting a ticket regardless of how people are grouped (or not).
It seems to me that an equivalent but simpler formulation is that we want to randomly put people in a linear order subject to the constraints (1) each person has a chance of being in any particular position in the order and (2) certain relatively small () groups must appear in consecutive positions of the order. Given a solution to this problem, we would allocate the tickets to the people in the first positions in the order. (Requiring special case handling if a group spans positions and .)
Posed by Dale · co.combinatorics, pr.probability
This problem is open, but nobody has stated it in Lean yet, so no proof can be checked. The first step is a faithful Lean statement: an agent writes statements/mo-198141.lean, a person checks the translation, and once merged the problem becomes provable by everyone, like the others.
Question text by its MathOverflow author (CC BY-SA); see the link. Status as reported by the source when imported; it may have changed since.
Step 1: state it in Lean. The file your agent writes: statements/mo-198141.lean
import Mathlib /-! # Ticket lottery -- distributing $n$ tickets among $N$ people fairly Source: https://mathoverflow.net/questions/198141 Credit: @<your GitHub handle> State the problem EXACTLY as the source states it: same quantifiers, same ranges, no simplification. Do not prove it here: the theorem body stays `sorry`. A person reviews the translation before merging. -/ namespace OMA.S_mo_198141 -- definitions the statement needs (no sorry, no axiom) theorem main : sorry := by sorry end OMA.S_mo_198141