Documentation

LeanPool.RareSubtreePatterns.Patterns.NonFringe

Non-fringe patterns: grafting at the leaves and the conditional law (U06) #

Source lines 682 (definition of T' ≺ T), 1433–1445 (inventory U06) and 2468–2476.

T' ≺ T (PlaneTree.Embeds T' T) means that T is obtained from T' by grafting plane trees onto the leaves of T'; internal vertices of T' keep their exact outdegree.

Leaves, internal vertices and the pattern weight #

The number of leaves (vertices of outdegree 0).

Equations
Instances For

    The number of internal vertices (vertices of positive outdegree).

    Equations
    Instances For

      ∏_{v ∈ T internal} μ_{k_v(T)}: the product of the offspring masses over the internal vertices only (leaves of a pattern receive grafted trees and contribute no factor).

      Equations
      Instances For

        Embeddings #

        theorem PoissonDeclumping.PlaneTree.Embeds.induction' {P : PlaneTree → PlaneTree → Prop} (hleaf : ∀ (T : PlaneTree), P (PlaneTree.node []) T) (hnode : ∀ (cs ts : List PlaneTree), cs ≠ [] → List.Forall₂ (fun (c t : PlaneTree) => c.Embeds t ∧ P c t) cs ts → P (PlaneTree.node cs) (PlaneTree.node ts)) {T' T : PlaneTree} (h : T'.Embeds T) :
        P T' T

        Induction principle for Embeds with the children handled by List.Forall₂.

        leafTrees T' T: for T' ≺ T, the list (𝒯^{(1)}, …, 𝒯^{(L)}) of the fringe subtrees of T at the images of the leaves of T', in DFS order (meaningful only when Embeds T' T).

        Equations
        Instances For
          theorem PoissonDeclumping.PlaneTree.eq_of_leafTrees_eq {T' T₁ T₂ : PlaneTree} (h₁ : T'.Embeds T₁) (h₂ : T'.Embeds T₂) (h : T'.leafTrees T₁ = T'.leafTrees T₂) :
          T₁ = T₂

          T'[ls]: the tree obtained by grafting the trees of the list ls (of length leafCount T') onto the leaves of T', in DFS order; characterized by embeds_graftLeaves and graftLeaves_leafTrees (for lists of the wrong length it is the junk value T').

          Equations
          Instances For

            The bijection {T : T' ≺ T} ≃ {(𝒯^{(1)}, …, 𝒯^{(L)})}.

            Equations
            • One or more equations did not get rendered due to their size.
            Instances For

              Forest law #

              The law of L independent μ-Bienaymé trees, as a measure on lists of trees: forestLaw μ L {[t_1, …, t_L]} = ∏_i 𝐏_μ(t_i), and lists of other lengths have mass zero.

              Equations
              • One or more equations did not get rendered due to their size.
              Instances For
                theorem PoissonDeclumping.PlaneTree.forestLaw_pi (μ : PMF ℕ) (L : ℕ) (A : ℕ → Set PlaneTree) :
                (forestLaw μ L) {ls : List PlaneTree | ∀ (i : ℕ) (hi : i < ls.length), ls[i] ∈ A i} = ∏ i ∈ Finset.range L, (bienayme μ) (A i)

                U06: the law of a non-fringe pattern occurrence #

                𝐏_μ(T' ≺ 𝒯, (𝒯^{(1)}, …, 𝒯^{(L)}) ∈ B) = (∏_{v ∈ T' internal} μ_{k_v}) 𝐏(F_L ∈ B), where F_L is a list of L independent μ-Bienaymé trees (any offspring law).

                theorem PoissonDeclumping.PlaneTree.bienayme_embeds_eq {μ : PMF ℕ} (hc : IsCritical μ) (hne : μ 1 ≠ 1) (T' : PlaneTree) :

                U06/U07: 𝐏(T' ≺ 𝒯) = ∏_{v ∈ T' internal} μ_{k_v(T')} for critical μ with μ_1 ≠ 1.

                theorem PoissonDeclumping.PlaneTree.bienayme_embeds_leafTrees_pi (μ : PMF ℕ) (T' : PlaneTree) (A : ℕ → Set PlaneTree) :
                (bienayme μ) {T : PlaneTree | T'.Embeds T ∧ ∀ (i : ℕ) (hi : i < (T'.leafTrees T).length), (T'.leafTrees T)[i] ∈ A i} = patternWeight μ T' * ∏ i ∈ Finset.range T'.leafCount, (bienayme μ) (A i)

                The grafted trees are independent μ-Bienaymé trees: 𝐏(T' ≺ 𝒯, 𝒯^{(i)} ∈ A_i ∀ i) = patternWeight μ T' ∏_{i < L} 𝐏(𝒯 ∈ A_i).

                theorem PoissonDeclumping.PlaneTree.cond_embeds_leafTrees_mem {μ : PMF ℕ} (hc : IsCritical μ) (hne : μ 1 ≠ 1) {T' : PlaneTree} (hpos : 0 < (bienayme μ) {T : PlaneTree | T'.Embeds T}) (B : Set (List PlaneTree)) :

                U06: conditionally on T' ≺ 𝒯, the grafted list (𝒯^{(1)}, …, 𝒯^{(L)}) has the law of L independent unconditioned μ-Bienaymé trees.

                U06, law form: the image of 𝐏(· | T' ≺ 𝒯) under T ↦ (𝒯^{(1)}, …, 𝒯^{(L)}) is the law of L independent μ-Bienaymé trees.

                theorem PoissonDeclumping.PlaneTree.cond_embeds_leafTrees_pi {μ : PMF ℕ} (hc : IsCritical μ) (hne : μ 1 ≠ 1) {T' : PlaneTree} (hpos : 0 < (bienayme μ) {T : PlaneTree | T'.Embeds T}) (A : ℕ → Set PlaneTree) :
                (bienayme μ)[{T : PlaneTree | ∀ (i : ℕ) (hi : i < (T'.leafTrees T).length), (T'.leafTrees T)[i] ∈ A i} | {T : PlaneTree | T'.Embeds T}] = ∏ i ∈ Finset.range T'.leafCount, (bienayme μ) (A i)

                U06, product form: 𝐏(𝒯^{(i)} ∈ A_i for all i < L | T' ≺ 𝒯) = ∏_{i < L} 𝐏(𝒯 ∈ A_i).

                The law ρ of (𝒯, C, (𝒯^{(1)}, …, 𝒯^{(L)})) under 𝐏(· | T' ≺ 𝒯), with the deterministic number C = internalCount T' of internal vertices of the pattern.

                Equations
                • One or more equations did not get rendered due to their size.
                Instances For
                  theorem PoissonDeclumping.PlaneTree.skeleton_embeds {μ : PMF ℕ} (hc : IsCritical μ) (hne : μ 1 ≠ 1) {T' : PlaneTree} (hpos : 0 < (bienayme μ) {T : PlaneTree | T'.Embeds T}) :

                  U06 in the shape of Assumption (S) (source lines 1437–1440): for critical μ with μ_1 ≠ 1 and 𝐏(T' ≺ 𝒯) > 0, embedsSkeletonLaw μ T' is a skeleton decomposition for the mark T' ≺ ·: under 𝐏(· | T' ≺ 𝒯), |𝒯| = C + ∑_{i ≤ L} |𝒯^{(i)}| with i.i.d. unconditioned 𝒯^{(i)}.

                  Under ρ, C and L are deterministic and 𝒯 = T'[𝒯^{(1)}, …, 𝒯^{(L)}].

                  U06, tree form: conditionally on T' ≺ 𝒯, the tree 𝒯 has the law of T'[𝒯^{(1)}, …, 𝒯^{(L)}] with 𝒯^{(1)}, …, 𝒯^{(L)} independent μ-Bienaymé trees.