Documentation

BGW.LocallyFinite.Basic

Canonical locally finite plane trees #

This is the deterministic carrier used by the iid offspring construction in freezing1/Freezing1/PlaneTree.lean and PlaneTreeGeometry.lean, adapted into BGW.LocallyFinite. Unlike BGW.PlaneTree, its trees may have infinite height.

Addresses use positive child indices, with [] for the root. Offspring counts are zero at absent addresses, but also at leaves: vertex membership is Present, not positivity of the coordinate. The finite-tree bridge explicitly shifts the existing zero-based addresses. No topology or probability law is installed here.

@[reducible, inline]

A vertex address, with positive child indices and [] for the root.

Equations
Instances For
    @[reducible, inline]

    A field assigning a finite offspring count to each address.

    Equations
    Instances For

      Invalid children have zero offspring; the condition propagates to descendants.

      Equations
      Instances For
        @[reducible, inline]

        Canonical offspring fields describe possibly infinite, locally finite plane trees.

        Equations
        Instances For

          The number of children of the root.

          Equations
          Instances For

            The tree consisting only of its root, with zero offspring at every address.

            Equations
            Instances For
              theorem BGW.LocallyFinite.Canonical.zero_descendants {f : Offspring} (hf : Canonical f) {u : Address} (hu : f u = 0) (v : Address) :
              f (u ++ v) = 0
              theorem BGW.LocallyFinite.Canonical.zero_of_absent_child {f : Offspring} (hf : Canonical f) (u : Address) (j : ℕ) (hj : ¬(1 ≤ j ∧ j ≤ f u)) (v : Address) :
              f (u ++ j :: v) = 0

              Re-root at child j. An absent child is represented by leaf; use Present to test whether that child actually exists.

              Equations
              Instances For
                @[simp]
                theorem BGW.LocallyFinite.child_offspring (T : Tree) (j : ℕ) (u : Address) :
                ↑(child T j) u = ↑T (j :: u)
                theorem BGW.LocallyFinite.eq_of_degree_child_eq {T S : Tree} (hd : degree T = degree S) (hc : ∀ (j : ℕ), 1 ≤ j → j ≤ degree T → child T j = child S j) :
                T = S

                The root degree and its existing ordered children determine a tree.

                Membership of an address, including leaves and the root.

                Equations
                Instances For
                  @[simp]
                  theorem BGW.LocallyFinite.present_cons (T : Tree) (j : ℕ) (u : Address) :
                  Present T (j :: u) ↔ 1 ≤ j ∧ j ≤ degree T ∧ Present (child T j) u

                  Finiteness refers to the vertices, not to the support of the offspring field.

                  Equations
                  Instances For