The category of contexts #
Indexed dynamic semantics is a category: objects are contexts (bases of
live discourse referents), morphisms are Transitions, composition is
world-pointwise relational composition. The identity and associativity
laws are Transition.lean's id_comp/comp_id/comp_assoc.
The presheaf of state fibers is the composite of the possibilities
presheaf with the powerset functor — definitionally, in this
formulation: the predecessor proved the isomorphism
typing states at the possibilities makes
it the definition (State.presheaf). Restriction is Set.image along
weakening, the ∃-leg of mathlib's
Set.image_preimage/Set.preimage_kernImage triple ([Law69b]'s
quantifiers as adjoints to weakening, as retold by [Jac99a]).
Syntax categories interpret into Ctx (DRS/Category.lean); the fiber
at ∅ is [Vel96]'s update semantics.
Main definitions #
Ctx W M V: bundled contexts, with aCategoryinstance whose morphisms areTransitions between the bases.possibilities: the presheaf of world–assignment pairs at each granularity — a set-valued indexed category in [Jac99a]'s sense, its maps the semantic face of weakening. Precedent for the states-as-presheaf reading: [AS14].State.presheaf: the state fibers —possibilities ⋙ Set.possibilities_glue,possibilities_beck_chevalley: the context-lattice square is a pullback of possibilities, so quantification commutes with weakening — the fibers are a hyperdoctrine.elementsEquivPoints: the Grothendieck total of the family is the point type — the category of elements is the descent preorder on the points, opposed.
References #
Morphisms of contexts: transitions between the bases.
- t : Transition W M X.base Y.base
The underlying transition.
Instances For
The possibilities presheaf and the state fibers #
The presheaf of possibilities: over X, world–assignment pairs at
granularity X; restriction precomposes with the inclusion. A model read
over the category of contexts — a set-valued indexed category in
[Jac99a]'s sense, whose maps are the semantic face of weakening
(the functor "which adds an extra dummy" variable, in the book's own
gloss).
Equations
- One or more equations did not get rendered due to their size.
Instances For
The state fibers as a presheaf on the poset of bases: the powerset
functor applied fiberwise to the possibilities — by definition, in this
formulation. The fiber over X is Set (W × (↑X → M)); restriction is
direct image along weakening.
Equations
- DynamicSemantics.State.presheaf W M V = (DynamicSemantics.possibilities W M V).comp (CategoryTheory.ofTypeFunctor Set)
Instances For
Gluing and Beck–Chevalley #
possibilities sends each square of the context lattice to a pullback
(possibilities_glue), so quantification and weakening cohere: the
existential legs (Set.image, which is State.presheaf's own action)
commute with reindexing (Set.preimage) across the square
(possibilities_beck_chevalley). Together with mathlib's
Set.image_subset_iff (∃ ⊣ weakening), Set.preimage_kernImage
(weakening ⊣ ∀), and Set.image_inter_preimage (Frobenius), the
fibers form a hyperdoctrine over the context lattice ([Law69b],
[Jac99a]).
The action of possibilities on a lattice inequality, elementwise.
Possibilities glue: a pair of possibilities over X and Y whose
weakenings to X ⊓ Y agree is jointly the weakening of a unique
possibility over X ⊔ Y — possibilities sends the lattice square to a
pullback of types. The piecewise witness is Possibility.union in the charts of
Possibility.domainEquiv.
Beck–Chevalley for the context-lattice square: existential image
along X ⊓ Y ≤ X then weakening to Y is weakening to X ⊔ Y then
existential image along Y ≤ X ⊔ Y — quantifying and reindexing
commute. The image legs are State.presheaf's own action on the
square's arrows.
The Grothendieck total #
Classify each element of the possibilities family as a point: on
objects this is Possibility.domainEquiv; arrows become descents, by
Possibility.le_iff_eq_restrict.
Equations
- One or more equations did not get rendered due to their size.
Instances For
The Grothendieck total of the possibilities family is the point type: the category of elements is equivalent to the opposite of the descent preorder on points — every point lies over its own domain.