Documentation

Linglib.Semantics.Quantification.Prototype

Prototype meaning for quantity words #

A quantity word's meaning as a non-negative gradient over the proportion scale, peaking at a per-word prototype and falling off with distance at a per-word spread.

The bump kernel is a rational-arithmetic approximation of a Gaussian exp(-x²) — specifically, a piecewise-linear-in-|x| tent that is genuinely non-negative, monotone-decreasing in |x|, and continuous at the breakpoints. See bumpKernel.

Paper-specific models (Studies/VanTielEtAl2021.lean) supply the prototype and spread parameters.

References #

Tent kernel: max 0 (1 - |x|). Non-negative, monotone-decreasing in |x|, continuous, peak 1 at x = 0, vanishes for |x| ≥ 1. Approximates a Gaussian bump in rational arithmetic without the discontinuities and negative excursions of the previous piecewise quadratic.

Equations
Instances For
    def Quantification.Prototype.ptMeaning (n p : ) (d : ) (t : Fin (n + 1)) :

    PT meaning at intersection-count t for a word with prototype p and spread d > 0 over a domain of size n.

    Distance from the prototype is normalized by spread, then passed through the bump kernel.

    Equations
    Instances For
      theorem Quantification.Prototype.ptMeaning_nonneg (n p : ) (d : ) (t : Fin (n + 1)) :
      0 ptMeaning n p d t