Documentation

Linglib.Data.WALS.Aggregation

Data.WALS.Aggregation #

Shared row struct for WALS distribution tables. Promoted from Linglib/Typology/{Complementation, Morphology, Possession}.lean and Linglib/Phenomena/Polarity/Studies/Haspelmath1997.lean to eliminate the 4-way duplication of this primitive.

WALSCount records a single category label paired with the number of WALS-sampled languages exhibiting that category. WALSCount.totalOf sums the counts over a list of rows (typically the per-chapter distribution).

Substrate-only: depends on no Data/WALS feature files. Each consumer imports this module and constructs its List WALSCount from Data.WALS.F{N}A.allData.

A single row in a WALS frequency table: a category label and the number of WALS-sampled languages with that value.

  • label : String
  • count : Nat
Instances For
    def Data.WALS.instReprWALSCount.repr :
    WALSCountNatStd.Format
    Equations
    • One or more equations did not get rendered due to their size.
    Instances For
      def Data.WALS.instDecidableEqWALSCount.decEq (x✝ x✝¹ : WALSCount) :
      Decidable (x✝ = x✝¹)
      Equations
      Instances For

        Sum of count over a list of WALSCount rows.

        Equations
        Instances For