Documentation

BGW.Tree.DegreeCount

Degree-count marks in the cyclic bridge identity #

Finitely many prescribed outdegree counts are invariant under rotating the Łukasiewicz word. The weighted cycle identity therefore restricts to these marks, without requiring positive mass or introducing another finite-tree carrier. Repeated degrees are allowed; incompatible prescribed counts simply give zero.

The number of steps corresponding to offspring count k. In particular, k = 0 counts steps equal to -1, hence leaves on a tree word.

Equations
Instances For
    @[simp]
    theorem BGW.wordDegreeCount_stepWord {n : ℕ} (ω : Fin n → ℕ) (k : ℕ) :

    Number of vertices whose outdegree is k, counting every DFS occurrence.

    Equations
    Instances For
      theorem BGW.PlaneTree.natCast_mul_tsum_weight_degreeCounts (p : ℕ → ENNReal) (n r : ℕ) (ks cs : Fin r → ℕ) :
      (↑n * ∑' (t : { t : PlaneTree // t.size = n }), weight p ↑t * if ∀ (j : Fin r), (↑t).degreeCount (ks j) = cs j then 1 else 0) = ∑' (ω : Fin n → ℕ), (countBridges n ∩ {ω : Fin n → ℕ | ∀ (j : Fin r), List.count (ks j) (List.ofFn ω) = cs j}).indicator (fun (ω : Fin n → ℕ) => ∏ i : Fin n, p (ω i)) ω

      Weighted Kemperman identity with finitely many prescribed degree counts. The marks may repeat a degree, and no assumption on the weights or size is needed.