Alphabeta Math
LemmaStatement: Literature-sourcedProof: AI-adaptedprecheck 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) of reals (Sequences of reals: bounded, eventually, frequently, tails, subsequences) there is a strictly increasing n:N→N such that the subsequence (xnj) is monotone (Nondecreasing, increasing, nonincreasing, decreasing, monotone, and eventually monotone sequences).

No hypothesis whatever is placed on (xk): 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 n∈N a peak of (xk) when

xm≤xnfor every m≥n,

that is, when no later term ever exceeds xn. 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) of reals. An index n∈N is called a peak when xm≤xn for every m≥n, and P⊆N denotes the set of peaks.

[L1]

Recursion theorem: for a set A, an element a∈A and a function f:A→A there is a unique g:N→A with g0=a and gσ(j)=f(gj) (The recursion theorem).

[L2]

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

[L3]

Consecutive comparisons suffice for an index map: if nj<nσ(j) for every j then n is strictly increasing (A strictly increasing index map satisfies nk≥k).

[L4]

Consecutive comparisons suffice for monotonicity: if yσ(j)≤yj for every j then (yj) is nonincreasing, and if yj<yσ(j) for every j then (yj) is increasing; in both cases (yj) is monotone (Nondecreasing, increasing, nonincreasing, decreasing, monotone, and eventually monotone sequences).

[L5]

Subsequences: for strictly increasing n, the composite (xnj) is a subsequence of (xk) and is again a sequence of reals (Sequences of reals: bounded, eventually, frequently, tails, subsequences).

[L6]

Order on N: m<n means m≤n and m≠n; the order is total and transitive (Order on the natural numbers, ≤ is a linear order on N).

[L7]

Discreteness: N<σ(N) for every N∈N (Discreteness: σ(n) is the immediate successor).

[L8]

Trichotomy in R: for reals s,t exactly one of s<t, s=t, s>t holds, so the failure of xm≤xn is xm>xn, and xn>xn 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 N∈N there is a peak n with n>N.

givenassume-case cofinal
1.2

Case (ii). Assume instead that there is N0∈N such that no n>N0 is a peak.

givenassume-case bounded
2.1

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

step 1.1L2choose
2.2

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

step 1.1L2construct
2.3

In case (ii) put A:={n∈N:n>N0}; it is nonempty because σ(N0)>N0.

step 1.2L7
3.1

In case (i), the recursion theorem applied to the set P, the element p0 and the function f gives g:N→P with g0=p0 and gσ(j)=f(gj); every gj is a peak and gj<gσ(j) for every j.

step 2.1step 2.2L1
3.2

In case (ii), each n∈A satisfies n>N0 and so is not a peak, meaning some m≥n has xm>xn; such an m is distinct from n, since xn>xn is impossible, hence m>n>N0 and m∈A. The set of such m is therefore a nonempty subset of A; let h(n) be its least element. This defines h:A→A with h(n)>n and xh(n)>xn.

step 2.3L2L6L8construct
4.1

In case (i), g is strictly increasing by [L3], so (xgj) is a subsequence of (xk).

step 3.1L3L5
4.2

In case (i), for every j the index gσ(j) satisfies gσ(j)≥gj and gj is a peak, so xgσ(j)≤xgj; hence (xgj) is nonincreasing, so monotone.

step 3.1L4
4.3

In case (ii), the recursion theorem applied to the set A, the element σ(N0) and the function h gives g′:N→A with g0′=σ(N0) and gσ(j)′=h(gj′); thus gj′<gσ(j)′ and xgj′<xgσ(j)′ for every j.

step 2.3step 3.2L1
5.1

In case (ii), g′ is strictly increasing by [L3], so (xgj′) is a subsequence of (xk), 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) and case (ii) the monotone subsequence (xgj′). 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 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 f and h 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, 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 · two levels

30 results within two dependency steps of this one, each drawn at its shortest distance from it. An arrow runs from a result to what uses it, so the chart reads left to right and ends at this result, which carries a heavier outline. Every node is a link to that result. Click elsewhere on the chart to enlarge it.

Sources