Take the file program of section 18.3. A term Γ; 𝑓1:𝖥𝗂𝗅𝖾, 𝑓2:𝖥𝗂𝗅𝖾 ⊢ 𝖼𝗅𝗈𝗌𝖾𝑓1⊗𝗋𝖾𝖺𝖽𝑓2 : 1⊗(𝖥𝗂𝗅𝖾⊗𝖡𝗒𝗍𝖾𝗌) uses two independently owned handles, once each. Suppose its meaning is a map out of a product [[𝖥𝗂𝗅𝖾]] ×[[𝖥𝗂𝗅𝖾]] in a category with finite products. Then the diagonal Δ :𝑋 →𝑋 ×𝑋 exists, and composing with it produces a map out of one handle that behaves as if it owned two: [[𝖼𝗅𝗈𝗌𝖾𝑓1⊗𝗋𝖾𝖺𝖽𝑓2]]∘Δ. The typing rule T-TensorI forbids exactly that term, since Δ1 ⊎Δ2 is defined only for disjoint domains. A terminal object is no better: it provides 𝑋 →1 for every 𝑋, a map that discards a live handle, and the calculus has no such term either.
So a semantics of 𝜆lin may not interpret the comma of a linear context as a categorical product. It needs a binary operation on objects that carries no diagonal and no projection. This chapter derives that operation from the equations the file program forces, and then makes the resulting calculus graphical.
The operation forced by rebracketing
Write 𝑋 ⊗𝑌 for the object interpreting two independently owned resources, with no assumption yet beyond its existence on objects. Three demands follow immediately from the syntax.
A tensor on a category C consists of a functor ⊗ :C ×C →C, an object 𝐼, and three families of isomorphisms 𝛼𝑋,𝑌,𝑍:(𝑋⊗𝑌)⊗𝑍 → 𝑋⊗(𝑌⊗𝑍),𝜆𝑋:𝐼⊗𝑋→𝑋,𝜌𝑋:𝑋⊗𝐼→𝑋, each natural in every argument.
Referenced from 3 locations
Functoriality is not decoration: it is the statement that a linear function may be applied inside a tensor without disturbing the other component. In the running example, 𝗋𝖾𝖺𝖽 ⊗id is the map that reads the first handle and leaves the second untouched, and functoriality is (𝑔∘𝑓)⊗(𝑔′∘𝑓′)=(𝑔⊗𝑔′)∘(𝑓⊗𝑓′),id𝑋⊗id𝑌=id𝑋⊗𝑌, which says that operating on the two components in either order or simultaneously gives the same thing.
Let 𝑓:=𝖼𝗅𝗈𝗌𝖾 and 𝑔:=𝗋𝖾𝖺𝖽. The two terms 𝗅𝖾𝗍 𝑥⊗𝑦=(𝑓𝑓1)⊗(𝑔𝑓2) 𝗂𝗇 …and(𝑓⊗𝑔) applied after regrouping are equal by T-TensorI and the 𝛽-rule for tensor. Semantically this is naturality of 𝛼: the square 𝛼𝑋′,𝑌′,𝑍′∘((𝑓⊗𝑔)⊗ℎ)=(𝑓⊗(𝑔⊗ℎ))∘𝛼𝑋,𝑌,𝑍 commutes for all 𝑓,𝑔,ℎ. Naturality is therefore checked before any coherence axiom is stated: it is a consequence of the calculus, not an assumption about pictures.
Referenced from 2 locations
Suppose C carries tensor data and that for every four objects the two composites ((𝑊⊗𝑋)⊗𝑌)⊗𝑍 → 𝑊⊗(𝑋⊗(𝑌⊗𝑍)) built from 𝛼 agree. Then the pentagon identity 𝛼𝑊,𝑋,𝑌⊗𝑍∘𝛼𝑊⊗𝑋,𝑌,𝑍=(id𝑊⊗𝛼𝑋,𝑌,𝑍)∘𝛼𝑊,𝑋⊗𝑌,𝑍∘(𝛼𝑊,𝑋,𝑌⊗id𝑍) holds; conversely the pentagon identity implies the agreement.
Referenced from 6 locations
Proof of Proposition 159.3 — The pentagon is forced
Proof. There are exactly five ways to move one pair of parentheses at a time from ((𝑊 ⊗𝑋) ⊗𝑌) ⊗𝑍 to 𝑊 ⊗(𝑋 ⊗(𝑌 ⊗𝑍)), and they form a pentagon whose two sides are the two displayed composites: the left side reassociates the outer two brackets and then the inner, the right side reassociates innermost first. The hypothesis says the two sides are equal, which is the identity. The converse is immediate. ◻
If the two composites (𝑋 ⊗𝐼) ⊗𝑌 →𝑋 ⊗𝑌 built from 𝛼,𝜌,𝜆 agree, then (id𝑋 ⊗𝜆𝑌) ∘𝛼𝑋,𝐼,𝑌 =𝜌𝑋 ⊗id𝑌, and conversely.
Referenced from 5 locations
Proof of Proposition 159.4 — The triangle is forced
Proof. The two composites are the two sides of the displayed equation; there are no others, since each of 𝜌 and 𝜆 can be applied in exactly one position. ◻
In a monoidal category, 𝜆𝐼 =𝜌𝐼 and id𝑋 ⊗𝜆𝑌 determines 𝜆𝑋⊗𝑌 through 𝛼.
Referenced from 2 locations
Proof of Lemma 159.6 — Two derived unit equations
Proof. For the first, apply the triangle at 𝑋 =𝐼 and use naturality of 𝜆 at 𝜆𝑌 to cancel 𝛼; the two resulting arrows 𝐼 ⊗𝐼 →𝐼 agree. For the second, naturality of 𝜆 in its argument gives 𝜆𝑋⊗𝑌 =(𝜆𝑋 ⊗id𝑌) ∘𝛼−1, and the triangle rewrites the right-hand side as stated. ◻
Exchange, and why symmetry is a further axiom
Two independently owned handles may be presented in either order; a semantics must therefore relate 𝑋 ⊗𝑌 and 𝑌 ⊗𝑋.
A braiding is a natural isomorphism 𝛾𝑋,𝑌 :𝑋 ⊗𝑌 →𝑌 ⊗𝑋 satisfying the two hexagons 𝛼𝑌,𝑍,𝑋∘𝛾𝑋,𝑌⊗𝑍∘𝛼𝑋,𝑌,𝑍=(id𝑌⊗𝛾𝑋,𝑍)∘𝛼𝑌,𝑋,𝑍∘(𝛾𝑋,𝑌⊗id𝑍),𝛼−1𝑍,𝑋,𝑌∘𝛾𝑋⊗𝑌,𝑍∘𝛼−1𝑋,𝑌,𝑍=(𝛾𝑋,𝑍⊗id𝑌)∘𝛼−1𝑋,𝑍,𝑌∘(id𝑋⊗𝛾𝑌,𝑍). It is a symmetry when 𝛾𝑌,𝑋 ∘𝛾𝑋,𝑌 =id𝑋⊗𝑌. A symmetric monoidal category is a monoidal category with a symmetry.
Referenced from 4 locations
There is a braided monoidal category in which 𝛾𝑋,𝑋 ∘𝛾𝑋,𝑋 ≠id𝑋⊗𝑋.
Referenced from 2 locations
Proof of Proposition 159.8 — Braided but not symmetric
Proof. Let B have one object ∗ with ⊗ the unique operation, and let homB( ∗, ∗) be the group ℤ under addition, with composition addition and ⊗ on arrows also addition. This is a strict monoidal category: associativity and units are the group laws. Put 𝛾:=1 ∈ℤ. Naturality is automatic, since the group is abelian; both hexagons reduce to 1 +0 +0 =0 +0 +1, which holds. But 𝛾 ∘𝛾 =2 ≠0 =id. So the braiding is not a symmetry: a crossing composed with itself is a nontrivial arrow, not the identity. ◻
Free constructions and normal forms
A signature S consists of a set of generating objects and, for each pair of finite lists ⃗𝑋,⃗𝑌 of generating objects, a set of generating arrows 𝑓 :⃗𝑋 →⃗𝑌.
Referenced from 3 locations
Let FS(S) have as objects the finite lists of generating objects, with ⊗ concatenation and 𝐼 the empty list. Arrows are generated by the 𝑓 ∈S, the identities, a symmetry 𝛾⃗𝑋,⃗𝑌 for each pair of lists, composition and ⊗, modulo the equations of a strict symmetric monoidal category — associativity and units on the nose, functoriality of ⊗, naturality of 𝛾, the hexagons and the symmetry axiom.
Referenced from 3 locations
Proof of Theorem 159.12 — Normal form and decidable equality
Proof. Existence. Any expression is a composite of layers, each of which is a tensor of generators, identities and symmetries. Using functoriality of ⊗, split a layer containing two generators into two consecutive layers, one generator each; using naturality of 𝛾, move every symmetry past a generator layer, at the cost of relabelling which positions the generator acts on. Repeating drives all symmetries into the interleaving permutations 𝜎𝑖, giving the displayed form. The procedure terminates because each step strictly decreases the number of generators occurring in a common layer, and the number of layers is bounded by the number of generators.
Uniqueness. Interpret FS(S) in the category whose objects are lists and whose arrows ⃗𝑋 →⃗𝑌 are pairs of a sequence of generators and a bijection recording positions — this is a symmetric monoidal category, and the interpretation sends the displayed normal form to its own data. Hence two normal forms with different generator sequences up to the stated equivalence have different images and are not equal. Conversely, exchanging adjacent generators on disjoint positions is derivable from functoriality, so the equivalence is sound.
Decidability. Normalisation is effective and the equivalence on generator sequences is decidable, being generated by finitely many adjacent exchanges on a finite sequence. ◻
String diagrams
A diagram over a signature S consists of a finite set of boxes, each labelled by a generator 𝑓 :⃗𝑋 →⃗𝑌 and carrying |⃗𝑋| input ports and |⃗𝑌| output ports typed accordingly; a list of free input ports and a list of free output ports; and a bijection wiring each output port (of a box or free input) to exactly one input port (of a box or free output) with matching type, such that the directed graph on boxes induced by the wiring is acyclic. Two diagrams are equal when there is a type-preserving bijection of boxes and ports respecting the wiring. Sequential composition plugs the free outputs of one into the free inputs of another; parallel composition places two diagrams side by side and concatenates the free lists.
Referenced from 9 locations
Sending a diagram to the arrow of FS(S) obtained by reading it in any order compatible with the acyclic structure is well defined, and it is a bijection between diagrams from ⃗𝑋 to ⃗𝑌 and arrows ⃗𝑋 →⃗𝑌 of FS(S).
Referenced from 8 locations
Proof of Theorem 159.15 — Soundness and completeness for the free fragment
Proof. Well defined. Two compatible orders differ by transpositions of adjacent boxes acting on disjoint ports, and by theorem 159.12 those give equal arrows.
Surjective. Given a normal form, build the diagram with one box per generator, wired according to the interleaving permutations.
Injective. A diagram is recovered from the normal form of its arrow: by the uniqueness clause of theorem 159.12 the arrow determines the sequence of generators up to disjoint exchange and the accompanying bijection on positions, which is exactly the data of the wiring up to the bijection allowed in definition 159.14. ◻
Closure, and the interpretation of the linear calculus
The tensor interprets the comma of a linear context. Linear implication needs one more operation.
A symmetric monoidal category is closed when for every object 𝑌 the functor − ⊗𝑌 has a right adjoint 𝑌 ⊸ −; that is, there are natural bijections Λ: homC(𝑋⊗𝑌,𝑍) ≅ homC(𝑋,𝑌⊸𝑍), with counit ev𝑌,𝑍 :(𝑌 ⊸𝑍) ⊗𝑌 →𝑍.
Referenced from 4 locations
In a symmetric monoidal closed category, ev ∘(Λ(𝑓) ⊗id𝑌) =𝑓 for every 𝑓 :𝑋 ⊗𝑌 →𝑍, and Λ(ev ∘(𝑔 ⊗id𝑌)) =𝑔 for every 𝑔 :𝑋 →𝑌 ⊸𝑍.
Referenced from 4 locations
Proof of Lemma 159.18 — The two inverse laws
Proof. The first is the triangle identity of the adjunction at 𝑓, the second its mate; naturality of Λ in 𝑋 is what makes both statements hold for all 𝑓 and 𝑔 rather than for the identity alone. ◻
Fix a symmetric monoidal closed category C and an object [[𝑏]] for each atomic type. Extend by [[1]]:=𝐼,[[𝐴⊗𝐵]]:=[[𝐴]]⊗[[𝐵]],[[𝐴⊸𝐵]]:=[[𝐴]]⊸[[𝐵]], and interpret a linear context Δ =𝑥1 :𝐴1,…,𝑥𝑛 :𝐴𝑛 by [[𝐴1]] ⊗⋯ ⊗[[𝐴𝑛]], bracketed to the right. A derivation of Γ;Δ ⊢𝑒 :𝐴 with Γ empty is interpreted by an arrow [[Δ]] →[[𝐴]]: T-LVar by an identity; T-TensorI by ⊗ of the two subarrows precomposed with the associativity and symmetry isomorphism realising the split Δ1 ⊎Δ2; T-TensorE by composing with the subarrow for 𝑒1 in the first component; T-LolliI by Λ; T-LolliE by ev after ⊗ of the two subarrows; and T-OneI, T-OneE by 𝜆 and 𝜌.
Referenced from 6 locations
The isomorphism [[Δ]] →[[Δ1]] ⊗[[Δ2]] used in definition 159.19 is uniquely determined by the split Δ =Δ1 ⊎Δ2.
Referenced from 4 locations
Proof of Lemma 159.20 — Independence of the split isomorphism
Proof. Any two such isomorphisms are built from 𝛼, 𝜆, 𝜌 and 𝛾 and induce the same permutation of the variables, since both realise the same split. Two arrows of FS(S) built from structural isomorphisms with the same underlying permutation are equal by the uniqueness clause of theorem 159.12, which has no generators to distinguish them. The claim then transfers to C along the interpretation of the free category. ◻
Let Γ be empty throughout. If Δ1 ⊢𝑒1 :𝐴 and Δ2,𝑥 :𝐴 ⊢𝑒2 :𝐶 then [[𝑒2[𝑒1/𝑥]]]=[[𝑒2]]∘(id[[Δ2]]⊗[[𝑒1]])∘𝑠, where 𝑠 is the split isomorphism of lemma 159.20. Consequently, if 𝑒 ⟶𝑒′ by the 𝛽- and 𝜂-rules of definition 18.4 then [[𝑒]] =[[𝑒′]].
Referenced from 6 locations
Proof of Theorem 159.21 — Semantic substitution and soundness
Proof. Substitution. Induction on the derivation of 𝑒2. In the variable case 𝑒2 =𝑥 and both sides are [[𝑒1]] after the unit isomorphism. In the tensor-introduction case the linear context splits, 𝑥 lies in exactly one part by the disjointness condition of definition 18.1, and the induction hypothesis applies there while the other component is untouched — this is functoriality of ⊗. In the abstraction case the claim follows from naturality of Λ in its first argument. In the application case it follows from naturality of ev, which is the counit of the adjunction. Lemma 159.20 guarantees that the structural isomorphisms produced by the two sides agree.
Soundness. Each reduction rule is now an equation already available. The 𝛽-rule for ⊸ is the first law of lemma 159.18 combined with the substitution equation; the 𝛽-rule for ⊗ is the substitution equation applied twice, using functoriality to see that the two components are substituted independently; the 𝛽-rule for 1 is naturality of 𝜆; and the 𝜂-rule for ⊸ is the second law of lemma 159.18. Compatibility with evaluation contexts is functoriality of ⊗ and of composition. ◻
Interpret 𝖥𝗂𝗅𝖾 and 𝖡𝗒𝗍𝖾𝗌 by objects 𝐹 and 𝐵, and take 𝗈𝗉𝖾𝗇 :𝐼 →𝐹, 𝗋𝖾𝖺𝖽 :𝐹 →𝐹 ⊗𝐵 and 𝖼𝗅𝗈𝗌𝖾 :𝐹 →𝐼 as generators. The term 𝗅𝖾𝗍 𝑓⊗𝑏=𝗋𝖾𝖺𝖽(𝗈𝗉𝖾𝗇∗) 𝗂𝗇 (𝖼𝗅𝗈𝗌𝖾𝑓)⊗𝑏 is interpreted by the composite 𝐼 𝗈𝗉𝖾𝗇 ←←←←←←←←←←←→𝐹 𝗋𝖾𝖺𝖽 ←←←←←←←←←←→𝐹⊗𝐵 𝖼𝗅𝗈𝗌𝖾⊗id𝐵 ←←←←←←←←←←←←←←←←←←→𝐼⊗𝐵 𝜆𝐵 ←←←←←←←→𝐵. As a diagram in the sense of definition 159.14 it is a single line entering the 𝗈𝗉𝖾𝗇 box, continuing into 𝗋𝖾𝖺𝖽, which has two output wires; the 𝐹-wire enters 𝖼𝗅𝗈𝗌𝖾 and terminates, and the 𝐵-wire is the free output. The two readings agree by theorem 159.15. The program that forgets to close is the diagram with a dangling 𝐹-wire, which is not a diagram from 𝐼 to 𝐵 at all, because definition 159.14 requires every output port to be wired; the term is likewise not typable, because T-TensorE would leave 𝑓 unused.
Referenced from 4 locations
The unrestricted context
The interpretation of definition 159.19 assumed Γ empty. A variable in Γ may be used any number of times, including none, so its interpretation must admit duplication and discarding — exactly the maps a tensor lacks.
Suppose C is symmetric monoidal closed and 𝑋 is an object equipped with 𝑑 :𝑋 →𝑋 ⊗𝑋 and 𝑒 :𝑋 →𝐼 satisfying the comonoid laws. Then 𝑋 need not admit a natural such structure, and choosing one for each object of a subclass does not make the interpretation of T-UVar well defined unless the choice is natural in 𝑋 and compatible with ⊗.
Referenced from 2 locations
Proof of Proposition 159.23 — Declaring objects copyable is not enough
Proof. A comonoid structure on a single object is data, not a property, and different choices give different interpretations of a term that duplicates that variable twice in different orders — unless 𝑑 is coassociative and cocommutative, which is part of the comonoid laws, and unless 𝑑 is natural, which the hypothesis does not require. Without naturality the substitution equation of theorem 159.21 fails: substituting a term for a duplicated variable would have to commute 𝑑 past the substituted arrow, and that is precisely a naturality square. Compatibility with ⊗ is needed for the same reason at a variable of tensor type. ◻
A linear–nonlinear adjunction consists of a cartesian closed category X, a symmetric monoidal closed category C, and a symmetric monoidal adjunction 𝐿:X ⇄ C :𝑅,𝐿⊣𝑅, in which 𝐿 is strong monoidal — the comparisons 𝐿(𝐴 ×𝐵) →𝐿𝐴 ⊗𝐿𝐵 and 𝐿(1) →𝐼 are isomorphisms — and 𝑅 is lax monoidal.
Referenced from 4 locations
Let 𝐿 ⊣𝑅 be a linear–nonlinear adjunction and put !:=𝐿 ∘𝑅 :C →C. Then ! is a comonad, and every object !𝑋 carries natural maps contr𝑋:!𝑋→!𝑋⊗!𝑋,weak𝑋:!𝑋→𝐼 making it a commutative comonoid, natural in 𝑋 and compatible with the comonad structure.
Referenced from 6 locations
Proof of Theorem 159.25 — The exponential comonad
Proof. ! is a comonad because it is 𝐿𝑅 for an adjunction, with counit the counit of the adjunction and comultiplication 𝐿𝜂𝑅. For the comonoid structure, X is cartesian, so every object 𝐴 carries the diagonal Δ𝐴 :𝐴 →𝐴 ×𝐴 and the unique map 𝐴 →1, and these are natural and form a commutative comonoid. Apply 𝐿 and use that 𝐿 is strong monoidal: contr𝑋:=(𝐿(𝐴×𝐴) ≅ ⟶𝐿𝐴⊗𝐿𝐴)∘𝐿(Δ𝐴),weak𝑋:=(𝐿(1) ≅ ⟶𝐼)∘𝐿(!𝐴), with 𝐴:=𝑅𝑋. Naturality is naturality of Δ and of the monoidal comparisons; the comonoid laws are the images under a strong monoidal functor of the corresponding laws in X, which hold because X is cartesian. Compatibility with the comonad structure is the statement that the comparisons are compatible with 𝜂 and 𝜀, which is part of a monoidal adjunction. ◻
With ! as in theorem 159.25, extend definition 159.19 by [[!𝐴]]:=![[𝐴]] and interpret Γ;Δ ⊢𝑒 :𝐴 by an arrow ![[Γ]] ⊗[[Δ]] →[[𝐴]], using contr for a variable of Γ used twice and weak for one used not at all. Then theorem 159.21 holds for the full calculus of definition 18.5.
Referenced from 4 locations
Proof of Corollary 159.26 — Interpretation of the full calculus
Proof. The substitution induction acquires two new cases, both settled by naturality: duplicating a Γ-variable and then substituting equals substituting and then duplicating, by naturality of contr; and discarding commutes with substitution by naturality of weak. The rules for ! — introduction at a value and elimination by a 𝗅𝖾𝗍 — are the unit and counit of the comonad, and their 𝛽-rule is a triangle identity. ◻
A functor 𝐹 :C →D between monoidal categories is lax monoidal when it carries 𝑚𝑋,𝑌 :𝐹𝑋 ⊗𝐹𝑌 →𝐹(𝑋 ⊗𝑌) and 𝑚𝐼 :𝐼 →𝐹𝐼, natural and compatible with 𝛼,𝜆,𝜌; oplax when the comparisons point the other way; and strong when they are isomorphisms.
Referenced from 2 locations
Let X be sets and functions with ×, and C a symmetric monoidal category. The functor sending a set 𝐴 to a chosen coproduct of 𝐴 copies of 𝐼 is strong monoidal when C has coproducts distributing over ⊗. The forgetful functor 𝑅 of definition 159.24 is lax and not strong: there is a map 𝑅𝑋 ×𝑅𝑌 →𝑅(𝑋 ⊗𝑌) given by the adjunction, but no inverse, since a map into 𝑋 ⊗𝑌 need not split. The functor sending a comonoid to its carrier is oplax: the comultiplication provides 𝐹(𝑋 ⊗𝑌) →𝐹𝑋 ⊗𝐹𝑌, not the reverse. Each direction of failure is the direction in which the corresponding structural map exists.
Referenced from 2 locations
In a linear–nonlinear adjunction, the interpretation of corollary 159.26 satisfies [[!(𝐴⊗𝐵)]]≅[[!𝐴]]⊗[[!𝐵]]is not asserted,𝐿(𝐴×𝐵)≅𝐿𝐴⊗𝐿𝐵is. Precisely: 𝐿 strong monoidal is used exactly in the construction of contr and weak in theorem 159.25, and 𝑅 lax monoidal is used exactly in verifying that the adjunction is monoidal.
Referenced from 2 locations
Proof of Proposition 159.29 — Preservation equations for the interpretation
Proof. Inspect the proof of theorem 159.25: the comparisons of 𝐿 are inverted there, and nowhere else; the comparisons of 𝑅 appear only in the compatibility of unit and counit with the monoidal structure. The non-assertion is genuine: !(𝐴 ⊗𝐵) and !𝐴 ⊗!𝐵 are related by a canonical map that need not be invertible, and no step above uses one. ◻
Four extensions this chapter does not make
Each of the following is a natural next demand on the file example, and each requires structure that has not been constructed.
An external category acting on the model. Suppose one wants a family of resources indexed by an external parameter, with the parameter category acting on C. This is an action of a monoidal category on a category, with its own coherence conditions; nothing above supplies it, and ⊗ alone does not, since one of its arguments would have to leave C.
Feedback. A protocol that loops — read until end of file — asks for an operation taking 𝑓 :𝑋 ⊗𝑈 →𝑌 ⊗𝑈 to 𝑋 →𝑌, hiding 𝑈. Such a trace satisfies its own axioms, and it is not derivable: in FS(S) the normal form of theorem 159.12 has no arrow of that shape, since every generator occurrence is on a directed path from a free input to a free output.
A bent input wire. Turning an input into an output asks for maps 𝐼 →𝑋 ⊗𝑋∗ and 𝑋∗ ⊗𝑋 →𝐼 satisfying the triangle equations. Their presence makes ⊗ self-dual in a way that definition 159.17 does not provide: closure gives 𝑋 ⊸𝐼, not a dual with a unit.
Reversal. Reversing a computation asks for an involution on arrows fixing objects and compatible with ⊗. The file generators 𝗈𝗉𝖾𝗇, 𝗋𝖾𝖺𝖽, 𝖼𝗅𝗈𝗌𝖾 have no such reversal, and definition 159.10 attaches none.
These four demands motivate the structures named monoidal action, trace, compact closure and dagger. Their rule tables and their proofs belong to the routes that construct them; nothing in this chapter may be used to assert that C has any of them.
★☆☆ Normalize the two expressions ((𝑋 ⊗𝑌) ⊗𝑍) ⊗𝑊 and 𝑋 ⊗(𝑌 ⊗(𝑍 ⊗𝑊)) to the same list using construction 159.11, and exhibit the two composites of proposition 159.3 between them, showing every object.
Referenced from 2 locations
★☆☆ Which of the following are diagrams over the file signature of example 159.22: a box 𝗋𝖾𝖺𝖽 whose 𝐹-output is wired to its own 𝐹-input; a box 𝖼𝗅𝗈𝗌𝖾 with an unwired input; a pair of 𝗋𝖾𝖺𝖽 boxes whose outputs are both wired to a single 𝖼𝗅𝗈𝗌𝖾? For each, name the clause of definition 159.14 it violates or exhibit the arrow it denotes.
Referenced from 2 locations
★★☆ Translate the derivation of 𝑓1 :𝖥𝗂𝗅𝖾,𝑓2 :𝖥𝗂𝗅𝖾 ⊢(𝖼𝗅𝗈𝗌𝖾 𝑓1) ⊗(𝗋𝖾𝖺𝖽 𝑓2) :1 ⊗(𝖥𝗂𝗅𝖾 ⊗𝖡𝗒𝗍𝖾𝗌) into an arrow of C using definition 159.19, showing the split isomorphism explicitly, and draw the corresponding diagram with every wire typed.
Referenced from 2 locations
★★☆ Prove one hexagon equation of definition 159.7 algebraically from naturality of 𝛾 and the pentagon, and then verify the same equation by comparing the two diagrams of definition 159.14 that the two sides denote. State which of the two arguments remark 159.16 permits as a proof.
Referenced from 3 locations
★★☆ Give categories separating, in order: cartesian from merely monoidal; monoidal from braided; braided from symmetric; and symmetric monoidal from symmetric monoidal closed. For each, name the structural map that exists on one side and not the other.
Referenced from 2 locations
Boundary and seminar
The endpoint of this chapter is the symmetric monoidal closed interface together with the linear–nonlinear adjunction: definition 159.5, definition 159.7, theorem 159.12, theorem 159.15, definition 159.17, theorem 159.21, theorem 159.25 and corollary 159.26. The boundaries are these. The coherence used is the free-strict normal form of theorem 159.12 and nothing stronger; remark 159.13 and remark 159.16 say exactly what a diagram may be used for. The four structures of section 159.7 are motivated and not constructed. Enriched categories and general bicategories do not appear. And no argument of this chapter is used to modify the syntactic development of chapter 18: theorem 159.21 interprets that calculus and proves nothing new about it.
The proof base divides as follows. The mixed linear/nonlinear calculus, the adjunction of definition 159.24 and the derivation of the exponential comonad are Benton’s [Ben94]; the resource reading of the connectives is Girard’s [Gir87]; the coherence vocabulary and the pentagon and triangle of proposition 159.3, proposition 159.4 are Mac Lane’s [ML98a]; the exact soundness and completeness statement for the graphical language of closed symmetric monoidal categories is [RG26], and theorem 159.15 is stated here only at the free-strict signature it proves; the long proof-theoretic route from linear logic to monoidal semantics is [Mel09]; and the pedagogical synthesis relating these to computation is [BS09]. The mechanized coherence library and diagram editor of [Pou26] is a formal and practical comparison at its own monoidal signature; no theorem above depends on it.
[4]
Suggested first pass.
Begin with exercise 159.6, then exercise 159.7, and finish with exercise 159.9.
★★★ Implement the normalisation procedure in the proof of theorem 159.12 by hand on an expression with four generators and two symmetries, recording each rewrite and the measure that decreases. Then exhibit two expressions with the same normal form and different-looking diagrams, and explain why theorem 159.15 does not make them different diagrams.
Referenced from 3 locations
★★★ Construct a concrete linear–nonlinear adjunction: take C to be the category of pointed sets with smash product and X to be sets, with 𝐿 the “add a base point” functor. Verify that 𝐿 is strong monoidal, compute !, and write out contr and weak explicitly. Then check the comonoid laws on a two-element set.
Referenced from 3 locations
★★★ Prove the claim made in section 159.7 that FS(S) admits no trace operator satisfying the usual naturality and vanishing axioms, by using the normal form of theorem 159.12 to show that every arrow’s generator occurrences lie on directed paths from inputs to outputs.
Referenced from 2 locations
★★★ Practical project.monoidal-diagram-normalizer Implement diagrams over a finite typed signature as in definition 159.14: boxes with typed ports, a wiring, and free input and output lists. The program must check well-formedness — every port wired exactly once, types matching, the box graph acyclic — compute the normal form of theorem 159.12, and decide equality of two diagrams by comparing normal forms. The invariant the program must maintain is that it never identifies two diagrams whose normal forms differ, and never distinguishes two that differ only by the port bijection allowed in definition 159.14. The program must print, for each named input, the well-formedness verdict with the violated clause named on failure, the normal form as a sequence of generator layers with its permutations, and an equality verdict for a pair. The acceptance test is: the file program of example 159.22 is accepted and its normal form has three generator layers in the order 𝗈𝗉𝖾𝗇,𝗋𝖾𝖺𝖽,𝖼𝗅𝗈𝗌𝖾; the variant that omits the 𝖼𝗅𝗈𝗌𝖾 box is rejected with the unwired-port clause named; the two sides of one hexagon from exercise 159.4 normalize to the same form; and two diagrams differing only by exchanging two boxes on disjoint wires are reported equal, matching the uniqueness clause of theorem 159.12. A normalizer for finite diagrams is evidence on named inputs only: it proves neither theorem 159.12 nor theorem 159.15, and it says nothing about non-free monoidal categories.
Referenced from 3 locations