The recursive tree enumeration lists exactly the ordered trees
ProvedMarkovScattering.WordPlanarTrees.mem_treesmarkov-scattering
Let be a finite set of gap labels in and a planar binary tree with internal gap labels. The recursively enumerated family on contains exactly when is ordered on : a tip uses the empty set, and a branch chooses a root label and ordered left and right trees on the portions of below and above .
Preamble
import Lean.Elab.Tactic.Omega
import Mathlib.Algebra.BigOperators.Group.Finset.Basic
import Mathlib.Algebra.BigOperators.Group.Finset.Sigma
import Mathlib.Algebra.BigOperators.Ring.Finset
import Mathlib.Algebra.Field.Basic
import Mathlib.Algebra.Field.Defs
import Mathlib.Algebra.Order.BigOperators.Group.Finset
import Mathlib.Algebra.Order.Field.Basic
import Mathlib.Combinatorics.SimpleGraph.Connectivity.Connected
import Mathlib.Data.Finset.Dedup
import Mathlib.Data.Finset.Lattice.Lemmas
import Mathlib.Data.Finset.Powerset
import Mathlib.Data.Finset.Union
import Mathlib.Data.Fintype.Basic
import Mathlib.Data.Fintype.Card
import Mathlib.Data.List.Nodup
import Mathlib.Data.List.Permutation
import Mathlib.Logic.Relation
import Definitions.Def_MarkovScatteringPlanar_Components
import Definitions.Def_MarkovScatteringPlanar_GraphRecursion
import Definitions.Def_MarkovScatteringPlanar_Interleavings
import Definitions.Def_MarkovScatteringPlanar_Orderings
import Definitions.Def_MarkovScatteringPlanar_Shuffle
import Definitions.Def_MarkovScatteringPlanar_WordChain
import Definitions.Def_MarkovScatteringPlanar_WordGeometry
import Definitions.Def_MarkovScatteringPlanar_WordPlanarTrees
set_option autoImplicit false
open MarkovScattering
open scoped BigOperators
open MarkovScattering.WordPlanarTrees
open WordGeometry
variable {m : ℕ}
Formal statement
theorem MarkovScattering.WordPlanarTrees.mem_trees (T : Tree m) (S : Finset (Fin m)) : T ∈ trees S ↔ OrderedOn T S := by sorry
Source