(0) Obligation:

Q restricted rewrite system:
The TRS R consists of the following rules:

app(app(plus, 0), y) → y
app(app(plus, app(s, x)), y) → app(s, app(app(plus, x), y))
app(app(times, 0), y) → 0
app(app(times, app(s, x)), y) → app(app(plus, app(app(times, x), y)), y)
app(inc, xs) → app(app(map, app(plus, app(s, 0))), xs)
app(double, xs) → app(app(map, app(times, app(s, app(s, 0)))), xs)
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))

Q is empty.

(1) DependencyPairsProof (EQUIVALENT transformation)

Using Dependency Pairs [AG00,LPAR04] we result in the following initial DP problem.

(2) Obligation:

Q DP problem:
The TRS P consists of the following rules:

APP(app(plus, app(s, x)), y) → APP(s, app(app(plus, x), y))
APP(app(plus, app(s, x)), y) → APP(app(plus, x), y)
APP(app(plus, app(s, x)), y) → APP(plus, x)
APP(app(times, app(s, x)), y) → APP(app(plus, app(app(times, x), y)), y)
APP(app(times, app(s, x)), y) → APP(plus, app(app(times, x), y))
APP(app(times, app(s, x)), y) → APP(app(times, x), y)
APP(app(times, app(s, x)), y) → APP(times, x)
APP(inc, xs) → APP(app(map, app(plus, app(s, 0))), xs)
APP(inc, xs) → APP(map, app(plus, app(s, 0)))
APP(inc, xs) → APP(plus, app(s, 0))
APP(inc, xs) → APP(s, 0)
APP(double, xs) → APP(app(map, app(times, app(s, app(s, 0)))), xs)
APP(double, xs) → APP(map, app(times, app(s, app(s, 0))))
APP(double, xs) → APP(times, app(s, app(s, 0)))
APP(double, xs) → APP(s, app(s, 0))
APP(double, xs) → APP(s, 0)
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)

The TRS R consists of the following rules:

app(app(plus, 0), y) → y
app(app(plus, app(s, x)), y) → app(s, app(app(plus, x), y))
app(app(times, 0), y) → 0
app(app(times, app(s, x)), y) → app(app(plus, app(app(times, x), y)), y)
app(inc, xs) → app(app(map, app(plus, app(s, 0))), xs)
app(double, xs) → app(app(map, app(times, app(s, app(s, 0)))), xs)
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))

Q is empty.
We have to consider all minimal (P,Q,R)-chains.

(3) DependencyGraphProof (EQUIVALENT transformation)

The approximation of the Dependency Graph [LPAR04,FROCOS05,EDGSTAR] contains 3 SCCs with 14 less nodes.

(4) Complex Obligation (AND)

(5) Obligation:

Q DP problem:
The TRS P consists of the following rules:

APP(app(plus, app(s, x)), y) → APP(app(plus, x), y)

The TRS R consists of the following rules:

app(app(plus, 0), y) → y
app(app(plus, app(s, x)), y) → app(s, app(app(plus, x), y))
app(app(times, 0), y) → 0
app(app(times, app(s, x)), y) → app(app(plus, app(app(times, x), y)), y)
app(inc, xs) → app(app(map, app(plus, app(s, 0))), xs)
app(double, xs) → app(app(map, app(times, app(s, app(s, 0)))), xs)
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))

Q is empty.
We have to consider all minimal (P,Q,R)-chains.

(6) QDPSizeChangeProof (EQUIVALENT transformation)

We used the following order and afs together with the size-change analysis [AAECC05] to show that there are no infinite chains for this DP problem.

Order:Homeomorphic Embedding Order

AFS:
plus  =  plus
s  =  s
app(x1, x2)  =  app(x2)

From the DPs we obtained the following set of size-change graphs:

  • APP(app(plus, app(s, x)), y) → APP(app(plus, x), y) (allowed arguments on rhs = {1, 2})
    The graph contains the following edges 1 > 1, 2 >= 2

We oriented the following set of usable rules [AAECC05,FROCOS05]. none

(7) TRUE

(8) Obligation:

Q DP problem:
The TRS P consists of the following rules:

APP(app(times, app(s, x)), y) → APP(app(times, x), y)

The TRS R consists of the following rules:

app(app(plus, 0), y) → y
app(app(plus, app(s, x)), y) → app(s, app(app(plus, x), y))
app(app(times, 0), y) → 0
app(app(times, app(s, x)), y) → app(app(plus, app(app(times, x), y)), y)
app(inc, xs) → app(app(map, app(plus, app(s, 0))), xs)
app(double, xs) → app(app(map, app(times, app(s, app(s, 0)))), xs)
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))

Q is empty.
We have to consider all minimal (P,Q,R)-chains.

(9) QDPSizeChangeProof (EQUIVALENT transformation)

We used the following order and afs together with the size-change analysis [AAECC05] to show that there are no infinite chains for this DP problem.

Order:Homeomorphic Embedding Order

AFS:
times  =  times
s  =  s
app(x1, x2)  =  app(x2)

From the DPs we obtained the following set of size-change graphs:

  • APP(app(times, app(s, x)), y) → APP(app(times, x), y) (allowed arguments on rhs = {1, 2})
    The graph contains the following edges 1 > 1, 2 >= 2

We oriented the following set of usable rules [AAECC05,FROCOS05]. none

(10) TRUE

(11) Obligation:

Q DP problem:
The TRS P consists of the following rules:

APP(inc, xs) → APP(app(map, app(plus, app(s, 0))), xs)
APP(app(map, f), app(app(cons, x), xs)) → APP(f, x)
APP(double, xs) → APP(app(map, app(times, app(s, app(s, 0)))), xs)
APP(app(map, f), app(app(cons, x), xs)) → APP(app(map, f), xs)

The TRS R consists of the following rules:

app(app(plus, 0), y) → y
app(app(plus, app(s, x)), y) → app(s, app(app(plus, x), y))
app(app(times, 0), y) → 0
app(app(times, app(s, x)), y) → app(app(plus, app(app(times, x), y)), y)
app(inc, xs) → app(app(map, app(plus, app(s, 0))), xs)
app(double, xs) → app(app(map, app(times, app(s, app(s, 0)))), xs)
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))

Q is empty.
We have to consider all minimal (P,Q,R)-chains.

(12) QDPSizeChangeProof (EQUIVALENT transformation)

We used the following order and afs together with the size-change analysis [AAECC05] to show that there are no infinite chains for this DP problem.

Order:Homeomorphic Embedding Order

AFS:
inc  =  inc
map  =  map
cons  =  cons
double  =  double
app(x1, x2)  =  app(x1, x2)

From the DPs we obtained the following set of size-change graphs:

  • APP(app(map, f), app(app(cons, x), xs)) → APP(f, x) (allowed arguments on rhs = {1, 2})
    The graph contains the following edges 1 > 1, 2 > 2

  • APP(app(map, f), app(app(cons, x), xs)) → APP(app(map, f), xs) (allowed arguments on rhs = {1, 2})
    The graph contains the following edges 1 >= 1, 2 > 2

  • APP(inc, xs) → APP(app(map, app(plus, app(s, 0))), xs) (allowed arguments on rhs = {2})
    The graph contains the following edges 2 >= 2

  • APP(double, xs) → APP(app(map, app(times, app(s, app(s, 0)))), xs) (allowed arguments on rhs = {2})
    The graph contains the following edges 2 >= 2

We oriented the following set of usable rules [AAECC05,FROCOS05]. none

(13) TRUE