Documentation

Linglib.Semantics.Probabilistic.PrototypeTheory

Prototype Theory: Gradient Meaning over a Numerical Domain #

Generic Prototype-Theory operator parameterized by per-word prototype and spread: meaning is a non-negative gradient peaking at the prototype and falling off with distance, scaled by 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.

This is the parametric theory consumed by paper-specific PT models (e.g., Studies/VanTielEtAl2021.lean), which provide their own prototype/spread parameter values.

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 Semantics.Probabilistic.PrototypeTheory.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 Semantics.Probabilistic.PrototypeTheory.ptMeaning_nonneg (n p : ) (d : ) (t : Fin (n + 1)) :
      0 ptMeaning n p d t