, no duplicate occurences of or = , , . , … , 0 where 0 ≤ 3 ≤ } = , ⟶ g, g All cases: g = , , . , … , 3 + 1, … , 0 j is the 3 -ranked match for 3 Case 1: new pairing ∀l ∈ . l , j ∉ g = ∪ 3 , j Case 2: better pairing ∃l ∈ . l , j ∈ , j prefers 3 to j g = ∪ 3 , j Case 3: rejected proposal ∃l ∈ . l , j ∈ , j prefers j to 3 g =