Meanings with alternatives #
A meaning in alternative semantics is a pair: an ordinary denotation, and a set of alternatives
that focus features and operators manipulate while leaving the ordinary denotation alone.
WithAlternatives is that pair. It is the product of the identity monad and the set monad, so the
two-dimensional recursion of alternative semantics is <$> and <*> of a lawful Monad, and the
two dimensions are its two monad morphisms.
Symmetry-based refinements live in Symmetric.lean, structural alternatives in Structural.lean,
and the semantics of the focus and givenness features in Semantics/Focus/.
Main definitions #
WithAlternatives— an ordinary value together with the alternatives it evokesWithAlternatives.WellFormed— the containment constraint: the alternatives include the ordinary valueWithAlternatives.Given— the alternatives have collapsed to a singleton
Main results #
ordinary_seq,mem_alternatives_seq— the two dimensions of Hamblin compositionalternatives_seq— the alternatives of an application are those of theSetapplicativeGiven.alternatives_seq— a Given function contributes only its ordinary value
References #
- [rooth-1985]
- [rooth-1992]
- [kratzer-selkirk-2020]
An ordinary denotation together with the alternatives the expression evokes ([rooth-1992]).
- ordinary : α
The denotation the expression would have with no focus on it.
- alternatives : Set α
The alternatives, which by Rooth's containment constraint include the ordinary value — see
WellFormed, kept a predicate rather than a field so that the composition engine below is aMonad.
Instances For
The meaning of an expression bearing no focus feature: unfeatured x has ordinary value x
and evokes only {x}.
Equations
- WithAlternatives.unfeatured x = { ordinary := x, alternatives := {x} }
Instances For
The composition engine #
Alternative semantics composes pointwise: the ordinary values apply to each other while the
alternatives collect applications of alternative functions to alternative arguments (Hamblin
functional application). pure is unfeatured and <$>/<*> are the recursive clauses of the
two-dimensional semantics.
Equations
- One or more equations did not get rendered due to their size.
The ordinary dimension is a monad morphism onto Id.
The alternatives of f <$> m are the images of m's alternatives.
Hamblin functional application: alternative functions apply to alternative arguments.
The alternatives as a morphism into the Set applicative #
With the laws above these exhibit the monad as a span Id ⟵ WithAlternatives ⟶ Set: ordinary
denotation and alternative set are its two structure-preserving projections.
Rooth's containment constraint: the alternatives contain the ordinary value.
Equations
- m.WellFormed = (m.ordinary ∈ m.alternatives)
Instances For
Composition preserves well-formedness.
Givenness #
Given with respect to a: the alternatives have collapsed to the singleton {a}.
Equations
- m.Given a = (m.alternatives = {a})
Instances For
Unfeatured meanings are Given with respect to their value.
A Given function collapses Hamblin composition to application on the argument's alternatives: deaccented material contributes exactly its ordinary value.