Certification Problem
Input (COPS 137)
We consider the TRS containing the following rules:
max(x,0) |
→ |
x |
(1) |
max(s(x),s(y)) |
→ |
s(max(y,x)) |
(2) |
max(x,y) |
→ |
max(y,x) |
(3) |
The underlying signature is as follows:
{max/2, 0/0, s/1}Property / Task
Prove or disprove confluence.Answer / Result
Yes.Proof (by csi @ CoCo 2022)
1 Redundant Rules Transformation
To prove that the TRS is (non-)confluent, we show (non-)confluence of the following
modified system:
max(x,y) |
→ |
max(y,x) |
(3) |
max(s(x),s(y)) |
→ |
s(max(y,x)) |
(2) |
max(x,0) |
→ |
x |
(1) |
max(0,x) |
→ |
x |
(4) |
All redundant rules that were added or removed can be
simulated in 2 steps
.
1.1 Decreasing Diagrams
1.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).
-
↦ 2
-
max(s(x),s(y)) |
→ |
s(max(y,x)) |
(2) |
↦ 0
-
↦ 1
-
↦ 0
The 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 = max(s(y),s(x))←→ε s(max(y,x)) = t can be joined as follows.
s
↔ s(max(x,y)) ↔
t
-
The critical peak s = max(0,x)←→ε x = t can be joined as follows.
s
↔
t
-
The critical peak s = max(x,0)←→ε x = t can be joined as follows.
s
↔
t
-
The critical peak s = s(max(x94,x93))←→ε max(s(x94),s(x93)) = t can be joined as follows.
s
↔ s(max(x93,x94)) ↔
t
-
The critical peak s = x←→ε max(0,x) = t can be joined as follows.
s
↔ x ↔
t
-
The critical peak s = 0←→ε 0 = t can be joined as follows.
s
↔
t
-
The critical peak s = y←→ε max(y,0) = t can be joined as follows.
s
↔ y ↔
t
-
The critical peak s = 0←→ε 0 = t can be joined as follows.
s
↔
t
/>