Stability proof

Proof by contradiction, suppose that and , and are both married(black line), but and like each other more than , and (orange line), which is unstable.

Since this algorithm assume that male proposed to female, so if did not proposed to , which means in ’s heart, he likes more, which contradict to the assumption.

If did proposed to , and turns down(that’s why they did not end up together), which means likes more, which contradicts to the assumption.Thus, the algorithm is stable. Q.E.D.

Reference