Documentation

Linglib.Semantics.Composition.LexEntry

Lexical Entry Types #

Typed lexical entries for compositional semantics, polymorphic over an effect functor M ([BC24b]): an entry's denotation is an M-computation over its denotation domain. Scope-takers live at M = Cont R, CI items at M = Writer P. The default M := Id recovers the pure [HK98] case, so every existing call site reads unchanged; effectful lexicons supply an explicit M.

structure Semantics.Montague.LexEntry (E W : Type) (M : TypeType := Id) :

A typed lexical entry whose denotation carries the effect M (default Id = pure H&K).

Instances For
    def Semantics.Montague.Lexicon (E W : Type) (M : TypeType := Id) :

    String-keyed lexicon of M-effectful entries (default Id).

    Equations
    Instances For
      def Semantics.Montague.Lexicon.lift {E W : Type} (M : TypeType) [Pure M] (lex : Lexicon E W) :
      Lexicon E W M

      Embed a pure lexicon into effect M by pure-lifting every entry.

      Equations
      Instances For