Documentation

Linglib.Semantics.Dynamic.DRS.Category

DRT's category of contexts #

Well-formed DRSs are the morphisms of a category whose objects are contexts (bases of discourse referents): a morphism X ⟶ Y is a DRS whose free referents are supplied by X (the referential presupposition), whose occurring referents are visible — declared in the context or introduced by the DRS itself — and whose introductions are fresh for the context, growing X to Y. Composition is merge; identity is the empty DRS.

The visibility invariant is what makes composition unconditional: it derives the Merging Lemma's capture-freshness side condition, so merge needs no hypotheses here. Interpretation (Ctx.sem) is then an identity-on-objects functor into the semantic category of contexts DynamicSemantics.Ctx, and its functoriality on composition is the Merging Lemma (DRS.transition_merge).

"Category of contexts" is the field's name for this structure: it is a syntactic category in the sense of categorical logic (objects are contexts — declarations of variables, type theory's bases, cf. [Vis98] — and arrows are syntax), and the diachronic information ordering of [VV96]'s bracketing approach, in which contexts under merge form a category ([MvBV11]'s m-categories). DRT.Ctx and DynamicSemantics.Ctx name the two levels of DRT's architecture, not rival theories: DRT's distinctive representation level, where contexts compose by merging boxes, and the framework-neutral semantic level, where they compose transitions relationally — the level other dynamic frameworks interpret into as well.

Main definitions #

References #

structure DRT.Ctx (L : FirstOrder.Language) (V : Type w) :

An object of DRT's category of contexts: a base of discourse referents available in the context.

  • base : Finset V

    The available discourse referents.

Instances For
    theorem DRT.Ctx.ext {L : FirstOrder.Language} {V : Type w} {x y : Ctx L V} (base : x.base = y.base) :
    x = y
    theorem DRT.Ctx.ext_iff {L : FirstOrder.Language} {V : Type w} {x y : Ctx L V} :
    x = y x.base = y.base
    structure DRT.Ctx.Hom {L : FirstOrder.Language} {V : Type w} [DecidableEq V] (X Y : Ctx L V) :
    Type (max v w)

    A morphism X ⟶ Y: a DRS whose free referents are supplied by X, whose occurring referents are visible, and whose fresh introductions grow X to Y.

    • drs : DRS L V

      The underlying DRS.

    • presup : self.drs.fvX.base

      The referential presupposition: free referents are supplied by the context.

    • occ_le : Condition.occL self.drs.conditionsX.base self.drs.referents

      Visibility: every occurring referent is contextual or introduced.

    • fresh : Disjoint X.base self.drs.referents

      Introductions are fresh for the context.

    • target : X.base self.drs.referents = Y.base

      The context grows by the introduced referents.

    Instances For
      theorem DRT.Ctx.Hom.ext_iff {L : FirstOrder.Language} {V : Type w} {inst✝ : DecidableEq V} {X Y : Ctx L V} {x y : X.Hom Y} :
      x = y x.drs = y.drs
      theorem DRT.Ctx.Hom.ext {L : FirstOrder.Language} {V : Type w} {inst✝ : DecidableEq V} {X Y : Ctx L V} {x y : X.Hom Y} (drs : x.drs = y.drs) :
      x = y
      @[implicit_reducible]
      instance DRT.Ctx.instCategory {L : FirstOrder.Language} {V : Type w} [DecidableEq V] :
      CategoryTheory.Category.{max v w, w} (Ctx L V)
      Equations
      • One or more equations did not get rendered due to their size.
      @[simp]
      theorem DRT.Ctx.drs_id {L : FirstOrder.Language} {V : Type w} [DecidableEq V] (X : Ctx L V) :
      (CategoryTheory.CategoryStruct.id X).drs = DRS.empty
      @[simp]
      theorem DRT.Ctx.drs_comp {L : FirstOrder.Language} {V : Type w} [DecidableEq V] {X Y Z : Ctx L V} (u : X Y) (v : Y Z) :
      (CategoryTheory.CategoryStruct.comp u v).drs = u.drs.merge v.drs
      def DRT.Ctx.sem {L : FirstOrder.Language} {V : Type w} [DecidableEq V] (W : Type u_1) (M : Type u_2) [L.Structure M] [Nonempty M] :
      CategoryTheory.Functor (Ctx L V) (DynamicSemantics.Ctx W M V)

      Interpretation is a functor: a model of L sends DRT's category of contexts to the semantic one, identically on objects and a DRS to its transition — and functoriality on composition is the Merging Lemma, its capture-freshness side condition derived from the visibility invariant.

      Equations
      • One or more equations did not get rendered due to their size.
      Instances For