Train thoughts: Event Structures à la Winskel are mostly the same thing as packa...
Bob Atkey @bentnib@types.pl
Train thoughts: Event Structures à la Winskel are mostly the same thing as package dependencies à la @ryan @avsm et al. ( https://doi.org/10.1145/3828699 ):
With a bit of rearrangement, a system of packages with dependency information is a triple (P, ∆, #) of set of packages P, a dependency relation ∆ ⊆ P × ℘_fin(P) and a conflict relation # ⊆ P × P.
The idea is that elements of P are individual packages that can be installed. For any p, each D such that p∆D is a possible set of immediate dependencies of p, and p#q means that p and q cannot be installed simultaneously.
A correct package installation is some subset I ⊆ P which is dependency correct: ∀p ∈ I. ∃D. d∆D ∧ (∀q. q ∈ D → q ∈ I), and conflict free: ∀p,q ∈ I. ¬(p#q).
An event structure with binary conflict is a triple (E, ⊦, #) of a set of event occurrences, a relation ⊦ ⊆ ℘_fin(E) × E of enabling, and a conflict relation # ⊆ E × E.
An observable state or "configuration" of an event structure is a subset C ⊆ E such that every event in C is (finitely) enabled by other events in C, and there are no conflicting events. Configurations form a Scott domain, so we can finitely approximate infinite behaviour.
(Package systems usually only have a finite amount of packages, so the finitely enabled constraint holds automatically there.)
So event structures and package systems are the same thing, just with different names for the bits!
Most of the fun stuff with event structures either happens when the enabling relation is a partial order (so there is no choice of dependencies for packages), or when it is stable, meaning that if we have X ⊦ e and Y ⊦ e and ¬(X # Y), then X ∩ Y ⊦ e so that enabled things have a unique enabling. Maybe stability is a useful property of package systems? Can one build a cartesian closed category of package systems, where closed programs are dependency correct installations?