Example 6.7 Proof: Any sequence of real numbers with terms must have... a subsequence of terms that is increasing, or a subsequence of terms that is decreasing.
Problem 1022
Official solution
Proof: Let the given sequence be , denoted by . Suppose the sequence does not have an increasing subsequence of length . Let represent the longest increasing subsequence of starting with . Then the length of is no more than . Let , then . Let represent the set of sequences in with length , then . By the general form of the pigeonhole principle, there must be an integer such that . Suppose are any elements in , then it must be that , otherwise there exists a positive integer such that . By placing at the beginning of the sequence , we obtain an increasing subsequence of starting with with length . However, is the longest increasing subsequence of starting with , with length , leading to a contradiction. Therefore, is a decreasing subsequence of with length . Hence, if the sequence does not have an increasing subsequence of length , it must have a decreasing subsequence of length .