Current reading: resources and reusable boundaries · wiring and its algebra · course-by-course dynamics. This earlier working preserves function-composition examples and a manually coupled dynamics experiment. Its simplified interfaces and numeric “House” score are teaching choices; they do not reconstruct the complete resource boundary or establish physical performance.

Back to app index

Construction as an Operad Algebra

A simple “build walls then put on a roof” project, modeled compositionally with wiring diagrams, with illustrations of equality laws (operad algebra law + interchange), plus a toy hybrid simulation: wall height (discrete) and roof stability (continuous).

Operad syntax: wiring diagrams Semantics: operad algebra (functions / dynamics) Equality: fixed-diagram and sample checks Hybrid: discrete + continuous

1) Scope wiring diagram: build walls, then roof

This is the project “scope” view: boxes are tasks; wires are typed resources / artefacts carried across tasks. The diagram is deliberately simple and left-to-right.

Colours group related roles; matching colours do not establish matching types. Read the named ports and signatures. Bundled material inputs and signal branches are shorthand in this older drawing; an exact one-wire-per-port resource diagram would need separate ports or explicit unpacking/copying operations.

Tip: tap/click any wire label in the diagram to see what it represents. (No hover required — this works on mobile.)

Interpretation rule of thumb

A box is a process. A wire is a “thing” (material, information, constraint, state) whose type stays consistent end-to-end. Composition is “plugging outputs into inputs”.

In operad terms: a wiring diagram is syntax; choosing a meaning for each box (e.g., a dynamical system, a function, a resource transformer) is semantics.

Operad algebra axiom (substitution law):
A( φ ∘i ψ ) = A(φ) ∘i A(ψ)

Key wires

  • M = mortar, produced before wall building
  • L = set-out line / reference, produced before wall building
  • W = walls, produced before roof install
  • Stab = roof stability signal/state (used for assurance)

Why this catches scope mistakes

With distinct declared types, a downstream task expecting “Walls” cannot accept “Damaged walls” without a suitable conversion. This page illustrates that modelling principle; it does not implement a general type checker for its diagrams.

What we model in the simulation

We treat “wall height” as a discrete state updated once per day (difference equation), while “roof stability” evolves continuously (an ODE integrated by Euler in-browser).

How to use this page: switch tabs above. In “Equality examples”, press the check buttons. In “Simulation”, adjust parameters and export JSON if you want to feed results elsewhere. This is a single file: save it as construction-operad.html and open it.