Contexts, renamings, and literals #
This file defines the category of contexts of discourse representation theory in its sheaf-theoretic reading: a context is a finite vocabulary of relation symbols together with a finite set of discourse referents, and a morphism is an inclusion of vocabularies with a map of referents — a relabelling, an inclusion, or an identification of referents. Literals over a context are signed atoms; they rename covariantly along context morphisms, and each one is a DRS-condition.
This is the substitution category on contexts, complementary to the extension category DRT.Ctx
whose morphisms are DRSs composed by merge: Ctx grows a context by introducing referents,
Context maps referents between contexts.
Main definitions #
DRT.Context,DRT.Context.Hom: contexts(L, X)and their morphisms, aCategory.DRT.Literal: literals±A(x̄)over a context, withLiteral.map(renaming),Literal.neg, decidable equality and finiteness.DRT.Literal.toCondition: a literal as a DRS-condition — an atom, or a negated one-atom box.
Main statements #
DRT.Literal.toCondition_map: renaming a literal along a context morphism isCondition.mapalong any extension of the morphism to the referent type.
References #
A context (L, X): a finite vocabulary of relation symbols and a finite set of referents.
- vocab : Finset ((n : ℕ) × L.Relations n)
The vocabulary.
- vars : Finset V
The referents.
Instances For
Equations
- One or more equations did not get rendered due to their size.
The literal as a DRS-condition: an atom, or for a negative literal the negation of the one-atom box with no referents.
Equations
- One or more equations did not get rendered due to their size.
Instances For
Renaming a literal along f is Condition.map along any extension of f to the
referent type.
Equations
- DRT.instFintypeLiteral c = Fintype.ofEquiv ((r : ↥c.vocab) × (Fin (↑r).fst → ↥c.vars) × Bool) (DRT.Literal.equivSigma c).symm