Cognitive Scaffold

Preparing your thinking workspace

arrow_back_ios_new
MENTAL MODEL · M12794

Term Rewriting System

Term Rewriting System
SystemsHigh supportSystems Theory
Included
account_tree

Updated 2026-07-30

Loading revision record…

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.

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/4

Practice this model in one real situation:

Check to track your progress (stored locally)
Learning progress0%

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.

  • link
    en.wikipedia.orghttps://en.wikipedia.org/wiki/RewritingZH · Explicit
    verified
account_treeGenealogyexpand_more

RELATED MODELS