Term Rewriting System R:
[X, Y, Z]
plus(plus(X, Y), Z) -> plus(X, plus(Y, Z))
times(X, s(Y)) -> plus(X, times(Y, X))

Termination of R to be shown.



   R
Dependency Pair Analysis



R contains the following Dependency Pairs:

PLUS(plus(X, Y), Z) -> PLUS(X, plus(Y, Z))
PLUS(plus(X, Y), Z) -> PLUS(Y, Z)
TIMES(X, s(Y)) -> PLUS(X, times(Y, X))
TIMES(X, s(Y)) -> TIMES(Y, X)

Furthermore, R contains two SCCs.


   R
DPs
       →DP Problem 1
Argument Filtering and Ordering
       →DP Problem 2
AFS


Dependency Pairs:

PLUS(plus(X, Y), Z) -> PLUS(Y, Z)
PLUS(plus(X, Y), Z) -> PLUS(X, plus(Y, Z))


Rules:


plus(plus(X, Y), Z) -> plus(X, plus(Y, Z))
times(X, s(Y)) -> plus(X, times(Y, X))





The following dependency pair can be strictly oriented:

PLUS(plus(X, Y), Z) -> PLUS(Y, Z)


The following usable rule w.r.t. to the AFS can be oriented:

plus(plus(X, Y), Z) -> plus(X, plus(Y, Z))


Used ordering: Polynomial ordering with Polynomial interpretation:
  POL(PLUS(x1, x2))=  1 + x1 + x2  
  POL(plus(x1, x2))=  1 + x1 + x2  

resulting in one new DP problem.
Used Argument Filtering System:
PLUS(x1, x2) -> PLUS(x1, x2)
plus(x1, x2) -> plus(x1, x2)


   R
DPs
       →DP Problem 1
AFS
           →DP Problem 3
Argument Filtering and Ordering
       →DP Problem 2
AFS


Dependency Pair:

PLUS(plus(X, Y), Z) -> PLUS(X, plus(Y, Z))


Rules:


plus(plus(X, Y), Z) -> plus(X, plus(Y, Z))
times(X, s(Y)) -> plus(X, times(Y, X))





The following dependency pair can be strictly oriented:

PLUS(plus(X, Y), Z) -> PLUS(X, plus(Y, Z))


There are no usable rules w.r.t. to the AFS that need to be oriented.
Used ordering: Polynomial ordering with Polynomial interpretation:
  POL(plus(x1, x2))=  1 + x1 + x2  

resulting in one new DP problem.
Used Argument Filtering System:
PLUS(x1, x2) -> x1
plus(x1, x2) -> plus(x1, x2)


   R
DPs
       →DP Problem 1
AFS
           →DP Problem 3
AFS
             ...
               →DP Problem 4
Dependency Graph
       →DP Problem 2
AFS


Dependency Pair:


Rules:


plus(plus(X, Y), Z) -> plus(X, plus(Y, Z))
times(X, s(Y)) -> plus(X, times(Y, X))





Using the Dependency Graph resulted in no new DP problems.


   R
DPs
       →DP Problem 1
AFS
       →DP Problem 2
Argument Filtering and Ordering


Dependency Pair:

TIMES(X, s(Y)) -> TIMES(Y, X)


Rules:


plus(plus(X, Y), Z) -> plus(X, plus(Y, Z))
times(X, s(Y)) -> plus(X, times(Y, X))





The following dependency pair can be strictly oriented:

TIMES(X, s(Y)) -> TIMES(Y, X)


There are no usable rules w.r.t. to the AFS that need to be oriented.
Used ordering: Polynomial ordering with Polynomial interpretation:
  POL(TIMES(x1, x2))=  x1 + x2  
  POL(s(x1))=  1 + x1  

resulting in one new DP problem.
Used Argument Filtering System:
TIMES(x1, x2) -> TIMES(x1, x2)
s(x1) -> s(x1)


   R
DPs
       →DP Problem 1
AFS
       →DP Problem 2
AFS
           →DP Problem 5
Dependency Graph


Dependency Pair:


Rules:


plus(plus(X, Y), Z) -> plus(X, plus(Y, Z))
times(X, s(Y)) -> plus(X, times(Y, X))





Using the Dependency Graph resulted in no new DP problems.

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