Certification Problem
Input (TPDB TRS_Equational/AProVE_AC_04/AC41)
The rewrite relation of the following equational TRS is considered.
minus(x,0) |
→ |
x |
(1) |
minus(s(x),s(y)) |
→ |
minus(x,y) |
(2) |
minus(minus(x,y),z) |
→ |
minus(x,plus(y,z)) |
(3) |
quot(0,s(y)) |
→ |
0 |
(4) |
quot(s(x),s(y)) |
→ |
s(quot(minus(x,y),s(y))) |
(5) |
plus(0,y) |
→ |
y |
(6) |
plus(s(x),y) |
→ |
s(plus(x,y)) |
(7) |
Associative symbols: plus
Commutative symbols: plus
Property / Task
Prove or disprove termination.Answer / Result
Yes.Proof (by NaTT @ termCOMP 2023)
1 AC Dependency Pair Transformation
The following set of (strict) dependency pairs is constructed for the TRS.
minus#(minus(x,y),z) |
→ |
minus#(x,plus(y,z)) |
(13) |
minus#(minus(x,y),z) |
→ |
plus#(y,z) |
(14) |
quot#(s(x),s(y)) |
→ |
minus#(x,y) |
(15) |
plus#(s(x),y) |
→ |
plus#(x,y) |
(16) |
minus#(s(x),s(y)) |
→ |
minus#(x,y) |
(17) |
quot#(s(x),s(y)) |
→ |
quot#(minus(x,y),s(y)) |
(18) |
Finiteness for these DPs in combination with the equational DPs is proven as follows.
1.1 Dependency Graph Processor
The dependency pairs are split into 3
components.
-
The
1st
component contains the
pair
quot#(s(x),s(y)) |
→ |
quot#(minus(x,y),s(y)) |
(18) |
1.1.1 AC Reduction Pair Processor with Usable Rules
Using the Max-polynomial interpretation
[s(x1)] |
=
|
x1 + 2 |
[minus(x1, x2)] |
=
|
x1 + 1 |
[plus#(x1, x2)] |
=
|
0 |
[0] |
=
|
1 |
[quot(x1, x2)] |
=
|
0 |
[minus#(x1, x2)] |
=
|
0 |
[plus(x1, x2)] |
=
|
21239 |
[quot#(x1, x2)] |
=
|
x1 + 0 |
together with the usable
rules
minus(x,0) |
→ |
x |
(1) |
minus(minus(x,y),z) |
→ |
minus(x,plus(y,z)) |
(3) |
minus(s(x),s(y)) |
→ |
minus(x,y) |
(2) |
(w.r.t. the implicit argument filter of the reduction pair),
the
pair
quot#(s(x),s(y)) |
→ |
quot#(minus(x,y),s(y)) |
(18) |
could be deleted.
1.1.1.1 Dependency Graph Processor
The dependency pairs are split into 0
components.
-
The
2nd
component contains the
pair
minus#(s(x),s(y)) |
→ |
minus#(x,y) |
(17) |
minus#(minus(x,y),z) |
→ |
minus#(x,plus(y,z)) |
(13) |
1.1.2 AC Reduction Pair Processor with Usable Rules
Using the Max-polynomial interpretation
[s(x1)] |
=
|
x1 + 1 |
[minus(x1, x2)] |
=
|
x1 + x2 + 42737 |
[plus#(x1, x2)] |
=
|
0 |
[0] |
=
|
0 |
[quot(x1, x2)] |
=
|
0 |
[minus#(x1, x2)] |
=
|
x1 + x2 + 0 |
[plus(x1, x2)] |
=
|
x1 + x2 + 42736 |
[quot#(x1, x2)] |
=
|
x1 + 0 |
together with the usable
rules
plus(x,plus(y,z)) |
→ |
plus(plus(x,y),z) |
(9) |
minus(x,0) |
→ |
x |
(1) |
minus(minus(x,y),z) |
→ |
minus(x,plus(y,z)) |
(3) |
plus(s(x),y) |
→ |
s(plus(x,y)) |
(7) |
plus(x,y) |
→ |
plus(y,x) |
(8) |
plus(0,y) |
→ |
y |
(6) |
minus(s(x),s(y)) |
→ |
minus(x,y) |
(2) |
(w.r.t. the implicit argument filter of the reduction pair),
the
pairs
minus#(minus(x,y),z) |
→ |
minus#(x,plus(y,z)) |
(13) |
minus#(s(x),s(y)) |
→ |
minus#(x,y) |
(17) |
could be deleted.
1.1.2.1 Dependency Graph Processor
The dependency pairs are split into 0
components.
-
The
3rd
component contains the
pair
plus#(x,plus(y,z)) |
→ |
plus#(plus(x,y),z) |
(12) |
plus#(s(x),y) |
→ |
plus#(x,y) |
(16) |
plus#(x,plus(y,z)) |
→ |
plus#(x,y) |
(11) |
plus#(x,y) |
→ |
plus#(y,x) |
(10) |
1.1.3 AC Reduction Pair Processor with Usable Rules
Using the Max-polynomial interpretation
[s(x1)] |
=
|
x1 + 1 |
[minus(x1, x2)] |
=
|
x1 + x2 + 42737 |
[plus#(x1, x2)] |
=
|
x1 + x2 + 0 |
[0] |
=
|
0 |
[quot(x1, x2)] |
=
|
0 |
[minus#(x1, x2)] |
=
|
x2 + 0 |
[plus(x1, x2)] |
=
|
x1 + x2 + 42736 |
[quot#(x1, x2)] |
=
|
x1 + 0 |
together with the usable
rules
plus(x,plus(y,z)) |
→ |
plus(plus(x,y),z) |
(9) |
minus(x,0) |
→ |
x |
(1) |
minus(minus(x,y),z) |
→ |
minus(x,plus(y,z)) |
(3) |
plus(s(x),y) |
→ |
s(plus(x,y)) |
(7) |
plus(x,y) |
→ |
plus(y,x) |
(8) |
plus(0,y) |
→ |
y |
(6) |
minus(s(x),s(y)) |
→ |
minus(x,y) |
(2) |
(w.r.t. the implicit argument filter of the reduction pair),
the
pairs
plus#(x,plus(y,z)) |
→ |
plus#(x,y) |
(11) |
plus#(s(x),y) |
→ |
plus#(x,y) |
(16) |
could be deleted.
1.1.3.1 Dependency Graph Processor
The dependency pairs are split into 1
component.
-
The
1st
component contains the
pair
plus#(x,plus(y,z)) |
→ |
plus#(plus(x,y),z) |
(12) |
plus#(x,y) |
→ |
plus#(y,x) |
(10) |
1.1.3.1.1 AC Dependency Pair Problem is trivial
There are no strict pairs and rules remaining, or there are no DPs remaining. Therefore, finiteness is trivially satisfied.
The extended rules of the TRS
plus(plus(0,y),_1) |
→ |
plus(y,_1) |
(19) |
plus(plus(s(x),y),_1) |
→ |
plus(s(plus(x,y)),_1) |
(20) |
give rise to another dependency pair problem.
Finiteness for these DPs in combination with the equational DPs is proven as follows.
1.2 Dependency Graph Processor
The dependency pairs are split into 1
component.