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 UsableRulesProof (⇔)
↳16 PiDP
↳17 PiDPToQDPProof (⇐)
↳18 QDP
↳19 NonTerminationProof (⇔)
↳20 FALSE
↳21 PiDP
↳22 UsableRulesProof (⇔)
↳23 PiDP
↳24 PiDPToQDPProof (⇐)
↳25 QDP
↳26 QDPSizeChangeProof (⇔)
↳27 TRUE
↳28 PrologToPiTRSProof (⇐)
↳29 PiTRS
↳30 DependencyPairsProof (⇔)
↳31 PiDP
↳32 DependencyGraphProof (⇔)
↳33 AND
↳34 PiDP
↳35 UsableRulesProof (⇔)
↳36 PiDP
↳37 PiDPToQDPProof (⇐)
↳38 QDP
↳39 QDPSizeChangeProof (⇔)
↳40 TRUE
↳41 PiDP
↳42 UsableRulesProof (⇔)
↳43 PiDP
↳44 PiDPToQDPProof (⇐)
↳45 QDP
↳46 NonTerminationProof (⇔)
↳47 FALSE
↳48 PiDP
↳49 UsableRulesProof (⇔)
↳50 PiDP
↳51 PiDPToQDPProof (⇐)
↳52 QDP
↳53 QDPSizeChangeProof (⇔)
↳54 TRUE
perm_in_ag([], []) → perm_out_ag([], [])
perm_in_ag(Xs, .(X, Ys)) → U1_ag(Xs, X, Ys, app_in_aaa(X1s, .(X, X2s), Xs))
app_in_aaa([], X, X) → app_out_aaa([], X, X)
app_in_aaa(.(X, Xs), Ys, .(X, Zs)) → U4_aaa(X, Xs, Ys, Zs, app_in_aaa(Xs, Ys, Zs))
U4_aaa(X, Xs, Ys, Zs, app_out_aaa(Xs, Ys, Zs)) → app_out_aaa(.(X, Xs), Ys, .(X, Zs))
U1_ag(Xs, X, Ys, app_out_aaa(X1s, .(X, X2s), Xs)) → U2_ag(Xs, X, Ys, app_in_gaa(X1s, X2s, Zs))
app_in_gaa([], X, X) → app_out_gaa([], X, X)
app_in_gaa(.(X, Xs), Ys, .(X, Zs)) → U4_gaa(X, Xs, Ys, Zs, app_in_gaa(Xs, Ys, Zs))
U4_gaa(X, Xs, Ys, Zs, app_out_gaa(Xs, Ys, Zs)) → app_out_gaa(.(X, Xs), Ys, .(X, Zs))
U2_ag(Xs, X, Ys, app_out_gaa(X1s, X2s, Zs)) → U3_ag(Xs, X, Ys, perm_in_ag(Zs, Ys))
U3_ag(Xs, X, Ys, perm_out_ag(Zs, Ys)) → perm_out_ag(Xs, .(X, Ys))
Infinitary Constructor Rewriting Termination of PiTRS implies Termination of Prolog
perm_in_ag([], []) → perm_out_ag([], [])
perm_in_ag(Xs, .(X, Ys)) → U1_ag(Xs, X, Ys, app_in_aaa(X1s, .(X, X2s), Xs))
app_in_aaa([], X, X) → app_out_aaa([], X, X)
app_in_aaa(.(X, Xs), Ys, .(X, Zs)) → U4_aaa(X, Xs, Ys, Zs, app_in_aaa(Xs, Ys, Zs))
U4_aaa(X, Xs, Ys, Zs, app_out_aaa(Xs, Ys, Zs)) → app_out_aaa(.(X, Xs), Ys, .(X, Zs))
U1_ag(Xs, X, Ys, app_out_aaa(X1s, .(X, X2s), Xs)) → U2_ag(Xs, X, Ys, app_in_gaa(X1s, X2s, Zs))
app_in_gaa([], X, X) → app_out_gaa([], X, X)
app_in_gaa(.(X, Xs), Ys, .(X, Zs)) → U4_gaa(X, Xs, Ys, Zs, app_in_gaa(Xs, Ys, Zs))
U4_gaa(X, Xs, Ys, Zs, app_out_gaa(Xs, Ys, Zs)) → app_out_gaa(.(X, Xs), Ys, .(X, Zs))
U2_ag(Xs, X, Ys, app_out_gaa(X1s, X2s, Zs)) → U3_ag(Xs, X, Ys, perm_in_ag(Zs, Ys))
U3_ag(Xs, X, Ys, perm_out_ag(Zs, Ys)) → perm_out_ag(Xs, .(X, Ys))
PERM_IN_AG(Xs, .(X, Ys)) → U1_AG(Xs, X, Ys, app_in_aaa(X1s, .(X, X2s), Xs))
PERM_IN_AG(Xs, .(X, Ys)) → APP_IN_AAA(X1s, .(X, X2s), Xs)
APP_IN_AAA(.(X, Xs), Ys, .(X, Zs)) → U4_AAA(X, Xs, Ys, Zs, app_in_aaa(Xs, Ys, Zs))
APP_IN_AAA(.(X, Xs), Ys, .(X, Zs)) → APP_IN_AAA(Xs, Ys, Zs)
U1_AG(Xs, X, Ys, app_out_aaa(X1s, .(X, X2s), Xs)) → U2_AG(Xs, X, Ys, app_in_gaa(X1s, X2s, Zs))
U1_AG(Xs, X, Ys, app_out_aaa(X1s, .(X, X2s), Xs)) → APP_IN_GAA(X1s, X2s, Zs)
APP_IN_GAA(.(X, Xs), Ys, .(X, Zs)) → U4_GAA(X, Xs, Ys, Zs, app_in_gaa(Xs, Ys, Zs))
APP_IN_GAA(.(X, Xs), Ys, .(X, Zs)) → APP_IN_GAA(Xs, Ys, Zs)
U2_AG(Xs, X, Ys, app_out_gaa(X1s, X2s, Zs)) → U3_AG(Xs, X, Ys, perm_in_ag(Zs, Ys))
U2_AG(Xs, X, Ys, app_out_gaa(X1s, X2s, Zs)) → PERM_IN_AG(Zs, Ys)
perm_in_ag([], []) → perm_out_ag([], [])
perm_in_ag(Xs, .(X, Ys)) → U1_ag(Xs, X, Ys, app_in_aaa(X1s, .(X, X2s), Xs))
app_in_aaa([], X, X) → app_out_aaa([], X, X)
app_in_aaa(.(X, Xs), Ys, .(X, Zs)) → U4_aaa(X, Xs, Ys, Zs, app_in_aaa(Xs, Ys, Zs))
U4_aaa(X, Xs, Ys, Zs, app_out_aaa(Xs, Ys, Zs)) → app_out_aaa(.(X, Xs), Ys, .(X, Zs))
U1_ag(Xs, X, Ys, app_out_aaa(X1s, .(X, X2s), Xs)) → U2_ag(Xs, X, Ys, app_in_gaa(X1s, X2s, Zs))
app_in_gaa([], X, X) → app_out_gaa([], X, X)
app_in_gaa(.(X, Xs), Ys, .(X, Zs)) → U4_gaa(X, Xs, Ys, Zs, app_in_gaa(Xs, Ys, Zs))
U4_gaa(X, Xs, Ys, Zs, app_out_gaa(Xs, Ys, Zs)) → app_out_gaa(.(X, Xs), Ys, .(X, Zs))
U2_ag(Xs, X, Ys, app_out_gaa(X1s, X2s, Zs)) → U3_ag(Xs, X, Ys, perm_in_ag(Zs, Ys))
U3_ag(Xs, X, Ys, perm_out_ag(Zs, Ys)) → perm_out_ag(Xs, .(X, Ys))
PERM_IN_AG(Xs, .(X, Ys)) → U1_AG(Xs, X, Ys, app_in_aaa(X1s, .(X, X2s), Xs))
PERM_IN_AG(Xs, .(X, Ys)) → APP_IN_AAA(X1s, .(X, X2s), Xs)
APP_IN_AAA(.(X, Xs), Ys, .(X, Zs)) → U4_AAA(X, Xs, Ys, Zs, app_in_aaa(Xs, Ys, Zs))
APP_IN_AAA(.(X, Xs), Ys, .(X, Zs)) → APP_IN_AAA(Xs, Ys, Zs)
U1_AG(Xs, X, Ys, app_out_aaa(X1s, .(X, X2s), Xs)) → U2_AG(Xs, X, Ys, app_in_gaa(X1s, X2s, Zs))
U1_AG(Xs, X, Ys, app_out_aaa(X1s, .(X, X2s), Xs)) → APP_IN_GAA(X1s, X2s, Zs)
APP_IN_GAA(.(X, Xs), Ys, .(X, Zs)) → U4_GAA(X, Xs, Ys, Zs, app_in_gaa(Xs, Ys, Zs))
APP_IN_GAA(.(X, Xs), Ys, .(X, Zs)) → APP_IN_GAA(Xs, Ys, Zs)
U2_AG(Xs, X, Ys, app_out_gaa(X1s, X2s, Zs)) → U3_AG(Xs, X, Ys, perm_in_ag(Zs, Ys))
U2_AG(Xs, X, Ys, app_out_gaa(X1s, X2s, Zs)) → PERM_IN_AG(Zs, Ys)
perm_in_ag([], []) → perm_out_ag([], [])
perm_in_ag(Xs, .(X, Ys)) → U1_ag(Xs, X, Ys, app_in_aaa(X1s, .(X, X2s), Xs))
app_in_aaa([], X, X) → app_out_aaa([], X, X)
app_in_aaa(.(X, Xs), Ys, .(X, Zs)) → U4_aaa(X, Xs, Ys, Zs, app_in_aaa(Xs, Ys, Zs))
U4_aaa(X, Xs, Ys, Zs, app_out_aaa(Xs, Ys, Zs)) → app_out_aaa(.(X, Xs), Ys, .(X, Zs))
U1_ag(Xs, X, Ys, app_out_aaa(X1s, .(X, X2s), Xs)) → U2_ag(Xs, X, Ys, app_in_gaa(X1s, X2s, Zs))
app_in_gaa([], X, X) → app_out_gaa([], X, X)
app_in_gaa(.(X, Xs), Ys, .(X, Zs)) → U4_gaa(X, Xs, Ys, Zs, app_in_gaa(Xs, Ys, Zs))
U4_gaa(X, Xs, Ys, Zs, app_out_gaa(Xs, Ys, Zs)) → app_out_gaa(.(X, Xs), Ys, .(X, Zs))
U2_ag(Xs, X, Ys, app_out_gaa(X1s, X2s, Zs)) → U3_ag(Xs, X, Ys, perm_in_ag(Zs, Ys))
U3_ag(Xs, X, Ys, perm_out_ag(Zs, Ys)) → perm_out_ag(Xs, .(X, Ys))
APP_IN_GAA(.(X, Xs), Ys, .(X, Zs)) → APP_IN_GAA(Xs, Ys, Zs)
perm_in_ag([], []) → perm_out_ag([], [])
perm_in_ag(Xs, .(X, Ys)) → U1_ag(Xs, X, Ys, app_in_aaa(X1s, .(X, X2s), Xs))
app_in_aaa([], X, X) → app_out_aaa([], X, X)
app_in_aaa(.(X, Xs), Ys, .(X, Zs)) → U4_aaa(X, Xs, Ys, Zs, app_in_aaa(Xs, Ys, Zs))
U4_aaa(X, Xs, Ys, Zs, app_out_aaa(Xs, Ys, Zs)) → app_out_aaa(.(X, Xs), Ys, .(X, Zs))
U1_ag(Xs, X, Ys, app_out_aaa(X1s, .(X, X2s), Xs)) → U2_ag(Xs, X, Ys, app_in_gaa(X1s, X2s, Zs))
app_in_gaa([], X, X) → app_out_gaa([], X, X)
app_in_gaa(.(X, Xs), Ys, .(X, Zs)) → U4_gaa(X, Xs, Ys, Zs, app_in_gaa(Xs, Ys, Zs))
U4_gaa(X, Xs, Ys, Zs, app_out_gaa(Xs, Ys, Zs)) → app_out_gaa(.(X, Xs), Ys, .(X, Zs))
U2_ag(Xs, X, Ys, app_out_gaa(X1s, X2s, Zs)) → U3_ag(Xs, X, Ys, perm_in_ag(Zs, Ys))
U3_ag(Xs, X, Ys, perm_out_ag(Zs, Ys)) → perm_out_ag(Xs, .(X, Ys))
APP_IN_GAA(.(X, Xs), Ys, .(X, Zs)) → APP_IN_GAA(Xs, Ys, Zs)
APP_IN_GAA(.(Xs)) → APP_IN_GAA(Xs)
From the DPs we obtained the following set of size-change graphs:
APP_IN_AAA(.(X, Xs), Ys, .(X, Zs)) → APP_IN_AAA(Xs, Ys, Zs)
perm_in_ag([], []) → perm_out_ag([], [])
perm_in_ag(Xs, .(X, Ys)) → U1_ag(Xs, X, Ys, app_in_aaa(X1s, .(X, X2s), Xs))
app_in_aaa([], X, X) → app_out_aaa([], X, X)
app_in_aaa(.(X, Xs), Ys, .(X, Zs)) → U4_aaa(X, Xs, Ys, Zs, app_in_aaa(Xs, Ys, Zs))
U4_aaa(X, Xs, Ys, Zs, app_out_aaa(Xs, Ys, Zs)) → app_out_aaa(.(X, Xs), Ys, .(X, Zs))
U1_ag(Xs, X, Ys, app_out_aaa(X1s, .(X, X2s), Xs)) → U2_ag(Xs, X, Ys, app_in_gaa(X1s, X2s, Zs))
app_in_gaa([], X, X) → app_out_gaa([], X, X)
app_in_gaa(.(X, Xs), Ys, .(X, Zs)) → U4_gaa(X, Xs, Ys, Zs, app_in_gaa(Xs, Ys, Zs))
U4_gaa(X, Xs, Ys, Zs, app_out_gaa(Xs, Ys, Zs)) → app_out_gaa(.(X, Xs), Ys, .(X, Zs))
U2_ag(Xs, X, Ys, app_out_gaa(X1s, X2s, Zs)) → U3_ag(Xs, X, Ys, perm_in_ag(Zs, Ys))
U3_ag(Xs, X, Ys, perm_out_ag(Zs, Ys)) → perm_out_ag(Xs, .(X, Ys))
APP_IN_AAA(.(X, Xs), Ys, .(X, Zs)) → APP_IN_AAA(Xs, Ys, Zs)
APP_IN_AAA → APP_IN_AAA
U1_AG(Xs, X, Ys, app_out_aaa(X1s, .(X, X2s), Xs)) → U2_AG(Xs, X, Ys, app_in_gaa(X1s, X2s, Zs))
U2_AG(Xs, X, Ys, app_out_gaa(X1s, X2s, Zs)) → PERM_IN_AG(Zs, Ys)
PERM_IN_AG(Xs, .(X, Ys)) → U1_AG(Xs, X, Ys, app_in_aaa(X1s, .(X, X2s), Xs))
perm_in_ag([], []) → perm_out_ag([], [])
perm_in_ag(Xs, .(X, Ys)) → U1_ag(Xs, X, Ys, app_in_aaa(X1s, .(X, X2s), Xs))
app_in_aaa([], X, X) → app_out_aaa([], X, X)
app_in_aaa(.(X, Xs), Ys, .(X, Zs)) → U4_aaa(X, Xs, Ys, Zs, app_in_aaa(Xs, Ys, Zs))
U4_aaa(X, Xs, Ys, Zs, app_out_aaa(Xs, Ys, Zs)) → app_out_aaa(.(X, Xs), Ys, .(X, Zs))
U1_ag(Xs, X, Ys, app_out_aaa(X1s, .(X, X2s), Xs)) → U2_ag(Xs, X, Ys, app_in_gaa(X1s, X2s, Zs))
app_in_gaa([], X, X) → app_out_gaa([], X, X)
app_in_gaa(.(X, Xs), Ys, .(X, Zs)) → U4_gaa(X, Xs, Ys, Zs, app_in_gaa(Xs, Ys, Zs))
U4_gaa(X, Xs, Ys, Zs, app_out_gaa(Xs, Ys, Zs)) → app_out_gaa(.(X, Xs), Ys, .(X, Zs))
U2_ag(Xs, X, Ys, app_out_gaa(X1s, X2s, Zs)) → U3_ag(Xs, X, Ys, perm_in_ag(Zs, Ys))
U3_ag(Xs, X, Ys, perm_out_ag(Zs, Ys)) → perm_out_ag(Xs, .(X, Ys))
U1_AG(Xs, X, Ys, app_out_aaa(X1s, .(X, X2s), Xs)) → U2_AG(Xs, X, Ys, app_in_gaa(X1s, X2s, Zs))
U2_AG(Xs, X, Ys, app_out_gaa(X1s, X2s, Zs)) → PERM_IN_AG(Zs, Ys)
PERM_IN_AG(Xs, .(X, Ys)) → U1_AG(Xs, X, Ys, app_in_aaa(X1s, .(X, X2s), Xs))
app_in_gaa([], X, X) → app_out_gaa([], X, X)
app_in_gaa(.(X, Xs), Ys, .(X, Zs)) → U4_gaa(X, Xs, Ys, Zs, app_in_gaa(Xs, Ys, Zs))
app_in_aaa([], X, X) → app_out_aaa([], X, X)
app_in_aaa(.(X, Xs), Ys, .(X, Zs)) → U4_aaa(X, Xs, Ys, Zs, app_in_aaa(Xs, Ys, Zs))
U4_gaa(X, Xs, Ys, Zs, app_out_gaa(Xs, Ys, Zs)) → app_out_gaa(.(X, Xs), Ys, .(X, Zs))
U4_aaa(X, Xs, Ys, Zs, app_out_aaa(Xs, Ys, Zs)) → app_out_aaa(.(X, Xs), Ys, .(X, Zs))
U1_AG(Ys, app_out_aaa(X1s)) → U2_AG(Ys, app_in_gaa(X1s))
U2_AG(Ys, app_out_gaa) → PERM_IN_AG(Ys)
PERM_IN_AG(.(Ys)) → U1_AG(Ys, app_in_aaa)
app_in_gaa([]) → app_out_gaa
app_in_gaa(.(Xs)) → U4_gaa(app_in_gaa(Xs))
app_in_aaa → app_out_aaa([])
app_in_aaa → U4_aaa(app_in_aaa)
U4_gaa(app_out_gaa) → app_out_gaa
U4_aaa(app_out_aaa(Xs)) → app_out_aaa(.(Xs))
app_in_gaa(x0)
app_in_aaa
U4_gaa(x0)
U4_aaa(x0)
From the DPs we obtained the following set of size-change graphs:
perm_in_ag([], []) → perm_out_ag([], [])
perm_in_ag(Xs, .(X, Ys)) → U1_ag(Xs, X, Ys, app_in_aaa(X1s, .(X, X2s), Xs))
app_in_aaa([], X, X) → app_out_aaa([], X, X)
app_in_aaa(.(X, Xs), Ys, .(X, Zs)) → U4_aaa(X, Xs, Ys, Zs, app_in_aaa(Xs, Ys, Zs))
U4_aaa(X, Xs, Ys, Zs, app_out_aaa(Xs, Ys, Zs)) → app_out_aaa(.(X, Xs), Ys, .(X, Zs))
U1_ag(Xs, X, Ys, app_out_aaa(X1s, .(X, X2s), Xs)) → U2_ag(Xs, X, Ys, app_in_gaa(X1s, X2s, Zs))
app_in_gaa([], X, X) → app_out_gaa([], X, X)
app_in_gaa(.(X, Xs), Ys, .(X, Zs)) → U4_gaa(X, Xs, Ys, Zs, app_in_gaa(Xs, Ys, Zs))
U4_gaa(X, Xs, Ys, Zs, app_out_gaa(Xs, Ys, Zs)) → app_out_gaa(.(X, Xs), Ys, .(X, Zs))
U2_ag(Xs, X, Ys, app_out_gaa(X1s, X2s, Zs)) → U3_ag(Xs, X, Ys, perm_in_ag(Zs, Ys))
U3_ag(Xs, X, Ys, perm_out_ag(Zs, Ys)) → perm_out_ag(Xs, .(X, Ys))
Infinitary Constructor Rewriting Termination of PiTRS implies Termination of Prolog
perm_in_ag([], []) → perm_out_ag([], [])
perm_in_ag(Xs, .(X, Ys)) → U1_ag(Xs, X, Ys, app_in_aaa(X1s, .(X, X2s), Xs))
app_in_aaa([], X, X) → app_out_aaa([], X, X)
app_in_aaa(.(X, Xs), Ys, .(X, Zs)) → U4_aaa(X, Xs, Ys, Zs, app_in_aaa(Xs, Ys, Zs))
U4_aaa(X, Xs, Ys, Zs, app_out_aaa(Xs, Ys, Zs)) → app_out_aaa(.(X, Xs), Ys, .(X, Zs))
U1_ag(Xs, X, Ys, app_out_aaa(X1s, .(X, X2s), Xs)) → U2_ag(Xs, X, Ys, app_in_gaa(X1s, X2s, Zs))
app_in_gaa([], X, X) → app_out_gaa([], X, X)
app_in_gaa(.(X, Xs), Ys, .(X, Zs)) → U4_gaa(X, Xs, Ys, Zs, app_in_gaa(Xs, Ys, Zs))
U4_gaa(X, Xs, Ys, Zs, app_out_gaa(Xs, Ys, Zs)) → app_out_gaa(.(X, Xs), Ys, .(X, Zs))
U2_ag(Xs, X, Ys, app_out_gaa(X1s, X2s, Zs)) → U3_ag(Xs, X, Ys, perm_in_ag(Zs, Ys))
U3_ag(Xs, X, Ys, perm_out_ag(Zs, Ys)) → perm_out_ag(Xs, .(X, Ys))
PERM_IN_AG(Xs, .(X, Ys)) → U1_AG(Xs, X, Ys, app_in_aaa(X1s, .(X, X2s), Xs))
PERM_IN_AG(Xs, .(X, Ys)) → APP_IN_AAA(X1s, .(X, X2s), Xs)
APP_IN_AAA(.(X, Xs), Ys, .(X, Zs)) → U4_AAA(X, Xs, Ys, Zs, app_in_aaa(Xs, Ys, Zs))
APP_IN_AAA(.(X, Xs), Ys, .(X, Zs)) → APP_IN_AAA(Xs, Ys, Zs)
U1_AG(Xs, X, Ys, app_out_aaa(X1s, .(X, X2s), Xs)) → U2_AG(Xs, X, Ys, app_in_gaa(X1s, X2s, Zs))
U1_AG(Xs, X, Ys, app_out_aaa(X1s, .(X, X2s), Xs)) → APP_IN_GAA(X1s, X2s, Zs)
APP_IN_GAA(.(X, Xs), Ys, .(X, Zs)) → U4_GAA(X, Xs, Ys, Zs, app_in_gaa(Xs, Ys, Zs))
APP_IN_GAA(.(X, Xs), Ys, .(X, Zs)) → APP_IN_GAA(Xs, Ys, Zs)
U2_AG(Xs, X, Ys, app_out_gaa(X1s, X2s, Zs)) → U3_AG(Xs, X, Ys, perm_in_ag(Zs, Ys))
U2_AG(Xs, X, Ys, app_out_gaa(X1s, X2s, Zs)) → PERM_IN_AG(Zs, Ys)
perm_in_ag([], []) → perm_out_ag([], [])
perm_in_ag(Xs, .(X, Ys)) → U1_ag(Xs, X, Ys, app_in_aaa(X1s, .(X, X2s), Xs))
app_in_aaa([], X, X) → app_out_aaa([], X, X)
app_in_aaa(.(X, Xs), Ys, .(X, Zs)) → U4_aaa(X, Xs, Ys, Zs, app_in_aaa(Xs, Ys, Zs))
U4_aaa(X, Xs, Ys, Zs, app_out_aaa(Xs, Ys, Zs)) → app_out_aaa(.(X, Xs), Ys, .(X, Zs))
U1_ag(Xs, X, Ys, app_out_aaa(X1s, .(X, X2s), Xs)) → U2_ag(Xs, X, Ys, app_in_gaa(X1s, X2s, Zs))
app_in_gaa([], X, X) → app_out_gaa([], X, X)
app_in_gaa(.(X, Xs), Ys, .(X, Zs)) → U4_gaa(X, Xs, Ys, Zs, app_in_gaa(Xs, Ys, Zs))
U4_gaa(X, Xs, Ys, Zs, app_out_gaa(Xs, Ys, Zs)) → app_out_gaa(.(X, Xs), Ys, .(X, Zs))
U2_ag(Xs, X, Ys, app_out_gaa(X1s, X2s, Zs)) → U3_ag(Xs, X, Ys, perm_in_ag(Zs, Ys))
U3_ag(Xs, X, Ys, perm_out_ag(Zs, Ys)) → perm_out_ag(Xs, .(X, Ys))
PERM_IN_AG(Xs, .(X, Ys)) → U1_AG(Xs, X, Ys, app_in_aaa(X1s, .(X, X2s), Xs))
PERM_IN_AG(Xs, .(X, Ys)) → APP_IN_AAA(X1s, .(X, X2s), Xs)
APP_IN_AAA(.(X, Xs), Ys, .(X, Zs)) → U4_AAA(X, Xs, Ys, Zs, app_in_aaa(Xs, Ys, Zs))
APP_IN_AAA(.(X, Xs), Ys, .(X, Zs)) → APP_IN_AAA(Xs, Ys, Zs)
U1_AG(Xs, X, Ys, app_out_aaa(X1s, .(X, X2s), Xs)) → U2_AG(Xs, X, Ys, app_in_gaa(X1s, X2s, Zs))
U1_AG(Xs, X, Ys, app_out_aaa(X1s, .(X, X2s), Xs)) → APP_IN_GAA(X1s, X2s, Zs)
APP_IN_GAA(.(X, Xs), Ys, .(X, Zs)) → U4_GAA(X, Xs, Ys, Zs, app_in_gaa(Xs, Ys, Zs))
APP_IN_GAA(.(X, Xs), Ys, .(X, Zs)) → APP_IN_GAA(Xs, Ys, Zs)
U2_AG(Xs, X, Ys, app_out_gaa(X1s, X2s, Zs)) → U3_AG(Xs, X, Ys, perm_in_ag(Zs, Ys))
U2_AG(Xs, X, Ys, app_out_gaa(X1s, X2s, Zs)) → PERM_IN_AG(Zs, Ys)
perm_in_ag([], []) → perm_out_ag([], [])
perm_in_ag(Xs, .(X, Ys)) → U1_ag(Xs, X, Ys, app_in_aaa(X1s, .(X, X2s), Xs))
app_in_aaa([], X, X) → app_out_aaa([], X, X)
app_in_aaa(.(X, Xs), Ys, .(X, Zs)) → U4_aaa(X, Xs, Ys, Zs, app_in_aaa(Xs, Ys, Zs))
U4_aaa(X, Xs, Ys, Zs, app_out_aaa(Xs, Ys, Zs)) → app_out_aaa(.(X, Xs), Ys, .(X, Zs))
U1_ag(Xs, X, Ys, app_out_aaa(X1s, .(X, X2s), Xs)) → U2_ag(Xs, X, Ys, app_in_gaa(X1s, X2s, Zs))
app_in_gaa([], X, X) → app_out_gaa([], X, X)
app_in_gaa(.(X, Xs), Ys, .(X, Zs)) → U4_gaa(X, Xs, Ys, Zs, app_in_gaa(Xs, Ys, Zs))
U4_gaa(X, Xs, Ys, Zs, app_out_gaa(Xs, Ys, Zs)) → app_out_gaa(.(X, Xs), Ys, .(X, Zs))
U2_ag(Xs, X, Ys, app_out_gaa(X1s, X2s, Zs)) → U3_ag(Xs, X, Ys, perm_in_ag(Zs, Ys))
U3_ag(Xs, X, Ys, perm_out_ag(Zs, Ys)) → perm_out_ag(Xs, .(X, Ys))
APP_IN_GAA(.(X, Xs), Ys, .(X, Zs)) → APP_IN_GAA(Xs, Ys, Zs)
perm_in_ag([], []) → perm_out_ag([], [])
perm_in_ag(Xs, .(X, Ys)) → U1_ag(Xs, X, Ys, app_in_aaa(X1s, .(X, X2s), Xs))
app_in_aaa([], X, X) → app_out_aaa([], X, X)
app_in_aaa(.(X, Xs), Ys, .(X, Zs)) → U4_aaa(X, Xs, Ys, Zs, app_in_aaa(Xs, Ys, Zs))
U4_aaa(X, Xs, Ys, Zs, app_out_aaa(Xs, Ys, Zs)) → app_out_aaa(.(X, Xs), Ys, .(X, Zs))
U1_ag(Xs, X, Ys, app_out_aaa(X1s, .(X, X2s), Xs)) → U2_ag(Xs, X, Ys, app_in_gaa(X1s, X2s, Zs))
app_in_gaa([], X, X) → app_out_gaa([], X, X)
app_in_gaa(.(X, Xs), Ys, .(X, Zs)) → U4_gaa(X, Xs, Ys, Zs, app_in_gaa(Xs, Ys, Zs))
U4_gaa(X, Xs, Ys, Zs, app_out_gaa(Xs, Ys, Zs)) → app_out_gaa(.(X, Xs), Ys, .(X, Zs))
U2_ag(Xs, X, Ys, app_out_gaa(X1s, X2s, Zs)) → U3_ag(Xs, X, Ys, perm_in_ag(Zs, Ys))
U3_ag(Xs, X, Ys, perm_out_ag(Zs, Ys)) → perm_out_ag(Xs, .(X, Ys))
APP_IN_GAA(.(X, Xs), Ys, .(X, Zs)) → APP_IN_GAA(Xs, Ys, Zs)
APP_IN_GAA(.(Xs)) → APP_IN_GAA(Xs)
From the DPs we obtained the following set of size-change graphs:
APP_IN_AAA(.(X, Xs), Ys, .(X, Zs)) → APP_IN_AAA(Xs, Ys, Zs)
perm_in_ag([], []) → perm_out_ag([], [])
perm_in_ag(Xs, .(X, Ys)) → U1_ag(Xs, X, Ys, app_in_aaa(X1s, .(X, X2s), Xs))
app_in_aaa([], X, X) → app_out_aaa([], X, X)
app_in_aaa(.(X, Xs), Ys, .(X, Zs)) → U4_aaa(X, Xs, Ys, Zs, app_in_aaa(Xs, Ys, Zs))
U4_aaa(X, Xs, Ys, Zs, app_out_aaa(Xs, Ys, Zs)) → app_out_aaa(.(X, Xs), Ys, .(X, Zs))
U1_ag(Xs, X, Ys, app_out_aaa(X1s, .(X, X2s), Xs)) → U2_ag(Xs, X, Ys, app_in_gaa(X1s, X2s, Zs))
app_in_gaa([], X, X) → app_out_gaa([], X, X)
app_in_gaa(.(X, Xs), Ys, .(X, Zs)) → U4_gaa(X, Xs, Ys, Zs, app_in_gaa(Xs, Ys, Zs))
U4_gaa(X, Xs, Ys, Zs, app_out_gaa(Xs, Ys, Zs)) → app_out_gaa(.(X, Xs), Ys, .(X, Zs))
U2_ag(Xs, X, Ys, app_out_gaa(X1s, X2s, Zs)) → U3_ag(Xs, X, Ys, perm_in_ag(Zs, Ys))
U3_ag(Xs, X, Ys, perm_out_ag(Zs, Ys)) → perm_out_ag(Xs, .(X, Ys))
APP_IN_AAA(.(X, Xs), Ys, .(X, Zs)) → APP_IN_AAA(Xs, Ys, Zs)
APP_IN_AAA → APP_IN_AAA
U1_AG(Xs, X, Ys, app_out_aaa(X1s, .(X, X2s), Xs)) → U2_AG(Xs, X, Ys, app_in_gaa(X1s, X2s, Zs))
U2_AG(Xs, X, Ys, app_out_gaa(X1s, X2s, Zs)) → PERM_IN_AG(Zs, Ys)
PERM_IN_AG(Xs, .(X, Ys)) → U1_AG(Xs, X, Ys, app_in_aaa(X1s, .(X, X2s), Xs))
perm_in_ag([], []) → perm_out_ag([], [])
perm_in_ag(Xs, .(X, Ys)) → U1_ag(Xs, X, Ys, app_in_aaa(X1s, .(X, X2s), Xs))
app_in_aaa([], X, X) → app_out_aaa([], X, X)
app_in_aaa(.(X, Xs), Ys, .(X, Zs)) → U4_aaa(X, Xs, Ys, Zs, app_in_aaa(Xs, Ys, Zs))
U4_aaa(X, Xs, Ys, Zs, app_out_aaa(Xs, Ys, Zs)) → app_out_aaa(.(X, Xs), Ys, .(X, Zs))
U1_ag(Xs, X, Ys, app_out_aaa(X1s, .(X, X2s), Xs)) → U2_ag(Xs, X, Ys, app_in_gaa(X1s, X2s, Zs))
app_in_gaa([], X, X) → app_out_gaa([], X, X)
app_in_gaa(.(X, Xs), Ys, .(X, Zs)) → U4_gaa(X, Xs, Ys, Zs, app_in_gaa(Xs, Ys, Zs))
U4_gaa(X, Xs, Ys, Zs, app_out_gaa(Xs, Ys, Zs)) → app_out_gaa(.(X, Xs), Ys, .(X, Zs))
U2_ag(Xs, X, Ys, app_out_gaa(X1s, X2s, Zs)) → U3_ag(Xs, X, Ys, perm_in_ag(Zs, Ys))
U3_ag(Xs, X, Ys, perm_out_ag(Zs, Ys)) → perm_out_ag(Xs, .(X, Ys))
U1_AG(Xs, X, Ys, app_out_aaa(X1s, .(X, X2s), Xs)) → U2_AG(Xs, X, Ys, app_in_gaa(X1s, X2s, Zs))
U2_AG(Xs, X, Ys, app_out_gaa(X1s, X2s, Zs)) → PERM_IN_AG(Zs, Ys)
PERM_IN_AG(Xs, .(X, Ys)) → U1_AG(Xs, X, Ys, app_in_aaa(X1s, .(X, X2s), Xs))
app_in_gaa([], X, X) → app_out_gaa([], X, X)
app_in_gaa(.(X, Xs), Ys, .(X, Zs)) → U4_gaa(X, Xs, Ys, Zs, app_in_gaa(Xs, Ys, Zs))
app_in_aaa([], X, X) → app_out_aaa([], X, X)
app_in_aaa(.(X, Xs), Ys, .(X, Zs)) → U4_aaa(X, Xs, Ys, Zs, app_in_aaa(Xs, Ys, Zs))
U4_gaa(X, Xs, Ys, Zs, app_out_gaa(Xs, Ys, Zs)) → app_out_gaa(.(X, Xs), Ys, .(X, Zs))
U4_aaa(X, Xs, Ys, Zs, app_out_aaa(Xs, Ys, Zs)) → app_out_aaa(.(X, Xs), Ys, .(X, Zs))
U1_AG(Ys, app_out_aaa(X1s)) → U2_AG(Ys, app_in_gaa(X1s))
U2_AG(Ys, app_out_gaa(X1s)) → PERM_IN_AG(Ys)
PERM_IN_AG(.(Ys)) → U1_AG(Ys, app_in_aaa)
app_in_gaa([]) → app_out_gaa([])
app_in_gaa(.(Xs)) → U4_gaa(Xs, app_in_gaa(Xs))
app_in_aaa → app_out_aaa([])
app_in_aaa → U4_aaa(app_in_aaa)
U4_gaa(Xs, app_out_gaa(Xs)) → app_out_gaa(.(Xs))
U4_aaa(app_out_aaa(Xs)) → app_out_aaa(.(Xs))
app_in_gaa(x0)
app_in_aaa
U4_gaa(x0, x1)
U4_aaa(x0)
From the DPs we obtained the following set of size-change graphs: