Term Rewriting System R:
[f, x, xs, ys, yss, xss]
app(app(map, f), nil) -> nil
app(app(map, f), app(app(cons, x), xs)) -> app(app(cons, app(f, x)), app(app(map, f), xs))
app(app(append, xs), nil) -> xs
app(app(append, nil), ys) -> ys
app(app(append, app(app(cons, x), xs)), ys) -> app(app(cons, x), app(app(append, xs), ys))
app(app(zip, nil), yss) -> yss
app(app(zip, xss), nil) -> xss
app(app(zip, app(app(cons, xs), xss)), app(app(cons, ys), yss)) -> app(app(cons, app(app(append, xs), ys)), app(app(zip, xss), yss))
app(app(combine, xs), nil) -> xs
app(app(combine, xs), app(app(cons, ys), yss)) -> app(app(combine, app(app(zip, xs), ys)), yss)
app(levels, app(app(node, x), xs)) -> app(app(cons, app(app(cons, x), nil)), app(app(combine, nil), app(app(map, levels), xs)))

Termination of R to be shown.



   R
Dependency Pair Analysis



R contains the following Dependency Pairs:

APP(app(map, f), app(app(cons, x), xs)) -> APP(app(cons, app(f, x)), app(app(map, f), xs))
APP(app(map, f), app(app(cons, x), xs)) -> APP(cons, app(f, x))
APP(app(map, f), app(app(cons, x), xs)) -> APP(f, x)
APP(app(map, f), app(app(cons, x), xs)) -> APP(app(map, f), xs)
APP(app(append, app(app(cons, x), xs)), ys) -> APP(app(cons, x), app(app(append, xs), ys))
APP(app(append, app(app(cons, x), xs)), ys) -> APP(app(append, xs), ys)
APP(app(append, app(app(cons, x), xs)), ys) -> APP(append, xs)
APP(app(zip, app(app(cons, xs), xss)), app(app(cons, ys), yss)) -> APP(app(cons, app(app(append, xs), ys)), app(app(zip, xss), yss))
APP(app(zip, app(app(cons, xs), xss)), app(app(cons, ys), yss)) -> APP(cons, app(app(append, xs), ys))
APP(app(zip, app(app(cons, xs), xss)), app(app(cons, ys), yss)) -> APP(app(append, xs), ys)
APP(app(zip, app(app(cons, xs), xss)), app(app(cons, ys), yss)) -> APP(append, xs)
APP(app(zip, app(app(cons, xs), xss)), app(app(cons, ys), yss)) -> APP(app(zip, xss), yss)
APP(app(zip, app(app(cons, xs), xss)), app(app(cons, ys), yss)) -> APP(zip, xss)
APP(app(combine, xs), app(app(cons, ys), yss)) -> APP(app(combine, app(app(zip, xs), ys)), yss)
APP(app(combine, xs), app(app(cons, ys), yss)) -> APP(combine, app(app(zip, xs), ys))
APP(app(combine, xs), app(app(cons, ys), yss)) -> APP(app(zip, xs), ys)
APP(app(combine, xs), app(app(cons, ys), yss)) -> APP(zip, xs)
APP(levels, app(app(node, x), xs)) -> APP(app(cons, app(app(cons, x), nil)), app(app(combine, nil), app(app(map, levels), xs)))
APP(levels, app(app(node, x), xs)) -> APP(cons, app(app(cons, x), nil))
APP(levels, app(app(node, x), xs)) -> APP(app(cons, x), nil)
APP(levels, app(app(node, x), xs)) -> APP(cons, x)
APP(levels, app(app(node, x), xs)) -> APP(app(combine, nil), app(app(map, levels), xs))
APP(levels, app(app(node, x), xs)) -> APP(combine, nil)
APP(levels, app(app(node, x), xs)) -> APP(app(map, levels), xs)
APP(levels, app(app(node, x), xs)) -> APP(map, levels)

Furthermore, R contains one SCC.


   R
DPs
       →DP Problem 1
Narrowing Transformation


Dependency Pairs:

APP(levels, app(app(node, x), xs)) -> APP(app(map, levels), xs)
APP(levels, app(app(node, x), xs)) -> APP(app(combine, nil), app(app(map, levels), xs))
APP(levels, app(app(node, x), xs)) -> APP(app(cons, x), nil)
APP(levels, app(app(node, x), xs)) -> APP(app(cons, app(app(cons, x), nil)), app(app(combine, nil), app(app(map, levels), xs)))
APP(app(combine, xs), app(app(cons, ys), yss)) -> APP(app(zip, xs), ys)
APP(app(combine, xs), app(app(cons, ys), yss)) -> APP(app(combine, app(app(zip, xs), ys)), yss)
APP(app(zip, app(app(cons, xs), xss)), app(app(cons, ys), yss)) -> APP(app(zip, xss), yss)
APP(app(zip, app(app(cons, xs), xss)), app(app(cons, ys), yss)) -> APP(app(append, xs), ys)
APP(app(zip, app(app(cons, xs), xss)), app(app(cons, ys), yss)) -> APP(app(cons, app(app(append, xs), ys)), app(app(zip, xss), yss))
APP(app(append, app(app(cons, x), xs)), ys) -> APP(app(append, xs), ys)
APP(app(append, app(app(cons, x), xs)), ys) -> APP(app(cons, x), app(app(append, xs), ys))
APP(app(map, f), app(app(cons, x), xs)) -> APP(app(map, f), xs)
APP(app(map, f), app(app(cons, x), xs)) -> APP(f, x)
APP(app(map, f), app(app(cons, x), xs)) -> APP(app(cons, app(f, x)), app(app(map, f), xs))


Rules:


app(app(map, f), nil) -> nil
app(app(map, f), app(app(cons, x), xs)) -> app(app(cons, app(f, x)), app(app(map, f), xs))
app(app(append, xs), nil) -> xs
app(app(append, nil), ys) -> ys
app(app(append, app(app(cons, x), xs)), ys) -> app(app(cons, x), app(app(append, xs), ys))
app(app(zip, nil), yss) -> yss
app(app(zip, xss), nil) -> xss
app(app(zip, app(app(cons, xs), xss)), app(app(cons, ys), yss)) -> app(app(cons, app(app(append, xs), ys)), app(app(zip, xss), yss))
app(app(combine, xs), nil) -> xs
app(app(combine, xs), app(app(cons, ys), yss)) -> app(app(combine, app(app(zip, xs), ys)), yss)
app(levels, app(app(node, x), xs)) -> app(app(cons, app(app(cons, x), nil)), app(app(combine, nil), app(app(map, levels), xs)))





On this DP problem, a Narrowing SCC transformation can be performed.
As a result of transforming the rule

APP(levels, app(app(node, x), xs)) -> APP(app(cons, x), nil)
no new Dependency Pairs are created.
The transformation is resulting in one new DP problem:



   R
DPs
       →DP Problem 1
Nar
           →DP Problem 2
Narrowing Transformation


Dependency Pairs:

APP(levels, app(app(node, x), xs)) -> APP(app(combine, nil), app(app(map, levels), xs))
APP(levels, app(app(node, x), xs)) -> APP(app(cons, app(app(cons, x), nil)), app(app(combine, nil), app(app(map, levels), xs)))
APP(app(combine, xs), app(app(cons, ys), yss)) -> APP(app(zip, xs), ys)
APP(app(combine, xs), app(app(cons, ys), yss)) -> APP(app(combine, app(app(zip, xs), ys)), yss)
APP(app(zip, app(app(cons, xs), xss)), app(app(cons, ys), yss)) -> APP(app(zip, xss), yss)
APP(app(zip, app(app(cons, xs), xss)), app(app(cons, ys), yss)) -> APP(app(append, xs), ys)
APP(app(zip, app(app(cons, xs), xss)), app(app(cons, ys), yss)) -> APP(app(cons, app(app(append, xs), ys)), app(app(zip, xss), yss))
APP(app(append, app(app(cons, x), xs)), ys) -> APP(app(append, xs), ys)
APP(app(append, app(app(cons, x), xs)), ys) -> APP(app(cons, x), app(app(append, xs), ys))
APP(app(map, f), app(app(cons, x), xs)) -> APP(app(map, f), xs)
APP(app(map, f), app(app(cons, x), xs)) -> APP(f, x)
APP(app(map, f), app(app(cons, x), xs)) -> APP(app(cons, app(f, x)), app(app(map, f), xs))
APP(levels, app(app(node, x), xs)) -> APP(app(map, levels), xs)


Rules:


app(app(map, f), nil) -> nil
app(app(map, f), app(app(cons, x), xs)) -> app(app(cons, app(f, x)), app(app(map, f), xs))
app(app(append, xs), nil) -> xs
app(app(append, nil), ys) -> ys
app(app(append, app(app(cons, x), xs)), ys) -> app(app(cons, x), app(app(append, xs), ys))
app(app(zip, nil), yss) -> yss
app(app(zip, xss), nil) -> xss
app(app(zip, app(app(cons, xs), xss)), app(app(cons, ys), yss)) -> app(app(cons, app(app(append, xs), ys)), app(app(zip, xss), yss))
app(app(combine, xs), nil) -> xs
app(app(combine, xs), app(app(cons, ys), yss)) -> app(app(combine, app(app(zip, xs), ys)), yss)
app(levels, app(app(node, x), xs)) -> app(app(cons, app(app(cons, x), nil)), app(app(combine, nil), app(app(map, levels), xs)))





On this DP problem, a Narrowing SCC transformation can be performed.
As a result of transforming the rule

APP(app(append, app(app(cons, x), xs)), ys) -> APP(app(cons, x), app(app(append, xs), ys))
three new Dependency Pairs are created:

APP(app(append, app(app(cons, x), xs'')), nil) -> APP(app(cons, x), xs'')
APP(app(append, app(app(cons, x), nil)), ys'') -> APP(app(cons, x), ys'')
APP(app(append, app(app(cons, x), app(app(cons, x''), xs''))), ys'') -> APP(app(cons, x), app(app(cons, x''), app(app(append, xs''), ys'')))

The transformation is resulting in one new DP problem:



   R
DPs
       →DP Problem 1
Nar
           →DP Problem 2
Nar
             ...
               →DP Problem 3
Narrowing Transformation


Dependency Pairs:

APP(app(append, app(app(cons, x), app(app(cons, x''), xs''))), ys'') -> APP(app(cons, x), app(app(cons, x''), app(app(append, xs''), ys'')))
APP(app(append, app(app(cons, x), nil)), ys'') -> APP(app(cons, x), ys'')
APP(app(append, app(app(cons, x), xs'')), nil) -> APP(app(cons, x), xs'')
APP(levels, app(app(node, x), xs)) -> APP(app(map, levels), xs)
APP(levels, app(app(node, x), xs)) -> APP(app(cons, app(app(cons, x), nil)), app(app(combine, nil), app(app(map, levels), xs)))
APP(app(combine, xs), app(app(cons, ys), yss)) -> APP(app(zip, xs), ys)
APP(app(combine, xs), app(app(cons, ys), yss)) -> APP(app(combine, app(app(zip, xs), ys)), yss)
APP(app(zip, app(app(cons, xs), xss)), app(app(cons, ys), yss)) -> APP(app(zip, xss), yss)
APP(app(zip, app(app(cons, xs), xss)), app(app(cons, ys), yss)) -> APP(app(append, xs), ys)
APP(app(zip, app(app(cons, xs), xss)), app(app(cons, ys), yss)) -> APP(app(cons, app(app(append, xs), ys)), app(app(zip, xss), yss))
APP(app(append, app(app(cons, x), xs)), ys) -> APP(app(append, xs), ys)
APP(app(map, f), app(app(cons, x), xs)) -> APP(app(map, f), xs)
APP(app(map, f), app(app(cons, x), xs)) -> APP(f, x)
APP(app(map, f), app(app(cons, x), xs)) -> APP(app(cons, app(f, x)), app(app(map, f), xs))
APP(levels, app(app(node, x), xs)) -> APP(app(combine, nil), app(app(map, levels), xs))


Rules:


app(app(map, f), nil) -> nil
app(app(map, f), app(app(cons, x), xs)) -> app(app(cons, app(f, x)), app(app(map, f), xs))
app(app(append, xs), nil) -> xs
app(app(append, nil), ys) -> ys
app(app(append, app(app(cons, x), xs)), ys) -> app(app(cons, x), app(app(append, xs), ys))
app(app(zip, nil), yss) -> yss
app(app(zip, xss), nil) -> xss
app(app(zip, app(app(cons, xs), xss)), app(app(cons, ys), yss)) -> app(app(cons, app(app(append, xs), ys)), app(app(zip, xss), yss))
app(app(combine, xs), nil) -> xs
app(app(combine, xs), app(app(cons, ys), yss)) -> app(app(combine, app(app(zip, xs), ys)), yss)
app(levels, app(app(node, x), xs)) -> app(app(cons, app(app(cons, x), nil)), app(app(combine, nil), app(app(map, levels), xs)))





On this DP problem, a Narrowing SCC transformation can be performed.
As a result of transforming the rule

APP(app(zip, app(app(cons, xs), xss)), app(app(cons, ys), yss)) -> APP(app(cons, app(app(append, xs), ys)), app(app(zip, xss), yss))
six new Dependency Pairs are created:

APP(app(zip, app(app(cons, xs''), xss)), app(app(cons, nil), yss)) -> APP(app(cons, xs''), app(app(zip, xss), yss))
APP(app(zip, app(app(cons, nil), xss)), app(app(cons, ys''), yss)) -> APP(app(cons, ys''), app(app(zip, xss), yss))
APP(app(zip, app(app(cons, app(app(cons, x'), xs'')), xss)), app(app(cons, ys''), yss)) -> APP(app(cons, app(app(cons, x'), app(app(append, xs''), ys''))), app(app(zip, xss), yss))
APP(app(zip, app(app(cons, xs), nil)), app(app(cons, ys), yss'')) -> APP(app(cons, app(app(append, xs), ys)), yss'')
APP(app(zip, app(app(cons, xs), xss'')), app(app(cons, ys), nil)) -> APP(app(cons, app(app(append, xs), ys)), xss'')
APP(app(zip, app(app(cons, xs), app(app(cons, xs''), xss''))), app(app(cons, ys), app(app(cons, ys''), yss''))) -> APP(app(cons, app(app(append, xs), ys)), app(app(cons, app(app(append, xs''), ys'')), app(app(zip, xss''), yss'')))

The transformation is resulting in one new DP problem:



   R
DPs
       →DP Problem 1
Nar
           →DP Problem 2
Nar
             ...
               →DP Problem 4
Narrowing Transformation


Dependency Pairs:

APP(app(zip, app(app(cons, xs), app(app(cons, xs''), xss''))), app(app(cons, ys), app(app(cons, ys''), yss''))) -> APP(app(cons, app(app(append, xs), ys)), app(app(cons, app(app(append, xs''), ys'')), app(app(zip, xss''), yss'')))
APP(app(zip, app(app(cons, xs), xss'')), app(app(cons, ys), nil)) -> APP(app(cons, app(app(append, xs), ys)), xss'')
APP(app(zip, app(app(cons, xs), nil)), app(app(cons, ys), yss'')) -> APP(app(cons, app(app(append, xs), ys)), yss'')
APP(app(zip, app(app(cons, app(app(cons, x'), xs'')), xss)), app(app(cons, ys''), yss)) -> APP(app(cons, app(app(cons, x'), app(app(append, xs''), ys''))), app(app(zip, xss), yss))
APP(app(zip, app(app(cons, nil), xss)), app(app(cons, ys''), yss)) -> APP(app(cons, ys''), app(app(zip, xss), yss))
APP(app(zip, app(app(cons, xs''), xss)), app(app(cons, nil), yss)) -> APP(app(cons, xs''), app(app(zip, xss), yss))
APP(app(append, app(app(cons, x), nil)), ys'') -> APP(app(cons, x), ys'')
APP(app(append, app(app(cons, x), xs'')), nil) -> APP(app(cons, x), xs'')
APP(levels, app(app(node, x), xs)) -> APP(app(map, levels), xs)
APP(levels, app(app(node, x), xs)) -> APP(app(combine, nil), app(app(map, levels), xs))
APP(levels, app(app(node, x), xs)) -> APP(app(cons, app(app(cons, x), nil)), app(app(combine, nil), app(app(map, levels), xs)))
APP(app(combine, xs), app(app(cons, ys), yss)) -> APP(app(zip, xs), ys)
APP(app(combine, xs), app(app(cons, ys), yss)) -> APP(app(combine, app(app(zip, xs), ys)), yss)
APP(app(zip, app(app(cons, xs), xss)), app(app(cons, ys), yss)) -> APP(app(zip, xss), yss)
APP(app(zip, app(app(cons, xs), xss)), app(app(cons, ys), yss)) -> APP(app(append, xs), ys)
APP(app(append, app(app(cons, x), xs)), ys) -> APP(app(append, xs), ys)
APP(app(map, f), app(app(cons, x), xs)) -> APP(app(map, f), xs)
APP(app(map, f), app(app(cons, x), xs)) -> APP(f, x)
APP(app(map, f), app(app(cons, x), xs)) -> APP(app(cons, app(f, x)), app(app(map, f), xs))
APP(app(append, app(app(cons, x), app(app(cons, x''), xs''))), ys'') -> APP(app(cons, x), app(app(cons, x''), app(app(append, xs''), ys'')))


Rules:


app(app(map, f), nil) -> nil
app(app(map, f), app(app(cons, x), xs)) -> app(app(cons, app(f, x)), app(app(map, f), xs))
app(app(append, xs), nil) -> xs
app(app(append, nil), ys) -> ys
app(app(append, app(app(cons, x), xs)), ys) -> app(app(cons, x), app(app(append, xs), ys))
app(app(zip, nil), yss) -> yss
app(app(zip, xss), nil) -> xss
app(app(zip, app(app(cons, xs), xss)), app(app(cons, ys), yss)) -> app(app(cons, app(app(append, xs), ys)), app(app(zip, xss), yss))
app(app(combine, xs), nil) -> xs
app(app(combine, xs), app(app(cons, ys), yss)) -> app(app(combine, app(app(zip, xs), ys)), yss)
app(levels, app(app(node, x), xs)) -> app(app(cons, app(app(cons, x), nil)), app(app(combine, nil), app(app(map, levels), xs)))





On this DP problem, a Narrowing SCC transformation can be performed.
As a result of transforming the rule

APP(levels, app(app(node, x), xs)) -> APP(app(cons, app(app(cons, x), nil)), app(app(combine, nil), app(app(map, levels), xs)))
two new Dependency Pairs are created:

APP(levels, app(app(node, x), nil)) -> APP(app(cons, app(app(cons, x), nil)), app(app(combine, nil), nil))
APP(levels, app(app(node, x), app(app(cons, x''), xs''))) -> APP(app(cons, app(app(cons, x), nil)), app(app(combine, nil), app(app(cons, app(levels, x'')), app(app(map, levels), xs''))))

The transformation is resulting in one new DP problem:



   R
DPs
       →DP Problem 1
Nar
           →DP Problem 2
Nar
             ...
               →DP Problem 5
Narrowing Transformation


Dependency Pairs:

APP(levels, app(app(node, x), app(app(cons, x''), xs''))) -> APP(app(cons, app(app(cons, x), nil)), app(app(combine, nil), app(app(cons, app(levels, x'')), app(app(map, levels), xs''))))
APP(levels, app(app(node, x), nil)) -> APP(app(cons, app(app(cons, x), nil)), app(app(combine, nil), nil))
APP(app(zip, app(app(cons, xs), xss'')), app(app(cons, ys), nil)) -> APP(app(cons, app(app(append, xs), ys)), xss'')
APP(app(zip, app(app(cons, xs), nil)), app(app(cons, ys), yss'')) -> APP(app(cons, app(app(append, xs), ys)), yss'')
APP(app(zip, app(app(cons, app(app(cons, x'), xs'')), xss)), app(app(cons, ys''), yss)) -> APP(app(cons, app(app(cons, x'), app(app(append, xs''), ys''))), app(app(zip, xss), yss))
APP(app(zip, app(app(cons, nil), xss)), app(app(cons, ys''), yss)) -> APP(app(cons, ys''), app(app(zip, xss), yss))
APP(app(zip, app(app(cons, xs''), xss)), app(app(cons, nil), yss)) -> APP(app(cons, xs''), app(app(zip, xss), yss))
APP(app(append, app(app(cons, x), app(app(cons, x''), xs''))), ys'') -> APP(app(cons, x), app(app(cons, x''), app(app(append, xs''), ys'')))
APP(app(append, app(app(cons, x), nil)), ys'') -> APP(app(cons, x), ys'')
APP(app(append, app(app(cons, x), xs'')), nil) -> APP(app(cons, x), xs'')
APP(levels, app(app(node, x), xs)) -> APP(app(map, levels), xs)
APP(levels, app(app(node, x), xs)) -> APP(app(combine, nil), app(app(map, levels), xs))
APP(app(combine, xs), app(app(cons, ys), yss)) -> APP(app(zip, xs), ys)
APP(app(combine, xs), app(app(cons, ys), yss)) -> APP(app(combine, app(app(zip, xs), ys)), yss)
APP(app(zip, app(app(cons, xs), xss)), app(app(cons, ys), yss)) -> APP(app(zip, xss), yss)
APP(app(zip, app(app(cons, xs), xss)), app(app(cons, ys), yss)) -> APP(app(append, xs), ys)
APP(app(append, app(app(cons, x), xs)), ys) -> APP(app(append, xs), ys)
APP(app(map, f), app(app(cons, x), xs)) -> APP(app(map, f), xs)
APP(app(map, f), app(app(cons, x), xs)) -> APP(f, x)
APP(app(map, f), app(app(cons, x), xs)) -> APP(app(cons, app(f, x)), app(app(map, f), xs))
APP(app(zip, app(app(cons, xs), app(app(cons, xs''), xss''))), app(app(cons, ys), app(app(cons, ys''), yss''))) -> APP(app(cons, app(app(append, xs), ys)), app(app(cons, app(app(append, xs''), ys'')), app(app(zip, xss''), yss'')))


Rules:


app(app(map, f), nil) -> nil
app(app(map, f), app(app(cons, x), xs)) -> app(app(cons, app(f, x)), app(app(map, f), xs))
app(app(append, xs), nil) -> xs
app(app(append, nil), ys) -> ys
app(app(append, app(app(cons, x), xs)), ys) -> app(app(cons, x), app(app(append, xs), ys))
app(app(zip, nil), yss) -> yss
app(app(zip, xss), nil) -> xss
app(app(zip, app(app(cons, xs), xss)), app(app(cons, ys), yss)) -> app(app(cons, app(app(append, xs), ys)), app(app(zip, xss), yss))
app(app(combine, xs), nil) -> xs
app(app(combine, xs), app(app(cons, ys), yss)) -> app(app(combine, app(app(zip, xs), ys)), yss)
app(levels, app(app(node, x), xs)) -> app(app(cons, app(app(cons, x), nil)), app(app(combine, nil), app(app(map, levels), xs)))





On this DP problem, a Narrowing SCC transformation can be performed.
As a result of transforming the rule

APP(levels, app(app(node, x), xs)) -> APP(app(combine, nil), app(app(map, levels), xs))
two new Dependency Pairs are created:

APP(levels, app(app(node, x), nil)) -> APP(app(combine, nil), nil)
APP(levels, app(app(node, x), app(app(cons, x''), xs''))) -> APP(app(combine, nil), app(app(cons, app(levels, x'')), app(app(map, levels), xs'')))

The transformation is resulting in one new DP problem:



   R
DPs
       →DP Problem 1
Nar
           →DP Problem 2
Nar
             ...
               →DP Problem 6
Narrowing Transformation


Dependency Pairs:

APP(levels, app(app(node, x), app(app(cons, x''), xs''))) -> APP(app(combine, nil), app(app(cons, app(levels, x'')), app(app(map, levels), xs'')))
APP(levels, app(app(node, x), nil)) -> APP(app(combine, nil), nil)
APP(levels, app(app(node, x), nil)) -> APP(app(cons, app(app(cons, x), nil)), app(app(combine, nil), nil))
APP(app(zip, app(app(cons, xs), app(app(cons, xs''), xss''))), app(app(cons, ys), app(app(cons, ys''), yss''))) -> APP(app(cons, app(app(append, xs), ys)), app(app(cons, app(app(append, xs''), ys'')), app(app(zip, xss''), yss'')))
APP(app(zip, app(app(cons, xs), xss'')), app(app(cons, ys), nil)) -> APP(app(cons, app(app(append, xs), ys)), xss'')
APP(app(zip, app(app(cons, xs), nil)), app(app(cons, ys), yss'')) -> APP(app(cons, app(app(append, xs), ys)), yss'')
APP(app(zip, app(app(cons, app(app(cons, x'), xs'')), xss)), app(app(cons, ys''), yss)) -> APP(app(cons, app(app(cons, x'), app(app(append, xs''), ys''))), app(app(zip, xss), yss))
APP(app(zip, app(app(cons, nil), xss)), app(app(cons, ys''), yss)) -> APP(app(cons, ys''), app(app(zip, xss), yss))
APP(app(zip, app(app(cons, xs''), xss)), app(app(cons, nil), yss)) -> APP(app(cons, xs''), app(app(zip, xss), yss))
APP(app(append, app(app(cons, x), app(app(cons, x''), xs''))), ys'') -> APP(app(cons, x), app(app(cons, x''), app(app(append, xs''), ys'')))
APP(app(append, app(app(cons, x), nil)), ys'') -> APP(app(cons, x), ys'')
APP(app(append, app(app(cons, x), xs'')), nil) -> APP(app(cons, x), xs'')
APP(levels, app(app(node, x), xs)) -> APP(app(map, levels), xs)
APP(app(combine, xs), app(app(cons, ys), yss)) -> APP(app(zip, xs), ys)
APP(app(combine, xs), app(app(cons, ys), yss)) -> APP(app(combine, app(app(zip, xs), ys)), yss)
APP(app(zip, app(app(cons, xs), xss)), app(app(cons, ys), yss)) -> APP(app(zip, xss), yss)
APP(app(zip, app(app(cons, xs), xss)), app(app(cons, ys), yss)) -> APP(app(append, xs), ys)
APP(app(append, app(app(cons, x), xs)), ys) -> APP(app(append, xs), ys)
APP(app(map, f), app(app(cons, x), xs)) -> APP(app(map, f), xs)
APP(app(map, f), app(app(cons, x), xs)) -> APP(f, x)
APP(app(map, f), app(app(cons, x), xs)) -> APP(app(cons, app(f, x)), app(app(map, f), xs))
APP(levels, app(app(node, x), app(app(cons, x''), xs''))) -> APP(app(cons, app(app(cons, x), nil)), app(app(combine, nil), app(app(cons, app(levels, x'')), app(app(map, levels), xs''))))


Rules:


app(app(map, f), nil) -> nil
app(app(map, f), app(app(cons, x), xs)) -> app(app(cons, app(f, x)), app(app(map, f), xs))
app(app(append, xs), nil) -> xs
app(app(append, nil), ys) -> ys
app(app(append, app(app(cons, x), xs)), ys) -> app(app(cons, x), app(app(append, xs), ys))
app(app(zip, nil), yss) -> yss
app(app(zip, xss), nil) -> xss
app(app(zip, app(app(cons, xs), xss)), app(app(cons, ys), yss)) -> app(app(cons, app(app(append, xs), ys)), app(app(zip, xss), yss))
app(app(combine, xs), nil) -> xs
app(app(combine, xs), app(app(cons, ys), yss)) -> app(app(combine, app(app(zip, xs), ys)), yss)
app(levels, app(app(node, x), xs)) -> app(app(cons, app(app(cons, x), nil)), app(app(combine, nil), app(app(map, levels), xs)))





On this DP problem, a Narrowing SCC transformation can be performed.
As a result of transforming the rule

APP(app(append, app(app(cons, x), xs'')), nil) -> APP(app(cons, x), xs'')
no new Dependency Pairs are created.
The transformation is resulting in one new DP problem:



   R
DPs
       →DP Problem 1
Nar
           →DP Problem 2
Nar
             ...
               →DP Problem 7
Narrowing Transformation


Dependency Pairs:

APP(levels, app(app(node, x), nil)) -> APP(app(combine, nil), nil)
APP(levels, app(app(node, x), app(app(cons, x''), xs''))) -> APP(app(cons, app(app(cons, x), nil)), app(app(combine, nil), app(app(cons, app(levels, x'')), app(app(map, levels), xs''))))
APP(levels, app(app(node, x), nil)) -> APP(app(cons, app(app(cons, x), nil)), app(app(combine, nil), nil))
APP(app(zip, app(app(cons, xs), app(app(cons, xs''), xss''))), app(app(cons, ys), app(app(cons, ys''), yss''))) -> APP(app(cons, app(app(append, xs), ys)), app(app(cons, app(app(append, xs''), ys'')), app(app(zip, xss''), yss'')))
APP(app(zip, app(app(cons, xs), xss'')), app(app(cons, ys), nil)) -> APP(app(cons, app(app(append, xs), ys)), xss'')
APP(app(zip, app(app(cons, xs), nil)), app(app(cons, ys), yss'')) -> APP(app(cons, app(app(append, xs), ys)), yss'')
APP(app(zip, app(app(cons, app(app(cons, x'), xs'')), xss)), app(app(cons, ys''), yss)) -> APP(app(cons, app(app(cons, x'), app(app(append, xs''), ys''))), app(app(zip, xss), yss))
APP(app(zip, app(app(cons, nil), xss)), app(app(cons, ys''), yss)) -> APP(app(cons, ys''), app(app(zip, xss), yss))
APP(app(zip, app(app(cons, xs''), xss)), app(app(cons, nil), yss)) -> APP(app(cons, xs''), app(app(zip, xss), yss))
APP(app(append, app(app(cons, x), app(app(cons, x''), xs''))), ys'') -> APP(app(cons, x), app(app(cons, x''), app(app(append, xs''), ys'')))
APP(app(append, app(app(cons, x), nil)), ys'') -> APP(app(cons, x), ys'')
APP(levels, app(app(node, x), xs)) -> APP(app(map, levels), xs)
APP(app(combine, xs), app(app(cons, ys), yss)) -> APP(app(zip, xs), ys)
APP(app(combine, xs), app(app(cons, ys), yss)) -> APP(app(combine, app(app(zip, xs), ys)), yss)
APP(app(zip, app(app(cons, xs), xss)), app(app(cons, ys), yss)) -> APP(app(zip, xss), yss)
APP(app(zip, app(app(cons, xs), xss)), app(app(cons, ys), yss)) -> APP(app(append, xs), ys)
APP(app(append, app(app(cons, x), xs)), ys) -> APP(app(append, xs), ys)
APP(app(map, f), app(app(cons, x), xs)) -> APP(app(map, f), xs)
APP(app(map, f), app(app(cons, x), xs)) -> APP(f, x)
APP(app(map, f), app(app(cons, x), xs)) -> APP(app(cons, app(f, x)), app(app(map, f), xs))
APP(levels, app(app(node, x), app(app(cons, x''), xs''))) -> APP(app(combine, nil), app(app(cons, app(levels, x'')), app(app(map, levels), xs'')))


Rules:


app(app(map, f), nil) -> nil
app(app(map, f), app(app(cons, x), xs)) -> app(app(cons, app(f, x)), app(app(map, f), xs))
app(app(append, xs), nil) -> xs
app(app(append, nil), ys) -> ys
app(app(append, app(app(cons, x), xs)), ys) -> app(app(cons, x), app(app(append, xs), ys))
app(app(zip, nil), yss) -> yss
app(app(zip, xss), nil) -> xss
app(app(zip, app(app(cons, xs), xss)), app(app(cons, ys), yss)) -> app(app(cons, app(app(append, xs), ys)), app(app(zip, xss), yss))
app(app(combine, xs), nil) -> xs
app(app(combine, xs), app(app(cons, ys), yss)) -> app(app(combine, app(app(zip, xs), ys)), yss)
app(levels, app(app(node, x), xs)) -> app(app(cons, app(app(cons, x), nil)), app(app(combine, nil), app(app(map, levels), xs)))





On this DP problem, a Narrowing SCC transformation can be performed.
As a result of transforming the rule

APP(app(append, app(app(cons, x), nil)), ys'') -> APP(app(cons, x), ys'')
no new Dependency Pairs are created.
The transformation is resulting in one new DP problem:



   R
DPs
       →DP Problem 1
Nar
           →DP Problem 2
Nar
             ...
               →DP Problem 8
Narrowing Transformation


Dependency Pairs:

APP(levels, app(app(node, x), app(app(cons, x''), xs''))) -> APP(app(combine, nil), app(app(cons, app(levels, x'')), app(app(map, levels), xs'')))
APP(levels, app(app(node, x), app(app(cons, x''), xs''))) -> APP(app(cons, app(app(cons, x), nil)), app(app(combine, nil), app(app(cons, app(levels, x'')), app(app(map, levels), xs''))))
APP(levels, app(app(node, x), nil)) -> APP(app(cons, app(app(cons, x), nil)), app(app(combine, nil), nil))
APP(app(zip, app(app(cons, xs), app(app(cons, xs''), xss''))), app(app(cons, ys), app(app(cons, ys''), yss''))) -> APP(app(cons, app(app(append, xs), ys)), app(app(cons, app(app(append, xs''), ys'')), app(app(zip, xss''), yss'')))
APP(app(zip, app(app(cons, xs), xss'')), app(app(cons, ys), nil)) -> APP(app(cons, app(app(append, xs), ys)), xss'')
APP(app(zip, app(app(cons, xs), nil)), app(app(cons, ys), yss'')) -> APP(app(cons, app(app(append, xs), ys)), yss'')
APP(app(zip, app(app(cons, app(app(cons, x'), xs'')), xss)), app(app(cons, ys''), yss)) -> APP(app(cons, app(app(cons, x'), app(app(append, xs''), ys''))), app(app(zip, xss), yss))
APP(app(zip, app(app(cons, nil), xss)), app(app(cons, ys''), yss)) -> APP(app(cons, ys''), app(app(zip, xss), yss))
APP(app(zip, app(app(cons, xs''), xss)), app(app(cons, nil), yss)) -> APP(app(cons, xs''), app(app(zip, xss), yss))
APP(app(append, app(app(cons, x), app(app(cons, x''), xs''))), ys'') -> APP(app(cons, x), app(app(cons, x''), app(app(append, xs''), ys'')))
APP(levels, app(app(node, x), xs)) -> APP(app(map, levels), xs)
APP(app(combine, xs), app(app(cons, ys), yss)) -> APP(app(zip, xs), ys)
APP(app(combine, xs), app(app(cons, ys), yss)) -> APP(app(combine, app(app(zip, xs), ys)), yss)
APP(app(zip, app(app(cons, xs), xss)), app(app(cons, ys), yss)) -> APP(app(zip, xss), yss)
APP(app(zip, app(app(cons, xs), xss)), app(app(cons, ys), yss)) -> APP(app(append, xs), ys)
APP(app(map, f), app(app(cons, x), xs)) -> APP(app(map, f), xs)
APP(app(map, f), app(app(cons, x), xs)) -> APP(f, x)
APP(app(map, f), app(app(cons, x), xs)) -> APP(app(cons, app(f, x)), app(app(map, f), xs))
APP(app(append, app(app(cons, x), xs)), ys) -> APP(app(append, xs), ys)
APP(levels, app(app(node, x), nil)) -> APP(app(combine, nil), nil)


Rules:


app(app(map, f), nil) -> nil
app(app(map, f), app(app(cons, x), xs)) -> app(app(cons, app(f, x)), app(app(map, f), xs))
app(app(append, xs), nil) -> xs
app(app(append, nil), ys) -> ys
app(app(append, app(app(cons, x), xs)), ys) -> app(app(cons, x), app(app(append, xs), ys))
app(app(zip, nil), yss) -> yss
app(app(zip, xss), nil) -> xss
app(app(zip, app(app(cons, xs), xss)), app(app(cons, ys), yss)) -> app(app(cons, app(app(append, xs), ys)), app(app(zip, xss), yss))
app(app(combine, xs), nil) -> xs
app(app(combine, xs), app(app(cons, ys), yss)) -> app(app(combine, app(app(zip, xs), ys)), yss)
app(levels, app(app(node, x), xs)) -> app(app(cons, app(app(cons, x), nil)), app(app(combine, nil), app(app(map, levels), xs)))





On this DP problem, a Narrowing SCC transformation can be performed.
As a result of transforming the rule

APP(levels, app(app(node, x), nil)) -> APP(app(combine, nil), nil)
no new Dependency Pairs are created.
The transformation is resulting in one new DP problem:



   R
DPs
       →DP Problem 1
Nar
           →DP Problem 2
Nar
             ...
               →DP Problem 9
Remaining Obligation(s)




The following remains to be proven:
Dependency Pairs:

APP(levels, app(app(node, x), app(app(cons, x''), xs''))) -> APP(app(cons, app(app(cons, x), nil)), app(app(combine, nil), app(app(cons, app(levels, x'')), app(app(map, levels), xs''))))
APP(levels, app(app(node, x), nil)) -> APP(app(cons, app(app(cons, x), nil)), app(app(combine, nil), nil))
APP(app(zip, app(app(cons, xs), app(app(cons, xs''), xss''))), app(app(cons, ys), app(app(cons, ys''), yss''))) -> APP(app(cons, app(app(append, xs), ys)), app(app(cons, app(app(append, xs''), ys'')), app(app(zip, xss''), yss'')))
APP(app(zip, app(app(cons, xs), xss'')), app(app(cons, ys), nil)) -> APP(app(cons, app(app(append, xs), ys)), xss'')
APP(app(zip, app(app(cons, xs), nil)), app(app(cons, ys), yss'')) -> APP(app(cons, app(app(append, xs), ys)), yss'')
APP(app(zip, app(app(cons, app(app(cons, x'), xs'')), xss)), app(app(cons, ys''), yss)) -> APP(app(cons, app(app(cons, x'), app(app(append, xs''), ys''))), app(app(zip, xss), yss))
APP(app(zip, app(app(cons, nil), xss)), app(app(cons, ys''), yss)) -> APP(app(cons, ys''), app(app(zip, xss), yss))
APP(app(zip, app(app(cons, xs''), xss)), app(app(cons, nil), yss)) -> APP(app(cons, xs''), app(app(zip, xss), yss))
APP(app(append, app(app(cons, x), app(app(cons, x''), xs''))), ys'') -> APP(app(cons, x), app(app(cons, x''), app(app(append, xs''), ys'')))
APP(levels, app(app(node, x), xs)) -> APP(app(map, levels), xs)
APP(app(combine, xs), app(app(cons, ys), yss)) -> APP(app(zip, xs), ys)
APP(app(combine, xs), app(app(cons, ys), yss)) -> APP(app(combine, app(app(zip, xs), ys)), yss)
APP(app(zip, app(app(cons, xs), xss)), app(app(cons, ys), yss)) -> APP(app(zip, xss), yss)
APP(app(zip, app(app(cons, xs), xss)), app(app(cons, ys), yss)) -> APP(app(append, xs), ys)
APP(app(append, app(app(cons, x), xs)), ys) -> APP(app(append, xs), ys)
APP(app(map, f), app(app(cons, x), xs)) -> APP(app(map, f), xs)
APP(app(map, f), app(app(cons, x), xs)) -> APP(f, x)
APP(app(map, f), app(app(cons, x), xs)) -> APP(app(cons, app(f, x)), app(app(map, f), xs))
APP(levels, app(app(node, x), app(app(cons, x''), xs''))) -> APP(app(combine, nil), app(app(cons, app(levels, x'')), app(app(map, levels), xs'')))


Rules:


app(app(map, f), nil) -> nil
app(app(map, f), app(app(cons, x), xs)) -> app(app(cons, app(f, x)), app(app(map, f), xs))
app(app(append, xs), nil) -> xs
app(app(append, nil), ys) -> ys
app(app(append, app(app(cons, x), xs)), ys) -> app(app(cons, x), app(app(append, xs), ys))
app(app(zip, nil), yss) -> yss
app(app(zip, xss), nil) -> xss
app(app(zip, app(app(cons, xs), xss)), app(app(cons, ys), yss)) -> app(app(cons, app(app(append, xs), ys)), app(app(zip, xss), yss))
app(app(combine, xs), nil) -> xs
app(app(combine, xs), app(app(cons, ys), yss)) -> app(app(combine, app(app(zip, xs), ys)), yss)
app(levels, app(app(node, x), xs)) -> app(app(cons, app(app(cons, x), nil)), app(app(combine, nil), app(app(map, levels), xs)))




Termination of R could not be shown.
Duration:
0:09 minutes