Term Rewriting System
Updated 2026-07-30
Summary
In mathematics, linguistics, computer science, and logic, rewriting covers a wide range of methods of replacing subterms of a formula with other terms. Such methods may be achieved by rewriting systems (also known as rewrite systems, rewrite engines, or reduction systems). In their most basic form, …
Definition
Term: a symbolic expression. Rewriting rule: replace one pattern with another. Reduction: simplify an expression by repeatedly applying rules. Scaffold role: the foundation of symbolic computation. Provides a formal framework for symbolic manipulation and program transformation.
Introduction
How to use
The foundation of symbolic computation. Provides a formal framework for symbolic manipulation and program transformation.
Mechanism
Repeatedly reduce symbolic terms using a set of rewriting rules (pattern → replacement) until no rule is applicable (normal form); the properties of the system (termination, confluence) determine whether reduction converges uniquely.
Practice
In progress 0/4Practice this model in one real situation:
Cases
- Use rules such as `add(x,0)→x` repeatedly to simplify expressions; compiler optimization's syntax tree rewriting is an example.
Common pitfalls
- Ignoring rules may lead to non-termination or different results depending on order; treating "can be rewritten" as "result is correct".
Sources
Source support: Explicit
References currently contain only Wikipedia links; primary sources still need review.
- en.wikipedia.orghttps://en.wikipedia.org/wiki/Rewritingverified
account_treeGenealogyexpand_more
PRIVATE NOTES · Only visible to you
SAVED Q&A
ENTRY Q&A · Private saving available
Ask with a clear boundary
thinkingmodels answers from published entry context only.
Your question is sent to thinkingmodels. The answer uses public entry context only.
RELATED MODELS