Documentation

Linglib.Morphology.DistributedMorphology.Defs

Vocabulary items #

A Vocabulary Item pairs its insertion site with the exponent that realizes it: the features of the terminal it spells out, together with the features it requires of the neighboring terminals — its contextual environment, / __ ]X]. Form and meaning share the type: an alloseme is an item whose exponent is a denotation (DistributedMorphology/Allosemy.lean). The selection-engine instance lives in DistributedMorphology/Basic.lean.

References #

structure DistributedMorphology.VocabularyItem (F : Type u_1) (E : Type u_2) :
Type (max u_1 u_2)

A Vocabulary Item: the site it is inserted at — the features it spells out and those it requires of the adjacent terminals — paired with its exponent; applicable at any neighborhood containing every feature it mentions.

  • site : Neighborhood (List F)

    The features the item spells out, with those it requires of the adjacent terminals.

  • exponent : E

    The exponent the item inserts.

Instances For
    @[instance_reducible]
    instance DistributedMorphology.instDecidableEqVocabularyItem {F✝ : Type u_1} {E✝ : Type u_2} [DecidableEq F✝] [DecidableEq E✝] :
    DecidableEq (VocabularyItem F✝ E✝)
    Equations
    def DistributedMorphology.instDecidableEqVocabularyItem.decEq {F✝ : Type u_1} {E✝ : Type u_2} [DecidableEq F✝] [DecidableEq E✝] (x✝ x✝¹ : VocabularyItem F✝ E✝) :
    Decidable (x✝ = x✝¹)
    Equations
    • One or more equations did not get rendered due to their size.
    Instances For
      def DistributedMorphology.instReprVocabularyItem.repr {F✝ : Type u_1} {E✝ : Type u_2} [Repr F✝] [Repr E✝] :
      VocabularyItem F✝ E✝Std.Format
      Equations
      • One or more equations did not get rendered due to their size.
      Instances For
        @[instance_reducible]
        instance DistributedMorphology.instReprVocabularyItem {F✝ : Type u_1} {E✝ : Type u_2} [Repr F✝] [Repr E✝] :
        Repr (VocabularyItem F✝ E✝)
        Equations
        def DistributedMorphology.VocabularyItem.features {F : Type u_1} {E : Type u_2} (i : VocabularyItem F E) :
        List F

        The features the item spells out at its own terminal.

        Equations
        Instances For
          def DistributedMorphology.VocabularyItem.ofFeatures {F : Type u_1} {E : Type u_2} (fs : List F) (e : E) :

          A context-free item: the features it spells out and its exponent.

          Equations
          Instances For

            fs ⟷ e: the context-free Vocabulary Item spelling out fs as e.

            Equations
            • One or more equations did not get rendered due to their size.
            Instances For
              @[simp]
              theorem DistributedMorphology.VocabularyItem.site_ofFeatures {F : Type u_1} {E : Type u_2} (fs : List F) (e : E) :
              @[simp]
              theorem DistributedMorphology.VocabularyItem.exponent_ofFeatures {F : Type u_1} {E : Type u_2} (fs : List F) (e : E) :
              (ofFeatures fs e).exponent = e