A sentence frame for Det-N-VP sentences.
Captures the structure needed to:
- Evaluate the sentence at any world (given world-indexed VP)
- Generate alternatives by substituting the quantifier
The quantifier denotation (e.g., some_sem, every_sem)
- noun : m.interpTy (Semantics.Montague.Ty.e ⇒ Semantics.Montague.Ty.t)
The noun denotation (e.g., isStudent)
- form : String
Surface form of the quantifier (for display/lookup)
- scaleMembership : Option Semantics.Montague.ScaleMembership
Which scale the quantifier belongs to
Instances For
Evaluate a sentence frame with a specific VP.
For Det-N-VP: ⟦Det⟧(⟦N⟧)(⟦VP⟧)
Instances For
Create a frame from a lexical entry and noun denotation.
Equations
- Implicature.AlternativeGeneration.frameFromEntry entry noun h = { quant := h ▸ entry.denot, noun := noun, form := entry.form, scaleMembership := entry.scaleMembership }
Instances For
Generate alternative frames by substituting stronger quantifiers.
For "some students VP":
- Looks up "some" → gets stronger alternatives ["most", "all"]
- For each alternative, creates a new frame with that quantifier
The context polarity determines whether we use stronger (UE) or weaker (DE) alternatives.
Equations
- One or more equations did not get rendered due to their size.
- Implicature.AlternativeGeneration.alternativeFrames f lex Core.NaturalLogic.ContextPolarity.downward = []
- Implicature.AlternativeGeneration.alternativeFrames f lex Core.NaturalLogic.ContextPolarity.nonMonotonic = []
Instances For
Get all frames (original + alternatives).
Equations
- Implicature.AlternativeGeneration.allFrames f lex ctx = f :: Implicature.AlternativeGeneration.alternativeFrames f lex ctx
Instances For
A world-indexed VP: for each world, gives the VP denotation.
Example: passedAt w returns which students passed at world w.
Equations
- Implicature.AlternativeGeneration.WorldIndexedVP m World = (World → m.interpTy (Semantics.Montague.Ty.e ⇒ Semantics.Montague.Ty.t))
Instances For
Convert a sentence frame to Prop' World given a world-indexed VP.
For each world w: frameToProp f vpAt w = (f.quant f.noun (vpAt w)) = true
Equations
- Implicature.AlternativeGeneration.frameToProp f vpAt w = (f.eval (vpAt w) = true)
Instances For
Convert all frames to propositions.
Equations
- One or more equations did not get rendered due to their size.
Instances For
Generate the ALT set from a sentence frame.
This is the main interface to exhaustivity operators.
Equations
- Implicature.AlternativeGeneration.altSet f vpAt lex ctx = {p : Prop' World | p ∈ Implicature.AlternativeGeneration.framesToProps (Implicature.AlternativeGeneration.allFrames f lex ctx) vpAt}
Instances For
Generate ALT set without the base proposition (just alternatives).
Equations
- One or more equations did not get rendered due to their size.
Instances For
Apply exhMW to a sentence frame.
Equations
- One or more equations did not get rendered due to their size.
Instances For
Apply exhIE to a sentence frame.
Equations
- One or more equations did not get rendered due to their size.
Instances For
Extract a sentence frame from a derivation's scalar item.
Requires:
- The derivation has exactly one scalar item (at position 0, the determiner)
- The scalar item is a quantifier
- The noun denotation is provided separately
Returns none if the derivation doesn't match the expected pattern.
Equations
- One or more equations did not get rendered due to their size.
Instances For
Generate ALT set directly from a derivation.
Combines frameFromDerivation and altSet.
Equations
- One or more equations did not get rendered due to their size.
Instances For
Apply exhMW directly to a derivation.
Equations
- One or more equations did not get rendered due to their size.
Instances For
Apply exhIE directly to a derivation.
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.
Instances For
Equations
- Implicature.AlternativeGeneration.instBEqStudent.beq x✝ y✝ = (x✝.ctorIdx == y✝.ctorIdx)
Instances For
Student model
Equations
Instances For
Equations
- One or more equations did not get rendered due to their size.
World = number of students who passed (0-3)
Equations
Instances For
"passed" indexed by world
Equations
- Implicature.AlternativeGeneration.passedAt w s✝ = false
- Implicature.AlternativeGeneration.passedAt w Implicature.AlternativeGeneration.Student.alice = true
- Implicature.AlternativeGeneration.passedAt w s✝ = false
- Implicature.AlternativeGeneration.passedAt w Implicature.AlternativeGeneration.Student.alice = true
- Implicature.AlternativeGeneration.passedAt w Implicature.AlternativeGeneration.Student.bob = true
- Implicature.AlternativeGeneration.passedAt w Implicature.AlternativeGeneration.Student.carol = false
- Implicature.AlternativeGeneration.passedAt w s✝ = true
- Implicature.AlternativeGeneration.passedAt w s✝ = false
Instances For
Equations
- One or more equations did not get rendered due to their size.
- Implicature.AlternativeGeneration.studentLexicon form = none
Instances For
Frame for "some students passed"
Equations
- One or more equations did not get rendered due to their size.
Instances For
Frame for "all students passed"
Equations
- One or more equations did not get rendered due to their size.
Instances For
somePassed holds at w1
allPassed does NOT hold at w1
Both hold at w3
Alternative frames include "all" (via lookupAlternatives)
The automatically generated ALT set contains somePassed.
The exhaustified "some students passed"
Equations
- One or more equations did not get rendered due to their size.
Instances For
Exhaustified "some" holds at w1 (automatic ALT).
This theorem shows that with automatically generated alternatives, exhMW correctly derives "some but not all" at w1.
The proof requires showing w1 is minimal: no world makes strictly fewer alternatives true while still satisfying "some passed".
Proof sketch:
- w1 makes true: {somePassed}
- w2 makes true: {somePassed, mostPassed}
- w3 makes true: {somePassed, mostPassed, allPassed}
- w0 makes true: {} (but doesn't satisfy somePassed)
So w1 is minimal among some-worlds, hence exhMW(some)(w1) holds.