Documentation

Linglib.Syntax.ConstructionGrammar.Inheritance

Construction Grammar: Inheritance Modes #

Computational content for the two modes of constructional inheritance distinguished by [Gol95] §3.3.1 (the InheritanceMode enum in ConstructionGrammar.Basic), following [Die23]'s Table 2: in the complete mode, "high- and low-level representations are fully compatible with each other" — the unification-based regime [KF99] built their formal CxG on and [Sag12]'s SBCG inherits from HPSG — while in the default mode "low-level representations override high-level representations if there is a conflict", with formal semantics in the default-unification tradition ([LC99]). Complete mode is defined exactly on IsCompatible inputs; default mode (inheritField) lets the child win, and under multiple inheritance (a child with two or more schematic parents, [Die23] §2.2.2) leaves a field unspecified when the parents conflict and the child does not legislate (ResolvesField).

[Die23]'s other axis — impoverished vs. full entry model, i.e. whether shared information is stored once or redundantly at every level — is a storage claim orthogonal to the inheritance algebra and is not formalized here.

Main declarations #

Field algebra #

A specification field is an Option-valued partial value: none is "unspecified", and inheritance fills unspecified fields from parents.

def ConstructionGrammar.IsCompatible {α : Type u_1} (p q : Option α) :

Two partial field values are compatible — able to strictly unify: at most one is defined, or both agree. Complete-mode inheritance ([Die23] Table 2: representations "fully compatible with each other") is defined exactly on compatible values.

Equations
Instances For
    @[implicit_reducible]
    instance ConstructionGrammar.instDecidableIsCompatible {α : Type u_1} [DecidableEq α] (p q : Option α) :
    Decidable (IsCompatible p q)
    Equations
    def ConstructionGrammar.determinedValues {α : Type u_1} [DecidableEq α] (parents : List (Option α)) :
    List α

    The distinct values a family of parents determines for a field.

    Equations
    Instances For
      def ConstructionGrammar.HasConflict {α : Type u_1} [DecidableEq α] (parents : List (Option α)) :

      A parent family conflicts on a field when it determines two or more distinct values.

      Equations
      Instances For
        @[implicit_reducible]
        instance ConstructionGrammar.instDecidableHasConflict {α : Type u_1} [DecidableEq α] (parents : List (Option α)) :
        Decidable (HasConflict parents)
        Equations
        def ConstructionGrammar.inheritField {α : Type u_1} [DecidableEq α] (own : Option α) (parents : List (Option α)) :
        Option α

        Normal-mode (default) inheritance for one field ([Gol95] §3.3.1; [Die23] Table 2: "low-level representations override high-level representations if there is a conflict"; [LC99]): the inheriting construction's own value wins; an unspecified field takes the unique value its parents agree on; a parental conflict the child does not legislate leaves the field unspecified.

        Equations
        Instances For
          def ConstructionGrammar.ResolvesField {α : Type u_1} [DecidableEq α] (own : Option α) (parents : List (Option α)) :

          The child legislates wherever its parents conflict — [Gol95]'s normal mode: "conflicts are addressed by the inheriting construction, which specifies its own constraints".

          Equations
          Instances For
            @[implicit_reducible]
            instance ConstructionGrammar.instDecidableResolvesField {α : Type u_1} [DecidableEq α] (own : Option α) (parents : List (Option α)) :
            Decidable (ResolvesField own parents)
            Equations
            @[simp]
            theorem ConstructionGrammar.inheritField_some {α : Type u_1} [DecidableEq α] (x : α) (parents : List (Option α)) :
            inheritField (some x) parents = some x
            @[simp]
            theorem ConstructionGrammar.inheritField_nil {α : Type u_1} [DecidableEq α] (own : Option α) :
            inheritField own [] = own
            theorem ConstructionGrammar.inheritField_of_isCompatible {α : Type u_1} [DecidableEq α] (own : Option α) {p q : Option α} (h : IsCompatible p q) :
            inheritField own [p, q] = (own.or p).or q

            Absent conflict, normal-mode inheritance agrees with strict (complete-mode) unification: with compatible parents the inherited value is the priority union of child and parents. Normal mode departs from complete inheritance only at genuine conflicts.

            theorem ConstructionGrammar.resolvesField_of_isCompatible {α : Type u_1} [DecidableEq α] (own : Option α) {p q : Option α} (h : IsCompatible p q) :
            ResolvesField own [p, q]

            Compatible parents impose no resolution burden on the child.

            Constructional specification vocabulary #

            Typed values for the inheritable form-side properties at issue in nominal-modification networks ([Gol95] §3.3; [GS25] §6).

            Locus of primary stress in a modification construction: compound stress falls within the modifier (BLACKbird), phrasal modification stresses the head (black BIRD).

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

                Position of the modifier slot relative to the head.

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

                    Whether a construction's output can recur inside the construction's own open slot.

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

                        A partial constructional specification: the inheritable form-side properties of a (nominal-modification) construction. none means the construction does not legislate the field; inheritance fills unspecified fields from parents.

                        • level : Option BarLevel

                          X-bar level of the construction's output

                        • modPosition : Option ModPosition

                          Position of the modifier slot

                        • stress : Option StressLocus

                          Locus of primary stress

                        • selfEmbedding : Option SelfEmbedding

                          Whether the construction self-embeds

                        Instances For
                          def ConstructionGrammar.instDecidableEqCxnSpec.decEq (x✝ x✝¹ : CxnSpec) :
                          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

                              Componentwise compatibility: complete-mode inheritance ([Gol95]'s complete mode; the regime of [Sag12]'s type hierarchy) is defined exactly on compatible specifications.

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

                                Normal-mode inheritance from a family of parent specifications, componentwise.

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

                                  The child's own specification legislates every field its parents conflict on — well-formedness of a normal-mode multi-mother node.

                                  Equations
                                  • One or more equations did not get rendered due to their size.
                                  Instances For
                                    @[implicit_reducible]
                                    instance ConstructionGrammar.CxnSpec.instDecidableResolves (own : CxnSpec) (parents : List CxnSpec) :
                                    Decidable (own.Resolves parents)
                                    Equations
                                    @[simp]

                                    Compatible parents impose no resolution burden: any child — including one with no constraints of its own — is well-formed below them. Normal mode only demands child-side legislation at genuine conflicts.

                                    Inheritance through a constructicon #

                                    A specification assignment maps each construction to its own (conflict-resolving) specification; the network then computes each construction's full specification by normal-mode inheritance from the parents its links name.

                                    The constructions a network's links name as parents of name.

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

                                      The constructions a network's links name as children of name.

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

                                        Every link endpoint resolves to a construction in the network — no dangling name-keyed links.

                                        Equations
                                        Instances For

                                          Normal-mode derived specification of c in the network: c's own specification wins; fields it leaves open are filled by the unique value its parents agree on ([Die23] Table 2's default mode, computed over the links rather than stipulated per node).

                                          Equations
                                          Instances For

                                            Normal-mode well-formedness of the whole network: every construction legislates every field its parents conflict on (CxnSpec.Resolves, at each node).

                                            Equations
                                            Instances For

                                              Inheritance of denotation-valued fields #

                                              Denotations (e.g. PartialProp-valued pragmatic contributions) have no decidable equality, so agreeing parents cannot be deduplicated as in inheritField. inheritFieldUnique inherits when exactly one parent supplies a value — sufficient for single-mother inheritance, the configuration of conventional-subtype links.

                                              def ConstructionGrammar.inheritFieldUnique {α : Type u_1} (own : Option α) (parents : List (Option α)) :
                                              Option α

                                              Normal-mode inheritance for one field without decidable equality: the child's own value wins; an unspecified field takes the value of the unique supplying parent; multiple suppliers (which inheritField could reconcile when they agree) yield none.

                                              Equations
                                              Instances For
                                                def ConstructionGrammar.Constructicon.derivedField {α : Type u_1} (cx : Constructicon) (own : ConstructionOption α) (c : Construction) :
                                                Option α

                                                Derived value of a denotation-valued field for c in the network: c's own value wins; otherwise the value of the unique supplying parent.

                                                Equations
                                                Instances For