Term Rewriting System R:
[x, y]
active(f(x)) -> mark(x)
active(f(x)) -> f(active(x))
top(active(c)) -> top(mark(c))
top(mark(x)) -> top(check(x))
top(found(x)) -> top(active(x))
check(f(x)) -> f(check(x))
check(x) -> start(match(f(X), x))
match(f(x), f(y)) -> f(match(x, y))
match(X, x) -> proper(x)
proper(c) -> ok(c)
proper(f(x)) -> f(proper(x))
f(ok(x)) -> ok(f(x))
f(found(x)) -> found(f(x))
f(mark(x)) -> mark(f(x))
start(ok(x)) -> found(x)

Termination of R to be shown.



   R
Dependency Pair Analysis



R contains the following Dependency Pairs:

ACTIVE(f(x)) -> F(active(x))
ACTIVE(f(x)) -> ACTIVE(x)
TOP(active(c)) -> TOP(mark(c))
TOP(mark(x)) -> TOP(check(x))
TOP(mark(x)) -> CHECK(x)
TOP(found(x)) -> TOP(active(x))
TOP(found(x)) -> ACTIVE(x)
CHECK(f(x)) -> F(check(x))
CHECK(f(x)) -> CHECK(x)
CHECK(x) -> START(match(f(X), x))
CHECK(x) -> MATCH(f(X), x)
CHECK(x) -> F(X)
MATCH(f(x), f(y)) -> F(match(x, y))
MATCH(f(x), f(y)) -> MATCH(x, y)
MATCH(X, x) -> PROPER(x)
PROPER(f(x)) -> F(proper(x))
PROPER(f(x)) -> PROPER(x)
F(ok(x)) -> F(x)
F(found(x)) -> F(x)
F(mark(x)) -> F(x)

Furthermore, R contains six SCCs.


   R
DPs
       →DP Problem 1
Argument Filtering and Ordering
       →DP Problem 2
AFS
       →DP Problem 3
AFS
       →DP Problem 4
AFS
       →DP Problem 5
AFS
       →DP Problem 6
Nar


Dependency Pairs:

F(mark(x)) -> F(x)
F(found(x)) -> F(x)
F(ok(x)) -> F(x)


Rules:


active(f(x)) -> mark(x)
active(f(x)) -> f(active(x))
top(active(c)) -> top(mark(c))
top(mark(x)) -> top(check(x))
top(found(x)) -> top(active(x))
check(f(x)) -> f(check(x))
check(x) -> start(match(f(X), x))
match(f(x), f(y)) -> f(match(x, y))
match(X, x) -> proper(x)
proper(c) -> ok(c)
proper(f(x)) -> f(proper(x))
f(ok(x)) -> ok(f(x))
f(found(x)) -> found(f(x))
f(mark(x)) -> mark(f(x))
start(ok(x)) -> found(x)





The following dependency pairs can be strictly oriented:

F(mark(x)) -> F(x)
F(found(x)) -> F(x)
F(ok(x)) -> F(x)


The following rules can be oriented:

active(f(x)) -> mark(x)
active(f(x)) -> f(active(x))
top(active(c)) -> top(mark(c))
top(mark(x)) -> top(check(x))
top(found(x)) -> top(active(x))
check(f(x)) -> f(check(x))
check(x) -> start(match(f(X), x))
match(f(x), f(y)) -> f(match(x, y))
match(X, x) -> proper(x)
proper(c) -> ok(c)
proper(f(x)) -> f(proper(x))
f(ok(x)) -> ok(f(x))
f(found(x)) -> found(f(x))
f(mark(x)) -> mark(f(x))
start(ok(x)) -> found(x)


Used ordering: Lexicographic Path Order with Non-Strict Precedence with Quasi Precedence:
{active, mark, ok, check, found, match, f, proper}

resulting in one new DP problem.
Used Argument Filtering System:
F(x1) -> F(x1)
ok(x1) -> ok(x1)
mark(x1) -> mark(x1)
found(x1) -> found(x1)
active(x1) -> active(x1)
f(x1) -> f(x1)
top(x1) -> top(x1)
check(x1) -> check(x1)
start(x1) -> x1
match(x1, x2) -> match(x2)
proper(x1) -> proper(x1)


   R
DPs
       →DP Problem 1
AFS
           →DP Problem 7
Dependency Graph
       →DP Problem 2
AFS
       →DP Problem 3
AFS
       →DP Problem 4
AFS
       →DP Problem 5
AFS
       →DP Problem 6
Nar


Dependency Pair:


Rules:


active(f(x)) -> mark(x)
active(f(x)) -> f(active(x))
top(active(c)) -> top(mark(c))
top(mark(x)) -> top(check(x))
top(found(x)) -> top(active(x))
check(f(x)) -> f(check(x))
check(x) -> start(match(f(X), x))
match(f(x), f(y)) -> f(match(x, y))
match(X, x) -> proper(x)
proper(c) -> ok(c)
proper(f(x)) -> f(proper(x))
f(ok(x)) -> ok(f(x))
f(found(x)) -> found(f(x))
f(mark(x)) -> mark(f(x))
start(ok(x)) -> found(x)





Using the Dependency Graph resulted in no new DP problems.


   R
DPs
       →DP Problem 1
AFS
       →DP Problem 2
Argument Filtering and Ordering
       →DP Problem 3
AFS
       →DP Problem 4
AFS
       →DP Problem 5
AFS
       →DP Problem 6
Nar


Dependency Pair:

ACTIVE(f(x)) -> ACTIVE(x)


Rules:


active(f(x)) -> mark(x)
active(f(x)) -> f(active(x))
top(active(c)) -> top(mark(c))
top(mark(x)) -> top(check(x))
top(found(x)) -> top(active(x))
check(f(x)) -> f(check(x))
check(x) -> start(match(f(X), x))
match(f(x), f(y)) -> f(match(x, y))
match(X, x) -> proper(x)
proper(c) -> ok(c)
proper(f(x)) -> f(proper(x))
f(ok(x)) -> ok(f(x))
f(found(x)) -> found(f(x))
f(mark(x)) -> mark(f(x))
start(ok(x)) -> found(x)





The following dependency pair can be strictly oriented:

ACTIVE(f(x)) -> ACTIVE(x)


The following rules can be oriented:

active(f(x)) -> mark(x)
active(f(x)) -> f(active(x))
top(active(c)) -> top(mark(c))
top(mark(x)) -> top(check(x))
top(found(x)) -> top(active(x))
check(f(x)) -> f(check(x))
check(x) -> start(match(f(X), x))
match(f(x), f(y)) -> f(match(x, y))
match(X, x) -> proper(x)
proper(c) -> ok(c)
proper(f(x)) -> f(proper(x))
f(ok(x)) -> ok(f(x))
f(found(x)) -> found(f(x))
f(mark(x)) -> mark(f(x))
start(ok(x)) -> found(x)


Used ordering: Lexicographic Path Order with Non-Strict Precedence with Quasi Precedence:
{active, start, mark, check, found, f}

resulting in one new DP problem.
Used Argument Filtering System:
ACTIVE(x1) -> ACTIVE(x1)
f(x1) -> f(x1)
active(x1) -> active(x1)
mark(x1) -> mark(x1)
top(x1) -> top(x1)
check(x1) -> check(x1)
found(x1) -> found(x1)
start(x1) -> start(x1)
match(x1, x2) -> x2
proper(x1) -> x1
ok(x1) -> x1


   R
DPs
       →DP Problem 1
AFS
       →DP Problem 2
AFS
           →DP Problem 8
Dependency Graph
       →DP Problem 3
AFS
       →DP Problem 4
AFS
       →DP Problem 5
AFS
       →DP Problem 6
Nar


Dependency Pair:


Rules:


active(f(x)) -> mark(x)
active(f(x)) -> f(active(x))
top(active(c)) -> top(mark(c))
top(mark(x)) -> top(check(x))
top(found(x)) -> top(active(x))
check(f(x)) -> f(check(x))
check(x) -> start(match(f(X), x))
match(f(x), f(y)) -> f(match(x, y))
match(X, x) -> proper(x)
proper(c) -> ok(c)
proper(f(x)) -> f(proper(x))
f(ok(x)) -> ok(f(x))
f(found(x)) -> found(f(x))
f(mark(x)) -> mark(f(x))
start(ok(x)) -> found(x)





Using the Dependency Graph resulted in no new DP problems.


   R
DPs
       →DP Problem 1
AFS
       →DP Problem 2
AFS
       →DP Problem 3
Argument Filtering and Ordering
       →DP Problem 4
AFS
       →DP Problem 5
AFS
       →DP Problem 6
Nar


Dependency Pair:

PROPER(f(x)) -> PROPER(x)


Rules:


active(f(x)) -> mark(x)
active(f(x)) -> f(active(x))
top(active(c)) -> top(mark(c))
top(mark(x)) -> top(check(x))
top(found(x)) -> top(active(x))
check(f(x)) -> f(check(x))
check(x) -> start(match(f(X), x))
match(f(x), f(y)) -> f(match(x, y))
match(X, x) -> proper(x)
proper(c) -> ok(c)
proper(f(x)) -> f(proper(x))
f(ok(x)) -> ok(f(x))
f(found(x)) -> found(f(x))
f(mark(x)) -> mark(f(x))
start(ok(x)) -> found(x)





The following dependency pair can be strictly oriented:

PROPER(f(x)) -> PROPER(x)


The following rules can be oriented:

active(f(x)) -> mark(x)
active(f(x)) -> f(active(x))
top(active(c)) -> top(mark(c))
top(mark(x)) -> top(check(x))
top(found(x)) -> top(active(x))
check(f(x)) -> f(check(x))
check(x) -> start(match(f(X), x))
match(f(x), f(y)) -> f(match(x, y))
match(X, x) -> proper(x)
proper(c) -> ok(c)
proper(f(x)) -> f(proper(x))
f(ok(x)) -> ok(f(x))
f(found(x)) -> found(f(x))
f(mark(x)) -> mark(f(x))
start(ok(x)) -> found(x)


Used ordering: Lexicographic Path Order with Non-Strict Precedence with Quasi Precedence:
{active, start, mark, check, found, f}

resulting in one new DP problem.
Used Argument Filtering System:
PROPER(x1) -> PROPER(x1)
f(x1) -> f(x1)
active(x1) -> active(x1)
mark(x1) -> mark(x1)
top(x1) -> top(x1)
check(x1) -> check(x1)
found(x1) -> found(x1)
start(x1) -> start(x1)
match(x1, x2) -> x2
proper(x1) -> x1
ok(x1) -> x1


   R
DPs
       →DP Problem 1
AFS
       →DP Problem 2
AFS
       →DP Problem 3
AFS
           →DP Problem 9
Dependency Graph
       →DP Problem 4
AFS
       →DP Problem 5
AFS
       →DP Problem 6
Nar


Dependency Pair:


Rules:


active(f(x)) -> mark(x)
active(f(x)) -> f(active(x))
top(active(c)) -> top(mark(c))
top(mark(x)) -> top(check(x))
top(found(x)) -> top(active(x))
check(f(x)) -> f(check(x))
check(x) -> start(match(f(X), x))
match(f(x), f(y)) -> f(match(x, y))
match(X, x) -> proper(x)
proper(c) -> ok(c)
proper(f(x)) -> f(proper(x))
f(ok(x)) -> ok(f(x))
f(found(x)) -> found(f(x))
f(mark(x)) -> mark(f(x))
start(ok(x)) -> found(x)





Using the Dependency Graph resulted in no new DP problems.


   R
DPs
       →DP Problem 1
AFS
       →DP Problem 2
AFS
       →DP Problem 3
AFS
       →DP Problem 4
Argument Filtering and Ordering
       →DP Problem 5
AFS
       →DP Problem 6
Nar


Dependency Pair:

MATCH(f(x), f(y)) -> MATCH(x, y)


Rules:


active(f(x)) -> mark(x)
active(f(x)) -> f(active(x))
top(active(c)) -> top(mark(c))
top(mark(x)) -> top(check(x))
top(found(x)) -> top(active(x))
check(f(x)) -> f(check(x))
check(x) -> start(match(f(X), x))
match(f(x), f(y)) -> f(match(x, y))
match(X, x) -> proper(x)
proper(c) -> ok(c)
proper(f(x)) -> f(proper(x))
f(ok(x)) -> ok(f(x))
f(found(x)) -> found(f(x))
f(mark(x)) -> mark(f(x))
start(ok(x)) -> found(x)





The following dependency pair can be strictly oriented:

MATCH(f(x), f(y)) -> MATCH(x, y)


The following rules can be oriented:

active(f(x)) -> mark(x)
active(f(x)) -> f(active(x))
top(active(c)) -> top(mark(c))
top(mark(x)) -> top(check(x))
top(found(x)) -> top(active(x))
check(f(x)) -> f(check(x))
check(x) -> start(match(f(X), x))
match(f(x), f(y)) -> f(match(x, y))
match(X, x) -> proper(x)
proper(c) -> ok(c)
proper(f(x)) -> f(proper(x))
f(ok(x)) -> ok(f(x))
f(found(x)) -> found(f(x))
f(mark(x)) -> mark(f(x))
start(ok(x)) -> found(x)


Used ordering: Lexicographic Path Order with Non-Strict Precedence with Quasi Precedence:
{active, start, mark, check, found, f}

resulting in one new DP problem.
Used Argument Filtering System:
MATCH(x1, x2) -> MATCH(x1, x2)
f(x1) -> f(x1)
active(x1) -> active(x1)
mark(x1) -> mark(x1)
top(x1) -> top(x1)
check(x1) -> check(x1)
found(x1) -> found(x1)
start(x1) -> start(x1)
match(x1, x2) -> x2
proper(x1) -> x1
ok(x1) -> x1


   R
DPs
       →DP Problem 1
AFS
       →DP Problem 2
AFS
       →DP Problem 3
AFS
       →DP Problem 4
AFS
           →DP Problem 10
Dependency Graph
       →DP Problem 5
AFS
       →DP Problem 6
Nar


Dependency Pair:


Rules:


active(f(x)) -> mark(x)
active(f(x)) -> f(active(x))
top(active(c)) -> top(mark(c))
top(mark(x)) -> top(check(x))
top(found(x)) -> top(active(x))
check(f(x)) -> f(check(x))
check(x) -> start(match(f(X), x))
match(f(x), f(y)) -> f(match(x, y))
match(X, x) -> proper(x)
proper(c) -> ok(c)
proper(f(x)) -> f(proper(x))
f(ok(x)) -> ok(f(x))
f(found(x)) -> found(f(x))
f(mark(x)) -> mark(f(x))
start(ok(x)) -> found(x)





Using the Dependency Graph resulted in no new DP problems.


   R
DPs
       →DP Problem 1
AFS
       →DP Problem 2
AFS
       →DP Problem 3
AFS
       →DP Problem 4
AFS
       →DP Problem 5
Argument Filtering and Ordering
       →DP Problem 6
Nar


Dependency Pair:

CHECK(f(x)) -> CHECK(x)


Rules:


active(f(x)) -> mark(x)
active(f(x)) -> f(active(x))
top(active(c)) -> top(mark(c))
top(mark(x)) -> top(check(x))
top(found(x)) -> top(active(x))
check(f(x)) -> f(check(x))
check(x) -> start(match(f(X), x))
match(f(x), f(y)) -> f(match(x, y))
match(X, x) -> proper(x)
proper(c) -> ok(c)
proper(f(x)) -> f(proper(x))
f(ok(x)) -> ok(f(x))
f(found(x)) -> found(f(x))
f(mark(x)) -> mark(f(x))
start(ok(x)) -> found(x)





The following dependency pair can be strictly oriented:

CHECK(f(x)) -> CHECK(x)


The following rules can be oriented:

active(f(x)) -> mark(x)
active(f(x)) -> f(active(x))
top(active(c)) -> top(mark(c))
top(mark(x)) -> top(check(x))
top(found(x)) -> top(active(x))
check(f(x)) -> f(check(x))
check(x) -> start(match(f(X), x))
match(f(x), f(y)) -> f(match(x, y))
match(X, x) -> proper(x)
proper(c) -> ok(c)
proper(f(x)) -> f(proper(x))
f(ok(x)) -> ok(f(x))
f(found(x)) -> found(f(x))
f(mark(x)) -> mark(f(x))
start(ok(x)) -> found(x)


Used ordering: Lexicographic Path Order with Non-Strict Precedence with Quasi Precedence:
{active, start, mark, check, found, f}

resulting in one new DP problem.
Used Argument Filtering System:
CHECK(x1) -> CHECK(x1)
f(x1) -> f(x1)
active(x1) -> active(x1)
mark(x1) -> mark(x1)
top(x1) -> top(x1)
check(x1) -> check(x1)
found(x1) -> found(x1)
start(x1) -> start(x1)
match(x1, x2) -> x2
proper(x1) -> x1
ok(x1) -> x1


   R
DPs
       →DP Problem 1
AFS
       →DP Problem 2
AFS
       →DP Problem 3
AFS
       →DP Problem 4
AFS
       →DP Problem 5
AFS
           →DP Problem 11
Dependency Graph
       →DP Problem 6
Nar


Dependency Pair:


Rules:


active(f(x)) -> mark(x)
active(f(x)) -> f(active(x))
top(active(c)) -> top(mark(c))
top(mark(x)) -> top(check(x))
top(found(x)) -> top(active(x))
check(f(x)) -> f(check(x))
check(x) -> start(match(f(X), x))
match(f(x), f(y)) -> f(match(x, y))
match(X, x) -> proper(x)
proper(c) -> ok(c)
proper(f(x)) -> f(proper(x))
f(ok(x)) -> ok(f(x))
f(found(x)) -> found(f(x))
f(mark(x)) -> mark(f(x))
start(ok(x)) -> found(x)





Using the Dependency Graph resulted in no new DP problems.


   R
DPs
       →DP Problem 1
AFS
       →DP Problem 2
AFS
       →DP Problem 3
AFS
       →DP Problem 4
AFS
       →DP Problem 5
AFS
       →DP Problem 6
Narrowing Transformation


Dependency Pairs:

TOP(found(x)) -> TOP(active(x))
TOP(mark(x)) -> TOP(check(x))
TOP(active(c)) -> TOP(mark(c))


Rules:


active(f(x)) -> mark(x)
active(f(x)) -> f(active(x))
top(active(c)) -> top(mark(c))
top(mark(x)) -> top(check(x))
top(found(x)) -> top(active(x))
check(f(x)) -> f(check(x))
check(x) -> start(match(f(X), x))
match(f(x), f(y)) -> f(match(x, y))
match(X, x) -> proper(x)
proper(c) -> ok(c)
proper(f(x)) -> f(proper(x))
f(ok(x)) -> ok(f(x))
f(found(x)) -> found(f(x))
f(mark(x)) -> mark(f(x))
start(ok(x)) -> found(x)





On this DP problem, a Narrowing SCC transformation can be performed.
As a result of transforming the rule

TOP(mark(x)) -> TOP(check(x))
two new Dependency Pairs are created:

TOP(mark(f(x''))) -> TOP(f(check(x'')))
TOP(mark(x'')) -> TOP(start(match(f(X), x'')))

The transformation is resulting in one new DP problem:



   R
DPs
       →DP Problem 1
AFS
       →DP Problem 2
AFS
       →DP Problem 3
AFS
       →DP Problem 4
AFS
       →DP Problem 5
AFS
       →DP Problem 6
Nar
           →DP Problem 12
Narrowing Transformation


Dependency Pairs:

TOP(mark(f(x''))) -> TOP(f(check(x'')))
TOP(mark(x'')) -> TOP(start(match(f(X), x'')))
TOP(active(c)) -> TOP(mark(c))
TOP(found(x)) -> TOP(active(x))


Rules:


active(f(x)) -> mark(x)
active(f(x)) -> f(active(x))
top(active(c)) -> top(mark(c))
top(mark(x)) -> top(check(x))
top(found(x)) -> top(active(x))
check(f(x)) -> f(check(x))
check(x) -> start(match(f(X), x))
match(f(x), f(y)) -> f(match(x, y))
match(X, x) -> proper(x)
proper(c) -> ok(c)
proper(f(x)) -> f(proper(x))
f(ok(x)) -> ok(f(x))
f(found(x)) -> found(f(x))
f(mark(x)) -> mark(f(x))
start(ok(x)) -> found(x)





On this DP problem, a Narrowing SCC transformation can be performed.
As a result of transforming the rule

TOP(mark(f(x''))) -> TOP(f(check(x'')))
two new Dependency Pairs are created:

TOP(mark(f(f(x')))) -> TOP(f(f(check(x'))))
TOP(mark(f(x'''))) -> TOP(f(start(match(f(X), x'''))))

The transformation is resulting in one new DP problem:



   R
DPs
       →DP Problem 1
AFS
       →DP Problem 2
AFS
       →DP Problem 3
AFS
       →DP Problem 4
AFS
       →DP Problem 5
AFS
       →DP Problem 6
Nar
           →DP Problem 12
Nar
             ...
               →DP Problem 13
Narrowing Transformation


Dependency Pairs:

TOP(mark(f(x'''))) -> TOP(f(start(match(f(X), x'''))))
TOP(mark(f(f(x')))) -> TOP(f(f(check(x'))))
TOP(found(x)) -> TOP(active(x))
TOP(active(c)) -> TOP(mark(c))
TOP(mark(x'')) -> TOP(start(match(f(X), x'')))


Rules:


active(f(x)) -> mark(x)
active(f(x)) -> f(active(x))
top(active(c)) -> top(mark(c))
top(mark(x)) -> top(check(x))
top(found(x)) -> top(active(x))
check(f(x)) -> f(check(x))
check(x) -> start(match(f(X), x))
match(f(x), f(y)) -> f(match(x, y))
match(X, x) -> proper(x)
proper(c) -> ok(c)
proper(f(x)) -> f(proper(x))
f(ok(x)) -> ok(f(x))
f(found(x)) -> found(f(x))
f(mark(x)) -> mark(f(x))
start(ok(x)) -> found(x)





On this DP problem, a Narrowing SCC transformation can be performed.
As a result of transforming the rule

TOP(mark(x'')) -> TOP(start(match(f(X), x'')))
one new Dependency Pair is created:

TOP(mark(f(y'))) -> TOP(start(f(match(X, y'))))

The transformation is resulting in one new DP problem:



   R
DPs
       →DP Problem 1
AFS
       →DP Problem 2
AFS
       →DP Problem 3
AFS
       →DP Problem 4
AFS
       →DP Problem 5
AFS
       →DP Problem 6
Nar
           →DP Problem 12
Nar
             ...
               →DP Problem 14
Narrowing Transformation


Dependency Pairs:

TOP(mark(f(y'))) -> TOP(start(f(match(X, y'))))
TOP(mark(f(f(x')))) -> TOP(f(f(check(x'))))
TOP(found(x)) -> TOP(active(x))
TOP(mark(f(x'''))) -> TOP(f(start(match(f(X), x'''))))


Rules:


active(f(x)) -> mark(x)
active(f(x)) -> f(active(x))
top(active(c)) -> top(mark(c))
top(mark(x)) -> top(check(x))
top(found(x)) -> top(active(x))
check(f(x)) -> f(check(x))
check(x) -> start(match(f(X), x))
match(f(x), f(y)) -> f(match(x, y))
match(X, x) -> proper(x)
proper(c) -> ok(c)
proper(f(x)) -> f(proper(x))
f(ok(x)) -> ok(f(x))
f(found(x)) -> found(f(x))
f(mark(x)) -> mark(f(x))
start(ok(x)) -> found(x)





On this DP problem, a Narrowing SCC transformation can be performed.
As a result of transforming the rule

TOP(found(x)) -> TOP(active(x))
two new Dependency Pairs are created:

TOP(found(f(x''))) -> TOP(mark(x''))
TOP(found(f(x''))) -> TOP(f(active(x'')))

The transformation is resulting in one new DP problem:



   R
DPs
       →DP Problem 1
AFS
       →DP Problem 2
AFS
       →DP Problem 3
AFS
       →DP Problem 4
AFS
       →DP Problem 5
AFS
       →DP Problem 6
Nar
           →DP Problem 12
Nar
             ...
               →DP Problem 15
Narrowing Transformation


Dependency Pairs:

TOP(found(f(x''))) -> TOP(f(active(x'')))
TOP(found(f(x''))) -> TOP(mark(x''))
TOP(mark(f(x'''))) -> TOP(f(start(match(f(X), x'''))))
TOP(mark(f(f(x')))) -> TOP(f(f(check(x'))))
TOP(mark(f(y'))) -> TOP(start(f(match(X, y'))))


Rules:


active(f(x)) -> mark(x)
active(f(x)) -> f(active(x))
top(active(c)) -> top(mark(c))
top(mark(x)) -> top(check(x))
top(found(x)) -> top(active(x))
check(f(x)) -> f(check(x))
check(x) -> start(match(f(X), x))
match(f(x), f(y)) -> f(match(x, y))
match(X, x) -> proper(x)
proper(c) -> ok(c)
proper(f(x)) -> f(proper(x))
f(ok(x)) -> ok(f(x))
f(found(x)) -> found(f(x))
f(mark(x)) -> mark(f(x))
start(ok(x)) -> found(x)





On this DP problem, a Narrowing SCC transformation can be performed.
As a result of transforming the rule

TOP(found(f(x''))) -> TOP(f(active(x'')))
two new Dependency Pairs are created:

TOP(found(f(f(x')))) -> TOP(f(mark(x')))
TOP(found(f(f(x')))) -> TOP(f(f(active(x'))))

The transformation is resulting in one new DP problem:



   R
DPs
       →DP Problem 1
AFS
       →DP Problem 2
AFS
       →DP Problem 3
AFS
       →DP Problem 4
AFS
       →DP Problem 5
AFS
       →DP Problem 6
Nar
           →DP Problem 12
Nar
             ...
               →DP Problem 16
Argument Filtering and Ordering


Dependency Pairs:

TOP(found(f(f(x')))) -> TOP(f(f(active(x'))))
TOP(found(f(f(x')))) -> TOP(f(mark(x')))
TOP(mark(f(y'))) -> TOP(start(f(match(X, y'))))
TOP(mark(f(x'''))) -> TOP(f(start(match(f(X), x'''))))
TOP(mark(f(f(x')))) -> TOP(f(f(check(x'))))
TOP(found(f(x''))) -> TOP(mark(x''))


Rules:


active(f(x)) -> mark(x)
active(f(x)) -> f(active(x))
top(active(c)) -> top(mark(c))
top(mark(x)) -> top(check(x))
top(found(x)) -> top(active(x))
check(f(x)) -> f(check(x))
check(x) -> start(match(f(X), x))
match(f(x), f(y)) -> f(match(x, y))
match(X, x) -> proper(x)
proper(c) -> ok(c)
proper(f(x)) -> f(proper(x))
f(ok(x)) -> ok(f(x))
f(found(x)) -> found(f(x))
f(mark(x)) -> mark(f(x))
start(ok(x)) -> found(x)





The following dependency pairs can be strictly oriented:

TOP(found(f(f(x')))) -> TOP(f(f(active(x'))))
TOP(found(f(f(x')))) -> TOP(f(mark(x')))
TOP(mark(f(y'))) -> TOP(start(f(match(X, y'))))
TOP(mark(f(x'''))) -> TOP(f(start(match(f(X), x'''))))
TOP(found(f(x''))) -> TOP(mark(x''))


The following rules can be oriented:

start(ok(x)) -> found(x)
f(ok(x)) -> ok(f(x))
f(found(x)) -> found(f(x))
f(mark(x)) -> mark(f(x))
match(f(x), f(y)) -> f(match(x, y))
match(X, x) -> proper(x)
check(f(x)) -> f(check(x))
check(x) -> start(match(f(X), x))
active(f(x)) -> mark(x)
active(f(x)) -> f(active(x))
proper(c) -> ok(c)
proper(f(x)) -> f(proper(x))
top(active(c)) -> top(mark(c))
top(mark(x)) -> top(check(x))
top(found(x)) -> top(active(x))


Used ordering: Lexicographic Path Order with Non-Strict Precedence with Quasi Precedence:
{mark, check, f} > {start, found}

resulting in one new DP problem.
Used Argument Filtering System:
TOP(x1) -> TOP(x1)
mark(x1) -> mark(x1)
start(x1) -> start(x1)
f(x1) -> f(x1)
match(x1, x2) -> x2
found(x1) -> found(x1)
check(x1) -> check(x1)
active(x1) -> x1
ok(x1) -> x1
proper(x1) -> x1
top(x1) -> top


   R
DPs
       →DP Problem 1
AFS
       →DP Problem 2
AFS
       →DP Problem 3
AFS
       →DP Problem 4
AFS
       →DP Problem 5
AFS
       →DP Problem 6
Nar
           →DP Problem 12
Nar
             ...
               →DP Problem 17
Argument Filtering and Ordering


Dependency Pair:

TOP(mark(f(f(x')))) -> TOP(f(f(check(x'))))


Rules:


active(f(x)) -> mark(x)
active(f(x)) -> f(active(x))
top(active(c)) -> top(mark(c))
top(mark(x)) -> top(check(x))
top(found(x)) -> top(active(x))
check(f(x)) -> f(check(x))
check(x) -> start(match(f(X), x))
match(f(x), f(y)) -> f(match(x, y))
match(X, x) -> proper(x)
proper(c) -> ok(c)
proper(f(x)) -> f(proper(x))
f(ok(x)) -> ok(f(x))
f(found(x)) -> found(f(x))
f(mark(x)) -> mark(f(x))
start(ok(x)) -> found(x)





The following dependency pair can be strictly oriented:

TOP(mark(f(f(x')))) -> TOP(f(f(check(x'))))


The following rules can be oriented:

f(ok(x)) -> ok(f(x))
f(found(x)) -> found(f(x))
f(mark(x)) -> mark(f(x))
check(f(x)) -> f(check(x))
check(x) -> start(match(f(X), x))
start(ok(x)) -> found(x)
match(f(x), f(y)) -> f(match(x, y))
match(X, x) -> proper(x)
proper(c) -> ok(c)
proper(f(x)) -> f(proper(x))
active(f(x)) -> mark(x)
active(f(x)) -> f(active(x))
top(active(c)) -> top(mark(c))
top(mark(x)) -> top(check(x))
top(found(x)) -> top(active(x))


Used ordering: Lexicographic Path Order with Non-Strict Precedence with Quasi Precedence:
active > {mark, ok, f} > {start, found}
top > {start, found}
c > {start, found}
TOP > {start, found}
check > {start, found}
match > proper > {mark, ok, f} > {start, found}
X > {start, found}

resulting in one new DP problem.
Used Argument Filtering System:
TOP(x1) -> TOP(x1)
mark(x1) -> mark(x1)
f(x1) -> f(x1)
check(x1) -> x1
ok(x1) -> ok(x1)
found(x1) -> found
start(x1) -> start
match(x1, x2) -> match(x1, x2)
proper(x1) -> proper(x1)
active(x1) -> active(x1)
top(x1) -> top


   R
DPs
       →DP Problem 1
AFS
       →DP Problem 2
AFS
       →DP Problem 3
AFS
       →DP Problem 4
AFS
       →DP Problem 5
AFS
       →DP Problem 6
Nar
           →DP Problem 12
Nar
             ...
               →DP Problem 18
Dependency Graph


Dependency Pair:


Rules:


active(f(x)) -> mark(x)
active(f(x)) -> f(active(x))
top(active(c)) -> top(mark(c))
top(mark(x)) -> top(check(x))
top(found(x)) -> top(active(x))
check(f(x)) -> f(check(x))
check(x) -> start(match(f(X), x))
match(f(x), f(y)) -> f(match(x, y))
match(X, x) -> proper(x)
proper(c) -> ok(c)
proper(f(x)) -> f(proper(x))
f(ok(x)) -> ok(f(x))
f(found(x)) -> found(f(x))
f(mark(x)) -> mark(f(x))
start(ok(x)) -> found(x)





Using the Dependency Graph resulted in no new DP problems.

Termination of R successfully shown.
Duration:
0:05 minutes