(VAR fun x xs y z ) (STRATEGY INNERMOST) (RULES app(app(app(app(f, 0), 1), app(app(g, x), y)), z) -> app(app(app(app(f, app(app(g, x), y)), app(app(g, x), y)), app(app(g, x), y)), app(h, x)) app(app(g, 0), 1) -> 0 app(app(g, 0), 1) -> 1 app(h, app(app(g, x), y)) -> app(h, 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) )