Documentation

Linglib.Syntax.Tree.Cat

Default Category System (UD-grounded) #

Syntax.Cat — the default instantiation of Syntax.Tree's category parameter C, grounded in Universal Dependencies UPOS ([dMMNZ21]). Word-level categories via head : UPOS → Cat, phrasal via proj : UPOS → Cat, plus S and CP.

Split from Syntax/Tree/Basic.lean so that category-generic consumers (e.g. the type-driven composition engine, which ignores categories) do not carry the UD dataset in their transitive imports.

inductive Syntax.Cat :

Default syntactic category system grounded in Universal Dependencies UPOS ([dMMNZ21]).

  • head pos — word-level (terminal): wraps a UPOS tag directly
  • proj pos — maximal X-bar projection of a UPOS head
  • S — sentence/clause (not a projection of a single lexical head)
  • CP — complementizer phrase

Phrasal categories are derived systematically: NP = proj .NOUN, VP = proj .VERB, DP = proj .DET, ConjP = proj .CCONJ, etc.

This is one possible instantiation of Tree's C parameter. Framework-specific category systems (CCG functors, Minimalist feature bundles, etc.) can be used instead.

Instances For
    def Syntax.instDecidableEqCat.decEq (x✝ x✝¹ : Cat) :
    Decidable (x✝ = x✝¹)
    Equations
    Instances For
      @[implicit_reducible]
      instance Syntax.instReprCat :
      Repr Cat
      Equations
      def Syntax.instReprCat.repr :
      CatStd.Format
      Equations
      • One or more equations did not get rendered due to their size.
      • Syntax.instReprCat.repr Syntax.Cat.S prec✝ = Repr.addAppParen (Std.Format.nest (if prec✝ 1024 then 1 else 2) (Std.Format.text "Syntax.Cat.S")).group prec✝
      • Syntax.instReprCat.repr Syntax.Cat.CP prec✝ = Repr.addAppParen (Std.Format.nest (if prec✝ 1024 then 1 else 2) (Std.Format.text "Syntax.Cat.CP")).group prec✝
      Instances For
        @[implicit_reducible]
        instance Syntax.instInhabitedCat :
        Inhabited Cat
        Equations
        @[implicit_reducible]
        instance Syntax.instBEqCat :
        BEq Cat
        Equations
        @[reducible, match_pattern, inline]
        Equations
        Instances For
          @[reducible, match_pattern, inline]
          Equations
          Instances For
            @[reducible, match_pattern, inline]
            Equations
            Instances For
              @[reducible, match_pattern, inline]
              Equations
              Instances For
                @[reducible, match_pattern, inline]
                Equations
                Instances For
                  @[reducible, match_pattern, inline]
                  Equations
                  Instances For
                    @[reducible, match_pattern, inline]
                    Equations
                    Instances For
                      @[reducible, match_pattern, inline]
                      Equations
                      Instances For
                        @[reducible, match_pattern, inline]
                        Equations
                        Instances For
                          @[reducible, match_pattern, inline]
                          Equations
                          Instances For
                            @[reducible, match_pattern, inline]
                            Equations
                            Instances For
                              @[reducible, match_pattern, inline]
                              Equations
                              Instances For
                                @[reducible, match_pattern, inline]
                                Equations
                                Instances For
                                  @[reducible, match_pattern, inline]
                                  Equations
                                  Instances For
                                    @[reducible, match_pattern, inline]
                                    Equations
                                    Instances For
                                      @[reducible, match_pattern, inline]
                                      Equations
                                      Instances For
                                        @[reducible, match_pattern, inline]
                                        Equations
                                        Instances For
                                          @[reducible, match_pattern, inline]
                                          Equations
                                          Instances For
                                            @[reducible, match_pattern, inline]
                                            Equations
                                            Instances For
                                              @[reducible, match_pattern, inline]
                                              Equations
                                              Instances For
                                                @[reducible, match_pattern, inline]
                                                Equations
                                                Instances For