Documentation

Linglib.Syntax.DependencyGrammar.Crossings

Crossings under random linearization #

This file proves that if a sentence's word order were lost and replaced by a uniformly random one, the expected number of crossings would depend only on the arc structure: two links cross in a third of the linearizations when they share no endpoint, and in none otherwise. No tree hypothesis is needed; the identity holds for any link structure.

Main definitions #

Main results #

References #

[FC17] — Random crossings in dependency trees, source of the expected-crossings identity (eq. 13) [FC13] — Hubiness, length, crossings and their relationships in syntactic dependencies, reduces the disjoint-pair count to the link count and the degree second moment

Crossings under a relabelling #

def DependencyGrammar.Graph.crossingsUnder {n : } (g : Graph n) (σ : Equiv.Perm (Fin n)) :

The crossings g would show if its positions were rearranged by σ: crossing quadruples are scored in the positions σ assigns rather than in g's own.

Equations
Instances For

    The unordered pairs of links sharing no endpoint — the pairs that can cross at all, [FC17]'s potential crossings. Each pair is counted once, by the representative with both links least-endpoint-first and the earlier-starting link first.

    Equations
    • One or more equations did not get rendered due to their size.
    Instances For
      theorem DependencyGrammar.Graph.crossings_relabel {n : } {g : Graph n} (σ : Equiv.Perm (Fin n)) :

      Relabelling moves the crossings to the relabelled positions.

      One linearization in twenty-four alternates a distinct quadruple #

      Summing over linearizations, grouped by quadruple #

      Eight ordered witnesses per unordered disjoint pair #

      The expected-crossings identity #

      theorem DependencyGrammar.Graph.three_mul_sum_crossings_relabel {n : } {g : Graph n} :
      3 * σ : Equiv.Perm (Fin n), (g.relabel σ).crossings = n.factorial * g.disjointLinkPairs

      Expected crossings under random linearization ([FC17], eq. 13): summed over all n ! linearizations, three times the crossing count is n ! times the number of disjoint link pairs. So a uniformly random ordering expects a third of a crossing per pair of links sharing no endpoint, whatever the sentence's own order was.