Documentation

Linglib.Syntax.CCG.Classical

Classical (rule-restricted) CCG #

The classical CCG formalism of [VSW94] and [WJ88], in which combinatory rules may be restricted per grammar. Following [KKS15], the restriction modelled here is a target restriction: a rule fires only when the target of its primary input category (the leftmost atom, after stripping all arguments) is the distinguished atom S.

This is the substrate that makes the CCG≡TAG weak-equivalence — and constructions of CCGs for non-context-free languages — expressible. It is distinct from the unrestricted, universal-rule CCG of Syntax/CCG/Basic (CCG.DerivStep), which [KKS15] show is strictly weaker than TAG.

Main definitions #

Implementation notes #

These rules are the fragment of [KKS15]'s rule schema exercised by the constructions in Studies/KuhlmannKollerSatta2015 and Syntax/CCG/CrossSerial: forward/backward application, forward harmonic composition of degree 1–2, and forward crossed composition of degree 1. (The full schema also permits backward composition and degree-2 crossed composition; the harmonic/crossed distinction is a consequence of the slash directions, not a separate rule class. Those instances are simply not needed here.) The target restriction is fixed to S, the common case in [KKS15] Example 2 and in [Ste00a]; general VW-CCG permits other per-grammar restrictions.

The target of a category: its leftmost atom (strip all arguments).

Equations
Instances For

    Whether a category's target is the distinguished atom S.

    Equations
    Instances For

      Rule-restricted combinatory rules #

      Each rule is gated on target (primary) = S (the target restriction of [KKS15], Example 2).

      def CCG.Classical.fapp :
      CatCatOption Cat

      Forward application: (X/Y) Y ⇒ X, target of the functor S.

      Equations
      Instances For
        def CCG.Classical.bapp :
        CatCatOption Cat

        Backward application: Y (X\Y) ⇒ X, target of the functor S.

        Equations
        Instances For
          def CCG.Classical.fcomp1 :
          CatCatOption Cat

          Forward composition, degree 1 (harmonic): (X/Y) (Y/Z) ⇒ X/Z, target S.

          Equations
          Instances For
            def CCG.Classical.fcomp2 :
            CatCatOption Cat

            Forward composition, degree 2 (harmonic): (X/Y) (Y/Z/W) ⇒ X/Z/W, target S.

            Equations
            Instances For
              def CCG.Classical.fcompX1 :
              CatCatOption Cat

              Forward crossed composition, degree 1: (X/Y) (Y\Z) ⇒ X\Z, target S.

              Equations
              Instances For

                Derivations #

                A derivation under the rule-restricted rules.

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

                    The category derived, threading the restricted rules (none if any rule is illegal, e.g. its target restriction fails).

                    Equations
                    Instances For

                      Surface string: leaf forms left to right.

                      Equations
                      Instances For