Documentation

Linglib.Syntax.Minimalist.SyntacticObject.Build

Building and reading syntactic objects #

Merge on the carrier is written *: External Merge of two objects, and the re-merge of a mover with the remainder in Internal Merge. Concrete objects are built ordered, as PlanarSyntacticObjects, and forgotten to the carrier by toSyntacticObject. The accessors read the root token, the leaf and node counts, and the trace predicate, which recognizes the trace leaves, bare or indexed.

Main definitions #

@[instance_reducible]

The default syntactic object is the bare trace.

Equations

Merge as multiplication #

@[instance_reducible]

Merge on the carrier is written l * r.

Equations
@[instance_reducible]

Merge in braces, as [MCB25] writes it: {l, r} = merge l r, with {s} = s.

Equations
@[instance_reducible]

Merge on the ordered carrier, in the given order, is written l * r.

Equations

Merge in braces #

[MCB25] writes Merge as set formation, {α, β}. Lean's {a, b} is insert a {b}, so with {p} = p the object {T, {V, PossP}} is T * (V * PossP), in the given order; its elements are objects, a head entering as its leaf.

Lexical leaves from features #

A lexical leaf from a category and selectional stack.

Equations
Instances For
    def Minimalist.SyntacticObject.mkLeafPhon (cat : Cat) (sel : SelStack) (phon : String) (id : ℕ) :

    A lexical leaf with a phonological form.

    Equations
    Instances For

      Accessors #

      The lexical token at the root, if the root is a lexical leaf.

      Equations
      • s.token? = match (↑s).value with | Sum.inl o => o | Sum.inr val => none
      Instances For
        @[simp]

        s is a lexical leaf whose item's category is c.

        Equations
        Instances For
          @[simp]

          A trace leaf, bare or indexed.

          Equations
          Instances For
            @[instance_reducible]
            Equations

            The number of leaves, traces included.

            Equations
            Instances For

              An object is a lexical or trace leaf exactly when its leaf count is one.

              Equations
              Instances For
                @[instance_reducible]
                Equations
                @[instance_reducible]

                A shape summary; the full tree is a quotient with no faithful readout.

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

                nodeCount s = leafCount s - 1, the number of internal vertices of a full binary tree.

                Equations
                Instances For

                  Carrier tests #