Documentation

Linglib.Theories.Pragmatics.RSA.Implementations.Franke2011

Interpretation game (Franke §6): states are equivalence classes over alternative truth patterns.

Instances For

    States where message m is true

    Equations
    Instances For

      Messages true at state s

      Equations
      Instances For

        Informativity of a message (reciprocal of true states, as ratio)

        Equations
        Instances For

          A hearer strategy: P(state | message)

          Instances For

            A speaker strategy: P(message | state)

            Instances For

              Uniform distribution over states where m is true

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

                Support of hearer's response to message m

                Equations
                Instances For

                  Support of speaker's choice at state s

                  Equations
                  Instances For

                    Best response speaker: choose messages that maximize hearer success

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

                      Best response speaker always gives non-negative probabilities.

                      theorem RSA.IBR.SpeakerStrategy.bestResponse_false_zero (G : InterpGame) (H : HearerStrategy G) (s : G.State) (m : G.Message) (hFalse : G.meaning m s = false) :
                      (bestResponse G H).choose s m = 0

                      Best response speaker gives zero probability to false messages.

                      Best response speaker probabilities sum to at most 1 at any state.

                      For states with at least one true message, this is exactly 1 (uniform over optimal). For states with no true messages, this is 0.

                      L₀: Literal listener (Franke Def. 22)

                      Equations
                      Instances For

                        Hearer update: Given speaker strategy, compute posterior.

                        L_{n+1}(s | m) ∝ S_n(m | s) · P(s)

                        This is Bayes' rule with the speaker strategy as likelihood.

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

                          Speaker update: Best response to hearer strategy.

                          S_{n+1}(m | s) = argmax_m L_n(s | m)

                          Uniform over optimal messages.

                          Equations
                          Instances For

                            One full IBR iteration step

                            Equations
                            Instances For

                              IBR reasoning for n iterations starting from L₀

                              Equations
                              Instances For

                                S₁: First pragmatic speaker

                                Equations
                                Instances For

                                  L₂: First pragmatic listener

                                  Equations
                                  Instances For

                                    Check if hearer strategy is a fixed point of IBR

                                    Equations
                                    Instances For
                                      theorem RSA.IBR.fp_respond_nonneg (G : InterpGame) (H : HearerStrategy G) (hFP : isIBRFixedPoint G H) (hPriorNonneg : ∀ (s : G.State), G.prior s 0) (m : G.Message) (s : G.State) :
                                      H.respond m s 0

                                      At a fixed point with non-negative priors, H.respond is non-negative.

                                      This follows from the fact that H = ibrStep G H, and ibrStep uses hearerUpdate which gives non-negative values when priors are non-negative.

                                      The pragmatic interpretation: support of the IBR fixed point listener

                                      Equations
                                      Instances For
                                        noncomputable def RSA.IBR.expectedGain (G : InterpGame) (S : SpeakerStrategy G) (H : HearerStrategy G) :

                                        EG(S, R) = Σ_t Pr(t) × Σ_m S(t,m) × R(m,t): expected communication success.

                                        Equations
                                        Instances For
                                          theorem RSA.IBR.eg_speaker_improvement (G : InterpGame) (S_old S_new : SpeakerStrategy G) (H : HearerStrategy G) (hBR : S_new = SpeakerStrategy.bestResponse G H) :
                                          expectedGain G S_old H expectedGain G S_new H

                                          Lemma 3a: best-response speaker improves EG.

                                          theorem RSA.IBR.eg_hearer_improvement (G : InterpGame) (S : SpeakerStrategy G) (H_old H_new : HearerStrategy G) (hBR : H_new = hearerUpdate G S) :
                                          expectedGain G S H_old expectedGain G S H_new

                                          Lemma 3b: Bayesian hearer update improves EG.

                                          theorem RSA.IBR.eg_bounded (G : InterpGame) (S : SpeakerStrategy G) (H : HearerStrategy G) (hPriorSum : Finset.univ.sum G.prior = 1) (hPriorNonneg : ∀ (s : G.State), G.prior s 0) :

                                          Expected gain is bounded above by 1 (probability of perfect communication).

                                          Theorem 3: IBR converges. EG is monotone increasing and bounded ⟹ fixed point.

                                          Number of messages the speaker uses at state t (|S(t)|).

                                          Equations
                                          Instances For
                                            theorem RSA.IBR.fp_prefers_fewer_options (G : InterpGame) (H : HearerStrategy G) (hFP : isIBRFixedPoint G H) (hFlatPrior : ∀ (t₁ t₂ : G.State), G.prior t₁ = G.prior t₂) (hPriorPos : ∀ (t : G.State), G.prior t > 0) (m : G.Message) (t₁ t₂ : G.State) (ht₁ : G.meaning m t₁ = true) (ht₂ : G.meaning m t₂ = true) :
                                            have S := speakerUpdate G H; H.respond m t₁ > H.respond m t₂ speakerOptionCount G S t₁ < speakerOptionCount G S t₂

                                            At the fixed point with flat priors, fewer speaker options ↔ higher hearer probability (eq. 131).

                                            Best-response speaker uses ⊆ true messages, so speakerOptionCount ≤ |trueMessages|.

                                            IBR = EXH (Franke Main Result) #

                                            @cite{franke-2011} @cite{spector-2016}

                                            The key insight of @cite{franke-2011} is that IBR reasoning yields exactly the same interpretation as exhaustive interpretation (exhMW).

                                            Theorem (@cite{franke-2011}, Section 9.3): For an interpretation game G, the IBR fixed point listener's support for message m equals the set of minimal m-worlds relative to the alternative ordering.

                                            In notation: support(L∞(· | m)) = exhMW(ALT, m)

                                            This connects game-theoretic pragmatics to grammatical exhaustification.

                                            Results from Section 10 and Appendix A #

                                            Equation (107): R₁ characterization R₁(m) = {t ∈ ⟦m⟧ | ¬∃t′ ∈ ⟦m⟧ : |R⁻¹₀(t′)| < |R⁻¹₀(t)|}

                                            This selects states where fewest alternatives are true.

                                            Fact 1 (Section 10): R₁(mₛ) ⊆ ExhMM(S) Under "homogeneity" of alternatives, R₁(mₛ) = ExhMM(S).

                                            Fact 3 (Appendix A): ExhMM(S, Alt) ⊆ ExhIE(S, Alt)

                                            Fact 4 (Appendix A): ExhMM = ExhIE when Alt satisfies closure conditions.

                                            Convert interpretation game to alternative set for exhaustification. Converts Bool meaning to Prop' by using equality with true.

                                            Equations
                                            Instances For

                                              The prejacent proposition for a message (Bool → Prop conversion)

                                              Equations
                                              Instances For

                                                Number of alternatives (messages) true at state s. This is |R⁻¹₀(s)| in Franke's notation.

                                                Equations
                                                Instances For

                                                  A state s is minimal among m-worlds if no m-world has fewer true alternatives. This characterizes R₁(m) per equation (107).

                                                  Equations
                                                  Instances For
                                                    noncomputable def RSA.IBR.minAltCountStates (G : InterpGame) (m : G.Message) :

                                                    States with minimum alternative count among m-worlds.

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

                                                      Key lemma: s' <_ALT s implies trueMessages s' ⊂ trueMessages s.

                                                      This is the bridge between the <_ALT ordering and alternative counting.

                                                      Franke Fact 1 (containment direction): Level-1 receiver interpretation is contained in minimal-models exhaustification.

                                                      R₁(mₛ) ⊆ ExhMM(S)

                                                      Proof idea: If s is selected by R₁ (minimum alternative count), then s is minimal with respect to <_ALT because:

                                                      • s' <_ALT s means s' makes strictly fewer alternatives true
                                                      • But R₁ already selected for minimum alternative count
                                                      • So no such s' can exist among m-worlds

                                                      This is the containment direction; equality requires "homogeneity".

                                                      theorem RSA.IBR.trueMessages_injective_of_homogeneous (G : InterpGame) (hGame : ∀ (s₁ s₂ : G.State), (∀ (m' : G.Message), G.meaning m' s₁ = G.meaning m' s₂)s₁ = s₂) (s' s : G.State) (heq : G.trueMessages s' = G.trueMessages s) :
                                                      s' = s

                                                      Under homogeneity, trueMessages determines states uniquely. This means: trueMessages s' = trueMessages s → s' = s

                                                      theorem RSA.IBR.trueMessages_ssubset_implies_ltALT (G : InterpGame) (_hGame : ∀ (s₁ s₂ : G.State), (∀ (m' : G.Message), G.meaning m' s₁ = G.meaning m' s₂)s₁ = s₂) (s' s : G.State) (hss : G.trueMessages s' G.trueMessages s) :

                                                      Under homogeneity, strict subset of trueMessages implies <_ALT. Note: hGame is not actually used in this proof, but kept for consistency.

                                                      Franke Fact 1: R₁ ⊆ ExhMW (containment, not equality).

                                                      This is the main soundness result: if s is selected by IBR level-1 reasoning (has minimum alternative count among m-worlds), then s is in ExhMW.

                                                      Why not equality? Franke notes (Section 10): "The reverse, however, is not necessarily the case: it may well be that two worlds w, v ∈ S are both minimal with respect to <_ALT, while w makes more alternatives true than v."

                                                      In other words:

                                                      • R₁ selects states with minimum |{A : A(s)}| among m-worlds
                                                      • ExhMW selects states minimal in <_ALT (subset ordering on alternatives)
                                                      • Minimum cardinality ⟹ minimal in subset ordering ✓
                                                      • Minimal in subset ordering ⟹ minimum cardinality ✗

                                                      For equality, we'd need <_ALT to be total on m-worlds (a "chain" structure). This is a stronger condition that doesn't always hold.

                                                      The alternative ordering is total on m-worlds if for any two states where m is true, one's true alternatives are a subset of the other's.

                                                      This "chain condition" ensures that minimal cardinality ⟺ minimal in <_ALT.

                                                      When does this hold?

                                                      • When alternatives form a linear scale (e.g., ⟨some, most, all⟩)
                                                      • When alternatives are conjunctive closures of simpler alternatives
                                                      • When states are defined as equivalence classes by alternative patterns

                                                      When does this fail?

                                                      • When alternatives can be true independently (e.g., "red" and "tall")
                                                      • When the alternative space has incomparable elements
                                                      Equations
                                                      Instances For

                                                        Converse direction under totality: ExhMW ⊆ R₁.

                                                        When <_ALT is total on m-worlds, minimal in the subset ordering implies minimum cardinality.

                                                        R₁ = ExhMW under totality: Full equivalence when alternatives form a chain.

                                                        This is the precise condition under which Franke's Fact 1 becomes an equality.

                                                        Franke Fact 3 (Appendix A): ExhMW(S, Alt) ⊆ ExhIE(S, Alt)

                                                        This is the easier direction: minimal-models is always at least as strong as innocent exclusion.

                                                        Proof (from Franke Appendix A): If w ∈ ExhMM(S, Alt), then w is minimal w.r.t. <Alt in S. This means w makes a maximal set of alternatives false. So there exists A ∈ Max-CE(S, Alt) with w ∈ S ∧ ⋀{a∈A}¬a. Since IE = ⋂ Max-CE, w satisfies all propositions in IE. Hence w ∈ ExhIE(S, Alt).

                                                        This is already proved as prop6_exhMW_entails_exhIE in Exhaustivity/Basic.lean.

                                                        Franke Fact 4 (Appendix A): ExhMW = ExhIE when Alt is closed under ∧.

                                                        This is Spector's Theorem 9, referenced by Franke in Appendix A.

                                                        Condition: For all w, w' ∈ ExhMM(S, Alt), there exists A ∈ Alt such that A(w) ∧ A(w') entails A.

                                                        When Alt is closed under conjunction, this condition holds automatically because we can take A = A(w) ∧ A(w').

                                                        This is proved as theorem9_main in Exhaustivity/Basic.lean.

                                                        IBR fixed point equals exhMW (Main theorem - @cite{franke-2011}, Section 9.3)

                                                        This is the central result connecting game theory to exhaustification. At the fixed point, the IBR listener's interpretation of message m is exactly the exhaustive interpretation exhMW(ALT, m).

                                                        Proof Strategy:

                                                        1. Non-minimal states eliminated: If s is non-minimal (∃s' < s with m(s')), then at s', there's a message m' true at s' but not at s (by definition of <). Message m' is more informative than m. So S_n prefers m' at s', leading to S_n(m|s') < 1. This propagates: L_{n+1}(s|m) decreases each iteration.

                                                        2. Minimal states preserved: If s is minimal among m-worlds, then at s, no "stronger" alternative is true, so m is optimal. S_n(m|s) = 1/|optimal|, and L_{n+1}(s|m) > 0 is maintained.

                                                        3. Convergence: By well-foundedness of < on finite sets, this stabilizes. The fixed point support equals the set of minimal m-worlds = exhMW.

                                                        Key Lemma: For any s in support(L_∞(·|m)):

                                                        • m(s) must be true (literal content)
                                                        • No s' < s can have m(s') true (minimality) This is exactly exhMW(ALT, m).
                                                        theorem RSA.IBR.ibr_fp_excludes_nonminimal (G : InterpGame) (H : HearerStrategy G) (hFP : isIBRFixedPoint G H) (hPriorNonneg : ∀ (s : G.State), G.prior s 0) (m : G.Message) (s : G.State) (_hs : G.meaning m s = true) (hNonMin : ∃ (s' : G.State), G.meaning m s' = true s' <[toAlternatives G] s) :
                                                        H.respond m s = 0

                                                        At the fixed point, IBR excludes non-minimal states.

                                                        Note: This is stated for the FIXED POINT listener, not L2 specifically. L2 alone doesn't necessarily exclude all non-minimal states; the full elimination happens through iteration to the fixed point.

                                                        theorem RSA.IBR.ibr_fp_keeps_minimal (G : InterpGame) (H : HearerStrategy G) (hFP : isIBRFixedPoint G H) (m : G.Message) (s : G.State) (hs : G.meaning m s = true) (hMin : ¬∃ (s' : G.State), G.meaning m s' = true s' <[toAlternatives G] s) (_hPriorPos : G.prior s > 0) :
                                                        H.respond m s > 0

                                                        At the fixed point, IBR keeps minimal states.

                                                        If s is minimal among m-worlds (no s' < s with m(s')), then the fixed point listener assigns positive probability to s given m.

                                                        RSA → IBR as α → ∞ #

                                                        RSA uses softmax instead of argmax:

                                                        As the rationality parameter α → ∞, softmax becomes argmax. This connects the probabilistic RSA model to the deterministic IBR model.

                                                        noncomputable def RSA.IBR.falseMessageScore (G : InterpGame) :

                                                        Floor score for false messages. Uses -log(|State|) - 1, which is always below the minimum possible log-informativity for any true message.

                                                        Equations
                                                        Instances For
                                                          noncomputable def RSA.IBR.rsaS1Real (G : InterpGame) (α : ) (s : G.State) :
                                                          G.Message

                                                          RSA S1 probability (real version for limit theorems).

                                                          RSA S1 is exactly softmax over log-informativity scores: rsaS1(m | s) = exp(α · log(inf(m))) / Σ exp(α · log(inf(m'))) = inf(m)^α / Σ inf(m')^α = softmax(log ∘ inf, α)(m)

                                                          Equations
                                                          Instances For

                                                            RSA S1 equals softmax over log-informativity.

                                                            This is the key observation: RSA speaker choice is softmax with scores = log(informativity of message).

                                                            theorem RSA.IBR.rsa_to_ibr_limit (G : InterpGame) [Nonempty G.Message] (s : G.State) (m : G.Message) (hTrue : G.meaning m s = true) (hUnique : ∀ (m' : G.Message), m' mG.meaning m' s = trueG.informativity m > G.informativity m') (hInfPos : 0 < G.informativity m) :
                                                            Filter.Tendsto (fun (α : ) => rsaS1Real G α s m) Filter.atTop (nhds 1)

                                                            As α → ∞, RSA S1 concentrates on optimal messages (IBR S1).

                                                            This follows directly from softmax_tendsto_hardmax:

                                                            • RSA S1 = softmax(log-informativity, α)
                                                            • As α → ∞, softmax → argmax
                                                            • argmax(log-informativity) = argmax(informativity) = IBR S1

                                                            The proof uses tendsto_softmax_infty_at_max from Limits.lean.

                                                            Scalar Implicature Example (Franke Section 3.1) #

                                                            The classic "some" vs "all" example:

                                                            IBR derivation:

                                                            States for scalar implicature example

                                                            Instances For
                                                              Equations
                                                              Instances For

                                                                Messages for scalar implicature example

                                                                Instances For
                                                                  Equations
                                                                  Instances For

                                                                    Scalar implicature interpretation game

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

                                                                      Free Choice Disjunction (Franke Section 3.3) #

                                                                      "You may have cake or ice cream" → You may have either one.

                                                                      States: {only-A, only-B, either, both} Messages: {◇A, ◇B, ◇(A∨B), ◇(A∧B)}

                                                                      The free choice inference emerges from IBR reasoning because:

                                                                      States for free choice example

                                                                      Instances For
                                                                        Equations
                                                                        Instances For

                                                                          Messages for free choice example

                                                                          Instances For

                                                                            Free choice interpretation game

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

                                                                              The Complete Chain #

                                                                              This section states the full limit theorem connecting RSA to EXH, combining:

                                                                              The Chain #

                                                                              RSA S1 (softmax)
                                                                                  │ α → ∞ [rsa_to_ibr_limit - PROVED]
                                                                                  ↓
                                                                              IBR S1 (argmax) = R₁
                                                                                  │ Fact 1 [r1_subset_exhMW] (@cite{franke-2011} Appendix A)
                                                                                  ↓
                                                                              ExhMW (minimal worlds)
                                                                                  │ Theorem 9 [fact4_exhMW_eq_exhIE_closed]
                                                                                  ↓
                                                                              ExhIE (innocent exclusion)
                                                                              

                                                                              Results #

                                                                              1. rsa_to_ibr_limit (proved above): RSA S1 → IBR S1 as α → ∞
                                                                              2. Fact 1 (r1_subset_exhMW): IBR R₁ ⊆ ExhMW (@cite{franke-2011} Appendix A)
                                                                              3. Fact 3 (fact3_exhMW_subset_exhIE): ExhMW ⊆ ExhIE (@cite{franke-2011} Appendix A)
                                                                              4. Theorem 9 (fact4_exhMW_eq_exhIE_closed): Under closure, ExhMW = ExhIE

                                                                              Combined: Under closure, lim_{α→∞} RSA = IBR = ExhMW = ExhIE

                                                                              Temperature Interpretation #

                                                                              RSA and EXH are the same rational principle at different "temperatures"

                                                                              theorem RSA.IBR.ibr_fp_equals_exhMW (G : InterpGame) (H : HearerStrategy G) (hFP : isIBRFixedPoint G H) (m : G.Message) (_hGame : ∀ (s₁ s₂ : G.State), (∀ (m' : G.Message), G.meaning m' s₁ = G.meaning m' s₂)s₁ = s₂) (s : G.State) :

                                                                              IBR fixed point equals exhMW (Main theorem - @cite{franke-2011}, Section 9.3)

                                                                              This combines:

                                                                              • Equation (107): R₁ selects states with minimum alternative count
                                                                              • Fact 1: Such states are exactly the minimal worlds

                                                                              At the fixed point, the IBR listener's interpretation of message m is exactly the exhaustive interpretation exhMW(ALT, m).

                                                                              When alternatives are closed under conjunction, ExhMW = ExhIE.

                                                                              This is Spector's Theorem 9, already proved in Exhaustivity/Basic.lean. We re-export it here for the chain.

                                                                              theorem RSA.IBR.ibr_fp_equals_exhIE (G : InterpGame) (H : HearerStrategy G) (hFP : isIBRFixedPoint G H) (m : G.Message) (hGame : ∀ (s₁ s₂ : G.State), (∀ (m' : G.Message), G.meaning m' s₁ = G.meaning m' s₂)s₁ = s₂) (hClosed : NeoGricean.Exhaustivity.closedUnderConj (toAlternatives G)) (s : G.State) :

                                                                              When alternatives are closed under conjunction, IBR = exhIE.

                                                                              This combines:

                                                                              • ibr_fp_equals_exhMW: IBR fixed point = exhMW
                                                                              • fact4_exhMW_eq_exhIE_closed: Under closure, exhMW = exhIE

                                                                              Combined: Under closure, IBR = exhMW = exhIE

                                                                              theorem RSA.IBR.rsa_to_exhMW_limit (G : InterpGame) [Nonempty G.Message] (m : G.Message) (s : G.State) (hTrue : G.meaning m s = true) (hMin : isMinimalByAltCount G m s) (hUnique : ∀ (m' : G.Message), m' mG.meaning m' s = trueG.informativity m > G.informativity m') (hInfPos : 0 < G.informativity m) :
                                                                              Filter.Tendsto (fun (α : ) => rsaS1Real G α s m) Filter.atTop (nhds 1)

                                                                              The grand unification: RSA → ExhMW as α → ∞.

                                                                              This combines:

                                                                              • rsa_to_ibr_limit: RSA S1 → IBR S1 as α → ∞
                                                                              • IBR fixed point = exhMW

                                                                              Therefore: lim_{α→∞} support(RSA.L1(α, m)) = exhMW(ALT, m)

                                                                              theorem RSA.IBR.rsa_to_exhIE_limit (G : InterpGame) [Nonempty G.Message] (m : G.Message) (s : G.State) (hTrue : G.meaning m s = true) (hMin : NeoGricean.Exhaustivity.exhIE (toAlternatives G) (prejacent G m) s) (hClosed : NeoGricean.Exhaustivity.closedUnderConj (toAlternatives G)) (hUnique : ∀ (m' : G.Message), m' mG.meaning m' s = trueG.informativity m > G.informativity m') (hInfPos : 0 < G.informativity m) :
                                                                              Filter.Tendsto (fun (α : ) => rsaS1Real G α s m) Filter.atTop (nhds 1)

                                                                              The full limit theorem: RSA → ExhIE under closure as α → ∞.

                                                                              This combines results from:

                                                                              • @cite{franke-2011}: RSA → IBR (softmax → argmax), IBR = exhMW (Appendix A)
                                                                              • @cite{spector-2007}: Iterated exhaustification
                                                                              • @cite{spector-2016}: Theorem 9 (exhMW = exhIE under closure)

                                                                              The chain:

                                                                              1. RSA S1 → IBR S1 as α → ∞ (softmax → argmax)
                                                                              2. IBR = exhMW (@cite{franke-2011} Appendix A, Fact 1)
                                                                              3. exhMW = exhIE under closure (@cite{spector-2016} Theorem 9)

                                                                              Therefore: Under closure, lim_{α→∞} RSA = exhIE

                                                                              Epistemic Readings (Franke Section 3.2) #

                                                                              Franke distinguishes three epistemic readings of scalar implicatures:

                                                                              1. Simple SI: "Some but not all" (most common)
                                                                              2. Weak epistemic: "The speaker doesn't know that all"
                                                                              3. Strong epistemic: "The speaker knows that not all"

                                                                              These arise from different assumptions about speaker competence:

                                                                              IBR naturally handles these by adjusting the state space.

                                                                              Speaker competence level (Franke Section 3.2)

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

                                                                                  Epistemic state: combines world state with speaker knowledge. Used for epistemic readings of scalar implicatures.

                                                                                  • actualWorld : S
                                                                                  • speakerKnowledge : Set S
                                                                                  Instances For

                                                                                    Build epistemic interpretation game from base game

                                                                                    Equations
                                                                                    Instances For