Documentation

Linglib.Phenomena.Quantification.Examples

Basic Quantifier Examples #

End-to-end tests verifying that the English quantifier Fragment, composed with a toy scenario, produces correct truth-value judgments, acceptability predictions, and entailment patterns.

The scenario (entities, predicates, truth assignments) is defined here in Phenomena — it is empirical data. The compositional machinery (Model, FiniteModel, GQ denotations) comes from Semantics.Montague. The lexical entries (strength, monotonicity) come from the Fragment.

Test architecture #

  1. Acceptability (Tier 1): there-insertion from Fragment Strength
  2. Truth values (Tier 2): sentence denotations evaluated in a scenario
  3. Entailment (Tier 3): monotonicity-driven inferences
  4. Scalar distinctness (Tier 4): quantifiers differ on at least one input

Scenario #

Four entities: Alice, Bob, Carol, Dave.

Instances For
    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.

      Tier 1: Acceptability #

      B&C Table II: weak determiners allow there-insertion, strong ones don't. These judgments are derived purely from the Fragment's Strength field.

      Tier 2: Truth Values #

      Compose Fragment denotations with scenario predicates and verify.

      SentenceExpectedWhy
      Every student laughedtrueAlice ✓, Bob ✓
      Every student passedfalseBob ✗
      Some student passedtrueAlice ✓
      Some student criedfalsenobody cried
      No student criedtruenobody cried
      No student passedfalseAlice passed
      Most students passedfalse1 of 2 ≤ half
      Most students laughedtrue2 of 2 > 0 (=

      Tier 3: Entailment #

      Fragment monotonicity metadata predicts entailment directions. We verify these by composing semantic proofs with our scenario.

      passed ⊆ laughed in our scenario (Alice passed ∧ laughed, Bob only laughed).

      "No student laughed" would entail "no student passed" by scope-↓ mono. (In our scenario, neither premise holds, but the implication is valid.)

      Tier 4: Scalar Distinctness #

      For scalar implicature to arise, adjacent scale-mates must differ on some input. We verify this by finding witnesses — inputs where they diverge.