YES
f(X) → cons(X, f(g(X)))
g(0) → s(0)
g(s(X)) → s(s(g(X)))
sel(0, cons(X, Y)) → X
sel(s(X), cons(Y, Z)) → sel(X, Z)
f: {1}
cons: {1}
g: {1}
0: empty set
s: {1}
sel: {1, 2}
↳ CSR
↳ Zantema-Transformation
f(X) → cons(X, f(g(X)))
g(0) → s(0)
g(s(X)) → s(s(g(X)))
sel(0, cons(X, Y)) → X
sel(s(X), cons(Y, Z)) → sel(X, Z)
f: {1}
cons: {1}
g: {1}
0: empty set
s: {1}
sel: {1, 2}
We applied the Zantema [34] to transform the context-sensitive TRS to an usual TRS.
↳ CSR
↳ Zantema-Transformation
↳ QTRS
↳ DependencyPairsProof
f(X) → cons(X, fInact(g(X)))
g(0) → s(0)
g(s(X)) → s(s(g(X)))
sel(0, cons(X, Y)) → X
sel(s(X), cons(Y, Z)) → sel(X, a(Z))
a(x) → x
f(x1) → fInact(x1)
a(fInact(x1)) → f(x1)
SEL(s(X), cons(Y, Z)) → A(Z)
SEL(s(X), cons(Y, Z)) → SEL(X, a(Z))
F(X) → G(X)
G(s(X)) → G(X)
A(fInact(x1)) → F(x1)
f(X) → cons(X, fInact(g(X)))
g(0) → s(0)
g(s(X)) → s(s(g(X)))
sel(0, cons(X, Y)) → X
sel(s(X), cons(Y, Z)) → sel(X, a(Z))
a(x) → x
f(x1) → fInact(x1)
a(fInact(x1)) → f(x1)
↳ CSR
↳ Zantema-Transformation
↳ QTRS
↳ DependencyPairsProof
↳ QDP
↳ DependencyGraphProof
SEL(s(X), cons(Y, Z)) → A(Z)
SEL(s(X), cons(Y, Z)) → SEL(X, a(Z))
F(X) → G(X)
G(s(X)) → G(X)
A(fInact(x1)) → F(x1)
f(X) → cons(X, fInact(g(X)))
g(0) → s(0)
g(s(X)) → s(s(g(X)))
sel(0, cons(X, Y)) → X
sel(s(X), cons(Y, Z)) → sel(X, a(Z))
a(x) → x
f(x1) → fInact(x1)
a(fInact(x1)) → f(x1)
↳ CSR
↳ Zantema-Transformation
↳ QTRS
↳ DependencyPairsProof
↳ QDP
↳ DependencyGraphProof
↳ AND
↳ QDP
↳ UsableRulesProof
↳ QDP
G(s(X)) → G(X)
f(X) → cons(X, fInact(g(X)))
g(0) → s(0)
g(s(X)) → s(s(g(X)))
sel(0, cons(X, Y)) → X
sel(s(X), cons(Y, Z)) → sel(X, a(Z))
a(x) → x
f(x1) → fInact(x1)
a(fInact(x1)) → f(x1)
↳ CSR
↳ Zantema-Transformation
↳ QTRS
↳ DependencyPairsProof
↳ QDP
↳ DependencyGraphProof
↳ AND
↳ QDP
↳ UsableRulesProof
↳ QDP
↳ QDPSizeChangeProof
↳ QDP
G(s(X)) → G(X)
From the DPs we obtained the following set of size-change graphs:
↳ CSR
↳ Zantema-Transformation
↳ QTRS
↳ DependencyPairsProof
↳ QDP
↳ DependencyGraphProof
↳ AND
↳ QDP
↳ QDP
↳ QDPSizeChangeProof
SEL(s(X), cons(Y, Z)) → SEL(X, a(Z))
f(X) → cons(X, fInact(g(X)))
g(0) → s(0)
g(s(X)) → s(s(g(X)))
sel(0, cons(X, Y)) → X
sel(s(X), cons(Y, Z)) → sel(X, a(Z))
a(x) → x
f(x1) → fInact(x1)
a(fInact(x1)) → f(x1)
From the DPs we obtained the following set of size-change graphs: