Documentation

Studies.KaoBergenEtAl2014

Kao, Bergen and Goodman (2014): Formalizing the Pragmatics of Metaphor Understanding #

Kao, Bergen and Goodman model metaphor on the RSA kernel pipeline. A meaning pairs a category, the animal named or a person, with a vector of three features. The literal listener conditions the prior on the category named, a speaker whose goal is to communicate one feature is informative about that feature's value (eqs. 1 and 2), and the pragmatic listener marginalizes the goal. John is a shark can then convey scariness to a listener who does not believe John a shark.

Main results #

Implementation notes #

References #

A referent is either the animal named or a person.

Instances For
    @[instance_reducible]
    Equations
    def KaoBergenEtAl2014.instReprCat.repr :
    Cat → ℕ → Std.Format
    Equations
    • One or more equations did not get rendered due to their size.
    Instances For
      @[instance_reducible]
      Equations
      @[reducible, inline]

      The three features of the paper's example, each present or absent.

      Equations
      Instances For
        @[reducible, inline]

        A meaning pairs the category with the feature vector.

        Equations
        Instances For

          A goal names the feature to communicate, g_i(f) = f_i.

          Instances For
            @[instance_reducible]
            Equations
            def KaoBergenEtAl2014.instReprGoal.repr :
            Goal → ℕ → Std.Format
            Equations
            • One or more equations did not get rendered due to their size.
            Instances For
              @[instance_reducible]
              Equations
              • One or more equations did not get rendered due to their size.
              @[instance_reducible]
              Equations

              The value of the goal's feature.

              Equations
              Instances For
                def KaoBergenEtAl2014.project (g : Goal) (m : Meaning) :
                Bool

                The projection of a goal (eq. 1) reads the goal's feature and ignores the category.

                Equations
                Instances For

                  An utterance is true of the meanings whose category it names.

                  Equations
                  Instances For
                    noncomputable def KaoBergenEtAl2014.L0 (μ : MeasureTheory.Measure Meaning) :
                    ProbabilityTheory.Kernel Cat Meaning

                    The literal listener conditions the prior on the category named.

                    Equations
                    Instances For
                      instance KaoBergenEtAl2014.instIsFiniteKernelCatMeaningL0 (μ : MeasureTheory.Measure Meaning) :
                      ProbabilityTheory.IsFiniteKernel (L0 μ)
                      noncomputable def KaoBergenEtAl2014.S1 (μ : MeasureTheory.Measure Meaning) (α : ℝ) (p : Meaning × Goal) :
                      MeasureTheory.Measure Cat

                      The goal-indexed speaker (eq. 2) knows the value of her goal's feature and is informative about the literal listener's belief about it (eq. 1), at rationality α and no utterance cost.

                      Equations
                      Instances For
                        instance KaoBergenEtAl2014.instIsFiniteMeasureCatS1 (μ : MeasureTheory.Measure Meaning) (α : ℝ) (p : Meaning × Goal) :
                        MeasureTheory.IsFiniteMeasure (S1 μ α p)
                        noncomputable def KaoBergenEtAl2014.L1 (μ : MeasureTheory.Measure Meaning) [MeasureTheory.IsProbabilityMeasure μ] (ν : MeasureTheory.Measure Goal) [MeasureTheory.IsProbabilityMeasure ν] (α : ℝ) :
                        ProbabilityTheory.Kernel Cat (Meaning × Goal)

                        The pragmatic listener over meaning and goal inverts the speaker against the product of the meaning prior and the goal prior; its first marginal is the meaning listener.

                        Equations
                        Instances For
                          theorem KaoBergenEtAl2014.speaker_odds (μ : MeasureTheory.Measure Meaning) (α : ℝ) (g : Goal) (m : Meaning) :
                          (S1 μ α (m, g)) {Cat.animal} * (((L0 μ).map (project g)) Cat.person) {project g m} ^ α = (S1 μ α (m, g)) {Cat.person} * (((L0 μ).map (project g)) Cat.animal) {project g m} ^ α

                          The speaker's odds for naming the animal rather than the person are the α-th power of the odds of the goal's feature value under the animal against the person.

                          theorem KaoBergenEtAl2014.names_animal_iff (μ : MeasureTheory.Measure Meaning) (α : ℝ) (g : Goal) (m : Meaning) (hα : 0 < α) (h0 : ∃ (u : Cat), (((L0 μ).map (project g)) u) {project g m} ≠ 0) :
                          (S1 μ α (m, g)).real {Cat.person} < (S1 μ α (m, g)).real {Cat.animal} ↔ (((L0 μ).map (project g)) Cat.person) {project g m} < (((L0 μ).map (project g)) Cat.animal) {project g m}

                          The speaker names the animal rather than the person exactly when the goal's feature value is likelier under the animal than under the person.

                          theorem KaoBergenEtAl2014.listener_ne_zero_iff (μ : MeasureTheory.Measure Meaning) [MeasureTheory.IsProbabilityMeasure μ] (ν : MeasureTheory.Measure Goal) [MeasureTheory.IsProbabilityMeasure ν] (α : ℝ) (hα : 0 < α) (u : Cat) (m : Meaning) :
                          ((L1 μ ν α) u).fst {m} ≠ 0 ↔ μ {m} ≠ 0 ∧ ∃ (g : Goal), ν {g} ≠ 0 ∧ ∃ (m' : Meaning), g.feature m'.2 = g.feature m.2 ∧ m'.1 = u ∧ μ {m'} ≠ 0

                          A meaning is a possible interpretation of an utterance exactly when it has positive prior and some goal of positive prior has a feature value it shares with a meaning of positive prior bearing the category named.

                          theorem KaoBergenEtAl2014.nonliteral (μ : MeasureTheory.Measure Meaning) [MeasureTheory.IsProbabilityMeasure μ] (ν : MeasureTheory.Measure Goal) [MeasureTheory.IsProbabilityMeasure ν] (α : ℝ) (hα : 0 < α) {g : Goal} (hν : ν {g} ≠ 0) {f f' : Features} (hp : μ {(Cat.person, f)} ≠ 0) (ha : μ {(Cat.animal, f')} ≠ 0) (hf : g.feature f' = g.feature f) :
                          ((L1 μ ν α) Cat.animal).fst {(Cat.person, f)} ≠ 0

                          A person with the goal's feature value is a possible, nonliteral meaning of the animal's name whenever some animal of positive prior shares the value.

                          theorem KaoBergenEtAl2014.category_odds (μ : MeasureTheory.Measure Meaning) [MeasureTheory.IsProbabilityMeasure μ] (ν : MeasureTheory.Measure Goal) [MeasureTheory.IsProbabilityMeasure ν] (α : ℝ) (u c c' : Cat) (f : Features) :
                          ((L1 μ ν α) u).fst {(c, f)} * μ {(c', f)} = ((L1 μ ν α) u).fst {(c', f)} * μ {(c, f)}

                          Category inference is prior-driven. Since a goal projects the category away, the speaker behaves alike at the animal and at the person with the same features, and the listener's posterior odds between the two categories at a feature vector are their prior odds.