R
↳Dependency Pair Analysis
APP(app(ack, 0), y) -> APP(succ, y)
APP(app(ack, app(succ, x)), y) -> APP(app(ack, x), app(succ, 0))
APP(app(ack, app(succ, x)), y) -> APP(ack, x)
APP(app(ack, app(succ, x)), y) -> APP(succ, 0)
APP(app(ack, app(succ, x)), app(succ, y)) -> APP(app(ack, x), app(app(ack, app(succ, x)), y))
APP(app(ack, app(succ, x)), app(succ, y)) -> APP(ack, x)
APP(app(ack, app(succ, x)), app(succ, y)) -> APP(app(ack, app(succ, x)), y)
R
↳DPs
→DP Problem 1
↳Narrowing Transformation
APP(app(ack, app(succ, x)), app(succ, y)) -> APP(app(ack, app(succ, x)), y)
APP(app(ack, app(succ, x)), app(succ, y)) -> APP(app(ack, x), app(app(ack, app(succ, x)), y))
APP(app(ack, app(succ, x)), y) -> APP(app(ack, x), app(succ, 0))
app(app(ack, 0), y) -> app(succ, y)
app(app(ack, app(succ, x)), y) -> app(app(ack, x), app(succ, 0))
app(app(ack, app(succ, x)), app(succ, y)) -> app(app(ack, x), app(app(ack, app(succ, x)), y))
innermost
two new Dependency Pairs are created:
APP(app(ack, app(succ, x)), app(succ, y)) -> APP(app(ack, x), app(app(ack, app(succ, x)), y))
APP(app(ack, app(succ, x'')), app(succ, y'')) -> APP(app(ack, x''), app(app(ack, x''), app(succ, 0)))
APP(app(ack, app(succ, x'')), app(succ, app(succ, y''))) -> APP(app(ack, x''), app(app(ack, x''), app(app(ack, app(succ, x'')), y'')))
R
↳DPs
→DP Problem 1
↳Nar
→DP Problem 2
↳Narrowing Transformation
APP(app(ack, app(succ, x'')), app(succ, app(succ, y''))) -> APP(app(ack, x''), app(app(ack, x''), app(app(ack, app(succ, x'')), y'')))
APP(app(ack, app(succ, x'')), app(succ, y'')) -> APP(app(ack, x''), app(app(ack, x''), app(succ, 0)))
APP(app(ack, app(succ, x)), y) -> APP(app(ack, x), app(succ, 0))
APP(app(ack, app(succ, x)), app(succ, y)) -> APP(app(ack, app(succ, x)), y)
app(app(ack, 0), y) -> app(succ, y)
app(app(ack, app(succ, x)), y) -> app(app(ack, x), app(succ, 0))
app(app(ack, app(succ, x)), app(succ, y)) -> app(app(ack, x), app(app(ack, app(succ, x)), y))
innermost
three new Dependency Pairs are created:
APP(app(ack, app(succ, x'')), app(succ, y'')) -> APP(app(ack, x''), app(app(ack, x''), app(succ, 0)))
APP(app(ack, app(succ, 0)), app(succ, y'')) -> APP(app(ack, 0), app(succ, app(succ, 0)))
APP(app(ack, app(succ, app(succ, x'))), app(succ, y'')) -> APP(app(ack, app(succ, x')), app(app(ack, x'), app(succ, 0)))
APP(app(ack, app(succ, app(succ, x'))), app(succ, y'')) -> APP(app(ack, app(succ, x')), app(app(ack, x'), app(app(ack, app(succ, x')), 0)))
R
↳DPs
→DP Problem 1
↳Nar
→DP Problem 2
↳Nar
...
→DP Problem 3
↳Narrowing Transformation
APP(app(ack, app(succ, app(succ, x'))), app(succ, y'')) -> APP(app(ack, app(succ, x')), app(app(ack, x'), app(app(ack, app(succ, x')), 0)))
APP(app(ack, app(succ, app(succ, x'))), app(succ, y'')) -> APP(app(ack, app(succ, x')), app(app(ack, x'), app(succ, 0)))
APP(app(ack, app(succ, 0)), app(succ, y'')) -> APP(app(ack, 0), app(succ, app(succ, 0)))
APP(app(ack, app(succ, x)), app(succ, y)) -> APP(app(ack, app(succ, x)), y)
APP(app(ack, app(succ, x)), y) -> APP(app(ack, x), app(succ, 0))
APP(app(ack, app(succ, x'')), app(succ, app(succ, y''))) -> APP(app(ack, x''), app(app(ack, x''), app(app(ack, app(succ, x'')), y'')))
app(app(ack, 0), y) -> app(succ, y)
app(app(ack, app(succ, x)), y) -> app(app(ack, x), app(succ, 0))
app(app(ack, app(succ, x)), app(succ, y)) -> app(app(ack, x), app(app(ack, app(succ, x)), y))
innermost
four new Dependency Pairs are created:
APP(app(ack, app(succ, x'')), app(succ, app(succ, y''))) -> APP(app(ack, x''), app(app(ack, x''), app(app(ack, app(succ, x'')), y'')))
APP(app(ack, app(succ, 0)), app(succ, app(succ, y'''))) -> APP(app(ack, 0), app(succ, app(app(ack, app(succ, 0)), y''')))
APP(app(ack, app(succ, app(succ, x'))), app(succ, app(succ, y'''))) -> APP(app(ack, app(succ, x')), app(app(ack, x'), app(succ, 0)))
APP(app(ack, app(succ, x''')), app(succ, app(succ, y'''))) -> APP(app(ack, x'''), app(app(ack, x'''), app(app(ack, x'''), app(succ, 0))))
APP(app(ack, app(succ, x''')), app(succ, app(succ, app(succ, y')))) -> APP(app(ack, x'''), app(app(ack, x'''), app(app(ack, x'''), app(app(ack, app(succ, x''')), y'))))
R
↳DPs
→DP Problem 1
↳Nar
→DP Problem 2
↳Nar
...
→DP Problem 4
↳Narrowing Transformation
APP(app(ack, app(succ, x''')), app(succ, app(succ, app(succ, y')))) -> APP(app(ack, x'''), app(app(ack, x'''), app(app(ack, x'''), app(app(ack, app(succ, x''')), y'))))
APP(app(ack, app(succ, x''')), app(succ, app(succ, y'''))) -> APP(app(ack, x'''), app(app(ack, x'''), app(app(ack, x'''), app(succ, 0))))
APP(app(ack, app(succ, app(succ, x'))), app(succ, app(succ, y'''))) -> APP(app(ack, app(succ, x')), app(app(ack, x'), app(succ, 0)))
APP(app(ack, app(succ, 0)), app(succ, app(succ, y'''))) -> APP(app(ack, 0), app(succ, app(app(ack, app(succ, 0)), y''')))
APP(app(ack, app(succ, app(succ, x'))), app(succ, y'')) -> APP(app(ack, app(succ, x')), app(app(ack, x'), app(succ, 0)))
APP(app(ack, app(succ, 0)), app(succ, y'')) -> APP(app(ack, 0), app(succ, app(succ, 0)))
APP(app(ack, app(succ, x)), app(succ, y)) -> APP(app(ack, app(succ, x)), y)
APP(app(ack, app(succ, x)), y) -> APP(app(ack, x), app(succ, 0))
APP(app(ack, app(succ, app(succ, x'))), app(succ, y'')) -> APP(app(ack, app(succ, x')), app(app(ack, x'), app(app(ack, app(succ, x')), 0)))
app(app(ack, 0), y) -> app(succ, y)
app(app(ack, app(succ, x)), y) -> app(app(ack, x), app(succ, 0))
app(app(ack, app(succ, x)), app(succ, y)) -> app(app(ack, x), app(app(ack, app(succ, x)), y))
innermost
no new Dependency Pairs are created.
APP(app(ack, app(succ, 0)), app(succ, y'')) -> APP(app(ack, 0), app(succ, app(succ, 0)))
R
↳DPs
→DP Problem 1
↳Nar
→DP Problem 2
↳Nar
...
→DP Problem 5
↳Argument Filtering and Ordering
APP(app(ack, app(succ, x''')), app(succ, app(succ, y'''))) -> APP(app(ack, x'''), app(app(ack, x'''), app(app(ack, x'''), app(succ, 0))))
APP(app(ack, app(succ, app(succ, x'))), app(succ, app(succ, y'''))) -> APP(app(ack, app(succ, x')), app(app(ack, x'), app(succ, 0)))
APP(app(ack, app(succ, 0)), app(succ, app(succ, y'''))) -> APP(app(ack, 0), app(succ, app(app(ack, app(succ, 0)), y''')))
APP(app(ack, app(succ, app(succ, x'))), app(succ, y'')) -> APP(app(ack, app(succ, x')), app(app(ack, x'), app(app(ack, app(succ, x')), 0)))
APP(app(ack, app(succ, app(succ, x'))), app(succ, y'')) -> APP(app(ack, app(succ, x')), app(app(ack, x'), app(succ, 0)))
APP(app(ack, app(succ, x)), app(succ, y)) -> APP(app(ack, app(succ, x)), y)
APP(app(ack, app(succ, x)), y) -> APP(app(ack, x), app(succ, 0))
APP(app(ack, app(succ, x''')), app(succ, app(succ, app(succ, y')))) -> APP(app(ack, x'''), app(app(ack, x'''), app(app(ack, x'''), app(app(ack, app(succ, x''')), y'))))
app(app(ack, 0), y) -> app(succ, y)
app(app(ack, app(succ, x)), y) -> app(app(ack, x), app(succ, 0))
app(app(ack, app(succ, x)), app(succ, y)) -> app(app(ack, x), app(app(ack, app(succ, x)), y))
innermost
APP(app(ack, app(succ, x''')), app(succ, app(succ, y'''))) -> APP(app(ack, x'''), app(app(ack, x'''), app(app(ack, x'''), app(succ, 0))))
APP(app(ack, app(succ, app(succ, x'))), app(succ, app(succ, y'''))) -> APP(app(ack, app(succ, x')), app(app(ack, x'), app(succ, 0)))
APP(app(ack, app(succ, 0)), app(succ, app(succ, y'''))) -> APP(app(ack, 0), app(succ, app(app(ack, app(succ, 0)), y''')))
APP(app(ack, app(succ, app(succ, x'))), app(succ, y'')) -> APP(app(ack, app(succ, x')), app(app(ack, x'), app(app(ack, app(succ, x')), 0)))
APP(app(ack, app(succ, app(succ, x'))), app(succ, y'')) -> APP(app(ack, app(succ, x')), app(app(ack, x'), app(succ, 0)))
APP(app(ack, app(succ, x)), app(succ, y)) -> APP(app(ack, app(succ, x)), y)
APP(app(ack, app(succ, x)), y) -> APP(app(ack, x), app(succ, 0))
APP(app(ack, app(succ, x''')), app(succ, app(succ, app(succ, y')))) -> APP(app(ack, x'''), app(app(ack, x'''), app(app(ack, x'''), app(app(ack, app(succ, x''')), y'))))
app(app(ack, 0), y) -> app(succ, y)
app(app(ack, app(succ, x)), y) -> app(app(ack, x), app(succ, 0))
app(app(ack, app(succ, x)), app(succ, y)) -> app(app(ack, x), app(app(ack, app(succ, x)), y))
{app, 0, APP} > succ
APP(x1, x2) -> APP(x1, x2)
app(x1, x2) -> app(x1, x2)
R
↳DPs
→DP Problem 1
↳Nar
→DP Problem 2
↳Nar
...
→DP Problem 6
↳Dependency Graph
app(app(ack, 0), y) -> app(succ, y)
app(app(ack, app(succ, x)), y) -> app(app(ack, x), app(succ, 0))
app(app(ack, app(succ, x)), app(succ, y)) -> app(app(ack, x), app(app(ack, app(succ, x)), y))
innermost