Dependency length #
This file defines the total dependency length of a graph and its relabeling along a position permutation. Dependency-length minimisation claims natural languages reduce the former beyond what independent constraints predict; relabeling is the formal core of the random-reordering baselines that test the claim.
Main definitions #
Graph.totalLengthis the sum ofNat.distover all arcs.OberstesGesetzbounds every arc length by a threshold.Graph.relabeltransports a graph along a position permutation;Graph.mirroris relabeling alongFin.rev.
Main results #
Graph.totalLength_relabel: relabeling along an isometry of the positions preserves total dependency length.
References #
[Beh32] — Deutsche Syntax IV, source of the "Oberstes Gesetz" threshold [FLG20] — Dependency locality as an explanatory principle for word order, source of the minimisation claim and the random-reordering baselines
Total dependency length: the sum of Nat.dist over all arcs — the
quantity dependency-length minimisation is about.
Equations
- g.totalLength = ∑ v : Fin n, ∑ w ∈ g.children v, (↑v).dist ↑w
Instances For
Total dependency length reads only the arc structure, never the tokens.
[Beh32]'s Oberstes Gesetz: every arc has length at most
threshold.
Equations
- DependencyGrammar.OberstesGesetz g threshold = ∀ ⦃v w : Fin n⦄, g.Adj v w → (↑v).dist ↑w ≤ threshold
Instances For
Relabeling: same structure, different linearization #
Transport a graph along a position permutation: arcs, tokens, and root move together, so the labeled structure is unchanged and only the linearization varies.
Equations
Instances For
Relabeling along an isometry of the positions preserves total dependency length.
Position reversal preserves Nat.dist.
The mirror image of a graph has the same total dependency length — the head-final preference is the exact mirror of the head-initial one ([FLG20], examples (7)–(8)).