Documentation

Linglib.Theories.Pragmatics.Implicature.Scales

Generic Scalar Implicature Helpers #

@cite{geurts-2010}

Generic scalar-implicature computation built on HornScale (from Theories/Semantics/Alternatives/Lexical.lean) and contextual polarity (from Theories/Semantics/Entailment/Polarity.lean).

Key operations #

Scope #

Generic infrastructure only — no paper-specific worked examples. Worked examples live in the Phenomena/ScalarImplicatures/Studies/*.lean files that exercise this API.

Scale semantics (SemanticScale, HurfordSemantic, SinghSemantic) and exhaustification predictions live in Alternatives/Lexical.lean and Exhaustification/ScalePredictions.lean.

Does an alternative arise as a scalar implicature of a quantifier term? True iff alt is among the polarity-appropriate Horn-scale alternatives of term.

Equations
Instances For

    Complete scalar implicature derivation result.

    • term : String

      The original utterance's scalar term

    • strongerAlts : List String

      Stronger alternatives found

    • implicatures : List String

      Implicatures derived (negations of stronger alternatives)

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

        Derive all scalar implicatures for a term via HornScale.

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

          Derive scalar implicatures from a list of words. Each word is looked up in the scale registry; scalar words produce implicatures based on polarity context.

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

            Does any implicature in the results negate a given alternative?

            Equations
            Instances For
              @[implicit_reducible]
              instance Implicature.Scales.instDecidableHasImplicature (results : List ScalarImplicatureResult) (alt : String) :
              Decidable (HasImplicature results alt)
              Equations