AFTD Auto-Formalizing Theoretical Domains

size_priority_noise_disagreement_zero

theoremverified

With resampling probability p = 0 nothing is resampled, so D_n(c,0) = 0 for every n and c.

Statement

theorem size_priority_noise_disagreement_zero (n : ℕ) (c : ℝ) :
    size_priority_noise_disagreement n c 0 = 0
Source
Sanity lemma for size_priority_noise_disagreement (OP-1789).
Verified
17 Nov 2026
Axioms
Classical.choiceQuot.soundpropext
Built on 2
  • size_priority_noise_disagreementD_n(c,p) = E[|M Δ M'|]/(2n), written out: the sum over edge sets E ⊆ Fin n × Fin n (each pair present independently with probability 1 -…
  • size_priority_matchingA chosen size-priority optimal matching of the bipartite graph on Fin n + Fin n with edge set E under costs w (Hilbert's epsilon of…

The proof, explained

The disagreement measure D_n(c, 0) is defined as an expectation (a double sum over edge sets E and resampling sets R) of the normalized symmetric difference between the original and perturbed matchings. When the resampling probability is p = 0, any non-empty resampling set R ≠ ∅ has probability factor 0^|R| = 0 and thus contributes zero to the sum. The only remaining term is R = ∅, where no edges are resampled; there the perturbed matching is identical to the original, so their symmetric difference is empty and the integral vanishes as well.

  1. To show the total disagreement is zero, it suffices to show that for every edge set E, the inner sum over resampling sets R is zero.

    Unfolding the definition of `size_priority_noise_disagreement` expresses the quantity as a sum over edge sets E of an inner sum over resampling subsets R. By `Finset.sum_eq_zero`, a sum of terms in an additive commutative monoid is zero if every term is zero. We introduce an arbitrary edge set E and reduce the goal to showing that its inner sum vanishes.

    lines 3–5

    uses Finset.sum_eq_zero

      unfold size_priority_noise_disagreement
      apply Finset.sum_eq_zero
      intro E _
  2. The inner sum reduces to its term at R = ∅, and this term evaluates to zero. automation

    Rewriting with `Finset.sum_eq_single` isolates the single term where R = ∅. When no edges are resampled (R = ∅), the perturbed priority assignment is identical to the original priority assignment. The resulting size-priority matching is therefore identical to the original one, so the symmetric difference of the two matchings is empty. Its cardinality is 0, which makes the integrand zero, and the entire term evaluates to zero.

    lines 6–7

    uses Finset.sum_eq_single

      rw [Finset.sum_eq_single (∅ : Finset (Fin n × Fin n))]
      · simp
  3. Every term with R ≠ ∅ vanishes because the resampling probability is zero.

    For any non-empty set R, its cardinality |R| is non-zero. Because the resampling probability is p = 0, the term contains a factor of 0^|R|. By `zero_pow`, zero raised to a non-zero power is zero, so multiplying by this factor makes the entire summand zero.

    lines 8–10

    uses zero_pow

      · intro R _ hR
        have : R.card ≠ 0 := by simpa using hR
        simp [zero_pow this]
  4. The boundary hypothesis that ∅ ∉ Finset.univ is vacuously false.

    The second side condition generated by `Finset.sum_eq_single` assumes that the empty set is not in `Finset.univ`. Since the empty set is always an element of the universe of finite sets, this hypothesis is false, and the implication holds vacuously.

    line 11

      · simp
Finset.sum_eq_zero
A finite sum is zero if every term in the sum is zero.
Finset.sum_eq_single
A finite sum equals the value of its summand at a single element a, provided the summand is zero for all other elements of the index set (and zero if a is not in the set).
zero_pow
Zero raised to any non-zero natural power is zero.

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

theorem size_priority_noise_disagreement_zero (n : ℕ) (c : ℝ) :    size_priority_noise_disagreement n c 0 = 0 := by  unfold size_priority_noise_disagreement  apply Finset.sum_eq_zero  intro E _  rw [Finset.sum_eq_single (∅ : Finset (Fin n × Fin n))]  · simp  · intro R _ hR    have : R.card ≠ 0 := by simpa using hR    simp [zero_pow this]  · simp
See it in the graphDiscuss this resultChallenge it