Documentation

Linglib.Morphology.Paradigm.Complexity

Paradigm complexity: implicative structure and entropy over cells #

This file defines the two faces of the paradigm cell filling problem over a ParadigmSystem. The qualitative face is categorical: a set of cells predicts another when the forms filling it determine the form filling the target across the inflection classes, a principal-part set predicts every cell, and a system is vocabularly clear when every single cell does. The quantitative face measures the same relations by entropy: the entropy of the class assignment, of the form distribution at a cell, and the conditional entropy of one cell given another — the integrand of average conditional entropy. The two faces meet at zero: a cell predicted by another has zero conditional entropy given it, so a vocabularly clear system is transparent. Enumerative complexity is counted by the realizations of each cell, whose product bounds the number of classes.

Main definitions #

Main statements #

References #

Implicative structure #

def Morphology.ParadigmSystem.Predicts {n : } {Form : Type u_1} (ps : ParadigmSystem n Form) (S : Finset (Fin n)) (j : Fin n) :

A set of cells S predicts cell j when any two classes agreeing on every cell of S agree at j.

Equations
Instances For
    def Morphology.ParadigmSystem.IsPrincipalPartSet {n : } {Form : Type u_1} (ps : ParadigmSystem n Form) (S : Finset (Fin n)) :

    A principal-part set predicts every cell.

    Equations
    Instances For
      def Morphology.ParadigmSystem.IsVocabularClear {n : } {Form : Type u_1} (ps : ParadigmSystem n Form) :

      Vocabular clarity: every cell on its own predicts every cell — each realization identifies the class.

      Equations
      Instances For
        theorem Morphology.ParadigmSystem.Predicts.mono {n : } {Form : Type u_1} {ps : ParadigmSystem n Form} {S T : Finset (Fin n)} {j : Fin n} (hST : ST) (h : ps.Predicts S j) :
        ps.Predicts T j
        theorem Morphology.ParadigmSystem.predicts_of_mem {n : } {Form : Type u_1} {ps : ParadigmSystem n Form} {S : Finset (Fin n)} {j : Fin n} (hj : j S) :
        ps.Predicts S j
        @[instance_reducible]
        instance Morphology.ParadigmSystem.instDecidablePredicts {n : } {Form : Type u_1} (ps : ParadigmSystem n Form) [DecidableEq Form] {S : Finset (Fin n)} {j : Fin n} :
        Decidable (ps.Predicts S j)
        Equations
        @[instance_reducible]
        instance Morphology.ParadigmSystem.instDecidableIsPrincipalPartSet {n : } {Form : Type u_1} (ps : ParadigmSystem n Form) [DecidableEq Form] {S : Finset (Fin n)} :
        Decidable (ps.IsPrincipalPartSet S)
        Equations

        Enumerative counts #

        def Morphology.ParadigmSystem.realizations {n : } {Form : Type u_1} (ps : ParadigmSystem n Form) [DecidableEq Form] (c : Fin n) :
        Finset Form

        The forms realizing cell c.

        Equations
        Instances For
          theorem Morphology.ParadigmSystem.mem_realizations {n : } {Form : Type u_1} (ps : ParadigmSystem n Form) [DecidableEq Form] {c : Fin n} {r : Form} :
          r ps.realizations c eps.entries, e.1 c = r
          def Morphology.ParadigmSystem.maxRealizations {n : } {Form : Type u_1} (ps : ParadigmSystem n Form) [DecidableEq Form] :

          The largest number of rival realizations of a single cell.

          Equations
          Instances For
            def Morphology.ParadigmSystem.ParadigmEconomy {n : } {Form : Type u_1} (ps : ParadigmSystem n Form) [DecidableEq Form] :

            Paradigm economy: no more classes than rival realizations of the most varied cell.

            Equations
            Instances For
              @[instance_reducible]
              instance Morphology.ParadigmSystem.instDecidableParadigmEconomy {n : } {Form : Type u_1} (ps : ParadigmSystem n Form) [DecidableEq Form] :
              Decidable ps.ParadigmEconomy
              Equations
              theorem Morphology.ParadigmSystem.card_paradigms_le_prod_card_realizations {n : } {Form : Type u_1} (ps : ParadigmSystem n Form) [DecidableEq Form] :
              (List.map Prod.fst ps.entries).toFinset.card c : Fin n, (ps.realizations c).card

              The distinct paradigms of the system are bounded by the product of the realizations of the cells.

              Entropy #

              def Morphology.ParadigmSystem.total {n : } {Form : Type u_1} (ps : ParadigmSystem n Form) :

              The total weight of the classes.

              Equations
              Instances For
                def Morphology.ParadigmSystem.cellWeight {n : } {Form : Type u_1} (ps : ParadigmSystem n Form) [DecidableEq Form] (c : Fin n) (r : Form) :

                The weight of the classes realizing r at c.

                Equations
                Instances For
                  def Morphology.ParadigmSystem.jointWeight {n : } {Form : Type u_1} (ps : ParadigmSystem n Form) [DecidableEq Form] (ci cj : Fin n) (ri rj : Form) :

                  The weight of the classes realizing ri at ci and rj at cj.

                  Equations
                  Instances For
                    def Morphology.ParadigmSystem.jointRealizations {n : } {Form : Type u_1} (ps : ParadigmSystem n Form) [DecidableEq Form] (ci cj : Fin n) :
                    Finset (Form × Form)

                    The pairs of forms realized at a pair of cells.

                    Equations
                    Instances For
                      theorem Morphology.ParadigmSystem.mem_jointRealizations {n : } {Form : Type u_1} (ps : ParadigmSystem n Form) [DecidableEq Form] {ci cj : Fin n} {p : Form × Form} :
                      p ps.jointRealizations ci cj eps.entries, (e.1 ci, e.1 cj) = p
                      noncomputable def Morphology.ParadigmSystem.declensionEntropy {n : } {Form : Type u_1} (ps : ParadigmSystem n Form) :

                      The entropy (in nats) of the class assignment.

                      Equations
                      Instances For
                        noncomputable def Morphology.ParadigmSystem.cellEntropy {n : } {Form : Type u_1} (ps : ParadigmSystem n Form) [DecidableEq Form] (c : Fin n) :

                        The entropy (in nats) of the form distribution at cell c.

                        Equations
                        Instances For
                          noncomputable def Morphology.ParadigmSystem.jointCellEntropy {n : } {Form : Type u_1} (ps : ParadigmSystem n Form) [DecidableEq Form] (ci cj : Fin n) :

                          The joint entropy (in nats) of two cells.

                          Equations
                          Instances For
                            noncomputable def Morphology.ParadigmSystem.conditionalCellEntropy {n : } {Form : Type u_1} (ps : ParadigmSystem n Form) [DecidableEq Form] (ci cj : Fin n) :

                            The conditional entropy H(cᵢ | cⱼ) = H(cᵢ, cⱼ) − H(cⱼ) of cell ci given cell cj.

                            Equations
                            Instances For
                              noncomputable def Morphology.ParadigmSystem.mutualCellInfo {n : } {Form : Type u_1} (ps : ParadigmSystem n Form) [DecidableEq Form] (ci cj : Fin n) :

                              The mutual information I(cᵢ : cⱼ) = H(cᵢ) − H(cᵢ | cⱼ) of cell ci and cell cj.

                              Equations
                              Instances For
                                def Morphology.ParadigmSystem.IsImplicative {n : } {Form : Type u_1} (ps : ParadigmSystem n Form) [DecidableEq Form] (ci cj : Fin n) :

                                Knowing cell cj leaves no uncertainty about cell ci.

                                Equations
                                Instances For
                                  def Morphology.ParadigmSystem.IsTransparent {n : } {Form : Type u_1} (ps : ParadigmSystem n Form) [DecidableEq Form] :

                                  Every cell predicts every other cell.

                                  Equations
                                  Instances For
                                    theorem Morphology.ParadigmSystem.cellEntropy_eq_zero_of_card_le_one {n : } {Form : Type u_1} (ps : ParadigmSystem n Form) [DecidableEq Form] {c : Fin n} (h : (ps.realizations c).card 1) :
                                    ps.cellEntropy c = 0

                                    A cell with at most one realization has zero entropy.

                                    theorem Morphology.ParadigmSystem.conditionalCellEntropy_eq_zero_of_predicts {n : } {Form : Type u_1} (ps : ParadigmSystem n Form) [DecidableEq Form] {ci cj : Fin n} (h : ps.Predicts {cj} ci) :

                                    A cell predicted by another has zero conditional entropy given it.

                                    theorem Morphology.ParadigmSystem.isTransparent_of_isVocabularClear {n : } {Form : Type u_1} (ps : ParadigmSystem n Form) [DecidableEq Form] (h : ps.IsVocabularClear) :

                                    A vocabularly clear system is transparent.

                                    theorem Morphology.ParadigmSystem.isVocabularClear_of_isAnalogical {n : } {Form : Type u_1} (ps : ParadigmSystem n Form) {L : Type u_2} {ops : Set (FormForm)} {p : LFin nForm} (h : IsAnalogical ops p) (hps : eps.entries, ∃ (l : L), e.1 = p l) :

                                    A system whose classes are the paradigms of a family related by proportional analogy under any operations is vocabularly clear: a cell's form fixes the lexeme's whole paradigm ([blevins-2016]'s analogy as implicative structure).