Documentation

Linglib.Data.Experiments.Schema

Experimental results: schema #

The primitive values of Data/Experiments/<Paper>.lean, the per-paper modules that scripts/gen_experiments.py generates from Data/Experiments/<Paper>.json. A paper's own coding labels (its factors, response types, predictors) become generated enums, and each table it prints becomes a generated structure with one row per printed line; this file holds only what every paper shares.

This is data: it imports nothing from Linglib/ and states no theorems about theories. A statistic is kept as printed, Decimal recording the digits so that 75 and 75.0 differ, and a study reads it through Decimal.toRat. What a study concludes from the numbers (a prototype, a preference, a significant difference) is a definition in the study, not a stored label.

A decimal as printed: the value mantissa / 10 ^ exponent, with exponent the number of printed decimal places.

  • mantissa : ℤ
  • exponent : ℕ
Instances For
    def Data.Experiments.instDecidableEqDecimal.decEq (x✝ x✝¹ : Decimal) :
    Decidable (x✝ = x✝¹)
    Equations
    • One or more equations did not get rendered due to their size.
    Instances For
      Equations
      • One or more equations did not get rendered due to their size.
      Instances For

        The printed value.

        Equations
        Instances For
          @[simp]
          @[simp]
          @[instance_reducible]
          Equations
          @[instance_reducible]
          Equations

          The printed value in hundredths, exact when at most two places are printed: a proportion printed to two places, in percent.

          Equations
          Instances For

            The printed value is the percentage 100 * k / n rounded to the printed places: the two differ by at most half a unit in the last printed place.

            Equations
            Instances For

              The printed value is the proportion k / n rounded to the printed places: the two differ by at most half a unit in the last printed place.

              Equations
              Instances For
                @[instance_reducible]
                instance Data.Experiments.Decimal.instDecidableRounds (d : Decimal) (k n : ℕ) :
                Decidable (d.Rounds k n)
                Equations

                Some count out of n rounds to the printed percentage.

                Equations
                Instances For
                  @[instance_reducible]
                  Equations

                  The sign of a binary feature in the [+F] / [-F] notation.

                  Instances For
                    @[instance_reducible]
                    Equations
                    def Data.Experiments.instReprSign.repr :
                    Sign → ℕ → Std.Format
                    Equations
                    • One or more equations did not get rendered due to their size.
                    Instances For