(0) Obligation:
Q restricted rewrite system:
The TRS R consists of the following rules:
g(A) → A
g(B) → A
g(B) → B
g(C) → A
g(C) → B
g(C) → C
foldB(t, 0) → t
foldB(t, s(n)) → f(foldB(t, n), B)
foldC(t, 0) → t
foldC(t, s(n)) → f(foldC(t, n), C)
f(t, x) → f'(t, g(x))
f'(triple(a, b, c), C) → triple(a, b, s(c))
f'(triple(a, b, c), B) → f(triple(a, b, c), A)
f'(triple(a, b, c), A) → f''(foldB(triple(s(a), 0, c), b))
f''(triple(a, b, c)) → foldC(triple(a, b, 0), c)
Q is empty.
(1) QTRSRRRProof (EQUIVALENT transformation)
Used ordering:
Polynomial interpretation [POLO]:
POL(0) = 0
POL(A) = 1
POL(B) = 1
POL(C) = 2
POL(f(x1, x2)) = x1 + x2
POL(f'(x1, x2)) = x1 + x2
POL(f''(x1)) = x1
POL(foldB(x1, x2)) = x1 + 2·x2
POL(foldC(x1, x2)) = x1 + 2·x2
POL(g(x1)) = x1
POL(s(x1)) = 1 + x1
POL(triple(x1, x2, x3)) = x1 + 2·x2 + 2·x3
With this ordering the following rules can be removed by the rule removal processor [LPAR04] because they are oriented strictly:
g(C) → A
g(C) → B
foldB(t, s(n)) → f(foldB(t, n), B)
(2) Obligation:
Q restricted rewrite system:
The TRS R consists of the following rules:
g(A) → A
g(B) → A
g(B) → B
g(C) → C
foldB(t, 0) → t
foldC(t, 0) → t
foldC(t, s(n)) → f(foldC(t, n), C)
f(t, x) → f'(t, g(x))
f'(triple(a, b, c), C) → triple(a, b, s(c))
f'(triple(a, b, c), B) → f(triple(a, b, c), A)
f'(triple(a, b, c), A) → f''(foldB(triple(s(a), 0, c), b))
f''(triple(a, b, c)) → foldC(triple(a, b, 0), c)
Q is empty.
(3) QTRSRRRProof (EQUIVALENT transformation)
Used ordering:
Polynomial interpretation [POLO]:
POL(0) = 0
POL(A) = 4
POL(B) = 5
POL(C) = 0
POL(f(x1, x2)) = x1 + x2
POL(f'(x1, x2)) = x1 + x2
POL(f''(x1)) = 2 + x1
POL(foldB(x1, x2)) = 1 + x1 + x2
POL(foldC(x1, x2)) = 1 + x1 + x2
POL(g(x1)) = x1
POL(s(x1)) = x1
POL(triple(x1, x2, x3)) = x1 + x2 + x3
With this ordering the following rules can be removed by the rule removal processor [LPAR04] because they are oriented strictly:
g(B) → A
foldB(t, 0) → t
foldC(t, 0) → t
f'(triple(a, b, c), B) → f(triple(a, b, c), A)
f'(triple(a, b, c), A) → f''(foldB(triple(s(a), 0, c), b))
f''(triple(a, b, c)) → foldC(triple(a, b, 0), c)
(4) Obligation:
Q restricted rewrite system:
The TRS R consists of the following rules:
g(A) → A
g(B) → B
g(C) → C
foldC(t, s(n)) → f(foldC(t, n), C)
f(t, x) → f'(t, g(x))
f'(triple(a, b, c), C) → triple(a, b, s(c))
Q is empty.
(5) QTRSRRRProof (EQUIVALENT transformation)
Used ordering:
Recursive path order with status [RPO].
Quasi-Precedence:
foldC2 > C
foldC2 > f2 > g1
foldC2 > f2 > f'2 > s1
foldC2 > f2 > f'2 > triple3
Status:
trivial
With this ordering the following rules can be removed by the rule removal processor [LPAR04] because they are oriented strictly:
g(A) → A
g(B) → B
g(C) → C
foldC(t, s(n)) → f(foldC(t, n), C)
f(t, x) → f'(t, g(x))
f'(triple(a, b, c), C) → triple(a, b, s(c))
(6) Obligation:
Q restricted rewrite system:
R is empty.
Q is empty.
(7) RisEmptyProof (EQUIVALENT transformation)
The TRS R is empty. Hence, termination is trivially proven.
(8) TRUE
(9) RisEmptyProof (EQUIVALENT transformation)
The TRS R is empty. Hence, termination is trivially proven.
(10) TRUE
(11) RisEmptyProof (EQUIVALENT transformation)
The TRS R is empty. Hence, termination is trivially proven.
(12) TRUE