Table of Contents
Fetching ...

Partial Rewriting and Value Interpretation of Logically Constrained Terms (Full Version)

Takahito Aoto, Naoki Nishida, Jonas Schöpf

TL;DR

The paper introduces partial constrained rewriting for existentially constrained terms within LCTRSs, distinguishing it from existing most general constrained rewriting. It shows a direct correspondence where MG rewriting subsumes partial rewriting, and demonstrates that MG steps can simulate partial steps via subsumption and equivalence. Through novel value interpretations, the authors provide precise characterizations of partial versus MG reductions and clarify normal-form behavior under each regime. The work clarifies the theoretical landscape for constrained rewriting, enabling more robust reasoning about reachability, joinability, and equivalence in LCTRSs, with potential extensions to non-left-linear rules and commutativity with equivalence as future directions.

Abstract

Logically constrained term rewrite systems (LCTRSs) are a rewriting formalism that naturally supports built-in data structures, including integers and bit-vectors. The recent framework of existentially constrained terms and most general constrained rewriting on them (Takahata et al., 2025) has many advantages over the original approach of rewriting constrained terms. In this paper, we introduce partial constrained rewriting, a variant of rewriting existentially constrained terms whose underlying idea has already appeared implicitly in previous analyses and applications of LCTRSs. We examine the differences between these two notions of constrained rewriting. First, we establish a direct correspondence between them, leveraging subsumption and equivalence of constrained terms where appropriate. Then we give characterizations of each of them, using the interpretation of existentially constrained terms by instantiation. We further introduce the novel notion of value interpretation, that highlights subtle differences between partial and most general rewriting.

Partial Rewriting and Value Interpretation of Logically Constrained Terms (Full Version)

TL;DR

The paper introduces partial constrained rewriting for existentially constrained terms within LCTRSs, distinguishing it from existing most general constrained rewriting. It shows a direct correspondence where MG rewriting subsumes partial rewriting, and demonstrates that MG steps can simulate partial steps via subsumption and equivalence. Through novel value interpretations, the authors provide precise characterizations of partial versus MG reductions and clarify normal-form behavior under each regime. The work clarifies the theoretical landscape for constrained rewriting, enabling more robust reasoning about reachability, joinability, and equivalence in LCTRSs, with potential extensions to non-left-linear rules and commutativity with equivalence as future directions.

Abstract

Logically constrained term rewrite systems (LCTRSs) are a rewriting formalism that naturally supports built-in data structures, including integers and bit-vectors. The recent framework of existentially constrained terms and most general constrained rewriting on them (Takahata et al., 2025) has many advantages over the original approach of rewriting constrained terms. In this paper, we introduce partial constrained rewriting, a variant of rewriting existentially constrained terms whose underlying idea has already appeared implicitly in previous analyses and applications of LCTRSs. We examine the differences between these two notions of constrained rewriting. First, we establish a direct correspondence between them, leveraging subsumption and equivalence of constrained terms where appropriate. Then we give characterizations of each of them, using the interpretation of existentially constrained terms by instantiation. We further introduce the novel notion of value interpretation, that highlights subtle differences between partial and most general rewriting.
Paper Structure (9 sections, 20 theorems, 8 equations, 1 figure)

This paper contains 9 sections, 20 theorems, 8 equations, 1 figure.

Key Result

Lemma 4

Let $\Pi X.\ s~[\space\exists \vec{x}.\ \varphi\space]$ be a satisfiable existentially constrained term. Suppose that $\rho\colon \Pi X.\ \ell \rightarrow r~[\space\varphi\space]$ is a left-linear constrained rule satisfying $\mathcal{V}\mathsf{ar}(\rho) \cap \mathcal{V}\mathsf{ar}(s,\varphi) = \var

Figures (1)

  • Figure 1: Most General and Partial Rewrite Steps

Theorems & Definitions (36)

  • Example 1
  • Example 2
  • Definition 3: Partial $\rho$-Redex
  • Lemma 4
  • Definition 5: Partial Constrained Reduction
  • Example 6
  • Theorem 7
  • Lemma 8
  • Theorem 9
  • Definition 10: Interpretation of Existentially Constrained Terms
  • ...and 26 more