Monotone subsequence lemma

Every real sequence has a monotone subsequence
Monotone subsequence lemma

Monotone subsequence lemma: Every sequence (xn)(x_n) in R\mathbb{R} has a ; i.e., there exists a subsequence that is either nondecreasing or nonincreasing.

This lemma is a key combinatorial tool in real analysis and is often used to extract structured subsequences before applying or arguments.

Proof sketch: Call an index nn a “peak” if xnxmx_n\ge x_m for all mnm\ge n. If there are infinitely many peaks, selecting them yields a nonincreasing subsequence. If there are only finitely many peaks, then beyond some index every term is followed by a larger term; one can inductively choose indices n1<n2<n_1<n_2<\cdots with xn1<xn2<x_{n_1}<x_{n_2}<\cdots, giving a strictly increasing subsequence.