Quantity Domains for Scalar Implicatures #
Building blocks for tutorial-style scalar quantity domains used in
scalar-implicature studies (RSA models, EXH models, neo-Gricean
derivations). The canonical 6-element ⟨none, few, some, half, most, all⟩
paradigm now lives in Phenomena.Quantification.Inventory; this file
covers the smaller 3- and 4-element domains used as toy tutorial scales.
Components #
Utterance: 3-element scalar utterances (none, some, all)ExtUtterance: 4-element extension with "most"meaning: Literal semantics for scalar utterancesextMeaning: Extended semantics with "most"
Equations
- One or more equations did not get rendered due to their size.
Instances For
@[implicit_reducible]
@[implicit_reducible]
instance
Phenomena.ScalarImplicatures.QuantityDomain.instDecidableEqUtterance :
DecidableEq Utterance
Equations
- Phenomena.ScalarImplicatures.QuantityDomain.instDecidableEqUtterance x✝ y✝ = if h : x✝.ctorIdx = y✝.ctorIdx then isTrue ⋯ else isFalse ⋯
@[implicit_reducible]
@[implicit_reducible]
Equations
- One or more equations did not get rendered due to their size.
Literal semantics (weak "some")
Equations
- Phenomena.ScalarImplicatures.QuantityDomain.meaning n Phenomena.ScalarImplicatures.QuantityDomain.Utterance.none_ x✝ = (↑x✝ == 0)
- Phenomena.ScalarImplicatures.QuantityDomain.meaning n Phenomena.ScalarImplicatures.QuantityDomain.Utterance.some_ x✝ = decide (↑x✝ ≥ 1)
- Phenomena.ScalarImplicatures.QuantityDomain.meaning n Phenomena.ScalarImplicatures.QuantityDomain.Utterance.all x✝ = (↑x✝ == n)
Instances For
All utterances
Equations
- One or more equations did not get rendered due to their size.
Instances For
All worlds for a domain of size n
Equations
- Phenomena.ScalarImplicatures.QuantityDomain.allWorlds n = List.finRange (n + 1)
Instances For
World where 0 have the property
Equations
Instances For
World where 1 has the property
Equations
Instances For
World where 2 have the property
Equations
Instances For
World where all n have the property
Equations
Instances For
Extended scalar utterances including "most"
- none_ : ExtUtterance
- some_ : ExtUtterance
- most : ExtUtterance
- all : ExtUtterance
Instances For
def
Phenomena.ScalarImplicatures.QuantityDomain.instReprExtUtterance.repr :
ExtUtterance → ℕ → Std.Format
Equations
- One or more equations did not get rendered due to their size.
Instances For
@[implicit_reducible]
@[implicit_reducible]
instance
Phenomena.ScalarImplicatures.QuantityDomain.instDecidableEqExtUtterance :
DecidableEq ExtUtterance
Equations
- Phenomena.ScalarImplicatures.QuantityDomain.instDecidableEqExtUtterance x✝ y✝ = if h : x✝.ctorIdx = y✝.ctorIdx then isTrue ⋯ else isFalse ⋯
@[implicit_reducible]
instance
Phenomena.ScalarImplicatures.QuantityDomain.instInhabitedExtUtterance :
Inhabited ExtUtterance
@[implicit_reducible]
Equations
- One or more equations did not get rendered due to their size.
def
Phenomena.ScalarImplicatures.QuantityDomain.extMeaning
(n : ℕ)
:
ExtUtterance → Fin (n + 1) → Bool
Extended semantics with "most"
Equations
- Phenomena.ScalarImplicatures.QuantityDomain.extMeaning n Phenomena.ScalarImplicatures.QuantityDomain.ExtUtterance.none_ x✝ = (↑x✝ == 0)
- Phenomena.ScalarImplicatures.QuantityDomain.extMeaning n Phenomena.ScalarImplicatures.QuantityDomain.ExtUtterance.some_ x✝ = decide (↑x✝ ≥ 1)
- Phenomena.ScalarImplicatures.QuantityDomain.extMeaning n Phenomena.ScalarImplicatures.QuantityDomain.ExtUtterance.most x✝ = decide (↑x✝ * 2 > n)
- Phenomena.ScalarImplicatures.QuantityDomain.extMeaning n Phenomena.ScalarImplicatures.QuantityDomain.ExtUtterance.all x✝ = (↑x✝ == n)
Instances For
All extended utterances
Equations
- One or more equations did not get rendered due to their size.