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 , the slice is equivalent to , where is the category of elements of , 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 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 with the inclusion . 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 , 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 be a span of pointed graphs. Let be the set of label sequences along paths from the initial vertex, with an idle label to model stuttering. A path in the pullback is a pair of paths whose -labels agree step by step. Hence , taken stepwise. This expression is monotone in , so implies . Corollary 4 and Corollary 5 follow by functoriality and by (c). 0◻
Theorem 6#
is a complete lattice of height at most , and , defined by (2), is monotone. By Knaster–Tarski it has a least fixpoint , and since the height is finite, is the limit of the Kleene chain from . Consider any chaotic iteration that, starting from , repeatedly replaces some coordinate by . By induction, throughout, since implies . The iterates increase monotonically. Each strict increase raises one coordinate by at least one level, so there are at most of them. Under fairness, every coordinate is re-evaluated after each change of its inputs, so the iteration stops at a fixpoint , which by minimality equals . A worklist re-evaluates exactly the elements reached through incidences of a changed element, giving message evaluations. Stale reads under asynchronous distribution are covered by [75]. 0◻
Proposition 9#
The preconditions, with the containment subtree of :
| Operation | Precondition (local) |
|---|---|
| add node under | fresh identifier; exists; kind admissible under ’s facets |
| remove node | no children, ports or incidences remain (or the same patch removes them) |
| add port to | fresh identifier; the port kind is in the signature of |
| add hyperedge in scope | fresh identifier; exists |
| add incidence | slot free; upper bound of respected; for a connection, |
| with kind and no other connection; layer admissible; | |
| or a boundary port; contract compatible with the participants present | |
| remove incidence | lower bound of respected, or deferred to commit |
| move under | ; incident hyperedges remain inside their scopes |
| set attribute of | 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 exists and is reached by a worklist in which each element enters at most once: . A region boundary that cuts a hyperedge of 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◻