Documentation

Linglib.Pragmatics.RSA.Incremental

Incremental RSA: prefix meanings #

Incremental RSA ([CGGP19]) runs the pipeline word by word, so the literal listener needs the meaning of an utterance prefix. With the graded lexical semantics of [DHG+20] each word contributes a value in a commutative monoid and the prefix meaning is their product, treating words as independent constraints — the composition of [WD21] (ℚ-valued) and [SW23] (ℚ≥0-valued), an instance of the probabilistic turn surveyed in [erk-2022].

Main definitions #

Main results #

References #

def RSA.prodMeaning {U : Type u_1} {W : Type u_2} {R : Type u_3} [CommMonoid R] (lex : UWR) (us : List U) (w : W) :
R

The prefix meaning: the per-word lexicon composed multiplicatively over a token list, prodMeaning lex us w = (us.map (lex · w)).prod.

Equations
Instances For
    @[simp]
    theorem RSA.prodMeaning_nil {U : Type u_1} {W : Type u_2} {R : Type u_3} [CommMonoid R] (lex : UWR) (w : W) :
    prodMeaning lex [] w = 1
    @[simp]
    theorem RSA.prodMeaning_cons {U : Type u_1} {W : Type u_2} {R : Type u_3} [CommMonoid R] (lex : UWR) (u : U) (us : List U) (w : W) :
    prodMeaning lex (u :: us) w = lex u w * prodMeaning lex us w
    theorem RSA.prodMeaning_perm {U : Type u_1} {W : Type u_2} {R : Type u_3} [CommMonoid R] {lex : UWR} {us us' : List U} (h : us.Perm us') (w : W) :
    prodMeaning lex us w = prodMeaning lex us' w

    Any permutation of the token list yields the same meaning.

    theorem RSA.prodMeaning_nonneg {U : Type u_1} {W : Type u_2} {R : Type u_3} [CommMonoidWithZero R] [PartialOrder R] [ZeroLEOneClass R] [PosMulMono R] {lex : UWR} (h : ∀ (u : U) (w : W), 0 lex u w) (us : List U) (w : W) :
    0 prodMeaning lex us w