RC9.9a's count of identical children. The ordered k-tuples of trees whose graft is a given tree are exactly the rearrangements of its children; each rearrangement arises from Π_u n_u! permutations of the k positions, n_u the multiplicity of the child u. Pure combinatorics, no mind.
The first k entries of a list, as a tuple (zero past its end).
Equations
- MindFormal.A732TreeCoefficients.tuple k l i = l.getD (↑i) 0
Instances For
theorem
MindFormal.A732TreeCoefficients.orbit_sum
{V : Type u_1}
[AddCommMonoid V]
{k : ℕ}
(v : Fin k → ℕ)
(f : (Fin k → ℕ) → V)
:
∑ σ : Equiv.Perm (Fin k), f (v ∘ ⇑σ) = (∏ u ∈ (List.ofFn v).toFinset, (List.count u (List.ofFn v)).factorial) • ∑ w ∈ Finset.image (fun (σ : Equiv.Perm (Fin k)) => v ∘ ⇑σ) Finset.univ, f w
Summing over all permutations of the positions counts each rearrangement Π_u n_u! times.
theorem
MindFormal.A732TreeCoefficients.graft_fiber
{t k : ℕ}
(ht : 0 < t)
(hk : (children t).length = k)
(w : Fin k → ℕ)
:
(∀ (i : Fin k), 0 < w i) ∧ graft (List.ofFn w) = t ↔ w ∈ Finset.image (fun (σ : Equiv.Perm (Fin k)) => tuple k (children t) ∘ ⇑σ) Finset.univ
The ordered tuples of trees whose graft is t are the rearrangements of t's children.