encyclopegia.org

Rewrite order

In theoretical computer science, in particular in automated reasoning about formal equations, reduction orderings are used to prevent endless loops.[src] Rewrite orders, and, in turn, rewrite relations, are generalizations of this concept that have turned out to be useful in theoretical investigations.[src]

In theoretical computer science, in particular in automated reasoning about formal equations, reduction orderings are used to prevent endless loops.[src] Rewrite orders, and, in turn, rewrite relations, are generalizations of this concept that have turned out to be useful in theoretical investigations.[src] ==Motivation== Intuitively, a reduction order R relates two terms s and t if t is properly "simpler" than s in some sense.[src] For example, simplification of terms may be a part of a computer algebra program, and may be using the rule set { x+0 → x , 0+x → x , x*0 → 0, 0*x → 0, x*1 → x , 1*x → x }.[src] In order to prove impossibility of endless loops when simplifying a term using these rules, the reduction order defined by "sRt if term t is properly shorter than term s" can be used; applying any rule from the set will always properly shorten the term.[src] In contrast, to establish termination of "distributing-out" using the rule x*(y+z) → x*y+x*z, a more elaborate reduction order will be needed, since this rule may blow up the term size due to duplication of x.[src] The theory of rewrite orders aims at helping to provide an appropriate order in such cases.[src] ==Formal definitions== Formally, a binary relation (→) on the set of terms is called a rewrite relation if it is closed under contextual embedding and under instantiation; formally: if implies for all terms each path p of u, and each substitution σ.[src] If (→) is also irreflexive and transitive, then it is called a rewrite ordering, or rewrite preorder.[src] If the latter (→) is moreover well-founded, it is called a reduction ordering, or a reduction preorder.[src] Given a binary relation R, its rewrite closure is the smallest rewrite relation containing R.[src] A transitive and reflexive rewrite relation that contains the subterm ordering is called a simplification ordering.[src] ==Properties== The converse, the symmetric closure, the reflexive closure, and the transitive closure of a rewrite relation is again a rewrite relation, as are the union and the intersection of two rewrite relations.[src] The converse of a rewrite order is again a rewrite order.[src] While rewrite orders exist that are total on the set of ground terms ("ground-total" for short), no rewrite order can be total on the set of all terms.[src] A term rewriting system is terminating if its rules are a subset of a reduction ordering.[src] Conversely, for every terminating term rewriting system, the transitive closure of (::=) is a reduction ordering, which need not be extendable to a ground-total one, however.[src] For example, the ground term rewriting system { f(a)::=f(b), g(b)::=g(a) } is terminating, but can be shown so using a reduction ordering only if the constants a and b are incomparable.[src] A ground-total and well-founded rewrite ordering necessarily contains the proper subterm relation on ground terms.[src] Conversely, a rewrite ordering that contains the subterm relation is necessarily well-founded, when the set of function symbols is finite.[src] A finite term rewriting system is terminating if its rules are subset of the strict part of a simplification ordering.[src] ==Notes== ==References==[src]

24 sentences · 24 cited inline · 0 references stored

References

No reference rows published for this article.

Cite this article

MLA

"Rewrite order." encyclopegia.org, 2026, https://encyclopegia.org/wiki/rewrite-order. Accessed 29 November 2026.

Chicago

"Rewrite order." encyclopegia.org. Accessed November 29, 2026. https://encyclopegia.org/wiki/rewrite-order.

APA

encyclopegia.org. (2026). Rewrite order. Retrieved November 29, 2026, from https://encyclopegia.org/wiki/rewrite-order

Accessed November 29, 2026 · CC BY-SA 4.0 · citation page · JSON

Related articles

Order of the British Empire

stub · references available

Order of Railroad Telegraphers

stub · references available

Corinthian order

stub · references available

Order of African Redemption

stub · references available

Order of the Golden Spur

stub · references available

National Order of the Cedar

stub · references available

Honorary Order of the Yellow Star

stub · references available

Order of the Oak Crown

stub · references available
CC BY-SA 4.0 · share-alike · https://en.wikipedia.org/w/index.php?oldid=1379019339 · 0.5 · snapshot enwiki-001379019339

Cite · JSON · Search

Related services and records

Services

  • Estate — measured countries, lanes and facts
  • Intel — live corroborated events
  • Legal — statutes, cases and citations
  • Encyclopedia — articles with inline sources
  • Space — launches, satellites and orbits
  • Search — federated search and reports
  • Pass — passport account and SSO
  • Corpora — read-only corpus origins
  • e01 — self-hosted corpora and tools
  • Careers — open roles: frontier engineers and sales partners
  • Index — every corpus, paper and record
  • Estate guide — what a public data estate is
  • Founder — Lois-Kleinner Alpasan
  • Records — DOIs and external deposits
  • Documents — one-pagers, PDFs and QR codes
  • Brand kit — logos and share images
  • Papers — plain-language briefs with citations
  • Browser — search engine, PWA and bookmarklet
  • Anticloud — the operator and its projects

As seen in Business Insider · 336 outlets · evidence DOIs · plain-language papers

Text and metadata only; each target carries its own sources. Missing data is published as no-data, never estimated.