Skip to content

Practice studio

Compose Lab

Adjust multi-ary slots and arities, watch the composite land in the right P(n), then run the compositionality checklist against a system you care about.

Live composition lab

Root operation α has 2 slots. Each child contributes its arity. Composite lives in P(3).

α ∘ (β, γ) ∈ P(3) · arities (2+1)
β

arity P(2)

γ

arity P(1)

Unit check: set any child arity to represent a pass-through only when that child is the unit in P(1) and you intend identity substitution — changing structure without the unit law breaks compositionality.

Tree view

Operad composition tree

Operad tree: α ∘ (β, γ) has arity 4α ∈ P(2)β ∈ P(3)γ ∈ P(1)x1x2x3x4

Nested form: α ∘ (β, γ) lives in P(3+1)=P(4). Tree shape encodes substitution.

Checklist

Ports complete?

Every external dependency appears as a port.

Common failures

ModeSymptomRepair
Doc-only hierarchyNesting exists in slides, not in interfacesMake subassemblies real ported boxes
Algebra driftTeams interpret the same wire differentlyPublish α and a golden composition test
Port inflationEverything is public; no encapsulationHide internal wires; minimize outer boundary
Fake compositionalityMarketing claims without preservation lawDemand the equation or demote the claim

Prefer the guided path? Open Lesson 6