Papers
Topics
Authors
Recent
Search
2000 character limit reached

LNDEQ-TRS: Equality Term Rewriting

Updated 6 December 2025
  • LNDEQ-TRS is a framework integrating labelled natural deduction and linear term rewriting to manage equality across Boolean logic and type theory.
  • It employs explicit computational paths and rigorous rewrite rules to ensure termination, confluence, and polynomially bound derivation lengths.
  • Interconnections with Boolean function theory and graph theory validate its expressiveness while exposing inherent computational complexity.

The LNDEQ-TRS ("Labelled Natural Deduction Equality Term Rewriting System") framework encompasses a family of term-rewriting systems designed for expressing, managing, and reasoning about equality and inference rules within formal logic and type theory. These systems leverage linear rewriting rules and explicit computational paths, enabling precise formulation and manipulation of equalities and inference derivations across Boolean logic, labelled deduction, and homotopy type theory. LNDEQ-TRS serves as a nexus for techniques from term rewriting, Boolean function theory, graph theory, and type-theoretic labelled deduction, yielding powerful results on expressiveness, complexity, and proof-theoretic properties.

1. Linear Rewriting Rules in Boolean Logic

LNDEQ-TRS for Boolean logic is constructed over the signature Σ={∧,∨,⊤,⊥}\Sigma = \{\land, \lor, \top, \bot\} and a countable set of propositional variables Var\mathrm{Var} equipped with a fixed involution x↦xˉx \mapsto \bar{x} to handle negation in negation normal form (NNF) (Das et al., 2016). A rewrite rule is an expression l→rl \to r where l,r∈Terl, r \in Ter, and l≠rl \neq r, instantiated in context as C[σ(l)]→C[σ(r)]C[\sigma(l)] \to C[\sigma(r)] for arbitrary one-hole contexts C[⋅]C[\cdot] and substitutions σ\sigma.

Linearity is defined as:

  • Left-linearity: Every variable x∈Varx \in \mathrm{Var} occurs at most once in Var\mathrm{Var}0
  • Right-linearity: Every variable Var\mathrm{Var}1 occurs at most once in Var\mathrm{Var}2
  • Linear rules: Both the above

A linear term rewriting system (TRS) Var\mathrm{Var}3 is a set of such linear rules, with the critical property that the one-step reduction relation Var\mathrm{Var}4 is decidable in time polynomial in the term size.

Boolean-logic LNDEQ-TRS considers systems Var\mathrm{Var}5 whose rules are all linear and satisfy the semantic soundness condition: for monotone Boolean functions Var\mathrm{Var}6 and Var\mathrm{Var}7 computed by Var\mathrm{Var}8 and Var\mathrm{Var}9, x↦xˉx \mapsto \bar{x}0 pointwise (i.e., x↦xˉx \mapsto \bar{x}1). The universe x↦xˉx \mapsto \bar{x}2 of all sound linear inferences is then coNP-complete.

2. Structure and Syntax of Computational Paths

In intensional Martin-Löf type theory, for terms x↦xˉx \mapsto \bar{x}3, the identity type x↦xˉx \mapsto \bar{x}4 is refined in LNDEQ-TRSx↦xˉx \mapsto \bar{x}5 by explicit "computational paths" witnessing the equality (Veras et al., 2020). A computational path x↦xˉx \mapsto \bar{x}6, denoted x↦xˉx \mapsto \bar{x}7, consists of a finite, reversible sequence of definitional equality steps (rewrites and variable renamings), starting at x↦xˉx \mapsto \bar{x}8 and ending at x↦xˉx \mapsto \bar{x}9. The constructors for paths include:

  • Reflexivity (l→rl \to r0)
  • Symmetry (l→rl \to r1)
  • Transitivity (l→rl \to r2)
  • l→rl \to r3, l→rl \to r4: Primitive reduction steps for l→rl \to r5-types
  • l→rl \to r6, l→rl \to r7, l→rl \to r8: Congruence operations

Judgments in labelled natural deduction take the form l→rl \to r9, supplementing type- and term-formation with explicit evidence of equality. Term formation for identity types and their introduction (l,r∈Terl, r \in Ter0-I) and elimination (l,r∈Terl, r \in Ter1-E) rules are carried with path labels, supporting elimination/redex reduction via l,r∈Terl, r \in Ter2 and l,r∈Terl, r \in Ter3 conversions.

3. Rewrite Systems: Rules and Hierarchies

LNDEQ-TRSl,r∈Terl, r \in Ter4 employs a rich set of rewrite rules for computational paths (Veras et al., 2020):

  • 39 original LNDl,r∈Terl, r \in Ter5-TRS rules resolve path redundancies and administrate relations between symmetry, transitivity, and congruence operations among computational paths.
  • 7 additional TRSl,r∈Terl, r \in Ter6 rules address redundancies at the rw-equality level (sequences of lower-level rewrites).
  • A "cdl,r∈Terl, r \in Ter7" independence-of-choice rule identifies different reduction sequences (left- or right-oriented) producing the same outcome.

Table: Example Path Construct Rewrite Rules in LNDEQ-TRSl,r∈Terl, r \in Ter8

Rule Pattern Result
Symmetry l,r∈Terl, r \in Ter9 l≠rl \neq r0
Transitivity l≠rl \neq r1 l≠rl \neq r2
Congruence l≠rl \neq r3 l≠rl \neq r4

This exhaustive rewriting system ensures termination and confluence: every rewrite sequence is finite and every computational path possesses a unique normal form under rwl≠rl \neq r5-reduction.

4. Proof-Theoretic and Complexity Properties

A central result for Boolean-logic LNDEQ-TRS is the polynomial bound on nontrivial derivation lengths (Das et al., 2016). For a strictly increasing sequence l≠rl \neq r6 of constant-free NNF linear terms in l≠rl \neq r7 variables representing a nontrivial inference, one finds l≠rl \neq r8. The proof employs the "relation web" l≠rl \neq r9—a complete graph on variables of C[σ(l)]→C[σ(r)]C[\sigma(l)] \to C[\sigma(r)]0, edges labeled by their least common connective. Maximal C[σ(l)]→C[σ(r)]C[\sigma(l)] \to C[\sigma(r)]1-cliques define minterms, while C[σ(l)]→C[σ(r)]C[\sigma(l)] \to C[\sigma(r)]2-cliques define maxterms.

The intersection lemma yields critical chains C[σ(l)]→C[σ(r)]C[\sigma(l)] \to C[\sigma(r)]3 (minterms) and C[σ(l)]→C[σ(r)]C[\sigma(l)] \to C[\sigma(r)]4 (maxterms) such that:

  1. C[σ(l)]→C[σ(r)]C[\sigma(l)] \to C[\sigma(r)]5
  2. C[σ(l)]→C[σ(r)]C[\sigma(l)] \to C[\sigma(r)]6
  3. C[σ(l)]→C[σ(r)]C[\sigma(l)] \to C[\sigma(r)]7

Edge changes in the relation web correspond to minterm shrinkage and maxterm growth, bounding the length of derivations.

Combining this with proof-theoretic complexity, the universe C[σ(l)]→C[σ(r)]C[\sigma(l)] \to C[\sigma(r)]8 of sound linear rules is shown to be coNP-complete:

  • Soundness checking of C[σ(l)]→C[σ(r)]C[\sigma(l)] \to C[\sigma(r)]9 reduces to the validity of C[â‹…]C[\cdot]0
  • Any Boolean tautology can be polynomially encoded to a linear inference

No polynomial-time decidable, sound, complete LNDEQ-TRS exists for Boolean logic unless coNPC[â‹…]C[\cdot]1NP.

5. Coinductive and Circular Proof Systems

Advancing from purely syntactic rewriting, logically constrained term rewriting systems (LCTRS) as in LNDEQ-TRS enable coinductive semantics and circular proofs (Ciobâcă et al., 2018). Rewrite rules possess logical constraints: C[⋅]C[\cdot]2, with C[⋅]C[\cdot]3 of the same sort and constraint C[⋅]C[\cdot]4 in a background signature.

The proof system for reachability (DSTEPC[â‹…]C[\cdot]5) defines C[â‹…]C[\cdot]6 meaning all terminating rewrite sequences from C[â‹…]C[\cdot]7 reach C[â‹…]C[\cdot]8:

  • [Axiom]: For unsatisfiable constraints
  • [Subsumption]: Eliminates goals covered by successors
  • [DeriveC[â‹…]C[\cdot]9]: Symbolic successor derivation

DSTEP is sound and complete: σ\sigma0 iff σ\sigma1, with demonic validity as the coinductive semantic criterion.

To finitely represent infinite coinductive proofs, the circularity rule ([circ]) is introduced in DCCσ\sigma2 by allowing guarded, finite circular proof branches. Soundness of circularity is preserved under appropriate guardedness conditions.

6. Worked Examples and Practical Implementation

In LNDσ\sigma3-TRSσ\sigma4, explicit computational paths are constructed between complex terms, such as reductions in the lambda calculus (Veras et al., 2020). For example, σ\sigma5 to σ\sigma6 can be witnessed by a composite computational path combining σ\sigma7- and σ\sigma8-reductions, each step labeled and chained by transitivity. The rewrite calculus explicitly records each transition and provides a unique normal form for the path due to confluence and termination.

A non-trivial equality such as σ\sigma9 for x∈Varx \in \mathrm{Var}0 and paths x∈Varx \in \mathrm{Var}1, x∈Varx \in \mathrm{Var}2 in x∈Varx \in \mathrm{Var}3 is derived using the higher-level rule 42 from TRSx∈Varx \in \mathrm{Var}4, establishing the congruence of path composition under function application.

For LCTRS, practical reachability analysis can be performed with tools such as the "RMT" system (Ciobâcă et al., 2018), which utilizes DAG-based term representation, maximal sharing, and an SMT-solver backend (default: Z3). Proof search is bounded or goal-directed, yielding either infinite coinductive DSTEP trees or finite circular DCC trees. Verified domains range from arithmetic algorithms (e.g., compositeness, greatest common divisors, summation, and powers) to operational semantics for imperative and functional programming languages.

7. Interconnections: Term Rewriting, Boolean Function Theory, and Graph Theory

LNDEQ-TRS integrates concepts from term rewriting theory (rules, contexts, modular equational deduction), Boolean function theory (monotone functions, minterms, maxterms, read-once functions), and graph theory (relation webs, x∈Varx \in \mathrm{Var}5-free graphs) (Das et al., 2016). Soundness and triviality of linear inference rules are characterized via minterm and maxterm inclusions, as per x∈Varx \in \mathrm{Var}6.

Gurvich’s theorem on read-once Boolean functions underpins the structural analysis—every minterm meets every maxterm in exactly one variable, a property leveraged to bound derivation lengths. Graph-theoretical invariants, such as clique sizes and edge-flips in relation webs, precisely translate into Boolean function and rewriting measures. Canonical rules like "medial" are characterized graph-theoretically as those which preserve, e.g., x∈Varx \in \mathrm{Var}7-edges in the rewriting process.

This suggests that LNDEQ-TRS achieves a unique intersection of expressiveness, polynomially-bounded derivational complexity, and deep interconnectivity among foundational areas, while demonstrating inherent computational limitations dictated by complexity-theoretic boundaries such as coNP-completeness.

Topic to Video (Beta)

No one has generated a video about this topic yet.

Whiteboard

No one has generated a whiteboard explanation for this topic yet.

Follow Topic

Get notified by email when new papers are published related to LNDEQ-TRS Term Rewriting System.