Term Rewriting System R:
[x, u, v, z, y]
admit(x, nil) -> nil
admit(x, .(u, .(v, .(w, z)))) -> cond(=(sum(x, u, v), w), .(u, .(v, .(w, admit(carry(x, u, v), z)))))
cond(true, y) -> y

Termination of R to be shown.



   R
Dependency Pair Analysis



R contains the following Dependency Pairs:

ADMIT(x, .(u, .(v, .(w, z)))) -> COND(=(sum(x, u, v), w), .(u, .(v, .(w, admit(carry(x, u, v), z)))))
ADMIT(x, .(u, .(v, .(w, z)))) -> ADMIT(carry(x, u, v), z)

Furthermore, R contains one SCC.


   R
DPs
       →DP Problem 1
Argument Filtering and Ordering


Dependency Pair:

ADMIT(x, .(u, .(v, .(w, z)))) -> ADMIT(carry(x, u, v), z)


Rules:


admit(x, nil) -> nil
admit(x, .(u, .(v, .(w, z)))) -> cond(=(sum(x, u, v), w), .(u, .(v, .(w, admit(carry(x, u, v), z)))))
cond(true, y) -> y





The following dependency pair can be strictly oriented:

ADMIT(x, .(u, .(v, .(w, z)))) -> ADMIT(carry(x, u, v), z)


The following rules can be oriented:

admit(x, nil) -> nil
admit(x, .(u, .(v, .(w, z)))) -> cond(=(sum(x, u, v), w), .(u, .(v, .(w, admit(carry(x, u, v), z)))))
cond(true, y) -> y


Used ordering: Lexicographic Path Order with Non-Strict Precedence with Quasi Precedence:
{sum, admit} > cond
{sum, admit} > =
{sum, admit} > .

resulting in one new DP problem.
Used Argument Filtering System:
ADMIT(x1, x2) -> ADMIT(x1, x2)
.(x1, x2) -> .(x1, x2)
carry(x1, x2, x3) -> x1
admit(x1, x2) -> admit(x1, x2)
cond(x1, x2) -> cond(x1, x2)
=(x1, x2) -> =(x1, x2)
sum(x1, x2, x3) -> sum(x1, x2, x3)


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


Dependency Pair:


Rules:


admit(x, nil) -> nil
admit(x, .(u, .(v, .(w, z)))) -> cond(=(sum(x, u, v), w), .(u, .(v, .(w, admit(carry(x, u, v), z)))))
cond(true, y) -> y





Using the Dependency Graph resulted in no new DP problems.

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