AFTD Auto-Formalizing Theoretical Domains

serial_dictatorship_first_excess_match_prob_zero

theoremverified

With an empty preference list a student lists no school at all, hence is never matched: p_n(0) = 0 for every n.

Statement

theorem serial_dictatorship_first_excess_match_prob_zero (n : ℕ) :
    serial_dictatorship_first_excess_match_prob n 0 = 0
Source
step towards serial_dictatorship_first_excess_optimal_list_sqrt_scale
Verified
19 Nov 2026
Axioms
Classical.choiceQuot.soundpropext
Built on 2

The proof, explained

To evaluate the excess match probability for an empty preference list ($d = 0$), we unfold the definition of `serial_dictatorship_first_excess_match_prob`. The probability is defined as a sum over $k$ of terms with factor $1 - \binom{k}{0}/\binom{n}{0}$. Because $\binom{k}{0} = 1$ and $\binom{n}{0} = 1$, this factor is $1 - 1 = 0$ for every term, so every summand vanishes and the total sum is $0$.

  1. For any $n \in \mathbb{N}$, the excess match probability $\mathrm{serial\_dictatorship\_first\_excess\_match\_prob}(n, 0) = 0$. automation

    Unfolding the definition of `serial_dictatorship_first_excess_match_prob` expresses the probability as the sum $\sum_{k=0}^n \mathrm{dist}(n, 0, n, k) \cdot \left(1 - \frac{\binom{k}{0}}{\binom{n}{0}}\right)$. For every $k$ and $n$, $\binom{k}{0} = 1$ and $\binom{n}{0} = 1$, so the term $1 - \frac{\binom{k}{0}}{\binom{n}{0}}$ evaluates to $1 - 1 = 0$. Each summand is therefore zero, and the sum simplifies directly to $0$.

    line 3

    uses serial_dictatorship_first_excess_match_prob, serial_dictatorship_first_excess_match_prob_two_two

        serial_dictatorship_first_excess_match_prob n 0 = 0 := by first | exact serial_dictatorship_first_excess_match_prob_two_two | (apply serial_dictatorship_first_excess_match_prob_two_two <;> assumption) | (apply serial_dictatorship_first_excess_match_prob_two_two <;> simp_all) | simpa using serial_dictatorship_first_excess_match_prob_two_two | (simp only [serial_dictatorship_first_excess_match_prob] at *; first | exact serial_dictatorship_first_excess_match_prob_two_two | (apply serial_dictatorship_first_excess_match_prob_two_two <;> assumption) | (apply serial_dictatorship_first_excess_match_prob_two_two <;> simp_all) | simpa using serial_dictatorship_first_excess_match_prob_two_two)
serial_dictatorship_first_excess_match_prob
The excess match probability in serial dictatorship with $n$ agents and preference lists of length $d$, defined as the sum over $k \in \{0, \dots, n\}$ of $\mathrm{dist}(n, d, n, k) \cdot (1 - \binom{k}{d} / \binom{n}{d})$.
serial_dictatorship_first_excess_match_prob_two_two
The excess match probability is $0$ when $n = 2$ and list length $d = 2$.

Written by a model (gemini-3.8-flash) from the Lean proof and the goal states Lean reported at each step. Lean verified the proof; this explanation is a reading aid and is not itself machine-checked.

Lean source view module on GitHub

/-- Sanity value at list length 0. -/theorem serial_dictatorship_first_excess_match_prob_zero (n : ℕ) :    serial_dictatorship_first_excess_match_prob n 0 = 0 := by first | exact serial_dictatorship_first_excess_match_prob_two_two | (apply serial_dictatorship_first_excess_match_prob_two_two <;> assumption) | (apply serial_dictatorship_first_excess_match_prob_two_two <;> simp_all) | simpa using serial_dictatorship_first_excess_match_prob_two_two | (simp only [serial_dictatorship_first_excess_match_prob] at *; first | exact serial_dictatorship_first_excess_match_prob_two_two | (apply serial_dictatorship_first_excess_match_prob_two_two <;> assumption) | (apply serial_dictatorship_first_excess_match_prob_two_two <;> simp_all) | simpa using serial_dictatorship_first_excess_match_prob_two_two)
See it in the graphDiscuss this resultChallenge it