Proof: assume that some execution E of the G-S algorithm results in a matching S in which some man is paired with a woman who is not his best valid partner
Since men propose in decreasing order of preference, some man is rejected by a valid partner during E
Consider the first moment in E in which m is rejected by valid partner w (w is m’s best valid partner best(m))
Rejection of m by w happened either because m proposed and was turned down in favor of w’s existing partner, or w got a better proposal and broke the engagement
Since w is a valid partner of m, there is a stable matching S’ containing the pair (m, w)
Since rejection of m was the first rejection, m’ had not yet been rejected by any valid partner at the point in E when he became engaged to w
Since he proposed in decreasing order of preference, since w’ is a valid partner of m’, must be the m’ prefers w to w’
However, we have already seen that w prefers m’ to m for in E she rejected m in favor of m’
Since (m’, w) is not in S’, it follows that (m’, w) is an instability in S’
This contradicts our claim that S’ is stable and therefore contradicts our initial assumption