Size counting on nonplanar rooted trees and workspaces #
The MCB size measures for syntactic-object combinatorics
([MCB25]), on the canonical Nonplanar carrier.
A workspace (forest) is a Multiset (Nonplanar α); MCB foregrounds the
measures b₀/α/σ on workspaces (eq. 1.6.1), with a single tree as the
one-component case. The tree-level accCount is the recursive primitive that
α folds over.
These build directly on the lifted Nonplanar.numNodes (= MCB's #V); the
legacy planar Decorated/AdmissibleCut substrate provided the same measures
over the unfaithful planar-binary TraceTree.
Main definitions #
Nonplanar.accCount— accessible-term countα(T) = #V(T) - 1(tree primitive).Forest.b₀— number of component trees (Betti number).Forest.alpha— total accessible termsα(F) = Σ α(Tᵢ).Forest.sigma— workspace sizeσ(F) = b₀(F) + α(F).
Main results #
Nonplanar.accCount_merge— external Merge adds two accessible terms (eq. 1.6.5).Forest.sigma_eq_sum_numNodes—σ(F) = #V(F)(eq. 1.2.6); unconditional on the generic carrier (no trace leaves). The contraction-quotient exception (σᶜ ≠ #V, MCB p.66) lives inTraceCounting.
TODO #
- Trace-aware
accCountC/alphaC/sigmaCand the complexity grading#Lon lexical leaves (leafCountSO0) overNonplanar (α ⊕ β)(TraceCounting.lean); builds on the carrierNonplanar.numLeaves. - The admissible-cut layer (
Fintype-enumerable cuts + extraction identities 1.6.7/1.6.8).
Workspace (forest) measures #
A workspace is a Multiset (Nonplanar α). MCB's primitive workspace measures
are b₀ (component count) and α (accessible terms); σ is derived.
The number of component trees in a workspace — MCB's b₀, the Betti
number b₀(F) = #I (eq. 1.6.1).
Equations
- RootedTree.Forest.b₀ F = F.card
Instances For
Total accessible terms across the workspace, α(F) = Σ α(Tᵢ) (eq. 1.2.4).
Equations
- RootedTree.Forest.alpha F = (Multiset.map RootedTree.Nonplanar.accCount F).sum
Instances For
Workspace size σ(F) = b₀(F) + α(F) (MCB eq. 1.6.1): components plus
accessible terms. For trace-free workspaces this is the total vertex count
(sigma_eq_sum_numNodes); it is not the vertex count for contraction quotients
(a trace leaf is a vertex but not an accessible term, MCB p.66).
Equations
Instances For
σ(F) = #V(F), the total vertex count (MCB eq. 1.2.6). Unconditional on the
generic carrier, where every accCount is numNodes − 1; the contraction-quotient
exception lives in TraceCounting.