Skip to content
Design6 min readUpdated 27 Oct 2026

Appendix A. Proofs

Proposition 1#

𝖲𝖾𝗍 is adhesive, and adhesive categories are closed under functor categories and slices [210], so 𝖲𝖾𝗍𝒞 is adhesive for every small 𝒞. For a functor T:𝒞→𝖲𝖾𝗍, the slice 𝖲𝖾𝗍𝒞/T is equivalent to 𝖲𝖾𝗍∫T, where ∫T is the category of elements of T, and is therefore again a topos. Adhesive categories are also closed under slices [210]. The local Church–Rosser, Parallelism and Concurrency theorems hold for DPO rewriting with monic rules in any adhesive category [102]. 0◻

Proposition 2#

For a functor ι:𝒜→ℬ between small categories, Δι=−∘ι:𝖲𝖾𝗍ℬ→𝖲𝖾𝗍𝒜 has a left adjoint Σι and a right adjoint Πι (left and right Kan extension) [314]. As a left adjoint it preserves colimits, in particular pushouts. As a right adjoint it preserves limits, in particular monomorphisms, since f is monic iff its kernel pair is trivial. A DPO derivation is a pair of pushout squares with monic rule legs, so its image is a pair of pushout squares with monic legs, i.e. a DPO derivation of the image rule. For typed graphs, apply the argument in 𝖲𝖾𝗍∫T with ι the inclusion ∫Tℓ↪∫T. Well-formedness conditions that mention only sorts of layer ℓ are preserved, because Δι restricts their interpretation; conditions that mention other layers are not part of the projected judgment. 0◻

Theorem 3#

(a) The encoding ℰ sends ports to vertices, nodes to boxes labelled by kind and connections to boxes labelled by family, with vertex lists ordered by port and by role. It is injective on isomorphism classes because identities and roles are recorded in the boxes’ arities. The correspondence between morphisms of the free hypergraph category on a monoidal signature and discrete cospans of hypergraphs over it is proved in [35]. The many-sorted form follows by replacing the single object with the set of port types. Composition is pushout along the shared boundary. It preserves (W4) when every boundary vertex is free of connection boxes on the side being mounted, which (W7) guarantees for scopes. (b) 𝖦𝗋𝖺𝗉𝗁=𝖲𝖾𝗍⋅⇉⋅ and its pointed variant are finitely complete. 𝖲𝗉𝖺𝗇(𝖢) is 𝖢𝗈𝗌𝗉𝖺𝗇(𝖢op), and cospans in a category with finite colimits form a hypergraph category [135, 136]. Hence 𝖲𝗉𝖺𝗇(𝖦𝗋𝖺𝗉𝗁) is a hypergraph category: spans compose by pullback, the tensor is the product, and the Frobenius structure on each object is given by diagonal spans. The free hypergraph category has the universal property that an assignment of objects and generators extends uniquely to a hypergraph functor [136]. Pullback over the interface alphabets synchronises transitions with equal labels, which is the composition of [193]. (c) Let a behaviour B:J→K be a span AJ←Q→AK of pointed graphs. Let Tr(B)⊆(AJ×AK)* be the set of label sequences along paths from the initial vertex, with an idle label to model stuttering. A path in the pullback QC×AKQS is a pair of paths whose K-labels agree step by step. Hence Tr(C∘S)={(j,l)∣∃k.(j,k)∈Tr(S)∧(k,l)∈Tr(C)}, taken stepwise. This expression is monotone in Tr(S), so Tr(S′)⊆Tr(S) implies Tr(C∘S′)⊆Tr(C∘S). Corollary 4 and Corollary 5 follow by functoriality and by (c). 0◻

Theorem 6#

VX is a complete lattice of height at most h|X|, and F, defined by (2), is monotone. By Knaster–Tarski it has a least fixpoint x*, and since the height is finite, x* is the limit of the Kleene chain from ⊥. Consider any chaotic iteration that, starting from ⊥, repeatedly replaces some coordinate xv by Fv(x). By induction, x≤x* throughout, since x≤x* implies Fv(x)≤Fv(x*)=xv*. The iterates increase monotonically. Each strict increase raises one coordinate by at least one level, so there are at most h|X| of them. Under fairness, every coordinate is re-evaluated after each change of its inputs, so the iteration stops at a fixpoint ≤x*, which by minimality equals x*. A worklist re-evaluates exactly the elements reached through incidences of a changed element, giving O(h|I|) message evaluations. Stale reads under asynchronous distribution are covered by [75]. 0◻

Proposition 9#

The preconditions, with 𝑠𝑢𝑏(n) the containment subtree of n:

Operation Precondition (local)
add node n under q fresh identifier; q exists; kind admissible under q’s facets
remove node n no children, ports or incidences remain (or the same patch removes them)
add port p to n fresh identifier; the port kind is in the signature of κ(n)
add hyperedge e in scope s fresh identifier; s exists
add incidence (e,x,r,k) slot (e,r,k) free; upper bound of μ(r) respected; for a connection, x∈P
with kind (κ(e),r) and no other connection; layer admissible; x∈𝑠𝑢𝑏(𝑠𝑐(e))
or a boundary port; contract compatible with the participants present
remove incidence lower bound of μ(r) respected, or deferred to commit
move n under q q∉𝑠𝑢𝑏(n); incident hyperedges remain inside their scopes
set attribute a of x the current value equals the expected value; the new value is in the attribute’s type

Each precondition is the local condition under which the corresponding judgment of Section 6.5 is maintained. The other judgments are unaffected because the operation does not touch the elements they constrain. Lower multiplicity bounds and global constraints (acyclicity of eager Bind, effect ceilings) are deferred: they are checked at commit over the patch’s affected elements and declared read sets. 0◻

Closure (3)#

𝑅𝑒𝑞 is monotone on the powerset lattice of elements, so C* exists and is reached by a worklist in which each element enters at most once: O(|X|+|I|). A region boundary that cuts a hyperedge of C* is a candidate cut only if every cut incidence passes through a boundary port. Otherwise 𝑅𝑒𝑞 would have added the participant. 0◻

Theorem 10#

Parallel independence is the stated condition on matches; the Local Church–Rosser and Parallelism theorems for adhesive categories give the commuting derivations and the parallel rule [102, 210]. Identity-preserving rules mint the identifiers of created elements from the patch’s identity and local names, independently of order, so both orders produce the same identifiers and hence equal graphs. 0◻