AFTD Auto-Formalizing Theoretical Domains

serial_dictatorship_first_excess_match_prob_two_two

theoremverified

In a market with 2 unit-capacity schools and list length 2, the match probability p_2(2) of student 3 equals 0.

Statement

theorem serial_dictatorship_first_excess_match_prob_two_two : serial_dictatorship_first_excess_match_prob 2 2 = 0
Source
arXiv:2506.06217, Section 2.1 (Longer Lists Yield Better Matchings)
Verified
19 Nov 2026
Axioms
Classical.choiceQuot.soundpropext
Built on 1
Used by 1

Read back from the Lean

The value of serial_dictatorship_first_excess_match_prob evaluated at $n = 2$ and $d = 2$ is equal to $0$ (in $\mathbb{R}$).

Written by a model that saw only the Lean, never the English above. If the two disagree, that is worth a challenge.

The proof, explained

The theorem is proved by directly computing the match probability formula for $n = 2$ schools and list length $d = 2$. The proof expands the definition into an explicit sum over the three possible states $k \in \{0, 1, 2\}$, unfolds the recurrence relation for the state distribution at step 2, and concludes with numerical evaluation showing the resulting probability is 0.

  1. The match probability is expressed as the summation $\sum_{k=0}^2 \mathrm{dist}(2, 2, 2, k) \cdot \left(1 - \frac{\binom{k}{2}}{\binom{2}{2}}\right)$.

    Unfolding the definition of `serial_dictatorship_first_excess_match_prob` for $n = 2$ schools and list length $d = 2$ expresses the match probability of the first excess student as a sum over $k \in \{0, 1, 2\}$ of the state probability $\mathrm{dist}(2, 2, 2, k)$ weighted by the probability of successfully drawing an available school.

    line 3

      dsimp [serial_dictatorship_first_excess_match_prob]
  2. The summation over $\{0, 1, 2\}$ is expanded into an explicit sum of three terms corresponding to $k = 0, 1, 2$.

    Repeatedly applying `Finset.sum_range_succ` peels off the terms for $k = 2$, $k = 1$, and $k = 0$, while `Finset.range_zero` and `Finset.sum_empty` evaluate the empty base summation to 0.

    line 4

    uses Finset.sum_range_succ, Finset.range_zero, Finset.sum_empty

      simp only [Finset.sum_range_succ, Finset.range_zero, Finset.sum_empty]
  3. The distribution values $\mathrm{dist}(2, 2, 2, k)$ are expanded using their recurrence relation and base values.

    Rewriting with `serial_dictatorship_first_excess_match_prob.dist.eq_2` unfolds the two successive transition steps of the underlying Markov chain, and rewriting with `serial_dictatorship_first_excess_match_prob.dist.eq_1` substitutes the initial distribution at step 0.

    lines 5–6

    uses serial_dictatorship_first_excess_match_prob.dist.eq_2, serial_dictatorship_first_excess_match_prob.dist.eq_1

      simp only [serial_dictatorship_first_excess_match_prob.dist.eq_2,
        serial_dictatorship_first_excess_match_prob.dist.eq_1]
  4. The overall match probability evaluates to 0. automation

    The expression is now an explicit rational formula involving binomial coefficients, simple conditionals, and basic arithmetic; `norm_num` evaluates each term and verifies that the sum equals 0.

    line 7

      norm_num
Finset.sum_range_succ
The sum of a function over the range $\{0, \dots, n\}$ equals the sum over $\{0, \dots, n-1\}$ plus the value at $n$.
Finset.range_zero
The range of length 0 is the empty set.
Finset.sum_empty
The sum of any function over the empty set is 0.
serial_dictatorship_first_excess_match_prob.dist.eq_2
The recurrence step for the probability distribution `dist`: the distribution at step $m + 1$ is determined from the distribution at step $m$ by the transition probabilities of the serial dictatorship process.
serial_dictatorship_first_excess_match_prob.dist.eq_1
The base case for `dist`: at step 0, the process starts in state 0 with probability 1 and probability 0 for all other states.

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

/-- For 2 schools and list length 2, student 3 matches with probability 0. -/theorem serial_dictatorship_first_excess_match_prob_two_two : serial_dictatorship_first_excess_match_prob 2 2 = 0 := by  dsimp [serial_dictatorship_first_excess_match_prob]  simp only [Finset.sum_range_succ, Finset.range_zero, Finset.sum_empty]  simp only [serial_dictatorship_first_excess_match_prob.dist.eq_2,    serial_dictatorship_first_excess_match_prob.dist.eq_1]  norm_num
See it in the graphDiscuss this resultChallenge it