Documentation

Linglib.Theories.Syntax.HPSG.Core.Basic

inductive HPSG.VForm :

Verb form features.

Instances For
    def HPSG.instReprVForm.repr :
    VFormStd.Format
    Equations
    Instances For
      @[implicit_reducible]
      instance HPSG.instReprVForm :
      Repr VForm
      Equations
      @[implicit_reducible]
      instance HPSG.instDecidableEqVForm :
      DecidableEq VForm
      Equations
      inductive HPSG.Inv :

      The INV(erted) feature for subject-aux inversion.

      Instances For
        def HPSG.instReprInv.repr :
        InvStd.Format
        Equations
        Instances For
          @[implicit_reducible]
          instance HPSG.instReprInv :
          Repr Inv
          Equations
          @[implicit_reducible]
          instance HPSG.instDecidableEqInv :
          DecidableEq Inv
          Equations
          inductive HPSG.Mode :

          The MODE feature on CONTENT, per @cite{sag-wasow-bender-2003} Ch. 7.

          SWB2003 uses MODE to classify the semantic type of CONTENT:

          • ref: referential — pronouns, R-expressions, nouns
          • ana: anaphoric — reflexives, reciprocals
          • prop: propositional — declarative clauses
          • ques: question — interrogative clauses
          • dir: directive — imperative clauses
          • noneMode: for elements with no MODE specification
          Instances For
            @[implicit_reducible]
            instance HPSG.instReprMode :
            Repr Mode
            Equations
            def HPSG.instReprMode.repr :
            ModeStd.Format
            Equations
            Instances For
              @[implicit_reducible]
              instance HPSG.instDecidableEqMode :
              DecidableEq Mode
              Equations

              Head features (shared between head and phrase).

              Instances For
                def HPSG.instReprHeadFeatures.repr :
                HeadFeaturesStd.Format
                Equations
                • One or more equations did not get rendered due to their size.
                Instances For
                  @[implicit_reducible]
                  Equations
                  def HPSG.instDecidableEqHeadFeatures.decEq (x✝ x✝¹ : HeadFeatures) :
                  Decidable (x✝ = x✝¹)
                  Equations
                  • One or more equations did not get rendered due to their size.
                  Instances For

                    Content features for binding theory, per @cite{sag-wasow-bender-2003} Ch. 7.

                    SWB2003's binding theory uses MODE and ARG-ST outranking:

                    • Principle A: [MODE ana] must be outranked by a coindexed element
                    • Principle B: [MODE ref] must NOT be outranked by a coindexed element

                    This subsumes the Chomskyan three-principle system — both pronouns and R-expressions are [MODE ref], so Principle B handles both. No separate "Principle C" is needed.

                    • mode : Mode

                      MODE feature: ana for anaphors, ref for referential NPs

                    • index : Option

                      Referential index (for coindexation)

                    Instances For
                      Equations
                      • One or more equations did not get rendered due to their size.
                      Instances For
                        def HPSG.instDecidableEqContentFeatures.decEq (x✝ x✝¹ : ContentFeatures) :
                        Decidable (x✝ = x✝¹)
                        Equations
                        Instances For
                          structure HPSG.Valence :

                          Valence features (what arguments are needed).

                          Instances For
                            def HPSG.instReprValence.repr :
                            ValenceStd.Format
                            Equations
                            • One or more equations did not get rendered due to their size.
                            Instances For
                              @[implicit_reducible]
                              Equations
                              def HPSG.instDecidableEqValence.decEq (x✝ x✝¹ : Valence) :
                              Decidable (x✝ = x✝¹)
                              Equations
                              • HPSG.instDecidableEqValence.decEq { subj := a, comps := a_1 } { subj := b, comps := b_1 } = if h : a = b then h if h : a_1 = b_1 then h isTrue else isFalse else isFalse
                              Instances For
                                structure HPSG.Synsem :

                                The SYNSEM value (syntax-semantics bundle).

                                • cat : UD.UPOS
                                • val : Valence
                                • mod : Option UD.UPOS

                                  MOD feature: what this sign modifies (none = not a modifier).

                                  Per @cite{pollard-sag-1994} Ch. 1, MOD is a HEAD feature that restricts what a modifier can combine with. Relative clauses have [MOD NP]; adjectives have [MOD N].

                                Instances For
                                  @[implicit_reducible]
                                  Equations
                                  def HPSG.instReprSynsem.repr :
                                  SynsemStd.Format
                                  Equations
                                  • One or more equations did not get rendered due to their size.
                                  Instances For
                                    structure HPSG.ArgSt :

                                    ARG-ST: the ordered list of a word's arguments, per @cite{sag-wasow-bender-2003} Ch. 7.

                                    ARG-ST = SPR ⊕ COMPS. Outranking is defined over position in this list: element i outranks element j iff i < j.

                                    Instances For
                                      def HPSG.instReprArgSt.repr :
                                      ArgStStd.Format
                                      Equations
                                      • HPSG.instReprArgSt.repr x✝ prec✝ = Std.Format.bracket "{ " (Std.Format.nil ++ Std.Format.text "args" ++ Std.Format.text " := " ++ (Std.Format.nest 8 (repr x✝.args)).group) " }"
                                      Instances For
                                        @[implicit_reducible]
                                        instance HPSG.instReprArgSt :
                                        Repr ArgSt
                                        Equations

                                        Build ARG-ST from valence (SPR ⊕ COMPS).

                                        Equations
                                        Instances For
                                          def HPSG.ArgSt.outranks (argSt : ArgSt) (i j : ) :
                                          Bool

                                          Does element at position i outrank element at position j on ARG-ST?

                                          Per @cite{sag-wasow-bender-2003}: "X outranks Y iff X precedes Y on some ARG-ST list."

                                          Equations
                                          • argSt.outranks i j = (decide (i < j) && decide (j < argSt.args.length))
                                          Instances For
                                            inductive HPSG.Sign :

                                            An HPSG sign: word or phrase with syntactic info.

                                            Instances For
                                              partial def HPSG.instReprSign.repr :
                                              SignStd.Format
                                              @[implicit_reducible]
                                              instance HPSG.instReprSign :
                                              Repr Sign
                                              Equations

                                              Get the SYNSEM of a sign.

                                              Equations
                                              Instances For
                                                partial def HPSG.Sign.yield :
                                                SignList Word

                                                Get the yield (word list) of a sign.

                                                Head-Complement Schema: head combines with its complements.

                                                Instances For

                                                  Head-Subject Schema: phrase combines with its subject.

                                                  Instances For

                                                    Head-Modifier Schema: head combines with a modifier.

                                                    Per @cite{sag-wasow-bender-2003} (46), a saturated head combines with a modifier whose MOD value matches the head's category. Used for adjective modification ("tall boy"), PP modification ("book on the table"), and relative clauses ("book that John read").

                                                    Instances For

                                                      [INV +] requires aux-initial; [INV -] requires subject-initial.

                                                      Equations
                                                      Instances For
                                                        def HPSG.invPlusImpliesAuxFirst (inv : Inv) (ws : List Word) :

                                                        [INV +] correlates with aux-before-subject order.

                                                        Equations
                                                        Instances For

                                                          [INV -] correlates with subject-before-aux order.

                                                          Equations
                                                          Instances For