Documentation

Linglib.Theories.Pragmatics.RSA.Extensions.LexicalUncertainty.Compositional

Compositional Lexical Uncertainty for Embedded Implicatures #

Architecture #

This extends lexical uncertainty to handle compositional utterances. Instead of refining whole-utterance meanings, we refine atomic lexical items and then compose meanings via Boolean connectives.

Innovation (@cite{bergen-levy-goodman-2016}, Section 5) #

For compositional LU:

  1. Atomic utterances have refinable meanings in the lexicon
  2. Complex utterances are composed via ∨, ∧, ¬
  3. Refinement operates BEFORE composition

This derives non-convex disjunctive implicatures:

Hurford-Violating Disjunctions #

When one disjunct entails the other (e.g., "some or all"), standard semantics predicts no difference from the weaker disjunct. But:

Compositional LU derives this by tracking which refinements are available.

Relationship to RSAConfig and PottsEtAl2016 #

The CompLUScenario type is conceptually subsumed by RSAConfig with Latent := Lexicon. The @cite{potts-etal-2016} study uses this standard mechanism to derive embedded SI predictions (DE blocking, UE enrichment) without the compositional utterance infrastructure here.

This file is retained for:

inductive CompUtt (Atom : Type) :

Compositional utterances built from atomic items and Boolean connectives.

This represents the syntactic structure that feeds into compositional semantics.

Instances For
    instance instBEqCompUtt {Atom✝ : Type} [BEq Atom✝] :
    BEq (CompUtt Atom✝)
    Equations

    Infix notation for disjunction

    Equations
    Instances For

      Infix notation for conjunction

      Equations
      Instances For

        Prefix notation for negation

        Equations
        Instances For
          def CompUtt.atoms {Atom : Type} :
          CompUtt AtomList Atom

          Extract all atomic items from a compositional utterance

          Equations
          Instances For
            def CompUtt.complexity {Atom : Type} :
            CompUtt Atom

            Count the complexity (number of connectives)

            Equations
            Instances For
              structure AtomicLexicon (Atom World : Type) :

              An atomic lexicon maps atomic utterances to Boolean meanings.

              This is the refinable part of the lexicon.

              • meaning : AtomWorldBool

                Meaning of each atomic item

              Instances For
                def AtomicLexicon.interpret {A W : Type} (L : AtomicLexicon A W) :
                CompUtt AWBool

                Compose meanings of complex utterances from atomic meanings

                Equations
                Instances For
                  def AtomicLexicon.refines {A W : Type} (L' L : AtomicLexicon A W) :

                  Check if one atomic lexicon refines another

                  Equations
                  Instances For
                    structure CompLUScenario :

                    Compositional Lexical Uncertainty Scenario.

                    Extends LU to handle compositional utterances where:

                    • Atomic items have refinable meanings
                    • Complex meanings are composed via Boolean connectives
                    Instances For

                      Worlds for a 3-point scale (one, two, three).

                      Instances For
                        inductive NumeralAtom :

                        Atomic utterances for numerals.

                        Instances For
                          Equations
                          Instances For

                            Base semantics for numerals: lower-bound (at-least) reading.

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

                              Generate all valid refinements of the numeral lexicon.

                              For "one": can refine to {1}, {2}, {3}, {1,2}, {1,3}, {2,3}, {1,2,3} For "two": can refine to {2}, {3}, {2,3} For "three": only {3} (already maximally specific)

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

                                Build scenario for non-convex disjunction implicatures.

                                Compares "one or two" vs "one or three".

                                Equations
                                • One or more equations did not get rendered due to their size.
                                Instances For
                                  def entails (S : CompLUScenario) (u₁ u₂ : CompUtt S.Atom) :

                                  Check if one utterance semantically entails another under base semantics.

                                  Equations
                                  Instances For

                                    Hurford's constraint: a disjunction is odd if one disjunct entails the other.

                                    "#Some or all of the students passed" violates Hurford because "all" ⊆ "some". But such sentences ARE felicitous and have ignorance implicatures!

                                    Equations
                                    Instances For

                                      Structure for tracking embedded implicature predictions.

                                      This connects to Potts et al.'s "An experimental investigation of embedded scalar implicatures".

                                      • context : String

                                        The embedding context (e.g., negation, conditional)

                                      • scalarItem : String

                                        The scalar item

                                      • localAvailable : Bool

                                        Whether local (embedded) reading is available

                                      • globalAvailable : Bool

                                        Whether global reading is available

                                      • preferLocal : Option Bool

                                        Predicted preference (local vs global)

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

                                          Compositional LU predictions for various embedding contexts.

                                          Key prediction: Local readings are available when the asymmetry in lexical refinements makes them pragmatically useful.

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