Papers
Topics
Authors
Recent
Search
2000 character limit reached

Constrained Higher-Order RPO & Reduction Pairs

Updated 4 February 2026
  • The paper introduces novel HORPO variants and constrained reduction pairs that prove termination for higher-order rewriting systems by integrating logical constraints and theory entailments.
  • Constrained orderings are defined frameworks that incorporate logical side conditions and curried, partially applied functions to enhance termination proofs in LCSTRSs and LCTRSs.
  • The methodology employs filtered argument comparisons and structured constraint propagation to ensure well-founded, stable orderings critical for dependency pair frameworks.

Constrained orderings, specifically higher-order recursive path orderings (HORPO) adapted for logical constraints and reduction pair frameworks, provide foundational tools for proving termination in higher-order rewriting systems enriched with background theories and logical side conditions. This class of techniques is crucial for the analysis of logically constrained simply typed rewriting systems (LCSTRSs) and higher-order logically constrained term rewriting systems (LCTRSs), accommodating both curried application and first-order logical constraints in the ordering (Kop, 2024, Guo et al., 2023).

1. Logically Constrained Rewriting and the Need for Constrained Orderings

LCSTRSs and higher-order LCTRSs generalize classical rewriting frameworks by incorporating:

  • Theory or value symbols: Certain function symbols’ ground instances are interpreted in a background theory (such as integer arithmetic), allowing terms like $0$, succ\text{succ}, pred\text{pred} to refer to values within a fixed model.
  • Logical constraints: Rewrite rules and comparisons are equipped with side conditions φ\varphi, first-order formulae in the background theory, restricting the applicability of rewriting and orientation.
  • Curried, higher-order signatures: Function symbols may be partially applied, necessitating orderings that handle terms like f xf\ x vs. f x yf\ x\ y in the presence of partial application.

Classical HORPO is inadequate in these settings, as it assumes maximally applied function symbols and is unconstrained by logical side-conditions. The principal technical problems are orienting partially applied terms and integrating theory reasoning with syntactic ordering.

2. HORPO-Variant for Constrained, Curried Systems

A specialized HORPO-variant for LCSTRSs employs two main mechanisms (Kop, 2024):

  • Argument filter Ï€\pi: Assigns to each non-theory symbol ff of arity mm a set Ï€(f)⊆{1,…,m}\pi(f) \subseteq \{1,\ldots,m\} of active argument positions, restricting recursive comparison to these selected arguments. This enables orientation in the curried setting where partial applications may arise.
  • Constrained reduction pair: All strict comparisons succ\text{succ}0 are augmented to succ\text{succ}1, requiring the constraint succ\text{succ}2 to be provable in the theory for the comparison to hold. The ordering is systematically embedded as a pair succ\text{succ}3, with both components augmented by logical constraints.

Basic Structure

Given types (base sort succ\text{succ}4 and arrow types succ\text{succ}5), non-value symbols (with partial application and argument filters), and background orders succ\text{succ}6 on the theory, the following inductive relations are defined:

  • Equivalence succ\text{succ}7 of curried terms via succ\text{succ}8 and precedence succ\text{succ}9,
  • Unconstrained covering orderings pred\text{pred}0 (quasi-order) and pred\text{pred}1 (well-founded strict order), using rules for curried application, filtered-argument comparison, and precedence,
  • Constrained reduction pair, where pred\text{pred}2 and pred\text{pred}3 carry constraint pred\text{pred}4 and a value-variable set pred\text{pred}5, enforcing theory-order entailment for pure theory terms and stable syntactic comparison elsewhere.

The resulting pred\text{pred}6 forms a constrained reduction pair, with:

  • pred\text{pred}7 reflexive, monotonic, stable,
  • pred\text{pred}8 well-founded, stable,
  • strict compatibility: pred\text{pred}9, φ\varphi0, φ\varphi1, ensuring suitability for termination proofs in the dependency pair (DP) framework.

3. Higher-Order Constrained HORPO for LCTRSs

The constrained HORPO for higher-order LCTRSs extends classical HORPO by threading logical constraints φ\varphi2 through each comparison and by supporting both lexicographic and multiset status (Guo et al., 2023). Essential ingredients are:

  • Sorts and types: Including distinguished theory sorts φ\varphi3,
  • Theory orders φ\varphi4: Well-founded orders on interpretation domains φ\varphi5,
  • Precedence and status: Precedence φ\varphi6 on function symbols and theory-symbol separation, status map φ\varphi7,
  • Constraint propagation: All relations φ\varphi8 and φ\varphi9 are defined inductively, carrying constraint f xf\ x0 and closed under context and substitution.

Structural Clauses

  • Theory-term comparison: For f xf\ x1 theory terms of sort f xf\ x2, f xf\ x3 (entailment in background theory).
  • Lexicographic/multiset extension: When comparing heads f xf\ x4, f xf\ x5, the order is extended to the argument vectors by f xf\ x6.
  • Head dominance and decomposition: Precedence controls application cases and subterm descent.
  • Substitution and constraint stability: If f xf\ x7 and f xf\ x8, then f xf\ x9. The ordering is stable under substitution respecting the theory sorts.

These properties establish f x yf\ x\ y0 as a constrained reduction pair, compatible with abstract DP frameworks.

4. Principal Meta-Theoretical Properties

Both approaches establish:

  • Well-foundedness: Ensured by a type-driven computability argument or induction on a measure combining syntactic and theory subterms—for any fixed constraint, no infinite descending chains in f x yf\ x\ y1 or f x yf\ x\ y2 exist.
  • Monotonicity and stability: f x yf\ x\ y3 (or f x yf\ x\ y4) is context- and substitution-monotonic; strict monotonicity is generally weakened ("weak monotonicity"), as only the covering order must be strictly monotonic for DP applicability (Kop, 2024).
  • Soundness in termination frameworks: If every DP and rule is oriented (i.e., f x yf\ x\ y5 for every DP f x yf\ x\ y6), then termination is guaranteed via reduction-pair results (Guo et al., 2023).

5. Exemplars and Comparative Features

Constraint-driven orientation:

  • Example: For f x yf\ x\ y7, comparing f x yf\ x\ y8 versus f x yf\ x\ y9 under constraint Ï€\pi0, one shows Ï€\pi1 by applying filtered argument comparison and checking theory entailments for each argument, reducing to background-theory inequalities (Kop, 2024).

Feature Summary Table

Aspect HORPO-variant for LCSTRS (Kop, 2024) Constrained HORPO for LCTRSs (Guo et al., 2023)
Constraint syntax General 1st-order formula π\pi2 General theory constraint π\pi3
Application handling Curried, partial app (argument filter) Application, variable-abstraction
Status (lex/mul) Lexicographic (filter π\pi4) Lex/multiset (π\pi5)
DP/Reduction pair Weak monotonicity in strict component Standard reduction pair framework
Theory integration Explicit, by value variables and entailment External entailment π\pi6

Both frameworks contrast with the classical computability-closure based HORPO (0708.3582): the modern, syntax-driven definitions absorb the closure into the inductive structure, enabling direct decidability, quadratic complexity, and modular support for logical constraints.

6. Limitations and Practical Application

Limitations:

  • The LCSTRS ordering treats only lexicographic status (Ï€\pi7 filters) rather than full multiset status.
  • Weak monotonicity of strict order can hinder orientation of context-sensitive or complex rules.
  • Inference of precedence and argument filters generally requires heuristics or external (SMT) support.

Practical Use:

  • Users compute precedenceÏ€\pi8 and argument filtersÏ€\pi9 heuristically.
  • All rules and DPs are oriented using the constrained ordering, with theory side-conditions discharged via a background solver.
  • If all orientation succeeds, DP-framework methods yield termination of the target LCSTRS or higher-order LCTRS (Kop, 2024, Guo et al., 2023).

7. Relation to Other Orderings and Theoretical Significance

The advanced constrained HORPOs offer:

  • Direct handling of higher-order, constrained, and curried rewriting,
  • Integration with dependency-pair and reduction-pair frameworks,
  • Compatibility with strictly positive inductive types and recursors, facilitated by explicit abstraction-handling rules (in the case of (0708.3582)),
  • Decidable, syntax-directed definitions with clearly characterized complexity and stability properties.

Their introduction broadens the applicability of syntactic termination orderings to modern rewriting systems encompassing theories, logical side-conditions, and higher-order program analysis, with clear metatheoretical soundness and practical effectiveness.

Definition Search Book Streamline Icon: https://streamlinehq.com
References (3)

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 Constrained Orderings: Higher-Order RPO and Reduction Pairs.