Documentation

Linglib.Theories.Semantics.Numerals.Precision

Pragmatic Halo and Precision Modes #

@cite{krifka-2007} @cite{lasersohn-1999} @cite{woodin-etal-2023} @cite{kao-etal-2014-hyperbole}

Rounding semantics for numeral imprecision. Round numbers (100, 1000) are interpreted imprecisely; sharp numbers (103, 1001) are interpreted precisely. This is the "pragmatic halo" effect.

Precision mode for numeral interpretation.

Instances For
    Equations
    • One or more equations did not get rendered due to their size.
    Instances For
      @[implicit_reducible]
      Equations
      def Semantics.Numerals.Precision.roundToNearest (n : ) (base : := 10) :

      Round a rational number to the nearest multiple of base.

      Equations
      Instances For
        def Semantics.Numerals.Precision.isRoundNumber (n : ) (base : := 10) :
        Bool

        Check if a number is "round" (divisible by base).

        Equations
        Instances For
          def Semantics.Numerals.Precision.roundingEquiv (n₁ n₂ : ) (base : := 10) :
          Bool

          Rounding equivalence: two values are equivalent if they round to the same number.

          Equations
          Instances For
            def Semantics.Numerals.Precision.matchesPrecision (mode : PrecisionMode) (stated actual : ) (base : := 10) :
            Bool

            Check if stated and actual values match under a given precision mode.

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

              Adaptive rounding base: rounder numbers get a coarser base. Uses RoundnessGrade to avoid duplicating score-binning logic.

              Equations
              • One or more equations did not get rendered due to their size.
              Instances For
                def Semantics.Numerals.Precision.adaptiveTolerance (n : ) (baseTol : ) :

                Adaptive tolerance: scales a base tolerance by the roundness score.

                Equations
                Instances For

                  Pragmatic halo width as a function of roundness score.

                  Equations
                  Instances For

                    Infer precision mode from k-ness score. roundnessScore ≥ 2 → .approximate; roundnessScore < 2 → .exact.

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

                      Multiples of 10 have adaptive base ≥ 5.

                      def Semantics.Numerals.Precision.speakerModulatedHalo (multiplier : ) (n : ) :

                      Speaker-conditioned pragmatic halo width: scales the base haloWidth by a tolerance multiplier. @cite{beltrama-schwarz-2024} show that numeral precision is jointly determined by roundness AND speaker identity — the pragmatic halo is not a property of the number alone but of the number-speaker pair.

                      Equations
                      Instances For
                        def Semantics.Numerals.Precision.inSpeakerHalo (multiplier : ) (stated actual : ) :
                        Bool

                        Whether an actual value falls within the speaker-conditioned pragmatic halo of a stated value.

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