IsUpwardEntailing is an abbreviation for Monotone.
A context function f : Set World → Set World is upward entailing if
it preserves the ordering: If p ≤ q, then f(p) ≤ f(q).
Equations
- Semantics.Entailment.Polarity.IsUpwardEntailing f = Monotone f
Instances For
IsDownwardEntailing is an abbreviation for Antitone.
A context function f : Set World → Set World is downward entailing if
it reverses the ordering: If p ≤ q, then f(q) ≤ f(p).
Equations
- Semantics.Entailment.Polarity.IsDownwardEntailing f = Antitone f
Instances For
Instances For
Instances For
Identity is UE.
Negation is DE.
Double negation is UE.
UE ∘ UE = UE
DE ∘ DE = UE (double negation).
UE ∘ DE = DE
DE ∘ UE = DE
Check if f is upward entailing on given test cases (decidable approximation).
Equations
- One or more equations did not get rendered due to their size.
Instances For
Check if f is downward entailing on given test cases (decidable approximation).
Equations
- One or more equations did not get rendered due to their size.
Instances For
Material conditional with fixed consequent: "If _, then c"
Equations
- Semantics.Entailment.Polarity.materialCond c p w = (p w → c w)
Instances For
Conditional antecedent is DE.
Conditional consequent is UE.
A grounded polarity is either UE or DE, with proof.
- ue : GroundedUE → GroundedPolarity
- de : GroundedDE → GroundedPolarity
Instances For
Extract the ContextPolarity enum from a grounded polarity.
Equations
Instances For
Equations
- Semantics.Entailment.Polarity.mkUpward ctx h = Semantics.Entailment.Polarity.GroundedPolarity.ue { context := ctx, witness := h }
Instances For
Equations
- Semantics.Entailment.Polarity.mkDownward ctx h = Semantics.Entailment.Polarity.GroundedPolarity.de { context := ctx, witness := h }
Instances For
The identity context is grounded UE.
Equations
Instances For
Compose two grounded polarities, with proof that the composition has the right property.
Equations
- One or more equations did not get rendered due to their size.
Instances For
Grounded polarity composition agrees with ContextPolarity.compose.
Double DE gives UE (grounded version).
Scalar implicatures require UE context.
Equations
Instances For
Implicature is allowed in identity context.
Implicature is blocked under single negation.
Implicature is allowed under double negation.