0 QTRS
↳1 Overlay + Local Confluence (⇔)
↳2 QTRS
↳3 DependencyPairsProof (⇔)
↳4 QDP
↳5 DependencyGraphProof (⇔)
↳6 AND
↳7 QDP
↳8 QDPOrderProof (⇔)
↳9 QDP
↳10 PisEmptyProof (⇔)
↳11 TRUE
↳12 QDP
↳13 QDPOrderProof (⇔)
↳14 QDP
↳15 PisEmptyProof (⇔)
↳16 TRUE
↳17 QDP
↳18 QDPOrderProof (⇔)
↳19 QDP
↳20 QDPOrderProof (⇔)
↳21 QDP
↳22 PisEmptyProof (⇔)
↳23 TRUE
↳24 QDP
↳25 QDPOrderProof (⇔)
↳26 QDP
↳27 DependencyGraphProof (⇔)
↳28 TRUE
app(app(minus, 0), y) → 0
app(app(minus, app(s, x)), 0) → app(s, x)
app(app(minus, app(s, x)), app(s, y)) → app(app(minus, x), y)
app(app(le, 0), y) → true
app(app(le, app(s, x)), 0) → false
app(app(le, app(s, x)), app(s, y)) → app(app(le, x), y)
app(app(app(if, true), x), y) → x
app(app(app(if, false), x), y) → y
app(perfectp, 0) → false
app(perfectp, app(s, x)) → app(app(app(app(f, x), app(s, 0)), app(s, x)), app(s, x))
app(app(app(app(f, 0), y), 0), u) → true
app(app(app(app(f, 0), y), app(s, z)), u) → false
app(app(app(app(f, app(s, x)), 0), z), u) → app(app(app(app(f, x), u), app(app(minus, z), app(s, x))), u)
app(app(app(app(f, app(s, x)), app(s, y)), z), u) → app(app(app(if, app(app(le, x), y)), app(app(app(app(f, app(s, x)), app(app(minus, y), x)), z), u)), app(app(app(app(f, x), u), z), u))
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)
app(app(minus, 0), y) → 0
app(app(minus, app(s, x)), 0) → app(s, x)
app(app(minus, app(s, x)), app(s, y)) → app(app(minus, x), y)
app(app(le, 0), y) → true
app(app(le, app(s, x)), 0) → false
app(app(le, app(s, x)), app(s, y)) → app(app(le, x), y)
app(app(app(if, true), x), y) → x
app(app(app(if, false), x), y) → y
app(perfectp, 0) → false
app(perfectp, app(s, x)) → app(app(app(app(f, x), app(s, 0)), app(s, x)), app(s, x))
app(app(app(app(f, 0), y), 0), u) → true
app(app(app(app(f, 0), y), app(s, z)), u) → false
app(app(app(app(f, app(s, x)), 0), z), u) → app(app(app(app(f, x), u), app(app(minus, z), app(s, x))), u)
app(app(app(app(f, app(s, x)), app(s, y)), z), u) → app(app(app(if, app(app(le, x), y)), app(app(app(app(f, app(s, x)), app(app(minus, y), x)), z), u)), app(app(app(app(f, x), u), z), u))
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)
app(app(minus, 0), x0)
app(app(minus, app(s, x0)), 0)
app(app(minus, app(s, x0)), app(s, x1))
app(app(le, 0), x0)
app(app(le, app(s, x0)), 0)
app(app(le, app(s, x0)), app(s, x1))
app(app(app(if, true), x0), x1)
app(app(app(if, false), x0), x1)
app(perfectp, 0)
app(perfectp, app(s, x0))
app(app(app(app(f, 0), x0), 0), x1)
app(app(app(app(f, 0), x0), app(s, x1)), x2)
app(app(app(app(f, app(s, x0)), 0), x1), x2)
app(app(app(app(f, app(s, x0)), app(s, x1)), x2), x3)
app(app(map, x0), nil)
app(app(map, x0), app(app(cons, x1), x2))
app(app(filter, x0), nil)
app(app(filter, x0), app(app(cons, x1), x2))
app(app(app(app(filter2, true), x0), x1), x2)
app(app(app(app(filter2, false), x0), x1), x2)
APP(app(minus, app(s, x)), app(s, y)) → APP(app(minus, x), y)
APP(app(minus, app(s, x)), app(s, y)) → APP(minus, x)
APP(app(le, app(s, x)), app(s, y)) → APP(app(le, x), y)
APP(app(le, app(s, x)), app(s, y)) → APP(le, x)
APP(perfectp, app(s, x)) → APP(app(app(app(f, x), app(s, 0)), app(s, x)), app(s, x))
APP(perfectp, app(s, x)) → APP(app(app(f, x), app(s, 0)), app(s, x))
APP(perfectp, app(s, x)) → APP(app(f, x), app(s, 0))
APP(perfectp, app(s, x)) → APP(f, x)
APP(perfectp, app(s, x)) → APP(s, 0)
APP(app(app(app(f, app(s, x)), 0), z), u) → APP(app(app(app(f, x), u), app(app(minus, z), app(s, x))), u)
APP(app(app(app(f, app(s, x)), 0), z), u) → APP(app(app(f, x), u), app(app(minus, z), app(s, x)))
APP(app(app(app(f, app(s, x)), 0), z), u) → APP(app(f, x), u)
APP(app(app(app(f, app(s, x)), 0), z), u) → APP(f, x)
APP(app(app(app(f, app(s, x)), 0), z), u) → APP(app(minus, z), app(s, x))
APP(app(app(app(f, app(s, x)), 0), z), u) → APP(minus, z)
APP(app(app(app(f, app(s, x)), app(s, y)), z), u) → APP(app(app(if, app(app(le, x), y)), app(app(app(app(f, app(s, x)), app(app(minus, y), x)), z), u)), app(app(app(app(f, x), u), z), u))
APP(app(app(app(f, app(s, x)), app(s, y)), z), u) → APP(app(if, app(app(le, x), y)), app(app(app(app(f, app(s, x)), app(app(minus, y), x)), z), u))
APP(app(app(app(f, app(s, x)), app(s, y)), z), u) → APP(if, app(app(le, x), y))
APP(app(app(app(f, app(s, x)), app(s, y)), z), u) → APP(app(le, x), y)
APP(app(app(app(f, app(s, x)), app(s, y)), z), u) → APP(le, x)
APP(app(app(app(f, app(s, x)), app(s, y)), z), u) → APP(app(app(app(f, app(s, x)), app(app(minus, y), x)), z), u)
APP(app(app(app(f, app(s, x)), app(s, y)), z), u) → APP(app(app(f, app(s, x)), app(app(minus, y), x)), z)
APP(app(app(app(f, app(s, x)), app(s, y)), z), u) → APP(app(f, app(s, x)), app(app(minus, y), x))
APP(app(app(app(f, app(s, x)), app(s, y)), z), u) → APP(app(minus, y), x)
APP(app(app(app(f, app(s, x)), app(s, y)), z), u) → APP(minus, y)
APP(app(app(app(f, app(s, x)), app(s, y)), z), u) → APP(app(app(app(f, x), u), z), u)
APP(app(app(app(f, app(s, x)), app(s, y)), z), u) → APP(app(app(f, x), u), z)
APP(app(app(app(f, app(s, x)), app(s, y)), z), u) → APP(app(f, x), u)
APP(app(app(app(f, app(s, x)), app(s, y)), z), u) → APP(f, x)
APP(app(map, fun), app(app(cons, x), xs)) → APP(app(cons, app(fun, x)), app(app(map, fun), xs))
APP(app(map, fun), app(app(cons, x), xs)) → APP(cons, app(fun, x))
APP(app(map, fun), app(app(cons, x), xs)) → APP(fun, x)
APP(app(map, fun), app(app(cons, x), xs)) → APP(app(map, fun), xs)
APP(app(filter, fun), app(app(cons, x), xs)) → APP(app(app(app(filter2, app(fun, x)), fun), x), xs)
APP(app(filter, fun), app(app(cons, x), xs)) → APP(app(app(filter2, app(fun, x)), fun), x)
APP(app(filter, fun), app(app(cons, x), xs)) → APP(app(filter2, app(fun, x)), fun)
APP(app(filter, fun), app(app(cons, x), xs)) → APP(filter2, app(fun, x))
APP(app(filter, fun), app(app(cons, x), xs)) → APP(fun, x)
APP(app(app(app(filter2, true), fun), x), xs) → APP(app(cons, x), app(app(filter, fun), xs))
APP(app(app(app(filter2, true), fun), x), xs) → APP(cons, x)
APP(app(app(app(filter2, true), fun), x), xs) → APP(app(filter, fun), xs)
APP(app(app(app(filter2, true), fun), x), xs) → APP(filter, fun)
APP(app(app(app(filter2, false), fun), x), xs) → APP(app(filter, fun), xs)
APP(app(app(app(filter2, false), fun), x), xs) → APP(filter, fun)
app(app(minus, 0), y) → 0
app(app(minus, app(s, x)), 0) → app(s, x)
app(app(minus, app(s, x)), app(s, y)) → app(app(minus, x), y)
app(app(le, 0), y) → true
app(app(le, app(s, x)), 0) → false
app(app(le, app(s, x)), app(s, y)) → app(app(le, x), y)
app(app(app(if, true), x), y) → x
app(app(app(if, false), x), y) → y
app(perfectp, 0) → false
app(perfectp, app(s, x)) → app(app(app(app(f, x), app(s, 0)), app(s, x)), app(s, x))
app(app(app(app(f, 0), y), 0), u) → true
app(app(app(app(f, 0), y), app(s, z)), u) → false
app(app(app(app(f, app(s, x)), 0), z), u) → app(app(app(app(f, x), u), app(app(minus, z), app(s, x))), u)
app(app(app(app(f, app(s, x)), app(s, y)), z), u) → app(app(app(if, app(app(le, x), y)), app(app(app(app(f, app(s, x)), app(app(minus, y), x)), z), u)), app(app(app(app(f, x), u), z), u))
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)
app(app(minus, 0), x0)
app(app(minus, app(s, x0)), 0)
app(app(minus, app(s, x0)), app(s, x1))
app(app(le, 0), x0)
app(app(le, app(s, x0)), 0)
app(app(le, app(s, x0)), app(s, x1))
app(app(app(if, true), x0), x1)
app(app(app(if, false), x0), x1)
app(perfectp, 0)
app(perfectp, app(s, x0))
app(app(app(app(f, 0), x0), 0), x1)
app(app(app(app(f, 0), x0), app(s, x1)), x2)
app(app(app(app(f, app(s, x0)), 0), x1), x2)
app(app(app(app(f, app(s, x0)), app(s, x1)), x2), x3)
app(app(map, x0), nil)
app(app(map, x0), app(app(cons, x1), x2))
app(app(filter, x0), nil)
app(app(filter, x0), app(app(cons, x1), x2))
app(app(app(app(filter2, true), x0), x1), x2)
app(app(app(app(filter2, false), x0), x1), x2)
APP(app(le, app(s, x)), app(s, y)) → APP(app(le, x), y)
app(app(minus, 0), y) → 0
app(app(minus, app(s, x)), 0) → app(s, x)
app(app(minus, app(s, x)), app(s, y)) → app(app(minus, x), y)
app(app(le, 0), y) → true
app(app(le, app(s, x)), 0) → false
app(app(le, app(s, x)), app(s, y)) → app(app(le, x), y)
app(app(app(if, true), x), y) → x
app(app(app(if, false), x), y) → y
app(perfectp, 0) → false
app(perfectp, app(s, x)) → app(app(app(app(f, x), app(s, 0)), app(s, x)), app(s, x))
app(app(app(app(f, 0), y), 0), u) → true
app(app(app(app(f, 0), y), app(s, z)), u) → false
app(app(app(app(f, app(s, x)), 0), z), u) → app(app(app(app(f, x), u), app(app(minus, z), app(s, x))), u)
app(app(app(app(f, app(s, x)), app(s, y)), z), u) → app(app(app(if, app(app(le, x), y)), app(app(app(app(f, app(s, x)), app(app(minus, y), x)), z), u)), app(app(app(app(f, x), u), z), u))
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)
app(app(minus, 0), x0)
app(app(minus, app(s, x0)), 0)
app(app(minus, app(s, x0)), app(s, x1))
app(app(le, 0), x0)
app(app(le, app(s, x0)), 0)
app(app(le, app(s, x0)), app(s, x1))
app(app(app(if, true), x0), x1)
app(app(app(if, false), x0), x1)
app(perfectp, 0)
app(perfectp, app(s, x0))
app(app(app(app(f, 0), x0), 0), x1)
app(app(app(app(f, 0), x0), app(s, x1)), x2)
app(app(app(app(f, app(s, x0)), 0), x1), x2)
app(app(app(app(f, app(s, x0)), app(s, x1)), x2), x3)
app(app(map, x0), nil)
app(app(map, x0), app(app(cons, x1), x2))
app(app(filter, x0), nil)
app(app(filter, x0), app(app(cons, x1), x2))
app(app(app(app(filter2, true), x0), x1), x2)
app(app(app(app(filter2, false), x0), x1), x2)
le1(s(x), s(y)) → le1(x, y)
The following pairs can be oriented strictly and are deleted.
The remaining pairs can at least be oriented weakly.
APP(app(le, app(s, x)), app(s, y)) → APP(app(le, x), y)
s1 > le11
app(app(minus, 0), y) → 0
app(app(minus, app(s, x)), 0) → app(s, x)
app(app(minus, app(s, x)), app(s, y)) → app(app(minus, x), y)
app(app(le, 0), y) → true
app(app(le, app(s, x)), 0) → false
app(app(le, app(s, x)), app(s, y)) → app(app(le, x), y)
app(app(app(if, true), x), y) → x
app(app(app(if, false), x), y) → y
app(perfectp, 0) → false
app(perfectp, app(s, x)) → app(app(app(app(f, x), app(s, 0)), app(s, x)), app(s, x))
app(app(app(app(f, 0), y), 0), u) → true
app(app(app(app(f, 0), y), app(s, z)), u) → false
app(app(app(app(f, app(s, x)), 0), z), u) → app(app(app(app(f, x), u), app(app(minus, z), app(s, x))), u)
app(app(app(app(f, app(s, x)), app(s, y)), z), u) → app(app(app(if, app(app(le, x), y)), app(app(app(app(f, app(s, x)), app(app(minus, y), x)), z), u)), app(app(app(app(f, x), u), z), u))
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)
app(app(minus, 0), x0)
app(app(minus, app(s, x0)), 0)
app(app(minus, app(s, x0)), app(s, x1))
app(app(le, 0), x0)
app(app(le, app(s, x0)), 0)
app(app(le, app(s, x0)), app(s, x1))
app(app(app(if, true), x0), x1)
app(app(app(if, false), x0), x1)
app(perfectp, 0)
app(perfectp, app(s, x0))
app(app(app(app(f, 0), x0), 0), x1)
app(app(app(app(f, 0), x0), app(s, x1)), x2)
app(app(app(app(f, app(s, x0)), 0), x1), x2)
app(app(app(app(f, app(s, x0)), app(s, x1)), x2), x3)
app(app(map, x0), nil)
app(app(map, x0), app(app(cons, x1), x2))
app(app(filter, x0), nil)
app(app(filter, x0), app(app(cons, x1), x2))
app(app(app(app(filter2, true), x0), x1), x2)
app(app(app(app(filter2, false), x0), x1), x2)
APP(app(minus, app(s, x)), app(s, y)) → APP(app(minus, x), y)
app(app(minus, 0), y) → 0
app(app(minus, app(s, x)), 0) → app(s, x)
app(app(minus, app(s, x)), app(s, y)) → app(app(minus, x), y)
app(app(le, 0), y) → true
app(app(le, app(s, x)), 0) → false
app(app(le, app(s, x)), app(s, y)) → app(app(le, x), y)
app(app(app(if, true), x), y) → x
app(app(app(if, false), x), y) → y
app(perfectp, 0) → false
app(perfectp, app(s, x)) → app(app(app(app(f, x), app(s, 0)), app(s, x)), app(s, x))
app(app(app(app(f, 0), y), 0), u) → true
app(app(app(app(f, 0), y), app(s, z)), u) → false
app(app(app(app(f, app(s, x)), 0), z), u) → app(app(app(app(f, x), u), app(app(minus, z), app(s, x))), u)
app(app(app(app(f, app(s, x)), app(s, y)), z), u) → app(app(app(if, app(app(le, x), y)), app(app(app(app(f, app(s, x)), app(app(minus, y), x)), z), u)), app(app(app(app(f, x), u), z), u))
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)
app(app(minus, 0), x0)
app(app(minus, app(s, x0)), 0)
app(app(minus, app(s, x0)), app(s, x1))
app(app(le, 0), x0)
app(app(le, app(s, x0)), 0)
app(app(le, app(s, x0)), app(s, x1))
app(app(app(if, true), x0), x1)
app(app(app(if, false), x0), x1)
app(perfectp, 0)
app(perfectp, app(s, x0))
app(app(app(app(f, 0), x0), 0), x1)
app(app(app(app(f, 0), x0), app(s, x1)), x2)
app(app(app(app(f, app(s, x0)), 0), x1), x2)
app(app(app(app(f, app(s, x0)), app(s, x1)), x2), x3)
app(app(map, x0), nil)
app(app(map, x0), app(app(cons, x1), x2))
app(app(filter, x0), nil)
app(app(filter, x0), app(app(cons, x1), x2))
app(app(app(app(filter2, true), x0), x1), x2)
app(app(app(app(filter2, false), x0), x1), x2)
minus1(s(x), s(y)) → minus1(x, y)
The following pairs can be oriented strictly and are deleted.
The remaining pairs can at least be oriented weakly.
APP(app(minus, app(s, x)), app(s, y)) → APP(app(minus, x), y)
s1 > minus11
app(app(minus, 0), y) → 0
app(app(minus, app(s, x)), 0) → app(s, x)
app(app(minus, app(s, x)), app(s, y)) → app(app(minus, x), y)
app(app(le, 0), y) → true
app(app(le, app(s, x)), 0) → false
app(app(le, app(s, x)), app(s, y)) → app(app(le, x), y)
app(app(app(if, true), x), y) → x
app(app(app(if, false), x), y) → y
app(perfectp, 0) → false
app(perfectp, app(s, x)) → app(app(app(app(f, x), app(s, 0)), app(s, x)), app(s, x))
app(app(app(app(f, 0), y), 0), u) → true
app(app(app(app(f, 0), y), app(s, z)), u) → false
app(app(app(app(f, app(s, x)), 0), z), u) → app(app(app(app(f, x), u), app(app(minus, z), app(s, x))), u)
app(app(app(app(f, app(s, x)), app(s, y)), z), u) → app(app(app(if, app(app(le, x), y)), app(app(app(app(f, app(s, x)), app(app(minus, y), x)), z), u)), app(app(app(app(f, x), u), z), u))
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)
app(app(minus, 0), x0)
app(app(minus, app(s, x0)), 0)
app(app(minus, app(s, x0)), app(s, x1))
app(app(le, 0), x0)
app(app(le, app(s, x0)), 0)
app(app(le, app(s, x0)), app(s, x1))
app(app(app(if, true), x0), x1)
app(app(app(if, false), x0), x1)
app(perfectp, 0)
app(perfectp, app(s, x0))
app(app(app(app(f, 0), x0), 0), x1)
app(app(app(app(f, 0), x0), app(s, x1)), x2)
app(app(app(app(f, app(s, x0)), 0), x1), x2)
app(app(app(app(f, app(s, x0)), app(s, x1)), x2), x3)
app(app(map, x0), nil)
app(app(map, x0), app(app(cons, x1), x2))
app(app(filter, x0), nil)
app(app(filter, x0), app(app(cons, x1), x2))
app(app(app(app(filter2, true), x0), x1), x2)
app(app(app(app(filter2, false), x0), x1), x2)
APP(app(app(app(f, app(s, x)), app(s, y)), z), u) → APP(app(app(app(f, app(s, x)), app(app(minus, y), x)), z), u)
APP(app(app(app(f, app(s, x)), 0), z), u) → APP(app(app(app(f, x), u), app(app(minus, z), app(s, x))), u)
APP(app(app(app(f, app(s, x)), app(s, y)), z), u) → APP(app(app(app(f, x), u), z), u)
app(app(minus, 0), y) → 0
app(app(minus, app(s, x)), 0) → app(s, x)
app(app(minus, app(s, x)), app(s, y)) → app(app(minus, x), y)
app(app(le, 0), y) → true
app(app(le, app(s, x)), 0) → false
app(app(le, app(s, x)), app(s, y)) → app(app(le, x), y)
app(app(app(if, true), x), y) → x
app(app(app(if, false), x), y) → y
app(perfectp, 0) → false
app(perfectp, app(s, x)) → app(app(app(app(f, x), app(s, 0)), app(s, x)), app(s, x))
app(app(app(app(f, 0), y), 0), u) → true
app(app(app(app(f, 0), y), app(s, z)), u) → false
app(app(app(app(f, app(s, x)), 0), z), u) → app(app(app(app(f, x), u), app(app(minus, z), app(s, x))), u)
app(app(app(app(f, app(s, x)), app(s, y)), z), u) → app(app(app(if, app(app(le, x), y)), app(app(app(app(f, app(s, x)), app(app(minus, y), x)), z), u)), app(app(app(app(f, x), u), z), u))
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)
app(app(minus, 0), x0)
app(app(minus, app(s, x0)), 0)
app(app(minus, app(s, x0)), app(s, x1))
app(app(le, 0), x0)
app(app(le, app(s, x0)), 0)
app(app(le, app(s, x0)), app(s, x1))
app(app(app(if, true), x0), x1)
app(app(app(if, false), x0), x1)
app(perfectp, 0)
app(perfectp, app(s, x0))
app(app(app(app(f, 0), x0), 0), x1)
app(app(app(app(f, 0), x0), app(s, x1)), x2)
app(app(app(app(f, app(s, x0)), 0), x1), x2)
app(app(app(app(f, app(s, x0)), app(s, x1)), x2), x3)
app(app(map, x0), nil)
app(app(map, x0), app(app(cons, x1), x2))
app(app(filter, x0), nil)
app(app(filter, x0), app(app(cons, x1), x2))
app(app(app(app(filter2, true), x0), x1), x2)
app(app(app(app(filter2, false), x0), x1), x2)
f1(s(x), s(y), z, u) → f1(s(x), minus(y, x), z, u)
f1(s(x), 0, z, u) → f1(x, u, minus(z, s(x)), u)
f1(s(x), s(y), z, u) → f1(x, u, z, u)
minus(0, y) → 0
minus(s(x), s(y)) → minus(x, y)
minus(s(x), 0) → s(x)
The following pairs can be oriented strictly and are deleted.
The remaining pairs can at least be oriented weakly.
APP(app(app(app(f, app(s, x)), 0), z), u) → APP(app(app(app(f, x), u), app(app(minus, z), app(s, x))), u)
APP(app(app(app(f, app(s, x)), app(s, y)), z), u) → APP(app(app(app(f, x), u), z), u)
0 > f12 > s1
app(app(minus, 0), y) → 0
app(app(minus, app(s, x)), app(s, y)) → app(app(minus, x), y)
app(app(minus, app(s, x)), 0) → app(s, x)
APP(app(app(app(f, app(s, x)), app(s, y)), z), u) → APP(app(app(app(f, app(s, x)), app(app(minus, y), x)), z), u)
app(app(minus, 0), y) → 0
app(app(minus, app(s, x)), 0) → app(s, x)
app(app(minus, app(s, x)), app(s, y)) → app(app(minus, x), y)
app(app(le, 0), y) → true
app(app(le, app(s, x)), 0) → false
app(app(le, app(s, x)), app(s, y)) → app(app(le, x), y)
app(app(app(if, true), x), y) → x
app(app(app(if, false), x), y) → y
app(perfectp, 0) → false
app(perfectp, app(s, x)) → app(app(app(app(f, x), app(s, 0)), app(s, x)), app(s, x))
app(app(app(app(f, 0), y), 0), u) → true
app(app(app(app(f, 0), y), app(s, z)), u) → false
app(app(app(app(f, app(s, x)), 0), z), u) → app(app(app(app(f, x), u), app(app(minus, z), app(s, x))), u)
app(app(app(app(f, app(s, x)), app(s, y)), z), u) → app(app(app(if, app(app(le, x), y)), app(app(app(app(f, app(s, x)), app(app(minus, y), x)), z), u)), app(app(app(app(f, x), u), z), u))
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)
app(app(minus, 0), x0)
app(app(minus, app(s, x0)), 0)
app(app(minus, app(s, x0)), app(s, x1))
app(app(le, 0), x0)
app(app(le, app(s, x0)), 0)
app(app(le, app(s, x0)), app(s, x1))
app(app(app(if, true), x0), x1)
app(app(app(if, false), x0), x1)
app(perfectp, 0)
app(perfectp, app(s, x0))
app(app(app(app(f, 0), x0), 0), x1)
app(app(app(app(f, 0), x0), app(s, x1)), x2)
app(app(app(app(f, app(s, x0)), 0), x1), x2)
app(app(app(app(f, app(s, x0)), app(s, x1)), x2), x3)
app(app(map, x0), nil)
app(app(map, x0), app(app(cons, x1), x2))
app(app(filter, x0), nil)
app(app(filter, x0), app(app(cons, x1), x2))
app(app(app(app(filter2, true), x0), x1), x2)
app(app(app(app(filter2, false), x0), x1), x2)
f1(s(x), s(y), z, u) → f1(s(x), minus(y, x), z, u)
minus(0, y) → 0
minus(s(x), 0) → s(x)
minus(s(x), s(y)) → minus(x, y)
The following pairs can be oriented strictly and are deleted.
The remaining pairs can at least be oriented weakly.
APP(app(app(app(f, app(s, x)), app(s, y)), z), u) → APP(app(app(app(f, app(s, x)), app(app(minus, y), x)), z), u)
f14 > minus1
0 > s1 > minus1
app(app(minus, 0), y) → 0
app(app(minus, app(s, x)), 0) → app(s, x)
app(app(minus, app(s, x)), app(s, y)) → app(app(minus, x), y)
app(app(minus, 0), y) → 0
app(app(minus, app(s, x)), 0) → app(s, x)
app(app(minus, app(s, x)), app(s, y)) → app(app(minus, x), y)
app(app(le, 0), y) → true
app(app(le, app(s, x)), 0) → false
app(app(le, app(s, x)), app(s, y)) → app(app(le, x), y)
app(app(app(if, true), x), y) → x
app(app(app(if, false), x), y) → y
app(perfectp, 0) → false
app(perfectp, app(s, x)) → app(app(app(app(f, x), app(s, 0)), app(s, x)), app(s, x))
app(app(app(app(f, 0), y), 0), u) → true
app(app(app(app(f, 0), y), app(s, z)), u) → false
app(app(app(app(f, app(s, x)), 0), z), u) → app(app(app(app(f, x), u), app(app(minus, z), app(s, x))), u)
app(app(app(app(f, app(s, x)), app(s, y)), z), u) → app(app(app(if, app(app(le, x), y)), app(app(app(app(f, app(s, x)), app(app(minus, y), x)), z), u)), app(app(app(app(f, x), u), z), u))
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)
app(app(minus, 0), x0)
app(app(minus, app(s, x0)), 0)
app(app(minus, app(s, x0)), app(s, x1))
app(app(le, 0), x0)
app(app(le, app(s, x0)), 0)
app(app(le, app(s, x0)), app(s, x1))
app(app(app(if, true), x0), x1)
app(app(app(if, false), x0), x1)
app(perfectp, 0)
app(perfectp, app(s, x0))
app(app(app(app(f, 0), x0), 0), x1)
app(app(app(app(f, 0), x0), app(s, x1)), x2)
app(app(app(app(f, app(s, x0)), 0), x1), x2)
app(app(app(app(f, app(s, x0)), app(s, x1)), x2), x3)
app(app(map, x0), nil)
app(app(map, x0), app(app(cons, x1), x2))
app(app(filter, x0), nil)
app(app(filter, x0), app(app(cons, x1), x2))
app(app(app(app(filter2, true), x0), x1), x2)
app(app(app(app(filter2, false), x0), x1), x2)
APP(app(map, fun), app(app(cons, x), xs)) → APP(app(map, fun), xs)
APP(app(map, fun), app(app(cons, x), xs)) → APP(fun, x)
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(filter, fun), xs)
APP(app(filter, fun), app(app(cons, x), xs)) → APP(fun, x)
APP(app(app(app(filter2, false), fun), x), xs) → APP(app(filter, fun), xs)
app(app(minus, 0), y) → 0
app(app(minus, app(s, x)), 0) → app(s, x)
app(app(minus, app(s, x)), app(s, y)) → app(app(minus, x), y)
app(app(le, 0), y) → true
app(app(le, app(s, x)), 0) → false
app(app(le, app(s, x)), app(s, y)) → app(app(le, x), y)
app(app(app(if, true), x), y) → x
app(app(app(if, false), x), y) → y
app(perfectp, 0) → false
app(perfectp, app(s, x)) → app(app(app(app(f, x), app(s, 0)), app(s, x)), app(s, x))
app(app(app(app(f, 0), y), 0), u) → true
app(app(app(app(f, 0), y), app(s, z)), u) → false
app(app(app(app(f, app(s, x)), 0), z), u) → app(app(app(app(f, x), u), app(app(minus, z), app(s, x))), u)
app(app(app(app(f, app(s, x)), app(s, y)), z), u) → app(app(app(if, app(app(le, x), y)), app(app(app(app(f, app(s, x)), app(app(minus, y), x)), z), u)), app(app(app(app(f, x), u), z), u))
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)
app(app(minus, 0), x0)
app(app(minus, app(s, x0)), 0)
app(app(minus, app(s, x0)), app(s, x1))
app(app(le, 0), x0)
app(app(le, app(s, x0)), 0)
app(app(le, app(s, x0)), app(s, x1))
app(app(app(if, true), x0), x1)
app(app(app(if, false), x0), x1)
app(perfectp, 0)
app(perfectp, app(s, x0))
app(app(app(app(f, 0), x0), 0), x1)
app(app(app(app(f, 0), x0), app(s, x1)), x2)
app(app(app(app(f, app(s, x0)), 0), x1), x2)
app(app(app(app(f, app(s, x0)), app(s, x1)), x2), x3)
app(app(map, x0), nil)
app(app(map, x0), app(app(cons, x1), x2))
app(app(filter, x0), nil)
app(app(filter, x0), app(app(cons, x1), x2))
app(app(app(app(filter2, true), x0), x1), x2)
app(app(app(app(filter2, false), x0), x1), x2)
The following pairs can be oriented strictly and are deleted.
The remaining pairs can at least be oriented weakly.
APP(app(map, fun), app(app(cons, x), xs)) → APP(app(map, fun), xs)
APP(app(map, fun), app(app(cons, x), xs)) → APP(fun, x)
APP(app(filter, fun), app(app(cons, x), xs)) → APP(app(app(app(filter2, app(fun, x)), fun), x), xs)
APP(app(filter, fun), app(app(cons, x), xs)) → APP(fun, x)
map > cons > filter2 > app2
map > nil > app2
true > cons > filter2 > app2
true > filter > filter2 > app2
true > filter > nil > app2
le > false > app2
perfectp > app2
f > minus > 0 > s > app2
f > if > app2
APP(app(app(app(filter2, true), fun), x), xs) → APP(app(filter, fun), xs)
APP(app(app(app(filter2, false), fun), x), xs) → APP(app(filter, fun), xs)
app(app(minus, 0), y) → 0
app(app(minus, app(s, x)), 0) → app(s, x)
app(app(minus, app(s, x)), app(s, y)) → app(app(minus, x), y)
app(app(le, 0), y) → true
app(app(le, app(s, x)), 0) → false
app(app(le, app(s, x)), app(s, y)) → app(app(le, x), y)
app(app(app(if, true), x), y) → x
app(app(app(if, false), x), y) → y
app(perfectp, 0) → false
app(perfectp, app(s, x)) → app(app(app(app(f, x), app(s, 0)), app(s, x)), app(s, x))
app(app(app(app(f, 0), y), 0), u) → true
app(app(app(app(f, 0), y), app(s, z)), u) → false
app(app(app(app(f, app(s, x)), 0), z), u) → app(app(app(app(f, x), u), app(app(minus, z), app(s, x))), u)
app(app(app(app(f, app(s, x)), app(s, y)), z), u) → app(app(app(if, app(app(le, x), y)), app(app(app(app(f, app(s, x)), app(app(minus, y), x)), z), u)), app(app(app(app(f, x), u), z), u))
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)
app(app(minus, 0), x0)
app(app(minus, app(s, x0)), 0)
app(app(minus, app(s, x0)), app(s, x1))
app(app(le, 0), x0)
app(app(le, app(s, x0)), 0)
app(app(le, app(s, x0)), app(s, x1))
app(app(app(if, true), x0), x1)
app(app(app(if, false), x0), x1)
app(perfectp, 0)
app(perfectp, app(s, x0))
app(app(app(app(f, 0), x0), 0), x1)
app(app(app(app(f, 0), x0), app(s, x1)), x2)
app(app(app(app(f, app(s, x0)), 0), x1), x2)
app(app(app(app(f, app(s, x0)), app(s, x1)), x2), x3)
app(app(map, x0), nil)
app(app(map, x0), app(app(cons, x1), x2))
app(app(filter, x0), nil)
app(app(filter, x0), app(app(cons, x1), x2))
app(app(app(app(filter2, true), x0), x1), x2)
app(app(app(app(filter2, false), x0), x1), x2)