Skip to article frontmatterSkip to article content

Let AA be a set. Recall that the set of all finite sequences over AA is denoted by A<N\Astr{A}, while ANA^\Nat denotes the set of all infinite sequences over AA. Given α∈AN\alpha \in A^\N, n∈Nn \in \N, α↾n\alpha\Rest{n} denotes the initial segment of α\alpha of length nn.

We call the elements of TT nodes.

A sequence α∈AN\alpha \in A^\Nat is an infinite path through or infinite branch of TT if for all nn, α↾n=(α0,α1,…,αn−1)∈T\alpha\Rest{n} = (\alpha_0, \alpha_1, \dots, \alpha_{n-1}) \in T. We denote the set of infinite paths through TT by [T][T].

An important criterion for a tree to have infinite paths is the following.

Proof

We construct an infinite path inductively.

Let TσT_\sigma denote the tree “above” σ{}\sigma, i.e. Tσ={τ∈A<N ⁣:σ⌢τ∈T}T_\sigma = \{ \tau \in \Astr{A} \colon \sigma\Conc\tau \in T\}. If TT is finitely branching, by the pigeonhole principle, at least one of the sets TσT_\sigma for ∣σ∣=1|\sigma| = 1 must be infinite. Pick such a σ{}\sigma and let α↾1=σ\alpha\Rest{1} = \sigma.

Repeat the argument for T=TσT = T_\sigma and continue inductively. This yields a sequence α∈[T]\alpha \in [T].

If [T]=∅[T] = \emptyset, we call TT well-founded. The motivation behind this is that TT is well-founded if and only if the inverse prefix relation

σ⪯τ:⇔σ⊇τ\sigma \preceq \tau \quad :\Leftrightarrow \quad \sigma \Sgeq \tau

is well-founded, i.e. it does not have an infinite descending chain.

If T≠∅T \neq \emptyset is well-founded, we can assign TT an ordinal number, its rank ρ(T)\rho(T).

  • If σ{\sigma} is a terminal node, i.e. σ{\sigma} has no extensions in TT, then let ρT(σ)=0\rho_T(\sigma) = 0.

  • If σ{\sigma} is not terminal, and ρT(τ)\rho_T(\tau) has been defined for all τ⊃σ\tau \Sgr \sigma, we set ρT(σ)=sup⁡{ρT(τ)+1 ⁣:τ∈T,τ⊃σ}\rho_T(\sigma) = \sup \{\rho_T(\tau)+1 \colon \tau \in T, \tau \Sgr \sigma \}.

  • Finally, set ρ(T)=sup⁡{ρT(σ)+1 ⁣:σ∈T}=ρT(∅)+1\rho(T) = \sup\{\rho_T(\sigma) + 1 \colon \sigma\in T \} = \rho_T(\Estr)+1, where ∅\Estr denotes the empty string.

Orderings on trees

Now suppose AA is linearly ordered by a relation ≤A\leq_A. The lexicographical ordering ≤lex⁡\leq_{\lex} of A<N\Astr{A} is defined as

σ≤lex⁡τ:⇔σ=τ   or   ∃i<∣σ∣,∣τ∣ (σi<Aτi and ∀j<i  σj=τj)\sigma \leq_{\lex} \tau \quad :\Leftrightarrow \quad \\ \sigma = \tau \; \text{ or } \; \exists i <|\sigma|,|\tau| \: \left( \sigma_i <_A \tau_i \text{ and } \forall j < i \; \sigma_j = \tau_j \right )

This ordering extends to ANA^\Nat in a natural way.

Proof

We prune the tree TT by deleting any node that is not on an infinite branch. This yields a subtree T′⊆TT' \subseteq T with [T′]=[T][T'] = [T].

Let Tn′={σ∈T′ ⁣:∣σ∣=n}T'_n = \{\sigma \in T' \colon |\sigma| = n \}. Since ≤A\leq_A is a well-ordering on AA, T1′T'_1 must have a ≤lex⁡\leq_{\lex}-least element. Denote it by α↾1\alpha\Rest{1}. Since T′T' is pruned, α↾1\alpha\Rest{1} must have an extension in TT, and we can repeat the argument to obtain α↾2\alpha\Rest{2}.

Continuing inductively, we define an infinite path α\alpha through T′T', and it is straightforward to check that α\alpha is a ≤lex⁡\leq_{\lex}-minimal element of [T′][T'] and hence of [T][T].

We can combine the ≤lex⁡\leq_{\lex}-ordering with the inverse prefix order to obtain a linear ordering of A<N\Astr{A}. This ordering has the nice property that if AA is well-ordered and TT is well-founded, then the ordering restricted to TT is a well-ordering.

This means σ{\sigma} is smaller than τ{\tau} if it is a proper extension of τ{\tau} or “to the left” of τ{\tau}.

We now have

Proof

Suppose TT is not well-founded. Let α∈[T]\alpha \in [T]. Then α↾0,α↾1,…\alpha\Rest{0}, \alpha\Rest{1}, \dots is an infinite descending sequence with respect to ≤KB⁡\leq_{\KB}.

Conversely, suppose σ0>KB⁡σ1>KB⁡…\sigma_0 >_{\KB} \sigma_1 >_{\KB} \dots is an infinite descending sequence in TT. By the definition of >KB⁡>_{\KB}, this implies σ1(0)≥Aσ2(0)≥A…\sigma_1(0) \geq_A \sigma_2(0) \geq_A \dots as a sequence in AA. Since AA is well-ordered, this sequence must eventually be constant, say σn(0)=a0\sigma_n(0) = a_0 for all n≥n0n \geq n_0.

Since the σn\sigma_n are descending, by the definition of ≤KB⁡\leq_{\KB} it follows that ∣σn∣≥2|\sigma_n| \geq 2 for n>n0n > n_0. Hence we can consider the sequence σn0+1(1)≥Aσn0+2(1)≥A…\sigma_{n_0+1}(1) \geq_A \sigma_{n_0+2}(1) \geq_A \dots in AA. Again, this must be constant =a1= a_1 eventually. Inductively, we obtain a sequence α=(a0,a1,a2,… )∈[T]\alpha = (a_0, a_1, a_2, \dots) \in [T], that is, TT is not well-founded.

Coding trees

We can also define an ordering on A<N\Astr{A} via an injective mapping from A<N\Astr{A} to some linearly ordered set AA. We will use this repeatedly for the case A=NA = \Nat and A={0,1}A = \{0,1\}.

For A=NA = \Nat, we can use the standard coding mapping

π:(a0,a1,…,an)↦p0a0+1p1a1+1⋯pnan+1,\pi: (a_0, a_1, \dots, a_n) \mapsto p_0^{a_0+1}p_1^{a_1+1}\cdots p_n^{a_n+1},

where pkp_k is the kkth prime number. This embeds N<N\Nstr into N\Nat, and we can well-order N<N\Nstr by letting σ<τ\sigma < \tau if and only if π(σ)<π(τ)\pi(\sigma) < \pi(\tau).

For A={0,1}A = \{0,1\} we set

π:(b0,b1,…,bn−1)↦(2n−1)+∑i=0n−1bi2i.\pi: (b_0,b_1, \dots, b_{n-1}) \mapsto (2^n-1) + \sum_{i=0}^{n-1} b_i 2^i.

These two mappings allows us henceforth to see trees as subsets of the natural numbers. This will be an important component in exploring the relation between topological and arithmetical complexity.

Trees and closed sets

Let AA be a set with the discrete topology. Consider ANA^\Nat with the product topology (and compatible metric) defined in Lecture 2.

Proof

Suppose FF is closed. Let

TF={σ∈A<N ⁣:σ⊂α for some α∈F}.T_F = \{\sigma \in \Astr{A} \colon \sigma \Sle \alpha \text{ for some }\alpha \in F\}.

Then clearly F⊆[TF]F \subseteq [T_F]. Suppose α∈[TF]\alpha \in [T_F]. This means for any nn, α↾n∈TF\alpha\Rest{n} \in T_F, which implies that there exists βn∈F\beta_n \in F such that α↾n⊂βn\alpha\Rest{n} \Sle \beta_n. The sequence (βn)(\beta_n) converges to α{\alpha}, and since FF is closed, α∈F\alpha \in F.

For the other direction, suppose F=[T]F = [T]. Let α∈AN∖F\alpha \in A^\Nat \setminus F. Then there exists an nn such that α↾n∉T\alpha\Rest{n} \notin T. Since a tree is closed under prefixes, no extension of α↾n\alpha\Rest{n} can be in TT. This implies Nα↾n⊆AN∖F\Cyl{\alpha\Rest{n}} \subseteq A^\Nat \setminus F, and hence AN∖FA^\Nat \setminus F is open.