Certification Problem
Input (COPS 18)
We consider the TRS containing the following rules:
f(x) |
→ |
g(a) |
(1) |
g(x) |
→ |
x |
(2) |
h(x,x) |
→ |
0 |
(3) |
a |
→ |
1 |
(4) |
The underlying signature is as follows:
{f/1, g/1, a/0, h/2, 0/0, 1/0}Property / Task
Prove or disprove confluence.Answer / Result
Yes.Proof (by csi @ CoCo 2023)
1 Persistent Decomposition (Many-Sorted)
Confluence
is proven, because
the maximal
systems
induced by the sorts in the following many-sorted sort attachment
are
confluent.
f |
: |
3 → 2 |
g |
: |
2 → 2 |
a |
: |
2 |
h |
: |
1 ⨯ 1 → 0 |
0 |
: |
0 |
1 |
: |
2 |
The subsystems are(1.1)
(1.2)
f(x) |
→ |
g(a) |
(1) |
g(x) |
→ |
x |
(2) |
a |
→ |
1 |
(4) |
1.1 Redundant Rules Transformation
To prove that the TRS is (non-)confluent, we show (non-)confluence of the following
modified system:
All redundant rules that were added or removed can be
simulated in 2 steps
.
1.1.1 Locally confluent and terminating
Confluence is proven by showing local confluence and termination.
1.1.1.1 Rule Removal
Using the
linear polynomial interpretation over the naturals
[0] |
= |
0 |
[h(x1, x2)] |
= |
1 · x1 + 4 · x2 + 1 |
all of the following rules can be deleted.
1.1.1.1.1 R is empty
There are no rules in the TRS. Hence, it is terminating.
1.1.1.2 Local Confluence Proof
All critical pairs are joinable which can be seen by computing normal forms of all critical pairs.
1.2 Redundant Rules Transformation
To prove that the TRS is (non-)confluent, we show (non-)confluence of the following
modified system:
a |
→ |
1 |
(4) |
g(x) |
→ |
x |
(2) |
f(x) |
→ |
g(a) |
(1) |
f(x) |
→ |
g(1) |
(5) |
f(x) |
→ |
a |
(6) |
All redundant rules that were added or removed can be
simulated in 2 steps
.
1.2.1 Critical Pair Closing System
Confluence is proven using the following terminating critical-pair-closing-system R:
1.2.1.1 Rule Removal
Using the
linear polynomial interpretation over the naturals
[a] |
= |
0 |
[1] |
= |
0 |
[g(x1)] |
= |
1 · x1 + 1 |
all of the following rules can be deleted.
1.2.1.1.1 Rule Removal
Using the
linear polynomial interpretation over the naturals
all of the following rules can be deleted.
1.2.1.1.1.1 R is empty
There are no rules in the TRS. Hence, it is terminating.