0 Prolog
↳1 PrologToPiTRSProof (⇐)
↳2 PiTRS
↳3 DependencyPairsProof (⇔)
↳4 PiDP
↳5 DependencyGraphProof (⇔)
↳6 AND
↳7 PiDP
↳8 UsableRulesProof (⇔)
↳9 PiDP
↳10 PiDPToQDPProof (⇐)
↳11 QDP
↳12 QDPSizeChangeProof (⇔)
↳13 TRUE
↳14 PiDP
↳15 PiDPToQDPProof (⇐)
↳16 QDP
↳17 QDPSizeChangeProof (⇔)
↳18 TRUE
↳19 PrologToPiTRSProof (⇐)
↳20 PiTRS
↳21 DependencyPairsProof (⇔)
↳22 PiDP
↳23 DependencyGraphProof (⇔)
↳24 AND
↳25 PiDP
↳26 UsableRulesProof (⇔)
↳27 PiDP
↳28 PiDPToQDPProof (⇐)
↳29 QDP
↳30 QDPSizeChangeProof (⇔)
↳31 TRUE
↳32 PiDP
front_in_ga(void, []) → front_out_ga(void, [])
front_in_ga(tree(X, void, void), .(X, [])) → front_out_ga(tree(X, void, void), .(X, []))
front_in_ga(tree(X1, L, R), Xs) → U1_ga(X1, L, R, Xs, front_in_ga(L, Ls))
U1_ga(X1, L, R, Xs, front_out_ga(L, Ls)) → U2_ga(X1, L, R, Xs, Ls, front_in_ga(R, Rs))
U2_ga(X1, L, R, Xs, Ls, front_out_ga(R, Rs)) → U3_ga(X1, L, R, Xs, app_in_gga(Ls, Rs, Xs))
app_in_gga([], X, X) → app_out_gga([], X, X)
app_in_gga(.(X, Xs), Ys, .(X, Zs)) → U4_gga(X, Xs, Ys, Zs, app_in_gga(Xs, Ys, Zs))
U4_gga(X, Xs, Ys, Zs, app_out_gga(Xs, Ys, Zs)) → app_out_gga(.(X, Xs), Ys, .(X, Zs))
U3_ga(X1, L, R, Xs, app_out_gga(Ls, Rs, Xs)) → front_out_ga(tree(X1, L, R), Xs)
Infinitary Constructor Rewriting Termination of PiTRS implies Termination of Prolog
front_in_ga(void, []) → front_out_ga(void, [])
front_in_ga(tree(X, void, void), .(X, [])) → front_out_ga(tree(X, void, void), .(X, []))
front_in_ga(tree(X1, L, R), Xs) → U1_ga(X1, L, R, Xs, front_in_ga(L, Ls))
U1_ga(X1, L, R, Xs, front_out_ga(L, Ls)) → U2_ga(X1, L, R, Xs, Ls, front_in_ga(R, Rs))
U2_ga(X1, L, R, Xs, Ls, front_out_ga(R, Rs)) → U3_ga(X1, L, R, Xs, app_in_gga(Ls, Rs, Xs))
app_in_gga([], X, X) → app_out_gga([], X, X)
app_in_gga(.(X, Xs), Ys, .(X, Zs)) → U4_gga(X, Xs, Ys, Zs, app_in_gga(Xs, Ys, Zs))
U4_gga(X, Xs, Ys, Zs, app_out_gga(Xs, Ys, Zs)) → app_out_gga(.(X, Xs), Ys, .(X, Zs))
U3_ga(X1, L, R, Xs, app_out_gga(Ls, Rs, Xs)) → front_out_ga(tree(X1, L, R), Xs)
FRONT_IN_GA(tree(X1, L, R), Xs) → U1_GA(X1, L, R, Xs, front_in_ga(L, Ls))
FRONT_IN_GA(tree(X1, L, R), Xs) → FRONT_IN_GA(L, Ls)
U1_GA(X1, L, R, Xs, front_out_ga(L, Ls)) → U2_GA(X1, L, R, Xs, Ls, front_in_ga(R, Rs))
U1_GA(X1, L, R, Xs, front_out_ga(L, Ls)) → FRONT_IN_GA(R, Rs)
U2_GA(X1, L, R, Xs, Ls, front_out_ga(R, Rs)) → U3_GA(X1, L, R, Xs, app_in_gga(Ls, Rs, Xs))
U2_GA(X1, L, R, Xs, Ls, front_out_ga(R, Rs)) → APP_IN_GGA(Ls, Rs, Xs)
APP_IN_GGA(.(X, Xs), Ys, .(X, Zs)) → U4_GGA(X, Xs, Ys, Zs, app_in_gga(Xs, Ys, Zs))
APP_IN_GGA(.(X, Xs), Ys, .(X, Zs)) → APP_IN_GGA(Xs, Ys, Zs)
front_in_ga(void, []) → front_out_ga(void, [])
front_in_ga(tree(X, void, void), .(X, [])) → front_out_ga(tree(X, void, void), .(X, []))
front_in_ga(tree(X1, L, R), Xs) → U1_ga(X1, L, R, Xs, front_in_ga(L, Ls))
U1_ga(X1, L, R, Xs, front_out_ga(L, Ls)) → U2_ga(X1, L, R, Xs, Ls, front_in_ga(R, Rs))
U2_ga(X1, L, R, Xs, Ls, front_out_ga(R, Rs)) → U3_ga(X1, L, R, Xs, app_in_gga(Ls, Rs, Xs))
app_in_gga([], X, X) → app_out_gga([], X, X)
app_in_gga(.(X, Xs), Ys, .(X, Zs)) → U4_gga(X, Xs, Ys, Zs, app_in_gga(Xs, Ys, Zs))
U4_gga(X, Xs, Ys, Zs, app_out_gga(Xs, Ys, Zs)) → app_out_gga(.(X, Xs), Ys, .(X, Zs))
U3_ga(X1, L, R, Xs, app_out_gga(Ls, Rs, Xs)) → front_out_ga(tree(X1, L, R), Xs)
FRONT_IN_GA(tree(X1, L, R), Xs) → U1_GA(X1, L, R, Xs, front_in_ga(L, Ls))
FRONT_IN_GA(tree(X1, L, R), Xs) → FRONT_IN_GA(L, Ls)
U1_GA(X1, L, R, Xs, front_out_ga(L, Ls)) → U2_GA(X1, L, R, Xs, Ls, front_in_ga(R, Rs))
U1_GA(X1, L, R, Xs, front_out_ga(L, Ls)) → FRONT_IN_GA(R, Rs)
U2_GA(X1, L, R, Xs, Ls, front_out_ga(R, Rs)) → U3_GA(X1, L, R, Xs, app_in_gga(Ls, Rs, Xs))
U2_GA(X1, L, R, Xs, Ls, front_out_ga(R, Rs)) → APP_IN_GGA(Ls, Rs, Xs)
APP_IN_GGA(.(X, Xs), Ys, .(X, Zs)) → U4_GGA(X, Xs, Ys, Zs, app_in_gga(Xs, Ys, Zs))
APP_IN_GGA(.(X, Xs), Ys, .(X, Zs)) → APP_IN_GGA(Xs, Ys, Zs)
front_in_ga(void, []) → front_out_ga(void, [])
front_in_ga(tree(X, void, void), .(X, [])) → front_out_ga(tree(X, void, void), .(X, []))
front_in_ga(tree(X1, L, R), Xs) → U1_ga(X1, L, R, Xs, front_in_ga(L, Ls))
U1_ga(X1, L, R, Xs, front_out_ga(L, Ls)) → U2_ga(X1, L, R, Xs, Ls, front_in_ga(R, Rs))
U2_ga(X1, L, R, Xs, Ls, front_out_ga(R, Rs)) → U3_ga(X1, L, R, Xs, app_in_gga(Ls, Rs, Xs))
app_in_gga([], X, X) → app_out_gga([], X, X)
app_in_gga(.(X, Xs), Ys, .(X, Zs)) → U4_gga(X, Xs, Ys, Zs, app_in_gga(Xs, Ys, Zs))
U4_gga(X, Xs, Ys, Zs, app_out_gga(Xs, Ys, Zs)) → app_out_gga(.(X, Xs), Ys, .(X, Zs))
U3_ga(X1, L, R, Xs, app_out_gga(Ls, Rs, Xs)) → front_out_ga(tree(X1, L, R), Xs)
APP_IN_GGA(.(X, Xs), Ys, .(X, Zs)) → APP_IN_GGA(Xs, Ys, Zs)
front_in_ga(void, []) → front_out_ga(void, [])
front_in_ga(tree(X, void, void), .(X, [])) → front_out_ga(tree(X, void, void), .(X, []))
front_in_ga(tree(X1, L, R), Xs) → U1_ga(X1, L, R, Xs, front_in_ga(L, Ls))
U1_ga(X1, L, R, Xs, front_out_ga(L, Ls)) → U2_ga(X1, L, R, Xs, Ls, front_in_ga(R, Rs))
U2_ga(X1, L, R, Xs, Ls, front_out_ga(R, Rs)) → U3_ga(X1, L, R, Xs, app_in_gga(Ls, Rs, Xs))
app_in_gga([], X, X) → app_out_gga([], X, X)
app_in_gga(.(X, Xs), Ys, .(X, Zs)) → U4_gga(X, Xs, Ys, Zs, app_in_gga(Xs, Ys, Zs))
U4_gga(X, Xs, Ys, Zs, app_out_gga(Xs, Ys, Zs)) → app_out_gga(.(X, Xs), Ys, .(X, Zs))
U3_ga(X1, L, R, Xs, app_out_gga(Ls, Rs, Xs)) → front_out_ga(tree(X1, L, R), Xs)
APP_IN_GGA(.(X, Xs), Ys, .(X, Zs)) → APP_IN_GGA(Xs, Ys, Zs)
APP_IN_GGA(.(X, Xs), Ys) → APP_IN_GGA(Xs, Ys)
From the DPs we obtained the following set of size-change graphs:
U1_GA(X1, L, R, Xs, front_out_ga(L, Ls)) → FRONT_IN_GA(R, Rs)
FRONT_IN_GA(tree(X1, L, R), Xs) → U1_GA(X1, L, R, Xs, front_in_ga(L, Ls))
FRONT_IN_GA(tree(X1, L, R), Xs) → FRONT_IN_GA(L, Ls)
front_in_ga(void, []) → front_out_ga(void, [])
front_in_ga(tree(X, void, void), .(X, [])) → front_out_ga(tree(X, void, void), .(X, []))
front_in_ga(tree(X1, L, R), Xs) → U1_ga(X1, L, R, Xs, front_in_ga(L, Ls))
U1_ga(X1, L, R, Xs, front_out_ga(L, Ls)) → U2_ga(X1, L, R, Xs, Ls, front_in_ga(R, Rs))
U2_ga(X1, L, R, Xs, Ls, front_out_ga(R, Rs)) → U3_ga(X1, L, R, Xs, app_in_gga(Ls, Rs, Xs))
app_in_gga([], X, X) → app_out_gga([], X, X)
app_in_gga(.(X, Xs), Ys, .(X, Zs)) → U4_gga(X, Xs, Ys, Zs, app_in_gga(Xs, Ys, Zs))
U4_gga(X, Xs, Ys, Zs, app_out_gga(Xs, Ys, Zs)) → app_out_gga(.(X, Xs), Ys, .(X, Zs))
U3_ga(X1, L, R, Xs, app_out_gga(Ls, Rs, Xs)) → front_out_ga(tree(X1, L, R), Xs)
U1_GA(R, front_out_ga(Ls)) → FRONT_IN_GA(R)
FRONT_IN_GA(tree(X1, L, R)) → U1_GA(R, front_in_ga(L))
FRONT_IN_GA(tree(X1, L, R)) → FRONT_IN_GA(L)
front_in_ga(void) → front_out_ga([])
front_in_ga(tree(X, void, void)) → front_out_ga(.(X, []))
front_in_ga(tree(X1, L, R)) → U1_ga(R, front_in_ga(L))
U1_ga(R, front_out_ga(Ls)) → U2_ga(Ls, front_in_ga(R))
U2_ga(Ls, front_out_ga(Rs)) → U3_ga(app_in_gga(Ls, Rs))
app_in_gga([], X) → app_out_gga(X)
app_in_gga(.(X, Xs), Ys) → U4_gga(X, app_in_gga(Xs, Ys))
U4_gga(X, app_out_gga(Zs)) → app_out_gga(.(X, Zs))
U3_ga(app_out_gga(Xs)) → front_out_ga(Xs)
front_in_ga(x0)
U1_ga(x0, x1)
U2_ga(x0, x1)
app_in_gga(x0, x1)
U4_gga(x0, x1)
U3_ga(x0)
From the DPs we obtained the following set of size-change graphs:
front_in_ga(void, []) → front_out_ga(void, [])
front_in_ga(tree(X, void, void), .(X, [])) → front_out_ga(tree(X, void, void), .(X, []))
front_in_ga(tree(X1, L, R), Xs) → U1_ga(X1, L, R, Xs, front_in_ga(L, Ls))
U1_ga(X1, L, R, Xs, front_out_ga(L, Ls)) → U2_ga(X1, L, R, Xs, Ls, front_in_ga(R, Rs))
U2_ga(X1, L, R, Xs, Ls, front_out_ga(R, Rs)) → U3_ga(X1, L, R, Xs, app_in_gga(Ls, Rs, Xs))
app_in_gga([], X, X) → app_out_gga([], X, X)
app_in_gga(.(X, Xs), Ys, .(X, Zs)) → U4_gga(X, Xs, Ys, Zs, app_in_gga(Xs, Ys, Zs))
U4_gga(X, Xs, Ys, Zs, app_out_gga(Xs, Ys, Zs)) → app_out_gga(.(X, Xs), Ys, .(X, Zs))
U3_ga(X1, L, R, Xs, app_out_gga(Ls, Rs, Xs)) → front_out_ga(tree(X1, L, R), Xs)
Infinitary Constructor Rewriting Termination of PiTRS implies Termination of Prolog
front_in_ga(void, []) → front_out_ga(void, [])
front_in_ga(tree(X, void, void), .(X, [])) → front_out_ga(tree(X, void, void), .(X, []))
front_in_ga(tree(X1, L, R), Xs) → U1_ga(X1, L, R, Xs, front_in_ga(L, Ls))
U1_ga(X1, L, R, Xs, front_out_ga(L, Ls)) → U2_ga(X1, L, R, Xs, Ls, front_in_ga(R, Rs))
U2_ga(X1, L, R, Xs, Ls, front_out_ga(R, Rs)) → U3_ga(X1, L, R, Xs, app_in_gga(Ls, Rs, Xs))
app_in_gga([], X, X) → app_out_gga([], X, X)
app_in_gga(.(X, Xs), Ys, .(X, Zs)) → U4_gga(X, Xs, Ys, Zs, app_in_gga(Xs, Ys, Zs))
U4_gga(X, Xs, Ys, Zs, app_out_gga(Xs, Ys, Zs)) → app_out_gga(.(X, Xs), Ys, .(X, Zs))
U3_ga(X1, L, R, Xs, app_out_gga(Ls, Rs, Xs)) → front_out_ga(tree(X1, L, R), Xs)
FRONT_IN_GA(tree(X1, L, R), Xs) → U1_GA(X1, L, R, Xs, front_in_ga(L, Ls))
FRONT_IN_GA(tree(X1, L, R), Xs) → FRONT_IN_GA(L, Ls)
U1_GA(X1, L, R, Xs, front_out_ga(L, Ls)) → U2_GA(X1, L, R, Xs, Ls, front_in_ga(R, Rs))
U1_GA(X1, L, R, Xs, front_out_ga(L, Ls)) → FRONT_IN_GA(R, Rs)
U2_GA(X1, L, R, Xs, Ls, front_out_ga(R, Rs)) → U3_GA(X1, L, R, Xs, app_in_gga(Ls, Rs, Xs))
U2_GA(X1, L, R, Xs, Ls, front_out_ga(R, Rs)) → APP_IN_GGA(Ls, Rs, Xs)
APP_IN_GGA(.(X, Xs), Ys, .(X, Zs)) → U4_GGA(X, Xs, Ys, Zs, app_in_gga(Xs, Ys, Zs))
APP_IN_GGA(.(X, Xs), Ys, .(X, Zs)) → APP_IN_GGA(Xs, Ys, Zs)
front_in_ga(void, []) → front_out_ga(void, [])
front_in_ga(tree(X, void, void), .(X, [])) → front_out_ga(tree(X, void, void), .(X, []))
front_in_ga(tree(X1, L, R), Xs) → U1_ga(X1, L, R, Xs, front_in_ga(L, Ls))
U1_ga(X1, L, R, Xs, front_out_ga(L, Ls)) → U2_ga(X1, L, R, Xs, Ls, front_in_ga(R, Rs))
U2_ga(X1, L, R, Xs, Ls, front_out_ga(R, Rs)) → U3_ga(X1, L, R, Xs, app_in_gga(Ls, Rs, Xs))
app_in_gga([], X, X) → app_out_gga([], X, X)
app_in_gga(.(X, Xs), Ys, .(X, Zs)) → U4_gga(X, Xs, Ys, Zs, app_in_gga(Xs, Ys, Zs))
U4_gga(X, Xs, Ys, Zs, app_out_gga(Xs, Ys, Zs)) → app_out_gga(.(X, Xs), Ys, .(X, Zs))
U3_ga(X1, L, R, Xs, app_out_gga(Ls, Rs, Xs)) → front_out_ga(tree(X1, L, R), Xs)
FRONT_IN_GA(tree(X1, L, R), Xs) → U1_GA(X1, L, R, Xs, front_in_ga(L, Ls))
FRONT_IN_GA(tree(X1, L, R), Xs) → FRONT_IN_GA(L, Ls)
U1_GA(X1, L, R, Xs, front_out_ga(L, Ls)) → U2_GA(X1, L, R, Xs, Ls, front_in_ga(R, Rs))
U1_GA(X1, L, R, Xs, front_out_ga(L, Ls)) → FRONT_IN_GA(R, Rs)
U2_GA(X1, L, R, Xs, Ls, front_out_ga(R, Rs)) → U3_GA(X1, L, R, Xs, app_in_gga(Ls, Rs, Xs))
U2_GA(X1, L, R, Xs, Ls, front_out_ga(R, Rs)) → APP_IN_GGA(Ls, Rs, Xs)
APP_IN_GGA(.(X, Xs), Ys, .(X, Zs)) → U4_GGA(X, Xs, Ys, Zs, app_in_gga(Xs, Ys, Zs))
APP_IN_GGA(.(X, Xs), Ys, .(X, Zs)) → APP_IN_GGA(Xs, Ys, Zs)
front_in_ga(void, []) → front_out_ga(void, [])
front_in_ga(tree(X, void, void), .(X, [])) → front_out_ga(tree(X, void, void), .(X, []))
front_in_ga(tree(X1, L, R), Xs) → U1_ga(X1, L, R, Xs, front_in_ga(L, Ls))
U1_ga(X1, L, R, Xs, front_out_ga(L, Ls)) → U2_ga(X1, L, R, Xs, Ls, front_in_ga(R, Rs))
U2_ga(X1, L, R, Xs, Ls, front_out_ga(R, Rs)) → U3_ga(X1, L, R, Xs, app_in_gga(Ls, Rs, Xs))
app_in_gga([], X, X) → app_out_gga([], X, X)
app_in_gga(.(X, Xs), Ys, .(X, Zs)) → U4_gga(X, Xs, Ys, Zs, app_in_gga(Xs, Ys, Zs))
U4_gga(X, Xs, Ys, Zs, app_out_gga(Xs, Ys, Zs)) → app_out_gga(.(X, Xs), Ys, .(X, Zs))
U3_ga(X1, L, R, Xs, app_out_gga(Ls, Rs, Xs)) → front_out_ga(tree(X1, L, R), Xs)
APP_IN_GGA(.(X, Xs), Ys, .(X, Zs)) → APP_IN_GGA(Xs, Ys, Zs)
front_in_ga(void, []) → front_out_ga(void, [])
front_in_ga(tree(X, void, void), .(X, [])) → front_out_ga(tree(X, void, void), .(X, []))
front_in_ga(tree(X1, L, R), Xs) → U1_ga(X1, L, R, Xs, front_in_ga(L, Ls))
U1_ga(X1, L, R, Xs, front_out_ga(L, Ls)) → U2_ga(X1, L, R, Xs, Ls, front_in_ga(R, Rs))
U2_ga(X1, L, R, Xs, Ls, front_out_ga(R, Rs)) → U3_ga(X1, L, R, Xs, app_in_gga(Ls, Rs, Xs))
app_in_gga([], X, X) → app_out_gga([], X, X)
app_in_gga(.(X, Xs), Ys, .(X, Zs)) → U4_gga(X, Xs, Ys, Zs, app_in_gga(Xs, Ys, Zs))
U4_gga(X, Xs, Ys, Zs, app_out_gga(Xs, Ys, Zs)) → app_out_gga(.(X, Xs), Ys, .(X, Zs))
U3_ga(X1, L, R, Xs, app_out_gga(Ls, Rs, Xs)) → front_out_ga(tree(X1, L, R), Xs)
APP_IN_GGA(.(X, Xs), Ys, .(X, Zs)) → APP_IN_GGA(Xs, Ys, Zs)
APP_IN_GGA(.(X, Xs), Ys) → APP_IN_GGA(Xs, Ys)
From the DPs we obtained the following set of size-change graphs:
U1_GA(X1, L, R, Xs, front_out_ga(L, Ls)) → FRONT_IN_GA(R, Rs)
FRONT_IN_GA(tree(X1, L, R), Xs) → U1_GA(X1, L, R, Xs, front_in_ga(L, Ls))
FRONT_IN_GA(tree(X1, L, R), Xs) → FRONT_IN_GA(L, Ls)
front_in_ga(void, []) → front_out_ga(void, [])
front_in_ga(tree(X, void, void), .(X, [])) → front_out_ga(tree(X, void, void), .(X, []))
front_in_ga(tree(X1, L, R), Xs) → U1_ga(X1, L, R, Xs, front_in_ga(L, Ls))
U1_ga(X1, L, R, Xs, front_out_ga(L, Ls)) → U2_ga(X1, L, R, Xs, Ls, front_in_ga(R, Rs))
U2_ga(X1, L, R, Xs, Ls, front_out_ga(R, Rs)) → U3_ga(X1, L, R, Xs, app_in_gga(Ls, Rs, Xs))
app_in_gga([], X, X) → app_out_gga([], X, X)
app_in_gga(.(X, Xs), Ys, .(X, Zs)) → U4_gga(X, Xs, Ys, Zs, app_in_gga(Xs, Ys, Zs))
U4_gga(X, Xs, Ys, Zs, app_out_gga(Xs, Ys, Zs)) → app_out_gga(.(X, Xs), Ys, .(X, Zs))
U3_ga(X1, L, R, Xs, app_out_gga(Ls, Rs, Xs)) → front_out_ga(tree(X1, L, R), Xs)