YES Confluence Proof

Confluence Proof

by csi

Input

The rewrite relation of the following TRS is considered.

+(x,0) x
+(x,s(y)) s(+(x,y))
d(0) 0
d(s(x)) s(s(d(x)))
f(0) 0
f(s(x)) +(+(s(x),s(x)),s(x))
f(g(0)) +(+(g(0),g(0)),g(0))
g(x) s(d(x))

Proof

1 Locally confluent and terminating

Confluence is proven by showing local confluence and termination.

1.1 Rule Removal

Using the linear polynomial interpretation over the naturals
[f(x1)] = 7 · x1 + 1
[+(x1, x2)] = 1 · x1 + 3 · x2 + 0
[d(x1)] = 4 · x1 + 0
[g(x1)] = 4 · x1 + 2
[0] = 0
[s(x1)] = 1 · x1 + 2
the rules
+(x,0) x
d(0) 0
g(x) s(d(x))
remain.

1.1.1 Rule Removal

Using the linear polynomial interpretation over the naturals
[+(x1, x2)] = 1 · x1 + 1 · x2 + 1
[d(x1)] = 1 · x1 + 0
[g(x1)] = 1 · x1 + 0
[0] = 4
[s(x1)] = 1 · x1 + 0
the rules
d(0) 0
g(x) s(d(x))
remain.

1.1.1.1 Rule Removal

Using the linear polynomial interpretation over the naturals
[d(x1)] = 1 · x1 + 0
[g(x1)] = 1 · x1 + 1
[0] = 0
[s(x1)] = 1 · x1 + 0
the rule
d(0) 0
remains.

1.1.1.1.1 Rule Removal

Using the linear polynomial interpretation over the naturals
[d(x1)] = 1 · x1 + 1
[0] = 2
all rules could be removed.

1.1.1.1.1.1 R is empty

There are no rules in the TRS. Hence, it is terminating.

1.2 Local Confluence Proof

All critical pairs are joinable which can be seen by computing normal forms of all critical pairs.

Tool configuration

csi