(VAR fun x xs y z ) (STRATEGY INNERMOST) (RULES app(app(app(f, 0), 1), x) -> app(app(app(f, x), x), x) app(app(app(f, x), y), z) -> 2 0 -> 2 1 -> 2 app(app(app(g, x), x), y) -> y app(app(app(g, x), y), y) -> x app(app(map, fun), nil) -> nil app(app(map, fun), app(app(cons, x), xs)) -> app(app(cons, app(fun, x)), app(app(map, fun), xs)) app(app(filter, fun), nil) -> nil app(app(filter, fun), app(app(cons, x), xs)) -> app(app(app(app(filter2, app(fun, x)), fun), x), xs) app(app(app(app(filter2, true), fun), x), xs) -> app(app(cons, x), app(app(filter, fun), xs)) app(app(app(app(filter2, false), fun), x), xs) -> app(app(filter, fun), xs) )