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