Knuth–Bendix completion
Builds on Term rewriting for equational theoriesRewriting systemConfluenceNewman's lemmaWell-founded relation
Definition
Let be the set of terms over a signature and a set of variables. Let be a finite set of equations between terms. Let be a reduction order on , that is, a strict order with these properties. It is well-founded, and implies for every context and for every substitution . Let and be rules with disjoint variables. Let be a position of where the subterm is not a variable and has a most general unifier with . Then the pair is a critical pair. The Knuth–Bendix completion procedure, with input and , maintains a set of rules of a term rewriting system:
- To orient an equation with : add to if , add if , and stop with failure otherwise.
- Start with and orient every equation of .
- For each critical pair of rules of , compute normal forms of and of with respect to . If , orient .
- Repeat step 3 until every critical pair of has equal normal forms, and then stop with output .
Remarks
If the procedure stops with output , then is terminating, since for every rule, and confluent. Indeed, a terminating term rewriting system whose critical pairs are joinable is locally confluent, and Newman's lemma gives confluence. Moreover follows from if and only if and have the same normal form with respect to . Example: for the group axioms , , and a suitable reduction order, completion stops with ten rules, among them , and . Non-example: for the procedure fails in step 1 for every reduction order, since would give by the substitution exchanging and . The procedure can also run forever, adding infinitely many rules. Practical versions also simplify and delete rules during the run.
Reading path
To understand this page from the ground up, read these 6 pages in order. The foundations come first.
Show the path as a graph
- no evidence level
- Confluence concept
- Rewriting system concept
- Term rewriting for equational theories concept
- Well-founded relation concept
- Newman's lemma statement
- Knuth–Bendix completion definition
Further reading
About this page
| Tag | MPMMVXXXZS |
|---|---|
| URI | m2://MPMMVXXXZS |
| Kind | definition |
| Writing | W0 stub |
| MSC | 68Q42, 68V15, 03D03 |
| Defines | Knuth–Bendix completion |
| Uses | Term rewriting for equational theories, Rewriting system, Confluence, Newman's lemma, Well-founded relation |
| Changed | 3 November 2026 |
Markdown · JSON · Edit on GitHub
What this page needs for W1
- a source with a locator (0 of 1)
The writing levels say how complete the text of a page is. They do not measure its truth.
What links here
No page links to this page yet.