YES
Confluence Proof
Confluence Proof
by csi
Input
The rewrite relation of the following TRS is considered.
+(0,y) |
→ |
y |
+(x,0) |
→ |
x |
+(s(x),y) |
→ |
s(+(x,y)) |
+(x,s(y)) |
→ |
s(+(x,y)) |
+(x,y) |
→ |
+(y,x) |
Proof
1 Decreasing Diagrams
1.1 Relative Termination Proof
The duplicating rules (R) terminate relative to the other rules (S).
1.1.1 R is empty
There are no rules in the TRS R. Hence, R/S is relative terminating.
1.2 Rule Labeling
Confluence is proven, because all critical peaks can be joined decreasingly
using the following rule labeling function (rules that are not shown have label 0).
-
+(0,y)→y ↦ 1
-
+(x,0)→x ↦ 0
-
+(s(x),y)→s(+(x,y)) ↦ 2
-
+(x,s(y))→s(+(x,y)) ↦ 0
-
+(x,y)→+(y,x) ↦ 6
All critical pairs are joinable:
- 0
-
s(y)←s(+(0,y))
-
y←+(y,0)
- 0
-
s(x)←s(+(x,0))
-
x←+(0,x)
-
s(+(x80,0))→s(x80)
-
s(+(x82,s(y)))→s(s(+(x82,y)))←s(+(s(x82),y))
-
s(+(x84,y))→s(+(y,x84))←+(y,s(x84))
-
s(+(0,x87))→s(x87)
-
s(+(s(x),x89))→s(s(+(x,x89)))←s(+(x,s(x89)))
-
s(+(x,x91))→s(+(x91,x))←+(s(x91),x)
-
+(y,0)→y
-
+(0,x)→x
-
+(y,s(x))→s(+(y,x))←s(+(x,y))
-
+(s(y),x)→s(+(y,x))←s(+(x,y))
Tool configuration
csi
- version: csi 1.2.5 [hg: unknown]
- strategy:
(if left-linear then (cr -dup;(( lpo -quasi || (matrix -dim 1 -ib 3 -ob 4 | matrix -dim 2 -ib 2 -ob 2 | matrix -dim 3 -ib 1 -ob 2 | arctic -dim 2 -ib 2 -ob 2) || (if duplicating then fail else (bounds -rt || bounds -rt -qc))[1] || poly -ib 2 -ob 4 -nl2 -heuristic 1 || fail )[5]*);shift -lstar);(rule_labeling | rule_labeling -left)?;decreasing else fail)!