Catenae #
A catena is a word or a combination of words that is connected in the undirected view of a dependency graph. Every constituent, the dominance cone of a word, is a catena, and a head with one of several dependents is a catena that is not a constituent.
Main definitions #
DependencyGrammar.IsCatena: the words ofsinduce a connected subgraph.DependencyGrammar.IsConstituent:sis the dominance cone of a word.
Main statements #
DependencyGrammar.IsConstituent.isCatena: every constituent is a catena.DependencyGrammar.not_isConstituent_pair: in a forest, a head with one of two dependents is not a constituent.DependencyGrammar.Graph.IsTree.isTree_toSimpleGraph: the undirected view of a dependency tree is a tree.
References #
s is a catena if the subgraph induced on s is connected.
Equations
- DependencyGrammar.IsCatena g s = (SimpleGraph.induce (↑s) g.toSimpleGraph).Connected
Instances For
s is a constituent if it is the dominance cone of some position.
Equations
- DependencyGrammar.IsConstituent g s = ∃ (v : Fin n), ∀ (w : Fin n), w ∈ s ↔ DependencyGrammar.Dominates g v w
Instances For
Equations
- DependencyGrammar.instDecidableIsCatena g s = { decide := decide ((SimpleGraph.induce (↑s) g.toSimpleGraph).Preconnected ∧ Finset.univ.Nonempty), reflects_decide := ⋯ }
Equations
- One or more equations did not get rendered due to their size.
Every single word is a catena.
The dominance cone of a position induces a connected subgraph of the undirected view, since each dominated position is reached along its own dominance path, which never leaves the cone.
Every constituent is a catena, since a constituent is the dominance cone of some position and cones induce connected subgraphs.
A head with one of its dependents is a catena.
In a forest, a head with one of its dependents is not a constituent when the head has another dependent, since the head's cone contains the other dependent and the dependent's cone does not contain the head.
The whole sentence is a constituent, the dominance cone of the root.
The whole sentence is a catena.
The undirected view of a dependency tree is a tree: it is connected, the whole sentence being a catena, and its edges are the links from each position other than the root to its head.