YES
Confluence Proof
Confluence Proof
by Hakusan
Input
The rewrite relation of the following TRS is considered.
+(0,y) |
→ |
y |
+(s(x),y) |
→ |
s(+(x,y)) |
s(s(x)) |
→ |
x |
Proof
1 Compositional Rule Labeling with Parallel Critical Pairs
Confluence is proven by compositional rule labeling with parallel critical pairs.
The following labeling functions phi and psi are used (if only one is displayed, then phi = psi).
-
+(0,y)→y ↦ 0
-
+(s(x),y)→s(+(x,y)) ↦ 0
-
s(s(x))→x ↦ 0
-
+(0,y)→y ↦ 0
-
+(s(x),y)→s(+(x,y)) ↦ 0
-
s(s(x))→x ↦ 0
The non-0-0 parallel critical pairs are joined as follows.
-
The parallel-phi-root-psi critical pairs can be joined as follows. Here,
↔ is always chosen as an appropriate rewrite relation which
is automatically inferred by the certifier.
-
The parallel-psi-root-phi critical pairs can be joined as follows. Here,
↔ is always chosen as an appropriate rewrite relation which
is automatically inferred by the certifier.
The remaining rules are handled recursively.
+(0,y) |
→ |
y |
+(s(x),y) |
→ |
s(+(x,y)) |
s(s(x)) |
→ |
x |
1.1 Compositional Parallel Critical Pair Systems
All parallel critical pairs of the TRS R are joinable by R.
This can be seen as follows:
The parallel critical pairs can be joined as follows. Here,
↔ is always chosen as an appropriate rewrite relation which
is automatically inferred by the certifier.
-
The critical peak s = +(x1_1,y2) {1}←+(s(s(x1_1)),y2)→ε s(+(s(x1_1),y2)) = t can be joined as follows.
s
↔ s(s(+(x1_1,y2))) ↔
t
-
The critical peak s = s(x1_1) {1}←s(s(s(x1_1)))→ε s(x1_1) = t can be joined as follows.
s
↔
t
The TRS C is chosen as:
There are no rules.
Consequently, PCPS(R,C) is included in the following TRS P where
steps are used to show that certain pairs are C-convertible.
+(s(s(x1_1)),y2) |
→ |
+(x1_1,y2) |
+(s(s(x1_1)),y2) |
→ |
s(+(s(x1_1),y2)) |
Relative termination of P / R is proven as follows.
1.1.1 Rule Removal
Using the
recursive path order with the following precedence and status
prec(0) |
= |
0 |
|
stat(0) |
= |
lex
|
prec(+) |
= |
2 |
|
stat(+) |
= |
lex
|
prec(s) |
= |
0 |
|
stat(s) |
= |
lex
|
all rules of R could be removed.
Moreover,
all rules of S could be removed.
1.1.1.1 R is empty
There are no rules in the TRS R. Hence, R/S is relative terminating.
Confluence of C is proven as follows.
1.1.2 (Weakly) Orthogonal
Confluence is proven since the TRS is (weakly) orthogonal.
Tool configuration
Hakusan