definition example theorem

Given a Symmetric Monoidal Preorder , a Wiring Diagram has wires labeled by elements of and boxes representing inequalities. Two parallel wires and one wire mean the same thing; a wire labeled and “nothing” mean the same thing (the unit is the empty monoidal product). A diagram from wires on the left to on the right is valid if .

Sources: 7 Sketches §2.2.2, Eqs. (2.10)–(2.18), Examples 2.14, 2.19, Exercise 2.20.

Axioms as diagram rules

axiomdiagram
reflexivity a bare wire is valid
transitivityvalid boxes may be connected in series
(a) monotonicityvalid boxes may be stacked in parallel
(b) unitalityblank space / -wires can be ignored
(c) associativityno distinction between building from top or bottom; and are the same three wires
(d) symmetrywires may cross (a new icon)

Example 2.14. In , parallel wires add: wires and equal a single wire ; a wire equals no wire. The facts and are boxes.

Wiring diagrams as graphical proofs

A wiring diagram with interior boxes inside an exterior box is a proof: if all interior assertions hold, so does the exterior one. For the diagram (2.15) with interior boxes

the exterior assertion is (2.17), proved by the chain of vertical slices

Formally (7S Exercise 2.20) each step uses monotonicity with a reflexivity on the untouched wire, associativity to re-bracket, and transitivity to chain; symmetry is needed only if wires cross. The lemon meringue pie diagram (Example 2.19) is a proof that if you can separate eggs, make filling, make meringue, fill the crust and add meringue, then you can prepare a pie.

∙∙∙tvwuxzy∙∙∙tvwuxzy

Boxes in a monoidal preorder are anonymous (they merely assert ); in a Monoidal Category they carry the names of morphisms and the diagrams denote morphisms rather than proofs of inequalities (§4.4.2).