Lemma A.4 — two marriages that do not block each other
ProvedLegalAssign.lemma_A_4matching-theoryp2o-gran-per-chapterp2o-plan-paperp2o-v1school-choicestable-matching
Let be an instance of stable marriage, that is, all quotas equal , and let . Call an edge irregular if both and strictly prefer to or both strictly prefer to , an unmatched vertex preferring any partner to none. If does not block and does not block , then:
- there are no irregular edges;
- is a disjoint union of singletons and cycles;
- a node is matched in if and only if it is matched in .
The lemma extends the opposition-of-interest property of stable matchings to pairs of matchings that merely do not block each other.
Formalization Note Part 2 is stated as "every vertex has degree or in ".
Differences from the source:
- encoding: <_v is a strict ordering of the neighbours of v in G → prefA a and prefB b are strict total orders on the whole other side; reason: only comparisons among neighbours ever enter, and every strict order on the neighbours extends to the whole side
- encoding: G is a bipartite graph, finite throughout the paper → Fintype A, Fintype B, E : Finset (A × B), assignments are Finsets of pairs; reason: Lean convention; the same instances
- encoding: G[M△M′] is a disjoint union of singletons and cycles → every student and every school has degree 0 or 2 in symmDiff M M′; reason: for a finite simple graph the two are the same condition
Preamble
import Mathlib import Definitions.Def_LegalAssign_Instance
Formal statement
namespace LegalAssign
/-- Lemma A.4 (arXiv:1809.08506v2, p.26). In a stable marriage instance (all quotas one), let `M, M'`
be assignments that do not block each other. Then (1) no edge of `M ∪ M'` is irregular, that is, has
both endpoints strictly preferring `M` to `M'` or both strictly preferring `M'` to `M`; (2) every
vertex has degree `0` or `2` in `M △ M'`; (3) a vertex is matched in `M` iff it is matched in `M'`.
**Formalization Note** Part 2 of the source reads "`G[M△M']` is a disjoint union of singletons and
cycles". For a finite simple graph this is exactly "every vertex has degree `0` or `2`", and that is
what is stated. -/
theorem lemma_A_4 {A B : Type*} [Fintype A] [Fintype B] [DecidableEq A] [DecidableEq B] (G : Instance A B) (hq : ∀ b, G.q b = 1)
(M M' : Finset (A × B)) (hM : M ∈ G.assignments) (hM' : M' ∈ G.assignments)
(h : ¬ G.Blocks M M') (h' : ¬ G.Blocks M' M) :
(∀ a b, (a, b) ∈ M ∪ M' →
¬ ((G.StudentStrictlyPrefers M M' a ∧ G.SchoolStrictlyPrefers M M' b) ∨
(G.StudentStrictlyPrefers M' M a ∧ G.SchoolStrictlyPrefers M' M b))) ∧
((∀ a, (studentPartners (symmDiff M M') a).card = 0 ∨
(studentPartners (symmDiff M M') a).card = 2) ∧
(∀ b, (schoolPartners (symmDiff M M') b).card = 0 ∨
(schoolPartners (symmDiff M M') b).card = 2)) ∧
((∀ a, (studentPartners M a).Nonempty ↔ (studentPartners M' a).Nonempty) ∧
(∀ b, (schoolPartners M b).Nonempty ↔ (schoolPartners M' b).Nonempty)) := by sorry
end LegalAssign
Source
Faenza–Zhang, arXiv:1809.08506v2, Lemma A.4, p.26
Human review
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.