Trees in the sense of descriptive set theory #
This file defines trees of depth ω in the sense of descriptive set theory as sets of finite
sequences that are stable under taking prefixes.
Main declarations #
tree A: a (possibly infinite) tree of depth at mostωwith nodes inA
A tree is a set of finite sequences, implemented as List A, that is stable under
taking prefixes. For the definition we use the equivalent property x ++ [a] ∈ T → x ∈ T,
which is more convenient to check. We define tree A as a complete sublattice of
Set (List A), which coerces to the type of trees on A.