39:
752:
if and only if all critical pairs are convergent. Thus, to find out if a term rewriting system is weakly confluent, it suffices to test all critical pairs and see if they are convergent. This makes it possible to find out algorithmically if a term rewriting system is weakly confluent or not, given
167:
The actual definition of a critical pair is slightly more involved as it excludes pairs that can be obtained from critical pairs by substitution and orients the pair based on the overlap. Specifically, for a pair of overlapping rules
272:
219:
494:
430:
314:
111:(lower row, left and right), respectively. The latter two terms form the critical pair. They can be eventually rewritten to a common term, if the rewrite rule set is
391:
364:
344:
145:
for which two different applications of a rewrite rule (either the same rule applied differently, or two different rules) yield the terms
826:
63:
32:
762:
766:
749:
738:
112:
869:
317:
224:
171:
435:
849:
741:, the critical pair may not converge, so critical pairs are potential sources where confluence will fail.
396:
124:
28:
59:
737:
have a common reduct and thus the critical pair is convergent. If the term rewriting system is not
822:
785:
499:
When both sides of the critical pair can reduce to the same term, the critical pair is called
503:. Where one side of the critical pair is identical to the other, the critical pair is called
277:
369:
349:
322:
863:
844:
17:
840:
105:
90:
73:
67:
788:
127:
when two rewrite rules overlap to yield two different terms. In more detail, (
793:
770:
721:
Confluence clearly implies convergent critical pairs: if any critical pair ⟨
635:
As another example, consider the term rewriting system with the single rule
38:
854:
42:
Triangle diagram of a critical pair obtained from two rewrite rules
753:
that one can algorithmically check if two terms converge.
821:. Cambridge, UK: Cambridge University Press. p. 53.
669:
By applying this rule in two different ways to the term
27:
This article is about terms resulting from overlaps in
612:)⟩. Both of these terms can be derived from the term
515:
For example, in the term rewriting system with rules
438:
399:
372:
352:
325:
280:
227:
174:
765:, an algorithm based on critical pairs to compute a
488:
424:
385:
358:
338:
308:
266:
213:
96:(lower row, middle) can be rewritten to the term
773:term rewriting system equivalent to a given one
8:
432:that are most general, the critical pair is
332:
474:
455:
437:
413:
398:
377:
371:
351:
324:
285:
279:
258:
245:
232:
226:
205:
192:
179:
173:
267:{\displaystyle \rho _{1}:l_{1}\to r_{1}}
214:{\displaystyle \rho _{0}:l_{0}\to r_{0}}
141:) is a critical pair if there is a term
37:
809:
748:states that a term rewriting system is
489:{\displaystyle (D\sigma ,r_{0}\sigma )}
632:) by applying a single rewrite rule.
7:
853:, Cambridge University Press, 1998
425:{\displaystyle s\sigma =l_{1}\tau }
25:
750:weakly (a.k.a. locally) confluent
713:)) is a (trivial) critical pair.
366:(that is not a variable) matches
483:
464:
448:
439:
333:
329:
303:
297:
274:, with the overlap being that
251:
198:
1:
85:. The resulting overlay term
850:Term Rewriting and All That
588:the only critical pair is ⟨
886:
26:
393:under some substitutions
763:Knuth–Bendix completion
309:{\displaystyle l_{0}=D}
819:Term rewriting systems
490:
426:
387:
360:
340:
310:
268:
215:
116:
50:(upper row, left) and
31:. For other uses, see
29:term rewriting systems
491:
427:
388:
386:{\displaystyle l_{1}}
361:
341:
311:
269:
216:
125:term rewriting system
41:
18:Critical pair (logic)
436:
397:
370:
350:
323:
278:
225:
172:
746:critical pair lemma
717:Critical pair lemma
316:for some non-empty
786:Weisstein, Eric W.
486:
422:
383:
356:
336:
306:
264:
211:
117:
870:Rewriting systems
665:
664:
584:
583:
359:{\displaystyle s}
339:{\displaystyle D}
16:(Redirected from
877:
833:
832:
814:
799:
798:
689:), we see that (
640:
639:
520:
519:
495:
493:
492:
487:
479:
478:
460:
459:
431:
429:
428:
423:
418:
417:
392:
390:
389:
384:
382:
381:
365:
363:
362:
357:
345:
343:
342:
337:
315:
313:
312:
307:
290:
289:
273:
271:
270:
265:
263:
262:
250:
249:
237:
236:
220:
218:
217:
212:
210:
209:
197:
196:
184:
183:
21:
885:
884:
880:
879:
878:
876:
875:
874:
860:
859:
837:
836:
829:
817:Terese (2003).
816:
815:
811:
806:
789:"Critical Pair"
784:
783:
780:
759:
729:⟩ arises, then
719:
513:
470:
451:
434:
433:
409:
395:
394:
373:
368:
367:
348:
347:
346:, and the term
321:
320:
281:
276:
275:
254:
241:
228:
223:
222:
201:
188:
175:
170:
169:
165:
158:
151:
140:
133:
110:
95:
80:
36:
23:
22:
15:
12:
11:
5:
883:
881:
873:
872:
862:
861:
858:
857:
855:(book weblink)
835:
834:
827:
808:
807:
805:
802:
801:
800:
779:
778:External links
776:
775:
774:
758:
755:
718:
715:
667:
666:
663:
662:
655:
586:
585:
582:
581:
574:
559:
558:
543:
512:
509:
485:
482:
477:
473:
469:
466:
463:
458:
454:
450:
447:
444:
441:
421:
416:
412:
408:
405:
402:
380:
376:
355:
335:
331:
328:
305:
302:
299:
296:
293:
288:
284:
261:
257:
253:
248:
244:
240:
235:
231:
208:
204:
200:
195:
191:
187:
182:
178:
164:
161:
156:
149:
138:
131:
106:
91:
76:
24:
14:
13:
10:
9:
6:
4:
3:
2:
882:
871:
868:
867:
865:
856:
852:
851:
846:
845:Tobias Nipkow
842:
839:
838:
830:
828:0-521-39115-6
824:
820:
813:
810:
803:
796:
795:
790:
787:
782:
781:
777:
772:
768:
764:
761:
760:
756:
754:
751:
747:
742:
740:
736:
732:
728:
724:
716:
714:
712:
708:
704:
700:
696:
692:
688:
684:
680:
676:
672:
660:
656:
653:
649:
645:
642:
641:
638:
637:
636:
633:
631:
627:
623:
619:
615:
611:
607:
603:
599:
595:
591:
579:
575:
572:
568:
564:
561:
560:
556:
552:
548:
544:
541:
537:
533:
529:
525:
522:
521:
518:
517:
516:
510:
508:
506:
502:
497:
480:
475:
471:
467:
461:
456:
452:
445:
442:
419:
414:
410:
406:
403:
400:
378:
374:
353:
326:
319:
300:
294:
291:
286:
282:
259:
255:
246:
242:
238:
233:
229:
206:
202:
193:
189:
185:
180:
176:
162:
160:
155:
148:
144:
137:
130:
126:
122:
121:critical pair
114:
109:
103:
99:
94:
88:
84:
79:
75:
72:
69:
65:
61:
58:(right). The
57:
53:
49:
46: →
45:
40:
34:
33:Critical pair
30:
19:
848:
841:Franz Baader
818:
812:
792:
745:
743:
734:
730:
726:
722:
720:
710:
706:
702:
698:
694:
690:
686:
682:
678:
674:
670:
668:
658:
651:
647:
643:
634:
629:
625:
621:
617:
613:
609:
605:
601:
597:
593:
589:
587:
577:
570:
566:
562:
554:
550:
546:
539:
535:
531:
527:
523:
514:
504:
500:
498:
166:
153:
146:
142:
135:
128:
123:arises in a
120:
118:
107:
101:
97:
92:
86:
82:
77:
70:
60:substitution
55:
51:
47:
43:
771:terminating
163:Definitions
804:References
501:convergent
794:MathWorld
767:confluent
739:confluent
481:σ
462:τ
446:σ
420:τ
404:σ
252:→
230:ρ
199:→
177:ρ
113:confluent
864:Category
757:See also
511:Examples
505:trivial
318:context
68:subterm
64:unifies
825:
74:|
81:with
843:and
823:ISBN
769:and
744:The
733:and
221:and
152:and
100:and
66:the
701:),
600:),
866::
847:,
791:.
725:,
685:),
661:.
657:→
628:),
580:,
576:→
557:)
545:→
538:),
507:.
496:.
159:.
134:,
119:A
98:tσ
62:σ
831:.
797:.
735:b
731:a
727:b
723:a
711:x
709:,
707:x
705:(
703:f
699:x
697:,
695:x
693:(
691:f
687:x
683:x
681:,
679:x
677:(
675:f
673:(
671:f
659:x
654:)
652:y
650:,
648:x
646:(
644:f
630:z
626:y
624:,
622:x
620:(
618:g
616:(
614:f
610:z
608:,
606:x
604:(
602:f
598:z
596:,
594:x
592:(
590:g
578:x
573:)
571:y
569:,
567:x
565:(
563:g
555:z
553:,
551:x
549:(
547:g
542:)
540:z
536:y
534:,
532:x
530:(
528:g
526:(
524:f
484:)
476:0
472:r
468:,
465:]
457:1
453:r
449:[
443:D
440:(
415:1
411:l
407:=
401:s
379:1
375:l
354:s
334:]
330:[
327:D
304:]
301:s
298:[
295:D
292:=
287:0
283:l
260:1
256:r
247:1
243:l
239::
234:1
207:0
203:r
194:0
190:l
186::
181:0
157:2
154:t
150:1
147:t
143:t
139:2
136:t
132:1
129:t
115:.
108:p
104:σ
102:s
93:p
89:σ
87:s
83:l
78:p
71:s
56:r
54:→
52:l
48:t
44:s
35:.
20:)
Text is available under the Creative Commons Attribution-ShareAlike License. Additional terms may apply.