Term Rewriting System R:
[x, y, z]
+(x, 0) -> x
+(minus(x), x) -> 0
minus(0) -> 0
minus(minus(x)) -> x
minus(+(x, y)) -> +(minus(y), minus(x))
*(x, 1) -> x
*(x, 0) -> 0
*(x, +(y, z)) -> +(*(x, y), *(x, z))
*(x, minus(y)) -> minus(*(x, y))

Termination of R to be shown.



   R
Dependency Pair Analysis



R contains the following Dependency Pairs:

MINUS(+(x, y)) -> +'(minus(y), minus(x))
MINUS(+(x, y)) -> MINUS(y)
MINUS(+(x, y)) -> MINUS(x)
*'(x, +(y, z)) -> +'(*(x, y), *(x, z))
*'(x, +(y, z)) -> *'(x, y)
*'(x, +(y, z)) -> *'(x, z)
*'(x, minus(y)) -> MINUS(*(x, y))
*'(x, minus(y)) -> *'(x, y)

Furthermore, R contains two SCCs.


   R
DPs
       →DP Problem 1
Size-Change Principle
       →DP Problem 2
SCP


Dependency Pairs:

MINUS(+(x, y)) -> MINUS(x)
MINUS(+(x, y)) -> MINUS(y)


Rules:


+(x, 0) -> x
+(minus(x), x) -> 0
minus(0) -> 0
minus(minus(x)) -> x
minus(+(x, y)) -> +(minus(y), minus(x))
*(x, 1) -> x
*(x, 0) -> 0
*(x, +(y, z)) -> +(*(x, y), *(x, z))
*(x, minus(y)) -> minus(*(x, y))





We number the DPs as follows:
  1. MINUS(+(x, y)) -> MINUS(x)
  2. MINUS(+(x, y)) -> MINUS(y)
and get the following Size-Change Graph(s):
{2, 1} , {2, 1}
1>1

which lead(s) to this/these maximal multigraph(s):
{2, 1} , {2, 1}
1>1

DP: empty set
Oriented Rules: none

We used the order Homeomorphic Embedding Order with Non-Strict Precedence.
trivial

with Argument Filtering System:
+(x1, x2) -> +(x1, x2)

We obtain no new DP problems.


   R
DPs
       →DP Problem 1
SCP
       →DP Problem 2
Size-Change Principle


Dependency Pairs:

*'(x, minus(y)) -> *'(x, y)
*'(x, +(y, z)) -> *'(x, z)
*'(x, +(y, z)) -> *'(x, y)


Rules:


+(x, 0) -> x
+(minus(x), x) -> 0
minus(0) -> 0
minus(minus(x)) -> x
minus(+(x, y)) -> +(minus(y), minus(x))
*(x, 1) -> x
*(x, 0) -> 0
*(x, +(y, z)) -> +(*(x, y), *(x, z))
*(x, minus(y)) -> minus(*(x, y))





We number the DPs as follows:
  1. *'(x, minus(y)) -> *'(x, y)
  2. *'(x, +(y, z)) -> *'(x, z)
  3. *'(x, +(y, z)) -> *'(x, y)
and get the following Size-Change Graph(s):
{3, 2, 1} , {3, 2, 1}
1=1
2>2

which lead(s) to this/these maximal multigraph(s):
{3, 2, 1} , {3, 2, 1}
1=1
2>2

DP: empty set
Oriented Rules: none

We used the order Homeomorphic Embedding Order with Non-Strict Precedence.
trivial

with Argument Filtering System:
minus(x1) -> minus(x1)
+(x1, x2) -> +(x1, x2)

We obtain no new DP problems.

Termination of R successfully shown.
Duration:
0:00 minutes