size_priority_noise_disagreement_zero
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.
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.
uses
Finset.sum_eq_zerounfold size_priority_noise_disagreement apply Finset.sum_eq_zero intro E _
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.
uses
Finset.sum_eq_singlerw [Finset.sum_eq_single (∅ : Finset (Fin n × Fin n))] · simp
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.
uses
zero_pow· intro R _ hR have : R.card ≠ 0 := by simpa using hR simp [zero_pow this]
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.
· 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.
- In line 7, `simp` automatically determines that when R = ∅, the perturbed edge weights coincide with the original weights, so the resulting matchings are identical and their symmetric difference is empty, causing the integral of zero to vanish.
- Step 4 discharges a formal artifact of `Finset.sum_eq_single`, which includes a case for when the single element is not in the indexing set; here the indexing set is the full universe `Finset.univ`, so the condition is vacuously satisfied.
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
Choose a tactic — a marked line — to see the goals Lean had before and after it, as in Lean’s infoview. Step with ← → or j k.
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