TheoremBase

Call an index a peak if its term is strictly greater than every later term. If peaks occur beyond every index, enumerating them increasingly by recursion gives a strictly decreasing subsequence; otherwise, past the last peak each term has a later term at least as large, and recursion gives a nondecreasing subsequence. Every step picks a least index, so no choice axiom is used.

Proof

Each result cited below is universally quantified over the data in its own statement, and is applied to the data named where it is cited.

The total order ≤\le on XX is as in Sets and Maps: Ordinary Notation §orders, which the setting The Natural Numbers and the Natural Numbers with Zero: Arithmetic, Order, Induction and Recursion of the statement carries; let << be its strict relation. As in Subsequences §subsequence, N\mathbb{N} carries its order ≤\le, a total order whose strict relation is <<; by Arithmetic and Order of the Natural Numbers §partial-order, u≤vu\le v holds if and only if u<vu<v or u=vu=v, and << is transitive on N\mathbb{N}. By Arithmetic and Order of the Natural Numbers §well-order and Uniqueness of Least and Greatest Elements, Properties of the Strict Order, and Trichotomy for Total Orders §least-unique, every subset ss of N\mathbb{N} with at least one element has exactly one least element min⁡s\min s. Every choice below is of such a least element, so no axiom of choice is used. For a map σ:N→N\sigma:\mathbb{N}\to\mathbb{N}, the terms of a∘σa\circ\sigma are (a∘σ)(i)=aσ(i)(a\circ\sigma)(i)=a_{\sigma(i)} by Basic Properties of Functions: Equality, Composition, Identity, Inverse and Restriction §composition.

Call m∈Nm\in\mathbb{N} a peak if an<ama_{n}<a_{m} for every n∈Nn\in\mathbb{N} with m<nm<n, and let

P={m∈N:∀n ((n∈N∧m<n)⇒an<am)},P=\{m\in\mathbb{N}:\forall n\,((n\in\mathbb{N}\wedge m<n)\Rightarrow a_{n}<a_{m})\},

a subset of N\mathbb{N} by Sets and Maps: Ordinary Notation §set-builder; every set written {x∈A:… }\{x\in A:\dots\} below is likewise a subset of AA by that clause. By the law of excluded middle, either for every k∈Nk\in\mathbb{N} there is p∈Pp\in P with k<pk<p (Case 1), or there is k∈Nk\in\mathbb{N} such that no p∈Pp\in P satisfies k<pk<p (Case 2).

Dichotomy, Case 1. For u∈Nu\in\mathbb{N} let Pu={p∈P:u<p}P_{u}=\{p\in P:u<p\}; it has an element by the case assumption, so min⁡Pu\min P_{u} exists, lies in PP, and satisfies u<min⁡Puu<\min P_{u}. By Maps and Relations Given by Formulas §binary there is a map g:N×N→Ng:\mathbb{N}\times\mathbb{N}\to\mathbb{N} with g(i,u)=min⁡Pug(i,u)=\min P_{u}. As P1⊆PP_{1}\subseteq P has an element, min⁡P\min P exists. By Recursion on the Natural Numbers Starting at One §recursion, applied to the set N\mathbb{N}, the element min⁡P\min P and gg, there is a map σ:N→N\sigma:\mathbb{N}\to\mathbb{N} with σ(1)=min⁡P\sigma(1)=\min P and σ(i+1)=min⁡Pσ(i)\sigma(i+1)=\min P_{\sigma(i)} for every i∈Ni\in\mathbb{N}. Every value of σ\sigma lies in PP: σ(1)=min⁡P∈P\sigma(1)=\min P\in P, and if i≠1i\neq1, then i=d+1i=d+1 for some d∈Nd\in\mathbb{N} by Arithmetic and Order of the Natural Numbers §predecessor, so σ(i)=min⁡Pσ(d)∈P\sigma(i)=\min P_{\sigma(d)}\in P. For every i∈Ni\in\mathbb{N}, σ(i)<min⁡Pσ(i)=σ(i+1)\sigma(i)<\min P_{\sigma(i)}=\sigma(i+1), so σ\sigma is strictly increasing and a∘σa\circ\sigma is a subsequence of (an)(a_{n}). Since σ(i)\sigma(i) is a peak and σ(i)<σ(i+1)\sigma(i)<\sigma(i+1), aσ(i+1)<aσ(i)a_{\sigma(i+1)}<a_{\sigma(i)} for every i∈Ni\in\mathbb{N}, so a∘σa\circ\sigma is strictly decreasing.

Dichotomy, Case 2. Fix such a kk, let K=k+1K=k+1 and B={n∈N:K≤n}B=\{n\in\mathbb{N}:K\le n\}, a subset of N\mathbb{N} containing KK. Let n∈Bn\in B. Since k<k+1k<k+1 by Arithmetic and Order of the Natural Numbers §successor and K≤nK\le n, we have k<nk<n, so n∉Pn\notin P by the case assumption. Hence there is m∈Nm\in\mathbb{N} with n<mn<m for which am<ana_{m}<a_{n} fails, that is, an≤ama_{n}\le a_{m} by Uniqueness of Least and Greatest Elements, Properties of the Strict Order, and Trichotomy for Total Orders §total-negation, the order on XX being total. So Tn={m∈N:n<m∧an≤am}T_{n}=\{m\in\mathbb{N}:n<m\wedge a_{n}\le a_{m}\} has an element, min⁡Tn\min T_{n} exists, n<min⁡Tnn<\min T_{n} and an≤amin⁡Tna_{n}\le a_{\min T_{n}}; moreover K≤n<min⁡TnK\le n<\min T_{n} gives min⁡Tn∈B\min T_{n}\in B. By Maps and Relations Given by Formulas §binary there is a map h:N×B→Bh:\mathbb{N}\times B\to B with h(i,u)=min⁡Tuh(i,u)=\min T_{u}, and by Recursion on the Natural Numbers Starting at One §recursion, applied to the set BB, the element KK and hh, there is a map τ:N→B\tau:\mathbb{N}\to B with τ(1)=K\tau(1)=K and τ(i+1)=min⁡Tτ(i)\tau(i+1)=\min T_{\tau(i)} for every i∈Ni\in\mathbb{N}. As B⊆NB\subseteq\mathbb{N}, τ\tau is also a map from N\mathbb{N} to N\mathbb{N} by Functions, Values of a Function, and Functions from One Class to Another §map. For every i∈Ni\in\mathbb{N}, τ(i)<τ(i+1)\tau(i)<\tau(i+1) and aτ(i)≤aτ(i+1)a_{\tau(i)}\le a_{\tau(i+1)}. Thus τ\tau is strictly increasing, and a∘τa\circ\tau is a subsequence of (an)(a_{n}) that is nondecreasing.

In Case 1 the sequence has a strictly decreasing subsequence, and in Case 2 a nondecreasing one, which proves the dichotomy clause.

Monotone. By the dichotomy clause there is a subsequence (bi)(b_{i}) that is nondecreasing, hence monotone, or strictly decreasing. In the latter case bi+1<bib_{i+1}<b_{i} gives bi+1≤bib_{i+1}\le b_{i} by Uniqueness of Least and Greatest Elements, Properties of the Strict Order, and Trichotomy for Total Orders §strict-characterization, for every i∈Ni\in\mathbb{N}, so (bi)(b_{i}) is nonincreasing and hence monotone by Monotone Sequences §monotone.

Citations

Loading…

Dependencies

Uses0

Loading…

Comments

Log in to comment.

Loading…