Term Rewriting System R:
[x, y]
p(s(x)) -> x
s(p(x)) -> x
+(0, y) -> y
+(s(x), y) -> s(+(x, y))
+(p(x), y) -> p(+(x, y))
minus(0) -> 0
minus(s(x)) -> p(minus(x))
minus(p(x)) -> s(minus(x))
*(0, y) -> 0
*(s(x), y) -> +(*(x, y), y)
*(p(x), y) -> +(*(x, y), minus(y))

Innermost Termination of R to be shown.



   R
Dependency Pair Analysis



R contains the following Dependency Pairs:

+'(s(x), y) -> S(+(x, y))
+'(s(x), y) -> +'(x, y)
+'(p(x), y) -> P(+(x, y))
+'(p(x), y) -> +'(x, y)
MINUS(s(x)) -> P(minus(x))
MINUS(s(x)) -> MINUS(x)
MINUS(p(x)) -> S(minus(x))
MINUS(p(x)) -> MINUS(x)
*'(s(x), y) -> +'(*(x, y), y)
*'(s(x), y) -> *'(x, y)
*'(p(x), y) -> +'(*(x, y), minus(y))
*'(p(x), y) -> *'(x, y)
*'(p(x), y) -> MINUS(y)

Furthermore, R contains six SCCs.


   R
DPs
       →DP Problem 1
Forward Instantiation Transformation
       →DP Problem 2
FwdInst
       →DP Problem 3
FwdInst
       →DP Problem 4
FwdInst
       →DP Problem 5
FwdInst
       →DP Problem 6
FwdInst


Dependency Pair:

+'(p(x), y) -> +'(x, y)


Rules:


p(s(x)) -> x
s(p(x)) -> x
+(0, y) -> y
+(s(x), y) -> s(+(x, y))
+(p(x), y) -> p(+(x, y))
minus(0) -> 0
minus(s(x)) -> p(minus(x))
minus(p(x)) -> s(minus(x))
*(0, y) -> 0
*(s(x), y) -> +(*(x, y), y)
*(p(x), y) -> +(*(x, y), minus(y))


Strategy:

innermost




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

+'(p(x), y) -> +'(x, y)
one new Dependency Pair is created:

+'(p(p(x'')), y'') -> +'(p(x''), y'')

The transformation is resulting in one new DP problem:



   R
DPs
       →DP Problem 1
FwdInst
           →DP Problem 7
Argument Filtering and Ordering
       →DP Problem 2
FwdInst
       →DP Problem 3
FwdInst
       →DP Problem 4
FwdInst
       →DP Problem 5
FwdInst
       →DP Problem 6
FwdInst


Dependency Pair:

+'(p(p(x'')), y'') -> +'(p(x''), y'')


Rules:


p(s(x)) -> x
s(p(x)) -> x
+(0, y) -> y
+(s(x), y) -> s(+(x, y))
+(p(x), y) -> p(+(x, y))
minus(0) -> 0
minus(s(x)) -> p(minus(x))
minus(p(x)) -> s(minus(x))
*(0, y) -> 0
*(s(x), y) -> +(*(x, y), y)
*(p(x), y) -> +(*(x, y), minus(y))


Strategy:

innermost




The following dependency pair can be strictly oriented:

+'(p(p(x'')), y'') -> +'(p(x''), y'')


The following usable rule for innermost w.r.t. to the AFS can be oriented:

p(s(x)) -> x


Used ordering: Lexicographic Path Order with Non-Strict Precedence with Quasi Precedence:
trivial

resulting in one new DP problem.
Used Argument Filtering System:
+'(x1, x2) -> +'(x1, x2)
p(x1) -> p(x1)
s(x1) -> s(x1)


   R
DPs
       →DP Problem 1
FwdInst
           →DP Problem 7
AFS
             ...
               →DP Problem 8
Dependency Graph
       →DP Problem 2
FwdInst
       →DP Problem 3
FwdInst
       →DP Problem 4
FwdInst
       →DP Problem 5
FwdInst
       →DP Problem 6
FwdInst


Dependency Pair:


Rules:


p(s(x)) -> x
s(p(x)) -> x
+(0, y) -> y
+(s(x), y) -> s(+(x, y))
+(p(x), y) -> p(+(x, y))
minus(0) -> 0
minus(s(x)) -> p(minus(x))
minus(p(x)) -> s(minus(x))
*(0, y) -> 0
*(s(x), y) -> +(*(x, y), y)
*(p(x), y) -> +(*(x, y), minus(y))


Strategy:

innermost




Using the Dependency Graph resulted in no new DP problems.


   R
DPs
       →DP Problem 1
FwdInst
       →DP Problem 2
Forward Instantiation Transformation
       →DP Problem 3
FwdInst
       →DP Problem 4
FwdInst
       →DP Problem 5
FwdInst
       →DP Problem 6
FwdInst


Dependency Pair:

MINUS(p(x)) -> MINUS(x)


Rules:


p(s(x)) -> x
s(p(x)) -> x
+(0, y) -> y
+(s(x), y) -> s(+(x, y))
+(p(x), y) -> p(+(x, y))
minus(0) -> 0
minus(s(x)) -> p(minus(x))
minus(p(x)) -> s(minus(x))
*(0, y) -> 0
*(s(x), y) -> +(*(x, y), y)
*(p(x), y) -> +(*(x, y), minus(y))


Strategy:

innermost




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

MINUS(p(x)) -> MINUS(x)
one new Dependency Pair is created:

MINUS(p(p(x''))) -> MINUS(p(x''))

The transformation is resulting in one new DP problem:



   R
DPs
       →DP Problem 1
FwdInst
       →DP Problem 2
FwdInst
           →DP Problem 9
Argument Filtering and Ordering
       →DP Problem 3
FwdInst
       →DP Problem 4
FwdInst
       →DP Problem 5
FwdInst
       →DP Problem 6
FwdInst


Dependency Pair:

MINUS(p(p(x''))) -> MINUS(p(x''))


Rules:


p(s(x)) -> x
s(p(x)) -> x
+(0, y) -> y
+(s(x), y) -> s(+(x, y))
+(p(x), y) -> p(+(x, y))
minus(0) -> 0
minus(s(x)) -> p(minus(x))
minus(p(x)) -> s(minus(x))
*(0, y) -> 0
*(s(x), y) -> +(*(x, y), y)
*(p(x), y) -> +(*(x, y), minus(y))


Strategy:

innermost




The following dependency pair can be strictly oriented:

MINUS(p(p(x''))) -> MINUS(p(x''))


The following usable rule for innermost w.r.t. to the AFS can be oriented:

p(s(x)) -> x


Used ordering: Lexicographic Path Order with Non-Strict Precedence with Quasi Precedence:
trivial

resulting in one new DP problem.
Used Argument Filtering System:
MINUS(x1) -> MINUS(x1)
p(x1) -> p(x1)
s(x1) -> s(x1)


   R
DPs
       →DP Problem 1
FwdInst
       →DP Problem 2
FwdInst
           →DP Problem 9
AFS
             ...
               →DP Problem 10
Dependency Graph
       →DP Problem 3
FwdInst
       →DP Problem 4
FwdInst
       →DP Problem 5
FwdInst
       →DP Problem 6
FwdInst


Dependency Pair:


Rules:


p(s(x)) -> x
s(p(x)) -> x
+(0, y) -> y
+(s(x), y) -> s(+(x, y))
+(p(x), y) -> p(+(x, y))
minus(0) -> 0
minus(s(x)) -> p(minus(x))
minus(p(x)) -> s(minus(x))
*(0, y) -> 0
*(s(x), y) -> +(*(x, y), y)
*(p(x), y) -> +(*(x, y), minus(y))


Strategy:

innermost




Using the Dependency Graph resulted in no new DP problems.


   R
DPs
       →DP Problem 1
FwdInst
       →DP Problem 2
FwdInst
       →DP Problem 3
Forward Instantiation Transformation
       →DP Problem 4
FwdInst
       →DP Problem 5
FwdInst
       →DP Problem 6
FwdInst


Dependency Pair:

+'(s(x), y) -> +'(x, y)


Rules:


p(s(x)) -> x
s(p(x)) -> x
+(0, y) -> y
+(s(x), y) -> s(+(x, y))
+(p(x), y) -> p(+(x, y))
minus(0) -> 0
minus(s(x)) -> p(minus(x))
minus(p(x)) -> s(minus(x))
*(0, y) -> 0
*(s(x), y) -> +(*(x, y), y)
*(p(x), y) -> +(*(x, y), minus(y))


Strategy:

innermost




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

+'(s(x), y) -> +'(x, y)
one new Dependency Pair is created:

+'(s(s(x'')), y'') -> +'(s(x''), y'')

The transformation is resulting in one new DP problem:



   R
DPs
       →DP Problem 1
FwdInst
       →DP Problem 2
FwdInst
       →DP Problem 3
FwdInst
           →DP Problem 11
Argument Filtering and Ordering
       →DP Problem 4
FwdInst
       →DP Problem 5
FwdInst
       →DP Problem 6
FwdInst


Dependency Pair:

+'(s(s(x'')), y'') -> +'(s(x''), y'')


Rules:


p(s(x)) -> x
s(p(x)) -> x
+(0, y) -> y
+(s(x), y) -> s(+(x, y))
+(p(x), y) -> p(+(x, y))
minus(0) -> 0
minus(s(x)) -> p(minus(x))
minus(p(x)) -> s(minus(x))
*(0, y) -> 0
*(s(x), y) -> +(*(x, y), y)
*(p(x), y) -> +(*(x, y), minus(y))


Strategy:

innermost




The following dependency pair can be strictly oriented:

+'(s(s(x'')), y'') -> +'(s(x''), y'')


The following usable rule for innermost w.r.t. to the AFS can be oriented:

s(p(x)) -> x


Used ordering: Lexicographic Path Order with Non-Strict Precedence with Quasi Precedence:
trivial

resulting in one new DP problem.
Used Argument Filtering System:
+'(x1, x2) -> +'(x1, x2)
s(x1) -> s(x1)
p(x1) -> p(x1)


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


Dependency Pair:


Rules:


p(s(x)) -> x
s(p(x)) -> x
+(0, y) -> y
+(s(x), y) -> s(+(x, y))
+(p(x), y) -> p(+(x, y))
minus(0) -> 0
minus(s(x)) -> p(minus(x))
minus(p(x)) -> s(minus(x))
*(0, y) -> 0
*(s(x), y) -> +(*(x, y), y)
*(p(x), y) -> +(*(x, y), minus(y))


Strategy:

innermost




Using the Dependency Graph resulted in no new DP problems.


   R
DPs
       →DP Problem 1
FwdInst
       →DP Problem 2
FwdInst
       →DP Problem 3
FwdInst
       →DP Problem 4
Forward Instantiation Transformation
       →DP Problem 5
FwdInst
       →DP Problem 6
FwdInst


Dependency Pair:

MINUS(s(x)) -> MINUS(x)


Rules:


p(s(x)) -> x
s(p(x)) -> x
+(0, y) -> y
+(s(x), y) -> s(+(x, y))
+(p(x), y) -> p(+(x, y))
minus(0) -> 0
minus(s(x)) -> p(minus(x))
minus(p(x)) -> s(minus(x))
*(0, y) -> 0
*(s(x), y) -> +(*(x, y), y)
*(p(x), y) -> +(*(x, y), minus(y))


Strategy:

innermost




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

MINUS(s(x)) -> MINUS(x)
one new Dependency Pair is created:

MINUS(s(s(x''))) -> MINUS(s(x''))

The transformation is resulting in one new DP problem:



   R
DPs
       →DP Problem 1
FwdInst
       →DP Problem 2
FwdInst
       →DP Problem 3
FwdInst
       →DP Problem 4
FwdInst
           →DP Problem 13
Argument Filtering and Ordering
       →DP Problem 5
FwdInst
       →DP Problem 6
FwdInst


Dependency Pair:

MINUS(s(s(x''))) -> MINUS(s(x''))


Rules:


p(s(x)) -> x
s(p(x)) -> x
+(0, y) -> y
+(s(x), y) -> s(+(x, y))
+(p(x), y) -> p(+(x, y))
minus(0) -> 0
minus(s(x)) -> p(minus(x))
minus(p(x)) -> s(minus(x))
*(0, y) -> 0
*(s(x), y) -> +(*(x, y), y)
*(p(x), y) -> +(*(x, y), minus(y))


Strategy:

innermost




The following dependency pair can be strictly oriented:

MINUS(s(s(x''))) -> MINUS(s(x''))


The following usable rule for innermost w.r.t. to the AFS can be oriented:

s(p(x)) -> x


Used ordering: Lexicographic Path Order with Non-Strict Precedence with Quasi Precedence:
trivial

resulting in one new DP problem.
Used Argument Filtering System:
MINUS(x1) -> MINUS(x1)
s(x1) -> s(x1)
p(x1) -> p(x1)


   R
DPs
       →DP Problem 1
FwdInst
       →DP Problem 2
FwdInst
       →DP Problem 3
FwdInst
       →DP Problem 4
FwdInst
           →DP Problem 13
AFS
             ...
               →DP Problem 14
Dependency Graph
       →DP Problem 5
FwdInst
       →DP Problem 6
FwdInst


Dependency Pair:


Rules:


p(s(x)) -> x
s(p(x)) -> x
+(0, y) -> y
+(s(x), y) -> s(+(x, y))
+(p(x), y) -> p(+(x, y))
minus(0) -> 0
minus(s(x)) -> p(minus(x))
minus(p(x)) -> s(minus(x))
*(0, y) -> 0
*(s(x), y) -> +(*(x, y), y)
*(p(x), y) -> +(*(x, y), minus(y))


Strategy:

innermost




Using the Dependency Graph resulted in no new DP problems.


   R
DPs
       →DP Problem 1
FwdInst
       →DP Problem 2
FwdInst
       →DP Problem 3
FwdInst
       →DP Problem 4
FwdInst
       →DP Problem 5
Forward Instantiation Transformation
       →DP Problem 6
FwdInst


Dependency Pair:

*'(p(x), y) -> *'(x, y)


Rules:


p(s(x)) -> x
s(p(x)) -> x
+(0, y) -> y
+(s(x), y) -> s(+(x, y))
+(p(x), y) -> p(+(x, y))
minus(0) -> 0
minus(s(x)) -> p(minus(x))
minus(p(x)) -> s(minus(x))
*(0, y) -> 0
*(s(x), y) -> +(*(x, y), y)
*(p(x), y) -> +(*(x, y), minus(y))


Strategy:

innermost




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

*'(p(x), y) -> *'(x, y)
one new Dependency Pair is created:

*'(p(p(x'')), y'') -> *'(p(x''), y'')

The transformation is resulting in one new DP problem:



   R
DPs
       →DP Problem 1
FwdInst
       →DP Problem 2
FwdInst
       →DP Problem 3
FwdInst
       →DP Problem 4
FwdInst
       →DP Problem 5
FwdInst
           →DP Problem 15
Argument Filtering and Ordering
       →DP Problem 6
FwdInst


Dependency Pair:

*'(p(p(x'')), y'') -> *'(p(x''), y'')


Rules:


p(s(x)) -> x
s(p(x)) -> x
+(0, y) -> y
+(s(x), y) -> s(+(x, y))
+(p(x), y) -> p(+(x, y))
minus(0) -> 0
minus(s(x)) -> p(minus(x))
minus(p(x)) -> s(minus(x))
*(0, y) -> 0
*(s(x), y) -> +(*(x, y), y)
*(p(x), y) -> +(*(x, y), minus(y))


Strategy:

innermost




The following dependency pair can be strictly oriented:

*'(p(p(x'')), y'') -> *'(p(x''), y'')


The following usable rule for innermost w.r.t. to the AFS can be oriented:

p(s(x)) -> x


Used ordering: Lexicographic Path Order with Non-Strict Precedence with Quasi Precedence:
trivial

resulting in one new DP problem.
Used Argument Filtering System:
*'(x1, x2) -> *'(x1, x2)
p(x1) -> p(x1)
s(x1) -> s(x1)


   R
DPs
       →DP Problem 1
FwdInst
       →DP Problem 2
FwdInst
       →DP Problem 3
FwdInst
       →DP Problem 4
FwdInst
       →DP Problem 5
FwdInst
           →DP Problem 15
AFS
             ...
               →DP Problem 16
Dependency Graph
       →DP Problem 6
FwdInst


Dependency Pair:


Rules:


p(s(x)) -> x
s(p(x)) -> x
+(0, y) -> y
+(s(x), y) -> s(+(x, y))
+(p(x), y) -> p(+(x, y))
minus(0) -> 0
minus(s(x)) -> p(minus(x))
minus(p(x)) -> s(minus(x))
*(0, y) -> 0
*(s(x), y) -> +(*(x, y), y)
*(p(x), y) -> +(*(x, y), minus(y))


Strategy:

innermost




Using the Dependency Graph resulted in no new DP problems.


   R
DPs
       →DP Problem 1
FwdInst
       →DP Problem 2
FwdInst
       →DP Problem 3
FwdInst
       →DP Problem 4
FwdInst
       →DP Problem 5
FwdInst
       →DP Problem 6
Forward Instantiation Transformation


Dependency Pair:

*'(s(x), y) -> *'(x, y)


Rules:


p(s(x)) -> x
s(p(x)) -> x
+(0, y) -> y
+(s(x), y) -> s(+(x, y))
+(p(x), y) -> p(+(x, y))
minus(0) -> 0
minus(s(x)) -> p(minus(x))
minus(p(x)) -> s(minus(x))
*(0, y) -> 0
*(s(x), y) -> +(*(x, y), y)
*(p(x), y) -> +(*(x, y), minus(y))


Strategy:

innermost




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

*'(s(x), y) -> *'(x, y)
one new Dependency Pair is created:

*'(s(s(x'')), y'') -> *'(s(x''), y'')

The transformation is resulting in one new DP problem:



   R
DPs
       →DP Problem 1
FwdInst
       →DP Problem 2
FwdInst
       →DP Problem 3
FwdInst
       →DP Problem 4
FwdInst
       →DP Problem 5
FwdInst
       →DP Problem 6
FwdInst
           →DP Problem 17
Argument Filtering and Ordering


Dependency Pair:

*'(s(s(x'')), y'') -> *'(s(x''), y'')


Rules:


p(s(x)) -> x
s(p(x)) -> x
+(0, y) -> y
+(s(x), y) -> s(+(x, y))
+(p(x), y) -> p(+(x, y))
minus(0) -> 0
minus(s(x)) -> p(minus(x))
minus(p(x)) -> s(minus(x))
*(0, y) -> 0
*(s(x), y) -> +(*(x, y), y)
*(p(x), y) -> +(*(x, y), minus(y))


Strategy:

innermost




The following dependency pair can be strictly oriented:

*'(s(s(x'')), y'') -> *'(s(x''), y'')


The following usable rule for innermost w.r.t. to the AFS can be oriented:

s(p(x)) -> x


Used ordering: Lexicographic Path Order with Non-Strict Precedence with Quasi Precedence:
trivial

resulting in one new DP problem.
Used Argument Filtering System:
*'(x1, x2) -> *'(x1, x2)
s(x1) -> s(x1)
p(x1) -> p(x1)


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


Dependency Pair:


Rules:


p(s(x)) -> x
s(p(x)) -> x
+(0, y) -> y
+(s(x), y) -> s(+(x, y))
+(p(x), y) -> p(+(x, y))
minus(0) -> 0
minus(s(x)) -> p(minus(x))
minus(p(x)) -> s(minus(x))
*(0, y) -> 0
*(s(x), y) -> +(*(x, y), y)
*(p(x), y) -> +(*(x, y), minus(y))


Strategy:

innermost




Using the Dependency Graph resulted in no new DP problems.

Innermost Termination of R successfully shown.
Duration:
0:00 minutes