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 AProVE @ termCOMP 2023)
1 AC Dependency Pair Transformation
The following set of (strict) dependency pairs is constructed for the TRS.
|
minus#(s(x),s(y)) |
→ |
minus#(x,y) |
(13) |
|
minus#(minus(x,y),z) |
→ |
minus#(x,plus(y,z)) |
(14) |
|
minus#(minus(x,y),z) |
→ |
plus#(y,z) |
(15) |
|
quot#(s(x),s(y)) |
→ |
quot#(minus(x,y),s(y)) |
(16) |
|
quot#(s(x),s(y)) |
→ |
minus#(x,y) |
(17) |
|
plus#(s(x),y) |
→ |
plus#(x,y) |
(18) |
|
plus#(plus(0,y),ext) |
→ |
plus#(y,ext) |
(19) |
|
plus#(plus(s(x),y),ext) |
→ |
plus#(s(plus(x,y)),ext) |
(20) |
|
plus#(plus(s(x),y),ext) |
→ |
plus#(x,y) |
(21) |
The extended rules of the TRS
|
plus(plus(0,y),ext) |
→ |
plus(y,ext) |
(22) |
|
plus(plus(s(x),y),ext) |
→ |
plus(s(plus(x,y)),ext) |
(23) |
give rise to even more dependency pairs (by sharping the root symbols of each rule).
Finiteness for all 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)) |
(16) |
1.1.1 AC Reduction Pair Processor with Usable Rules
Using the linear polynomial interpretation over the naturals
| [quot#(x1, x2)] |
= |
2 · x1
|
| [s(x1)] |
= |
1 + 2 · x1
|
| [minus(x1, x2)] |
= |
1 · x1
|
| [plus(x1, x2)] |
= |
0 |
| [0] |
= |
0 |
together with the usable
rules
|
minus(minus(x,y),z) |
→ |
minus(x,plus(y,z)) |
(3) |
|
minus(s(x),s(y)) |
→ |
minus(x,y) |
(2) |
|
minus(x,0) |
→ |
x |
(1) |
(w.r.t. the implicit argument filter of the reduction pair),
the
pair
|
quot#(s(x),s(y)) |
→ |
quot#(minus(x,y),s(y)) |
(16) |
could be deleted.
1.1.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
2nd
component contains the
pair
|
minus#(minus(x,y),z) |
→ |
minus#(x,plus(y,z)) |
(14) |
|
minus#(s(x),s(y)) |
→ |
minus#(x,y) |
(13) |
1.1.2 AC Monotonic Reduction Pair Processor with Usable Rules
Using the linear polynomial interpretation over the naturals
| [plus(x1, x2)] |
= |
1 · x1 + 1 · x2
|
| [s(x1)] |
= |
3 + 1 · x1
|
| [0] |
= |
0 |
| [minus#(x1, x2)] |
= |
3 · x1 + 2 · x2
|
| [minus(x1, x2)] |
= |
2 + 3 · x1 + 3 · x2
|
together with the usable
rules
|
plus(plus(s(x),y),ext) |
→ |
plus(s(plus(x,y)),ext) |
(23) |
|
plus(s(x),y) |
→ |
s(plus(x,y)) |
(7) |
|
plus(0,y) |
→ |
y |
(6) |
|
plus(plus(0,y),ext) |
→ |
plus(y,ext) |
(22) |
|
plus(plus(x,y),z) |
→ |
plus(x,plus(y,z)) |
(9) |
|
plus(x,y) |
→ |
plus(y,x) |
(8) |
(w.r.t. the implicit argument filter of the reduction pair),
the
pairs
|
minus#(minus(x,y),z) |
→ |
minus#(x,plus(y,z)) |
(14) |
|
minus#(s(x),s(y)) |
→ |
minus#(x,y) |
(13) |
and
the
rules
|
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(plus(0,y),ext) |
→ |
plus(y,ext) |
(22) |
could be deleted.
1.1.2.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
3rd
component contains the
pair
|
plus#(plus(0,y),ext) |
→ |
plus#(y,ext) |
(19) |
|
plus#(s(x),y) |
→ |
plus#(x,y) |
(18) |
|
plus#(plus(s(x),y),ext) |
→ |
plus#(s(plus(x,y)),ext) |
(20) |
|
plus#(plus(s(x),y),ext) |
→ |
plus#(x,y) |
(21) |
|
plus#(plus(x,y),z) |
→ |
plus#(y,z) |
(12) |
|
plus#(x,y) |
→ |
plus#(y,x) |
(10) |
|
plus#(plus(x,y),z) |
→ |
plus#(x,plus(y,z)) |
(11) |
1.1.3 AC Monotonic Reduction Pair Processor with Usable Rules
Using the linear polynomial interpretation over the naturals
| [plus#(x1, x2)] |
= |
2 · x1 + 2 · x2
|
| [plus(x1, x2)] |
= |
1 · x1 + 1 · x2
|
| [s(x1)] |
= |
1 · x1
|
| [0] |
= |
0 |
together with the usable
rules
|
plus(plus(s(x),y),ext) |
→ |
plus(s(plus(x,y)),ext) |
(23) |
|
plus(s(x),y) |
→ |
s(plus(x,y)) |
(7) |
|
plus(0,y) |
→ |
y |
(6) |
|
plus(plus(0,y),ext) |
→ |
plus(y,ext) |
(22) |
|
plus(plus(x,y),z) |
→ |
plus(x,plus(y,z)) |
(9) |
|
plus(x,y) |
→ |
plus(y,x) |
(8) |
(w.r.t. the implicit argument filter of the reduction pair),
the
pair
|
plus#(plus(0,y),ext) |
→ |
plus#(y,ext) |
(19) |
and
the
rules
|
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(plus(0,y),ext) |
→ |
plus(y,ext) |
(22) |
could be deleted.
1.1.3.1 AC Monotonic Reduction Pair Processor with Usable Rules
Using the linear polynomial interpretation over the naturals
| [plus#(x1, x2)] |
= |
2 · x1 + 2 · x2
|
| [plus(x1, x2)] |
= |
1 · x1 + 1 · x2
|
| [s(x1)] |
= |
1 + 1 · x1
|
together with the usable
rules
|
plus(plus(s(x),y),ext) |
→ |
plus(s(plus(x,y)),ext) |
(23) |
|
plus(s(x),y) |
→ |
s(plus(x,y)) |
(7) |
|
plus(x,y) |
→ |
plus(y,x) |
(8) |
|
plus(plus(x,y),z) |
→ |
plus(x,plus(y,z)) |
(9) |
(w.r.t. the implicit argument filter of the reduction pair),
the
pairs
|
plus#(s(x),y) |
→ |
plus#(x,y) |
(18) |
|
plus#(plus(s(x),y),ext) |
→ |
plus#(x,y) |
(21) |
and
no rules
could be deleted.
1.1.3.1.1 AC Monotonic Reduction Pair Processor with Usable Rules
Using the linear polynomial interpretation over the naturals
| [plus#(x1, x2)] |
= |
2 · x1 + 2 · x2
|
| [plus(x1, x2)] |
= |
1 + 1 · x1 + 1 · x2
|
| [s(x1)] |
= |
1 · x1
|
together with the usable
rules
|
plus(plus(s(x),y),ext) |
→ |
plus(s(plus(x,y)),ext) |
(23) |
|
plus(s(x),y) |
→ |
s(plus(x,y)) |
(7) |
|
plus(x,y) |
→ |
plus(y,x) |
(8) |
|
plus(plus(x,y),z) |
→ |
plus(x,plus(y,z)) |
(9) |
(w.r.t. the implicit argument filter of the reduction pair),
the
pair
|
plus#(plus(x,y),z) |
→ |
plus#(y,z) |
(12) |
and
no rules
could be deleted.
1.1.3.1.1.1 AC Reduction Pair Processor with Usable Rules
Using the linear polynomial interpretation over the naturals
| [plus#(x1, x2)] |
= |
1 · x1 + 1 · x2
|
| [plus(x1, x2)] |
= |
1 + 1 · x1 + 1 · x2
|
| [s(x1)] |
= |
0 |
together with the usable
rules
|
plus(plus(s(x),y),ext) |
→ |
plus(s(plus(x,y)),ext) |
(23) |
|
plus(s(x),y) |
→ |
s(plus(x,y)) |
(7) |
|
plus(plus(x,y),z) |
→ |
plus(x,plus(y,z)) |
(9) |
|
plus(x,y) |
→ |
plus(y,x) |
(8) |
(w.r.t. the implicit argument filter of the reduction pair),
the
pair
|
plus#(plus(s(x),y),ext) |
→ |
plus#(s(plus(x,y)),ext) |
(20) |
could be deleted.
1.1.3.1.1.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.