Term Rewriting System R:
[x, y, z]
f(x, 0, 0) -> s(x)
f(0, y, 0) -> s(y)
f(0, 0, z) -> s(z)
f(s(0), y, z) -> f(0, s(y), s(z))
f(s(x), s(y), 0) -> f(x, y, s(0))
f(s(x), 0, s(z)) -> f(x, s(0), z)
f(0, s(0), s(0)) -> s(s(0))
f(s(x), s(y), s(z)) -> f(x, y, f(s(x), s(y), z))
f(0, s(s(y)), s(0)) -> f(0, y, s(0))
f(0, s(0), s(s(z))) -> f(0, s(0), z)
f(0, s(s(y)), s(s(z))) -> f(0, y, f(0, s(s(y)), s(z)))

Termination of R to be shown.



   R
Dependency Pair Analysis



R contains the following Dependency Pairs:

F(s(0), y, z) -> F(0, s(y), s(z))
F(s(x), s(y), 0) -> F(x, y, s(0))
F(s(x), 0, s(z)) -> F(x, s(0), z)
F(s(x), s(y), s(z)) -> F(x, y, f(s(x), s(y), z))
F(s(x), s(y), s(z)) -> F(s(x), s(y), z)
F(0, s(s(y)), s(0)) -> F(0, y, s(0))
F(0, s(0), s(s(z))) -> F(0, s(0), z)
F(0, s(s(y)), s(s(z))) -> F(0, y, f(0, s(s(y)), s(z)))
F(0, s(s(y)), s(s(z))) -> F(0, s(s(y)), s(z))

Furthermore, R contains four SCCs.


   R
DPs
       →DP Problem 1
Polynomial Ordering
       →DP Problem 2
Polo
       →DP Problem 3
Polo
       →DP Problem 4
Polo


Dependency Pair:

F(0, s(s(y)), s(0)) -> F(0, y, s(0))


Rules:


f(x, 0, 0) -> s(x)
f(0, y, 0) -> s(y)
f(0, 0, z) -> s(z)
f(s(0), y, z) -> f(0, s(y), s(z))
f(s(x), s(y), 0) -> f(x, y, s(0))
f(s(x), 0, s(z)) -> f(x, s(0), z)
f(0, s(0), s(0)) -> s(s(0))
f(s(x), s(y), s(z)) -> f(x, y, f(s(x), s(y), z))
f(0, s(s(y)), s(0)) -> f(0, y, s(0))
f(0, s(0), s(s(z))) -> f(0, s(0), z)
f(0, s(s(y)), s(s(z))) -> f(0, y, f(0, s(s(y)), s(z)))





The following dependency pair can be strictly oriented:

F(0, s(s(y)), s(0)) -> F(0, y, s(0))


There are no usable rules w.r.t. to the implicit AFS that need to be oriented.

Used ordering: Polynomial ordering with Polynomial interpretation:
  POL(0)=  0  
  POL(s(x1))=  1 + x1  
  POL(F(x1, x2, x3))=  1 + x2  

resulting in one new DP problem.



   R
DPs
       →DP Problem 1
Polo
           →DP Problem 5
Dependency Graph
       →DP Problem 2
Polo
       →DP Problem 3
Polo
       →DP Problem 4
Polo


Dependency Pair:


Rules:


f(x, 0, 0) -> s(x)
f(0, y, 0) -> s(y)
f(0, 0, z) -> s(z)
f(s(0), y, z) -> f(0, s(y), s(z))
f(s(x), s(y), 0) -> f(x, y, s(0))
f(s(x), 0, s(z)) -> f(x, s(0), z)
f(0, s(0), s(0)) -> s(s(0))
f(s(x), s(y), s(z)) -> f(x, y, f(s(x), s(y), z))
f(0, s(s(y)), s(0)) -> f(0, y, s(0))
f(0, s(0), s(s(z))) -> f(0, s(0), z)
f(0, s(s(y)), s(s(z))) -> f(0, y, f(0, s(s(y)), s(z)))





Using the Dependency Graph resulted in no new DP problems.


   R
DPs
       →DP Problem 1
Polo
       →DP Problem 2
Polynomial Ordering
       →DP Problem 3
Polo
       →DP Problem 4
Polo


Dependency Pair:

F(0, s(0), s(s(z))) -> F(0, s(0), z)


Rules:


f(x, 0, 0) -> s(x)
f(0, y, 0) -> s(y)
f(0, 0, z) -> s(z)
f(s(0), y, z) -> f(0, s(y), s(z))
f(s(x), s(y), 0) -> f(x, y, s(0))
f(s(x), 0, s(z)) -> f(x, s(0), z)
f(0, s(0), s(0)) -> s(s(0))
f(s(x), s(y), s(z)) -> f(x, y, f(s(x), s(y), z))
f(0, s(s(y)), s(0)) -> f(0, y, s(0))
f(0, s(0), s(s(z))) -> f(0, s(0), z)
f(0, s(s(y)), s(s(z))) -> f(0, y, f(0, s(s(y)), s(z)))





The following dependency pair can be strictly oriented:

F(0, s(0), s(s(z))) -> F(0, s(0), z)


There are no usable rules w.r.t. to the implicit AFS that need to be oriented.

Used ordering: Polynomial ordering with Polynomial interpretation:
  POL(0)=  0  
  POL(s(x1))=  1 + x1  
  POL(F(x1, x2, x3))=  1 + x3  

resulting in one new DP problem.



   R
DPs
       →DP Problem 1
Polo
       →DP Problem 2
Polo
           →DP Problem 6
Dependency Graph
       →DP Problem 3
Polo
       →DP Problem 4
Polo


Dependency Pair:


Rules:


f(x, 0, 0) -> s(x)
f(0, y, 0) -> s(y)
f(0, 0, z) -> s(z)
f(s(0), y, z) -> f(0, s(y), s(z))
f(s(x), s(y), 0) -> f(x, y, s(0))
f(s(x), 0, s(z)) -> f(x, s(0), z)
f(0, s(0), s(0)) -> s(s(0))
f(s(x), s(y), s(z)) -> f(x, y, f(s(x), s(y), z))
f(0, s(s(y)), s(0)) -> f(0, y, s(0))
f(0, s(0), s(s(z))) -> f(0, s(0), z)
f(0, s(s(y)), s(s(z))) -> f(0, y, f(0, s(s(y)), s(z)))





Using the Dependency Graph resulted in no new DP problems.


   R
DPs
       →DP Problem 1
Polo
       →DP Problem 2
Polo
       →DP Problem 3
Polynomial Ordering
       →DP Problem 4
Polo


Dependency Pairs:

F(0, s(s(y)), s(s(z))) -> F(0, s(s(y)), s(z))
F(0, s(s(y)), s(s(z))) -> F(0, y, f(0, s(s(y)), s(z)))


Rules:


f(x, 0, 0) -> s(x)
f(0, y, 0) -> s(y)
f(0, 0, z) -> s(z)
f(s(0), y, z) -> f(0, s(y), s(z))
f(s(x), s(y), 0) -> f(x, y, s(0))
f(s(x), 0, s(z)) -> f(x, s(0), z)
f(0, s(0), s(0)) -> s(s(0))
f(s(x), s(y), s(z)) -> f(x, y, f(s(x), s(y), z))
f(0, s(s(y)), s(0)) -> f(0, y, s(0))
f(0, s(0), s(s(z))) -> f(0, s(0), z)
f(0, s(s(y)), s(s(z))) -> f(0, y, f(0, s(s(y)), s(z)))





The following dependency pair can be strictly oriented:

F(0, s(s(y)), s(s(z))) -> F(0, y, f(0, s(s(y)), s(z)))


There are no usable rules w.r.t. to the implicit AFS that need to be oriented.

Used ordering: Polynomial ordering with Polynomial interpretation:
  POL(0)=  0  
  POL(s(x1))=  1 + x1  
  POL(f(x1, x2, x3))=  0  
  POL(F(x1, x2, x3))=  x2  

resulting in one new DP problem.



   R
DPs
       →DP Problem 1
Polo
       →DP Problem 2
Polo
       →DP Problem 3
Polo
           →DP Problem 7
Polynomial Ordering
       →DP Problem 4
Polo


Dependency Pair:

F(0, s(s(y)), s(s(z))) -> F(0, s(s(y)), s(z))


Rules:


f(x, 0, 0) -> s(x)
f(0, y, 0) -> s(y)
f(0, 0, z) -> s(z)
f(s(0), y, z) -> f(0, s(y), s(z))
f(s(x), s(y), 0) -> f(x, y, s(0))
f(s(x), 0, s(z)) -> f(x, s(0), z)
f(0, s(0), s(0)) -> s(s(0))
f(s(x), s(y), s(z)) -> f(x, y, f(s(x), s(y), z))
f(0, s(s(y)), s(0)) -> f(0, y, s(0))
f(0, s(0), s(s(z))) -> f(0, s(0), z)
f(0, s(s(y)), s(s(z))) -> f(0, y, f(0, s(s(y)), s(z)))





The following dependency pair can be strictly oriented:

F(0, s(s(y)), s(s(z))) -> F(0, s(s(y)), s(z))


There are no usable rules w.r.t. to the implicit AFS that need to be oriented.

Used ordering: Polynomial ordering with Polynomial interpretation:
  POL(0)=  0  
  POL(s(x1))=  1 + x1  
  POL(F(x1, x2, x3))=  1 + x3  

resulting in one new DP problem.



   R
DPs
       →DP Problem 1
Polo
       →DP Problem 2
Polo
       →DP Problem 3
Polo
           →DP Problem 7
Polo
             ...
               →DP Problem 8
Dependency Graph
       →DP Problem 4
Polo


Dependency Pair:


Rules:


f(x, 0, 0) -> s(x)
f(0, y, 0) -> s(y)
f(0, 0, z) -> s(z)
f(s(0), y, z) -> f(0, s(y), s(z))
f(s(x), s(y), 0) -> f(x, y, s(0))
f(s(x), 0, s(z)) -> f(x, s(0), z)
f(0, s(0), s(0)) -> s(s(0))
f(s(x), s(y), s(z)) -> f(x, y, f(s(x), s(y), z))
f(0, s(s(y)), s(0)) -> f(0, y, s(0))
f(0, s(0), s(s(z))) -> f(0, s(0), z)
f(0, s(s(y)), s(s(z))) -> f(0, y, f(0, s(s(y)), s(z)))





Using the Dependency Graph resulted in no new DP problems.


   R
DPs
       →DP Problem 1
Polo
       →DP Problem 2
Polo
       →DP Problem 3
Polo
       →DP Problem 4
Polynomial Ordering


Dependency Pairs:

F(s(x), s(y), s(z)) -> F(s(x), s(y), z)
F(s(x), s(y), s(z)) -> F(x, y, f(s(x), s(y), z))
F(s(x), 0, s(z)) -> F(x, s(0), z)
F(s(x), s(y), 0) -> F(x, y, s(0))


Rules:


f(x, 0, 0) -> s(x)
f(0, y, 0) -> s(y)
f(0, 0, z) -> s(z)
f(s(0), y, z) -> f(0, s(y), s(z))
f(s(x), s(y), 0) -> f(x, y, s(0))
f(s(x), 0, s(z)) -> f(x, s(0), z)
f(0, s(0), s(0)) -> s(s(0))
f(s(x), s(y), s(z)) -> f(x, y, f(s(x), s(y), z))
f(0, s(s(y)), s(0)) -> f(0, y, s(0))
f(0, s(0), s(s(z))) -> f(0, s(0), z)
f(0, s(s(y)), s(s(z))) -> f(0, y, f(0, s(s(y)), s(z)))





The following dependency pairs can be strictly oriented:

F(s(x), s(y), s(z)) -> F(x, y, f(s(x), s(y), z))
F(s(x), 0, s(z)) -> F(x, s(0), z)
F(s(x), s(y), 0) -> F(x, y, s(0))


There are no usable rules w.r.t. to the implicit AFS that need to be oriented.

Used ordering: Polynomial ordering with Polynomial interpretation:
  POL(0)=  0  
  POL(s(x1))=  1 + x1  
  POL(f(x1, x2, x3))=  0  
  POL(F(x1, x2, x3))=  x1  

resulting in one new DP problem.



   R
DPs
       →DP Problem 1
Polo
       →DP Problem 2
Polo
       →DP Problem 3
Polo
       →DP Problem 4
Polo
           →DP Problem 9
Polynomial Ordering


Dependency Pair:

F(s(x), s(y), s(z)) -> F(s(x), s(y), z)


Rules:


f(x, 0, 0) -> s(x)
f(0, y, 0) -> s(y)
f(0, 0, z) -> s(z)
f(s(0), y, z) -> f(0, s(y), s(z))
f(s(x), s(y), 0) -> f(x, y, s(0))
f(s(x), 0, s(z)) -> f(x, s(0), z)
f(0, s(0), s(0)) -> s(s(0))
f(s(x), s(y), s(z)) -> f(x, y, f(s(x), s(y), z))
f(0, s(s(y)), s(0)) -> f(0, y, s(0))
f(0, s(0), s(s(z))) -> f(0, s(0), z)
f(0, s(s(y)), s(s(z))) -> f(0, y, f(0, s(s(y)), s(z)))





The following dependency pair can be strictly oriented:

F(s(x), s(y), s(z)) -> F(s(x), s(y), z)


There are no usable rules w.r.t. to the implicit AFS that need to be oriented.

Used ordering: Polynomial ordering with Polynomial interpretation:
  POL(s(x1))=  1 + x1  
  POL(F(x1, x2, x3))=  x3  

resulting in one new DP problem.



   R
DPs
       →DP Problem 1
Polo
       →DP Problem 2
Polo
       →DP Problem 3
Polo
       →DP Problem 4
Polo
           →DP Problem 9
Polo
             ...
               →DP Problem 10
Dependency Graph


Dependency Pair:


Rules:


f(x, 0, 0) -> s(x)
f(0, y, 0) -> s(y)
f(0, 0, z) -> s(z)
f(s(0), y, z) -> f(0, s(y), s(z))
f(s(x), s(y), 0) -> f(x, y, s(0))
f(s(x), 0, s(z)) -> f(x, s(0), z)
f(0, s(0), s(0)) -> s(s(0))
f(s(x), s(y), s(z)) -> f(x, y, f(s(x), s(y), z))
f(0, s(s(y)), s(0)) -> f(0, y, s(0))
f(0, s(0), s(s(z))) -> f(0, s(0), z)
f(0, s(s(y)), s(s(z))) -> f(0, y, f(0, s(s(y)), s(z)))





Using the Dependency Graph resulted in no new DP problems.

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