MindFormal v1.0.0One Mind

MindFormal.Tools.A732TreeCoefficients.Orbits

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
Instances For
    theorem MindFormal.A732TreeCoefficients.exists_perm_of_perm {k : ℕ} {v w : Fin k → ℕ} (h : (List.ofFn v).Perm (List.ofFn w)) :
    ∃ (σ : Equiv.Perm (Fin k)), w = v ∘ ⇑σ

    Two tuples listing the same children differ by a permutation of the positions.

    theorem MindFormal.A732TreeCoefficients.count_ofFn {k : ℕ} (v : Fin k → ℕ) (u : ℕ) :
    List.count u (List.ofFn v) = {a : Fin k | v a = u}.card
    theorem MindFormal.A732TreeCoefficients.stabilizer_count {k : ℕ} (v : Fin k → ℕ) :
    {ρ : Equiv.Perm (Fin k) | v ∘ ⇑ρ = v}.card = ∏ u ∈ (List.ofFn v).toFinset, (List.count u (List.ofFn v)).factorial

    The positions' permutations fixing a tuple number Π_u n_u!.

    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.