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 xxˉx \mapsto \bar{x} to handle negation in negation normal form (NNF) (Das et al., 2016). A rewrite rule is an expression lrl \to r where l,rTerl, r \in Ter, and lrl \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 xVarx \in \mathrm{Var} occurs at most once in ll
  • Right-linearity: Every variable xVarx \in \mathrm{Var} occurs at most once in rr
  • Linear rules: Both the above

A linear term rewriting system (TRS) RR is a set of such linear rules, with the critical property that the one-step reduction relation R\to_R is decidable in time polynomial in the term size.

Boolean-logic LNDEQ-TRS considers systems RR whose rules are all linear and satisfy the semantic soundness condition: for monotone Boolean functions flf_l and frf_r computed by ll and rr, flfrf_l \leq f_r pointwise (i.e., α, fl(α)fr(α)\forall \alpha,\ f_l(\alpha) \Rightarrow f_r(\alpha)). The universe LL 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 a,b:Aa, b : A, the identity type IdA(a,b)\mathrm{Id}_A(a, b) is refined in LNDEQ-TRS2_2 by explicit "computational paths" witnessing the equality (Veras et al., 2020). A computational path ss, denoted a=sb:Aa =_s b : A, consists of a finite, reversible sequence of definitional equality steps (rewrites and variable renamings), starting at aa and ending at bb. The constructors for paths include:

  • Reflexivity (ρ\rho)
  • Symmetry (σ(s)\sigma(s))
  • Transitivity (τ(s,t)\tau(s, t))
  • β\beta, η\eta: Primitive reduction steps for Π\Pi-types
  • ξ\xi, μ\mu, ν\nu: Congruence operations

Judgments in labelled natural deduction take the form Γa=sb:A\Gamma \vdash a =_s b : A, supplementing type- and term-formation with explicit evidence of equality. Term formation for identity types and their introduction (Id\mathrm{Id}-I) and elimination (Id\mathrm{Id}-E) rules are carried with path labels, supporting elimination/redex reduction via β\beta and η\eta conversions.

3. Rewrite Systems: Rules and Hierarchies

LNDEQ-TRS2_2 employs a rich set of rewrite rules for computational paths (Veras et al., 2020):

  • 39 original LNDeq_{eq}-TRS rules resolve path redundancies and administrate relations between symmetry, transitivity, and congruence operations among computational paths.
  • 7 additional TRS2_2 rules address redundancies at the rw-equality level (sequences of lower-level rewrites).
  • A "cd2_2" independence-of-choice rule identifies different reduction sequences (left- or right-oriented) producing the same outcome.

Table: Example Path Construct Rewrite Rules in LNDEQ-TRS2_2

Rule Pattern Result
Symmetry σ(σ(r))\sigma(\sigma(r)) rr
Transitivity τ(r,σ(r))\tau(r, \sigma(r)) ρ\rho
Congruence μ1(ξ1(r))\mu_1(\xi_1(r)) rr

This exhaustive rewriting system ensures termination and confluence: every rewrite sequence is finite and every computational path possesses a unique normal form under rw2_2-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 t0<t1<<tt_0 < t_1 < \dots < t_\ell of constant-free NNF linear terms in nn variables representing a nontrivial inference, one finds =O(n4)\ell = O(n^4). The proof employs the "relation web" W(t)W(t)—a complete graph on variables of tt, edges labeled by their least common connective. Maximal \land-cliques define minterms, while \lor-cliques define maxterms.

The intersection lemma yields critical chains Si(x)S^{(x)}_i (minterms) and Ti(x)T^{(x)}_i (maxterms) such that:

  1. S0(x)S1(x)S(x)S^{(x)}_0 \supseteq S^{(x)}_1 \supseteq \dots \supseteq S^{(x)}_\ell
  2. T0(x)T1(x)T(x)T^{(x)}_0 \subseteq T^{(x)}_1 \subseteq \dots \subseteq T^{(x)}_\ell
  3. Si(x)Ti(x)={x}S^{(x)}_i \cap T^{(x)}_i = \{ x \}

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 LL of sound linear rules is shown to be coNP-complete:

  • Soundness checking of lrl \to r reduces to the validity of ¬lr\neg l \lor r
  • Any Boolean tautology can be polynomially encoded to a linear inference

No polynomial-time decidable, sound, complete LNDEQ-TRS exists for Boolean logic unless coNP==NP.

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: rϕ\ell \to r \Leftrightarrow \phi, with ,r\ell, r of the same sort and constraint ϕ\phi in a background signature.

The proof system for reachability (DSTEP(R)(R)) defines φφ\varphi \Longrightarrow \varphi' meaning all terminating rewrite sequences from φ\varphi reach φ\varphi':

  • [Axiom]: For unsatisfiable constraints
  • [Subsumption]: Eliminates goals covered by successors
  • [Derive^\forall]: Symbolic successor derivation

DSTEP is sound and complete: RφφR \vdash \varphi \Longrightarrow \varphi' iff RφφR \models \varphi \Longrightarrow \varphi', with demonic validity as the coinductive semantic criterion.

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

6. Worked Examples and Practical Implementation

In LNDeq_{eq}-TRS2_2, explicit computational paths are constructed between complex terms, such as reductions in the lambda calculus (Veras et al., 2020). For example, (λx.(λy.yx)(λw.zw))v(\lambda x. (\lambda y. y x)(\lambda w. z w)) v to zvz v can be witnessed by a composite computational path combining η\eta- and β\beta-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 μf(τ(p,q))=τ(μf(p),μf(q))\mu_f(\tau(p,q)) = \tau(\mu_f(p),\mu_f(q)) for f:ABf: A \to B and paths p:x=yp: x = y, q:y=zq: y = z in AA is derived using the higher-level rule 42 from TRS2_2, 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, P4P_4-free graphs) (Das et al., 2016). Soundness and triviality of linear inference rules are characterized via minterm and maxterm inclusions, as per SMIN(f), SMIN(g),SS    fg\forall S \in \mathrm{MIN}(f),\ \exists S' \in \mathrm{MIN}(g), S' \subseteq S \iff f \leq g.

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., \lor-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.