Lemma 5.3 — the first principal cone of a simple man and the second cone of a man in
OpenStableCountSub3.lemma_5_3Fix an instance of the stable marriage problem with men and women, a downset of the rotation poset (the reference stable matching ), and an outward direction (forward: the order on ; backward: the reverse order on ). For a man write , and for his -th principal cone, its support (the set of men participating in its rotations) and the support size ( when the -th rotation of in the outward order does not exist). A man is simple if ; and (Definition 5.2). Executing a rotation means eliminating it (forward) or undoing its elimination (backward); a swap is a rotation whose execution exchanges the partners of the two men .
Lemma 5.3. Let be a man.
- If is simple, then his first principal cone consists of a single rotation , which is his first rotation in the outward order, is a swap with some man , and is a minimal element of the outward order, i.e. it can be executed immediately from in the chosen direction:
- If , then there are men such that are distinct and
where and are the first and second rotations of in the outward order; in particular strictly precedes there, so the execution order is necessarily followed by .
The lemma identifies the first two rotations of the men with the smallest possible supports at depths one and two; it is the basis for the definition of the image of a man (Definition 5.4) and for Lemma 5.5.
Formalization Note Directions are Dir.fwd / Dir.bwd; is principalCone I D m dir k (an Option, none when the -th rotation does not exist), the -th rotation is kth I D m dir k, the swap executed in direction dir is IsSwapOn dir τ m b, "executable immediately" is IsMinOut I D dir τ, and " before " is outLT I dir τ σ. Distinctness of from and is part of IsSwapOn.
import Mathlib import Definitions.Def_StableCountSub3_Credits open StableMatching
namespace StableCountSub3
/-- Lemma 5.3: the first principal cone of a simple man is a single swap that can be executed
immediately from `μ_D` in the chosen direction; if `m ∈ C`, then `K_m(2) = {τ, σ}` with
`τ = (m, b)`, `σ = (m, a)` swaps, `m, a, b` distinct, and `τ` executed before `σ`. -/
theorem lemma_5_3 {n : ℕ} (I : Instance n) (D : Finset (Rot n)) (hD : IsDownset I D)
(m : Fin n) (dir : Dir) :
(IsSimple I D m dir →
∃ (b : Fin n) (τ : Rot n), kth I D m dir 1 = some τ ∧
principalCone I D m dir 1 = some {τ} ∧ IsSwapOn dir τ m b ∧ IsMinOut I D dir τ) ∧
(InC I D m dir →
∃ (a b : Fin n) (τ σ : Rot n), a ≠ b ∧
kth I D m dir 1 = some τ ∧ kth I D m dir 2 = some σ ∧
principalCone I D m dir 2 = some {τ, σ} ∧
IsSwapOn dir τ m b ∧ IsSwapOn dir σ m a ∧ outLT I dir τ σ) := by sorry
end StableCountSub3