AFTD Auto-Formalizing Theoretical Domains

serial_dictatorship_first_excess_match_prob_two_one

theoremverified

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

Statement

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

Read back from the Lean

The value of serial_dictatorship_first_excess_match_prob 2 1 is equal to 1 / 4 (in the real numbers).

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

To find the match probability of student 3 with 2 schools and preference lists of length 1 under serial dictatorship, the proof unfolds the definition into an expectation over the number k ∈ {0, 1, 2} of schools filled by the first two students. It then expands the transition recurrence for the occupancy distribution down to the initial state, reducing the goal to a closed rational arithmetic expression that evaluates to 1/4.

  1. The match probability of student 3 is expressed as an explicit sum over the possible numbers of schools k ∈ {0, 1, 2} filled by the first two students.

    Unfolding the definition of `serial_dictatorship_first_excess_match_prob 2 1` expresses the probability as the sum over k ∈ {0, 1, 2} of the probability dist(2, 1, 2, k) that k schools are filled, multiplied by the probability 1 - (k choose 1)/(2 choose 1) that student 3's listed school remains available. Expanding the finite sum with `Finset.sum_range_succ`, `Finset.range_zero`, and `Finset.sum_empty` expands this into the sum of three explicit terms for k = 0, 1, 2.

    lines 3–4

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

      dsimp [serial_dictatorship_first_excess_match_prob]
      simp only [Finset.sum_range_succ, Finset.range_zero, Finset.sum_empty]
  2. The occupancy probabilities dist(2, 1, 2, k) are expanded into concrete arithmetic expressions via their recurrence relations.

    Using the recurrence relation `serial_dictatorship_first_excess_match_prob.dist.eq_2` twice (unrolling step m = 2 down to m = 1 and then to m = 0) and evaluating the base case m = 0 with `serial_dictatorship_first_excess_match_prob.dist.eq_1`, the Markov chain probabilities are replaced by nested conditional and rational expressions in binomial coefficients.

    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]
  3. The expanded expression evaluates to 1/4.

    Evaluating the binomial coefficients (such as (0 choose 1) = 0, (1 choose 1) = 1, and (2 choose 1) = 2), resolving the boolean branch conditions, and simplifying the resulting rational arithmetic confirms the total probability is 1/4.

    line 7

      norm_num
Finset.sum_range_succ
The sum of a function over {0, …, n} equals the sum over {0, …, n - 1} plus the term at n.
Finset.range_zero
The set of natural numbers strictly less than 0 is empty.
Finset.sum_empty
The sum of any function over the empty set is 0.
serial_dictatorship_first_excess_match_prob.dist.eq_2
The recursive transition for the distribution of occupied schools: after m + 1 students, the probability that k schools are filled is the probability of staying at k (multiplying by (k choose d) / (n choose d)) plus the probability of transitioning from k - 1 (multiplying by 1 - ((k - 1) choose d) / (n choose d)).
serial_dictatorship_first_excess_match_prob.dist.eq_1
The base case of the distribution: before any students arrive (m = 0), exactly 0 schools are occupied with probability 1, and all other states have probability 0.

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 1, student 3 matches with probability 1/4. -/theorem serial_dictatorship_first_excess_match_prob_two_one : serial_dictatorship_first_excess_match_prob 2 1 = 1 / 4 := 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