Alphabeta Math
LemmaStatement: Literature-sourcedProof: AI-adaptedSession-authored (Fable 5 assisted)precheck passjudge pass (z-ai/glm-5.2)audited 2026-07-26
How statement and proof provenance work

The first chip identifies the source of the statement or construction; the second identifies the source of its local proof or verification.

  • Literature-sourced — the exact statement appears in a cited source; only wording and notation differ.
  • AI-adapted — a semantically identical restatement of literature-sourced material, modulo indexing, notation, and boundary cases adopted by the library.
  • AI-generated — a genuinely novel statement formulated by AI, with no source for the claim itself.

These labels describe origin, not correctness: citations and verification chips remain separate evidence.

Every real sequence has a monotone subsequence (the peak / rising-sun lemma)

Statement

Every sequence of reals has a monotone subsequence: for every sequence (xk)(x_k) of reals (Sequences of reals: bounded, eventually, frequently, tails, subsequences) there is a strictly increasing n:NNn : \mathbb{N} \to \mathbb{N} such that the subsequence (xnj)(x_{n_j}) is monotone (Nondecreasing, increasing, nonincreasing, decreasing, monotone, and eventually monotone sequences).

No hypothesis whatever is placed on (xk)(x_k): it need not be bounded, and it need not converge. Combined with the corollary later on this page, which converts monotone plus bounded into convergent, this is the whole content of the Bolzano-Weierstrass theorem.

Call an index nNn \in \mathbb{N} a peak of (xk)(x_k) when

xmxnfor every mn,x_m \le x_n \quad \text{for every } m \ge n,

that is, when no later term ever exceeds xnx_n. The proof splits on whether peaks occur arbitrarily late or stop occurring, and produces a nonincreasing subsequence in the first case and an increasing one in the second. The picture behind the name is the rising sun shining from the right: the peaks are the points that are not put in shadow by anything to their right.

Facts & Assumptions

Given: A sequence (xk)(x_k) of reals. An index nNn \in \mathbb{N} is called a peak when xmxnx_m \le x_n for every mnm \ge n, and PNP \subseteq \mathbb{N} denotes the set of peaks.

[L1]

Recursion theorem: for a set AA, an element aAa \in A and a function f:AAf : A \to A there is a unique g:NAg : \mathbb{N} \to A with g0=ag_0 = a and gσ(j)=f(gj)g_{\sigma(j)} = f(g_j) (The recursion theorem).

[L2]

Well-ordering principle: every nonempty subset of N\mathbb{N} has a least element (The well-ordering principle).

[L3]

Consecutive comparisons suffice for an index map: if nj<nσ(j)n_j < n_{\sigma(j)} for every jj then nn is strictly increasing (A strictly increasing index map satisfies nkkn_k \ge k).

[L4]

Consecutive comparisons suffice for monotonicity: if yσ(j)yjy_{\sigma(j)} \le y_j for every jj then (yj)(y_j) is nonincreasing, and if yj<yσ(j)y_j < y_{\sigma(j)} for every jj then (yj)(y_j) is increasing; in both cases (yj)(y_j) is monotone (Nondecreasing, increasing, nonincreasing, decreasing, monotone, and eventually monotone sequences).

[L5]

Subsequences: for strictly increasing nn, the composite (xnj)(x_{n_j}) is a subsequence of (xk)(x_k) and is again a sequence of reals (Sequences of reals: bounded, eventually, frequently, tails, subsequences).

[L6]

Order on N\mathbb{N}: m<nm < n means mnm \le n and mnm \ne n; the order is total and transitive (Order on the natural numbers, \le is a linear order on N\mathbb{N}).

[L7]

Discreteness: N<σ(N)N < \sigma(N) for every NNN \in \mathbb{N} (Discreteness: σ(n)\sigma(n) is the immediate successor).

[L8]

Trichotomy in R\mathbb{R}: for reals s,ts, t exactly one of s<ts < t, s=ts = t, s>ts > t holds, so the failure of xmxnx_m \le x_n is xm>xnx_m > x_n, and xn>xnx_n > x_n is impossible (Order on the reals, Complete ordered field (least-upper-bound property), Ordered field).

Proof

technique · cases
1.1

Case (i). Assume that for every NNN \in \mathbb{N} there is a peak nn with n>Nn > N.

givenassume-case cofinal
1.2

Case (ii). Assume instead that there is N0NN_0 \in \mathbb{N} such that no n>N0n > N_0 is a peak.

givenassume-case bounded
2.1

In case (i) the set PP is nonempty, since the case hypothesis applied to N=0N = 0 produces a peak, so PP has a least element p0p_0.

step 1.1L2choose
2.2

In case (i), for each pPp \in P the set {qP:q>p}\{q \in P : q > p\} is nonempty, by the case hypothesis applied to N=pN = p; let f(p)f(p) be its least element. This defines f:PPf : P \to P with f(p)>pf(p) > p for every pPp \in P.

step 1.1L2construct
2.3

In case (ii) put A:={nN:n>N0}A := \{n \in \mathbb{N} : n > N_0\}; it is nonempty because σ(N0)>N0\sigma(N_0) > N_0.

step 1.2L7
3.1

In case (i), the recursion theorem applied to the set PP, the element p0p_0 and the function ff gives g:NPg : \mathbb{N} \to P with g0=p0g_0 = p_0 and gσ(j)=f(gj)g_{\sigma(j)} = f(g_j); every gjg_j is a peak and gj<gσ(j)g_j < g_{\sigma(j)} for every jj.

step 2.1step 2.2L1
3.2

In case (ii), each nAn \in A satisfies n>N0n > N_0 and so is not a peak, meaning some mnm \ge n has xm>xnx_m > x_n; such an mm is distinct from nn, since xn>xnx_n > x_n is impossible, hence m>n>N0m > n > N_0 and mAm \in A. The set of such mm is therefore a nonempty subset of AA; let h(n)h(n) be its least element. This defines h:AAh : A \to A with h(n)>nh(n) > n and xh(n)>xnx_{h(n)} > x_n.

step 2.3L2L6L8construct
4.1

In case (i), gg is strictly increasing by [L3], so (xgj)(x_{g_j}) is a subsequence of (xk)(x_k).

step 3.1L3L5
4.2

In case (i), for every jj the index gσ(j)g_{\sigma(j)} satisfies gσ(j)gjg_{\sigma(j)} \ge g_j and gjg_j is a peak, so xgσ(j)xgjx_{g_{\sigma(j)}} \le x_{g_j}; hence (xgj)(x_{g_j}) is nonincreasing, so monotone.

step 3.1L4
4.3

In case (ii), the recursion theorem applied to the set AA, the element σ(N0)\sigma(N_0) and the function hh gives g:NAg' : \mathbb{N} \to A with g0=σ(N0)g'_0 = \sigma(N_0) and gσ(j)=h(gj)g'_{\sigma(j)} = h(g'_j); thus gj<gσ(j)g'_j < g'_{\sigma(j)} and xgj<xgσ(j)x_{g'_j} < x_{g'_{\sigma(j)}} for every jj.

step 2.3step 3.2L1
5.1

In case (ii), gg' is strictly increasing by [L3], so (xgj)(x_{g'_j}) is a subsequence of (xk)(x_k), and it is increasing by [L4], so monotone.

step 4.3L3L4L5
6.1

Cases (i) and (ii) are literal negations of one another, so one of them holds; case (i) produces the monotone subsequence (xgj)(x_{g_j}) and case (ii) the monotone subsequence (xgj)(x_{g'_j}). Every sequence of reals therefore has a monotone subsequence.

step 4.1step 4.2step 5.1cases: exhaustive by negationcases-exhaustive

Remarks

  • The two cases are a negation pair, so no completeness is used to split them. Either peaks occur beyond every index, or they stop; nothing about R\mathbb{R} enters the dichotomy. The only properties of the reals used anywhere above are trichotomy of the order, in step 3.2, and nothing else. In particular this lemma holds verbatim in any linearly ordered set, and it is A monotone sequence converges if and only if it is bounded, not this lemma, that consumes the least-upper-bound property inside Bolzano-Weierstrass: every bounded real sequence has a convergent subsequence.

  • Which kind of monotone subsequence is produced depends on the case, and the statement deliberately does not say which. Case (i) gives a nonincreasing subsequence and case (ii) a strictly increasing one. A sequence may satisfy case (i) with no increasing subsequence at all, for instance a constant sequence, so nothing stronger than "monotone" can be claimed uniformly.

  • Choice is not used. Both recursions choose a least element, supplied by the well-ordering principle (The well-ordering principle), so the functions ff and hh are defined outright rather than selected, and The recursion theorem then produces the index map. This is why the lemma, and with it Bolzano-Weierstrass in R\mathbb{R}, needs no form of the axiom of choice, in contrast with the usual argument for sequential compactness in a general metric space.

Depends on

Used by

Dependency tree · next 3 levels

Direct dependencies and their dependencies through the next three levels: 48 results over 15 levels. An arrow runs from a result to what uses it, and this result sits at the bottom with a heavier outline. Click the chart to enlarge it.

Sources