Documentation

Linglib.Theories.Pragmatics.NeoGricean.ScalarImplicatures.Basic

A scalar implicature derivation attempt.

Records whether the implicature arises and why/why not.

  • term : String

    The scalar term used

  • alternative : String

    The potential stronger alternative

  • The context polarity

  • alternativeIsStronger : Bool

    Does the alternative count as stronger in this context?

  • implicatureArises : Bool

    Does the implicature arise?

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

      Attempt to derive a scalar implicature.

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

        Example: "some" → "not all" in UE context

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

          Theorem: DE Blocks "Some → Not All"

          In UE context, the implicature arises. In DE context, the implicature is blocked.

          Two types of inferences from disjunction.

          1. Exclusivity (scalar): "A or B" → "not (A and B)" Derived from Horn set ⟨or, and⟩.

          2. Ignorance (non-scalar): "A or B" → "speaker doesn't know which" Derived from competence failure for individual disjuncts.

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

              Result of analyzing a disjunctive utterance.

              • statement : String

                The disjunctive statement

              • exclusivityArises : Bool

                Does exclusivity implicature arise?

              • ignoranceArises : Bool

                Does ignorance implicature arise?

              • compatible : Bool

                Can both arise together?

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

                  Analyze a simple disjunction in UE context.

                  Both exclusivity AND ignorance can arise together.

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

                    Theorem: Both Inferences Are Compatible

                    "A or B" can simultaneously implicate:

                    • "not both" (exclusivity)
                    • "speaker doesn't know which" (ignorance)

                    The long disjunction problem (Geurts p.61-64).

                    For "A or B or C", the alternatives are not just {A, B, C}. We need ALL conjunctive closures:

                    • Core: A, B, C
                    • Binary: A∧B, A∧C, B∧C
                    • Full: A∧B∧C

                    The substitution method (replacing "or" with "and") fails to generate all necessary alternatives for n > 2.

                    • disjuncts : List String

                      The disjuncts

                    • coreAlternatives : List String

                      Core alternatives (individual disjuncts)

                    • derivedAlternatives : List String

                      Derived alternatives (conjunctions)

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

                        Generate all binary conjunctions from a list.

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

                          Generate the full conjunction of all terms.

                          Equations
                          Instances For

                            Analyze a long disjunction, computing all alternatives.

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

                              Example: Three-way disjunction

                              "A or B or C" has alternatives:

                              • Core: A, B, C
                              • Derived: A∧B, A∧C, B∧C, A∧B∧C
                              Equations
                              Instances For

                                Theorem: Three-way disjunction has 3 core alternatives

                                Theorem: Three-way disjunction has 4 derived alternatives

                                The 4 derived alternatives are: A∧B, A∧C, B∧C, A∧B∧C

                                Theorem: Total alternatives for 3-way = 7

                                Core (3) + Derived (4) = 7 alternatives

                                The simple substitution method: replace "or" with "and".

                                For "A or B": substitute to get "A and B" ✓ For "A or B or C": substitute to get "A and B and C" ✓ But MISSES: "A and B", "A and C", "B and C" ✗

                                This is why we need closure under conjunction.

                                Equations
                                Instances For

                                  What substitution method produces vs what's needed.

                                  • n :

                                    Number of disjuncts

                                  • substitutionResult :

                                    What substitution gives

                                  • neededAlternatives :

                                    What's actually needed

                                  • substitutionSuffices : Bool

                                    Does substitution suffice?

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

                                      Compare substitution method to full closure.

                                      Equations
                                      Instances For

                                        Theorem: Substitution Works for n=2

                                        For "A or B", substitution gives "A and B" which is the only alternative.

                                        Theorem: Substitution Fails for n=3

                                        For "A or B or C", substitution gives 1 alternative but we need 4 (A∧B, A∧C, B∧C, A∧B∧C).

                                        Complete scalar implicature derivation result.

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

                                            Derive all scalar implicatures for a term.

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

                                              Example: Complete derivation for "some" in UE context

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

                                                Theorem: "some" in UE derives "not(most)" and "not(all)"

                                                Example: Complete derivation for "some" in DE context

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

                                                  Theorem: "some" in DE derives NO implicatures

                                                  Create a SentenceContext from a ContextPolarity.

                                                  Equations
                                                  Instances For

                                                    Derive scalar implicatures from a semantic derivation.

                                                    This is the key function that connects syntax to pragmatics:

                                                    1. Takes a SemDeriv.Derivation (produced by any syntax theory)
                                                    2. Extracts scalar items from the derivation
                                                    3. For each scalar item, derives implicatures based on its scale
                                                    4. Returns all derived implicatures

                                                    Syntax-agnostic: Works with CCG, HPSG, Minimalism, or any theory that implements the SemDeriv interface.

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

                                                      Check if any implicature in the results negates a given alternative.

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

                                                        Example: "some students sleep" via CCG

                                                        Using the CCG derivation from CCG/Interpret.lean:

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

                                                          Theorem: "some students sleep" derives "not(all)"

                                                          This is the key milestone theorem: starting from a semantic derivation (which could come from CCG), NeoGricean pragmatics derives "not all".

                                                          Theorem: "some students sleep" derives "not(most)" as well

                                                          Example: "every student sleeps" in UE

                                                          "every" is at the top of the quantifier scale, so no stronger alternatives.

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

                                                            Theorem: "every student sleeps" has no implicatures

                                                            Since "every/all" is the strongest quantifier, there are no stronger alternatives to negate.

                                                            Example: "some students sleep" in DE context

                                                            In a downward-entailing context (e.g., "No one thinks some students sleep"), the "not all" implicature is blocked.

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

                                                              Theorem: "some" in DE has no "not all" implicature

                                                              Downward-entailing contexts block the standard scalar implicature.

                                                              A Horn scale with semantic content.

                                                              The key property: stronger entails weaker but not vice versa. This asymmetry drives scalar implicatures via exhaustification.

                                                              • name : String

                                                                Name of the scale

                                                              • weakerTerm : String

                                                                The weaker scalar term (e.g., "some")

                                                              • strongerTerm : String

                                                                The stronger scalar term (e.g., "all")

                                                              • weaker : Prop' World

                                                                Semantic denotation of weaker term

                                                              • stronger : Prop' World

                                                                Semantic denotation of stronger term

                                                              • entailment : self.stronger ⊆ₚ self.weaker

                                                                Stronger entails weaker

                                                              • nonTrivial : ¬self.weaker ⊆ₚ self.stronger

                                                                Weaker does not entail stronger (non-trivial scale)

                                                              Instances For

                                                                Alternative set for a Horn scale: {weaker, stronger}.

                                                                Equations
                                                                Instances For

                                                                  Semantic structure for a Hurford configuration. Allows proving when exhaustification rescues the violation.

                                                                  Instances For

                                                                    A Hurford violation is rescued iff after exhaustifying the weaker disjunct, the entailment no longer holds.

                                                                    Since the structure tracks that either A⊆B or B⊆A, rescue means exhaustification breaks whichever entailment held.

                                                                    Equations
                                                                    Instances For

                                                                      For cases where B⊆A (stronger entails weaker), rescue requires exh(B) ⊄ A.

                                                                      This is the relevant check when the original entailment goes from B to A.

                                                                      Equations
                                                                      Instances For

                                                                        Semantic structure for Singh configurations.

                                                                        • weaker : Prop' World

                                                                          Weaker disjunct meaning

                                                                        • stronger : Prop' World

                                                                          Stronger disjunct meaning

                                                                        • entailment : self.stronger ⊆ₚ self.weaker

                                                                          Stronger entails weaker

                                                                        • alts : Set (Prop' World)

                                                                          Alternative set

                                                                        • weakerFirst : Bool

                                                                          Is weaker mentioned first?

                                                                        Instances For

                                                                          Fox & Spector's prediction: weak-first is felicitous because exh(weak) can break the entailment to strong.

                                                                          Equations
                                                                          Instances For

                                                                            The asymmetry: felicitous iff (weak-first AND exh breaks entailment). Strong-first can't be rescued because exh(strong) is vacuous.

                                                                            Equations
                                                                            Instances For
                                                                              @[reducible, inline]

                                                                              Worlds for quantifier scale: number satisfying predicate (0 to 3).

                                                                              Equations
                                                                              Instances For

                                                                                "Some Ps are Q" = at least one.

                                                                                Equations
                                                                                Instances For

                                                                                  "All Ps are Q" = all three.

                                                                                  Equations
                                                                                  Instances For

                                                                                    The some/all Horn scale with semantic content.

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

                                                                                      Worlds for connective scale.

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

                                                                                          The or/and Horn scale with semantic content.

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

                                                                                            Worlds for modal scale: accessibility relation outcomes.

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

                                                                                                The possible/necessary Horn scale.

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

                                                                                                  Prediction: exh(some) → ¬all.

                                                                                                  At any world where exhIE(some) holds, "all" is false. This derives the implicature "some → not all".

                                                                                                  Prediction: exh(or) → ¬and.

                                                                                                  At any world where exhIE(or) holds, "and" is false. This derives the implicature "or → not both".

                                                                                                  Semantic structure for "some or all" (rescued Hurford case).

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

                                                                                                    Prediction: "some or all" is rescued because exh(some) doesn't entail all.

                                                                                                    World type for hyponymy: 3 regions of people

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

                                                                                                        Semantic structure for "American or Californian" (true Hurford violation).

                                                                                                        Key: The alternative set contains NO scalar alternatives beyond the disjuncts. Hyponymy is a fixed lexical relation, not a scalar implicature.

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

                                                                                                          Key Lemma: With no scalar alternatives, exh is vacuous.

                                                                                                          exhIE {A, B} B = B when B is the strongest in the set. Since californianP ⊆ americanP, californianP has no proper stronger alternative.

                                                                                                          The proof shows that exh(californianP) still entails americanP because:

                                                                                                          1. The only alternatives are {americanP, californianP}
                                                                                                          2. californianP is already the strongest term (it entails americanP)
                                                                                                          3. So exh(californianP) = californianP (no strengthening possible)
                                                                                                          4. And californianP ⊆ americanP remains

                                                                                                          Prediction: "American or Californian" is not rescued.

                                                                                                          Since exh(californianP) ⊆ americanP (the ORIGINAL entailment is preserved), the disjunction remains redundant → infelicitous.

                                                                                                          For hyponymy cases like this, the entailment is B⊆A (californian ⊆ american), so we use isRescuedFromBA which checks whether exh(B) ⊄ A.

                                                                                                          Semantic structure for "A or B, or both" (weak-first Singh case).

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

                                                                                                            Semantic structure for "both, or A or B" (strong-first Singh case).

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

                                                                                                              Prediction: "A or B, or both" (weak-first) is predicted felicitous.

                                                                                                              Prediction: "both, or A or B" (strong-first) is not predicted felicitous.

                                                                                                              Even though exh breaks entailment, strong-first fails because exh(strong) is vacuous (nothing to exclude).

                                                                                                              Main Result: Theory correctly predicts all three Horn scale implicatures.

                                                                                                              For each scale, exh(weaker) → ¬stronger.

                                                                                                              Main Result: Theory correctly predicts Singh asymmetry.

                                                                                                              Weak-first is felicitous, strong-first is not.

                                                                                                              Marker type for the NeoGricean theory

                                                                                                                Instances For

                                                                                                                  NeoGricean's internal representation for implicature analysis.

                                                                                                                  Bundles the Standard Recipe result with context information.

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

                                                                                                                      Check if a word is a scalar quantifier

                                                                                                                      Equations
                                                                                                                      Instances For

                                                                                                                        Find the position of a scalar item in a word list

                                                                                                                        Equations
                                                                                                                        Instances For

                                                                                                                          Determine context polarity from words. Simplified: checks for negation markers.

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

                                                                                                                            Parse words into NeoGricean structure.

                                                                                                                            For now, uses a simplified analysis:

                                                                                                                            • Finds scalar item position
                                                                                                                            • Determines polarity from negation markers
                                                                                                                            • Assumes competence holds and derives strong implicature in UE
                                                                                                                            Equations
                                                                                                                            • One or more equations did not get rendered due to their size.
                                                                                                                            Instances For
                                                                                                                              Equations
                                                                                                                              • One or more equations did not get rendered due to their size.

                                                                                                                              Example: "some students sleep" in DE context (under negation)

                                                                                                                              Equations
                                                                                                                              Instances For