Documentation

Linglib.Theories.Syntax.MereologicalSyntax.Bridge

Bridge: SynObj → SynGraph #

@cite{adger-2025}

Embeds tree-based syntactic objects (SynObj) into graph-based structures (SynGraph MLabel), making SynGraph the canonical operational type for Angular Locality while preserving SynObj as an ergonomic builder.

SynObj is an inductive type that gives structural recursion and rfl proofs — useful for tree-shaped work (classifier hierarchies, basic clause structure). SynGraph supports multiparthood (unbounded in-degree), required for movement in mereological syntax. The embedding connects them: build with SynObj, convert to SynGraph when you need AL, movement, or island constraints.

Pre-order Indexing #

The embedding assigns node indices via pre-order traversal:

Key Results #

Number of nodes in a SynObj tree.

Equations
Instances For

    Embed a SynObj tree into a SynGraph MLabel, with a proof that numNodes > 0. Used by toSynGraph which extracts the graph.

    Equations
    Instances For

      Embed a SynObj tree into a SynGraph MLabel.

      Node indexing follows pre-order: root = 0, then 1-part subtree, then 2-part subtree. The result satisfies isTree (acyclic, in-degree ≤ 1).

      The definition is compositional: each case builds the graph from subgraphs, making structural induction possible.

      Equations
      Instances For

        Angular Locality check via the graph representation: does any node with label l satisfy satisfiesAL for the root (node 0)?

        This is the existential analogue of satisfiesAL that operates on labels rather than node indices, making it directly comparable to the tree-based angularLocalityOK.

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

          The tree-based Angular Locality check agrees with the graph-based version on all SynObj trees: angularLocalityOK l t returns the same answer as the existential check "does any node with label l satisfy satisfiesAL in the embedded graph?"

          Proved by induction on SynObj, showing that the pre-order embedding preserves within-dimension chains.