Documentation

Linglib.Syntax.DependencyGrammar.Catena

Catenae #

This file defines a catena: a word or combination of words connected in the undirected presentation of a dependency tree.

def DependencyGrammar.IsCatena {n : } (g : Graph n) (s : Finset (Fin n)) :

s is a catena if the subgraph induced on s is connected.

Equations
Instances For
    def DependencyGrammar.IsConstituent {n : } (g : Graph n) (s : Finset (Fin n)) :

    s is a constituent: exactly the dominance cone of some position.

    Equations
    Instances For
      @[instance_reducible]
      instance DependencyGrammar.instDecidableIsCatena {n : } (g : Graph n) (s : Finset (Fin n)) :
      Decidable (IsCatena g s)
      Equations
      @[instance_reducible]
      instance DependencyGrammar.instDecidableIsConstituent {n : } (g : Graph n) (s : Finset (Fin n)) :
      Decidable (IsConstituent g s)
      Equations
      theorem DependencyGrammar.singleton_isCatena {n : } (g : Graph n) (v : Fin n) :
      IsCatena g {v}

      Every single word is a catena.

      theorem DependencyGrammar.connected_induce_cone {n : } (g : Graph n) (v : Fin n) :
      (SimpleGraph.induce {x : Fin n | Dominates g v x} g.toSimpleGraph).Connected

      The dominance cone of a position induces a connected subgraph of the undirected view: each dominated position is reached along its own dominance path, which never leaves the cone.

      theorem DependencyGrammar.IsConstituent.isCatena {n : } {g : Graph n} {s : Finset (Fin n)} (h : IsConstituent g s) :

      Every constituent is a catena: a constituent is the dominance cone of some position, and cones induce connected subgraphs.

      theorem DependencyGrammar.isConstituent_univ {n : } {g : Graph n} (hT : g.IsTree) :
      IsConstituent g Finset.univ

      The whole sentence is a constituent: the root's dominance cone.

      theorem DependencyGrammar.isCatena_univ {n : } {g : Graph n} (hT : g.IsTree) :
      IsCatena g Finset.univ

      The whole sentence is a catena.