Documentation

LeanPool.RareSubtreePatterns.Lukasiewicz.Excursion

Excursions, the first-passage decomposition, and weighted cyclic-shift identities #

Complements to PoissonDeclumping.Lukasiewicz.CyclicShift, at the level of weights.

The sequences in β„€_{β‰₯ -1}^n whose first passage time to -1 is n.

Equations
Instances For

    The sequences in β„€_{β‰₯ -1}^n with sum s.

    Equations
    Instances For

      The weight P(X_1 = x_1, …, X_n = x_n) = ∏ ΞΌ_{x_i + 1} of a sequence with entries β‰₯ -1.

      Equations
      Instances For
        noncomputable def PoissonDeclumping.Lukasiewicz.walkMass (ΞΌ : PMF β„•) (n : β„•) (s : β„€) :

        Ξ¨_n(s) = P(S_n = s): the total walk weight of levelSet n s.

        Equations
        Instances For

          Every bridge sequence has a finite first passage time to -1, at most its length.

          The DFS sequence of a tree with n vertices #

          The DFS coding of trees with n vertices.

          Equations
          Instances For

            Łukasiewicz bijection. Trees with n vertices correspond to the sequences in β„€_{β‰₯ -1}^n with first passage time ΞΆ = n.

            Equations
            Instances For
              theorem PoissonDeclumping.PlaneTree.tsum_weight_mul_dfsSeq (ΞΌ : PMF β„•) (n : β„•) (g : List β„€ β†’ ENNReal) :
              βˆ‘' (T : { T : PlaneTree // T.vertexCount = n }), weight ΞΌ ↑T * g (↑T).dfsSeq = βˆ‘' (x : ↑(Lukasiewicz.excursionSet n)), Lukasiewicz.walkWeight ΞΌ ↑x * g ↑x

              DFS law of 𝒯^n, weighted form. Summing P_ΞΌ(T) g(𝐱(T)) over trees with n vertices gives the sum of P(X_1 = x_1, …, X_n = x_n) g(𝐱) over {ΞΆ = n}.

              First-passage decomposition of bridges #

              (T, 𝐲) ↦ 𝐱(T) 𝐲, from trees with at most n vertices and sequences in β„€_{β‰₯ -1}^{n - |T|} with sum 0, to bridges of length n.

              Equations
              Instances For
                @[simp]
                theorem PoissonDeclumping.PlaneTree.coe_appendMap (n : β„•) (p : (T : { T : PlaneTree // T.vertexCount ≀ n }) Γ— ↑(Lukasiewicz.levelSet (n - (↑T).vertexCount) 0)) :
                ↑(appendMap n p) = (↑p.fst).dfsSeq ++ ↑p.snd

                First-passage decomposition (Markov property at ΞΆ): bridges of length n correspond to pairs (T, 𝐲) with |T| ≀ n and 𝐲 ∈ β„€_{β‰₯ -1}^{n - |T|} of sum 0, via 𝐱(T) 𝐲.

                Equations
                Instances For

                  Markov property at ΞΆ, weighted form. For every G, the bridge sum of P(𝐗 = 𝐱) G(T(𝐱)) equals E[G(𝒯) Ξ¨_{n - |𝒯|}(0)] in weights, with Ξ¨_{n-m}(0) = 0 for m > n.

                  Kemperman / Dwass identity with Ξ¨_n(-1): n P(|𝒯| = n) = Ξ¨_n(-1).

                  theorem PoissonDeclumping.PlaneTree.tsum_sum_weight_mul_fringe (ΞΌ : PMF β„•) (n : β„•) (G : PlaneTree β†’ ENNReal) :
                  βˆ‘' (T : { T : PlaneTree // T.vertexCount = n }), βˆ‘ i : Fin n, weight ΞΌ ↑T * G (↑T).fringeTrees[↑i] = βˆ‘' (T : PlaneTree), if T.vertexCount ≀ n then weight ΞΌ T * G T * Lukasiewicz.walkMass ΞΌ (n - T.vertexCount) 0 else 0

                  Weighted form of Corollary cor:cyclicshift. For every G, βˆ‘_{|T| = n} P_ΞΌ(T) βˆ‘_{i < n} G(T_{u_i}) = βˆ‘_{|T| ≀ n} P_ΞΌ(T) G(T) Ξ¨_{n - |T|}(0). Dividing by n P(|𝒯| = n) = Ξ¨_n(-1) (natCast_mul_tsum_weight_eq_walkMass) gives E[G(𝒯^n_{U_n})] = E[G(𝒯) Ξ¨_{n - |𝒯|}(0)] / Ξ¨_n(-1).