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 (24ms).
| Problem 2 was processed with processor SubtermCriterion (2ms).
| Problem 3 was processed with processor BackwardInstantiation (2ms).
| | Problem 4 remains open; application of the following processors failed [ForwardInstantiation (1ms), Propagation (2ms), ForwardNarrowing (0ms), BackwardInstantiation (1ms), ForwardInstantiation (4ms), Propagation (0ms)].
The following open problems remain:
Open Dependency Pair Problem 3
Dependency Pairs
if#(false, x, y) | → | minus#(p(x), y) | | minus#(x, y) | → | if#(le(x, y), x, y) |
Rewrite Rules
p(0) | → | 0 | | p(s(x)) | → | x |
le(0, y) | → | true | | le(s(x), 0) | → | false |
le(s(x), s(y)) | → | le(x, y) | | minus(x, y) | → | if(le(x, y), x, y) |
if(true, x, y) | → | 0 | | if(false, x, y) | → | s(minus(p(x), y)) |
Original Signature
Termination of terms over the following signature is verified: minus, 0, le, s, if, p, false, true
Problem 1: DependencyGraph
Dependency Pair Problem
Dependency Pairs
minus#(x, y) | → | le#(x, y) | | if#(false, x, y) | → | minus#(p(x), y) |
le#(s(x), s(y)) | → | le#(x, y) | | minus#(x, y) | → | if#(le(x, y), x, y) |
if#(false, x, y) | → | p#(x) |
Rewrite Rules
p(0) | → | 0 | | p(s(x)) | → | x |
le(0, y) | → | true | | le(s(x), 0) | → | false |
le(s(x), s(y)) | → | le(x, y) | | minus(x, y) | → | if(le(x, y), x, y) |
if(true, x, y) | → | 0 | | if(false, x, y) | → | s(minus(p(x), y)) |
Original Signature
Termination of terms over the following signature is verified: 0, minus, s, le, if, p, true, false
Strategy
The following SCCs where found
le#(s(x), s(y)) → le#(x, y) |
if#(false, x, y) → minus#(p(x), y) | minus#(x, y) → if#(le(x, y), x, y) |
Problem 2: SubtermCriterion
Dependency Pair Problem
Dependency Pairs
le#(s(x), s(y)) | → | le#(x, y) |
Rewrite Rules
p(0) | → | 0 | | p(s(x)) | → | x |
le(0, y) | → | true | | le(s(x), 0) | → | false |
le(s(x), s(y)) | → | le(x, y) | | minus(x, y) | → | if(le(x, y), x, y) |
if(true, x, y) | → | 0 | | if(false, x, y) | → | s(minus(p(x), y)) |
Original Signature
Termination of terms over the following signature is verified: 0, minus, s, le, if, p, true, false
Strategy
Projection
The following projection was used:
Thus, the following dependency pairs are removed:
le#(s(x), s(y)) | → | le#(x, y) |
Problem 3: BackwardInstantiation
Dependency Pair Problem
Dependency Pairs
if#(false, x, y) | → | minus#(p(x), y) | | minus#(x, y) | → | if#(le(x, y), x, y) |
Rewrite Rules
p(0) | → | 0 | | p(s(x)) | → | x |
le(0, y) | → | true | | le(s(x), 0) | → | false |
le(s(x), s(y)) | → | le(x, y) | | minus(x, y) | → | if(le(x, y), x, y) |
if(true, x, y) | → | 0 | | if(false, x, y) | → | s(minus(p(x), y)) |
Original Signature
Termination of terms over the following signature is verified: 0, minus, s, le, if, p, true, false
Strategy
Instantiation
For all potential predecessors l → r of the rule minus
#(
x,
y) → if
#(le(
x,
y),
x,
y) on dependency pair chains it holds that:
- minus#(x, y) matches r,
- all variables of minus#(x, y) are embedded in constructor contexts, i.e., each subterm of minus#(x, y), containing a variable is rooted by a constructor symbol.
Thus, minus
#(
x,
y) → if
#(le(
x,
y),
x,
y) is replaced by instances determined through the above matching. These instances are:
minus#(p(_x), _y) → if#(le(p(_x), _y), p(_x), _y) |