Docs / Semantics / Composition / Ty

Semantic types and denotation domains

import Linglib.Semantics.Composition.Ty · namespace Montague

In Montague semantics every expression has a semantic type, which fixes the kind of thing it denotes: an individual ($e$), a truth value ($t$), a world ($s$), or a function from denotations of type $a$ to denotations of type $b$ ($\langle a,b\rangle$). An intension, of type $\langle s,a\rangle$, is a function from worlds; Montague's intensional logic has no type $s$ of its own, and the two-sorted type theory of Gallin adds it. Later work adds sorts for degrees, cardinalities, and events and states. Each type has a domain of possible denotations, built from a set of individuals and a set of worlds, and the domain of a type that ends in $t$ is a Boolean algebra, pointwise. A computation type is the type of a computation with an effect, such as reading an environment or returning one of a set of alternatives, and its domain is the effect's carrier of its result's domain.

Main definitions

Implementation notes

Ty.Domain is reducible: a denotation of type ⟨e,t⟩ is an E → Prop to every tactic and instance, and the Boolean algebra of a type that ends in t is mathlib's Pi instance. Ty.Domain.completeBooleanAlgebra builds that algebra by recursion on a type known to be conjoinable, for statements about a type that is not concrete. The reader's carrier is the function type itself, not ReaderT, and the carrier of alternatives is Set, not SetM, so that a domain is a function type or a set to instance search; their map, unit and application are therefore explicit. A set of alternatives is not conjoinable: two sets of alternatives coordinate alternative by alternative, through the modes, and not by intersection.

References

Declarations

The semantic types are the entities e, the truth values t, the worlds s, and the functions fn a b (⟨a,b⟩) of two-sorted type theory (Gallin 1975), in which Montague's intensions ⟨s,a⟩ are the functions from worlds (Ty.intens), together with the degree sort d (Heim 2001, Wellwood 2015), the cardinality sort n (Sudo 2016, Scontras 2014, Little et al. 2022), and the eventuality sort v (Davidson 1967, Parsons 1990). Kratzer's type s of events, of which actions and states are subkinds (Kratzer 1996), is v, not the worlds s, as are Hanink and Koontz-Garboden's states (Hanink & Koontz-Garboden 2025); events and states are distinguished within it (Yu et al. 2023), not as two types. A computation type comp f a is a computation with the effect f whose result is of type a (Bumford & Charlow 2026).

inductive TyL63–90
  • e : Ty

    Entities.

  • t : Ty

    Truth values.

  • d : Ty

    Degrees, denoting in the model's scale.

  • n : Ty

    Cardinalities, denoting in ℕ.

  • v : Ty

    Eventualities, events and states alike.

  • s : Ty

    Worlds, or situations: the indices of evaluation.

  • fn : Ty → Ty → Ty

    Functions ⟨a,b⟩.

  • comp : Eff → Ty → Ty

    Computations with an effect.

Derives Repr, DecidableEq.

Built from

Used by instDecidableEqEff.decEq_1, instReprEff.repr_1, Eff, Ty.intens, Ty.et, Ty.eet, Ty.vt, Ty.evt, Ty.ett, Ty.det, Ty.Domain, Denotation, Ty.Conjoinable, Ty.Domain.completeBooleanAlgebra

Used in Semantics/Composition/Coordination, Semantics/Composition/FirstOrder, Semantics/Composition/Mode, Semantics/Composition/Partial, Semantics/Composition/Term and 20 more

L90

The effects of computation types (Bumford & Charlow 2026): the reader of an environment of a type, a computation that reads a value of that type, as an intension reads a world, and indeterminacy, a computation with a set of alternative results, as an indefinite has.

inductive EffL92–100
  • reader : Ty → Eff

    The reader of an environment of type ι.

  • set : Eff

    Indeterminacy, a set of alternatives.

Built from

Used by Ty, instDecidableEqEff.decEq_2, instDecidableEqEff, instReprEff.repr_2, instReprEff, Eff.F, Eff.map, Eff.pure, Eff.seq, Eff.join

Used in Semantics/Composition/Mode

L104

The carriers of the sorts beyond Montague's entities and indices, the scale of degrees and the eventualities, which are empty unless a model supplies them.

structure SortsL122–128
:
  • degree : Type

    The scale of degrees.

  • eventuality : Type

    The eventualities.

Used by Ty.Domain, Eff.F, Eff.map, Eff.pure, Eff.seq, Eff.join, Denotation, Ty.Domain.completeBooleanAlgebra

Used in Semantics/Composition/FirstOrder, Semantics/Composition/Mode, Semantics/Composition/Partial, Semantics/Composition/Term, Semantics/Composition/Tree and 3 more

The type e denotes in E, t in Prop, d in the scale of degrees, n in ℕ, v in the eventualities, s in W, ⟨a,b⟩ in Ty.Domain a → Ty.Domain b, so that an intension ⟨s,a⟩ denotes in W → Ty.Domain a, and a computation type in its effect's carrier.

@[reducible, inline] abbrev Ty.DomainL132–144
(E W : Type) (ty : Ty) (S : Sorts := { }) :

Built from , ,

Used by Eff.F, Eff.map, Eff.pure, Eff.seq, Eff.join, Denotation, Ty.Domain.completeBooleanAlgebra

Used in Semantics/Composition/Coordination, Semantics/Composition/FirstOrder, Semantics/Composition/Mode, Semantics/Composition/Model, Semantics/Composition/Partial and 20 more

An effect's application ⊛ of a computed function to a computed argument (Bumford & Charlow 2026): the reader reads one environment for both, and indeterminacy applies every alternative function to every alternative argument.

def Eff.seqL166–172
{E W : Type} {S : Sorts} {α β : Type} (f : Eff) :
F E W f S (α → β) → F E W f S α → F E W f S β

Built from , , ,

Used in Semantics/Composition/Mode

A denotation in the Montague type system is a semantic type together with an M-computation in the domain of that type. M := Id is the pure Heim & Kratzer 1998 carrier; effectful denotations supply M.

@[reducible, inline] abbrev DenotationL181–185
(E W : Type) (M : Type → Type := Id) (S : Sorts := { }) :

Built from , ,

Used in Semantics/Composition/Coordination, Semantics/Composition/FirstOrder, Semantics/Composition/Partial, Semantics/Composition/Tree, Syntax/Minimalist/Verbal/Voice/Denotation and 11 more

A type is conjoinable when it ends in t (Partee & Rooth 1983).

def Ty.ConjoinableL187–192
:
Ty → Prop

Built from

Used by Ty.decidableConjoinable, Ty.Domain.completeBooleanAlgebra

Used in Semantics/Composition/Coordination, Champollion2016b, Cohen2013

L194–198