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 QDPSizeChangeProof (⇔)
↳20 TRUE
↳21 PiDP
↳22 UsableRulesProof (⇔)
↳23 PiDP
↳24 PiDPToQDPProof (⇐)
↳25 QDP
↳26 PrologToPiTRSProof (⇐)
↳27 PiTRS
↳28 DependencyPairsProof (⇔)
↳29 PiDP
↳30 DependencyGraphProof (⇔)
↳31 AND
↳32 PiDP
↳33 UsableRulesProof (⇔)
↳34 PiDP
↳35 PiDPToQDPProof (⇐)
↳36 QDP
↳37 QDPSizeChangeProof (⇔)
↳38 TRUE
↳39 PiDP
↳40 UsableRulesProof (⇔)
↳41 PiDP
↳42 PiDPToQDPProof (⇐)
↳43 QDP
↳44 QDPSizeChangeProof (⇔)
↳45 TRUE
↳46 PiDP
↳47 UsableRulesProof (⇔)
↳48 PiDP
↳49 PiDPToQDPProof (⇐)
↳50 QDP
↳51 MRRProof (⇔)
↳52 QDP
↳53 PisEmptyProof (⇔)
↳54 TRUE
perm_in_ga([], []) → perm_out_ga([], [])
perm_in_ga(L, .(H, T)) → U1_ga(L, H, T, append2_in_aag(V, .(H, U), L))
append2_in_aag([], L, L) → append2_out_aag([], L, L)
append2_in_aag(.(H, L1), L2, .(H, L3)) → U5_aag(H, L1, L2, L3, append2_in_aag(L1, L2, L3))
U5_aag(H, L1, L2, L3, append2_out_aag(L1, L2, L3)) → append2_out_aag(.(H, L1), L2, .(H, L3))
U1_ga(L, H, T, append2_out_aag(V, .(H, U), L)) → U2_ga(L, H, T, append1_in_gga(V, U, W))
append1_in_gga([], L, L) → append1_out_gga([], L, L)
append1_in_gga(.(H, L1), L2, .(H, L3)) → U4_gga(H, L1, L2, L3, append1_in_gga(L1, L2, L3))
U4_gga(H, L1, L2, L3, append1_out_gga(L1, L2, L3)) → append1_out_gga(.(H, L1), L2, .(H, L3))
U2_ga(L, H, T, append1_out_gga(V, U, W)) → U3_ga(L, H, T, perm_in_ga(W, T))
U3_ga(L, H, T, perm_out_ga(W, T)) → perm_out_ga(L, .(H, T))
Infinitary Constructor Rewriting Termination of PiTRS implies Termination of Prolog
perm_in_ga([], []) → perm_out_ga([], [])
perm_in_ga(L, .(H, T)) → U1_ga(L, H, T, append2_in_aag(V, .(H, U), L))
append2_in_aag([], L, L) → append2_out_aag([], L, L)
append2_in_aag(.(H, L1), L2, .(H, L3)) → U5_aag(H, L1, L2, L3, append2_in_aag(L1, L2, L3))
U5_aag(H, L1, L2, L3, append2_out_aag(L1, L2, L3)) → append2_out_aag(.(H, L1), L2, .(H, L3))
U1_ga(L, H, T, append2_out_aag(V, .(H, U), L)) → U2_ga(L, H, T, append1_in_gga(V, U, W))
append1_in_gga([], L, L) → append1_out_gga([], L, L)
append1_in_gga(.(H, L1), L2, .(H, L3)) → U4_gga(H, L1, L2, L3, append1_in_gga(L1, L2, L3))
U4_gga(H, L1, L2, L3, append1_out_gga(L1, L2, L3)) → append1_out_gga(.(H, L1), L2, .(H, L3))
U2_ga(L, H, T, append1_out_gga(V, U, W)) → U3_ga(L, H, T, perm_in_ga(W, T))
U3_ga(L, H, T, perm_out_ga(W, T)) → perm_out_ga(L, .(H, T))
PERM_IN_GA(L, .(H, T)) → U1_GA(L, H, T, append2_in_aag(V, .(H, U), L))
PERM_IN_GA(L, .(H, T)) → APPEND2_IN_AAG(V, .(H, U), L)
APPEND2_IN_AAG(.(H, L1), L2, .(H, L3)) → U5_AAG(H, L1, L2, L3, append2_in_aag(L1, L2, L3))
APPEND2_IN_AAG(.(H, L1), L2, .(H, L3)) → APPEND2_IN_AAG(L1, L2, L3)
U1_GA(L, H, T, append2_out_aag(V, .(H, U), L)) → U2_GA(L, H, T, append1_in_gga(V, U, W))
U1_GA(L, H, T, append2_out_aag(V, .(H, U), L)) → APPEND1_IN_GGA(V, U, W)
APPEND1_IN_GGA(.(H, L1), L2, .(H, L3)) → U4_GGA(H, L1, L2, L3, append1_in_gga(L1, L2, L3))
APPEND1_IN_GGA(.(H, L1), L2, .(H, L3)) → APPEND1_IN_GGA(L1, L2, L3)
U2_GA(L, H, T, append1_out_gga(V, U, W)) → U3_GA(L, H, T, perm_in_ga(W, T))
U2_GA(L, H, T, append1_out_gga(V, U, W)) → PERM_IN_GA(W, T)
perm_in_ga([], []) → perm_out_ga([], [])
perm_in_ga(L, .(H, T)) → U1_ga(L, H, T, append2_in_aag(V, .(H, U), L))
append2_in_aag([], L, L) → append2_out_aag([], L, L)
append2_in_aag(.(H, L1), L2, .(H, L3)) → U5_aag(H, L1, L2, L3, append2_in_aag(L1, L2, L3))
U5_aag(H, L1, L2, L3, append2_out_aag(L1, L2, L3)) → append2_out_aag(.(H, L1), L2, .(H, L3))
U1_ga(L, H, T, append2_out_aag(V, .(H, U), L)) → U2_ga(L, H, T, append1_in_gga(V, U, W))
append1_in_gga([], L, L) → append1_out_gga([], L, L)
append1_in_gga(.(H, L1), L2, .(H, L3)) → U4_gga(H, L1, L2, L3, append1_in_gga(L1, L2, L3))
U4_gga(H, L1, L2, L3, append1_out_gga(L1, L2, L3)) → append1_out_gga(.(H, L1), L2, .(H, L3))
U2_ga(L, H, T, append1_out_gga(V, U, W)) → U3_ga(L, H, T, perm_in_ga(W, T))
U3_ga(L, H, T, perm_out_ga(W, T)) → perm_out_ga(L, .(H, T))
PERM_IN_GA(L, .(H, T)) → U1_GA(L, H, T, append2_in_aag(V, .(H, U), L))
PERM_IN_GA(L, .(H, T)) → APPEND2_IN_AAG(V, .(H, U), L)
APPEND2_IN_AAG(.(H, L1), L2, .(H, L3)) → U5_AAG(H, L1, L2, L3, append2_in_aag(L1, L2, L3))
APPEND2_IN_AAG(.(H, L1), L2, .(H, L3)) → APPEND2_IN_AAG(L1, L2, L3)
U1_GA(L, H, T, append2_out_aag(V, .(H, U), L)) → U2_GA(L, H, T, append1_in_gga(V, U, W))
U1_GA(L, H, T, append2_out_aag(V, .(H, U), L)) → APPEND1_IN_GGA(V, U, W)
APPEND1_IN_GGA(.(H, L1), L2, .(H, L3)) → U4_GGA(H, L1, L2, L3, append1_in_gga(L1, L2, L3))
APPEND1_IN_GGA(.(H, L1), L2, .(H, L3)) → APPEND1_IN_GGA(L1, L2, L3)
U2_GA(L, H, T, append1_out_gga(V, U, W)) → U3_GA(L, H, T, perm_in_ga(W, T))
U2_GA(L, H, T, append1_out_gga(V, U, W)) → PERM_IN_GA(W, T)
perm_in_ga([], []) → perm_out_ga([], [])
perm_in_ga(L, .(H, T)) → U1_ga(L, H, T, append2_in_aag(V, .(H, U), L))
append2_in_aag([], L, L) → append2_out_aag([], L, L)
append2_in_aag(.(H, L1), L2, .(H, L3)) → U5_aag(H, L1, L2, L3, append2_in_aag(L1, L2, L3))
U5_aag(H, L1, L2, L3, append2_out_aag(L1, L2, L3)) → append2_out_aag(.(H, L1), L2, .(H, L3))
U1_ga(L, H, T, append2_out_aag(V, .(H, U), L)) → U2_ga(L, H, T, append1_in_gga(V, U, W))
append1_in_gga([], L, L) → append1_out_gga([], L, L)
append1_in_gga(.(H, L1), L2, .(H, L3)) → U4_gga(H, L1, L2, L3, append1_in_gga(L1, L2, L3))
U4_gga(H, L1, L2, L3, append1_out_gga(L1, L2, L3)) → append1_out_gga(.(H, L1), L2, .(H, L3))
U2_ga(L, H, T, append1_out_gga(V, U, W)) → U3_ga(L, H, T, perm_in_ga(W, T))
U3_ga(L, H, T, perm_out_ga(W, T)) → perm_out_ga(L, .(H, T))
APPEND1_IN_GGA(.(H, L1), L2, .(H, L3)) → APPEND1_IN_GGA(L1, L2, L3)
perm_in_ga([], []) → perm_out_ga([], [])
perm_in_ga(L, .(H, T)) → U1_ga(L, H, T, append2_in_aag(V, .(H, U), L))
append2_in_aag([], L, L) → append2_out_aag([], L, L)
append2_in_aag(.(H, L1), L2, .(H, L3)) → U5_aag(H, L1, L2, L3, append2_in_aag(L1, L2, L3))
U5_aag(H, L1, L2, L3, append2_out_aag(L1, L2, L3)) → append2_out_aag(.(H, L1), L2, .(H, L3))
U1_ga(L, H, T, append2_out_aag(V, .(H, U), L)) → U2_ga(L, H, T, append1_in_gga(V, U, W))
append1_in_gga([], L, L) → append1_out_gga([], L, L)
append1_in_gga(.(H, L1), L2, .(H, L3)) → U4_gga(H, L1, L2, L3, append1_in_gga(L1, L2, L3))
U4_gga(H, L1, L2, L3, append1_out_gga(L1, L2, L3)) → append1_out_gga(.(H, L1), L2, .(H, L3))
U2_ga(L, H, T, append1_out_gga(V, U, W)) → U3_ga(L, H, T, perm_in_ga(W, T))
U3_ga(L, H, T, perm_out_ga(W, T)) → perm_out_ga(L, .(H, T))
APPEND1_IN_GGA(.(H, L1), L2, .(H, L3)) → APPEND1_IN_GGA(L1, L2, L3)
APPEND1_IN_GGA(.(L1), L2) → APPEND1_IN_GGA(L1, L2)
From the DPs we obtained the following set of size-change graphs:
APPEND2_IN_AAG(.(H, L1), L2, .(H, L3)) → APPEND2_IN_AAG(L1, L2, L3)
perm_in_ga([], []) → perm_out_ga([], [])
perm_in_ga(L, .(H, T)) → U1_ga(L, H, T, append2_in_aag(V, .(H, U), L))
append2_in_aag([], L, L) → append2_out_aag([], L, L)
append2_in_aag(.(H, L1), L2, .(H, L3)) → U5_aag(H, L1, L2, L3, append2_in_aag(L1, L2, L3))
U5_aag(H, L1, L2, L3, append2_out_aag(L1, L2, L3)) → append2_out_aag(.(H, L1), L2, .(H, L3))
U1_ga(L, H, T, append2_out_aag(V, .(H, U), L)) → U2_ga(L, H, T, append1_in_gga(V, U, W))
append1_in_gga([], L, L) → append1_out_gga([], L, L)
append1_in_gga(.(H, L1), L2, .(H, L3)) → U4_gga(H, L1, L2, L3, append1_in_gga(L1, L2, L3))
U4_gga(H, L1, L2, L3, append1_out_gga(L1, L2, L3)) → append1_out_gga(.(H, L1), L2, .(H, L3))
U2_ga(L, H, T, append1_out_gga(V, U, W)) → U3_ga(L, H, T, perm_in_ga(W, T))
U3_ga(L, H, T, perm_out_ga(W, T)) → perm_out_ga(L, .(H, T))
APPEND2_IN_AAG(.(H, L1), L2, .(H, L3)) → APPEND2_IN_AAG(L1, L2, L3)
APPEND2_IN_AAG(.(L3)) → APPEND2_IN_AAG(L3)
From the DPs we obtained the following set of size-change graphs:
U1_GA(L, H, T, append2_out_aag(V, .(H, U), L)) → U2_GA(L, H, T, append1_in_gga(V, U, W))
U2_GA(L, H, T, append1_out_gga(V, U, W)) → PERM_IN_GA(W, T)
PERM_IN_GA(L, .(H, T)) → U1_GA(L, H, T, append2_in_aag(V, .(H, U), L))
perm_in_ga([], []) → perm_out_ga([], [])
perm_in_ga(L, .(H, T)) → U1_ga(L, H, T, append2_in_aag(V, .(H, U), L))
append2_in_aag([], L, L) → append2_out_aag([], L, L)
append2_in_aag(.(H, L1), L2, .(H, L3)) → U5_aag(H, L1, L2, L3, append2_in_aag(L1, L2, L3))
U5_aag(H, L1, L2, L3, append2_out_aag(L1, L2, L3)) → append2_out_aag(.(H, L1), L2, .(H, L3))
U1_ga(L, H, T, append2_out_aag(V, .(H, U), L)) → U2_ga(L, H, T, append1_in_gga(V, U, W))
append1_in_gga([], L, L) → append1_out_gga([], L, L)
append1_in_gga(.(H, L1), L2, .(H, L3)) → U4_gga(H, L1, L2, L3, append1_in_gga(L1, L2, L3))
U4_gga(H, L1, L2, L3, append1_out_gga(L1, L2, L3)) → append1_out_gga(.(H, L1), L2, .(H, L3))
U2_ga(L, H, T, append1_out_gga(V, U, W)) → U3_ga(L, H, T, perm_in_ga(W, T))
U3_ga(L, H, T, perm_out_ga(W, T)) → perm_out_ga(L, .(H, T))
U1_GA(L, H, T, append2_out_aag(V, .(H, U), L)) → U2_GA(L, H, T, append1_in_gga(V, U, W))
U2_GA(L, H, T, append1_out_gga(V, U, W)) → PERM_IN_GA(W, T)
PERM_IN_GA(L, .(H, T)) → U1_GA(L, H, T, append2_in_aag(V, .(H, U), L))
append1_in_gga([], L, L) → append1_out_gga([], L, L)
append1_in_gga(.(H, L1), L2, .(H, L3)) → U4_gga(H, L1, L2, L3, append1_in_gga(L1, L2, L3))
append2_in_aag([], L, L) → append2_out_aag([], L, L)
append2_in_aag(.(H, L1), L2, .(H, L3)) → U5_aag(H, L1, L2, L3, append2_in_aag(L1, L2, L3))
U4_gga(H, L1, L2, L3, append1_out_gga(L1, L2, L3)) → append1_out_gga(.(H, L1), L2, .(H, L3))
U5_aag(H, L1, L2, L3, append2_out_aag(L1, L2, L3)) → append2_out_aag(.(H, L1), L2, .(H, L3))
U1_GA(L, append2_out_aag(V, .(U), L)) → U2_GA(L, append1_in_gga(V, U))
U2_GA(L, append1_out_gga(V, U, W)) → PERM_IN_GA(W)
PERM_IN_GA(L) → U1_GA(L, append2_in_aag(L))
append1_in_gga([], L) → append1_out_gga([], L, L)
append1_in_gga(.(L1), L2) → U4_gga(L1, L2, append1_in_gga(L1, L2))
append2_in_aag(L) → append2_out_aag([], L, L)
append2_in_aag(.(L3)) → U5_aag(L3, append2_in_aag(L3))
U4_gga(L1, L2, append1_out_gga(L1, L2, L3)) → append1_out_gga(.(L1), L2, .(L3))
U5_aag(L3, append2_out_aag(L1, L2, L3)) → append2_out_aag(.(L1), L2, .(L3))
append1_in_gga(x0, x1)
append2_in_aag(x0)
U4_gga(x0, x1, x2)
U5_aag(x0, x1)
perm_in_ga([], []) → perm_out_ga([], [])
perm_in_ga(L, .(H, T)) → U1_ga(L, H, T, append2_in_aag(V, .(H, U), L))
append2_in_aag([], L, L) → append2_out_aag([], L, L)
append2_in_aag(.(H, L1), L2, .(H, L3)) → U5_aag(H, L1, L2, L3, append2_in_aag(L1, L2, L3))
U5_aag(H, L1, L2, L3, append2_out_aag(L1, L2, L3)) → append2_out_aag(.(H, L1), L2, .(H, L3))
U1_ga(L, H, T, append2_out_aag(V, .(H, U), L)) → U2_ga(L, H, T, append1_in_gga(V, U, W))
append1_in_gga([], L, L) → append1_out_gga([], L, L)
append1_in_gga(.(H, L1), L2, .(H, L3)) → U4_gga(H, L1, L2, L3, append1_in_gga(L1, L2, L3))
U4_gga(H, L1, L2, L3, append1_out_gga(L1, L2, L3)) → append1_out_gga(.(H, L1), L2, .(H, L3))
U2_ga(L, H, T, append1_out_gga(V, U, W)) → U3_ga(L, H, T, perm_in_ga(W, T))
U3_ga(L, H, T, perm_out_ga(W, T)) → perm_out_ga(L, .(H, T))
Infinitary Constructor Rewriting Termination of PiTRS implies Termination of Prolog
perm_in_ga([], []) → perm_out_ga([], [])
perm_in_ga(L, .(H, T)) → U1_ga(L, H, T, append2_in_aag(V, .(H, U), L))
append2_in_aag([], L, L) → append2_out_aag([], L, L)
append2_in_aag(.(H, L1), L2, .(H, L3)) → U5_aag(H, L1, L2, L3, append2_in_aag(L1, L2, L3))
U5_aag(H, L1, L2, L3, append2_out_aag(L1, L2, L3)) → append2_out_aag(.(H, L1), L2, .(H, L3))
U1_ga(L, H, T, append2_out_aag(V, .(H, U), L)) → U2_ga(L, H, T, append1_in_gga(V, U, W))
append1_in_gga([], L, L) → append1_out_gga([], L, L)
append1_in_gga(.(H, L1), L2, .(H, L3)) → U4_gga(H, L1, L2, L3, append1_in_gga(L1, L2, L3))
U4_gga(H, L1, L2, L3, append1_out_gga(L1, L2, L3)) → append1_out_gga(.(H, L1), L2, .(H, L3))
U2_ga(L, H, T, append1_out_gga(V, U, W)) → U3_ga(L, H, T, perm_in_ga(W, T))
U3_ga(L, H, T, perm_out_ga(W, T)) → perm_out_ga(L, .(H, T))
PERM_IN_GA(L, .(H, T)) → U1_GA(L, H, T, append2_in_aag(V, .(H, U), L))
PERM_IN_GA(L, .(H, T)) → APPEND2_IN_AAG(V, .(H, U), L)
APPEND2_IN_AAG(.(H, L1), L2, .(H, L3)) → U5_AAG(H, L1, L2, L3, append2_in_aag(L1, L2, L3))
APPEND2_IN_AAG(.(H, L1), L2, .(H, L3)) → APPEND2_IN_AAG(L1, L2, L3)
U1_GA(L, H, T, append2_out_aag(V, .(H, U), L)) → U2_GA(L, H, T, append1_in_gga(V, U, W))
U1_GA(L, H, T, append2_out_aag(V, .(H, U), L)) → APPEND1_IN_GGA(V, U, W)
APPEND1_IN_GGA(.(H, L1), L2, .(H, L3)) → U4_GGA(H, L1, L2, L3, append1_in_gga(L1, L2, L3))
APPEND1_IN_GGA(.(H, L1), L2, .(H, L3)) → APPEND1_IN_GGA(L1, L2, L3)
U2_GA(L, H, T, append1_out_gga(V, U, W)) → U3_GA(L, H, T, perm_in_ga(W, T))
U2_GA(L, H, T, append1_out_gga(V, U, W)) → PERM_IN_GA(W, T)
perm_in_ga([], []) → perm_out_ga([], [])
perm_in_ga(L, .(H, T)) → U1_ga(L, H, T, append2_in_aag(V, .(H, U), L))
append2_in_aag([], L, L) → append2_out_aag([], L, L)
append2_in_aag(.(H, L1), L2, .(H, L3)) → U5_aag(H, L1, L2, L3, append2_in_aag(L1, L2, L3))
U5_aag(H, L1, L2, L3, append2_out_aag(L1, L2, L3)) → append2_out_aag(.(H, L1), L2, .(H, L3))
U1_ga(L, H, T, append2_out_aag(V, .(H, U), L)) → U2_ga(L, H, T, append1_in_gga(V, U, W))
append1_in_gga([], L, L) → append1_out_gga([], L, L)
append1_in_gga(.(H, L1), L2, .(H, L3)) → U4_gga(H, L1, L2, L3, append1_in_gga(L1, L2, L3))
U4_gga(H, L1, L2, L3, append1_out_gga(L1, L2, L3)) → append1_out_gga(.(H, L1), L2, .(H, L3))
U2_ga(L, H, T, append1_out_gga(V, U, W)) → U3_ga(L, H, T, perm_in_ga(W, T))
U3_ga(L, H, T, perm_out_ga(W, T)) → perm_out_ga(L, .(H, T))
PERM_IN_GA(L, .(H, T)) → U1_GA(L, H, T, append2_in_aag(V, .(H, U), L))
PERM_IN_GA(L, .(H, T)) → APPEND2_IN_AAG(V, .(H, U), L)
APPEND2_IN_AAG(.(H, L1), L2, .(H, L3)) → U5_AAG(H, L1, L2, L3, append2_in_aag(L1, L2, L3))
APPEND2_IN_AAG(.(H, L1), L2, .(H, L3)) → APPEND2_IN_AAG(L1, L2, L3)
U1_GA(L, H, T, append2_out_aag(V, .(H, U), L)) → U2_GA(L, H, T, append1_in_gga(V, U, W))
U1_GA(L, H, T, append2_out_aag(V, .(H, U), L)) → APPEND1_IN_GGA(V, U, W)
APPEND1_IN_GGA(.(H, L1), L2, .(H, L3)) → U4_GGA(H, L1, L2, L3, append1_in_gga(L1, L2, L3))
APPEND1_IN_GGA(.(H, L1), L2, .(H, L3)) → APPEND1_IN_GGA(L1, L2, L3)
U2_GA(L, H, T, append1_out_gga(V, U, W)) → U3_GA(L, H, T, perm_in_ga(W, T))
U2_GA(L, H, T, append1_out_gga(V, U, W)) → PERM_IN_GA(W, T)
perm_in_ga([], []) → perm_out_ga([], [])
perm_in_ga(L, .(H, T)) → U1_ga(L, H, T, append2_in_aag(V, .(H, U), L))
append2_in_aag([], L, L) → append2_out_aag([], L, L)
append2_in_aag(.(H, L1), L2, .(H, L3)) → U5_aag(H, L1, L2, L3, append2_in_aag(L1, L2, L3))
U5_aag(H, L1, L2, L3, append2_out_aag(L1, L2, L3)) → append2_out_aag(.(H, L1), L2, .(H, L3))
U1_ga(L, H, T, append2_out_aag(V, .(H, U), L)) → U2_ga(L, H, T, append1_in_gga(V, U, W))
append1_in_gga([], L, L) → append1_out_gga([], L, L)
append1_in_gga(.(H, L1), L2, .(H, L3)) → U4_gga(H, L1, L2, L3, append1_in_gga(L1, L2, L3))
U4_gga(H, L1, L2, L3, append1_out_gga(L1, L2, L3)) → append1_out_gga(.(H, L1), L2, .(H, L3))
U2_ga(L, H, T, append1_out_gga(V, U, W)) → U3_ga(L, H, T, perm_in_ga(W, T))
U3_ga(L, H, T, perm_out_ga(W, T)) → perm_out_ga(L, .(H, T))
APPEND1_IN_GGA(.(H, L1), L2, .(H, L3)) → APPEND1_IN_GGA(L1, L2, L3)
perm_in_ga([], []) → perm_out_ga([], [])
perm_in_ga(L, .(H, T)) → U1_ga(L, H, T, append2_in_aag(V, .(H, U), L))
append2_in_aag([], L, L) → append2_out_aag([], L, L)
append2_in_aag(.(H, L1), L2, .(H, L3)) → U5_aag(H, L1, L2, L3, append2_in_aag(L1, L2, L3))
U5_aag(H, L1, L2, L3, append2_out_aag(L1, L2, L3)) → append2_out_aag(.(H, L1), L2, .(H, L3))
U1_ga(L, H, T, append2_out_aag(V, .(H, U), L)) → U2_ga(L, H, T, append1_in_gga(V, U, W))
append1_in_gga([], L, L) → append1_out_gga([], L, L)
append1_in_gga(.(H, L1), L2, .(H, L3)) → U4_gga(H, L1, L2, L3, append1_in_gga(L1, L2, L3))
U4_gga(H, L1, L2, L3, append1_out_gga(L1, L2, L3)) → append1_out_gga(.(H, L1), L2, .(H, L3))
U2_ga(L, H, T, append1_out_gga(V, U, W)) → U3_ga(L, H, T, perm_in_ga(W, T))
U3_ga(L, H, T, perm_out_ga(W, T)) → perm_out_ga(L, .(H, T))
APPEND1_IN_GGA(.(H, L1), L2, .(H, L3)) → APPEND1_IN_GGA(L1, L2, L3)
APPEND1_IN_GGA(.(L1), L2) → APPEND1_IN_GGA(L1, L2)
From the DPs we obtained the following set of size-change graphs:
APPEND2_IN_AAG(.(H, L1), L2, .(H, L3)) → APPEND2_IN_AAG(L1, L2, L3)
perm_in_ga([], []) → perm_out_ga([], [])
perm_in_ga(L, .(H, T)) → U1_ga(L, H, T, append2_in_aag(V, .(H, U), L))
append2_in_aag([], L, L) → append2_out_aag([], L, L)
append2_in_aag(.(H, L1), L2, .(H, L3)) → U5_aag(H, L1, L2, L3, append2_in_aag(L1, L2, L3))
U5_aag(H, L1, L2, L3, append2_out_aag(L1, L2, L3)) → append2_out_aag(.(H, L1), L2, .(H, L3))
U1_ga(L, H, T, append2_out_aag(V, .(H, U), L)) → U2_ga(L, H, T, append1_in_gga(V, U, W))
append1_in_gga([], L, L) → append1_out_gga([], L, L)
append1_in_gga(.(H, L1), L2, .(H, L3)) → U4_gga(H, L1, L2, L3, append1_in_gga(L1, L2, L3))
U4_gga(H, L1, L2, L3, append1_out_gga(L1, L2, L3)) → append1_out_gga(.(H, L1), L2, .(H, L3))
U2_ga(L, H, T, append1_out_gga(V, U, W)) → U3_ga(L, H, T, perm_in_ga(W, T))
U3_ga(L, H, T, perm_out_ga(W, T)) → perm_out_ga(L, .(H, T))
APPEND2_IN_AAG(.(H, L1), L2, .(H, L3)) → APPEND2_IN_AAG(L1, L2, L3)
APPEND2_IN_AAG(.(L3)) → APPEND2_IN_AAG(L3)
From the DPs we obtained the following set of size-change graphs:
U1_GA(L, H, T, append2_out_aag(V, .(H, U), L)) → U2_GA(L, H, T, append1_in_gga(V, U, W))
U2_GA(L, H, T, append1_out_gga(V, U, W)) → PERM_IN_GA(W, T)
PERM_IN_GA(L, .(H, T)) → U1_GA(L, H, T, append2_in_aag(V, .(H, U), L))
perm_in_ga([], []) → perm_out_ga([], [])
perm_in_ga(L, .(H, T)) → U1_ga(L, H, T, append2_in_aag(V, .(H, U), L))
append2_in_aag([], L, L) → append2_out_aag([], L, L)
append2_in_aag(.(H, L1), L2, .(H, L3)) → U5_aag(H, L1, L2, L3, append2_in_aag(L1, L2, L3))
U5_aag(H, L1, L2, L3, append2_out_aag(L1, L2, L3)) → append2_out_aag(.(H, L1), L2, .(H, L3))
U1_ga(L, H, T, append2_out_aag(V, .(H, U), L)) → U2_ga(L, H, T, append1_in_gga(V, U, W))
append1_in_gga([], L, L) → append1_out_gga([], L, L)
append1_in_gga(.(H, L1), L2, .(H, L3)) → U4_gga(H, L1, L2, L3, append1_in_gga(L1, L2, L3))
U4_gga(H, L1, L2, L3, append1_out_gga(L1, L2, L3)) → append1_out_gga(.(H, L1), L2, .(H, L3))
U2_ga(L, H, T, append1_out_gga(V, U, W)) → U3_ga(L, H, T, perm_in_ga(W, T))
U3_ga(L, H, T, perm_out_ga(W, T)) → perm_out_ga(L, .(H, T))
U1_GA(L, H, T, append2_out_aag(V, .(H, U), L)) → U2_GA(L, H, T, append1_in_gga(V, U, W))
U2_GA(L, H, T, append1_out_gga(V, U, W)) → PERM_IN_GA(W, T)
PERM_IN_GA(L, .(H, T)) → U1_GA(L, H, T, append2_in_aag(V, .(H, U), L))
append1_in_gga([], L, L) → append1_out_gga([], L, L)
append1_in_gga(.(H, L1), L2, .(H, L3)) → U4_gga(H, L1, L2, L3, append1_in_gga(L1, L2, L3))
append2_in_aag([], L, L) → append2_out_aag([], L, L)
append2_in_aag(.(H, L1), L2, .(H, L3)) → U5_aag(H, L1, L2, L3, append2_in_aag(L1, L2, L3))
U4_gga(H, L1, L2, L3, append1_out_gga(L1, L2, L3)) → append1_out_gga(.(H, L1), L2, .(H, L3))
U5_aag(H, L1, L2, L3, append2_out_aag(L1, L2, L3)) → append2_out_aag(.(H, L1), L2, .(H, L3))
U1_GA(append2_out_aag(V, .(U))) → U2_GA(append1_in_gga(V, U))
U2_GA(append1_out_gga(W)) → PERM_IN_GA(W)
PERM_IN_GA(L) → U1_GA(append2_in_aag(L))
append1_in_gga([], L) → append1_out_gga(L)
append1_in_gga(.(L1), L2) → U4_gga(append1_in_gga(L1, L2))
append2_in_aag(L) → append2_out_aag([], L)
append2_in_aag(.(L3)) → U5_aag(append2_in_aag(L3))
U4_gga(append1_out_gga(L3)) → append1_out_gga(.(L3))
U5_aag(append2_out_aag(L1, L2)) → append2_out_aag(.(L1), L2)
append1_in_gga(x0, x1)
append2_in_aag(x0)
U4_gga(x0)
U5_aag(x0)
U1_GA(append2_out_aag(V, .(U))) → U2_GA(append1_in_gga(V, U))
U2_GA(append1_out_gga(W)) → PERM_IN_GA(W)
PERM_IN_GA(L) → U1_GA(append2_in_aag(L))
append1_in_gga([], L) → append1_out_gga(L)
append2_in_aag(L) → append2_out_aag([], L)
POL(.(x1)) = 5 + x1
POL(PERM_IN_GA(x1)) = 2 + x1
POL(U1_GA(x1)) = x1
POL(U2_GA(x1)) = x1
POL(U4_gga(x1)) = 5 + x1
POL(U5_aag(x1)) = 5 + x1
POL([]) = 0
POL(append1_in_gga(x1, x2)) = 4 + x1 + x2
POL(append1_out_gga(x1)) = 3 + x1
POL(append2_in_aag(x1)) = 1 + x1
POL(append2_out_aag(x1, x2)) = x1 + x2
append1_in_gga(.(L1), L2) → U4_gga(append1_in_gga(L1, L2))
append2_in_aag(.(L3)) → U5_aag(append2_in_aag(L3))
U4_gga(append1_out_gga(L3)) → append1_out_gga(.(L3))
U5_aag(append2_out_aag(L1, L2)) → append2_out_aag(.(L1), L2)
append1_in_gga(x0, x1)
append2_in_aag(x0)
U4_gga(x0)
U5_aag(x0)