R
↳Dependency Pair Analysis
-'(s(x), s(y)) -> -'(x, y)
<='(s(x), s(y)) -> <='(x, y)
PERFECTP(s(x)) -> F(x, s(0), s(x), s(x))
F(s(x), 0, z, u) -> F(x, u, -(z, s(x)), u)
F(s(x), 0, z, u) -> -'(z, s(x))
F(s(x), s(y), z, u) -> IF(<=(x, y), f(s(x), -(y, x), z, u), f(x, u, z, u))
F(s(x), s(y), z, u) -> <='(x, y)
F(s(x), s(y), z, u) -> F(s(x), -(y, x), z, u)
F(s(x), s(y), z, u) -> -'(y, x)
F(s(x), s(y), z, u) -> F(x, u, z, u)
R
↳DPs
→DP Problem 1
↳Forward Instantiation Transformation
→DP Problem 2
↳FwdInst
→DP Problem 3
↳Nar
-'(s(x), s(y)) -> -'(x, y)
-(x, 0) -> x
-(s(x), s(y)) -> -(x, y)
<=(0, y) -> true
<=(s(x), 0) -> false
<=(s(x), s(y)) -> <=(x, y)
if(true, x, y) -> x
if(false, x, y) -> y
perfectp(0) -> false
perfectp(s(x)) -> f(x, s(0), s(x), s(x))
f(0, y, 0, u) -> true
f(0, y, s(z), u) -> false
f(s(x), 0, z, u) -> f(x, u, -(z, s(x)), u)
f(s(x), s(y), z, u) -> if(<=(x, y), f(s(x), -(y, x), z, u), f(x, u, z, u))
innermost
one new Dependency Pair is created:
-'(s(x), s(y)) -> -'(x, y)
-'(s(s(x'')), s(s(y''))) -> -'(s(x''), s(y''))
R
↳DPs
→DP Problem 1
↳FwdInst
→DP Problem 4
↳Forward Instantiation Transformation
→DP Problem 2
↳FwdInst
→DP Problem 3
↳Nar
-'(s(s(x'')), s(s(y''))) -> -'(s(x''), s(y''))
-(x, 0) -> x
-(s(x), s(y)) -> -(x, y)
<=(0, y) -> true
<=(s(x), 0) -> false
<=(s(x), s(y)) -> <=(x, y)
if(true, x, y) -> x
if(false, x, y) -> y
perfectp(0) -> false
perfectp(s(x)) -> f(x, s(0), s(x), s(x))
f(0, y, 0, u) -> true
f(0, y, s(z), u) -> false
f(s(x), 0, z, u) -> f(x, u, -(z, s(x)), u)
f(s(x), s(y), z, u) -> if(<=(x, y), f(s(x), -(y, x), z, u), f(x, u, z, u))
innermost
one new Dependency Pair is created:
-'(s(s(x'')), s(s(y''))) -> -'(s(x''), s(y''))
-'(s(s(s(x''''))), s(s(s(y'''')))) -> -'(s(s(x'''')), s(s(y'''')))
R
↳DPs
→DP Problem 1
↳FwdInst
→DP Problem 4
↳FwdInst
...
→DP Problem 5
↳Argument Filtering and Ordering
→DP Problem 2
↳FwdInst
→DP Problem 3
↳Nar
-'(s(s(s(x''''))), s(s(s(y'''')))) -> -'(s(s(x'''')), s(s(y'''')))
-(x, 0) -> x
-(s(x), s(y)) -> -(x, y)
<=(0, y) -> true
<=(s(x), 0) -> false
<=(s(x), s(y)) -> <=(x, y)
if(true, x, y) -> x
if(false, x, y) -> y
perfectp(0) -> false
perfectp(s(x)) -> f(x, s(0), s(x), s(x))
f(0, y, 0, u) -> true
f(0, y, s(z), u) -> false
f(s(x), 0, z, u) -> f(x, u, -(z, s(x)), u)
f(s(x), s(y), z, u) -> if(<=(x, y), f(s(x), -(y, x), z, u), f(x, u, z, u))
innermost
-'(s(s(s(x''''))), s(s(s(y'''')))) -> -'(s(s(x'''')), s(s(y'''')))
-'(x1, x2) -> -'(x1, x2)
s(x1) -> s(x1)
R
↳DPs
→DP Problem 1
↳FwdInst
→DP Problem 4
↳FwdInst
...
→DP Problem 6
↳Dependency Graph
→DP Problem 2
↳FwdInst
→DP Problem 3
↳Nar
-(x, 0) -> x
-(s(x), s(y)) -> -(x, y)
<=(0, y) -> true
<=(s(x), 0) -> false
<=(s(x), s(y)) -> <=(x, y)
if(true, x, y) -> x
if(false, x, y) -> y
perfectp(0) -> false
perfectp(s(x)) -> f(x, s(0), s(x), s(x))
f(0, y, 0, u) -> true
f(0, y, s(z), u) -> false
f(s(x), 0, z, u) -> f(x, u, -(z, s(x)), u)
f(s(x), s(y), z, u) -> if(<=(x, y), f(s(x), -(y, x), z, u), f(x, u, z, u))
innermost
R
↳DPs
→DP Problem 1
↳FwdInst
→DP Problem 2
↳Forward Instantiation Transformation
→DP Problem 3
↳Nar
<='(s(x), s(y)) -> <='(x, y)
-(x, 0) -> x
-(s(x), s(y)) -> -(x, y)
<=(0, y) -> true
<=(s(x), 0) -> false
<=(s(x), s(y)) -> <=(x, y)
if(true, x, y) -> x
if(false, x, y) -> y
perfectp(0) -> false
perfectp(s(x)) -> f(x, s(0), s(x), s(x))
f(0, y, 0, u) -> true
f(0, y, s(z), u) -> false
f(s(x), 0, z, u) -> f(x, u, -(z, s(x)), u)
f(s(x), s(y), z, u) -> if(<=(x, y), f(s(x), -(y, x), z, u), f(x, u, z, u))
innermost
one new Dependency Pair is created:
<='(s(x), s(y)) -> <='(x, y)
<='(s(s(x'')), s(s(y''))) -> <='(s(x''), s(y''))
R
↳DPs
→DP Problem 1
↳FwdInst
→DP Problem 2
↳FwdInst
→DP Problem 7
↳Forward Instantiation Transformation
→DP Problem 3
↳Nar
<='(s(s(x'')), s(s(y''))) -> <='(s(x''), s(y''))
-(x, 0) -> x
-(s(x), s(y)) -> -(x, y)
<=(0, y) -> true
<=(s(x), 0) -> false
<=(s(x), s(y)) -> <=(x, y)
if(true, x, y) -> x
if(false, x, y) -> y
perfectp(0) -> false
perfectp(s(x)) -> f(x, s(0), s(x), s(x))
f(0, y, 0, u) -> true
f(0, y, s(z), u) -> false
f(s(x), 0, z, u) -> f(x, u, -(z, s(x)), u)
f(s(x), s(y), z, u) -> if(<=(x, y), f(s(x), -(y, x), z, u), f(x, u, z, u))
innermost
one new Dependency Pair is created:
<='(s(s(x'')), s(s(y''))) -> <='(s(x''), s(y''))
<='(s(s(s(x''''))), s(s(s(y'''')))) -> <='(s(s(x'''')), s(s(y'''')))
R
↳DPs
→DP Problem 1
↳FwdInst
→DP Problem 2
↳FwdInst
→DP Problem 7
↳FwdInst
...
→DP Problem 8
↳Argument Filtering and Ordering
→DP Problem 3
↳Nar
<='(s(s(s(x''''))), s(s(s(y'''')))) -> <='(s(s(x'''')), s(s(y'''')))
-(x, 0) -> x
-(s(x), s(y)) -> -(x, y)
<=(0, y) -> true
<=(s(x), 0) -> false
<=(s(x), s(y)) -> <=(x, y)
if(true, x, y) -> x
if(false, x, y) -> y
perfectp(0) -> false
perfectp(s(x)) -> f(x, s(0), s(x), s(x))
f(0, y, 0, u) -> true
f(0, y, s(z), u) -> false
f(s(x), 0, z, u) -> f(x, u, -(z, s(x)), u)
f(s(x), s(y), z, u) -> if(<=(x, y), f(s(x), -(y, x), z, u), f(x, u, z, u))
innermost
<='(s(s(s(x''''))), s(s(s(y'''')))) -> <='(s(s(x'''')), s(s(y'''')))
<='(x1, x2) -> <='(x1, x2)
s(x1) -> s(x1)
R
↳DPs
→DP Problem 1
↳FwdInst
→DP Problem 2
↳FwdInst
→DP Problem 7
↳FwdInst
...
→DP Problem 9
↳Dependency Graph
→DP Problem 3
↳Nar
-(x, 0) -> x
-(s(x), s(y)) -> -(x, y)
<=(0, y) -> true
<=(s(x), 0) -> false
<=(s(x), s(y)) -> <=(x, y)
if(true, x, y) -> x
if(false, x, y) -> y
perfectp(0) -> false
perfectp(s(x)) -> f(x, s(0), s(x), s(x))
f(0, y, 0, u) -> true
f(0, y, s(z), u) -> false
f(s(x), 0, z, u) -> f(x, u, -(z, s(x)), u)
f(s(x), s(y), z, u) -> if(<=(x, y), f(s(x), -(y, x), z, u), f(x, u, z, u))
innermost
R
↳DPs
→DP Problem 1
↳FwdInst
→DP Problem 2
↳FwdInst
→DP Problem 3
↳Narrowing Transformation
F(s(x), s(y), z, u) -> F(x, u, z, u)
F(s(x), 0, z, u) -> F(x, u, -(z, s(x)), u)
F(s(x), s(y), z, u) -> F(s(x), -(y, x), z, u)
-(x, 0) -> x
-(s(x), s(y)) -> -(x, y)
<=(0, y) -> true
<=(s(x), 0) -> false
<=(s(x), s(y)) -> <=(x, y)
if(true, x, y) -> x
if(false, x, y) -> y
perfectp(0) -> false
perfectp(s(x)) -> f(x, s(0), s(x), s(x))
f(0, y, 0, u) -> true
f(0, y, s(z), u) -> false
f(s(x), 0, z, u) -> f(x, u, -(z, s(x)), u)
f(s(x), s(y), z, u) -> if(<=(x, y), f(s(x), -(y, x), z, u), f(x, u, z, u))
innermost
two new Dependency Pairs are created:
F(s(x), s(y), z, u) -> F(s(x), -(y, x), z, u)
F(s(0), s(y'), z, u) -> F(s(0), y', z, u)
F(s(s(y'')), s(s(x'')), z, u) -> F(s(s(y'')), -(x'', y''), z, u)
R
↳DPs
→DP Problem 1
↳FwdInst
→DP Problem 2
↳FwdInst
→DP Problem 3
↳Nar
→DP Problem 10
↳Narrowing Transformation
F(s(s(y'')), s(s(x'')), z, u) -> F(s(s(y'')), -(x'', y''), z, u)
F(s(0), s(y'), z, u) -> F(s(0), y', z, u)
F(s(x), 0, z, u) -> F(x, u, -(z, s(x)), u)
F(s(x), s(y), z, u) -> F(x, u, z, u)
-(x, 0) -> x
-(s(x), s(y)) -> -(x, y)
<=(0, y) -> true
<=(s(x), 0) -> false
<=(s(x), s(y)) -> <=(x, y)
if(true, x, y) -> x
if(false, x, y) -> y
perfectp(0) -> false
perfectp(s(x)) -> f(x, s(0), s(x), s(x))
f(0, y, 0, u) -> true
f(0, y, s(z), u) -> false
f(s(x), 0, z, u) -> f(x, u, -(z, s(x)), u)
f(s(x), s(y), z, u) -> if(<=(x, y), f(s(x), -(y, x), z, u), f(x, u, z, u))
innermost
two new Dependency Pairs are created:
F(s(s(y'')), s(s(x'')), z, u) -> F(s(s(y'')), -(x'', y''), z, u)
F(s(s(0)), s(s(x''')), z, u) -> F(s(s(0)), x''', z, u)
F(s(s(s(y'))), s(s(s(x'))), z, u) -> F(s(s(s(y'))), -(x', y'), z, u)
R
↳DPs
→DP Problem 1
↳FwdInst
→DP Problem 2
↳FwdInst
→DP Problem 3
↳Nar
→DP Problem 10
↳Nar
...
→DP Problem 11
↳Instantiation Transformation
F(s(s(s(y'))), s(s(s(x'))), z, u) -> F(s(s(s(y'))), -(x', y'), z, u)
F(s(s(0)), s(s(x''')), z, u) -> F(s(s(0)), x''', z, u)
F(s(x), s(y), z, u) -> F(x, u, z, u)
F(s(x), 0, z, u) -> F(x, u, -(z, s(x)), u)
F(s(0), s(y'), z, u) -> F(s(0), y', z, u)
-(x, 0) -> x
-(s(x), s(y)) -> -(x, y)
<=(0, y) -> true
<=(s(x), 0) -> false
<=(s(x), s(y)) -> <=(x, y)
if(true, x, y) -> x
if(false, x, y) -> y
perfectp(0) -> false
perfectp(s(x)) -> f(x, s(0), s(x), s(x))
f(0, y, 0, u) -> true
f(0, y, s(z), u) -> false
f(s(x), 0, z, u) -> f(x, u, -(z, s(x)), u)
f(s(x), s(y), z, u) -> if(<=(x, y), f(s(x), -(y, x), z, u), f(x, u, z, u))
innermost
five new Dependency Pairs are created:
F(s(x), 0, z, u) -> F(x, u, -(z, s(x)), u)
F(s(x'), 0, z', 0) -> F(x', 0, -(z', s(x')), 0)
F(s(x''), 0, z'', 0) -> F(x'', 0, -(z'', s(x'')), 0)
F(s(0), 0, z'', u'') -> F(0, u'', -(z'', s(0)), u'')
F(s(s(0)), 0, z'', u'') -> F(s(0), u'', -(z'', s(s(0))), u'')
F(s(s(s(y'''))), 0, z'', u'') -> F(s(s(y''')), u'', -(z'', s(s(s(y''')))), u'')
R
↳DPs
→DP Problem 1
↳FwdInst
→DP Problem 2
↳FwdInst
→DP Problem 3
↳Nar
→DP Problem 10
↳Nar
...
→DP Problem 12
↳Instantiation Transformation
F(s(s(0)), s(s(x''')), z, u) -> F(s(s(0)), x''', z, u)
F(s(s(s(y'''))), 0, z'', u'') -> F(s(s(y''')), u'', -(z'', s(s(s(y''')))), u'')
F(s(s(0)), 0, z'', u'') -> F(s(0), u'', -(z'', s(s(0))), u'')
F(s(x''), 0, z'', 0) -> F(x'', 0, -(z'', s(x'')), 0)
F(s(x'), 0, z', 0) -> F(x', 0, -(z', s(x')), 0)
F(s(0), s(y'), z, u) -> F(s(0), y', z, u)
F(s(x), s(y), z, u) -> F(x, u, z, u)
F(s(s(s(y'))), s(s(s(x'))), z, u) -> F(s(s(s(y'))), -(x', y'), z, u)
-(x, 0) -> x
-(s(x), s(y)) -> -(x, y)
<=(0, y) -> true
<=(s(x), 0) -> false
<=(s(x), s(y)) -> <=(x, y)
if(true, x, y) -> x
if(false, x, y) -> y
perfectp(0) -> false
perfectp(s(x)) -> f(x, s(0), s(x), s(x))
f(0, y, 0, u) -> true
f(0, y, s(z), u) -> false
f(s(x), 0, z, u) -> f(x, u, -(z, s(x)), u)
f(s(x), s(y), z, u) -> if(<=(x, y), f(s(x), -(y, x), z, u), f(x, u, z, u))
innermost
six new Dependency Pairs are created:
F(s(x), s(y), z, u) -> F(x, u, z, u)
F(s(x''), s(y'), z'', s(y')) -> F(x'', s(y'), z'', s(y'))
F(s(0), s(y'), z'', u'') -> F(0, u'', z'', u'')
F(s(s(0)), s(y'), z'', u'') -> F(s(0), u'', z'', u'')
F(s(s(s(y'''))), s(y'), z'', u'') -> F(s(s(y''')), u'', z'', u'')
F(s(0), s(y'), z', s(y')) -> F(0, s(y'), z', s(y'))
F(s(s(y''''')), s(y'), z', s(y')) -> F(s(y'''''), s(y'), z', s(y'))
R
↳DPs
→DP Problem 1
↳FwdInst
→DP Problem 2
↳FwdInst
→DP Problem 3
↳Nar
→DP Problem 10
↳Nar
...
→DP Problem 13
↳Forward Instantiation Transformation
F(s(s(y''''')), s(y'), z', s(y')) -> F(s(y'''''), s(y'), z', s(y'))
F(s(s(s(y'''))), s(y'), z'', u'') -> F(s(s(y''')), u'', z'', u'')
F(s(s(0)), s(y'), z'', u'') -> F(s(0), u'', z'', u'')
F(s(s(s(y'''))), 0, z'', u'') -> F(s(s(y''')), u'', -(z'', s(s(s(y''')))), u'')
F(s(s(s(y'))), s(s(s(x'))), z, u) -> F(s(s(s(y'))), -(x', y'), z, u)
F(s(x''), s(y'), z'', s(y')) -> F(x'', s(y'), z'', s(y'))
F(s(0), s(y'), z, u) -> F(s(0), y', z, u)
F(s(s(0)), 0, z'', u'') -> F(s(0), u'', -(z'', s(s(0))), u'')
F(s(x''), 0, z'', 0) -> F(x'', 0, -(z'', s(x'')), 0)
F(s(x'), 0, z', 0) -> F(x', 0, -(z', s(x')), 0)
F(s(s(0)), s(s(x''')), z, u) -> F(s(s(0)), x''', z, u)
-(x, 0) -> x
-(s(x), s(y)) -> -(x, y)
<=(0, y) -> true
<=(s(x), 0) -> false
<=(s(x), s(y)) -> <=(x, y)
if(true, x, y) -> x
if(false, x, y) -> y
perfectp(0) -> false
perfectp(s(x)) -> f(x, s(0), s(x), s(x))
f(0, y, 0, u) -> true
f(0, y, s(z), u) -> false
f(s(x), 0, z, u) -> f(x, u, -(z, s(x)), u)
f(s(x), s(y), z, u) -> if(<=(x, y), f(s(x), -(y, x), z, u), f(x, u, z, u))
innermost
three new Dependency Pairs are created:
F(s(0), s(y'), z, u) -> F(s(0), y', z, u)
F(s(0), s(s(y''')), z'', u'') -> F(s(0), s(y'''), z'', u'')
F(s(0), s(0), z', 0) -> F(s(0), 0, z', 0)
F(s(0), s(s(y''0)), z', s(y'''')) -> F(s(0), s(y''0), z', s(y''''))
R
↳DPs
→DP Problem 1
↳FwdInst
→DP Problem 2
↳FwdInst
→DP Problem 3
↳Nar
→DP Problem 10
↳Nar
...
→DP Problem 14
↳Forward Instantiation Transformation
F(s(s(s(y'''))), s(y'), z'', u'') -> F(s(s(y''')), u'', z'', u'')
F(s(0), s(s(y''0)), z', s(y'''')) -> F(s(0), s(y''0), z', s(y''''))
F(s(0), s(0), z', 0) -> F(s(0), 0, z', 0)
F(s(0), s(s(y''')), z'', u'') -> F(s(0), s(y'''), z'', u'')
F(s(s(0)), s(y'), z'', u'') -> F(s(0), u'', z'', u'')
F(s(s(s(y'''))), 0, z'', u'') -> F(s(s(y''')), u'', -(z'', s(s(s(y''')))), u'')
F(s(s(s(y'))), s(s(s(x'))), z, u) -> F(s(s(s(y'))), -(x', y'), z, u)
F(s(x''), s(y'), z'', s(y')) -> F(x'', s(y'), z'', s(y'))
F(s(s(0)), 0, z'', u'') -> F(s(0), u'', -(z'', s(s(0))), u'')
F(s(x''), 0, z'', 0) -> F(x'', 0, -(z'', s(x'')), 0)
F(s(x'), 0, z', 0) -> F(x', 0, -(z', s(x')), 0)
F(s(s(0)), s(s(x''')), z, u) -> F(s(s(0)), x''', z, u)
F(s(s(y''''')), s(y'), z', s(y')) -> F(s(y'''''), s(y'), z', s(y'))
-(x, 0) -> x
-(s(x), s(y)) -> -(x, y)
<=(0, y) -> true
<=(s(x), 0) -> false
<=(s(x), s(y)) -> <=(x, y)
if(true, x, y) -> x
if(false, x, y) -> y
perfectp(0) -> false
perfectp(s(x)) -> f(x, s(0), s(x), s(x))
f(0, y, 0, u) -> true
f(0, y, s(z), u) -> false
f(s(x), 0, z, u) -> f(x, u, -(z, s(x)), u)
f(s(x), s(y), z, u) -> if(<=(x, y), f(s(x), -(y, x), z, u), f(x, u, z, u))
innermost
eight new Dependency Pairs are created:
F(s(x''), s(y'), z'', s(y')) -> F(x'', s(y'), z'', s(y'))
F(s(s(s(0))), s(s(x''''')), z''', s(s(x'''''))) -> F(s(s(0)), s(s(x''''')), z''', s(s(x''''')))
F(s(s(s(s(y''')))), s(s(s(x''''))), z''', s(s(s(x'''')))) -> F(s(s(s(y'''))), s(s(s(x''''))), z''', s(s(s(x''''))))
F(s(s(x'''')), s(y'0), z'''', s(y'0)) -> F(s(x''''), s(y'0), z'''', s(y'0))
F(s(s(s(0))), s(y'''), z'''', s(y''')) -> F(s(s(0)), s(y'''), z'''', s(y'''))
F(s(s(s(s(y''''')))), s(y'''), z'''', s(y''')) -> F(s(s(s(y'''''))), s(y'''), z'''', s(y'''))
F(s(s(s(y'''''''))), s(y'0), z'''', s(y'0)) -> F(s(s(y''''''')), s(y'0), z'''', s(y'0))
F(s(s(0)), s(s(y''''')), z'''', s(s(y'''''))) -> F(s(0), s(s(y''''')), z'''', s(s(y''''')))
F(s(s(0)), s(s(y''0'')), z'''', s(s(y''0''))) -> F(s(0), s(s(y''0'')), z'''', s(s(y''0'')))
R
↳DPs
→DP Problem 1
↳FwdInst
→DP Problem 2
↳FwdInst
→DP Problem 3
↳Nar
→DP Problem 10
↳Nar
...
→DP Problem 15
↳Forward Instantiation Transformation
F(s(s(s(y'''''''))), s(y'0), z'''', s(y'0)) -> F(s(s(y''''''')), s(y'0), z'''', s(y'0))
F(s(s(s(s(y''''')))), s(y'''), z'''', s(y''')) -> F(s(s(s(y'''''))), s(y'''), z'''', s(y'''))
F(s(s(0)), s(s(y''0'')), z'''', s(s(y''0''))) -> F(s(0), s(s(y''0'')), z'''', s(s(y''0'')))
F(s(s(0)), s(s(y''''')), z'''', s(s(y'''''))) -> F(s(0), s(s(y''''')), z'''', s(s(y''''')))
F(s(s(s(0))), s(y'''), z'''', s(y''')) -> F(s(s(0)), s(y'''), z'''', s(y'''))
F(s(s(s(s(y''')))), s(s(s(x''''))), z''', s(s(s(x'''')))) -> F(s(s(s(y'''))), s(s(s(x''''))), z''', s(s(s(x''''))))
F(s(s(x'''')), s(y'0), z'''', s(y'0)) -> F(s(x''''), s(y'0), z'''', s(y'0))
F(s(s(s(0))), s(s(x''''')), z''', s(s(x'''''))) -> F(s(s(0)), s(s(x''''')), z''', s(s(x''''')))
F(s(s(0)), s(y'), z'', u'') -> F(s(0), u'', z'', u'')
F(s(s(y''''')), s(y'), z', s(y')) -> F(s(y'''''), s(y'), z', s(y'))
F(s(s(s(y'))), s(s(s(x'))), z, u) -> F(s(s(s(y'))), -(x', y'), z, u)
F(s(s(s(y'''))), 0, z'', u'') -> F(s(s(y''')), u'', -(z'', s(s(s(y''')))), u'')
F(s(0), s(s(y''0)), z', s(y'''')) -> F(s(0), s(y''0), z', s(y''''))
F(s(0), s(0), z', 0) -> F(s(0), 0, z', 0)
F(s(0), s(s(y''')), z'', u'') -> F(s(0), s(y'''), z'', u'')
F(s(s(0)), 0, z'', u'') -> F(s(0), u'', -(z'', s(s(0))), u'')
F(s(x''), 0, z'', 0) -> F(x'', 0, -(z'', s(x'')), 0)
F(s(x'), 0, z', 0) -> F(x', 0, -(z', s(x')), 0)
F(s(s(0)), s(s(x''')), z, u) -> F(s(s(0)), x''', z, u)
F(s(s(s(y'''))), s(y'), z'', u'') -> F(s(s(y''')), u'', z'', u'')
-(x, 0) -> x
-(s(x), s(y)) -> -(x, y)
<=(0, y) -> true
<=(s(x), 0) -> false
<=(s(x), s(y)) -> <=(x, y)
if(true, x, y) -> x
if(false, x, y) -> y
perfectp(0) -> false
perfectp(s(x)) -> f(x, s(0), s(x), s(x))
f(0, y, 0, u) -> true
f(0, y, s(z), u) -> false
f(s(x), 0, z, u) -> f(x, u, -(z, s(x)), u)
f(s(x), s(y), z, u) -> if(<=(x, y), f(s(x), -(y, x), z, u), f(x, u, z, u))
innermost
three new Dependency Pairs are created:
F(s(s(0)), s(y'), z'', u'') -> F(s(0), u'', z'', u'')
F(s(s(0)), s(y'), z'''', 0) -> F(s(0), 0, z'''', 0)
F(s(s(0)), s(y'), z'''', s(s(y'''''))) -> F(s(0), s(s(y''''')), z'''', s(s(y''''')))
F(s(s(0)), s(y'), z'''', s(s(y''0''))) -> F(s(0), s(s(y''0'')), z'''', s(s(y''0'')))
R
↳DPs
→DP Problem 1
↳FwdInst
→DP Problem 2
↳FwdInst
→DP Problem 3
↳Nar
→DP Problem 10
↳Nar
...
→DP Problem 16
↳Forward Instantiation Transformation
F(s(s(0)), s(y'), z'''', 0) -> F(s(0), 0, z'''', 0)
F(s(s(s(s(y''''')))), s(y'''), z'''', s(y''')) -> F(s(s(s(y'''''))), s(y'''), z'''', s(y'''))
F(s(s(0)), s(y'), z'''', s(s(y''0''))) -> F(s(0), s(s(y''0'')), z'''', s(s(y''0'')))
F(s(s(0)), s(y'), z'''', s(s(y'''''))) -> F(s(0), s(s(y''''')), z'''', s(s(y''''')))
F(s(s(0)), s(s(y''0'')), z'''', s(s(y''0''))) -> F(s(0), s(s(y''0'')), z'''', s(s(y''0'')))
F(s(s(0)), s(s(y''''')), z'''', s(s(y'''''))) -> F(s(0), s(s(y''''')), z'''', s(s(y''''')))
F(s(s(s(0))), s(y'''), z'''', s(y''')) -> F(s(s(0)), s(y'''), z'''', s(y'''))
F(s(s(s(s(y''')))), s(s(s(x''''))), z''', s(s(s(x'''')))) -> F(s(s(s(y'''))), s(s(s(x''''))), z''', s(s(s(x''''))))
F(s(s(x'''')), s(y'0), z'''', s(y'0)) -> F(s(x''''), s(y'0), z'''', s(y'0))
F(s(s(s(0))), s(s(x''''')), z''', s(s(x'''''))) -> F(s(s(0)), s(s(x''''')), z''', s(s(x''''')))
F(s(s(y''''')), s(y'), z', s(y')) -> F(s(y'''''), s(y'), z', s(y'))
F(s(s(s(y'''))), s(y'), z'', u'') -> F(s(s(y''')), u'', z'', u'')
F(s(s(s(y'))), s(s(s(x'))), z, u) -> F(s(s(s(y'))), -(x', y'), z, u)
F(s(s(s(y'''))), 0, z'', u'') -> F(s(s(y''')), u'', -(z'', s(s(s(y''')))), u'')
F(s(0), s(s(y''0)), z', s(y'''')) -> F(s(0), s(y''0), z', s(y''''))
F(s(0), s(0), z', 0) -> F(s(0), 0, z', 0)
F(s(0), s(s(y''')), z'', u'') -> F(s(0), s(y'''), z'', u'')
F(s(s(0)), 0, z'', u'') -> F(s(0), u'', -(z'', s(s(0))), u'')
F(s(x''), 0, z'', 0) -> F(x'', 0, -(z'', s(x'')), 0)
F(s(x'), 0, z', 0) -> F(x', 0, -(z', s(x')), 0)
F(s(s(0)), s(s(x''')), z, u) -> F(s(s(0)), x''', z, u)
F(s(s(s(y'''''''))), s(y'0), z'''', s(y'0)) -> F(s(s(y''''''')), s(y'0), z'''', s(y'0))
-(x, 0) -> x
-(s(x), s(y)) -> -(x, y)
<=(0, y) -> true
<=(s(x), 0) -> false
<=(s(x), s(y)) -> <=(x, y)
if(true, x, y) -> x
if(false, x, y) -> y
perfectp(0) -> false
perfectp(s(x)) -> f(x, s(0), s(x), s(x))
f(0, y, 0, u) -> true
f(0, y, s(z), u) -> false
f(s(x), 0, z, u) -> f(x, u, -(z, s(x)), u)
f(s(x), s(y), z, u) -> if(<=(x, y), f(s(x), -(y, x), z, u), f(x, u, z, u))
innermost
17 new Dependency Pairs are created:
F(s(s(s(y'''))), s(y'), z'', u'') -> F(s(s(y''')), u'', z'', u'')
F(s(s(s(0))), s(y'), z''', s(s(x'''''))) -> F(s(s(0)), s(s(x''''')), z''', s(s(x''''')))
F(s(s(s(s(y'''')))), s(y'), z''', s(s(s(x''')))) -> F(s(s(s(y''''))), s(s(s(x'''))), z''', s(s(s(x'''))))
F(s(s(s(y''''))), s(y'), z'''', 0) -> F(s(s(y'''')), 0, z'''', 0)
F(s(s(s(0))), s(y'), z'''', 0) -> F(s(s(0)), 0, z'''', 0)
F(s(s(s(s(y''''')))), s(y'), z'''', 0) -> F(s(s(s(y'''''))), 0, z'''', 0)
F(s(s(s(s(y''''')))), s(y'), z'''', s(y''0)) -> F(s(s(s(y'''''))), s(y''0), z'''', s(y''0))
F(s(s(s(y''''))), s(y'), z'''', s(y''0)) -> F(s(s(y'''')), s(y''0), z'''', s(y''0))
F(s(s(s(s(0)))), s(y'), z''', s(s(x''''''''))) -> F(s(s(s(0))), s(s(x'''''''')), z''', s(s(x'''''''')))
F(s(s(s(s(s(y'''''))))), s(y'), z''', s(s(s(x''''''')))) -> F(s(s(s(s(y''''')))), s(s(s(x'''''''))), z''', s(s(s(x'''''''))))
F(s(s(s(y''''))), s(y'), z''', s(y'0''')) -> F(s(s(y'''')), s(y'0'''), z''', s(y'0'''))
F(s(s(s(s(0)))), s(y'), z''', s(y'''''')) -> F(s(s(s(0))), s(y''''''), z''', s(y''''''))
F(s(s(s(s(s(y'''''''))))), s(y'), z''', s(y''''')) -> F(s(s(s(s(y''''''')))), s(y'''''), z''', s(y'''''))
F(s(s(s(s(y''''''''')))), s(y'), z''', s(y'0''')) -> F(s(s(s(y'''''''''))), s(y'0'''), z''', s(y'0'''))
F(s(s(s(0))), s(y'), z''', s(s(y''''''''))) -> F(s(s(0)), s(s(y'''''''')), z''', s(s(y'''''''')))
F(s(s(s(0))), s(y'), z''', s(s(y''0'''''))) -> F(s(s(0)), s(s(y''0''''')), z''', s(s(y''0''''')))
F(s(s(s(0))), s(y'), z''', s(s(y'''''''))) -> F(s(s(0)), s(s(y''''''')), z''', s(s(y''''''')))
F(s(s(s(0))), s(y'), z''', s(s(y''0''''))) -> F(s(s(0)), s(s(y''0'''')), z''', s(s(y''0'''')))
R
↳DPs
→DP Problem 1
↳FwdInst
→DP Problem 2
↳FwdInst
→DP Problem 3
↳Nar
→DP Problem 10
↳Nar
...
→DP Problem 17
↳Forward Instantiation Transformation
F(s(s(s(s(y''''')))), s(y'), z'''', 0) -> F(s(s(s(y'''''))), 0, z'''', 0)
F(s(s(s(0))), s(y'), z'''', 0) -> F(s(s(0)), 0, z'''', 0)
F(s(s(s(y''''))), s(y'), z'''', 0) -> F(s(s(y'''')), 0, z'''', 0)
F(s(s(s(s(y''''''''')))), s(y'), z''', s(y'0''')) -> F(s(s(s(y'''''''''))), s(y'0'''), z''', s(y'0'''))
F(s(s(s(s(s(y'''''''))))), s(y'), z''', s(y''''')) -> F(s(s(s(s(y''''''')))), s(y'''''), z''', s(y'''''))
F(s(s(s(0))), s(y'), z''', s(s(y''0''''))) -> F(s(s(0)), s(s(y''0'''')), z''', s(s(y''0'''')))
F(s(s(s(0))), s(y'), z''', s(s(y'''''''))) -> F(s(s(0)), s(s(y''''''')), z''', s(s(y''''''')))
F(s(s(s(0))), s(y'), z''', s(s(y''0'''''))) -> F(s(s(0)), s(s(y''0''''')), z''', s(s(y''0''''')))
F(s(s(s(0))), s(y'), z''', s(s(y''''''''))) -> F(s(s(0)), s(s(y'''''''')), z''', s(s(y'''''''')))
F(s(s(s(s(0)))), s(y'), z''', s(y'''''')) -> F(s(s(s(0))), s(y''''''), z''', s(y''''''))
F(s(s(s(s(s(y'''''))))), s(y'), z''', s(s(s(x''''''')))) -> F(s(s(s(s(y''''')))), s(s(s(x'''''''))), z''', s(s(s(x'''''''))))
F(s(s(s(y''''))), s(y'), z''', s(y'0''')) -> F(s(s(y'''')), s(y'0'''), z''', s(y'0'''))
F(s(s(s(s(0)))), s(y'), z''', s(s(x''''''''))) -> F(s(s(s(0))), s(s(x'''''''')), z''', s(s(x'''''''')))
F(s(s(s(y''''))), s(y'), z'''', s(y''0)) -> F(s(s(y'''')), s(y''0), z'''', s(y''0))
F(s(s(s(s(y''''')))), s(y'), z'''', s(y''0)) -> F(s(s(s(y'''''))), s(y''0), z'''', s(y''0))
F(s(s(s(s(y'''')))), s(y'), z''', s(s(s(x''')))) -> F(s(s(s(y''''))), s(s(s(x'''))), z''', s(s(s(x'''))))
F(s(s(s(0))), s(y'), z''', s(s(x'''''))) -> F(s(s(0)), s(s(x''''')), z''', s(s(x''''')))
F(s(s(s(y'''''''))), s(y'0), z'''', s(y'0)) -> F(s(s(y''''''')), s(y'0), z'''', s(y'0))
F(s(s(s(s(y''''')))), s(y'''), z'''', s(y''')) -> F(s(s(s(y'''''))), s(y'''), z'''', s(y'''))
F(s(s(0)), s(y'), z'''', s(s(y''0''))) -> F(s(0), s(s(y''0'')), z'''', s(s(y''0'')))
F(s(s(0)), s(y'), z'''', s(s(y'''''))) -> F(s(0), s(s(y''''')), z'''', s(s(y''''')))
F(s(s(0)), s(s(y''0'')), z'''', s(s(y''0''))) -> F(s(0), s(s(y''0'')), z'''', s(s(y''0'')))
F(s(s(0)), s(s(y''''')), z'''', s(s(y'''''))) -> F(s(0), s(s(y''''')), z'''', s(s(y''''')))
F(s(s(s(0))), s(y'''), z'''', s(y''')) -> F(s(s(0)), s(y'''), z'''', s(y'''))
F(s(s(s(s(y''')))), s(s(s(x''''))), z''', s(s(s(x'''')))) -> F(s(s(s(y'''))), s(s(s(x''''))), z''', s(s(s(x''''))))
F(s(s(x'''')), s(y'0), z'''', s(y'0)) -> F(s(x''''), s(y'0), z'''', s(y'0))
F(s(s(s(0))), s(s(x''''')), z''', s(s(x'''''))) -> F(s(s(0)), s(s(x''''')), z''', s(s(x''''')))
F(s(s(s(y'))), s(s(s(x'))), z, u) -> F(s(s(s(y'))), -(x', y'), z, u)
F(s(s(y''''')), s(y'), z', s(y')) -> F(s(y'''''), s(y'), z', s(y'))
F(s(s(0)), s(s(x''')), z, u) -> F(s(s(0)), x''', z, u)
F(s(s(s(y'''))), 0, z'', u'') -> F(s(s(y''')), u'', -(z'', s(s(s(y''')))), u'')
F(s(0), s(s(y''0)), z', s(y'''')) -> F(s(0), s(y''0), z', s(y''''))
F(s(0), s(0), z', 0) -> F(s(0), 0, z', 0)
F(s(0), s(s(y''')), z'', u'') -> F(s(0), s(y'''), z'', u'')
F(s(s(0)), 0, z'', u'') -> F(s(0), u'', -(z'', s(s(0))), u'')
F(s(x''), 0, z'', 0) -> F(x'', 0, -(z'', s(x'')), 0)
F(s(x'), 0, z', 0) -> F(x', 0, -(z', s(x')), 0)
F(s(s(0)), s(y'), z'''', 0) -> F(s(0), 0, z'''', 0)
-(x, 0) -> x
-(s(x), s(y)) -> -(x, y)
<=(0, y) -> true
<=(s(x), 0) -> false
<=(s(x), s(y)) -> <=(x, y)
if(true, x, y) -> x
if(false, x, y) -> y
perfectp(0) -> false
perfectp(s(x)) -> f(x, s(0), s(x), s(x))
f(0, y, 0, u) -> true
f(0, y, s(z), u) -> false
f(s(x), 0, z, u) -> f(x, u, -(z, s(x)), u)
f(s(x), s(y), z, u) -> if(<=(x, y), f(s(x), -(y, x), z, u), f(x, u, z, u))
innermost
28 new Dependency Pairs are created:
F(s(s(y''''')), s(y'), z', s(y')) -> F(s(y'''''), s(y'), z', s(y'))
F(s(s(s(0))), s(s(x''''')), z''', s(s(x'''''))) -> F(s(s(0)), s(s(x''''')), z''', s(s(x''''')))
F(s(s(s(s(y''')))), s(s(s(x'''))), z''', s(s(s(x''')))) -> F(s(s(s(y'''))), s(s(s(x'''))), z''', s(s(s(x'''))))
F(s(s(s(y'''''''))), s(y'0), z''', s(y'0)) -> F(s(s(y''''''')), s(y'0), z''', s(y'0))
F(s(s(0)), s(s(y'''''')), z'', s(s(y''''''))) -> F(s(0), s(s(y'''''')), z'', s(s(y'''''')))
F(s(s(0)), s(s(y''0'')), z''', s(s(y''0''))) -> F(s(0), s(s(y''0'')), z''', s(s(y''0'')))
F(s(s(s(s(0)))), s(s(x'''''''')), z'', s(s(x''''''''))) -> F(s(s(s(0))), s(s(x'''''''')), z'', s(s(x'''''''')))
F(s(s(s(s(s(y''''''))))), s(s(s(x'''''''))), z'', s(s(s(x''''''')))) -> F(s(s(s(s(y'''''')))), s(s(s(x'''''''))), z'', s(s(s(x'''''''))))
F(s(s(s(x''''''))), s(y''), z'', s(y'')) -> F(s(s(x'''''')), s(y''), z'', s(y''))
F(s(s(s(s(0)))), s(y''), z'', s(y'')) -> F(s(s(s(0))), s(y''), z'', s(y''))
F(s(s(s(s(s(y'''''''))))), s(y''), z'', s(y'')) -> F(s(s(s(s(y''''''')))), s(y''), z'', s(y''))
F(s(s(s(s(y''''''''')))), s(y''), z'', s(y'')) -> F(s(s(s(y'''''''''))), s(y''), z'', s(y''))
F(s(s(s(0))), s(s(y'''''''')), z'', s(s(y''''''''))) -> F(s(s(0)), s(s(y'''''''')), z'', s(s(y'''''''')))
F(s(s(s(0))), s(s(y''0''''')), z'', s(s(y''0'''''))) -> F(s(s(0)), s(s(y''0''''')), z'', s(s(y''0''''')))
F(s(s(s(0))), s(s(y''''''')), z'', s(s(y'''''''))) -> F(s(s(0)), s(s(y''''''')), z'', s(s(y''''''')))
F(s(s(s(0))), s(s(y''0'''')), z'', s(s(y''0''''))) -> F(s(s(0)), s(s(y''0'''')), z'', s(s(y''0'''')))
F(s(s(s(s(0)))), s(s(x''''''')), z'', s(s(x'''''''))) -> F(s(s(s(0))), s(s(x''''''')), z'', s(s(x''''''')))
F(s(s(s(s(s(y'''''''))))), s(s(s(x'''''))), z'', s(s(s(x''''')))) -> F(s(s(s(s(y''''''')))), s(s(s(x'''''))), z'', s(s(s(x'''''))))
F(s(s(s(s(s(y'''''''))))), s(y'''), z'', s(y''')) -> F(s(s(s(s(y''''''')))), s(y'''), z'', s(y'''))
F(s(s(s(s(y''''''')))), s(y'''), z'', s(y''')) -> F(s(s(s(y'''''''))), s(y'''), z'', s(y'''))
F(s(s(s(s(s(0))))), s(s(x'''''''''')), z'', s(s(x''''''''''))) -> F(s(s(s(s(0)))), s(s(x'''''''''')), z'', s(s(x'''''''''')))
F(s(s(s(s(s(s(y''''''')))))), s(s(s(x'''''''''))), z'', s(s(s(x''''''''')))) -> F(s(s(s(s(s(y'''''''))))), s(s(s(x'''''''''))), z'', s(s(s(x'''''''''))))
F(s(s(s(s(s(0))))), s(y'''), z'', s(y''')) -> F(s(s(s(s(0)))), s(y'''), z'', s(y'''))
F(s(s(s(s(s(s(y''''''''')))))), s(y'''), z'', s(y''')) -> F(s(s(s(s(s(y'''''''''))))), s(y'''), z'', s(y'''))
F(s(s(s(s(s(y'''''''''''))))), s(y'''), z'', s(y''')) -> F(s(s(s(s(y''''''''''')))), s(y'''), z'', s(y'''))
F(s(s(s(s(0)))), s(s(y'''''''''')), z'', s(s(y''''''''''))) -> F(s(s(s(0))), s(s(y'''''''''')), z'', s(s(y'''''''''')))
F(s(s(s(s(0)))), s(s(y''0''''''')), z'', s(s(y''0'''''''))) -> F(s(s(s(0))), s(s(y''0''''''')), z'', s(s(y''0''''''')))
F(s(s(s(s(0)))), s(s(y''''''''')), z'', s(s(y'''''''''))) -> F(s(s(s(0))), s(s(y''''''''')), z'', s(s(y''''''''')))
F(s(s(s(s(0)))), s(s(y''0'''''')), z'', s(s(y''0''''''))) -> F(s(s(s(0))), s(s(y''0'''''')), z'', s(s(y''0'''''')))
R
↳DPs
→DP Problem 1
↳FwdInst
→DP Problem 2
↳FwdInst
→DP Problem 3
↳Nar
→DP Problem 10
↳Nar
...
→DP Problem 18
↳Argument Filtering and Ordering
F(s(s(0)), s(y'), z'''', 0) -> F(s(0), 0, z'''', 0)
F(s(s(s(0))), s(y'), z'''', 0) -> F(s(s(0)), 0, z'''', 0)
F(s(s(s(y''''))), s(y'), z'''', 0) -> F(s(s(y'''')), 0, z'''', 0)
F(s(s(s(s(s(y'''''''''''))))), s(y'''), z'', s(y''')) -> F(s(s(s(s(y''''''''''')))), s(y'''), z'', s(y'''))
F(s(s(s(s(s(s(y''''''''')))))), s(y'''), z'', s(y''')) -> F(s(s(s(s(s(y'''''''''))))), s(y'''), z'', s(y'''))
F(s(s(s(s(s(0))))), s(y'''), z'', s(y''')) -> F(s(s(s(s(0)))), s(y'''), z'', s(y'''))
F(s(s(s(s(s(s(y''''''')))))), s(s(s(x'''''''''))), z'', s(s(s(x''''''''')))) -> F(s(s(s(s(s(y'''''''))))), s(s(s(x'''''''''))), z'', s(s(s(x'''''''''))))
F(s(s(s(s(0)))), s(s(y''0'''''')), z'', s(s(y''0''''''))) -> F(s(s(s(0))), s(s(y''0'''''')), z'', s(s(y''0'''''')))
F(s(s(s(s(0)))), s(s(y''''''''')), z'', s(s(y'''''''''))) -> F(s(s(s(0))), s(s(y''''''''')), z'', s(s(y''''''''')))
F(s(s(s(s(0)))), s(s(y''0''''''')), z'', s(s(y''0'''''''))) -> F(s(s(s(0))), s(s(y''0''''''')), z'', s(s(y''0''''''')))
F(s(s(s(s(0)))), s(s(y'''''''''')), z'', s(s(y''''''''''))) -> F(s(s(s(0))), s(s(y'''''''''')), z'', s(s(y'''''''''')))
F(s(s(s(s(s(0))))), s(s(x'''''''''')), z'', s(s(x''''''''''))) -> F(s(s(s(s(0)))), s(s(x'''''''''')), z'', s(s(x'''''''''')))
F(s(s(s(s(y''''''')))), s(y'''), z'', s(y''')) -> F(s(s(s(y'''''''))), s(y'''), z'', s(y'''))
F(s(s(s(s(s(y'''''''))))), s(y'''), z'', s(y''')) -> F(s(s(s(s(y''''''')))), s(y'''), z'', s(y'''))
F(s(s(s(s(s(y'''''''))))), s(s(s(x'''''))), z'', s(s(s(x''''')))) -> F(s(s(s(s(y''''''')))), s(s(s(x'''''))), z'', s(s(s(x'''''))))
F(s(s(s(s(0)))), s(s(x''''''')), z'', s(s(x'''''''))) -> F(s(s(s(0))), s(s(x''''''')), z'', s(s(x''''''')))
F(s(s(s(s(y''''''''')))), s(y''), z'', s(y'')) -> F(s(s(s(y'''''''''))), s(y''), z'', s(y''))
F(s(s(s(s(s(y'''''''))))), s(y''), z'', s(y'')) -> F(s(s(s(s(y''''''')))), s(y''), z'', s(y''))
F(s(s(s(0))), s(s(y''0'''')), z'', s(s(y''0''''))) -> F(s(s(0)), s(s(y''0'''')), z'', s(s(y''0'''')))
F(s(s(s(0))), s(s(y''''''')), z'', s(s(y'''''''))) -> F(s(s(0)), s(s(y''''''')), z'', s(s(y''''''')))
F(s(s(s(0))), s(s(y''0''''')), z'', s(s(y''0'''''))) -> F(s(s(0)), s(s(y''0''''')), z'', s(s(y''0''''')))
F(s(s(s(0))), s(s(y'''''''')), z'', s(s(y''''''''))) -> F(s(s(0)), s(s(y'''''''')), z'', s(s(y'''''''')))
F(s(s(s(s(0)))), s(y''), z'', s(y'')) -> F(s(s(s(0))), s(y''), z'', s(y''))
F(s(s(s(s(s(y''''''))))), s(s(s(x'''''''))), z'', s(s(s(x''''''')))) -> F(s(s(s(s(y'''''')))), s(s(s(x'''''''))), z'', s(s(s(x'''''''))))
F(s(s(s(x''''''))), s(y''), z'', s(y'')) -> F(s(s(x'''''')), s(y''), z'', s(y''))
F(s(s(s(s(0)))), s(s(x'''''''')), z'', s(s(x''''''''))) -> F(s(s(s(0))), s(s(x'''''''')), z'', s(s(x'''''''')))
F(s(s(s(s(y''')))), s(s(s(x'''))), z''', s(s(s(x''')))) -> F(s(s(s(y'''))), s(s(s(x'''))), z''', s(s(s(x'''))))
F(s(s(s(s(y''''''''')))), s(y'), z''', s(y'0''')) -> F(s(s(s(y'''''''''))), s(y'0'''), z''', s(y'0'''))
F(s(s(s(s(s(y'''''''))))), s(y'), z''', s(y''''')) -> F(s(s(s(s(y''''''')))), s(y'''''), z''', s(y'''''))
F(s(s(s(y'''''''))), s(y'0), z''', s(y'0)) -> F(s(s(y''''''')), s(y'0), z''', s(y'0))
F(s(s(s(0))), s(s(x''''')), z''', s(s(x'''''))) -> F(s(s(0)), s(s(x''''')), z''', s(s(x''''')))
F(s(s(s(0))), s(y'), z''', s(s(y''0''''))) -> F(s(s(0)), s(s(y''0'''')), z''', s(s(y''0'''')))
F(s(s(s(0))), s(y'), z''', s(s(y'''''''))) -> F(s(s(0)), s(s(y''''''')), z''', s(s(y''''''')))
F(s(s(s(0))), s(y'), z''', s(s(y''0'''''))) -> F(s(s(0)), s(s(y''0''''')), z''', s(s(y''0''''')))
F(s(s(s(0))), s(y'), z''', s(s(y''''''''))) -> F(s(s(0)), s(s(y'''''''')), z''', s(s(y'''''''')))
F(s(s(s(s(0)))), s(y'), z''', s(y'''''')) -> F(s(s(s(0))), s(y''''''), z''', s(y''''''))
F(s(s(s(s(s(y'''''))))), s(y'), z''', s(s(s(x''''''')))) -> F(s(s(s(s(y''''')))), s(s(s(x'''''''))), z''', s(s(s(x'''''''))))
F(s(s(s(y''''))), s(y'), z''', s(y'0''')) -> F(s(s(y'''')), s(y'0'''), z''', s(y'0'''))
F(s(s(s(s(0)))), s(y'), z''', s(s(x''''''''))) -> F(s(s(s(0))), s(s(x'''''''')), z''', s(s(x'''''''')))
F(s(s(s(y''''))), s(y'), z'''', s(y''0)) -> F(s(s(y'''')), s(y''0), z'''', s(y''0))
F(s(s(s(s(y''''')))), s(y'), z'''', s(y''0)) -> F(s(s(s(y'''''))), s(y''0), z'''', s(y''0))
F(s(s(s(s(y'''')))), s(y'), z''', s(s(s(x''')))) -> F(s(s(s(y''''))), s(s(s(x'''))), z''', s(s(s(x'''))))
F(s(s(s(0))), s(y'), z''', s(s(x'''''))) -> F(s(s(0)), s(s(x''''')), z''', s(s(x''''')))
F(s(s(s(y'''''''))), s(y'0), z'''', s(y'0)) -> F(s(s(y''''''')), s(y'0), z'''', s(y'0))
F(s(s(s(s(y''''')))), s(y'''), z'''', s(y''')) -> F(s(s(s(y'''''))), s(y'''), z'''', s(y'''))
F(s(s(s(0))), s(y'''), z'''', s(y''')) -> F(s(s(0)), s(y'''), z'''', s(y'''))
F(s(s(s(s(y''')))), s(s(s(x''''))), z''', s(s(s(x'''')))) -> F(s(s(s(y'''))), s(s(s(x''''))), z''', s(s(s(x''''))))
F(s(s(0)), s(s(y''0'')), z''', s(s(y''0''))) -> F(s(0), s(s(y''0'')), z''', s(s(y''0'')))
F(s(s(0)), s(s(y'''''')), z'', s(s(y''''''))) -> F(s(0), s(s(y'''''')), z'', s(s(y'''''')))
F(s(s(0)), s(y'), z'''', s(s(y''0''))) -> F(s(0), s(s(y''0'')), z'''', s(s(y''0'')))
F(s(s(0)), s(y'), z'''', s(s(y'''''))) -> F(s(0), s(s(y''''')), z'''', s(s(y''''')))
F(s(s(0)), s(s(y''0'')), z'''', s(s(y''0''))) -> F(s(0), s(s(y''0'')), z'''', s(s(y''0'')))
F(s(s(0)), s(s(y''''')), z'''', s(s(y'''''))) -> F(s(0), s(s(y''''')), z'''', s(s(y''''')))
F(s(s(s(0))), s(s(x''''')), z''', s(s(x'''''))) -> F(s(s(0)), s(s(x''''')), z''', s(s(x''''')))
F(s(s(s(y'))), s(s(s(x'))), z, u) -> F(s(s(s(y'))), -(x', y'), z, u)
F(s(s(x'''')), s(y'0), z'''', s(y'0)) -> F(s(x''''), s(y'0), z'''', s(y'0))
F(s(s(0)), s(s(x''')), z, u) -> F(s(s(0)), x''', z, u)
F(s(s(s(y'''))), 0, z'', u'') -> F(s(s(y''')), u'', -(z'', s(s(s(y''')))), u'')
F(s(0), s(s(y''0)), z', s(y'''')) -> F(s(0), s(y''0), z', s(y''''))
F(s(0), s(0), z', 0) -> F(s(0), 0, z', 0)
F(s(0), s(s(y''')), z'', u'') -> F(s(0), s(y'''), z'', u'')
F(s(s(0)), 0, z'', u'') -> F(s(0), u'', -(z'', s(s(0))), u'')
F(s(x''), 0, z'', 0) -> F(x'', 0, -(z'', s(x'')), 0)
F(s(x'), 0, z', 0) -> F(x', 0, -(z', s(x')), 0)
F(s(s(s(s(y''''')))), s(y'), z'''', 0) -> F(s(s(s(y'''''))), 0, z'''', 0)
-(x, 0) -> x
-(s(x), s(y)) -> -(x, y)
<=(0, y) -> true
<=(s(x), 0) -> false
<=(s(x), s(y)) -> <=(x, y)
if(true, x, y) -> x
if(false, x, y) -> y
perfectp(0) -> false
perfectp(s(x)) -> f(x, s(0), s(x), s(x))
f(0, y, 0, u) -> true
f(0, y, s(z), u) -> false
f(s(x), 0, z, u) -> f(x, u, -(z, s(x)), u)
f(s(x), s(y), z, u) -> if(<=(x, y), f(s(x), -(y, x), z, u), f(x, u, z, u))
innermost
F(s(s(0)), s(y'), z'''', 0) -> F(s(0), 0, z'''', 0)
F(s(s(s(0))), s(y'), z'''', 0) -> F(s(s(0)), 0, z'''', 0)
F(s(s(s(y''''))), s(y'), z'''', 0) -> F(s(s(y'''')), 0, z'''', 0)
F(s(s(s(s(s(y'''''''''''))))), s(y'''), z'', s(y''')) -> F(s(s(s(s(y''''''''''')))), s(y'''), z'', s(y'''))
F(s(s(s(s(s(s(y''''''''')))))), s(y'''), z'', s(y''')) -> F(s(s(s(s(s(y'''''''''))))), s(y'''), z'', s(y'''))
F(s(s(s(s(s(0))))), s(y'''), z'', s(y''')) -> F(s(s(s(s(0)))), s(y'''), z'', s(y'''))
F(s(s(s(s(s(s(y''''''')))))), s(s(s(x'''''''''))), z'', s(s(s(x''''''''')))) -> F(s(s(s(s(s(y'''''''))))), s(s(s(x'''''''''))), z'', s(s(s(x'''''''''))))
F(s(s(s(s(0)))), s(s(y''0'''''')), z'', s(s(y''0''''''))) -> F(s(s(s(0))), s(s(y''0'''''')), z'', s(s(y''0'''''')))
F(s(s(s(s(0)))), s(s(y''''''''')), z'', s(s(y'''''''''))) -> F(s(s(s(0))), s(s(y''''''''')), z'', s(s(y''''''''')))
F(s(s(s(s(0)))), s(s(y''0''''''')), z'', s(s(y''0'''''''))) -> F(s(s(s(0))), s(s(y''0''''''')), z'', s(s(y''0''''''')))
F(s(s(s(s(0)))), s(s(y'''''''''')), z'', s(s(y''''''''''))) -> F(s(s(s(0))), s(s(y'''''''''')), z'', s(s(y'''''''''')))
F(s(s(s(s(s(0))))), s(s(x'''''''''')), z'', s(s(x''''''''''))) -> F(s(s(s(s(0)))), s(s(x'''''''''')), z'', s(s(x'''''''''')))
F(s(s(s(s(y''''''')))), s(y'''), z'', s(y''')) -> F(s(s(s(y'''''''))), s(y'''), z'', s(y'''))
F(s(s(s(s(s(y'''''''))))), s(y'''), z'', s(y''')) -> F(s(s(s(s(y''''''')))), s(y'''), z'', s(y'''))
F(s(s(s(s(s(y'''''''))))), s(s(s(x'''''))), z'', s(s(s(x''''')))) -> F(s(s(s(s(y''''''')))), s(s(s(x'''''))), z'', s(s(s(x'''''))))
F(s(s(s(s(0)))), s(s(x''''''')), z'', s(s(x'''''''))) -> F(s(s(s(0))), s(s(x''''''')), z'', s(s(x''''''')))
F(s(s(s(s(y''''''''')))), s(y''), z'', s(y'')) -> F(s(s(s(y'''''''''))), s(y''), z'', s(y''))
F(s(s(s(s(s(y'''''''))))), s(y''), z'', s(y'')) -> F(s(s(s(s(y''''''')))), s(y''), z'', s(y''))
F(s(s(s(0))), s(s(y''0'''')), z'', s(s(y''0''''))) -> F(s(s(0)), s(s(y''0'''')), z'', s(s(y''0'''')))
F(s(s(s(0))), s(s(y''''''')), z'', s(s(y'''''''))) -> F(s(s(0)), s(s(y''''''')), z'', s(s(y''''''')))
F(s(s(s(0))), s(s(y''0''''')), z'', s(s(y''0'''''))) -> F(s(s(0)), s(s(y''0''''')), z'', s(s(y''0''''')))
F(s(s(s(0))), s(s(y'''''''')), z'', s(s(y''''''''))) -> F(s(s(0)), s(s(y'''''''')), z'', s(s(y'''''''')))
F(s(s(s(s(0)))), s(y''), z'', s(y'')) -> F(s(s(s(0))), s(y''), z'', s(y''))
F(s(s(s(s(s(y''''''))))), s(s(s(x'''''''))), z'', s(s(s(x''''''')))) -> F(s(s(s(s(y'''''')))), s(s(s(x'''''''))), z'', s(s(s(x'''''''))))
F(s(s(s(x''''''))), s(y''), z'', s(y'')) -> F(s(s(x'''''')), s(y''), z'', s(y''))
F(s(s(s(s(0)))), s(s(x'''''''')), z'', s(s(x''''''''))) -> F(s(s(s(0))), s(s(x'''''''')), z'', s(s(x'''''''')))
F(s(s(s(s(y''')))), s(s(s(x'''))), z''', s(s(s(x''')))) -> F(s(s(s(y'''))), s(s(s(x'''))), z''', s(s(s(x'''))))
F(s(s(s(s(y''''''''')))), s(y'), z''', s(y'0''')) -> F(s(s(s(y'''''''''))), s(y'0'''), z''', s(y'0'''))
F(s(s(s(s(s(y'''''''))))), s(y'), z''', s(y''''')) -> F(s(s(s(s(y''''''')))), s(y'''''), z''', s(y'''''))
F(s(s(s(y'''''''))), s(y'0), z''', s(y'0)) -> F(s(s(y''''''')), s(y'0), z''', s(y'0))
F(s(s(s(0))), s(s(x''''')), z''', s(s(x'''''))) -> F(s(s(0)), s(s(x''''')), z''', s(s(x''''')))
F(s(s(s(0))), s(y'), z''', s(s(y''0''''))) -> F(s(s(0)), s(s(y''0'''')), z''', s(s(y''0'''')))
F(s(s(s(0))), s(y'), z''', s(s(y'''''''))) -> F(s(s(0)), s(s(y''''''')), z''', s(s(y''''''')))
F(s(s(s(0))), s(y'), z''', s(s(y''0'''''))) -> F(s(s(0)), s(s(y''0''''')), z''', s(s(y''0''''')))
F(s(s(s(0))), s(y'), z''', s(s(y''''''''))) -> F(s(s(0)), s(s(y'''''''')), z''', s(s(y'''''''')))
F(s(s(s(s(0)))), s(y'), z''', s(y'''''')) -> F(s(s(s(0))), s(y''''''), z''', s(y''''''))
F(s(s(s(s(s(y'''''))))), s(y'), z''', s(s(s(x''''''')))) -> F(s(s(s(s(y''''')))), s(s(s(x'''''''))), z''', s(s(s(x'''''''))))
F(s(s(s(y''''))), s(y'), z''', s(y'0''')) -> F(s(s(y'''')), s(y'0'''), z''', s(y'0'''))
F(s(s(s(s(0)))), s(y'), z''', s(s(x''''''''))) -> F(s(s(s(0))), s(s(x'''''''')), z''', s(s(x'''''''')))
F(s(s(s(y''''))), s(y'), z'''', s(y''0)) -> F(s(s(y'''')), s(y''0), z'''', s(y''0))
F(s(s(s(s(y''''')))), s(y'), z'''', s(y''0)) -> F(s(s(s(y'''''))), s(y''0), z'''', s(y''0))
F(s(s(s(s(y'''')))), s(y'), z''', s(s(s(x''')))) -> F(s(s(s(y''''))), s(s(s(x'''))), z''', s(s(s(x'''))))
F(s(s(s(0))), s(y'), z''', s(s(x'''''))) -> F(s(s(0)), s(s(x''''')), z''', s(s(x''''')))
F(s(s(s(y'''''''))), s(y'0), z'''', s(y'0)) -> F(s(s(y''''''')), s(y'0), z'''', s(y'0))
F(s(s(s(s(y''''')))), s(y'''), z'''', s(y''')) -> F(s(s(s(y'''''))), s(y'''), z'''', s(y'''))
F(s(s(s(0))), s(y'''), z'''', s(y''')) -> F(s(s(0)), s(y'''), z'''', s(y'''))
F(s(s(s(s(y''')))), s(s(s(x''''))), z''', s(s(s(x'''')))) -> F(s(s(s(y'''))), s(s(s(x''''))), z''', s(s(s(x''''))))
F(s(s(0)), s(s(y''0'')), z''', s(s(y''0''))) -> F(s(0), s(s(y''0'')), z''', s(s(y''0'')))
F(s(s(0)), s(s(y'''''')), z'', s(s(y''''''))) -> F(s(0), s(s(y'''''')), z'', s(s(y'''''')))
F(s(s(0)), s(y'), z'''', s(s(y''0''))) -> F(s(0), s(s(y''0'')), z'''', s(s(y''0'')))
F(s(s(0)), s(y'), z'''', s(s(y'''''))) -> F(s(0), s(s(y''''')), z'''', s(s(y''''')))
F(s(s(0)), s(s(y''0'')), z'''', s(s(y''0''))) -> F(s(0), s(s(y''0'')), z'''', s(s(y''0'')))
F(s(s(0)), s(s(y''''')), z'''', s(s(y'''''))) -> F(s(0), s(s(y''''')), z'''', s(s(y''''')))
F(s(s(x'''')), s(y'0), z'''', s(y'0)) -> F(s(x''''), s(y'0), z'''', s(y'0))
F(s(s(s(y'''))), 0, z'', u'') -> F(s(s(y''')), u'', -(z'', s(s(s(y''')))), u'')
F(s(s(0)), 0, z'', u'') -> F(s(0), u'', -(z'', s(s(0))), u'')
F(s(x''), 0, z'', 0) -> F(x'', 0, -(z'', s(x'')), 0)
F(s(x'), 0, z', 0) -> F(x', 0, -(z', s(x')), 0)
F(s(s(s(s(y''''')))), s(y'), z'''', 0) -> F(s(s(s(y'''''))), 0, z'''', 0)
F(x1, x2, x3, x4) -> x1
s(x1) -> s(x1)
R
↳DPs
→DP Problem 1
↳FwdInst
→DP Problem 2
↳FwdInst
→DP Problem 3
↳Nar
→DP Problem 10
↳Nar
...
→DP Problem 19
↳Dependency Graph
F(s(s(s(y'))), s(s(s(x'))), z, u) -> F(s(s(s(y'))), -(x', y'), z, u)
F(s(s(0)), s(s(x''')), z, u) -> F(s(s(0)), x''', z, u)
F(s(0), s(s(y''0)), z', s(y'''')) -> F(s(0), s(y''0), z', s(y''''))
F(s(0), s(0), z', 0) -> F(s(0), 0, z', 0)
F(s(0), s(s(y''')), z'', u'') -> F(s(0), s(y'''), z'', u'')
-(x, 0) -> x
-(s(x), s(y)) -> -(x, y)
<=(0, y) -> true
<=(s(x), 0) -> false
<=(s(x), s(y)) -> <=(x, y)
if(true, x, y) -> x
if(false, x, y) -> y
perfectp(0) -> false
perfectp(s(x)) -> f(x, s(0), s(x), s(x))
f(0, y, 0, u) -> true
f(0, y, s(z), u) -> false
f(s(x), 0, z, u) -> f(x, u, -(z, s(x)), u)
f(s(x), s(y), z, u) -> if(<=(x, y), f(s(x), -(y, x), z, u), f(x, u, z, u))
innermost
R
↳DPs
→DP Problem 1
↳FwdInst
→DP Problem 2
↳FwdInst
→DP Problem 3
↳Nar
→DP Problem 10
↳Nar
...
→DP Problem 20
↳Argument Filtering and Ordering
F(s(s(s(y'))), s(s(s(x'))), z, u) -> F(s(s(s(y'))), -(x', y'), z, u)
-(x, 0) -> x
-(s(x), s(y)) -> -(x, y)
<=(0, y) -> true
<=(s(x), 0) -> false
<=(s(x), s(y)) -> <=(x, y)
if(true, x, y) -> x
if(false, x, y) -> y
perfectp(0) -> false
perfectp(s(x)) -> f(x, s(0), s(x), s(x))
f(0, y, 0, u) -> true
f(0, y, s(z), u) -> false
f(s(x), 0, z, u) -> f(x, u, -(z, s(x)), u)
f(s(x), s(y), z, u) -> if(<=(x, y), f(s(x), -(y, x), z, u), f(x, u, z, u))
innermost
F(s(s(s(y'))), s(s(s(x'))), z, u) -> F(s(s(s(y'))), -(x', y'), z, u)
-(x, 0) -> x
-(s(x), s(y)) -> -(x, y)
F(x1, x2, x3, x4) -> F(x1, x2, x3, x4)
s(x1) -> s(x1)
-(x1, x2) -> x1
R
↳DPs
→DP Problem 1
↳FwdInst
→DP Problem 2
↳FwdInst
→DP Problem 3
↳Nar
→DP Problem 10
↳Nar
...
→DP Problem 23
↳Dependency Graph
-(x, 0) -> x
-(s(x), s(y)) -> -(x, y)
<=(0, y) -> true
<=(s(x), 0) -> false
<=(s(x), s(y)) -> <=(x, y)
if(true, x, y) -> x
if(false, x, y) -> y
perfectp(0) -> false
perfectp(s(x)) -> f(x, s(0), s(x), s(x))
f(0, y, 0, u) -> true
f(0, y, s(z), u) -> false
f(s(x), 0, z, u) -> f(x, u, -(z, s(x)), u)
f(s(x), s(y), z, u) -> if(<=(x, y), f(s(x), -(y, x), z, u), f(x, u, z, u))
innermost
R
↳DPs
→DP Problem 1
↳FwdInst
→DP Problem 2
↳FwdInst
→DP Problem 3
↳Nar
→DP Problem 10
↳Nar
...
→DP Problem 21
↳Argument Filtering and Ordering
F(s(s(0)), s(s(x''')), z, u) -> F(s(s(0)), x''', z, u)
-(x, 0) -> x
-(s(x), s(y)) -> -(x, y)
<=(0, y) -> true
<=(s(x), 0) -> false
<=(s(x), s(y)) -> <=(x, y)
if(true, x, y) -> x
if(false, x, y) -> y
perfectp(0) -> false
perfectp(s(x)) -> f(x, s(0), s(x), s(x))
f(0, y, 0, u) -> true
f(0, y, s(z), u) -> false
f(s(x), 0, z, u) -> f(x, u, -(z, s(x)), u)
f(s(x), s(y), z, u) -> if(<=(x, y), f(s(x), -(y, x), z, u), f(x, u, z, u))
innermost
F(s(s(0)), s(s(x''')), z, u) -> F(s(s(0)), x''', z, u)
F(x1, x2, x3, x4) -> F(x1, x2, x3, x4)
s(x1) -> s(x1)
R
↳DPs
→DP Problem 1
↳FwdInst
→DP Problem 2
↳FwdInst
→DP Problem 3
↳Nar
→DP Problem 10
↳Nar
...
→DP Problem 22
↳Argument Filtering and Ordering
F(s(0), s(s(y''')), z'', u'') -> F(s(0), s(y'''), z'', u'')
F(s(0), s(s(y''0)), z', s(y'''')) -> F(s(0), s(y''0), z', s(y''''))
-(x, 0) -> x
-(s(x), s(y)) -> -(x, y)
<=(0, y) -> true
<=(s(x), 0) -> false
<=(s(x), s(y)) -> <=(x, y)
if(true, x, y) -> x
if(false, x, y) -> y
perfectp(0) -> false
perfectp(s(x)) -> f(x, s(0), s(x), s(x))
f(0, y, 0, u) -> true
f(0, y, s(z), u) -> false
f(s(x), 0, z, u) -> f(x, u, -(z, s(x)), u)
f(s(x), s(y), z, u) -> if(<=(x, y), f(s(x), -(y, x), z, u), f(x, u, z, u))
innermost
F(s(0), s(s(y''')), z'', u'') -> F(s(0), s(y'''), z'', u'')
F(s(0), s(s(y''0)), z', s(y'''')) -> F(s(0), s(y''0), z', s(y''''))
F(x1, x2, x3, x4) -> F(x1, x2, x3, x4)
s(x1) -> s(x1)