(0) Obligation:

Clauses:

ss(Xs, Ys) :- ','(perm(Xs, Ys), ordered(Ys)).
perm([], []).
perm(Xs, .(X, Ys)) :- ','(app(X1s, .(X, X2s), Xs), ','(app(X1s, X2s, Zs), perm(Zs, Ys))).
app([], X, X).
app(.(X, Xs), Ys, .(X, Zs)) :- app(Xs, Ys, Zs).
ordered([]).
ordered(.(X1, [])).
ordered(.(X, .(Y, Xs))) :- ','(less(X, s(Y)), ordered(.(Y, Xs))).
less(0, s(X2)).
less(s(X), s(Y)) :- less(X, Y).

Query: ss(g,g)

(1) PrologToPiTRSViaGraphTransformerProof (SOUND transformation)

Transformed Prolog program to (Pi-)TRS.

(2) Obligation:

Pi-finite rewrite system:
The TRS R consists of the following rules:

ssA_in_gg([], []) → ssA_out_gg([], [])
ssA_in_gg(T13, .(T14, T15)) → U1_gg(T13, T14, T15, pB_in_agagag(X23, T14, X24, T13, X25, T15))
pB_in_agagag(T20, T14, T21, T13, X25, T15) → U8_agagag(T20, T14, T21, T13, X25, T15, appC_in_agag(T20, T14, T21, T13))
appC_in_agag([], T34, T35, .(T34, T35)) → appC_out_agag([], T34, T35, .(T34, T35))
appC_in_agag(.(T43, X63), T42, X64, .(T43, T44)) → U2_agag(T43, X63, T42, X64, T44, appC_in_agag(X63, T42, X64, T44))
U2_agag(T43, X63, T42, X64, T44, appC_out_agag(X63, T42, X64, T44)) → appC_out_agag(.(T43, X63), T42, X64, .(T43, T44))
U8_agagag(T20, T14, T21, T13, X25, T15, appC_out_agag(T20, T14, T21, T13)) → U9_agagag(T20, T14, T21, T13, X25, T15, pK_in_ggagg(T20, T21, X25, T15, T14))
pK_in_ggagg(T20, T21, T51, T15, T14) → U10_ggagg(T20, T21, T51, T15, T14, appD_in_gga(T20, T21, T51))
appD_in_gga([], T58, T58) → appD_out_gga([], T58, T58)
appD_in_gga(.(T65, T66), T67, .(T65, X92)) → U3_gga(T65, T66, T67, X92, appD_in_gga(T66, T67, X92))
U3_gga(T65, T66, T67, X92, appD_out_gga(T66, T67, X92)) → appD_out_gga(.(T65, T66), T67, .(T65, X92))
U10_ggagg(T20, T21, T51, T15, T14, appD_out_gga(T20, T21, T51)) → U11_ggagg(T20, T21, T51, T15, T14, pL_in_ggg(T51, T15, T14))
pL_in_ggg(T51, T15, T14) → U12_ggg(T51, T15, T14, permE_in_gg(T51, T15))
permE_in_gg([], []) → permE_out_gg([], [])
permE_in_gg(T76, .(T77, T78)) → U4_gg(T76, T77, T78, pF_in_agagag(X107, T77, X108, T76, X109, T78))
pF_in_agagag(T83, T77, T84, T76, X109, T78) → U14_agagag(T83, T77, T84, T76, X109, T78, appC_in_agag(T83, T77, T84, T76))
U14_agagag(T83, T77, T84, T76, X109, T78, appC_out_agag(T83, T77, T84, T76)) → U15_agagag(T83, T77, T84, T76, X109, T78, pM_in_ggag(T83, T84, X109, T78))
pM_in_ggag(T83, T84, T91, T78) → U16_ggag(T83, T84, T91, T78, appD_in_gga(T83, T84, T91))
U16_ggag(T83, T84, T91, T78, appD_out_gga(T83, T84, T91)) → U17_ggag(T83, T84, T91, T78, permE_in_gg(T91, T78))
U17_ggag(T83, T84, T91, T78, permE_out_gg(T91, T78)) → pM_out_ggag(T83, T84, T91, T78)
U15_agagag(T83, T77, T84, T76, X109, T78, pM_out_ggag(T83, T84, X109, T78)) → pF_out_agagag(T83, T77, T84, T76, X109, T78)
U4_gg(T76, T77, T78, pF_out_agagag(X107, T77, X108, T76, X109, T78)) → permE_out_gg(T76, .(T77, T78))
U12_ggg(T51, T15, T14, permE_out_gg(T51, T15)) → U13_ggg(T51, T15, T14, orderedG_in_gg(T14, T15))
orderedG_in_gg(T98, []) → orderedG_out_gg(T98, [])
orderedG_in_gg(T105, .(T106, T107)) → U5_gg(T105, T106, T107, pH_in_ggg(T105, T106, T107))
pH_in_ggg(T105, T106, T107) → U18_ggg(T105, T106, T107, lessJ_in_gg(T105, T106))
lessJ_in_gg(0, T116) → lessJ_out_gg(0, T116)
lessJ_in_gg(s(T121), T122) → U7_gg(T121, T122, lessI_in_gg(T121, T122))
lessI_in_gg(0, s(T129)) → lessI_out_gg(0, s(T129))
lessI_in_gg(s(T134), s(T135)) → U6_gg(T134, T135, lessI_in_gg(T134, T135))
U6_gg(T134, T135, lessI_out_gg(T134, T135)) → lessI_out_gg(s(T134), s(T135))
U7_gg(T121, T122, lessI_out_gg(T121, T122)) → lessJ_out_gg(s(T121), T122)
U18_ggg(T105, T106, T107, lessJ_out_gg(T105, T106)) → U19_ggg(T105, T106, T107, orderedG_in_gg(T106, T107))
U19_ggg(T105, T106, T107, orderedG_out_gg(T106, T107)) → pH_out_ggg(T105, T106, T107)
U5_gg(T105, T106, T107, pH_out_ggg(T105, T106, T107)) → orderedG_out_gg(T105, .(T106, T107))
U13_ggg(T51, T15, T14, orderedG_out_gg(T14, T15)) → pL_out_ggg(T51, T15, T14)
U11_ggagg(T20, T21, T51, T15, T14, pL_out_ggg(T51, T15, T14)) → pK_out_ggagg(T20, T21, T51, T15, T14)
U9_agagag(T20, T14, T21, T13, X25, T15, pK_out_ggagg(T20, T21, X25, T15, T14)) → pB_out_agagag(T20, T14, T21, T13, X25, T15)
U1_gg(T13, T14, T15, pB_out_agagag(X23, T14, X24, T13, X25, T15)) → ssA_out_gg(T13, .(T14, T15))

The argument filtering Pi contains the following mapping:
ssA_in_gg(x1, x2)  =  ssA_in_gg(x1, x2)
[]  =  []
ssA_out_gg(x1, x2)  =  ssA_out_gg(x1, x2)
.(x1, x2)  =  .(x1, x2)
U1_gg(x1, x2, x3, x4)  =  U1_gg(x1, x2, x3, x4)
pB_in_agagag(x1, x2, x3, x4, x5, x6)  =  pB_in_agagag(x2, x4, x6)
U8_agagag(x1, x2, x3, x4, x5, x6, x7)  =  U8_agagag(x2, x4, x6, x7)
appC_in_agag(x1, x2, x3, x4)  =  appC_in_agag(x2, x4)
appC_out_agag(x1, x2, x3, x4)  =  appC_out_agag(x1, x2, x3, x4)
U2_agag(x1, x2, x3, x4, x5, x6)  =  U2_agag(x1, x3, x5, x6)
U9_agagag(x1, x2, x3, x4, x5, x6, x7)  =  U9_agagag(x1, x2, x3, x4, x6, x7)
pK_in_ggagg(x1, x2, x3, x4, x5)  =  pK_in_ggagg(x1, x2, x4, x5)
U10_ggagg(x1, x2, x3, x4, x5, x6)  =  U10_ggagg(x1, x2, x4, x5, x6)
appD_in_gga(x1, x2, x3)  =  appD_in_gga(x1, x2)
appD_out_gga(x1, x2, x3)  =  appD_out_gga(x1, x2, x3)
U3_gga(x1, x2, x3, x4, x5)  =  U3_gga(x1, x2, x3, x5)
U11_ggagg(x1, x2, x3, x4, x5, x6)  =  U11_ggagg(x1, x2, x3, x4, x5, x6)
pL_in_ggg(x1, x2, x3)  =  pL_in_ggg(x1, x2, x3)
U12_ggg(x1, x2, x3, x4)  =  U12_ggg(x1, x2, x3, x4)
permE_in_gg(x1, x2)  =  permE_in_gg(x1, x2)
permE_out_gg(x1, x2)  =  permE_out_gg(x1, x2)
U4_gg(x1, x2, x3, x4)  =  U4_gg(x1, x2, x3, x4)
pF_in_agagag(x1, x2, x3, x4, x5, x6)  =  pF_in_agagag(x2, x4, x6)
U14_agagag(x1, x2, x3, x4, x5, x6, x7)  =  U14_agagag(x2, x4, x6, x7)
U15_agagag(x1, x2, x3, x4, x5, x6, x7)  =  U15_agagag(x1, x2, x3, x4, x6, x7)
pM_in_ggag(x1, x2, x3, x4)  =  pM_in_ggag(x1, x2, x4)
U16_ggag(x1, x2, x3, x4, x5)  =  U16_ggag(x1, x2, x4, x5)
U17_ggag(x1, x2, x3, x4, x5)  =  U17_ggag(x1, x2, x3, x4, x5)
pM_out_ggag(x1, x2, x3, x4)  =  pM_out_ggag(x1, x2, x3, x4)
pF_out_agagag(x1, x2, x3, x4, x5, x6)  =  pF_out_agagag(x1, x2, x3, x4, x5, x6)
U13_ggg(x1, x2, x3, x4)  =  U13_ggg(x1, x2, x3, x4)
orderedG_in_gg(x1, x2)  =  orderedG_in_gg(x1, x2)
orderedG_out_gg(x1, x2)  =  orderedG_out_gg(x1, x2)
U5_gg(x1, x2, x3, x4)  =  U5_gg(x1, x2, x3, x4)
pH_in_ggg(x1, x2, x3)  =  pH_in_ggg(x1, x2, x3)
U18_ggg(x1, x2, x3, x4)  =  U18_ggg(x1, x2, x3, x4)
lessJ_in_gg(x1, x2)  =  lessJ_in_gg(x1, x2)
0  =  0
lessJ_out_gg(x1, x2)  =  lessJ_out_gg(x1, x2)
s(x1)  =  s(x1)
U7_gg(x1, x2, x3)  =  U7_gg(x1, x2, x3)
lessI_in_gg(x1, x2)  =  lessI_in_gg(x1, x2)
lessI_out_gg(x1, x2)  =  lessI_out_gg(x1, x2)
U6_gg(x1, x2, x3)  =  U6_gg(x1, x2, x3)
U19_ggg(x1, x2, x3, x4)  =  U19_ggg(x1, x2, x3, x4)
pH_out_ggg(x1, x2, x3)  =  pH_out_ggg(x1, x2, x3)
pL_out_ggg(x1, x2, x3)  =  pL_out_ggg(x1, x2, x3)
pK_out_ggagg(x1, x2, x3, x4, x5)  =  pK_out_ggagg(x1, x2, x3, x4, x5)
pB_out_agagag(x1, x2, x3, x4, x5, x6)  =  pB_out_agagag(x1, x2, x3, x4, x5, x6)

(3) DependencyPairsProof (EQUIVALENT transformation)

Using Dependency Pairs [AG00,LOPSTR] we result in the following initial DP problem:
Pi DP problem:
The TRS P consists of the following rules:

SSA_IN_GG(T13, .(T14, T15)) → U1_GG(T13, T14, T15, pB_in_agagag(X23, T14, X24, T13, X25, T15))
SSA_IN_GG(T13, .(T14, T15)) → PB_IN_AGAGAG(X23, T14, X24, T13, X25, T15)
PB_IN_AGAGAG(T20, T14, T21, T13, X25, T15) → U8_AGAGAG(T20, T14, T21, T13, X25, T15, appC_in_agag(T20, T14, T21, T13))
PB_IN_AGAGAG(T20, T14, T21, T13, X25, T15) → APPC_IN_AGAG(T20, T14, T21, T13)
APPC_IN_AGAG(.(T43, X63), T42, X64, .(T43, T44)) → U2_AGAG(T43, X63, T42, X64, T44, appC_in_agag(X63, T42, X64, T44))
APPC_IN_AGAG(.(T43, X63), T42, X64, .(T43, T44)) → APPC_IN_AGAG(X63, T42, X64, T44)
U8_AGAGAG(T20, T14, T21, T13, X25, T15, appC_out_agag(T20, T14, T21, T13)) → U9_AGAGAG(T20, T14, T21, T13, X25, T15, pK_in_ggagg(T20, T21, X25, T15, T14))
U8_AGAGAG(T20, T14, T21, T13, X25, T15, appC_out_agag(T20, T14, T21, T13)) → PK_IN_GGAGG(T20, T21, X25, T15, T14)
PK_IN_GGAGG(T20, T21, T51, T15, T14) → U10_GGAGG(T20, T21, T51, T15, T14, appD_in_gga(T20, T21, T51))
PK_IN_GGAGG(T20, T21, T51, T15, T14) → APPD_IN_GGA(T20, T21, T51)
APPD_IN_GGA(.(T65, T66), T67, .(T65, X92)) → U3_GGA(T65, T66, T67, X92, appD_in_gga(T66, T67, X92))
APPD_IN_GGA(.(T65, T66), T67, .(T65, X92)) → APPD_IN_GGA(T66, T67, X92)
U10_GGAGG(T20, T21, T51, T15, T14, appD_out_gga(T20, T21, T51)) → U11_GGAGG(T20, T21, T51, T15, T14, pL_in_ggg(T51, T15, T14))
U10_GGAGG(T20, T21, T51, T15, T14, appD_out_gga(T20, T21, T51)) → PL_IN_GGG(T51, T15, T14)
PL_IN_GGG(T51, T15, T14) → U12_GGG(T51, T15, T14, permE_in_gg(T51, T15))
PL_IN_GGG(T51, T15, T14) → PERME_IN_GG(T51, T15)
PERME_IN_GG(T76, .(T77, T78)) → U4_GG(T76, T77, T78, pF_in_agagag(X107, T77, X108, T76, X109, T78))
PERME_IN_GG(T76, .(T77, T78)) → PF_IN_AGAGAG(X107, T77, X108, T76, X109, T78)
PF_IN_AGAGAG(T83, T77, T84, T76, X109, T78) → U14_AGAGAG(T83, T77, T84, T76, X109, T78, appC_in_agag(T83, T77, T84, T76))
PF_IN_AGAGAG(T83, T77, T84, T76, X109, T78) → APPC_IN_AGAG(T83, T77, T84, T76)
U14_AGAGAG(T83, T77, T84, T76, X109, T78, appC_out_agag(T83, T77, T84, T76)) → U15_AGAGAG(T83, T77, T84, T76, X109, T78, pM_in_ggag(T83, T84, X109, T78))
U14_AGAGAG(T83, T77, T84, T76, X109, T78, appC_out_agag(T83, T77, T84, T76)) → PM_IN_GGAG(T83, T84, X109, T78)
PM_IN_GGAG(T83, T84, T91, T78) → U16_GGAG(T83, T84, T91, T78, appD_in_gga(T83, T84, T91))
PM_IN_GGAG(T83, T84, T91, T78) → APPD_IN_GGA(T83, T84, T91)
U16_GGAG(T83, T84, T91, T78, appD_out_gga(T83, T84, T91)) → U17_GGAG(T83, T84, T91, T78, permE_in_gg(T91, T78))
U16_GGAG(T83, T84, T91, T78, appD_out_gga(T83, T84, T91)) → PERME_IN_GG(T91, T78)
U12_GGG(T51, T15, T14, permE_out_gg(T51, T15)) → U13_GGG(T51, T15, T14, orderedG_in_gg(T14, T15))
U12_GGG(T51, T15, T14, permE_out_gg(T51, T15)) → ORDEREDG_IN_GG(T14, T15)
ORDEREDG_IN_GG(T105, .(T106, T107)) → U5_GG(T105, T106, T107, pH_in_ggg(T105, T106, T107))
ORDEREDG_IN_GG(T105, .(T106, T107)) → PH_IN_GGG(T105, T106, T107)
PH_IN_GGG(T105, T106, T107) → U18_GGG(T105, T106, T107, lessJ_in_gg(T105, T106))
PH_IN_GGG(T105, T106, T107) → LESSJ_IN_GG(T105, T106)
LESSJ_IN_GG(s(T121), T122) → U7_GG(T121, T122, lessI_in_gg(T121, T122))
LESSJ_IN_GG(s(T121), T122) → LESSI_IN_GG(T121, T122)
LESSI_IN_GG(s(T134), s(T135)) → U6_GG(T134, T135, lessI_in_gg(T134, T135))
LESSI_IN_GG(s(T134), s(T135)) → LESSI_IN_GG(T134, T135)
U18_GGG(T105, T106, T107, lessJ_out_gg(T105, T106)) → U19_GGG(T105, T106, T107, orderedG_in_gg(T106, T107))
U18_GGG(T105, T106, T107, lessJ_out_gg(T105, T106)) → ORDEREDG_IN_GG(T106, T107)

The TRS R consists of the following rules:

ssA_in_gg([], []) → ssA_out_gg([], [])
ssA_in_gg(T13, .(T14, T15)) → U1_gg(T13, T14, T15, pB_in_agagag(X23, T14, X24, T13, X25, T15))
pB_in_agagag(T20, T14, T21, T13, X25, T15) → U8_agagag(T20, T14, T21, T13, X25, T15, appC_in_agag(T20, T14, T21, T13))
appC_in_agag([], T34, T35, .(T34, T35)) → appC_out_agag([], T34, T35, .(T34, T35))
appC_in_agag(.(T43, X63), T42, X64, .(T43, T44)) → U2_agag(T43, X63, T42, X64, T44, appC_in_agag(X63, T42, X64, T44))
U2_agag(T43, X63, T42, X64, T44, appC_out_agag(X63, T42, X64, T44)) → appC_out_agag(.(T43, X63), T42, X64, .(T43, T44))
U8_agagag(T20, T14, T21, T13, X25, T15, appC_out_agag(T20, T14, T21, T13)) → U9_agagag(T20, T14, T21, T13, X25, T15, pK_in_ggagg(T20, T21, X25, T15, T14))
pK_in_ggagg(T20, T21, T51, T15, T14) → U10_ggagg(T20, T21, T51, T15, T14, appD_in_gga(T20, T21, T51))
appD_in_gga([], T58, T58) → appD_out_gga([], T58, T58)
appD_in_gga(.(T65, T66), T67, .(T65, X92)) → U3_gga(T65, T66, T67, X92, appD_in_gga(T66, T67, X92))
U3_gga(T65, T66, T67, X92, appD_out_gga(T66, T67, X92)) → appD_out_gga(.(T65, T66), T67, .(T65, X92))
U10_ggagg(T20, T21, T51, T15, T14, appD_out_gga(T20, T21, T51)) → U11_ggagg(T20, T21, T51, T15, T14, pL_in_ggg(T51, T15, T14))
pL_in_ggg(T51, T15, T14) → U12_ggg(T51, T15, T14, permE_in_gg(T51, T15))
permE_in_gg([], []) → permE_out_gg([], [])
permE_in_gg(T76, .(T77, T78)) → U4_gg(T76, T77, T78, pF_in_agagag(X107, T77, X108, T76, X109, T78))
pF_in_agagag(T83, T77, T84, T76, X109, T78) → U14_agagag(T83, T77, T84, T76, X109, T78, appC_in_agag(T83, T77, T84, T76))
U14_agagag(T83, T77, T84, T76, X109, T78, appC_out_agag(T83, T77, T84, T76)) → U15_agagag(T83, T77, T84, T76, X109, T78, pM_in_ggag(T83, T84, X109, T78))
pM_in_ggag(T83, T84, T91, T78) → U16_ggag(T83, T84, T91, T78, appD_in_gga(T83, T84, T91))
U16_ggag(T83, T84, T91, T78, appD_out_gga(T83, T84, T91)) → U17_ggag(T83, T84, T91, T78, permE_in_gg(T91, T78))
U17_ggag(T83, T84, T91, T78, permE_out_gg(T91, T78)) → pM_out_ggag(T83, T84, T91, T78)
U15_agagag(T83, T77, T84, T76, X109, T78, pM_out_ggag(T83, T84, X109, T78)) → pF_out_agagag(T83, T77, T84, T76, X109, T78)
U4_gg(T76, T77, T78, pF_out_agagag(X107, T77, X108, T76, X109, T78)) → permE_out_gg(T76, .(T77, T78))
U12_ggg(T51, T15, T14, permE_out_gg(T51, T15)) → U13_ggg(T51, T15, T14, orderedG_in_gg(T14, T15))
orderedG_in_gg(T98, []) → orderedG_out_gg(T98, [])
orderedG_in_gg(T105, .(T106, T107)) → U5_gg(T105, T106, T107, pH_in_ggg(T105, T106, T107))
pH_in_ggg(T105, T106, T107) → U18_ggg(T105, T106, T107, lessJ_in_gg(T105, T106))
lessJ_in_gg(0, T116) → lessJ_out_gg(0, T116)
lessJ_in_gg(s(T121), T122) → U7_gg(T121, T122, lessI_in_gg(T121, T122))
lessI_in_gg(0, s(T129)) → lessI_out_gg(0, s(T129))
lessI_in_gg(s(T134), s(T135)) → U6_gg(T134, T135, lessI_in_gg(T134, T135))
U6_gg(T134, T135, lessI_out_gg(T134, T135)) → lessI_out_gg(s(T134), s(T135))
U7_gg(T121, T122, lessI_out_gg(T121, T122)) → lessJ_out_gg(s(T121), T122)
U18_ggg(T105, T106, T107, lessJ_out_gg(T105, T106)) → U19_ggg(T105, T106, T107, orderedG_in_gg(T106, T107))
U19_ggg(T105, T106, T107, orderedG_out_gg(T106, T107)) → pH_out_ggg(T105, T106, T107)
U5_gg(T105, T106, T107, pH_out_ggg(T105, T106, T107)) → orderedG_out_gg(T105, .(T106, T107))
U13_ggg(T51, T15, T14, orderedG_out_gg(T14, T15)) → pL_out_ggg(T51, T15, T14)
U11_ggagg(T20, T21, T51, T15, T14, pL_out_ggg(T51, T15, T14)) → pK_out_ggagg(T20, T21, T51, T15, T14)
U9_agagag(T20, T14, T21, T13, X25, T15, pK_out_ggagg(T20, T21, X25, T15, T14)) → pB_out_agagag(T20, T14, T21, T13, X25, T15)
U1_gg(T13, T14, T15, pB_out_agagag(X23, T14, X24, T13, X25, T15)) → ssA_out_gg(T13, .(T14, T15))

The argument filtering Pi contains the following mapping:
ssA_in_gg(x1, x2)  =  ssA_in_gg(x1, x2)
[]  =  []
ssA_out_gg(x1, x2)  =  ssA_out_gg(x1, x2)
.(x1, x2)  =  .(x1, x2)
U1_gg(x1, x2, x3, x4)  =  U1_gg(x1, x2, x3, x4)
pB_in_agagag(x1, x2, x3, x4, x5, x6)  =  pB_in_agagag(x2, x4, x6)
U8_agagag(x1, x2, x3, x4, x5, x6, x7)  =  U8_agagag(x2, x4, x6, x7)
appC_in_agag(x1, x2, x3, x4)  =  appC_in_agag(x2, x4)
appC_out_agag(x1, x2, x3, x4)  =  appC_out_agag(x1, x2, x3, x4)
U2_agag(x1, x2, x3, x4, x5, x6)  =  U2_agag(x1, x3, x5, x6)
U9_agagag(x1, x2, x3, x4, x5, x6, x7)  =  U9_agagag(x1, x2, x3, x4, x6, x7)
pK_in_ggagg(x1, x2, x3, x4, x5)  =  pK_in_ggagg(x1, x2, x4, x5)
U10_ggagg(x1, x2, x3, x4, x5, x6)  =  U10_ggagg(x1, x2, x4, x5, x6)
appD_in_gga(x1, x2, x3)  =  appD_in_gga(x1, x2)
appD_out_gga(x1, x2, x3)  =  appD_out_gga(x1, x2, x3)
U3_gga(x1, x2, x3, x4, x5)  =  U3_gga(x1, x2, x3, x5)
U11_ggagg(x1, x2, x3, x4, x5, x6)  =  U11_ggagg(x1, x2, x3, x4, x5, x6)
pL_in_ggg(x1, x2, x3)  =  pL_in_ggg(x1, x2, x3)
U12_ggg(x1, x2, x3, x4)  =  U12_ggg(x1, x2, x3, x4)
permE_in_gg(x1, x2)  =  permE_in_gg(x1, x2)
permE_out_gg(x1, x2)  =  permE_out_gg(x1, x2)
U4_gg(x1, x2, x3, x4)  =  U4_gg(x1, x2, x3, x4)
pF_in_agagag(x1, x2, x3, x4, x5, x6)  =  pF_in_agagag(x2, x4, x6)
U14_agagag(x1, x2, x3, x4, x5, x6, x7)  =  U14_agagag(x2, x4, x6, x7)
U15_agagag(x1, x2, x3, x4, x5, x6, x7)  =  U15_agagag(x1, x2, x3, x4, x6, x7)
pM_in_ggag(x1, x2, x3, x4)  =  pM_in_ggag(x1, x2, x4)
U16_ggag(x1, x2, x3, x4, x5)  =  U16_ggag(x1, x2, x4, x5)
U17_ggag(x1, x2, x3, x4, x5)  =  U17_ggag(x1, x2, x3, x4, x5)
pM_out_ggag(x1, x2, x3, x4)  =  pM_out_ggag(x1, x2, x3, x4)
pF_out_agagag(x1, x2, x3, x4, x5, x6)  =  pF_out_agagag(x1, x2, x3, x4, x5, x6)
U13_ggg(x1, x2, x3, x4)  =  U13_ggg(x1, x2, x3, x4)
orderedG_in_gg(x1, x2)  =  orderedG_in_gg(x1, x2)
orderedG_out_gg(x1, x2)  =  orderedG_out_gg(x1, x2)
U5_gg(x1, x2, x3, x4)  =  U5_gg(x1, x2, x3, x4)
pH_in_ggg(x1, x2, x3)  =  pH_in_ggg(x1, x2, x3)
U18_ggg(x1, x2, x3, x4)  =  U18_ggg(x1, x2, x3, x4)
lessJ_in_gg(x1, x2)  =  lessJ_in_gg(x1, x2)
0  =  0
lessJ_out_gg(x1, x2)  =  lessJ_out_gg(x1, x2)
s(x1)  =  s(x1)
U7_gg(x1, x2, x3)  =  U7_gg(x1, x2, x3)
lessI_in_gg(x1, x2)  =  lessI_in_gg(x1, x2)
lessI_out_gg(x1, x2)  =  lessI_out_gg(x1, x2)
U6_gg(x1, x2, x3)  =  U6_gg(x1, x2, x3)
U19_ggg(x1, x2, x3, x4)  =  U19_ggg(x1, x2, x3, x4)
pH_out_ggg(x1, x2, x3)  =  pH_out_ggg(x1, x2, x3)
pL_out_ggg(x1, x2, x3)  =  pL_out_ggg(x1, x2, x3)
pK_out_ggagg(x1, x2, x3, x4, x5)  =  pK_out_ggagg(x1, x2, x3, x4, x5)
pB_out_agagag(x1, x2, x3, x4, x5, x6)  =  pB_out_agagag(x1, x2, x3, x4, x5, x6)
SSA_IN_GG(x1, x2)  =  SSA_IN_GG(x1, x2)
U1_GG(x1, x2, x3, x4)  =  U1_GG(x1, x2, x3, x4)
PB_IN_AGAGAG(x1, x2, x3, x4, x5, x6)  =  PB_IN_AGAGAG(x2, x4, x6)
U8_AGAGAG(x1, x2, x3, x4, x5, x6, x7)  =  U8_AGAGAG(x2, x4, x6, x7)
APPC_IN_AGAG(x1, x2, x3, x4)  =  APPC_IN_AGAG(x2, x4)
U2_AGAG(x1, x2, x3, x4, x5, x6)  =  U2_AGAG(x1, x3, x5, x6)
U9_AGAGAG(x1, x2, x3, x4, x5, x6, x7)  =  U9_AGAGAG(x1, x2, x3, x4, x6, x7)
PK_IN_GGAGG(x1, x2, x3, x4, x5)  =  PK_IN_GGAGG(x1, x2, x4, x5)
U10_GGAGG(x1, x2, x3, x4, x5, x6)  =  U10_GGAGG(x1, x2, x4, x5, x6)
APPD_IN_GGA(x1, x2, x3)  =  APPD_IN_GGA(x1, x2)
U3_GGA(x1, x2, x3, x4, x5)  =  U3_GGA(x1, x2, x3, x5)
U11_GGAGG(x1, x2, x3, x4, x5, x6)  =  U11_GGAGG(x1, x2, x3, x4, x5, x6)
PL_IN_GGG(x1, x2, x3)  =  PL_IN_GGG(x1, x2, x3)
U12_GGG(x1, x2, x3, x4)  =  U12_GGG(x1, x2, x3, x4)
PERME_IN_GG(x1, x2)  =  PERME_IN_GG(x1, x2)
U4_GG(x1, x2, x3, x4)  =  U4_GG(x1, x2, x3, x4)
PF_IN_AGAGAG(x1, x2, x3, x4, x5, x6)  =  PF_IN_AGAGAG(x2, x4, x6)
U14_AGAGAG(x1, x2, x3, x4, x5, x6, x7)  =  U14_AGAGAG(x2, x4, x6, x7)
U15_AGAGAG(x1, x2, x3, x4, x5, x6, x7)  =  U15_AGAGAG(x1, x2, x3, x4, x6, x7)
PM_IN_GGAG(x1, x2, x3, x4)  =  PM_IN_GGAG(x1, x2, x4)
U16_GGAG(x1, x2, x3, x4, x5)  =  U16_GGAG(x1, x2, x4, x5)
U17_GGAG(x1, x2, x3, x4, x5)  =  U17_GGAG(x1, x2, x3, x4, x5)
U13_GGG(x1, x2, x3, x4)  =  U13_GGG(x1, x2, x3, x4)
ORDEREDG_IN_GG(x1, x2)  =  ORDEREDG_IN_GG(x1, x2)
U5_GG(x1, x2, x3, x4)  =  U5_GG(x1, x2, x3, x4)
PH_IN_GGG(x1, x2, x3)  =  PH_IN_GGG(x1, x2, x3)
U18_GGG(x1, x2, x3, x4)  =  U18_GGG(x1, x2, x3, x4)
LESSJ_IN_GG(x1, x2)  =  LESSJ_IN_GG(x1, x2)
U7_GG(x1, x2, x3)  =  U7_GG(x1, x2, x3)
LESSI_IN_GG(x1, x2)  =  LESSI_IN_GG(x1, x2)
U6_GG(x1, x2, x3)  =  U6_GG(x1, x2, x3)
U19_GGG(x1, x2, x3, x4)  =  U19_GGG(x1, x2, x3, x4)

We have to consider all (P,R,Pi)-chains

(4) Obligation:

Pi DP problem:
The TRS P consists of the following rules:

SSA_IN_GG(T13, .(T14, T15)) → U1_GG(T13, T14, T15, pB_in_agagag(X23, T14, X24, T13, X25, T15))
SSA_IN_GG(T13, .(T14, T15)) → PB_IN_AGAGAG(X23, T14, X24, T13, X25, T15)
PB_IN_AGAGAG(T20, T14, T21, T13, X25, T15) → U8_AGAGAG(T20, T14, T21, T13, X25, T15, appC_in_agag(T20, T14, T21, T13))
PB_IN_AGAGAG(T20, T14, T21, T13, X25, T15) → APPC_IN_AGAG(T20, T14, T21, T13)
APPC_IN_AGAG(.(T43, X63), T42, X64, .(T43, T44)) → U2_AGAG(T43, X63, T42, X64, T44, appC_in_agag(X63, T42, X64, T44))
APPC_IN_AGAG(.(T43, X63), T42, X64, .(T43, T44)) → APPC_IN_AGAG(X63, T42, X64, T44)
U8_AGAGAG(T20, T14, T21, T13, X25, T15, appC_out_agag(T20, T14, T21, T13)) → U9_AGAGAG(T20, T14, T21, T13, X25, T15, pK_in_ggagg(T20, T21, X25, T15, T14))
U8_AGAGAG(T20, T14, T21, T13, X25, T15, appC_out_agag(T20, T14, T21, T13)) → PK_IN_GGAGG(T20, T21, X25, T15, T14)
PK_IN_GGAGG(T20, T21, T51, T15, T14) → U10_GGAGG(T20, T21, T51, T15, T14, appD_in_gga(T20, T21, T51))
PK_IN_GGAGG(T20, T21, T51, T15, T14) → APPD_IN_GGA(T20, T21, T51)
APPD_IN_GGA(.(T65, T66), T67, .(T65, X92)) → U3_GGA(T65, T66, T67, X92, appD_in_gga(T66, T67, X92))
APPD_IN_GGA(.(T65, T66), T67, .(T65, X92)) → APPD_IN_GGA(T66, T67, X92)
U10_GGAGG(T20, T21, T51, T15, T14, appD_out_gga(T20, T21, T51)) → U11_GGAGG(T20, T21, T51, T15, T14, pL_in_ggg(T51, T15, T14))
U10_GGAGG(T20, T21, T51, T15, T14, appD_out_gga(T20, T21, T51)) → PL_IN_GGG(T51, T15, T14)
PL_IN_GGG(T51, T15, T14) → U12_GGG(T51, T15, T14, permE_in_gg(T51, T15))
PL_IN_GGG(T51, T15, T14) → PERME_IN_GG(T51, T15)
PERME_IN_GG(T76, .(T77, T78)) → U4_GG(T76, T77, T78, pF_in_agagag(X107, T77, X108, T76, X109, T78))
PERME_IN_GG(T76, .(T77, T78)) → PF_IN_AGAGAG(X107, T77, X108, T76, X109, T78)
PF_IN_AGAGAG(T83, T77, T84, T76, X109, T78) → U14_AGAGAG(T83, T77, T84, T76, X109, T78, appC_in_agag(T83, T77, T84, T76))
PF_IN_AGAGAG(T83, T77, T84, T76, X109, T78) → APPC_IN_AGAG(T83, T77, T84, T76)
U14_AGAGAG(T83, T77, T84, T76, X109, T78, appC_out_agag(T83, T77, T84, T76)) → U15_AGAGAG(T83, T77, T84, T76, X109, T78, pM_in_ggag(T83, T84, X109, T78))
U14_AGAGAG(T83, T77, T84, T76, X109, T78, appC_out_agag(T83, T77, T84, T76)) → PM_IN_GGAG(T83, T84, X109, T78)
PM_IN_GGAG(T83, T84, T91, T78) → U16_GGAG(T83, T84, T91, T78, appD_in_gga(T83, T84, T91))
PM_IN_GGAG(T83, T84, T91, T78) → APPD_IN_GGA(T83, T84, T91)
U16_GGAG(T83, T84, T91, T78, appD_out_gga(T83, T84, T91)) → U17_GGAG(T83, T84, T91, T78, permE_in_gg(T91, T78))
U16_GGAG(T83, T84, T91, T78, appD_out_gga(T83, T84, T91)) → PERME_IN_GG(T91, T78)
U12_GGG(T51, T15, T14, permE_out_gg(T51, T15)) → U13_GGG(T51, T15, T14, orderedG_in_gg(T14, T15))
U12_GGG(T51, T15, T14, permE_out_gg(T51, T15)) → ORDEREDG_IN_GG(T14, T15)
ORDEREDG_IN_GG(T105, .(T106, T107)) → U5_GG(T105, T106, T107, pH_in_ggg(T105, T106, T107))
ORDEREDG_IN_GG(T105, .(T106, T107)) → PH_IN_GGG(T105, T106, T107)
PH_IN_GGG(T105, T106, T107) → U18_GGG(T105, T106, T107, lessJ_in_gg(T105, T106))
PH_IN_GGG(T105, T106, T107) → LESSJ_IN_GG(T105, T106)
LESSJ_IN_GG(s(T121), T122) → U7_GG(T121, T122, lessI_in_gg(T121, T122))
LESSJ_IN_GG(s(T121), T122) → LESSI_IN_GG(T121, T122)
LESSI_IN_GG(s(T134), s(T135)) → U6_GG(T134, T135, lessI_in_gg(T134, T135))
LESSI_IN_GG(s(T134), s(T135)) → LESSI_IN_GG(T134, T135)
U18_GGG(T105, T106, T107, lessJ_out_gg(T105, T106)) → U19_GGG(T105, T106, T107, orderedG_in_gg(T106, T107))
U18_GGG(T105, T106, T107, lessJ_out_gg(T105, T106)) → ORDEREDG_IN_GG(T106, T107)

The TRS R consists of the following rules:

ssA_in_gg([], []) → ssA_out_gg([], [])
ssA_in_gg(T13, .(T14, T15)) → U1_gg(T13, T14, T15, pB_in_agagag(X23, T14, X24, T13, X25, T15))
pB_in_agagag(T20, T14, T21, T13, X25, T15) → U8_agagag(T20, T14, T21, T13, X25, T15, appC_in_agag(T20, T14, T21, T13))
appC_in_agag([], T34, T35, .(T34, T35)) → appC_out_agag([], T34, T35, .(T34, T35))
appC_in_agag(.(T43, X63), T42, X64, .(T43, T44)) → U2_agag(T43, X63, T42, X64, T44, appC_in_agag(X63, T42, X64, T44))
U2_agag(T43, X63, T42, X64, T44, appC_out_agag(X63, T42, X64, T44)) → appC_out_agag(.(T43, X63), T42, X64, .(T43, T44))
U8_agagag(T20, T14, T21, T13, X25, T15, appC_out_agag(T20, T14, T21, T13)) → U9_agagag(T20, T14, T21, T13, X25, T15, pK_in_ggagg(T20, T21, X25, T15, T14))
pK_in_ggagg(T20, T21, T51, T15, T14) → U10_ggagg(T20, T21, T51, T15, T14, appD_in_gga(T20, T21, T51))
appD_in_gga([], T58, T58) → appD_out_gga([], T58, T58)
appD_in_gga(.(T65, T66), T67, .(T65, X92)) → U3_gga(T65, T66, T67, X92, appD_in_gga(T66, T67, X92))
U3_gga(T65, T66, T67, X92, appD_out_gga(T66, T67, X92)) → appD_out_gga(.(T65, T66), T67, .(T65, X92))
U10_ggagg(T20, T21, T51, T15, T14, appD_out_gga(T20, T21, T51)) → U11_ggagg(T20, T21, T51, T15, T14, pL_in_ggg(T51, T15, T14))
pL_in_ggg(T51, T15, T14) → U12_ggg(T51, T15, T14, permE_in_gg(T51, T15))
permE_in_gg([], []) → permE_out_gg([], [])
permE_in_gg(T76, .(T77, T78)) → U4_gg(T76, T77, T78, pF_in_agagag(X107, T77, X108, T76, X109, T78))
pF_in_agagag(T83, T77, T84, T76, X109, T78) → U14_agagag(T83, T77, T84, T76, X109, T78, appC_in_agag(T83, T77, T84, T76))
U14_agagag(T83, T77, T84, T76, X109, T78, appC_out_agag(T83, T77, T84, T76)) → U15_agagag(T83, T77, T84, T76, X109, T78, pM_in_ggag(T83, T84, X109, T78))
pM_in_ggag(T83, T84, T91, T78) → U16_ggag(T83, T84, T91, T78, appD_in_gga(T83, T84, T91))
U16_ggag(T83, T84, T91, T78, appD_out_gga(T83, T84, T91)) → U17_ggag(T83, T84, T91, T78, permE_in_gg(T91, T78))
U17_ggag(T83, T84, T91, T78, permE_out_gg(T91, T78)) → pM_out_ggag(T83, T84, T91, T78)
U15_agagag(T83, T77, T84, T76, X109, T78, pM_out_ggag(T83, T84, X109, T78)) → pF_out_agagag(T83, T77, T84, T76, X109, T78)
U4_gg(T76, T77, T78, pF_out_agagag(X107, T77, X108, T76, X109, T78)) → permE_out_gg(T76, .(T77, T78))
U12_ggg(T51, T15, T14, permE_out_gg(T51, T15)) → U13_ggg(T51, T15, T14, orderedG_in_gg(T14, T15))
orderedG_in_gg(T98, []) → orderedG_out_gg(T98, [])
orderedG_in_gg(T105, .(T106, T107)) → U5_gg(T105, T106, T107, pH_in_ggg(T105, T106, T107))
pH_in_ggg(T105, T106, T107) → U18_ggg(T105, T106, T107, lessJ_in_gg(T105, T106))
lessJ_in_gg(0, T116) → lessJ_out_gg(0, T116)
lessJ_in_gg(s(T121), T122) → U7_gg(T121, T122, lessI_in_gg(T121, T122))
lessI_in_gg(0, s(T129)) → lessI_out_gg(0, s(T129))
lessI_in_gg(s(T134), s(T135)) → U6_gg(T134, T135, lessI_in_gg(T134, T135))
U6_gg(T134, T135, lessI_out_gg(T134, T135)) → lessI_out_gg(s(T134), s(T135))
U7_gg(T121, T122, lessI_out_gg(T121, T122)) → lessJ_out_gg(s(T121), T122)
U18_ggg(T105, T106, T107, lessJ_out_gg(T105, T106)) → U19_ggg(T105, T106, T107, orderedG_in_gg(T106, T107))
U19_ggg(T105, T106, T107, orderedG_out_gg(T106, T107)) → pH_out_ggg(T105, T106, T107)
U5_gg(T105, T106, T107, pH_out_ggg(T105, T106, T107)) → orderedG_out_gg(T105, .(T106, T107))
U13_ggg(T51, T15, T14, orderedG_out_gg(T14, T15)) → pL_out_ggg(T51, T15, T14)
U11_ggagg(T20, T21, T51, T15, T14, pL_out_ggg(T51, T15, T14)) → pK_out_ggagg(T20, T21, T51, T15, T14)
U9_agagag(T20, T14, T21, T13, X25, T15, pK_out_ggagg(T20, T21, X25, T15, T14)) → pB_out_agagag(T20, T14, T21, T13, X25, T15)
U1_gg(T13, T14, T15, pB_out_agagag(X23, T14, X24, T13, X25, T15)) → ssA_out_gg(T13, .(T14, T15))

The argument filtering Pi contains the following mapping:
ssA_in_gg(x1, x2)  =  ssA_in_gg(x1, x2)
[]  =  []
ssA_out_gg(x1, x2)  =  ssA_out_gg(x1, x2)
.(x1, x2)  =  .(x1, x2)
U1_gg(x1, x2, x3, x4)  =  U1_gg(x1, x2, x3, x4)
pB_in_agagag(x1, x2, x3, x4, x5, x6)  =  pB_in_agagag(x2, x4, x6)
U8_agagag(x1, x2, x3, x4, x5, x6, x7)  =  U8_agagag(x2, x4, x6, x7)
appC_in_agag(x1, x2, x3, x4)  =  appC_in_agag(x2, x4)
appC_out_agag(x1, x2, x3, x4)  =  appC_out_agag(x1, x2, x3, x4)
U2_agag(x1, x2, x3, x4, x5, x6)  =  U2_agag(x1, x3, x5, x6)
U9_agagag(x1, x2, x3, x4, x5, x6, x7)  =  U9_agagag(x1, x2, x3, x4, x6, x7)
pK_in_ggagg(x1, x2, x3, x4, x5)  =  pK_in_ggagg(x1, x2, x4, x5)
U10_ggagg(x1, x2, x3, x4, x5, x6)  =  U10_ggagg(x1, x2, x4, x5, x6)
appD_in_gga(x1, x2, x3)  =  appD_in_gga(x1, x2)
appD_out_gga(x1, x2, x3)  =  appD_out_gga(x1, x2, x3)
U3_gga(x1, x2, x3, x4, x5)  =  U3_gga(x1, x2, x3, x5)
U11_ggagg(x1, x2, x3, x4, x5, x6)  =  U11_ggagg(x1, x2, x3, x4, x5, x6)
pL_in_ggg(x1, x2, x3)  =  pL_in_ggg(x1, x2, x3)
U12_ggg(x1, x2, x3, x4)  =  U12_ggg(x1, x2, x3, x4)
permE_in_gg(x1, x2)  =  permE_in_gg(x1, x2)
permE_out_gg(x1, x2)  =  permE_out_gg(x1, x2)
U4_gg(x1, x2, x3, x4)  =  U4_gg(x1, x2, x3, x4)
pF_in_agagag(x1, x2, x3, x4, x5, x6)  =  pF_in_agagag(x2, x4, x6)
U14_agagag(x1, x2, x3, x4, x5, x6, x7)  =  U14_agagag(x2, x4, x6, x7)
U15_agagag(x1, x2, x3, x4, x5, x6, x7)  =  U15_agagag(x1, x2, x3, x4, x6, x7)
pM_in_ggag(x1, x2, x3, x4)  =  pM_in_ggag(x1, x2, x4)
U16_ggag(x1, x2, x3, x4, x5)  =  U16_ggag(x1, x2, x4, x5)
U17_ggag(x1, x2, x3, x4, x5)  =  U17_ggag(x1, x2, x3, x4, x5)
pM_out_ggag(x1, x2, x3, x4)  =  pM_out_ggag(x1, x2, x3, x4)
pF_out_agagag(x1, x2, x3, x4, x5, x6)  =  pF_out_agagag(x1, x2, x3, x4, x5, x6)
U13_ggg(x1, x2, x3, x4)  =  U13_ggg(x1, x2, x3, x4)
orderedG_in_gg(x1, x2)  =  orderedG_in_gg(x1, x2)
orderedG_out_gg(x1, x2)  =  orderedG_out_gg(x1, x2)
U5_gg(x1, x2, x3, x4)  =  U5_gg(x1, x2, x3, x4)
pH_in_ggg(x1, x2, x3)  =  pH_in_ggg(x1, x2, x3)
U18_ggg(x1, x2, x3, x4)  =  U18_ggg(x1, x2, x3, x4)
lessJ_in_gg(x1, x2)  =  lessJ_in_gg(x1, x2)
0  =  0
lessJ_out_gg(x1, x2)  =  lessJ_out_gg(x1, x2)
s(x1)  =  s(x1)
U7_gg(x1, x2, x3)  =  U7_gg(x1, x2, x3)
lessI_in_gg(x1, x2)  =  lessI_in_gg(x1, x2)
lessI_out_gg(x1, x2)  =  lessI_out_gg(x1, x2)
U6_gg(x1, x2, x3)  =  U6_gg(x1, x2, x3)
U19_ggg(x1, x2, x3, x4)  =  U19_ggg(x1, x2, x3, x4)
pH_out_ggg(x1, x2, x3)  =  pH_out_ggg(x1, x2, x3)
pL_out_ggg(x1, x2, x3)  =  pL_out_ggg(x1, x2, x3)
pK_out_ggagg(x1, x2, x3, x4, x5)  =  pK_out_ggagg(x1, x2, x3, x4, x5)
pB_out_agagag(x1, x2, x3, x4, x5, x6)  =  pB_out_agagag(x1, x2, x3, x4, x5, x6)
SSA_IN_GG(x1, x2)  =  SSA_IN_GG(x1, x2)
U1_GG(x1, x2, x3, x4)  =  U1_GG(x1, x2, x3, x4)
PB_IN_AGAGAG(x1, x2, x3, x4, x5, x6)  =  PB_IN_AGAGAG(x2, x4, x6)
U8_AGAGAG(x1, x2, x3, x4, x5, x6, x7)  =  U8_AGAGAG(x2, x4, x6, x7)
APPC_IN_AGAG(x1, x2, x3, x4)  =  APPC_IN_AGAG(x2, x4)
U2_AGAG(x1, x2, x3, x4, x5, x6)  =  U2_AGAG(x1, x3, x5, x6)
U9_AGAGAG(x1, x2, x3, x4, x5, x6, x7)  =  U9_AGAGAG(x1, x2, x3, x4, x6, x7)
PK_IN_GGAGG(x1, x2, x3, x4, x5)  =  PK_IN_GGAGG(x1, x2, x4, x5)
U10_GGAGG(x1, x2, x3, x4, x5, x6)  =  U10_GGAGG(x1, x2, x4, x5, x6)
APPD_IN_GGA(x1, x2, x3)  =  APPD_IN_GGA(x1, x2)
U3_GGA(x1, x2, x3, x4, x5)  =  U3_GGA(x1, x2, x3, x5)
U11_GGAGG(x1, x2, x3, x4, x5, x6)  =  U11_GGAGG(x1, x2, x3, x4, x5, x6)
PL_IN_GGG(x1, x2, x3)  =  PL_IN_GGG(x1, x2, x3)
U12_GGG(x1, x2, x3, x4)  =  U12_GGG(x1, x2, x3, x4)
PERME_IN_GG(x1, x2)  =  PERME_IN_GG(x1, x2)
U4_GG(x1, x2, x3, x4)  =  U4_GG(x1, x2, x3, x4)
PF_IN_AGAGAG(x1, x2, x3, x4, x5, x6)  =  PF_IN_AGAGAG(x2, x4, x6)
U14_AGAGAG(x1, x2, x3, x4, x5, x6, x7)  =  U14_AGAGAG(x2, x4, x6, x7)
U15_AGAGAG(x1, x2, x3, x4, x5, x6, x7)  =  U15_AGAGAG(x1, x2, x3, x4, x6, x7)
PM_IN_GGAG(x1, x2, x3, x4)  =  PM_IN_GGAG(x1, x2, x4)
U16_GGAG(x1, x2, x3, x4, x5)  =  U16_GGAG(x1, x2, x4, x5)
U17_GGAG(x1, x2, x3, x4, x5)  =  U17_GGAG(x1, x2, x3, x4, x5)
U13_GGG(x1, x2, x3, x4)  =  U13_GGG(x1, x2, x3, x4)
ORDEREDG_IN_GG(x1, x2)  =  ORDEREDG_IN_GG(x1, x2)
U5_GG(x1, x2, x3, x4)  =  U5_GG(x1, x2, x3, x4)
PH_IN_GGG(x1, x2, x3)  =  PH_IN_GGG(x1, x2, x3)
U18_GGG(x1, x2, x3, x4)  =  U18_GGG(x1, x2, x3, x4)
LESSJ_IN_GG(x1, x2)  =  LESSJ_IN_GG(x1, x2)
U7_GG(x1, x2, x3)  =  U7_GG(x1, x2, x3)
LESSI_IN_GG(x1, x2)  =  LESSI_IN_GG(x1, x2)
U6_GG(x1, x2, x3)  =  U6_GG(x1, x2, x3)
U19_GGG(x1, x2, x3, x4)  =  U19_GGG(x1, x2, x3, x4)

We have to consider all (P,R,Pi)-chains

(5) DependencyGraphProof (EQUIVALENT transformation)

The approximation of the Dependency Graph [LOPSTR] contains 5 SCCs with 27 less nodes.

(6) Complex Obligation (AND)

(7) Obligation:

Pi DP problem:
The TRS P consists of the following rules:

LESSI_IN_GG(s(T134), s(T135)) → LESSI_IN_GG(T134, T135)

The TRS R consists of the following rules:

ssA_in_gg([], []) → ssA_out_gg([], [])
ssA_in_gg(T13, .(T14, T15)) → U1_gg(T13, T14, T15, pB_in_agagag(X23, T14, X24, T13, X25, T15))
pB_in_agagag(T20, T14, T21, T13, X25, T15) → U8_agagag(T20, T14, T21, T13, X25, T15, appC_in_agag(T20, T14, T21, T13))
appC_in_agag([], T34, T35, .(T34, T35)) → appC_out_agag([], T34, T35, .(T34, T35))
appC_in_agag(.(T43, X63), T42, X64, .(T43, T44)) → U2_agag(T43, X63, T42, X64, T44, appC_in_agag(X63, T42, X64, T44))
U2_agag(T43, X63, T42, X64, T44, appC_out_agag(X63, T42, X64, T44)) → appC_out_agag(.(T43, X63), T42, X64, .(T43, T44))
U8_agagag(T20, T14, T21, T13, X25, T15, appC_out_agag(T20, T14, T21, T13)) → U9_agagag(T20, T14, T21, T13, X25, T15, pK_in_ggagg(T20, T21, X25, T15, T14))
pK_in_ggagg(T20, T21, T51, T15, T14) → U10_ggagg(T20, T21, T51, T15, T14, appD_in_gga(T20, T21, T51))
appD_in_gga([], T58, T58) → appD_out_gga([], T58, T58)
appD_in_gga(.(T65, T66), T67, .(T65, X92)) → U3_gga(T65, T66, T67, X92, appD_in_gga(T66, T67, X92))
U3_gga(T65, T66, T67, X92, appD_out_gga(T66, T67, X92)) → appD_out_gga(.(T65, T66), T67, .(T65, X92))
U10_ggagg(T20, T21, T51, T15, T14, appD_out_gga(T20, T21, T51)) → U11_ggagg(T20, T21, T51, T15, T14, pL_in_ggg(T51, T15, T14))
pL_in_ggg(T51, T15, T14) → U12_ggg(T51, T15, T14, permE_in_gg(T51, T15))
permE_in_gg([], []) → permE_out_gg([], [])
permE_in_gg(T76, .(T77, T78)) → U4_gg(T76, T77, T78, pF_in_agagag(X107, T77, X108, T76, X109, T78))
pF_in_agagag(T83, T77, T84, T76, X109, T78) → U14_agagag(T83, T77, T84, T76, X109, T78, appC_in_agag(T83, T77, T84, T76))
U14_agagag(T83, T77, T84, T76, X109, T78, appC_out_agag(T83, T77, T84, T76)) → U15_agagag(T83, T77, T84, T76, X109, T78, pM_in_ggag(T83, T84, X109, T78))
pM_in_ggag(T83, T84, T91, T78) → U16_ggag(T83, T84, T91, T78, appD_in_gga(T83, T84, T91))
U16_ggag(T83, T84, T91, T78, appD_out_gga(T83, T84, T91)) → U17_ggag(T83, T84, T91, T78, permE_in_gg(T91, T78))
U17_ggag(T83, T84, T91, T78, permE_out_gg(T91, T78)) → pM_out_ggag(T83, T84, T91, T78)
U15_agagag(T83, T77, T84, T76, X109, T78, pM_out_ggag(T83, T84, X109, T78)) → pF_out_agagag(T83, T77, T84, T76, X109, T78)
U4_gg(T76, T77, T78, pF_out_agagag(X107, T77, X108, T76, X109, T78)) → permE_out_gg(T76, .(T77, T78))
U12_ggg(T51, T15, T14, permE_out_gg(T51, T15)) → U13_ggg(T51, T15, T14, orderedG_in_gg(T14, T15))
orderedG_in_gg(T98, []) → orderedG_out_gg(T98, [])
orderedG_in_gg(T105, .(T106, T107)) → U5_gg(T105, T106, T107, pH_in_ggg(T105, T106, T107))
pH_in_ggg(T105, T106, T107) → U18_ggg(T105, T106, T107, lessJ_in_gg(T105, T106))
lessJ_in_gg(0, T116) → lessJ_out_gg(0, T116)
lessJ_in_gg(s(T121), T122) → U7_gg(T121, T122, lessI_in_gg(T121, T122))
lessI_in_gg(0, s(T129)) → lessI_out_gg(0, s(T129))
lessI_in_gg(s(T134), s(T135)) → U6_gg(T134, T135, lessI_in_gg(T134, T135))
U6_gg(T134, T135, lessI_out_gg(T134, T135)) → lessI_out_gg(s(T134), s(T135))
U7_gg(T121, T122, lessI_out_gg(T121, T122)) → lessJ_out_gg(s(T121), T122)
U18_ggg(T105, T106, T107, lessJ_out_gg(T105, T106)) → U19_ggg(T105, T106, T107, orderedG_in_gg(T106, T107))
U19_ggg(T105, T106, T107, orderedG_out_gg(T106, T107)) → pH_out_ggg(T105, T106, T107)
U5_gg(T105, T106, T107, pH_out_ggg(T105, T106, T107)) → orderedG_out_gg(T105, .(T106, T107))
U13_ggg(T51, T15, T14, orderedG_out_gg(T14, T15)) → pL_out_ggg(T51, T15, T14)
U11_ggagg(T20, T21, T51, T15, T14, pL_out_ggg(T51, T15, T14)) → pK_out_ggagg(T20, T21, T51, T15, T14)
U9_agagag(T20, T14, T21, T13, X25, T15, pK_out_ggagg(T20, T21, X25, T15, T14)) → pB_out_agagag(T20, T14, T21, T13, X25, T15)
U1_gg(T13, T14, T15, pB_out_agagag(X23, T14, X24, T13, X25, T15)) → ssA_out_gg(T13, .(T14, T15))

The argument filtering Pi contains the following mapping:
ssA_in_gg(x1, x2)  =  ssA_in_gg(x1, x2)
[]  =  []
ssA_out_gg(x1, x2)  =  ssA_out_gg(x1, x2)
.(x1, x2)  =  .(x1, x2)
U1_gg(x1, x2, x3, x4)  =  U1_gg(x1, x2, x3, x4)
pB_in_agagag(x1, x2, x3, x4, x5, x6)  =  pB_in_agagag(x2, x4, x6)
U8_agagag(x1, x2, x3, x4, x5, x6, x7)  =  U8_agagag(x2, x4, x6, x7)
appC_in_agag(x1, x2, x3, x4)  =  appC_in_agag(x2, x4)
appC_out_agag(x1, x2, x3, x4)  =  appC_out_agag(x1, x2, x3, x4)
U2_agag(x1, x2, x3, x4, x5, x6)  =  U2_agag(x1, x3, x5, x6)
U9_agagag(x1, x2, x3, x4, x5, x6, x7)  =  U9_agagag(x1, x2, x3, x4, x6, x7)
pK_in_ggagg(x1, x2, x3, x4, x5)  =  pK_in_ggagg(x1, x2, x4, x5)
U10_ggagg(x1, x2, x3, x4, x5, x6)  =  U10_ggagg(x1, x2, x4, x5, x6)
appD_in_gga(x1, x2, x3)  =  appD_in_gga(x1, x2)
appD_out_gga(x1, x2, x3)  =  appD_out_gga(x1, x2, x3)
U3_gga(x1, x2, x3, x4, x5)  =  U3_gga(x1, x2, x3, x5)
U11_ggagg(x1, x2, x3, x4, x5, x6)  =  U11_ggagg(x1, x2, x3, x4, x5, x6)
pL_in_ggg(x1, x2, x3)  =  pL_in_ggg(x1, x2, x3)
U12_ggg(x1, x2, x3, x4)  =  U12_ggg(x1, x2, x3, x4)
permE_in_gg(x1, x2)  =  permE_in_gg(x1, x2)
permE_out_gg(x1, x2)  =  permE_out_gg(x1, x2)
U4_gg(x1, x2, x3, x4)  =  U4_gg(x1, x2, x3, x4)
pF_in_agagag(x1, x2, x3, x4, x5, x6)  =  pF_in_agagag(x2, x4, x6)
U14_agagag(x1, x2, x3, x4, x5, x6, x7)  =  U14_agagag(x2, x4, x6, x7)
U15_agagag(x1, x2, x3, x4, x5, x6, x7)  =  U15_agagag(x1, x2, x3, x4, x6, x7)
pM_in_ggag(x1, x2, x3, x4)  =  pM_in_ggag(x1, x2, x4)
U16_ggag(x1, x2, x3, x4, x5)  =  U16_ggag(x1, x2, x4, x5)
U17_ggag(x1, x2, x3, x4, x5)  =  U17_ggag(x1, x2, x3, x4, x5)
pM_out_ggag(x1, x2, x3, x4)  =  pM_out_ggag(x1, x2, x3, x4)
pF_out_agagag(x1, x2, x3, x4, x5, x6)  =  pF_out_agagag(x1, x2, x3, x4, x5, x6)
U13_ggg(x1, x2, x3, x4)  =  U13_ggg(x1, x2, x3, x4)
orderedG_in_gg(x1, x2)  =  orderedG_in_gg(x1, x2)
orderedG_out_gg(x1, x2)  =  orderedG_out_gg(x1, x2)
U5_gg(x1, x2, x3, x4)  =  U5_gg(x1, x2, x3, x4)
pH_in_ggg(x1, x2, x3)  =  pH_in_ggg(x1, x2, x3)
U18_ggg(x1, x2, x3, x4)  =  U18_ggg(x1, x2, x3, x4)
lessJ_in_gg(x1, x2)  =  lessJ_in_gg(x1, x2)
0  =  0
lessJ_out_gg(x1, x2)  =  lessJ_out_gg(x1, x2)
s(x1)  =  s(x1)
U7_gg(x1, x2, x3)  =  U7_gg(x1, x2, x3)
lessI_in_gg(x1, x2)  =  lessI_in_gg(x1, x2)
lessI_out_gg(x1, x2)  =  lessI_out_gg(x1, x2)
U6_gg(x1, x2, x3)  =  U6_gg(x1, x2, x3)
U19_ggg(x1, x2, x3, x4)  =  U19_ggg(x1, x2, x3, x4)
pH_out_ggg(x1, x2, x3)  =  pH_out_ggg(x1, x2, x3)
pL_out_ggg(x1, x2, x3)  =  pL_out_ggg(x1, x2, x3)
pK_out_ggagg(x1, x2, x3, x4, x5)  =  pK_out_ggagg(x1, x2, x3, x4, x5)
pB_out_agagag(x1, x2, x3, x4, x5, x6)  =  pB_out_agagag(x1, x2, x3, x4, x5, x6)
LESSI_IN_GG(x1, x2)  =  LESSI_IN_GG(x1, x2)

We have to consider all (P,R,Pi)-chains

(8) UsableRulesProof (EQUIVALENT transformation)

For (infinitary) constructor rewriting [LOPSTR] we can delete all non-usable rules from R.

(9) Obligation:

Pi DP problem:
The TRS P consists of the following rules:

LESSI_IN_GG(s(T134), s(T135)) → LESSI_IN_GG(T134, T135)

R is empty.
Pi is empty.
We have to consider all (P,R,Pi)-chains

(10) PiDPToQDPProof (EQUIVALENT transformation)

Transforming (infinitary) constructor rewriting Pi-DP problem [LOPSTR] into ordinary QDP problem [LPAR04] by application of Pi.

(11) Obligation:

Q DP problem:
The TRS P consists of the following rules:

LESSI_IN_GG(s(T134), s(T135)) → LESSI_IN_GG(T134, T135)

R is empty.
Q is empty.
We have to consider all (P,Q,R)-chains.

(12) QDPSizeChangeProof (EQUIVALENT transformation)

By using the subterm criterion [SUBTERM_CRITERION] together with the size-change analysis [AAECC05] we have proven that there are no infinite chains for this DP problem.

From the DPs we obtained the following set of size-change graphs:

  • LESSI_IN_GG(s(T134), s(T135)) → LESSI_IN_GG(T134, T135)
    The graph contains the following edges 1 > 1, 2 > 2

(13) YES

(14) Obligation:

Pi DP problem:
The TRS P consists of the following rules:

ORDEREDG_IN_GG(T105, .(T106, T107)) → PH_IN_GGG(T105, T106, T107)
PH_IN_GGG(T105, T106, T107) → U18_GGG(T105, T106, T107, lessJ_in_gg(T105, T106))
U18_GGG(T105, T106, T107, lessJ_out_gg(T105, T106)) → ORDEREDG_IN_GG(T106, T107)

The TRS R consists of the following rules:

ssA_in_gg([], []) → ssA_out_gg([], [])
ssA_in_gg(T13, .(T14, T15)) → U1_gg(T13, T14, T15, pB_in_agagag(X23, T14, X24, T13, X25, T15))
pB_in_agagag(T20, T14, T21, T13, X25, T15) → U8_agagag(T20, T14, T21, T13, X25, T15, appC_in_agag(T20, T14, T21, T13))
appC_in_agag([], T34, T35, .(T34, T35)) → appC_out_agag([], T34, T35, .(T34, T35))
appC_in_agag(.(T43, X63), T42, X64, .(T43, T44)) → U2_agag(T43, X63, T42, X64, T44, appC_in_agag(X63, T42, X64, T44))
U2_agag(T43, X63, T42, X64, T44, appC_out_agag(X63, T42, X64, T44)) → appC_out_agag(.(T43, X63), T42, X64, .(T43, T44))
U8_agagag(T20, T14, T21, T13, X25, T15, appC_out_agag(T20, T14, T21, T13)) → U9_agagag(T20, T14, T21, T13, X25, T15, pK_in_ggagg(T20, T21, X25, T15, T14))
pK_in_ggagg(T20, T21, T51, T15, T14) → U10_ggagg(T20, T21, T51, T15, T14, appD_in_gga(T20, T21, T51))
appD_in_gga([], T58, T58) → appD_out_gga([], T58, T58)
appD_in_gga(.(T65, T66), T67, .(T65, X92)) → U3_gga(T65, T66, T67, X92, appD_in_gga(T66, T67, X92))
U3_gga(T65, T66, T67, X92, appD_out_gga(T66, T67, X92)) → appD_out_gga(.(T65, T66), T67, .(T65, X92))
U10_ggagg(T20, T21, T51, T15, T14, appD_out_gga(T20, T21, T51)) → U11_ggagg(T20, T21, T51, T15, T14, pL_in_ggg(T51, T15, T14))
pL_in_ggg(T51, T15, T14) → U12_ggg(T51, T15, T14, permE_in_gg(T51, T15))
permE_in_gg([], []) → permE_out_gg([], [])
permE_in_gg(T76, .(T77, T78)) → U4_gg(T76, T77, T78, pF_in_agagag(X107, T77, X108, T76, X109, T78))
pF_in_agagag(T83, T77, T84, T76, X109, T78) → U14_agagag(T83, T77, T84, T76, X109, T78, appC_in_agag(T83, T77, T84, T76))
U14_agagag(T83, T77, T84, T76, X109, T78, appC_out_agag(T83, T77, T84, T76)) → U15_agagag(T83, T77, T84, T76, X109, T78, pM_in_ggag(T83, T84, X109, T78))
pM_in_ggag(T83, T84, T91, T78) → U16_ggag(T83, T84, T91, T78, appD_in_gga(T83, T84, T91))
U16_ggag(T83, T84, T91, T78, appD_out_gga(T83, T84, T91)) → U17_ggag(T83, T84, T91, T78, permE_in_gg(T91, T78))
U17_ggag(T83, T84, T91, T78, permE_out_gg(T91, T78)) → pM_out_ggag(T83, T84, T91, T78)
U15_agagag(T83, T77, T84, T76, X109, T78, pM_out_ggag(T83, T84, X109, T78)) → pF_out_agagag(T83, T77, T84, T76, X109, T78)
U4_gg(T76, T77, T78, pF_out_agagag(X107, T77, X108, T76, X109, T78)) → permE_out_gg(T76, .(T77, T78))
U12_ggg(T51, T15, T14, permE_out_gg(T51, T15)) → U13_ggg(T51, T15, T14, orderedG_in_gg(T14, T15))
orderedG_in_gg(T98, []) → orderedG_out_gg(T98, [])
orderedG_in_gg(T105, .(T106, T107)) → U5_gg(T105, T106, T107, pH_in_ggg(T105, T106, T107))
pH_in_ggg(T105, T106, T107) → U18_ggg(T105, T106, T107, lessJ_in_gg(T105, T106))
lessJ_in_gg(0, T116) → lessJ_out_gg(0, T116)
lessJ_in_gg(s(T121), T122) → U7_gg(T121, T122, lessI_in_gg(T121, T122))
lessI_in_gg(0, s(T129)) → lessI_out_gg(0, s(T129))
lessI_in_gg(s(T134), s(T135)) → U6_gg(T134, T135, lessI_in_gg(T134, T135))
U6_gg(T134, T135, lessI_out_gg(T134, T135)) → lessI_out_gg(s(T134), s(T135))
U7_gg(T121, T122, lessI_out_gg(T121, T122)) → lessJ_out_gg(s(T121), T122)
U18_ggg(T105, T106, T107, lessJ_out_gg(T105, T106)) → U19_ggg(T105, T106, T107, orderedG_in_gg(T106, T107))
U19_ggg(T105, T106, T107, orderedG_out_gg(T106, T107)) → pH_out_ggg(T105, T106, T107)
U5_gg(T105, T106, T107, pH_out_ggg(T105, T106, T107)) → orderedG_out_gg(T105, .(T106, T107))
U13_ggg(T51, T15, T14, orderedG_out_gg(T14, T15)) → pL_out_ggg(T51, T15, T14)
U11_ggagg(T20, T21, T51, T15, T14, pL_out_ggg(T51, T15, T14)) → pK_out_ggagg(T20, T21, T51, T15, T14)
U9_agagag(T20, T14, T21, T13, X25, T15, pK_out_ggagg(T20, T21, X25, T15, T14)) → pB_out_agagag(T20, T14, T21, T13, X25, T15)
U1_gg(T13, T14, T15, pB_out_agagag(X23, T14, X24, T13, X25, T15)) → ssA_out_gg(T13, .(T14, T15))

The argument filtering Pi contains the following mapping:
ssA_in_gg(x1, x2)  =  ssA_in_gg(x1, x2)
[]  =  []
ssA_out_gg(x1, x2)  =  ssA_out_gg(x1, x2)
.(x1, x2)  =  .(x1, x2)
U1_gg(x1, x2, x3, x4)  =  U1_gg(x1, x2, x3, x4)
pB_in_agagag(x1, x2, x3, x4, x5, x6)  =  pB_in_agagag(x2, x4, x6)
U8_agagag(x1, x2, x3, x4, x5, x6, x7)  =  U8_agagag(x2, x4, x6, x7)
appC_in_agag(x1, x2, x3, x4)  =  appC_in_agag(x2, x4)
appC_out_agag(x1, x2, x3, x4)  =  appC_out_agag(x1, x2, x3, x4)
U2_agag(x1, x2, x3, x4, x5, x6)  =  U2_agag(x1, x3, x5, x6)
U9_agagag(x1, x2, x3, x4, x5, x6, x7)  =  U9_agagag(x1, x2, x3, x4, x6, x7)
pK_in_ggagg(x1, x2, x3, x4, x5)  =  pK_in_ggagg(x1, x2, x4, x5)
U10_ggagg(x1, x2, x3, x4, x5, x6)  =  U10_ggagg(x1, x2, x4, x5, x6)
appD_in_gga(x1, x2, x3)  =  appD_in_gga(x1, x2)
appD_out_gga(x1, x2, x3)  =  appD_out_gga(x1, x2, x3)
U3_gga(x1, x2, x3, x4, x5)  =  U3_gga(x1, x2, x3, x5)
U11_ggagg(x1, x2, x3, x4, x5, x6)  =  U11_ggagg(x1, x2, x3, x4, x5, x6)
pL_in_ggg(x1, x2, x3)  =  pL_in_ggg(x1, x2, x3)
U12_ggg(x1, x2, x3, x4)  =  U12_ggg(x1, x2, x3, x4)
permE_in_gg(x1, x2)  =  permE_in_gg(x1, x2)
permE_out_gg(x1, x2)  =  permE_out_gg(x1, x2)
U4_gg(x1, x2, x3, x4)  =  U4_gg(x1, x2, x3, x4)
pF_in_agagag(x1, x2, x3, x4, x5, x6)  =  pF_in_agagag(x2, x4, x6)
U14_agagag(x1, x2, x3, x4, x5, x6, x7)  =  U14_agagag(x2, x4, x6, x7)
U15_agagag(x1, x2, x3, x4, x5, x6, x7)  =  U15_agagag(x1, x2, x3, x4, x6, x7)
pM_in_ggag(x1, x2, x3, x4)  =  pM_in_ggag(x1, x2, x4)
U16_ggag(x1, x2, x3, x4, x5)  =  U16_ggag(x1, x2, x4, x5)
U17_ggag(x1, x2, x3, x4, x5)  =  U17_ggag(x1, x2, x3, x4, x5)
pM_out_ggag(x1, x2, x3, x4)  =  pM_out_ggag(x1, x2, x3, x4)
pF_out_agagag(x1, x2, x3, x4, x5, x6)  =  pF_out_agagag(x1, x2, x3, x4, x5, x6)
U13_ggg(x1, x2, x3, x4)  =  U13_ggg(x1, x2, x3, x4)
orderedG_in_gg(x1, x2)  =  orderedG_in_gg(x1, x2)
orderedG_out_gg(x1, x2)  =  orderedG_out_gg(x1, x2)
U5_gg(x1, x2, x3, x4)  =  U5_gg(x1, x2, x3, x4)
pH_in_ggg(x1, x2, x3)  =  pH_in_ggg(x1, x2, x3)
U18_ggg(x1, x2, x3, x4)  =  U18_ggg(x1, x2, x3, x4)
lessJ_in_gg(x1, x2)  =  lessJ_in_gg(x1, x2)
0  =  0
lessJ_out_gg(x1, x2)  =  lessJ_out_gg(x1, x2)
s(x1)  =  s(x1)
U7_gg(x1, x2, x3)  =  U7_gg(x1, x2, x3)
lessI_in_gg(x1, x2)  =  lessI_in_gg(x1, x2)
lessI_out_gg(x1, x2)  =  lessI_out_gg(x1, x2)
U6_gg(x1, x2, x3)  =  U6_gg(x1, x2, x3)
U19_ggg(x1, x2, x3, x4)  =  U19_ggg(x1, x2, x3, x4)
pH_out_ggg(x1, x2, x3)  =  pH_out_ggg(x1, x2, x3)
pL_out_ggg(x1, x2, x3)  =  pL_out_ggg(x1, x2, x3)
pK_out_ggagg(x1, x2, x3, x4, x5)  =  pK_out_ggagg(x1, x2, x3, x4, x5)
pB_out_agagag(x1, x2, x3, x4, x5, x6)  =  pB_out_agagag(x1, x2, x3, x4, x5, x6)
ORDEREDG_IN_GG(x1, x2)  =  ORDEREDG_IN_GG(x1, x2)
PH_IN_GGG(x1, x2, x3)  =  PH_IN_GGG(x1, x2, x3)
U18_GGG(x1, x2, x3, x4)  =  U18_GGG(x1, x2, x3, x4)

We have to consider all (P,R,Pi)-chains

(15) UsableRulesProof (EQUIVALENT transformation)

For (infinitary) constructor rewriting [LOPSTR] we can delete all non-usable rules from R.

(16) Obligation:

Pi DP problem:
The TRS P consists of the following rules:

ORDEREDG_IN_GG(T105, .(T106, T107)) → PH_IN_GGG(T105, T106, T107)
PH_IN_GGG(T105, T106, T107) → U18_GGG(T105, T106, T107, lessJ_in_gg(T105, T106))
U18_GGG(T105, T106, T107, lessJ_out_gg(T105, T106)) → ORDEREDG_IN_GG(T106, T107)

The TRS R consists of the following rules:

lessJ_in_gg(0, T116) → lessJ_out_gg(0, T116)
lessJ_in_gg(s(T121), T122) → U7_gg(T121, T122, lessI_in_gg(T121, T122))
U7_gg(T121, T122, lessI_out_gg(T121, T122)) → lessJ_out_gg(s(T121), T122)
lessI_in_gg(0, s(T129)) → lessI_out_gg(0, s(T129))
lessI_in_gg(s(T134), s(T135)) → U6_gg(T134, T135, lessI_in_gg(T134, T135))
U6_gg(T134, T135, lessI_out_gg(T134, T135)) → lessI_out_gg(s(T134), s(T135))

Pi is empty.
We have to consider all (P,R,Pi)-chains

(17) PiDPToQDPProof (EQUIVALENT transformation)

Transforming (infinitary) constructor rewriting Pi-DP problem [LOPSTR] into ordinary QDP problem [LPAR04] by application of Pi.

(18) Obligation:

Q DP problem:
The TRS P consists of the following rules:

ORDEREDG_IN_GG(T105, .(T106, T107)) → PH_IN_GGG(T105, T106, T107)
PH_IN_GGG(T105, T106, T107) → U18_GGG(T105, T106, T107, lessJ_in_gg(T105, T106))
U18_GGG(T105, T106, T107, lessJ_out_gg(T105, T106)) → ORDEREDG_IN_GG(T106, T107)

The TRS R consists of the following rules:

lessJ_in_gg(0, T116) → lessJ_out_gg(0, T116)
lessJ_in_gg(s(T121), T122) → U7_gg(T121, T122, lessI_in_gg(T121, T122))
U7_gg(T121, T122, lessI_out_gg(T121, T122)) → lessJ_out_gg(s(T121), T122)
lessI_in_gg(0, s(T129)) → lessI_out_gg(0, s(T129))
lessI_in_gg(s(T134), s(T135)) → U6_gg(T134, T135, lessI_in_gg(T134, T135))
U6_gg(T134, T135, lessI_out_gg(T134, T135)) → lessI_out_gg(s(T134), s(T135))

The set Q consists of the following terms:

lessJ_in_gg(x0, x1)
U7_gg(x0, x1, x2)
lessI_in_gg(x0, x1)
U6_gg(x0, x1, x2)

We have to consider all (P,Q,R)-chains.

(19) QDPSizeChangeProof (EQUIVALENT transformation)

By using the subterm criterion [SUBTERM_CRITERION] together with the size-change analysis [AAECC05] we have proven that there are no infinite chains for this DP problem.

From the DPs we obtained the following set of size-change graphs:

  • PH_IN_GGG(T105, T106, T107) → U18_GGG(T105, T106, T107, lessJ_in_gg(T105, T106))
    The graph contains the following edges 1 >= 1, 2 >= 2, 3 >= 3

  • U18_GGG(T105, T106, T107, lessJ_out_gg(T105, T106)) → ORDEREDG_IN_GG(T106, T107)
    The graph contains the following edges 2 >= 1, 4 > 1, 3 >= 2

  • ORDEREDG_IN_GG(T105, .(T106, T107)) → PH_IN_GGG(T105, T106, T107)
    The graph contains the following edges 1 >= 1, 2 > 2, 2 > 3

(20) YES

(21) Obligation:

Pi DP problem:
The TRS P consists of the following rules:

APPD_IN_GGA(.(T65, T66), T67, .(T65, X92)) → APPD_IN_GGA(T66, T67, X92)

The TRS R consists of the following rules:

ssA_in_gg([], []) → ssA_out_gg([], [])
ssA_in_gg(T13, .(T14, T15)) → U1_gg(T13, T14, T15, pB_in_agagag(X23, T14, X24, T13, X25, T15))
pB_in_agagag(T20, T14, T21, T13, X25, T15) → U8_agagag(T20, T14, T21, T13, X25, T15, appC_in_agag(T20, T14, T21, T13))
appC_in_agag([], T34, T35, .(T34, T35)) → appC_out_agag([], T34, T35, .(T34, T35))
appC_in_agag(.(T43, X63), T42, X64, .(T43, T44)) → U2_agag(T43, X63, T42, X64, T44, appC_in_agag(X63, T42, X64, T44))
U2_agag(T43, X63, T42, X64, T44, appC_out_agag(X63, T42, X64, T44)) → appC_out_agag(.(T43, X63), T42, X64, .(T43, T44))
U8_agagag(T20, T14, T21, T13, X25, T15, appC_out_agag(T20, T14, T21, T13)) → U9_agagag(T20, T14, T21, T13, X25, T15, pK_in_ggagg(T20, T21, X25, T15, T14))
pK_in_ggagg(T20, T21, T51, T15, T14) → U10_ggagg(T20, T21, T51, T15, T14, appD_in_gga(T20, T21, T51))
appD_in_gga([], T58, T58) → appD_out_gga([], T58, T58)
appD_in_gga(.(T65, T66), T67, .(T65, X92)) → U3_gga(T65, T66, T67, X92, appD_in_gga(T66, T67, X92))
U3_gga(T65, T66, T67, X92, appD_out_gga(T66, T67, X92)) → appD_out_gga(.(T65, T66), T67, .(T65, X92))
U10_ggagg(T20, T21, T51, T15, T14, appD_out_gga(T20, T21, T51)) → U11_ggagg(T20, T21, T51, T15, T14, pL_in_ggg(T51, T15, T14))
pL_in_ggg(T51, T15, T14) → U12_ggg(T51, T15, T14, permE_in_gg(T51, T15))
permE_in_gg([], []) → permE_out_gg([], [])
permE_in_gg(T76, .(T77, T78)) → U4_gg(T76, T77, T78, pF_in_agagag(X107, T77, X108, T76, X109, T78))
pF_in_agagag(T83, T77, T84, T76, X109, T78) → U14_agagag(T83, T77, T84, T76, X109, T78, appC_in_agag(T83, T77, T84, T76))
U14_agagag(T83, T77, T84, T76, X109, T78, appC_out_agag(T83, T77, T84, T76)) → U15_agagag(T83, T77, T84, T76, X109, T78, pM_in_ggag(T83, T84, X109, T78))
pM_in_ggag(T83, T84, T91, T78) → U16_ggag(T83, T84, T91, T78, appD_in_gga(T83, T84, T91))
U16_ggag(T83, T84, T91, T78, appD_out_gga(T83, T84, T91)) → U17_ggag(T83, T84, T91, T78, permE_in_gg(T91, T78))
U17_ggag(T83, T84, T91, T78, permE_out_gg(T91, T78)) → pM_out_ggag(T83, T84, T91, T78)
U15_agagag(T83, T77, T84, T76, X109, T78, pM_out_ggag(T83, T84, X109, T78)) → pF_out_agagag(T83, T77, T84, T76, X109, T78)
U4_gg(T76, T77, T78, pF_out_agagag(X107, T77, X108, T76, X109, T78)) → permE_out_gg(T76, .(T77, T78))
U12_ggg(T51, T15, T14, permE_out_gg(T51, T15)) → U13_ggg(T51, T15, T14, orderedG_in_gg(T14, T15))
orderedG_in_gg(T98, []) → orderedG_out_gg(T98, [])
orderedG_in_gg(T105, .(T106, T107)) → U5_gg(T105, T106, T107, pH_in_ggg(T105, T106, T107))
pH_in_ggg(T105, T106, T107) → U18_ggg(T105, T106, T107, lessJ_in_gg(T105, T106))
lessJ_in_gg(0, T116) → lessJ_out_gg(0, T116)
lessJ_in_gg(s(T121), T122) → U7_gg(T121, T122, lessI_in_gg(T121, T122))
lessI_in_gg(0, s(T129)) → lessI_out_gg(0, s(T129))
lessI_in_gg(s(T134), s(T135)) → U6_gg(T134, T135, lessI_in_gg(T134, T135))
U6_gg(T134, T135, lessI_out_gg(T134, T135)) → lessI_out_gg(s(T134), s(T135))
U7_gg(T121, T122, lessI_out_gg(T121, T122)) → lessJ_out_gg(s(T121), T122)
U18_ggg(T105, T106, T107, lessJ_out_gg(T105, T106)) → U19_ggg(T105, T106, T107, orderedG_in_gg(T106, T107))
U19_ggg(T105, T106, T107, orderedG_out_gg(T106, T107)) → pH_out_ggg(T105, T106, T107)
U5_gg(T105, T106, T107, pH_out_ggg(T105, T106, T107)) → orderedG_out_gg(T105, .(T106, T107))
U13_ggg(T51, T15, T14, orderedG_out_gg(T14, T15)) → pL_out_ggg(T51, T15, T14)
U11_ggagg(T20, T21, T51, T15, T14, pL_out_ggg(T51, T15, T14)) → pK_out_ggagg(T20, T21, T51, T15, T14)
U9_agagag(T20, T14, T21, T13, X25, T15, pK_out_ggagg(T20, T21, X25, T15, T14)) → pB_out_agagag(T20, T14, T21, T13, X25, T15)
U1_gg(T13, T14, T15, pB_out_agagag(X23, T14, X24, T13, X25, T15)) → ssA_out_gg(T13, .(T14, T15))

The argument filtering Pi contains the following mapping:
ssA_in_gg(x1, x2)  =  ssA_in_gg(x1, x2)
[]  =  []
ssA_out_gg(x1, x2)  =  ssA_out_gg(x1, x2)
.(x1, x2)  =  .(x1, x2)
U1_gg(x1, x2, x3, x4)  =  U1_gg(x1, x2, x3, x4)
pB_in_agagag(x1, x2, x3, x4, x5, x6)  =  pB_in_agagag(x2, x4, x6)
U8_agagag(x1, x2, x3, x4, x5, x6, x7)  =  U8_agagag(x2, x4, x6, x7)
appC_in_agag(x1, x2, x3, x4)  =  appC_in_agag(x2, x4)
appC_out_agag(x1, x2, x3, x4)  =  appC_out_agag(x1, x2, x3, x4)
U2_agag(x1, x2, x3, x4, x5, x6)  =  U2_agag(x1, x3, x5, x6)
U9_agagag(x1, x2, x3, x4, x5, x6, x7)  =  U9_agagag(x1, x2, x3, x4, x6, x7)
pK_in_ggagg(x1, x2, x3, x4, x5)  =  pK_in_ggagg(x1, x2, x4, x5)
U10_ggagg(x1, x2, x3, x4, x5, x6)  =  U10_ggagg(x1, x2, x4, x5, x6)
appD_in_gga(x1, x2, x3)  =  appD_in_gga(x1, x2)
appD_out_gga(x1, x2, x3)  =  appD_out_gga(x1, x2, x3)
U3_gga(x1, x2, x3, x4, x5)  =  U3_gga(x1, x2, x3, x5)
U11_ggagg(x1, x2, x3, x4, x5, x6)  =  U11_ggagg(x1, x2, x3, x4, x5, x6)
pL_in_ggg(x1, x2, x3)  =  pL_in_ggg(x1, x2, x3)
U12_ggg(x1, x2, x3, x4)  =  U12_ggg(x1, x2, x3, x4)
permE_in_gg(x1, x2)  =  permE_in_gg(x1, x2)
permE_out_gg(x1, x2)  =  permE_out_gg(x1, x2)
U4_gg(x1, x2, x3, x4)  =  U4_gg(x1, x2, x3, x4)
pF_in_agagag(x1, x2, x3, x4, x5, x6)  =  pF_in_agagag(x2, x4, x6)
U14_agagag(x1, x2, x3, x4, x5, x6, x7)  =  U14_agagag(x2, x4, x6, x7)
U15_agagag(x1, x2, x3, x4, x5, x6, x7)  =  U15_agagag(x1, x2, x3, x4, x6, x7)
pM_in_ggag(x1, x2, x3, x4)  =  pM_in_ggag(x1, x2, x4)
U16_ggag(x1, x2, x3, x4, x5)  =  U16_ggag(x1, x2, x4, x5)
U17_ggag(x1, x2, x3, x4, x5)  =  U17_ggag(x1, x2, x3, x4, x5)
pM_out_ggag(x1, x2, x3, x4)  =  pM_out_ggag(x1, x2, x3, x4)
pF_out_agagag(x1, x2, x3, x4, x5, x6)  =  pF_out_agagag(x1, x2, x3, x4, x5, x6)
U13_ggg(x1, x2, x3, x4)  =  U13_ggg(x1, x2, x3, x4)
orderedG_in_gg(x1, x2)  =  orderedG_in_gg(x1, x2)
orderedG_out_gg(x1, x2)  =  orderedG_out_gg(x1, x2)
U5_gg(x1, x2, x3, x4)  =  U5_gg(x1, x2, x3, x4)
pH_in_ggg(x1, x2, x3)  =  pH_in_ggg(x1, x2, x3)
U18_ggg(x1, x2, x3, x4)  =  U18_ggg(x1, x2, x3, x4)
lessJ_in_gg(x1, x2)  =  lessJ_in_gg(x1, x2)
0  =  0
lessJ_out_gg(x1, x2)  =  lessJ_out_gg(x1, x2)
s(x1)  =  s(x1)
U7_gg(x1, x2, x3)  =  U7_gg(x1, x2, x3)
lessI_in_gg(x1, x2)  =  lessI_in_gg(x1, x2)
lessI_out_gg(x1, x2)  =  lessI_out_gg(x1, x2)
U6_gg(x1, x2, x3)  =  U6_gg(x1, x2, x3)
U19_ggg(x1, x2, x3, x4)  =  U19_ggg(x1, x2, x3, x4)
pH_out_ggg(x1, x2, x3)  =  pH_out_ggg(x1, x2, x3)
pL_out_ggg(x1, x2, x3)  =  pL_out_ggg(x1, x2, x3)
pK_out_ggagg(x1, x2, x3, x4, x5)  =  pK_out_ggagg(x1, x2, x3, x4, x5)
pB_out_agagag(x1, x2, x3, x4, x5, x6)  =  pB_out_agagag(x1, x2, x3, x4, x5, x6)
APPD_IN_GGA(x1, x2, x3)  =  APPD_IN_GGA(x1, x2)

We have to consider all (P,R,Pi)-chains

(22) UsableRulesProof (EQUIVALENT transformation)

For (infinitary) constructor rewriting [LOPSTR] we can delete all non-usable rules from R.

(23) Obligation:

Pi DP problem:
The TRS P consists of the following rules:

APPD_IN_GGA(.(T65, T66), T67, .(T65, X92)) → APPD_IN_GGA(T66, T67, X92)

R is empty.
The argument filtering Pi contains the following mapping:
.(x1, x2)  =  .(x1, x2)
APPD_IN_GGA(x1, x2, x3)  =  APPD_IN_GGA(x1, x2)

We have to consider all (P,R,Pi)-chains

(24) PiDPToQDPProof (SOUND transformation)

Transforming (infinitary) constructor rewriting Pi-DP problem [LOPSTR] into ordinary QDP problem [LPAR04] by application of Pi.

(25) Obligation:

Q DP problem:
The TRS P consists of the following rules:

APPD_IN_GGA(.(T65, T66), T67) → APPD_IN_GGA(T66, T67)

R is empty.
Q is empty.
We have to consider all (P,Q,R)-chains.

(26) QDPSizeChangeProof (EQUIVALENT transformation)

By using the subterm criterion [SUBTERM_CRITERION] together with the size-change analysis [AAECC05] we have proven that there are no infinite chains for this DP problem.

From the DPs we obtained the following set of size-change graphs:

  • APPD_IN_GGA(.(T65, T66), T67) → APPD_IN_GGA(T66, T67)
    The graph contains the following edges 1 > 1, 2 >= 2

(27) YES

(28) Obligation:

Pi DP problem:
The TRS P consists of the following rules:

APPC_IN_AGAG(.(T43, X63), T42, X64, .(T43, T44)) → APPC_IN_AGAG(X63, T42, X64, T44)

The TRS R consists of the following rules:

ssA_in_gg([], []) → ssA_out_gg([], [])
ssA_in_gg(T13, .(T14, T15)) → U1_gg(T13, T14, T15, pB_in_agagag(X23, T14, X24, T13, X25, T15))
pB_in_agagag(T20, T14, T21, T13, X25, T15) → U8_agagag(T20, T14, T21, T13, X25, T15, appC_in_agag(T20, T14, T21, T13))
appC_in_agag([], T34, T35, .(T34, T35)) → appC_out_agag([], T34, T35, .(T34, T35))
appC_in_agag(.(T43, X63), T42, X64, .(T43, T44)) → U2_agag(T43, X63, T42, X64, T44, appC_in_agag(X63, T42, X64, T44))
U2_agag(T43, X63, T42, X64, T44, appC_out_agag(X63, T42, X64, T44)) → appC_out_agag(.(T43, X63), T42, X64, .(T43, T44))
U8_agagag(T20, T14, T21, T13, X25, T15, appC_out_agag(T20, T14, T21, T13)) → U9_agagag(T20, T14, T21, T13, X25, T15, pK_in_ggagg(T20, T21, X25, T15, T14))
pK_in_ggagg(T20, T21, T51, T15, T14) → U10_ggagg(T20, T21, T51, T15, T14, appD_in_gga(T20, T21, T51))
appD_in_gga([], T58, T58) → appD_out_gga([], T58, T58)
appD_in_gga(.(T65, T66), T67, .(T65, X92)) → U3_gga(T65, T66, T67, X92, appD_in_gga(T66, T67, X92))
U3_gga(T65, T66, T67, X92, appD_out_gga(T66, T67, X92)) → appD_out_gga(.(T65, T66), T67, .(T65, X92))
U10_ggagg(T20, T21, T51, T15, T14, appD_out_gga(T20, T21, T51)) → U11_ggagg(T20, T21, T51, T15, T14, pL_in_ggg(T51, T15, T14))
pL_in_ggg(T51, T15, T14) → U12_ggg(T51, T15, T14, permE_in_gg(T51, T15))
permE_in_gg([], []) → permE_out_gg([], [])
permE_in_gg(T76, .(T77, T78)) → U4_gg(T76, T77, T78, pF_in_agagag(X107, T77, X108, T76, X109, T78))
pF_in_agagag(T83, T77, T84, T76, X109, T78) → U14_agagag(T83, T77, T84, T76, X109, T78, appC_in_agag(T83, T77, T84, T76))
U14_agagag(T83, T77, T84, T76, X109, T78, appC_out_agag(T83, T77, T84, T76)) → U15_agagag(T83, T77, T84, T76, X109, T78, pM_in_ggag(T83, T84, X109, T78))
pM_in_ggag(T83, T84, T91, T78) → U16_ggag(T83, T84, T91, T78, appD_in_gga(T83, T84, T91))
U16_ggag(T83, T84, T91, T78, appD_out_gga(T83, T84, T91)) → U17_ggag(T83, T84, T91, T78, permE_in_gg(T91, T78))
U17_ggag(T83, T84, T91, T78, permE_out_gg(T91, T78)) → pM_out_ggag(T83, T84, T91, T78)
U15_agagag(T83, T77, T84, T76, X109, T78, pM_out_ggag(T83, T84, X109, T78)) → pF_out_agagag(T83, T77, T84, T76, X109, T78)
U4_gg(T76, T77, T78, pF_out_agagag(X107, T77, X108, T76, X109, T78)) → permE_out_gg(T76, .(T77, T78))
U12_ggg(T51, T15, T14, permE_out_gg(T51, T15)) → U13_ggg(T51, T15, T14, orderedG_in_gg(T14, T15))
orderedG_in_gg(T98, []) → orderedG_out_gg(T98, [])
orderedG_in_gg(T105, .(T106, T107)) → U5_gg(T105, T106, T107, pH_in_ggg(T105, T106, T107))
pH_in_ggg(T105, T106, T107) → U18_ggg(T105, T106, T107, lessJ_in_gg(T105, T106))
lessJ_in_gg(0, T116) → lessJ_out_gg(0, T116)
lessJ_in_gg(s(T121), T122) → U7_gg(T121, T122, lessI_in_gg(T121, T122))
lessI_in_gg(0, s(T129)) → lessI_out_gg(0, s(T129))
lessI_in_gg(s(T134), s(T135)) → U6_gg(T134, T135, lessI_in_gg(T134, T135))
U6_gg(T134, T135, lessI_out_gg(T134, T135)) → lessI_out_gg(s(T134), s(T135))
U7_gg(T121, T122, lessI_out_gg(T121, T122)) → lessJ_out_gg(s(T121), T122)
U18_ggg(T105, T106, T107, lessJ_out_gg(T105, T106)) → U19_ggg(T105, T106, T107, orderedG_in_gg(T106, T107))
U19_ggg(T105, T106, T107, orderedG_out_gg(T106, T107)) → pH_out_ggg(T105, T106, T107)
U5_gg(T105, T106, T107, pH_out_ggg(T105, T106, T107)) → orderedG_out_gg(T105, .(T106, T107))
U13_ggg(T51, T15, T14, orderedG_out_gg(T14, T15)) → pL_out_ggg(T51, T15, T14)
U11_ggagg(T20, T21, T51, T15, T14, pL_out_ggg(T51, T15, T14)) → pK_out_ggagg(T20, T21, T51, T15, T14)
U9_agagag(T20, T14, T21, T13, X25, T15, pK_out_ggagg(T20, T21, X25, T15, T14)) → pB_out_agagag(T20, T14, T21, T13, X25, T15)
U1_gg(T13, T14, T15, pB_out_agagag(X23, T14, X24, T13, X25, T15)) → ssA_out_gg(T13, .(T14, T15))

The argument filtering Pi contains the following mapping:
ssA_in_gg(x1, x2)  =  ssA_in_gg(x1, x2)
[]  =  []
ssA_out_gg(x1, x2)  =  ssA_out_gg(x1, x2)
.(x1, x2)  =  .(x1, x2)
U1_gg(x1, x2, x3, x4)  =  U1_gg(x1, x2, x3, x4)
pB_in_agagag(x1, x2, x3, x4, x5, x6)  =  pB_in_agagag(x2, x4, x6)
U8_agagag(x1, x2, x3, x4, x5, x6, x7)  =  U8_agagag(x2, x4, x6, x7)
appC_in_agag(x1, x2, x3, x4)  =  appC_in_agag(x2, x4)
appC_out_agag(x1, x2, x3, x4)  =  appC_out_agag(x1, x2, x3, x4)
U2_agag(x1, x2, x3, x4, x5, x6)  =  U2_agag(x1, x3, x5, x6)
U9_agagag(x1, x2, x3, x4, x5, x6, x7)  =  U9_agagag(x1, x2, x3, x4, x6, x7)
pK_in_ggagg(x1, x2, x3, x4, x5)  =  pK_in_ggagg(x1, x2, x4, x5)
U10_ggagg(x1, x2, x3, x4, x5, x6)  =  U10_ggagg(x1, x2, x4, x5, x6)
appD_in_gga(x1, x2, x3)  =  appD_in_gga(x1, x2)
appD_out_gga(x1, x2, x3)  =  appD_out_gga(x1, x2, x3)
U3_gga(x1, x2, x3, x4, x5)  =  U3_gga(x1, x2, x3, x5)
U11_ggagg(x1, x2, x3, x4, x5, x6)  =  U11_ggagg(x1, x2, x3, x4, x5, x6)
pL_in_ggg(x1, x2, x3)  =  pL_in_ggg(x1, x2, x3)
U12_ggg(x1, x2, x3, x4)  =  U12_ggg(x1, x2, x3, x4)
permE_in_gg(x1, x2)  =  permE_in_gg(x1, x2)
permE_out_gg(x1, x2)  =  permE_out_gg(x1, x2)
U4_gg(x1, x2, x3, x4)  =  U4_gg(x1, x2, x3, x4)
pF_in_agagag(x1, x2, x3, x4, x5, x6)  =  pF_in_agagag(x2, x4, x6)
U14_agagag(x1, x2, x3, x4, x5, x6, x7)  =  U14_agagag(x2, x4, x6, x7)
U15_agagag(x1, x2, x3, x4, x5, x6, x7)  =  U15_agagag(x1, x2, x3, x4, x6, x7)
pM_in_ggag(x1, x2, x3, x4)  =  pM_in_ggag(x1, x2, x4)
U16_ggag(x1, x2, x3, x4, x5)  =  U16_ggag(x1, x2, x4, x5)
U17_ggag(x1, x2, x3, x4, x5)  =  U17_ggag(x1, x2, x3, x4, x5)
pM_out_ggag(x1, x2, x3, x4)  =  pM_out_ggag(x1, x2, x3, x4)
pF_out_agagag(x1, x2, x3, x4, x5, x6)  =  pF_out_agagag(x1, x2, x3, x4, x5, x6)
U13_ggg(x1, x2, x3, x4)  =  U13_ggg(x1, x2, x3, x4)
orderedG_in_gg(x1, x2)  =  orderedG_in_gg(x1, x2)
orderedG_out_gg(x1, x2)  =  orderedG_out_gg(x1, x2)
U5_gg(x1, x2, x3, x4)  =  U5_gg(x1, x2, x3, x4)
pH_in_ggg(x1, x2, x3)  =  pH_in_ggg(x1, x2, x3)
U18_ggg(x1, x2, x3, x4)  =  U18_ggg(x1, x2, x3, x4)
lessJ_in_gg(x1, x2)  =  lessJ_in_gg(x1, x2)
0  =  0
lessJ_out_gg(x1, x2)  =  lessJ_out_gg(x1, x2)
s(x1)  =  s(x1)
U7_gg(x1, x2, x3)  =  U7_gg(x1, x2, x3)
lessI_in_gg(x1, x2)  =  lessI_in_gg(x1, x2)
lessI_out_gg(x1, x2)  =  lessI_out_gg(x1, x2)
U6_gg(x1, x2, x3)  =  U6_gg(x1, x2, x3)
U19_ggg(x1, x2, x3, x4)  =  U19_ggg(x1, x2, x3, x4)
pH_out_ggg(x1, x2, x3)  =  pH_out_ggg(x1, x2, x3)
pL_out_ggg(x1, x2, x3)  =  pL_out_ggg(x1, x2, x3)
pK_out_ggagg(x1, x2, x3, x4, x5)  =  pK_out_ggagg(x1, x2, x3, x4, x5)
pB_out_agagag(x1, x2, x3, x4, x5, x6)  =  pB_out_agagag(x1, x2, x3, x4, x5, x6)
APPC_IN_AGAG(x1, x2, x3, x4)  =  APPC_IN_AGAG(x2, x4)

We have to consider all (P,R,Pi)-chains

(29) UsableRulesProof (EQUIVALENT transformation)

For (infinitary) constructor rewriting [LOPSTR] we can delete all non-usable rules from R.

(30) Obligation:

Pi DP problem:
The TRS P consists of the following rules:

APPC_IN_AGAG(.(T43, X63), T42, X64, .(T43, T44)) → APPC_IN_AGAG(X63, T42, X64, T44)

R is empty.
The argument filtering Pi contains the following mapping:
.(x1, x2)  =  .(x1, x2)
APPC_IN_AGAG(x1, x2, x3, x4)  =  APPC_IN_AGAG(x2, x4)

We have to consider all (P,R,Pi)-chains

(31) PiDPToQDPProof (SOUND transformation)

Transforming (infinitary) constructor rewriting Pi-DP problem [LOPSTR] into ordinary QDP problem [LPAR04] by application of Pi.

(32) Obligation:

Q DP problem:
The TRS P consists of the following rules:

APPC_IN_AGAG(T42, .(T43, T44)) → APPC_IN_AGAG(T42, T44)

R is empty.
Q is empty.
We have to consider all (P,Q,R)-chains.

(33) QDPSizeChangeProof (EQUIVALENT transformation)

By using the subterm criterion [SUBTERM_CRITERION] together with the size-change analysis [AAECC05] we have proven that there are no infinite chains for this DP problem.

From the DPs we obtained the following set of size-change graphs:

  • APPC_IN_AGAG(T42, .(T43, T44)) → APPC_IN_AGAG(T42, T44)
    The graph contains the following edges 1 >= 1, 2 > 2

(34) YES

(35) Obligation:

Pi DP problem:
The TRS P consists of the following rules:

PF_IN_AGAGAG(T83, T77, T84, T76, X109, T78) → U14_AGAGAG(T83, T77, T84, T76, X109, T78, appC_in_agag(T83, T77, T84, T76))
U14_AGAGAG(T83, T77, T84, T76, X109, T78, appC_out_agag(T83, T77, T84, T76)) → PM_IN_GGAG(T83, T84, X109, T78)
PM_IN_GGAG(T83, T84, T91, T78) → U16_GGAG(T83, T84, T91, T78, appD_in_gga(T83, T84, T91))
U16_GGAG(T83, T84, T91, T78, appD_out_gga(T83, T84, T91)) → PERME_IN_GG(T91, T78)
PERME_IN_GG(T76, .(T77, T78)) → PF_IN_AGAGAG(X107, T77, X108, T76, X109, T78)

The TRS R consists of the following rules:

ssA_in_gg([], []) → ssA_out_gg([], [])
ssA_in_gg(T13, .(T14, T15)) → U1_gg(T13, T14, T15, pB_in_agagag(X23, T14, X24, T13, X25, T15))
pB_in_agagag(T20, T14, T21, T13, X25, T15) → U8_agagag(T20, T14, T21, T13, X25, T15, appC_in_agag(T20, T14, T21, T13))
appC_in_agag([], T34, T35, .(T34, T35)) → appC_out_agag([], T34, T35, .(T34, T35))
appC_in_agag(.(T43, X63), T42, X64, .(T43, T44)) → U2_agag(T43, X63, T42, X64, T44, appC_in_agag(X63, T42, X64, T44))
U2_agag(T43, X63, T42, X64, T44, appC_out_agag(X63, T42, X64, T44)) → appC_out_agag(.(T43, X63), T42, X64, .(T43, T44))
U8_agagag(T20, T14, T21, T13, X25, T15, appC_out_agag(T20, T14, T21, T13)) → U9_agagag(T20, T14, T21, T13, X25, T15, pK_in_ggagg(T20, T21, X25, T15, T14))
pK_in_ggagg(T20, T21, T51, T15, T14) → U10_ggagg(T20, T21, T51, T15, T14, appD_in_gga(T20, T21, T51))
appD_in_gga([], T58, T58) → appD_out_gga([], T58, T58)
appD_in_gga(.(T65, T66), T67, .(T65, X92)) → U3_gga(T65, T66, T67, X92, appD_in_gga(T66, T67, X92))
U3_gga(T65, T66, T67, X92, appD_out_gga(T66, T67, X92)) → appD_out_gga(.(T65, T66), T67, .(T65, X92))
U10_ggagg(T20, T21, T51, T15, T14, appD_out_gga(T20, T21, T51)) → U11_ggagg(T20, T21, T51, T15, T14, pL_in_ggg(T51, T15, T14))
pL_in_ggg(T51, T15, T14) → U12_ggg(T51, T15, T14, permE_in_gg(T51, T15))
permE_in_gg([], []) → permE_out_gg([], [])
permE_in_gg(T76, .(T77, T78)) → U4_gg(T76, T77, T78, pF_in_agagag(X107, T77, X108, T76, X109, T78))
pF_in_agagag(T83, T77, T84, T76, X109, T78) → U14_agagag(T83, T77, T84, T76, X109, T78, appC_in_agag(T83, T77, T84, T76))
U14_agagag(T83, T77, T84, T76, X109, T78, appC_out_agag(T83, T77, T84, T76)) → U15_agagag(T83, T77, T84, T76, X109, T78, pM_in_ggag(T83, T84, X109, T78))
pM_in_ggag(T83, T84, T91, T78) → U16_ggag(T83, T84, T91, T78, appD_in_gga(T83, T84, T91))
U16_ggag(T83, T84, T91, T78, appD_out_gga(T83, T84, T91)) → U17_ggag(T83, T84, T91, T78, permE_in_gg(T91, T78))
U17_ggag(T83, T84, T91, T78, permE_out_gg(T91, T78)) → pM_out_ggag(T83, T84, T91, T78)
U15_agagag(T83, T77, T84, T76, X109, T78, pM_out_ggag(T83, T84, X109, T78)) → pF_out_agagag(T83, T77, T84, T76, X109, T78)
U4_gg(T76, T77, T78, pF_out_agagag(X107, T77, X108, T76, X109, T78)) → permE_out_gg(T76, .(T77, T78))
U12_ggg(T51, T15, T14, permE_out_gg(T51, T15)) → U13_ggg(T51, T15, T14, orderedG_in_gg(T14, T15))
orderedG_in_gg(T98, []) → orderedG_out_gg(T98, [])
orderedG_in_gg(T105, .(T106, T107)) → U5_gg(T105, T106, T107, pH_in_ggg(T105, T106, T107))
pH_in_ggg(T105, T106, T107) → U18_ggg(T105, T106, T107, lessJ_in_gg(T105, T106))
lessJ_in_gg(0, T116) → lessJ_out_gg(0, T116)
lessJ_in_gg(s(T121), T122) → U7_gg(T121, T122, lessI_in_gg(T121, T122))
lessI_in_gg(0, s(T129)) → lessI_out_gg(0, s(T129))
lessI_in_gg(s(T134), s(T135)) → U6_gg(T134, T135, lessI_in_gg(T134, T135))
U6_gg(T134, T135, lessI_out_gg(T134, T135)) → lessI_out_gg(s(T134), s(T135))
U7_gg(T121, T122, lessI_out_gg(T121, T122)) → lessJ_out_gg(s(T121), T122)
U18_ggg(T105, T106, T107, lessJ_out_gg(T105, T106)) → U19_ggg(T105, T106, T107, orderedG_in_gg(T106, T107))
U19_ggg(T105, T106, T107, orderedG_out_gg(T106, T107)) → pH_out_ggg(T105, T106, T107)
U5_gg(T105, T106, T107, pH_out_ggg(T105, T106, T107)) → orderedG_out_gg(T105, .(T106, T107))
U13_ggg(T51, T15, T14, orderedG_out_gg(T14, T15)) → pL_out_ggg(T51, T15, T14)
U11_ggagg(T20, T21, T51, T15, T14, pL_out_ggg(T51, T15, T14)) → pK_out_ggagg(T20, T21, T51, T15, T14)
U9_agagag(T20, T14, T21, T13, X25, T15, pK_out_ggagg(T20, T21, X25, T15, T14)) → pB_out_agagag(T20, T14, T21, T13, X25, T15)
U1_gg(T13, T14, T15, pB_out_agagag(X23, T14, X24, T13, X25, T15)) → ssA_out_gg(T13, .(T14, T15))

The argument filtering Pi contains the following mapping:
ssA_in_gg(x1, x2)  =  ssA_in_gg(x1, x2)
[]  =  []
ssA_out_gg(x1, x2)  =  ssA_out_gg(x1, x2)
.(x1, x2)  =  .(x1, x2)
U1_gg(x1, x2, x3, x4)  =  U1_gg(x1, x2, x3, x4)
pB_in_agagag(x1, x2, x3, x4, x5, x6)  =  pB_in_agagag(x2, x4, x6)
U8_agagag(x1, x2, x3, x4, x5, x6, x7)  =  U8_agagag(x2, x4, x6, x7)
appC_in_agag(x1, x2, x3, x4)  =  appC_in_agag(x2, x4)
appC_out_agag(x1, x2, x3, x4)  =  appC_out_agag(x1, x2, x3, x4)
U2_agag(x1, x2, x3, x4, x5, x6)  =  U2_agag(x1, x3, x5, x6)
U9_agagag(x1, x2, x3, x4, x5, x6, x7)  =  U9_agagag(x1, x2, x3, x4, x6, x7)
pK_in_ggagg(x1, x2, x3, x4, x5)  =  pK_in_ggagg(x1, x2, x4, x5)
U10_ggagg(x1, x2, x3, x4, x5, x6)  =  U10_ggagg(x1, x2, x4, x5, x6)
appD_in_gga(x1, x2, x3)  =  appD_in_gga(x1, x2)
appD_out_gga(x1, x2, x3)  =  appD_out_gga(x1, x2, x3)
U3_gga(x1, x2, x3, x4, x5)  =  U3_gga(x1, x2, x3, x5)
U11_ggagg(x1, x2, x3, x4, x5, x6)  =  U11_ggagg(x1, x2, x3, x4, x5, x6)
pL_in_ggg(x1, x2, x3)  =  pL_in_ggg(x1, x2, x3)
U12_ggg(x1, x2, x3, x4)  =  U12_ggg(x1, x2, x3, x4)
permE_in_gg(x1, x2)  =  permE_in_gg(x1, x2)
permE_out_gg(x1, x2)  =  permE_out_gg(x1, x2)
U4_gg(x1, x2, x3, x4)  =  U4_gg(x1, x2, x3, x4)
pF_in_agagag(x1, x2, x3, x4, x5, x6)  =  pF_in_agagag(x2, x4, x6)
U14_agagag(x1, x2, x3, x4, x5, x6, x7)  =  U14_agagag(x2, x4, x6, x7)
U15_agagag(x1, x2, x3, x4, x5, x6, x7)  =  U15_agagag(x1, x2, x3, x4, x6, x7)
pM_in_ggag(x1, x2, x3, x4)  =  pM_in_ggag(x1, x2, x4)
U16_ggag(x1, x2, x3, x4, x5)  =  U16_ggag(x1, x2, x4, x5)
U17_ggag(x1, x2, x3, x4, x5)  =  U17_ggag(x1, x2, x3, x4, x5)
pM_out_ggag(x1, x2, x3, x4)  =  pM_out_ggag(x1, x2, x3, x4)
pF_out_agagag(x1, x2, x3, x4, x5, x6)  =  pF_out_agagag(x1, x2, x3, x4, x5, x6)
U13_ggg(x1, x2, x3, x4)  =  U13_ggg(x1, x2, x3, x4)
orderedG_in_gg(x1, x2)  =  orderedG_in_gg(x1, x2)
orderedG_out_gg(x1, x2)  =  orderedG_out_gg(x1, x2)
U5_gg(x1, x2, x3, x4)  =  U5_gg(x1, x2, x3, x4)
pH_in_ggg(x1, x2, x3)  =  pH_in_ggg(x1, x2, x3)
U18_ggg(x1, x2, x3, x4)  =  U18_ggg(x1, x2, x3, x4)
lessJ_in_gg(x1, x2)  =  lessJ_in_gg(x1, x2)
0  =  0
lessJ_out_gg(x1, x2)  =  lessJ_out_gg(x1, x2)
s(x1)  =  s(x1)
U7_gg(x1, x2, x3)  =  U7_gg(x1, x2, x3)
lessI_in_gg(x1, x2)  =  lessI_in_gg(x1, x2)
lessI_out_gg(x1, x2)  =  lessI_out_gg(x1, x2)
U6_gg(x1, x2, x3)  =  U6_gg(x1, x2, x3)
U19_ggg(x1, x2, x3, x4)  =  U19_ggg(x1, x2, x3, x4)
pH_out_ggg(x1, x2, x3)  =  pH_out_ggg(x1, x2, x3)
pL_out_ggg(x1, x2, x3)  =  pL_out_ggg(x1, x2, x3)
pK_out_ggagg(x1, x2, x3, x4, x5)  =  pK_out_ggagg(x1, x2, x3, x4, x5)
pB_out_agagag(x1, x2, x3, x4, x5, x6)  =  pB_out_agagag(x1, x2, x3, x4, x5, x6)
PERME_IN_GG(x1, x2)  =  PERME_IN_GG(x1, x2)
PF_IN_AGAGAG(x1, x2, x3, x4, x5, x6)  =  PF_IN_AGAGAG(x2, x4, x6)
U14_AGAGAG(x1, x2, x3, x4, x5, x6, x7)  =  U14_AGAGAG(x2, x4, x6, x7)
PM_IN_GGAG(x1, x2, x3, x4)  =  PM_IN_GGAG(x1, x2, x4)
U16_GGAG(x1, x2, x3, x4, x5)  =  U16_GGAG(x1, x2, x4, x5)

We have to consider all (P,R,Pi)-chains

(36) UsableRulesProof (EQUIVALENT transformation)

For (infinitary) constructor rewriting [LOPSTR] we can delete all non-usable rules from R.

(37) Obligation:

Pi DP problem:
The TRS P consists of the following rules:

PF_IN_AGAGAG(T83, T77, T84, T76, X109, T78) → U14_AGAGAG(T83, T77, T84, T76, X109, T78, appC_in_agag(T83, T77, T84, T76))
U14_AGAGAG(T83, T77, T84, T76, X109, T78, appC_out_agag(T83, T77, T84, T76)) → PM_IN_GGAG(T83, T84, X109, T78)
PM_IN_GGAG(T83, T84, T91, T78) → U16_GGAG(T83, T84, T91, T78, appD_in_gga(T83, T84, T91))
U16_GGAG(T83, T84, T91, T78, appD_out_gga(T83, T84, T91)) → PERME_IN_GG(T91, T78)
PERME_IN_GG(T76, .(T77, T78)) → PF_IN_AGAGAG(X107, T77, X108, T76, X109, T78)

The TRS R consists of the following rules:

appC_in_agag([], T34, T35, .(T34, T35)) → appC_out_agag([], T34, T35, .(T34, T35))
appC_in_agag(.(T43, X63), T42, X64, .(T43, T44)) → U2_agag(T43, X63, T42, X64, T44, appC_in_agag(X63, T42, X64, T44))
appD_in_gga([], T58, T58) → appD_out_gga([], T58, T58)
appD_in_gga(.(T65, T66), T67, .(T65, X92)) → U3_gga(T65, T66, T67, X92, appD_in_gga(T66, T67, X92))
U2_agag(T43, X63, T42, X64, T44, appC_out_agag(X63, T42, X64, T44)) → appC_out_agag(.(T43, X63), T42, X64, .(T43, T44))
U3_gga(T65, T66, T67, X92, appD_out_gga(T66, T67, X92)) → appD_out_gga(.(T65, T66), T67, .(T65, X92))

The argument filtering Pi contains the following mapping:
[]  =  []
.(x1, x2)  =  .(x1, x2)
appC_in_agag(x1, x2, x3, x4)  =  appC_in_agag(x2, x4)
appC_out_agag(x1, x2, x3, x4)  =  appC_out_agag(x1, x2, x3, x4)
U2_agag(x1, x2, x3, x4, x5, x6)  =  U2_agag(x1, x3, x5, x6)
appD_in_gga(x1, x2, x3)  =  appD_in_gga(x1, x2)
appD_out_gga(x1, x2, x3)  =  appD_out_gga(x1, x2, x3)
U3_gga(x1, x2, x3, x4, x5)  =  U3_gga(x1, x2, x3, x5)
PERME_IN_GG(x1, x2)  =  PERME_IN_GG(x1, x2)
PF_IN_AGAGAG(x1, x2, x3, x4, x5, x6)  =  PF_IN_AGAGAG(x2, x4, x6)
U14_AGAGAG(x1, x2, x3, x4, x5, x6, x7)  =  U14_AGAGAG(x2, x4, x6, x7)
PM_IN_GGAG(x1, x2, x3, x4)  =  PM_IN_GGAG(x1, x2, x4)
U16_GGAG(x1, x2, x3, x4, x5)  =  U16_GGAG(x1, x2, x4, x5)

We have to consider all (P,R,Pi)-chains

(38) PiDPToQDPProof (SOUND transformation)

Transforming (infinitary) constructor rewriting Pi-DP problem [LOPSTR] into ordinary QDP problem [LPAR04] by application of Pi.

(39) Obligation:

Q DP problem:
The TRS P consists of the following rules:

PF_IN_AGAGAG(T77, T76, T78) → U14_AGAGAG(T77, T76, T78, appC_in_agag(T77, T76))
U14_AGAGAG(T77, T76, T78, appC_out_agag(T83, T77, T84, T76)) → PM_IN_GGAG(T83, T84, T78)
PM_IN_GGAG(T83, T84, T78) → U16_GGAG(T83, T84, T78, appD_in_gga(T83, T84))
U16_GGAG(T83, T84, T78, appD_out_gga(T83, T84, T91)) → PERME_IN_GG(T91, T78)
PERME_IN_GG(T76, .(T77, T78)) → PF_IN_AGAGAG(T77, T76, T78)

The TRS R consists of the following rules:

appC_in_agag(T34, .(T34, T35)) → appC_out_agag([], T34, T35, .(T34, T35))
appC_in_agag(T42, .(T43, T44)) → U2_agag(T43, T42, T44, appC_in_agag(T42, T44))
appD_in_gga([], T58) → appD_out_gga([], T58, T58)
appD_in_gga(.(T65, T66), T67) → U3_gga(T65, T66, T67, appD_in_gga(T66, T67))
U2_agag(T43, T42, T44, appC_out_agag(X63, T42, X64, T44)) → appC_out_agag(.(T43, X63), T42, X64, .(T43, T44))
U3_gga(T65, T66, T67, appD_out_gga(T66, T67, X92)) → appD_out_gga(.(T65, T66), T67, .(T65, X92))

The set Q consists of the following terms:

appC_in_agag(x0, x1)
appD_in_gga(x0, x1)
U2_agag(x0, x1, x2, x3)
U3_gga(x0, x1, x2, x3)

We have to consider all (P,Q,R)-chains.

(40) QDPSizeChangeProof (EQUIVALENT transformation)

By using the subterm criterion [SUBTERM_CRITERION] together with the size-change analysis [AAECC05] we have proven that there are no infinite chains for this DP problem.

From the DPs we obtained the following set of size-change graphs:

  • U14_AGAGAG(T77, T76, T78, appC_out_agag(T83, T77, T84, T76)) → PM_IN_GGAG(T83, T84, T78)
    The graph contains the following edges 4 > 1, 4 > 2, 3 >= 3

  • PERME_IN_GG(T76, .(T77, T78)) → PF_IN_AGAGAG(T77, T76, T78)
    The graph contains the following edges 2 > 1, 1 >= 2, 2 > 3

  • PM_IN_GGAG(T83, T84, T78) → U16_GGAG(T83, T84, T78, appD_in_gga(T83, T84))
    The graph contains the following edges 1 >= 1, 2 >= 2, 3 >= 3

  • PF_IN_AGAGAG(T77, T76, T78) → U14_AGAGAG(T77, T76, T78, appC_in_agag(T77, T76))
    The graph contains the following edges 1 >= 1, 2 >= 2, 3 >= 3

  • U16_GGAG(T83, T84, T78, appD_out_gga(T83, T84, T91)) → PERME_IN_GG(T91, T78)
    The graph contains the following edges 4 > 1, 3 >= 2

(41) YES