The presheaf of basic DRSs #
This file defines the presheaf of basic discourse representation structures on the category of
contexts: at a context (L, X) its sections are the consistent finite sets of literals over the
context, and restriction along a context morphism f is substitution-preimage,
F(f)(s) ⊢ ±A(x̄) ⟺ s ⊢ ±A(f(x̄)). A section s at (L, X) is the basic DRS (X, s), which
Theory.toDRS realises as a DRS whose conditions are literals.
Main definitions #
DRT.Theory: consistent finite sets of literals over a context, withTheory.restrict.DRT.presheaf: the presheaf(Context L V)ᵒᵖ ⥤ Type.DRT.Condition.IsLiteral,DRT.DRS.IsBasic: literal conditions and basic DRSs.DRT.Theory.toDRS: the basic DRS of a section.
Main statements #
DRT.Theory.isBasic_toDRS: sections realise as basic DRSs.
References #
A consistent finite set of literals over a context — a basic DRS's conditions, whose deductive closure adds no literals.
- lits : Finset (Literal c)
The literals held true.
No literal occurs with both signs.
Instances For
A literal condition: an atom, or the negation of a one-atom box with no referents.
Equations
- (DRT.Condition.rel R args).IsLiteral = True
- (DRT.Condition.neg K).IsLiteral = (K.referents = ∅ ∧ ∃ (n : ℕ) (R : L.Relations n) (args : Fin n → V), K.conditions = [DRT.Condition.rel R args])
- x✝.IsLiteral = False
Instances For
A basic DRS: every condition is a literal.
Equations
- K.IsBasic = ∀ d ∈ K.conditions, d.IsLiteral
Instances For
Equations
- DRT.Theory.instBot = { bot := { lits := ∅, consistent := ⋯ } }
The basic DRS (X, s) of a section: the context's referents with the literals as
conditions.
Equations
Instances For
Equations
- x✝¹.instDecidableEq x✝ = decidable_of_iff (x✝¹.lits = x✝.lits) ⋯
Restriction along a context morphism: F(f)(s) ⊢ ±A(x̄) ⟺ s ⊢ ±A(f(x̄)).
Equations
- DRT.Theory.restrict f s = { lits := {l : DRT.Literal c | DRT.Literal.map f l ∈ s.lits}, consistent := ⋯ }
Instances For
The presheaf of basic DRSs: theories at each context, restriction along context morphisms.
Equations
- One or more equations did not get rendered due to their size.