R
↳Overlay and local confluence Check
R
↳OC
→TRS2
↳Dependency Pair Analysis
MIN(s(x), s(y)) -> MIN(x, y)
MAX(s(x), s(y)) -> MAX(x, y)
-'(s(x), s(y)) -> -'(x, y)
GCD(s(x), s(y)) -> GCD(-(s(max(x, y)), s(min(x, y))), s(min(x, y)))
GCD(s(x), s(y)) -> -'(s(max(x, y)), s(min(x, y)))
GCD(s(x), s(y)) -> MAX(x, y)
GCD(s(x), s(y)) -> MIN(x, y)
R
↳OC
→TRS2
↳DPs
→DP Problem 1
↳Usable Rules (Innermost)
→DP Problem 2
↳UsableRules
→DP Problem 3
↳UsableRules
→DP Problem 4
↳UsableRules
MIN(s(x), s(y)) -> MIN(x, y)
min(x, 0) -> 0
min(0, y) -> 0
min(s(x), s(y)) -> s(min(x, y))
max(x, 0) -> x
max(0, y) -> y
max(s(x), s(y)) -> s(max(x, y))
-(x, 0) -> x
-(s(x), s(y)) -> -(x, y)
gcd(s(x), s(y)) -> gcd(-(s(max(x, y)), s(min(x, y))), s(min(x, y)))
innermost
R
↳OC
→TRS2
↳DPs
→DP Problem 1
↳UsableRules
...
→DP Problem 5
↳Size-Change Principle
→DP Problem 2
↳UsableRules
→DP Problem 3
↳UsableRules
→DP Problem 4
↳UsableRules
MIN(s(x), s(y)) -> MIN(x, y)
none
innermost
|
|
trivial
s(x1) -> s(x1)
R
↳OC
→TRS2
↳DPs
→DP Problem 1
↳UsableRules
→DP Problem 2
↳Usable Rules (Innermost)
→DP Problem 3
↳UsableRules
→DP Problem 4
↳UsableRules
MAX(s(x), s(y)) -> MAX(x, y)
min(x, 0) -> 0
min(0, y) -> 0
min(s(x), s(y)) -> s(min(x, y))
max(x, 0) -> x
max(0, y) -> y
max(s(x), s(y)) -> s(max(x, y))
-(x, 0) -> x
-(s(x), s(y)) -> -(x, y)
gcd(s(x), s(y)) -> gcd(-(s(max(x, y)), s(min(x, y))), s(min(x, y)))
innermost
R
↳OC
→TRS2
↳DPs
→DP Problem 1
↳UsableRules
→DP Problem 2
↳UsableRules
...
→DP Problem 6
↳Size-Change Principle
→DP Problem 3
↳UsableRules
→DP Problem 4
↳UsableRules
MAX(s(x), s(y)) -> MAX(x, y)
none
innermost
|
|
trivial
s(x1) -> s(x1)
R
↳OC
→TRS2
↳DPs
→DP Problem 1
↳UsableRules
→DP Problem 2
↳UsableRules
→DP Problem 3
↳Usable Rules (Innermost)
→DP Problem 4
↳UsableRules
-'(s(x), s(y)) -> -'(x, y)
min(x, 0) -> 0
min(0, y) -> 0
min(s(x), s(y)) -> s(min(x, y))
max(x, 0) -> x
max(0, y) -> y
max(s(x), s(y)) -> s(max(x, y))
-(x, 0) -> x
-(s(x), s(y)) -> -(x, y)
gcd(s(x), s(y)) -> gcd(-(s(max(x, y)), s(min(x, y))), s(min(x, y)))
innermost
R
↳OC
→TRS2
↳DPs
→DP Problem 1
↳UsableRules
→DP Problem 2
↳UsableRules
→DP Problem 3
↳UsableRules
...
→DP Problem 7
↳Size-Change Principle
→DP Problem 4
↳UsableRules
-'(s(x), s(y)) -> -'(x, y)
none
innermost
|
|
trivial
s(x1) -> s(x1)
R
↳OC
→TRS2
↳DPs
→DP Problem 1
↳UsableRules
→DP Problem 2
↳UsableRules
→DP Problem 3
↳UsableRules
→DP Problem 4
↳Usable Rules (Innermost)
GCD(s(x), s(y)) -> GCD(-(s(max(x, y)), s(min(x, y))), s(min(x, y)))
min(x, 0) -> 0
min(0, y) -> 0
min(s(x), s(y)) -> s(min(x, y))
max(x, 0) -> x
max(0, y) -> y
max(s(x), s(y)) -> s(max(x, y))
-(x, 0) -> x
-(s(x), s(y)) -> -(x, y)
gcd(s(x), s(y)) -> gcd(-(s(max(x, y)), s(min(x, y))), s(min(x, y)))
innermost
R
↳OC
→TRS2
↳DPs
→DP Problem 1
↳UsableRules
→DP Problem 2
↳UsableRules
→DP Problem 3
↳UsableRules
→DP Problem 4
↳UsableRules
...
→DP Problem 8
↳Narrowing Transformation
GCD(s(x), s(y)) -> GCD(-(s(max(x, y)), s(min(x, y))), s(min(x, y)))
max(s(x), s(y)) -> s(max(x, y))
max(x, 0) -> x
max(0, y) -> y
min(0, y) -> 0
min(s(x), s(y)) -> s(min(x, y))
min(x, 0) -> 0
-(s(x), s(y)) -> -(x, y)
-(x, 0) -> x
innermost
10 new Dependency Pairs are created:
GCD(s(x), s(y)) -> GCD(-(s(max(x, y)), s(min(x, y))), s(min(x, y)))
GCD(s(x''), s(y'')) -> GCD(-(max(x'', y''), min(x'', y'')), s(min(x'', y'')))
GCD(s(s(x'')), s(s(y''))) -> GCD(-(s(s(max(x'', y''))), s(min(s(x''), s(y'')))), s(min(s(x''), s(y''))))
GCD(s(x''), s(0)) -> GCD(-(s(x''), s(min(x'', 0))), s(min(x'', 0)))
GCD(s(0), s(y'')) -> GCD(-(s(y''), s(min(0, y''))), s(min(0, y'')))
GCD(s(0), s(y'')) -> GCD(-(s(max(0, y'')), s(0)), s(min(0, y'')))
GCD(s(s(x'')), s(s(y''))) -> GCD(-(s(max(s(x''), s(y''))), s(s(min(x'', y'')))), s(min(s(x''), s(y''))))
GCD(s(x''), s(0)) -> GCD(-(s(max(x'', 0)), s(0)), s(min(x'', 0)))
GCD(s(0), s(y'')) -> GCD(-(s(max(0, y'')), s(min(0, y''))), s(0))
GCD(s(s(x'')), s(s(y''))) -> GCD(-(s(max(s(x''), s(y''))), s(min(s(x''), s(y'')))), s(s(min(x'', y''))))
GCD(s(x''), s(0)) -> GCD(-(s(max(x'', 0)), s(min(x'', 0))), s(0))
R
↳OC
→TRS2
↳DPs
→DP Problem 1
↳UsableRules
→DP Problem 2
↳UsableRules
→DP Problem 3
↳UsableRules
→DP Problem 4
↳UsableRules
...
→DP Problem 9
↳Remaining Obligation(s)
GCD(s(s(x'')), s(s(y''))) -> GCD(-(s(max(s(x''), s(y''))), s(min(s(x''), s(y'')))), s(s(min(x'', y''))))
GCD(s(x''), s(0)) -> GCD(-(s(max(x'', 0)), s(min(x'', 0))), s(0))
GCD(s(0), s(y'')) -> GCD(-(s(max(0, y'')), s(min(0, y''))), s(0))
GCD(s(x''), s(0)) -> GCD(-(s(max(x'', 0)), s(0)), s(min(x'', 0)))
GCD(s(s(x'')), s(s(y''))) -> GCD(-(s(max(s(x''), s(y''))), s(s(min(x'', y'')))), s(min(s(x''), s(y''))))
GCD(s(0), s(y'')) -> GCD(-(s(max(0, y'')), s(0)), s(min(0, y'')))
GCD(s(0), s(y'')) -> GCD(-(s(y''), s(min(0, y''))), s(min(0, y'')))
GCD(s(x''), s(0)) -> GCD(-(s(x''), s(min(x'', 0))), s(min(x'', 0)))
GCD(s(s(x'')), s(s(y''))) -> GCD(-(s(s(max(x'', y''))), s(min(s(x''), s(y'')))), s(min(s(x''), s(y''))))
GCD(s(x''), s(y'')) -> GCD(-(max(x'', y''), min(x'', y'')), s(min(x'', y'')))
max(s(x), s(y)) -> s(max(x, y))
max(x, 0) -> x
max(0, y) -> y
min(0, y) -> 0
min(s(x), s(y)) -> s(min(x, y))
min(x, 0) -> 0
-(s(x), s(y)) -> -(x, y)
-(x, 0) -> x
innermost