TIMEOUT
The TRS could not be proven terminating. The proof attempt took 60001 ms.
The following DP Processors were used
Problem 1 was processed with processor DependencyGraph (42ms).
| Problem 2 was processed with processor BackwardInstantiation (3ms).
| | Problem 5 remains open; application of the following processors failed [ForwardInstantiation (2ms), Propagation (0ms), ForwardNarrowing (3ms), BackwardInstantiation (1ms), ForwardInstantiation (1ms), Propagation (0ms)].
| Problem 3 was processed with processor SubtermCriterion (0ms).
| Problem 4 was processed with processor SubtermCriterion (1ms).
The following open problems remain:
Open Dependency Pair Problem 2
Dependency Pairs
if#(true, true, x, y) | → | div#(minus(x, y), y) | | div#(x, y) | → | if#(ge(y, s(0)), ge(x, y), x, y) |
Rewrite Rules
ge(x, 0) | → | true | | ge(0, s(y)) | → | false |
ge(s(x), s(y)) | → | ge(x, y) | | minus(x, 0) | → | x |
minus(0, y) | → | 0 | | minus(s(x), s(y)) | → | minus(x, y) |
id_inc(x) | → | x | | id_inc(x) | → | s(x) |
div(x, y) | → | if(ge(y, s(0)), ge(x, y), x, y) | | if(false, b, x, y) | → | div_by_zero |
if(true, false, x, y) | → | 0 | | if(true, true, x, y) | → | id_inc(div(minus(x, y), y)) |
Original Signature
Termination of terms over the following signature is verified: div_by_zero, id_inc, minus, 0, s, if, div, false, true, ge
Problem 1: DependencyGraph
Dependency Pair Problem
Dependency Pairs
if#(true, true, x, y) | → | id_inc#(div(minus(x, y), y)) | | div#(x, y) | → | ge#(x, y) |
if#(true, true, x, y) | → | minus#(x, y) | | div#(x, y) | → | ge#(y, s(0)) |
ge#(s(x), s(y)) | → | ge#(x, y) | | minus#(s(x), s(y)) | → | minus#(x, y) |
div#(x, y) | → | if#(ge(y, s(0)), ge(x, y), x, y) | | if#(true, true, x, y) | → | div#(minus(x, y), y) |
Rewrite Rules
ge(x, 0) | → | true | | ge(0, s(y)) | → | false |
ge(s(x), s(y)) | → | ge(x, y) | | minus(x, 0) | → | x |
minus(0, y) | → | 0 | | minus(s(x), s(y)) | → | minus(x, y) |
id_inc(x) | → | x | | id_inc(x) | → | s(x) |
div(x, y) | → | if(ge(y, s(0)), ge(x, y), x, y) | | if(false, b, x, y) | → | div_by_zero |
if(true, false, x, y) | → | 0 | | if(true, true, x, y) | → | id_inc(div(minus(x, y), y)) |
Original Signature
Termination of terms over the following signature is verified: div_by_zero, 0, minus, id_inc, s, if, div, true, false, ge
Strategy
The following SCCs where found
minus#(s(x), s(y)) → minus#(x, y) |
ge#(s(x), s(y)) → ge#(x, y) |
div#(x, y) → if#(ge(y, s(0)), ge(x, y), x, y) | if#(true, true, x, y) → div#(minus(x, y), y) |
Problem 2: BackwardInstantiation
Dependency Pair Problem
Dependency Pairs
div#(x, y) | → | if#(ge(y, s(0)), ge(x, y), x, y) | | if#(true, true, x, y) | → | div#(minus(x, y), y) |
Rewrite Rules
ge(x, 0) | → | true | | ge(0, s(y)) | → | false |
ge(s(x), s(y)) | → | ge(x, y) | | minus(x, 0) | → | x |
minus(0, y) | → | 0 | | minus(s(x), s(y)) | → | minus(x, y) |
id_inc(x) | → | x | | id_inc(x) | → | s(x) |
div(x, y) | → | if(ge(y, s(0)), ge(x, y), x, y) | | if(false, b, x, y) | → | div_by_zero |
if(true, false, x, y) | → | 0 | | if(true, true, x, y) | → | id_inc(div(minus(x, y), y)) |
Original Signature
Termination of terms over the following signature is verified: div_by_zero, 0, minus, id_inc, s, if, div, true, false, ge
Strategy
Instantiation
For all potential predecessors l → r of the rule div
#(
x,
y) → if
#(ge(
y, s(0)), ge(
x,
y),
x,
y) on dependency pair chains it holds that:
- div#(x, y) matches r,
- all variables of div#(x, y) are embedded in constructor contexts, i.e., each subterm of div#(x, y), containing a variable is rooted by a constructor symbol.
Thus, div
#(
x,
y) → if
#(ge(
y, s(0)), ge(
x,
y),
x,
y) is replaced by instances determined through the above matching. These instances are:
div#(minus(_x, _y), _y) → if#(ge(_y, s(0)), ge(minus(_x, _y), _y), minus(_x, _y), _y) |
Problem 3: SubtermCriterion
Dependency Pair Problem
Dependency Pairs
minus#(s(x), s(y)) | → | minus#(x, y) |
Rewrite Rules
ge(x, 0) | → | true | | ge(0, s(y)) | → | false |
ge(s(x), s(y)) | → | ge(x, y) | | minus(x, 0) | → | x |
minus(0, y) | → | 0 | | minus(s(x), s(y)) | → | minus(x, y) |
id_inc(x) | → | x | | id_inc(x) | → | s(x) |
div(x, y) | → | if(ge(y, s(0)), ge(x, y), x, y) | | if(false, b, x, y) | → | div_by_zero |
if(true, false, x, y) | → | 0 | | if(true, true, x, y) | → | id_inc(div(minus(x, y), y)) |
Original Signature
Termination of terms over the following signature is verified: div_by_zero, 0, minus, id_inc, s, if, div, true, false, ge
Strategy
Projection
The following projection was used:
Thus, the following dependency pairs are removed:
minus#(s(x), s(y)) | → | minus#(x, y) |
Problem 4: SubtermCriterion
Dependency Pair Problem
Dependency Pairs
ge#(s(x), s(y)) | → | ge#(x, y) |
Rewrite Rules
ge(x, 0) | → | true | | ge(0, s(y)) | → | false |
ge(s(x), s(y)) | → | ge(x, y) | | minus(x, 0) | → | x |
minus(0, y) | → | 0 | | minus(s(x), s(y)) | → | minus(x, y) |
id_inc(x) | → | x | | id_inc(x) | → | s(x) |
div(x, y) | → | if(ge(y, s(0)), ge(x, y), x, y) | | if(false, b, x, y) | → | div_by_zero |
if(true, false, x, y) | → | 0 | | if(true, true, x, y) | → | id_inc(div(minus(x, y), y)) |
Original Signature
Termination of terms over the following signature is verified: div_by_zero, 0, minus, id_inc, s, if, div, true, false, ge
Strategy
Projection
The following projection was used:
Thus, the following dependency pairs are removed:
ge#(s(x), s(y)) | → | ge#(x, y) |