Documentation

LeanPool.RareSubtreePatterns.PlaneTree.Basic

Finite plane trees and marked fringe counts #

Finite rooted ordered trees, as in Section 2.1 of the paper. The list of fringe trees records one entry for each vertex in depth-first order. Equal subtrees at different vertices remain separate entries, so counting does not lose multiplicity.

The definitions PlaneTree, children, rootDegree, fringeTrees, vertexCount, markCount and declumpedMark are in PoissonDeclumping.Statements.Defs, from the upstream statement contract; this file proves their basic properties.

The propagation hypothesis in Lemma lem:declump_to_raw, for a fixed mark.

Equations
Instances For

    The root contributes its own fringe tree.

    A child fringe occurrence remains a fringe occurrence in the parent.

    Every child itself occurs among the parent's fringe trees.

    A positive marked count is exactly the existence of a marked vertex.

    A zero marked count is exactly the absence of a marked vertex.

    Marking the root ensures that the raw count is positive.

    A positive count in a child ensures a positive count in the parent.

    theorem PoissonDeclumping.PlaneTree.induction_children {P : PlaneTree → Prop} (step : ∀ (T : PlaneTree), (∀ U ∈ T.children, P U) → P T) (T : PlaneTree) :
    P T

    Structural induction with an induction hypothesis for every child.

    Fringe containment is transitive.

    Any marked vertex is either the root or belongs to a child tree.