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 QDP
↳19 QDPOrderProof (⇔)
↳20 QDP
↳21 DependencyGraphProof (⇔)
↳22 TRUE
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(pred, app(s, x)) → x
app(app(minus, x), 0) → x
app(app(minus, x), app(s, y)) → app(pred, app(app(minus, x), y))
app(app(gcd, 0), y) → y
app(app(gcd, app(s, x)), 0) → app(s, x)
app(app(gcd, app(s, x)), app(s, y)) → app(app(app(if_gcd, app(app(le, y), x)), app(s, x)), app(s, y))
app(app(app(if_gcd, true), app(s, x)), app(s, y)) → app(app(gcd, app(app(minus, x), y)), app(s, y))
app(app(app(if_gcd, false), app(s, x)), app(s, y)) → app(app(gcd, app(app(minus, y), x)), app(s, x))
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(filter, f), nil) → nil
app(app(filter, f), app(app(cons, x), xs)) → app(app(app(app(filter2, app(f, x)), f), x), xs)
app(app(app(app(filter2, true), f), x), xs) → app(app(cons, x), app(app(filter, f), xs))
app(app(app(app(filter2, false), f), x), xs) → app(app(filter, f), xs)
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(pred, app(s, x)) → x
app(app(minus, x), 0) → x
app(app(minus, x), app(s, y)) → app(pred, app(app(minus, x), y))
app(app(gcd, 0), y) → y
app(app(gcd, app(s, x)), 0) → app(s, x)
app(app(gcd, app(s, x)), app(s, y)) → app(app(app(if_gcd, app(app(le, y), x)), app(s, x)), app(s, y))
app(app(app(if_gcd, true), app(s, x)), app(s, y)) → app(app(gcd, app(app(minus, x), y)), app(s, y))
app(app(app(if_gcd, false), app(s, x)), app(s, y)) → app(app(gcd, app(app(minus, y), x)), app(s, x))
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(filter, f), nil) → nil
app(app(filter, f), app(app(cons, x), xs)) → app(app(app(app(filter2, app(f, x)), f), x), xs)
app(app(app(app(filter2, true), f), x), xs) → app(app(cons, x), app(app(filter, f), xs))
app(app(app(app(filter2, false), f), x), xs) → app(app(filter, f), xs)
app(app(le, 0), x0)
app(app(le, app(s, x0)), 0)
app(app(le, app(s, x0)), app(s, x1))
app(pred, app(s, x0))
app(app(minus, x0), 0)
app(app(minus, x0), app(s, x1))
app(app(gcd, 0), x0)
app(app(gcd, app(s, x0)), 0)
app(app(gcd, app(s, x0)), app(s, x1))
app(app(app(if_gcd, true), app(s, x0)), app(s, x1))
app(app(app(if_gcd, false), app(s, x0)), app(s, x1))
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(le, app(s, x)), app(s, y)) → APP(le, x)
APP(app(minus, x), app(s, y)) → APP(pred, app(app(minus, x), y))
APP(app(minus, x), app(s, y)) → APP(app(minus, x), y)
APP(app(gcd, app(s, x)), app(s, y)) → APP(app(app(if_gcd, app(app(le, y), x)), app(s, x)), app(s, y))
APP(app(gcd, app(s, x)), app(s, y)) → APP(app(if_gcd, app(app(le, y), x)), app(s, x))
APP(app(gcd, app(s, x)), app(s, y)) → APP(if_gcd, app(app(le, y), x))
APP(app(gcd, app(s, x)), app(s, y)) → APP(app(le, y), x)
APP(app(gcd, app(s, x)), app(s, y)) → APP(le, y)
APP(app(app(if_gcd, true), app(s, x)), app(s, y)) → APP(app(gcd, app(app(minus, x), y)), app(s, y))
APP(app(app(if_gcd, true), app(s, x)), app(s, y)) → APP(gcd, app(app(minus, x), y))
APP(app(app(if_gcd, true), app(s, x)), app(s, y)) → APP(app(minus, x), y)
APP(app(app(if_gcd, true), app(s, x)), app(s, y)) → APP(minus, x)
APP(app(app(if_gcd, false), app(s, x)), app(s, y)) → APP(app(gcd, app(app(minus, y), x)), app(s, x))
APP(app(app(if_gcd, false), app(s, x)), app(s, y)) → APP(gcd, app(app(minus, y), x))
APP(app(app(if_gcd, false), app(s, x)), app(s, y)) → APP(app(minus, y), x)
APP(app(app(if_gcd, false), app(s, x)), app(s, y)) → APP(minus, y)
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(filter, f), app(app(cons, x), xs)) → APP(app(app(app(filter2, app(f, x)), f), x), xs)
APP(app(filter, f), app(app(cons, x), xs)) → APP(app(app(filter2, app(f, x)), f), x)
APP(app(filter, f), app(app(cons, x), xs)) → APP(app(filter2, app(f, x)), f)
APP(app(filter, f), app(app(cons, x), xs)) → APP(filter2, app(f, x))
APP(app(filter, f), app(app(cons, x), xs)) → APP(f, x)
APP(app(app(app(filter2, true), f), x), xs) → APP(app(cons, x), app(app(filter, f), xs))
APP(app(app(app(filter2, true), f), x), xs) → APP(cons, x)
APP(app(app(app(filter2, true), f), x), xs) → APP(app(filter, f), xs)
APP(app(app(app(filter2, true), f), x), xs) → APP(filter, f)
APP(app(app(app(filter2, false), f), x), xs) → APP(app(filter, f), xs)
APP(app(app(app(filter2, false), f), x), xs) → APP(filter, f)
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(pred, app(s, x)) → x
app(app(minus, x), 0) → x
app(app(minus, x), app(s, y)) → app(pred, app(app(minus, x), y))
app(app(gcd, 0), y) → y
app(app(gcd, app(s, x)), 0) → app(s, x)
app(app(gcd, app(s, x)), app(s, y)) → app(app(app(if_gcd, app(app(le, y), x)), app(s, x)), app(s, y))
app(app(app(if_gcd, true), app(s, x)), app(s, y)) → app(app(gcd, app(app(minus, x), y)), app(s, y))
app(app(app(if_gcd, false), app(s, x)), app(s, y)) → app(app(gcd, app(app(minus, y), x)), app(s, x))
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(filter, f), nil) → nil
app(app(filter, f), app(app(cons, x), xs)) → app(app(app(app(filter2, app(f, x)), f), x), xs)
app(app(app(app(filter2, true), f), x), xs) → app(app(cons, x), app(app(filter, f), xs))
app(app(app(app(filter2, false), f), x), xs) → app(app(filter, f), xs)
app(app(le, 0), x0)
app(app(le, app(s, x0)), 0)
app(app(le, app(s, x0)), app(s, x1))
app(pred, app(s, x0))
app(app(minus, x0), 0)
app(app(minus, x0), app(s, x1))
app(app(gcd, 0), x0)
app(app(gcd, app(s, x0)), 0)
app(app(gcd, app(s, x0)), app(s, x1))
app(app(app(if_gcd, true), app(s, x0)), app(s, x1))
app(app(app(if_gcd, false), app(s, x0)), app(s, x1))
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, 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(pred, app(s, x)) → x
app(app(minus, x), 0) → x
app(app(minus, x), app(s, y)) → app(pred, app(app(minus, x), y))
app(app(gcd, 0), y) → y
app(app(gcd, app(s, x)), 0) → app(s, x)
app(app(gcd, app(s, x)), app(s, y)) → app(app(app(if_gcd, app(app(le, y), x)), app(s, x)), app(s, y))
app(app(app(if_gcd, true), app(s, x)), app(s, y)) → app(app(gcd, app(app(minus, x), y)), app(s, y))
app(app(app(if_gcd, false), app(s, x)), app(s, y)) → app(app(gcd, app(app(minus, y), x)), app(s, x))
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(filter, f), nil) → nil
app(app(filter, f), app(app(cons, x), xs)) → app(app(app(app(filter2, app(f, x)), f), x), xs)
app(app(app(app(filter2, true), f), x), xs) → app(app(cons, x), app(app(filter, f), xs))
app(app(app(app(filter2, false), f), x), xs) → app(app(filter, f), xs)
app(app(le, 0), x0)
app(app(le, app(s, x0)), 0)
app(app(le, app(s, x0)), app(s, x1))
app(pred, app(s, x0))
app(app(minus, x0), 0)
app(app(minus, x0), app(s, x1))
app(app(gcd, 0), x0)
app(app(gcd, app(s, x0)), 0)
app(app(gcd, app(s, x0)), app(s, x1))
app(app(app(if_gcd, true), app(s, x0)), app(s, x1))
app(app(app(if_gcd, false), app(s, x0)), app(s, x1))
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(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, x), app(s, y)) → APP(app(minus, x), y)
s1 > minus12
minus12: [1,2]
s1: [1]
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(pred, app(s, x)) → x
app(app(minus, x), 0) → x
app(app(minus, x), app(s, y)) → app(pred, app(app(minus, x), y))
app(app(gcd, 0), y) → y
app(app(gcd, app(s, x)), 0) → app(s, x)
app(app(gcd, app(s, x)), app(s, y)) → app(app(app(if_gcd, app(app(le, y), x)), app(s, x)), app(s, y))
app(app(app(if_gcd, true), app(s, x)), app(s, y)) → app(app(gcd, app(app(minus, x), y)), app(s, y))
app(app(app(if_gcd, false), app(s, x)), app(s, y)) → app(app(gcd, app(app(minus, y), x)), app(s, x))
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(filter, f), nil) → nil
app(app(filter, f), app(app(cons, x), xs)) → app(app(app(app(filter2, app(f, x)), f), x), xs)
app(app(app(app(filter2, true), f), x), xs) → app(app(cons, x), app(app(filter, f), xs))
app(app(app(app(filter2, false), f), x), xs) → app(app(filter, f), xs)
app(app(le, 0), x0)
app(app(le, app(s, x0)), 0)
app(app(le, app(s, x0)), app(s, x1))
app(pred, app(s, x0))
app(app(minus, x0), 0)
app(app(minus, x0), app(s, x1))
app(app(gcd, 0), x0)
app(app(gcd, app(s, x0)), 0)
app(app(gcd, app(s, x0)), app(s, x1))
app(app(app(if_gcd, true), app(s, x0)), app(s, x1))
app(app(app(if_gcd, false), app(s, x0)), app(s, x1))
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(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(pred, app(s, x)) → x
app(app(minus, x), 0) → x
app(app(minus, x), app(s, y)) → app(pred, app(app(minus, x), y))
app(app(gcd, 0), y) → y
app(app(gcd, app(s, x)), 0) → app(s, x)
app(app(gcd, app(s, x)), app(s, y)) → app(app(app(if_gcd, app(app(le, y), x)), app(s, x)), app(s, y))
app(app(app(if_gcd, true), app(s, x)), app(s, y)) → app(app(gcd, app(app(minus, x), y)), app(s, y))
app(app(app(if_gcd, false), app(s, x)), app(s, y)) → app(app(gcd, app(app(minus, y), x)), app(s, x))
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(filter, f), nil) → nil
app(app(filter, f), app(app(cons, x), xs)) → app(app(app(app(filter2, app(f, x)), f), x), xs)
app(app(app(app(filter2, true), f), x), xs) → app(app(cons, x), app(app(filter, f), xs))
app(app(app(app(filter2, false), f), x), xs) → app(app(filter, f), xs)
app(app(le, 0), x0)
app(app(le, app(s, x0)), 0)
app(app(le, app(s, x0)), app(s, x1))
app(pred, app(s, x0))
app(app(minus, x0), 0)
app(app(minus, x0), app(s, x1))
app(app(gcd, 0), x0)
app(app(gcd, app(s, x0)), 0)
app(app(gcd, app(s, x0)), app(s, x1))
app(app(app(if_gcd, true), app(s, x0)), app(s, x1))
app(app(app(if_gcd, false), app(s, x0)), app(s, x1))
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)
trivial
s1: [1]
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(pred, app(s, x)) → x
app(app(minus, x), 0) → x
app(app(minus, x), app(s, y)) → app(pred, app(app(minus, x), y))
app(app(gcd, 0), y) → y
app(app(gcd, app(s, x)), 0) → app(s, x)
app(app(gcd, app(s, x)), app(s, y)) → app(app(app(if_gcd, app(app(le, y), x)), app(s, x)), app(s, y))
app(app(app(if_gcd, true), app(s, x)), app(s, y)) → app(app(gcd, app(app(minus, x), y)), app(s, y))
app(app(app(if_gcd, false), app(s, x)), app(s, y)) → app(app(gcd, app(app(minus, y), x)), app(s, x))
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(filter, f), nil) → nil
app(app(filter, f), app(app(cons, x), xs)) → app(app(app(app(filter2, app(f, x)), f), x), xs)
app(app(app(app(filter2, true), f), x), xs) → app(app(cons, x), app(app(filter, f), xs))
app(app(app(app(filter2, false), f), x), xs) → app(app(filter, f), xs)
app(app(le, 0), x0)
app(app(le, app(s, x0)), 0)
app(app(le, app(s, x0)), app(s, x1))
app(pred, app(s, x0))
app(app(minus, x0), 0)
app(app(minus, x0), app(s, x1))
app(app(gcd, 0), x0)
app(app(gcd, app(s, x0)), 0)
app(app(gcd, app(s, x0)), app(s, x1))
app(app(app(if_gcd, true), app(s, x0)), app(s, x1))
app(app(app(if_gcd, false), app(s, x0)), app(s, x1))
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(gcd, app(s, x)), app(s, y)) → APP(app(app(if_gcd, app(app(le, y), x)), app(s, x)), app(s, y))
APP(app(app(if_gcd, true), app(s, x)), app(s, y)) → APP(app(gcd, app(app(minus, x), y)), app(s, y))
APP(app(app(if_gcd, false), app(s, x)), app(s, y)) → APP(app(gcd, app(app(minus, y), x)), app(s, x))
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(pred, app(s, x)) → x
app(app(minus, x), 0) → x
app(app(minus, x), app(s, y)) → app(pred, app(app(minus, x), y))
app(app(gcd, 0), y) → y
app(app(gcd, app(s, x)), 0) → app(s, x)
app(app(gcd, app(s, x)), app(s, y)) → app(app(app(if_gcd, app(app(le, y), x)), app(s, x)), app(s, y))
app(app(app(if_gcd, true), app(s, x)), app(s, y)) → app(app(gcd, app(app(minus, x), y)), app(s, y))
app(app(app(if_gcd, false), app(s, x)), app(s, y)) → app(app(gcd, app(app(minus, y), x)), app(s, x))
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(filter, f), nil) → nil
app(app(filter, f), app(app(cons, x), xs)) → app(app(app(app(filter2, app(f, x)), f), x), xs)
app(app(app(app(filter2, true), f), x), xs) → app(app(cons, x), app(app(filter, f), xs))
app(app(app(app(filter2, false), f), x), xs) → app(app(filter, f), xs)
app(app(le, 0), x0)
app(app(le, app(s, x0)), 0)
app(app(le, app(s, x0)), app(s, x1))
app(pred, app(s, x0))
app(app(minus, x0), 0)
app(app(minus, x0), app(s, x1))
app(app(gcd, 0), x0)
app(app(gcd, app(s, x0)), 0)
app(app(gcd, app(s, x0)), app(s, x1))
app(app(app(if_gcd, true), app(s, x0)), app(s, x1))
app(app(app(if_gcd, false), app(s, x0)), app(s, x1))
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, 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(filter, f), app(app(cons, x), xs)) → APP(app(app(app(filter2, app(f, x)), f), x), xs)
APP(app(app(app(filter2, true), f), x), xs) → APP(app(filter, f), xs)
APP(app(filter, f), app(app(cons, x), xs)) → APP(f, x)
APP(app(app(app(filter2, false), f), x), xs) → APP(app(filter, f), xs)
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(pred, app(s, x)) → x
app(app(minus, x), 0) → x
app(app(minus, x), app(s, y)) → app(pred, app(app(minus, x), y))
app(app(gcd, 0), y) → y
app(app(gcd, app(s, x)), 0) → app(s, x)
app(app(gcd, app(s, x)), app(s, y)) → app(app(app(if_gcd, app(app(le, y), x)), app(s, x)), app(s, y))
app(app(app(if_gcd, true), app(s, x)), app(s, y)) → app(app(gcd, app(app(minus, x), y)), app(s, y))
app(app(app(if_gcd, false), app(s, x)), app(s, y)) → app(app(gcd, app(app(minus, y), x)), app(s, x))
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(filter, f), nil) → nil
app(app(filter, f), app(app(cons, x), xs)) → app(app(app(app(filter2, app(f, x)), f), x), xs)
app(app(app(app(filter2, true), f), x), xs) → app(app(cons, x), app(app(filter, f), xs))
app(app(app(app(filter2, false), f), x), xs) → app(app(filter, f), xs)
app(app(le, 0), x0)
app(app(le, app(s, x0)), 0)
app(app(le, app(s, x0)), app(s, x1))
app(pred, app(s, x0))
app(app(minus, x0), 0)
app(app(minus, x0), app(s, x1))
app(app(gcd, 0), x0)
app(app(gcd, app(s, x0)), 0)
app(app(gcd, app(s, x0)), app(s, x1))
app(app(app(if_gcd, true), app(s, x0)), app(s, x1))
app(app(app(if_gcd, false), app(s, x0)), app(s, x1))
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, 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(filter, f), app(app(cons, x), xs)) → APP(app(app(app(filter2, app(f, x)), f), x), xs)
APP(app(filter, f), app(app(cons, x), xs)) → APP(f, x)
cons > APP1 > map > nil
cons > APP1 > filter > nil
cons > app2 > map > nil
cons > app2 > true > filter > nil
cons > app2 > false > nil
cons > app2 > pred > nil
filter2 > APP1 > map > nil
filter2 > APP1 > filter > nil
filter2 > app2 > map > nil
filter2 > app2 > true > filter > nil
filter2 > app2 > false > nil
filter2 > app2 > pred > nil
0 > s > app2 > map > nil
0 > s > app2 > true > filter > nil
0 > s > app2 > false > nil
0 > s > app2 > pred > nil
0 > s > minus > pred > nil
le > app2 > map > nil
le > app2 > true > filter > nil
le > app2 > false > nil
le > app2 > pred > nil
ifgcd > s > app2 > map > nil
ifgcd > s > app2 > true > filter > nil
ifgcd > s > app2 > false > nil
ifgcd > s > app2 > pred > nil
ifgcd > s > minus > pred > nil
ifgcd > gcd > app2 > map > nil
ifgcd > gcd > app2 > true > filter > nil
ifgcd > gcd > app2 > false > nil
ifgcd > gcd > app2 > pred > nil
APP1: [1]
minus: []
true: []
pred: []
s: []
0: []
filter: []
cons: []
map: []
false: []
app2: [2,1]
gcd: []
filter2: []
ifgcd: []
nil: []
le: []
APP(app(app(app(filter2, true), f), x), xs) → APP(app(filter, f), xs)
APP(app(app(app(filter2, false), f), x), xs) → APP(app(filter, f), xs)
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(pred, app(s, x)) → x
app(app(minus, x), 0) → x
app(app(minus, x), app(s, y)) → app(pred, app(app(minus, x), y))
app(app(gcd, 0), y) → y
app(app(gcd, app(s, x)), 0) → app(s, x)
app(app(gcd, app(s, x)), app(s, y)) → app(app(app(if_gcd, app(app(le, y), x)), app(s, x)), app(s, y))
app(app(app(if_gcd, true), app(s, x)), app(s, y)) → app(app(gcd, app(app(minus, x), y)), app(s, y))
app(app(app(if_gcd, false), app(s, x)), app(s, y)) → app(app(gcd, app(app(minus, y), x)), app(s, x))
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(filter, f), nil) → nil
app(app(filter, f), app(app(cons, x), xs)) → app(app(app(app(filter2, app(f, x)), f), x), xs)
app(app(app(app(filter2, true), f), x), xs) → app(app(cons, x), app(app(filter, f), xs))
app(app(app(app(filter2, false), f), x), xs) → app(app(filter, f), xs)
app(app(le, 0), x0)
app(app(le, app(s, x0)), 0)
app(app(le, app(s, x0)), app(s, x1))
app(pred, app(s, x0))
app(app(minus, x0), 0)
app(app(minus, x0), app(s, x1))
app(app(gcd, 0), x0)
app(app(gcd, app(s, x0)), 0)
app(app(gcd, app(s, x0)), app(s, x1))
app(app(app(if_gcd, true), app(s, x0)), app(s, x1))
app(app(app(if_gcd, false), app(s, x0)), app(s, x1))
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)