Certification Problem
Input (TPDB TRS_Standard/SK90/2.22)
The rewrite relation of the following TRS is considered.
exp(x,0) |
→ |
s(0) |
(1) |
exp(x,s(y)) |
→ |
*(x,exp(x,y)) |
(2) |
*(0,y) |
→ |
0 |
(3) |
*(s(x),y) |
→ |
+(y,*(x,y)) |
(4) |
-(0,y) |
→ |
0 |
(5) |
-(x,0) |
→ |
x |
(6) |
-(s(x),s(y)) |
→ |
-(x,y) |
(7) |
Property / Task
Prove or disprove termination.Answer / Result
Yes.Proof (by AProVE @ termCOMP 2023)
1 Rule Removal
Using the
prec(exp) |
= |
3 |
|
stat(exp) |
= |
lex
|
prec(0) |
= |
1 |
|
stat(0) |
= |
lex
|
prec(s) |
= |
1 |
|
stat(s) |
= |
lex
|
prec(*) |
= |
2 |
|
stat(*) |
= |
lex
|
prec(+) |
= |
0 |
|
stat(+) |
= |
lex
|
prec(-) |
= |
1 |
|
stat(-) |
= |
lex
|
π(exp) |
= |
[1,2] |
π(0) |
= |
[] |
π(s) |
= |
[1] |
π(*) |
= |
[1,2] |
π(+) |
= |
[1,2] |
π(-) |
= |
[2,1] |
all of the following rules can be deleted.
exp(x,0) |
→ |
s(0) |
(1) |
exp(x,s(y)) |
→ |
*(x,exp(x,y)) |
(2) |
*(0,y) |
→ |
0 |
(3) |
*(s(x),y) |
→ |
+(y,*(x,y)) |
(4) |
-(0,y) |
→ |
0 |
(5) |
-(x,0) |
→ |
x |
(6) |
-(s(x),s(y)) |
→ |
-(x,y) |
(7) |
1.1 R is empty
There are no rules in the TRS. Hence, it is terminating.