Documentation

Linglib.Theories.Semantics.Probabilistic.Measurement.Basic

Measurement Semantics #

@cite{bale-schwarz-2026} @cite{kennedy-2015} @cite{krifka-1989} @cite{scontras-2014}

Formal semantics of measurement: measure functions, measure terms, and their connection to numeral semantics and degree semantics.

Theoretical Foundation #

Scontras's The Semantics of Measurement (Ch. 2) unifies numerals and measure terms under a single framework. The key insight: CARD is just another measure term. Where "kilo" names the mass measure μ_kg, the cardinal reading of a numeral names the cardinality measure μ_CARD. Both are instances of the same syntactic category M (measure term), with type ⟨n, ⟨e,t⟩⟩.

The Measure Function #

A measure function μ maps individuals to non-negative rationals along a physical dimension:

μ : Entity → ℚ≥0

The dimension (mass, volume, distance, time, cardinality) is the parameter that distinguishes different measure functions: μ_kg, μ_L, μ_km, μ_CARD.

Measure Terms as Measure Function Names #

A measure term (gram, liter, mile) names a specific measure function. Its denotation:

⟦kilo⟧ = λn. λx. μ_kg(x) = n

This is a function from a numeral (degree) to a predicate — exactly a modifier of type ⟨n, ⟨e,t⟩⟩ in Scontras's system.

CARD Unification #

The cardinal reading of a bare numeral ("three cats") arises from the same structure, with CARD as a covert measure term:

⟦CARD⟧ = λn. λx. μ_CARD(x) = n

So "three cats" = ⟦CARD⟧(3)(⟦cats⟧) = λx. cats(x) ∧ |x| = 3.

Connection to Scale Infrastructure #

The HasDegree typeclass in Core.MeasurementScale gives E → ℚ. This module adds:

Connection to @cite{bale-schwarz-2026} #

The No Division Hypothesis constrains what operations the grammar can perform on these measure functions: addition and multiplication are available, but division is not. Quotient dimensions (density = mass/volume) exist in the quantity calculus but are not compositionally derivable.

Physical dimensions that measure functions can target.

Simplex dimensions are directly measurable properties of entities. These are the dimensions accessible to compositional semantics (@cite{bale-schwarz-2026}: the grammar can compose via addition and multiplication along these).

Quotient dimensions (density, speed) are ratios of simplex dimensions. The grammar cannot derive them compositionally (No Division Hypothesis); they can only be referenced via extra-grammatical conventions (math speak).

Instances For
    Equations
    • One or more equations did not get rendered due to their size.
    Instances For

      Quotient dimensions: ratios of simplex dimensions.

      These exist in the quantity calculus but are not compositionally derivable within the grammar.

      Instances For
        Equations
        • One or more equations did not get rendered due to their size.
        Instances For

          Whether a given dimension is simplex (available to compositional semantics) or quotient (only via math speak). All constructors of Dimension are simplex by definition; QuotientDimension is always quotient.

          Instances For
            Equations
            • One or more equations did not get rendered due to their size.
            Instances For

              A measure function maps entities to non-negative rational magnitudes along a specific dimension.

              @cite{scontras-2014}: degrees are pairs ⟨μ, n⟩ where μ is the measure function and n is the numerical value. A measure function is individuated by its dimension: μ_kg measures mass, μ_L measures volume, μ_CARD counts.

              We use ℚ rather than ℝ to match the library's exact-arithmetic convention for computational semantics.

              • dimension : Dimension

                Which dimension this function measures.

              • apply : E

                The measure function itself: maps an entity to its magnitude.

              • nonneg (e : E) : self.apply e 0

                Measure values are non-negative.

              Instances For

                Two measure functions agree on dimension and values.

                Equations
                Instances For

                  A measure term's denotation: λn. λx. μ(x) = n.

                  @cite{scontras-2014}: measure terms are nouns that name specific measure functions. Their type is ⟨n, ⟨e,t⟩⟩ — they take a numeral and return a predicate.

                  The rel field allows different interpretations: exact (=), at-least (≥), or at-most (≤), matching the numeral semantics infrastructure in Numeral.Semantics.OrderingRel. By default, measure terms denote exact measurement (= n), and pragmatic strengthening (if needed) happens at the numeral level, not the measure term level.

                  • measureFn : MeasureFn E

                    The measure function this term names.

                  • rel : Bool

                    The comparison relation (default: exact).

                  Instances For

                    Apply a measure term to a numeral n, yielding a predicate over entities.

                    ⟦kilo⟧(3) = λx. μ_kg(x) = 3

                    Equations
                    Instances For
                      def Semantics.Probabilistic.Measurement.card (E : Type u_1) (cardFn : E) (h : ∀ (e : E), cardFn e 0) :

                      CARD: the cardinality measure function.

                      @cite{scontras-2014}: CARD is a covert measure term whose measure function is |·|, the cardinality function. It takes a numeral and returns a predicate:

                      ⟦CARD⟧ = λn. λx. |x| = n
                      

                      This unifies bare numerals ("three cats") with measure phrases ("three kilos of rice"): both involve a measure term (CARD or kilo) applied to a numeral.

                      Equations
                      Instances For
                        def Semantics.Probabilistic.Measurement.IsQuantityUniform {E : Type u_1} (P : EBool) (μ : MeasureFn E) (sum : EEE) :

                        A predicate P is quantity-uniform with respect to measure function μ (@cite{scontras-2014}, Def. 2.5):

                        QU_μ(P) ↔ ∀ x y, P(x) ∧ P(y) ∧ μ(x) = μ(y) → P(x ⊕ y)
                        

                        If two P-individuals have the same μ-measure, their sum is also a P-individual. This is the closure condition that ensures measure terms compose correctly with plural predicates.

                        The importance: only quantity-uniform predicates admit measure modification. "Three kilos of rice" requires that rice be QU_μ_kg (any two rice-quantities of the same weight can be summed and remain rice). "??Three kilos of cat" fails because cat is not quantity-uniform.

                        Equations
                        Instances For

                          A composition operation on quantities.

                          • op : QQQ

                            The operation itself.

                          • outputDim : Dimension

                            Which dimension the output lives.

                          Instances For

                            No Division Hypothesis: quantity division is not available as an operation for semantic composition.

                            No lexical item, composition rule, or type-shifting operation in the grammar produces a value in a quotient dimension from simplex-dimension inputs. Quantities in quotient dimensions (density, speed) can only be referenced via extra-grammatical conventions (math speak / mixed quotation).

                            The hypothesis is stated over typed dimensions: no available composition operation outputs a quotient dimension.

                            Equations
                            Instances For
                              def Semantics.Probabilistic.Measurement.perMultiplicationOnly (Quantity : Type u_1) (mul perMeaning pureNumber : QuantityQuantityQuantity) :

                              Weaker form: even if a language has a lexical item per, its compositional semantics can be restated using only multiplication and pure numbers. @cite{bale-schwarz-2026} shows that both @cite{coppock-2021}'s division entry and @cite{bale-schwarz-2022}'s anaphoric entry are reformulable this way.

                              Equations
                              Instances For

                                A MeasureFn induces a HasDegree instance: the degree of an entity is its measure value. This connects Scontras's measure functions to the existing degree semantics infrastructure in Core.MeasurementScale.

                                Note: HasDegree is a single-measure typeclass (one degree per entity type). For entities with multiple measurable dimensions (a box has weight AND volume), use MeasureFn directly — HasDegree is the specialization for when a single dimension is contextually salient.

                                Equations
                                Instances For

                                  Classification of quantizing nouns: nouns that turn mass terms into countable expressions.

                                  @cite{scontras-2014} identifies three classes:

                                  • Measure terms (kilo, liter): name measure functions directly
                                  • Container nouns (glass, box): ambiguous between CONTAINER and MEASURE readings
                                  • Atomizers (grain, piece): impose a minimal-part structure

                                  The key semantic difference: measure terms always yield quantity-uniform predicates, while container nouns can yield non-quantity-uniform predicates in their CONTAINER reading (because containers are individuated).

                                  Instances For
                                    Equations
                                    • One or more equations did not get rendered due to their size.
                                    Instances For

                                      Container nouns are ambiguous between two readings (Scontras §3.2):

                                      • CONTAINER: the noun denotes physical containers; "three glasses of water" means three individual glasses containing water. The predicate is NOT quantity-uniform (three glasses ⊕ three glasses ≠ three glasses).

                                      • MEASURE: the noun functions as a measure term; "three glasses of water" means a quantity of water whose volume equals three glass-volumes. The predicate IS quantity-uniform (like any measure term).

                                      Instances For
                                        Equations
                                        • One or more equations did not get rendered due to their size.
                                        Instances For

                                          Scontras's QU prediction: which class/reading combinations yield quantity-uniform predicates?

                                          ClassReadingQU?Reason
                                          measureTerm(n/a)trueNames a measure function directly
                                          containerNoun.containerfalseIndividuated containers don't sum
                                          containerNoun.measuretrueFunctions as a measure term
                                          atomizer(n/a)falseAtoms are individuated like containers

                                          This is the core prediction of Scontras Ch. 3: the CONTAINER/MEASURE ambiguity of container nouns is exactly the ambiguity between QU and non-QU readings. The MEASURE reading makes a container noun semantically equivalent to a measure term; the CONTAINER reading makes it semantically equivalent to a count noun.

                                          Equations
                                          Instances For

                                            Measure terms are always quantity-uniform, regardless of reading.

                                            The Scontras–Kennedy bridge #

                                            Scontras's measure term denotation ⟦kilo⟧(n)(x) = (μ_kg(x) = n) is exactly the MIP applied to the at-least degree property of μ:

                                            max⊨(atLeast_μ, n, x) ↔ μ(x) = n
                                            

                                            This is isMaxInf_atLeast_iff_eq from MeasurementScale.lean, instantiated to our measure functions. The connection: Kennedy's type-shift IS Scontras's measure term semantics. They're the same operation viewed from different sides.

                                            theorem Semantics.Probabilistic.Measurement.measureTerm_exact {E : Type u_1} (μ : MeasureFn E) (n : ) (x : E) :
                                            { measureFn := μ }.applyNumeral n x = (μ.apply x == n)

                                            A MeasureTermSem with the default exact relation (= n) yields the predicate μ(x) = n — the same as the MIP applied to "at least".

                                            This connects Scontras Ch. 2 to @cite{kennedy-2015}: the measure term denotation ⟦kilo⟧(n)(x) = (μ_kg(x) = n) is precisely what the MIP derives from the lower-bound meaning "at least n kilos" when applied to cardinality/mass.

                                            The deep theorem: measure term semantics = MIP(lower-bound) #

                                            @cite{scontras-2014} defines measure term meaning as exact: ⟦kilo⟧(n)(x) = (μ_kg(x) = n)

                                            @cite{kennedy-2015} defines bare numeral meaning as lower-bound + MIP: ⟦three⟧_LB = "at least 3" → MIP derives "exactly 3"

                                            These are two different theoretical proposals for how exact meaning arises. The deep claim: they produce identical truth conditions, but ONLY under the surjectivity hypothesis — every measure value must be instantiated by some entity (or world).

                                            The surjectivity hypothesis is not free: it is exactly the condition that separates mass nouns (rice: every quantity of rice exists → surjective) from count nouns (cat: only integer-valued cardinalities exist → not surjective over ℚ, only over ℕ).

                                            For mass-noun measure terms (kilo, liter), surjectivity holds over ℚ, so the two derivations coincide. For count nouns with CARD, surjectivity holds only over ℕ, but the moreThan_eq_atLeast_succ theorem shows that on ℕ, discrete collapse independently delivers exactness.

                                            So the Scontras–Kennedy equivalence holds in BOTH cases, but for different reasons depending on the dimension:

                                            This is the formal content of Scontras's CARD unification thesis: CARD and kilo are the same kind of object, but the proof that their semantics agrees with the MIP goes through different lemmas.

                                            Scontras–Kennedy equivalence for dense dimensions.

                                            For a measure function μ over a dense domain: MIP applied to the at-least degree property at numeral n and entity x yields μ(x) = n — exactly the measure term's denotation.

                                            The proof relies on isMaxInf_atLeast_iff_eq from MeasurementScale.lean, which requires surjectivity: every value in the domain is realized. This is the genuinely non-trivial hypothesis — it fails for count nouns (not every rational cardinality is instantiated) but holds for mass nouns (every rational quantity of rice exists, at least in principle).

                                            theorem Semantics.Probabilistic.Measurement.scontras_kennedy_card {E : Type u_1} (cardFn : E) (n : ) (x : E) (hSurj : Function.Surjective cardFn) :

                                            Scontras–Kennedy equivalence for cardinality (discrete).

                                            For cardinality (ℕ-valued), the discrete collapse moreThan_eq_atLeast_succ independently delivers exact meaning: "more than n" = "at least n+1" on ℕ. The MIP still applies (atLeast_hasMaxInf), and isMaxInf_atLeast_iff_eq gives exactness under ℕ-surjectivity (which is trivially satisfied by identity).

                                            The MIP always exists for at-least degree properties, regardless of density. This is why bare numerals always generate scalar implicatures: the lower-bound meaning has a well-defined maximum (the true value), so the MIP can derive exactness. Contrast with moreThanDeg, where the MIP fails on dense scales.

                                            Every quotient dimension's components are distinct simplex dimensions.

                                            No simplex dimension appears as both components of any single quotient dimension. This is a type-theoretic consequence: you can't divide a dimension by itself to get a meaningful quotient (mass/mass = dimensionless, not a quotient dimension).

                                            theorem Semantics.Probabilistic.Measurement.card_dimension (E : Type u_1) (f : E) (h : ∀ (e : E), f e 0) :

                                            CARD measures cardinality.