Certification Problem
Input (TPDB TRS_Standard/AG01/#3.4)
The rewrite relation of the following TRS is considered.
minus(x,0) |
→ |
x |
(1) |
minus(s(x),s(y)) |
→ |
minus(x,y) |
(2) |
quot(0,s(y)) |
→ |
0 |
(3) |
quot(s(x),s(y)) |
→ |
s(quot(minus(x,y),s(y))) |
(4) |
plus(0,y) |
→ |
y |
(5) |
plus(s(x),y) |
→ |
s(plus(x,y)) |
(6) |
minus(minus(x,y),z) |
→ |
minus(x,plus(y,z)) |
(7) |
Property / Task
Prove or disprove termination.Answer / Result
Yes.Proof (by NaTT @ termCOMP 2023)
1 Dependency Pair Transformation
The following set of initial dependency pairs has been identified.
plus#(s(x),y) |
→ |
plus#(x,y) |
(8) |
quot#(s(x),s(y)) |
→ |
minus#(x,y) |
(9) |
quot#(s(x),s(y)) |
→ |
quot#(minus(x,y),s(y)) |
(10) |
minus#(minus(x,y),z) |
→ |
minus#(x,plus(y,z)) |
(11) |
minus#(s(x),s(y)) |
→ |
minus#(x,y) |
(12) |
minus#(minus(x,y),z) |
→ |
plus#(y,z) |
(13) |
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)) |
(10) |
1.1.1 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)] |
=
|
x1 + 28958 |
[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)) |
(7) |
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)) |
(10) |
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) |
(12) |
minus#(minus(x,y),z) |
→ |
minus#(x,plus(y,z)) |
(11) |
1.1.2 Reduction Pair Processor with Usable Rules
Using the Max-polynomial interpretation
[s(x1)] |
=
|
x1 + 2 |
[minus(x1, x2)] |
=
|
x1 + x2 + 8367 |
[plus#(x1, x2)] |
=
|
0 |
[0] |
=
|
0 |
[quot(x1, x2)] |
=
|
0 |
[minus#(x1, x2)] |
=
|
x1 + x2 + 0 |
[plus(x1, x2)] |
=
|
x1 + x2 + 1 |
[quot#(x1, x2)] |
=
|
x1 + 0 |
together with the usable
rules
minus(x,0) |
→ |
x |
(1) |
plus(0,y) |
→ |
y |
(5) |
minus(minus(x,y),z) |
→ |
minus(x,plus(y,z)) |
(7) |
plus(s(x),y) |
→ |
s(plus(x,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#(s(x),s(y)) |
→ |
minus#(x,y) |
(12) |
minus#(minus(x,y),z) |
→ |
minus#(x,plus(y,z)) |
(11) |
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#(s(x),y) |
→ |
plus#(x,y) |
(8) |
1.1.3 Reduction Pair Processor with Usable Rules
Using the Max-polynomial interpretation
[s(x1)] |
=
|
x1 + 1 |
[minus(x1, x2)] |
=
|
x1 + x2 + 8367 |
[plus#(x1, x2)] |
=
|
x1 + 0 |
[0] |
=
|
0 |
[quot(x1, x2)] |
=
|
0 |
[minus#(x1, x2)] |
=
|
x2 + 0 |
[plus(x1, x2)] |
=
|
x1 + x2 + 1 |
[quot#(x1, x2)] |
=
|
x1 + 0 |
together with the usable
rules
minus(x,0) |
→ |
x |
(1) |
plus(0,y) |
→ |
y |
(5) |
minus(minus(x,y),z) |
→ |
minus(x,plus(y,z)) |
(7) |
plus(s(x),y) |
→ |
s(plus(x,y)) |
(6) |
minus(s(x),s(y)) |
→ |
minus(x,y) |
(2) |
(w.r.t. the implicit argument filter of the reduction pair),
the
pair
plus#(s(x),y) |
→ |
plus#(x,y) |
(8) |
could be deleted.
1.1.3.1 Dependency Graph Processor
The dependency pairs are split into 0
components.