Documentation

Linglib.Semantics.Questions.PrecisionProjection

Precision Projection for Numeric QUDs #

A PrecisionProjection N rounds/approximates values of type N. Composing it with a numeric projection yields a QUD that distinguishes meanings only up to that precision — the formal device behind granularity-coarsened questions ("about a hundred" vs. "exactly 103").

structure PrecisionProjection (N : Type) :

Precision projection for numeric meanings (approximate vs exact).

  • round : NN

    Round/approximate the value

  • name : String

    Name

Instances For

    Exact precision: no rounding

    Equations
    Instances For

      Round down to the enclosing multiple of k — the lower representative ⌊n/k⌋·k of the width-k bucket partition; finer k refines the induced QUD (Nat.ker_div_le_of_dvd).

      Equations
      Instances For
        @[reducible]
        def PrecisionProjection.applyToQUD {M N : Type} [BEq N] [LawfulBEq N] (prec : PrecisionProjection N) (proj : MN) :
        QUD M

        Compose precision with a QUD. Delegates to QUD.ofProject.

        Equations
        Instances For