(0) Obligation:

Clauses:

in(X, tree(X, X1, X2)).
in(X, tree(Y, Left, X3)) :- ','(less(X, Y), in(X, Left)).
in(X, tree(Y, X4, Right)) :- ','(less(Y, X), in(X, Right)).
less(0, s(X5)).
less(s(X), s(Y)) :- less(X, Y).

Query: in(a,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:

inA_in_ag(T6, tree(T6, T7, T8)) → inA_out_ag(T6, tree(T6, T7, T8))
inA_in_ag(0, tree(s(T22), T15, T16)) → U1_ag(T22, T15, T16, inB_in_g(T15))
inB_in_g(tree(0, T35, T36)) → inB_out_g(tree(0, T35, T36))
inB_in_g(tree(T49, T50, T51)) → U9_g(T49, T50, T51, pF_in_gg(T49, T50))
pF_in_gg(T49, T50) → U16_gg(T49, T50, lessN_in_g(T49))
lessN_in_g(s(T60)) → lessN_out_g(s(T60))
U16_gg(T49, T50, lessN_out_g(T49)) → U17_gg(T49, T50, inB_in_g(T50))
U17_gg(T49, T50, inB_out_g(T50)) → pF_out_gg(T49, T50)
U9_g(T49, T50, T51, pF_out_gg(T49, T50)) → inB_out_g(tree(T49, T50, T51))
U1_ag(T22, T15, T16, inB_out_g(T15)) → inA_out_ag(0, tree(s(T22), T15, T16))
inA_in_ag(s(T89), tree(s(T88), T15, T16)) → U2_ag(T89, T88, T15, T16, pC_in_agg(T89, T88, T15))
pC_in_agg(T92, T88, T15) → U18_agg(T92, T88, T15, lessH_in_ag(T92, T88))
lessH_in_ag(0, s(T99)) → lessH_out_ag(0, s(T99))
lessH_in_ag(s(T106), s(T105)) → U10_ag(T106, T105, lessH_in_ag(T106, T105))
U10_ag(T106, T105, lessH_out_ag(T106, T105)) → lessH_out_ag(s(T106), s(T105))
U18_agg(T92, T88, T15, lessH_out_ag(T92, T88)) → U19_agg(T92, T88, T15, inI_in_gg(T92, T15))
inI_in_gg(T127, tree(s(T127), T128, T129)) → inI_out_gg(T127, tree(s(T127), T128, T129))
inI_in_gg(T146, tree(T147, T148, T149)) → U11_gg(T146, T147, T148, T149, pJ_in_ggg(T146, T147, T148))
pJ_in_ggg(T146, T147, T148) → U20_ggg(T146, T147, T148, lessO_in_gg(T146, T147))
lessO_in_gg(T154, s(T155)) → U15_gg(T154, T155, lessL_in_gg(T154, T155))
lessL_in_gg(0, s(T162)) → lessL_out_gg(0, s(T162))
lessL_in_gg(s(T167), s(T168)) → U13_gg(T167, T168, lessL_in_gg(T167, T168))
U13_gg(T167, T168, lessL_out_gg(T167, T168)) → lessL_out_gg(s(T167), s(T168))
U15_gg(T154, T155, lessL_out_gg(T154, T155)) → lessO_out_gg(T154, s(T155))
U20_ggg(T146, T147, T148, lessO_out_gg(T146, T147)) → U21_ggg(T146, T147, T148, inI_in_gg(T146, T148))
inI_in_gg(T185, tree(T186, T187, T188)) → U12_gg(T185, T186, T187, T188, pK_in_ggg(T186, T185, T188))
pK_in_ggg(T186, T185, T188) → U22_ggg(T186, T185, T188, lessL_in_gg(T186, s(T185)))
U22_ggg(T186, T185, T188, lessL_out_gg(T186, s(T185))) → U23_ggg(T186, T185, T188, inI_in_gg(T185, T188))
U23_ggg(T186, T185, T188, inI_out_gg(T185, T188)) → pK_out_ggg(T186, T185, T188)
U12_gg(T185, T186, T187, T188, pK_out_ggg(T186, T185, T188)) → inI_out_gg(T185, tree(T186, T187, T188))
U21_ggg(T146, T147, T148, inI_out_gg(T146, T148)) → pJ_out_ggg(T146, T147, T148)
U11_gg(T146, T147, T148, T149, pJ_out_ggg(T146, T147, T148)) → inI_out_gg(T146, tree(T147, T148, T149))
U19_agg(T92, T88, T15, inI_out_gg(T92, T15)) → pC_out_agg(T92, T88, T15)
U2_ag(T89, T88, T15, T16, pC_out_agg(T89, T88, T15)) → inA_out_ag(s(T89), tree(s(T88), T15, T16))
inA_in_ag(T214, tree(T211, T212, T213)) → U3_ag(T214, T211, T212, T213, pD_in_gag(T211, T214, T213))
pD_in_gag(T211, T217, T213) → U24_gag(T211, T217, T213, lessM_in_ga(T211, T217))
lessM_in_ga(0, s(T224)) → lessM_out_ga(0, s(T224))
lessM_in_ga(s(T229), s(T231)) → U14_ga(T229, T231, lessM_in_ga(T229, T231))
U14_ga(T229, T231, lessM_out_ga(T229, T231)) → lessM_out_ga(s(T229), s(T231))
U24_gag(T211, T217, T213, lessM_out_ga(T211, T217)) → U25_gag(T211, T217, T213, inA_in_ag(T217, T213))
inA_in_ag(0, tree(s(T253), T246, T247)) → U4_ag(T253, T246, T247, inB_in_g(T246))
U4_ag(T253, T246, T247, inB_out_g(T246)) → inA_out_ag(0, tree(s(T253), T246, T247))
inA_in_ag(s(T268), tree(s(T267), T246, T247)) → U5_ag(T268, T267, T246, T247, pC_in_agg(T268, T267, T246))
U5_ag(T268, T267, T246, T247, pC_out_agg(T268, T267, T246)) → inA_out_ag(s(T268), tree(s(T267), T246, T247))
inA_in_ag(T286, tree(T283, T284, T285)) → U6_ag(T286, T283, T284, T285, pD_in_gag(T283, T286, T285))
U6_ag(T286, T283, T284, T285, pD_out_gag(T283, T286, T285)) → inA_out_ag(T286, tree(T283, T284, T285))
inA_in_ag(s(T303), tree(0, T295, T296)) → U7_ag(T303, T295, T296, inA_in_ag(s(T303), T296))
inA_in_ag(s(T316), tree(s(T314), T295, T296)) → U8_ag(T316, T314, T295, T296, pE_in_gag(T314, T316, T296))
pE_in_gag(T314, T319, T296) → U26_gag(T314, T319, T296, lessM_in_ga(T314, T319))
U26_gag(T314, T319, T296, lessM_out_ga(T314, T319)) → U27_gag(T314, T319, T296, inA_in_ag(s(T319), T296))
U27_gag(T314, T319, T296, inA_out_ag(s(T319), T296)) → pE_out_gag(T314, T319, T296)
U8_ag(T316, T314, T295, T296, pE_out_gag(T314, T316, T296)) → inA_out_ag(s(T316), tree(s(T314), T295, T296))
U7_ag(T303, T295, T296, inA_out_ag(s(T303), T296)) → inA_out_ag(s(T303), tree(0, T295, T296))
U25_gag(T211, T217, T213, inA_out_ag(T217, T213)) → pD_out_gag(T211, T217, T213)
U3_ag(T214, T211, T212, T213, pD_out_gag(T211, T214, T213)) → inA_out_ag(T214, tree(T211, T212, T213))

The argument filtering Pi contains the following mapping:
inA_in_ag(x1, x2)  =  inA_in_ag(x2)
tree(x1, x2, x3)  =  tree(x1, x2, x3)
inA_out_ag(x1, x2)  =  inA_out_ag(x1, x2)
s(x1)  =  s(x1)
U1_ag(x1, x2, x3, x4)  =  U1_ag(x1, x2, x3, x4)
inB_in_g(x1)  =  inB_in_g(x1)
0  =  0
inB_out_g(x1)  =  inB_out_g(x1)
U9_g(x1, x2, x3, x4)  =  U9_g(x1, x2, x3, x4)
pF_in_gg(x1, x2)  =  pF_in_gg(x1, x2)
U16_gg(x1, x2, x3)  =  U16_gg(x1, x2, x3)
lessN_in_g(x1)  =  lessN_in_g(x1)
lessN_out_g(x1)  =  lessN_out_g(x1)
U17_gg(x1, x2, x3)  =  U17_gg(x1, x2, x3)
pF_out_gg(x1, x2)  =  pF_out_gg(x1, x2)
U2_ag(x1, x2, x3, x4, x5)  =  U2_ag(x2, x3, x4, x5)
pC_in_agg(x1, x2, x3)  =  pC_in_agg(x2, x3)
U18_agg(x1, x2, x3, x4)  =  U18_agg(x2, x3, x4)
lessH_in_ag(x1, x2)  =  lessH_in_ag(x2)
lessH_out_ag(x1, x2)  =  lessH_out_ag(x1, x2)
U10_ag(x1, x2, x3)  =  U10_ag(x2, x3)
U19_agg(x1, x2, x3, x4)  =  U19_agg(x1, x2, x3, x4)
inI_in_gg(x1, x2)  =  inI_in_gg(x1, x2)
inI_out_gg(x1, x2)  =  inI_out_gg(x1, x2)
U11_gg(x1, x2, x3, x4, x5)  =  U11_gg(x1, x2, x3, x4, x5)
pJ_in_ggg(x1, x2, x3)  =  pJ_in_ggg(x1, x2, x3)
U20_ggg(x1, x2, x3, x4)  =  U20_ggg(x1, x2, x3, x4)
lessO_in_gg(x1, x2)  =  lessO_in_gg(x1, x2)
U15_gg(x1, x2, x3)  =  U15_gg(x1, x2, x3)
lessL_in_gg(x1, x2)  =  lessL_in_gg(x1, x2)
lessL_out_gg(x1, x2)  =  lessL_out_gg(x1, x2)
U13_gg(x1, x2, x3)  =  U13_gg(x1, x2, x3)
lessO_out_gg(x1, x2)  =  lessO_out_gg(x1, x2)
U21_ggg(x1, x2, x3, x4)  =  U21_ggg(x1, x2, x3, x4)
U12_gg(x1, x2, x3, x4, x5)  =  U12_gg(x1, x2, x3, x4, x5)
pK_in_ggg(x1, x2, x3)  =  pK_in_ggg(x1, x2, x3)
U22_ggg(x1, x2, x3, x4)  =  U22_ggg(x1, x2, x3, x4)
U23_ggg(x1, x2, x3, x4)  =  U23_ggg(x1, x2, x3, x4)
pK_out_ggg(x1, x2, x3)  =  pK_out_ggg(x1, x2, x3)
pJ_out_ggg(x1, x2, x3)  =  pJ_out_ggg(x1, x2, x3)
pC_out_agg(x1, x2, x3)  =  pC_out_agg(x1, x2, x3)
U3_ag(x1, x2, x3, x4, x5)  =  U3_ag(x2, x3, x4, x5)
pD_in_gag(x1, x2, x3)  =  pD_in_gag(x1, x3)
U24_gag(x1, x2, x3, x4)  =  U24_gag(x1, x3, x4)
lessM_in_ga(x1, x2)  =  lessM_in_ga(x1)
lessM_out_ga(x1, x2)  =  lessM_out_ga(x1)
U14_ga(x1, x2, x3)  =  U14_ga(x1, x3)
U25_gag(x1, x2, x3, x4)  =  U25_gag(x1, x3, x4)
U4_ag(x1, x2, x3, x4)  =  U4_ag(x1, x2, x3, x4)
U5_ag(x1, x2, x3, x4, x5)  =  U5_ag(x2, x3, x4, x5)
U6_ag(x1, x2, x3, x4, x5)  =  U6_ag(x2, x3, x4, x5)
pD_out_gag(x1, x2, x3)  =  pD_out_gag(x1, x2, x3)
U7_ag(x1, x2, x3, x4)  =  U7_ag(x2, x3, x4)
U8_ag(x1, x2, x3, x4, x5)  =  U8_ag(x2, x3, x4, x5)
pE_in_gag(x1, x2, x3)  =  pE_in_gag(x1, x3)
U26_gag(x1, x2, x3, x4)  =  U26_gag(x1, x3, x4)
U27_gag(x1, x2, x3, x4)  =  U27_gag(x1, x3, x4)
pE_out_gag(x1, x2, x3)  =  pE_out_gag(x1, x2, x3)

(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:

INA_IN_AG(0, tree(s(T22), T15, T16)) → U1_AG(T22, T15, T16, inB_in_g(T15))
INA_IN_AG(0, tree(s(T22), T15, T16)) → INB_IN_G(T15)
INB_IN_G(tree(T49, T50, T51)) → U9_G(T49, T50, T51, pF_in_gg(T49, T50))
INB_IN_G(tree(T49, T50, T51)) → PF_IN_GG(T49, T50)
PF_IN_GG(T49, T50) → U16_GG(T49, T50, lessN_in_g(T49))
PF_IN_GG(T49, T50) → LESSN_IN_G(T49)
U16_GG(T49, T50, lessN_out_g(T49)) → U17_GG(T49, T50, inB_in_g(T50))
U16_GG(T49, T50, lessN_out_g(T49)) → INB_IN_G(T50)
INA_IN_AG(s(T89), tree(s(T88), T15, T16)) → U2_AG(T89, T88, T15, T16, pC_in_agg(T89, T88, T15))
INA_IN_AG(s(T89), tree(s(T88), T15, T16)) → PC_IN_AGG(T89, T88, T15)
PC_IN_AGG(T92, T88, T15) → U18_AGG(T92, T88, T15, lessH_in_ag(T92, T88))
PC_IN_AGG(T92, T88, T15) → LESSH_IN_AG(T92, T88)
LESSH_IN_AG(s(T106), s(T105)) → U10_AG(T106, T105, lessH_in_ag(T106, T105))
LESSH_IN_AG(s(T106), s(T105)) → LESSH_IN_AG(T106, T105)
U18_AGG(T92, T88, T15, lessH_out_ag(T92, T88)) → U19_AGG(T92, T88, T15, inI_in_gg(T92, T15))
U18_AGG(T92, T88, T15, lessH_out_ag(T92, T88)) → INI_IN_GG(T92, T15)
INI_IN_GG(T146, tree(T147, T148, T149)) → U11_GG(T146, T147, T148, T149, pJ_in_ggg(T146, T147, T148))
INI_IN_GG(T146, tree(T147, T148, T149)) → PJ_IN_GGG(T146, T147, T148)
PJ_IN_GGG(T146, T147, T148) → U20_GGG(T146, T147, T148, lessO_in_gg(T146, T147))
PJ_IN_GGG(T146, T147, T148) → LESSO_IN_GG(T146, T147)
LESSO_IN_GG(T154, s(T155)) → U15_GG(T154, T155, lessL_in_gg(T154, T155))
LESSO_IN_GG(T154, s(T155)) → LESSL_IN_GG(T154, T155)
LESSL_IN_GG(s(T167), s(T168)) → U13_GG(T167, T168, lessL_in_gg(T167, T168))
LESSL_IN_GG(s(T167), s(T168)) → LESSL_IN_GG(T167, T168)
U20_GGG(T146, T147, T148, lessO_out_gg(T146, T147)) → U21_GGG(T146, T147, T148, inI_in_gg(T146, T148))
U20_GGG(T146, T147, T148, lessO_out_gg(T146, T147)) → INI_IN_GG(T146, T148)
INI_IN_GG(T185, tree(T186, T187, T188)) → U12_GG(T185, T186, T187, T188, pK_in_ggg(T186, T185, T188))
INI_IN_GG(T185, tree(T186, T187, T188)) → PK_IN_GGG(T186, T185, T188)
PK_IN_GGG(T186, T185, T188) → U22_GGG(T186, T185, T188, lessL_in_gg(T186, s(T185)))
PK_IN_GGG(T186, T185, T188) → LESSL_IN_GG(T186, s(T185))
U22_GGG(T186, T185, T188, lessL_out_gg(T186, s(T185))) → U23_GGG(T186, T185, T188, inI_in_gg(T185, T188))
U22_GGG(T186, T185, T188, lessL_out_gg(T186, s(T185))) → INI_IN_GG(T185, T188)
INA_IN_AG(T214, tree(T211, T212, T213)) → U3_AG(T214, T211, T212, T213, pD_in_gag(T211, T214, T213))
INA_IN_AG(T214, tree(T211, T212, T213)) → PD_IN_GAG(T211, T214, T213)
PD_IN_GAG(T211, T217, T213) → U24_GAG(T211, T217, T213, lessM_in_ga(T211, T217))
PD_IN_GAG(T211, T217, T213) → LESSM_IN_GA(T211, T217)
LESSM_IN_GA(s(T229), s(T231)) → U14_GA(T229, T231, lessM_in_ga(T229, T231))
LESSM_IN_GA(s(T229), s(T231)) → LESSM_IN_GA(T229, T231)
U24_GAG(T211, T217, T213, lessM_out_ga(T211, T217)) → U25_GAG(T211, T217, T213, inA_in_ag(T217, T213))
U24_GAG(T211, T217, T213, lessM_out_ga(T211, T217)) → INA_IN_AG(T217, T213)
INA_IN_AG(0, tree(s(T253), T246, T247)) → U4_AG(T253, T246, T247, inB_in_g(T246))
INA_IN_AG(s(T268), tree(s(T267), T246, T247)) → U5_AG(T268, T267, T246, T247, pC_in_agg(T268, T267, T246))
INA_IN_AG(T286, tree(T283, T284, T285)) → U6_AG(T286, T283, T284, T285, pD_in_gag(T283, T286, T285))
INA_IN_AG(s(T303), tree(0, T295, T296)) → U7_AG(T303, T295, T296, inA_in_ag(s(T303), T296))
INA_IN_AG(s(T303), tree(0, T295, T296)) → INA_IN_AG(s(T303), T296)
INA_IN_AG(s(T316), tree(s(T314), T295, T296)) → U8_AG(T316, T314, T295, T296, pE_in_gag(T314, T316, T296))
INA_IN_AG(s(T316), tree(s(T314), T295, T296)) → PE_IN_GAG(T314, T316, T296)
PE_IN_GAG(T314, T319, T296) → U26_GAG(T314, T319, T296, lessM_in_ga(T314, T319))
PE_IN_GAG(T314, T319, T296) → LESSM_IN_GA(T314, T319)
U26_GAG(T314, T319, T296, lessM_out_ga(T314, T319)) → U27_GAG(T314, T319, T296, inA_in_ag(s(T319), T296))
U26_GAG(T314, T319, T296, lessM_out_ga(T314, T319)) → INA_IN_AG(s(T319), T296)

The TRS R consists of the following rules:

inA_in_ag(T6, tree(T6, T7, T8)) → inA_out_ag(T6, tree(T6, T7, T8))
inA_in_ag(0, tree(s(T22), T15, T16)) → U1_ag(T22, T15, T16, inB_in_g(T15))
inB_in_g(tree(0, T35, T36)) → inB_out_g(tree(0, T35, T36))
inB_in_g(tree(T49, T50, T51)) → U9_g(T49, T50, T51, pF_in_gg(T49, T50))
pF_in_gg(T49, T50) → U16_gg(T49, T50, lessN_in_g(T49))
lessN_in_g(s(T60)) → lessN_out_g(s(T60))
U16_gg(T49, T50, lessN_out_g(T49)) → U17_gg(T49, T50, inB_in_g(T50))
U17_gg(T49, T50, inB_out_g(T50)) → pF_out_gg(T49, T50)
U9_g(T49, T50, T51, pF_out_gg(T49, T50)) → inB_out_g(tree(T49, T50, T51))
U1_ag(T22, T15, T16, inB_out_g(T15)) → inA_out_ag(0, tree(s(T22), T15, T16))
inA_in_ag(s(T89), tree(s(T88), T15, T16)) → U2_ag(T89, T88, T15, T16, pC_in_agg(T89, T88, T15))
pC_in_agg(T92, T88, T15) → U18_agg(T92, T88, T15, lessH_in_ag(T92, T88))
lessH_in_ag(0, s(T99)) → lessH_out_ag(0, s(T99))
lessH_in_ag(s(T106), s(T105)) → U10_ag(T106, T105, lessH_in_ag(T106, T105))
U10_ag(T106, T105, lessH_out_ag(T106, T105)) → lessH_out_ag(s(T106), s(T105))
U18_agg(T92, T88, T15, lessH_out_ag(T92, T88)) → U19_agg(T92, T88, T15, inI_in_gg(T92, T15))
inI_in_gg(T127, tree(s(T127), T128, T129)) → inI_out_gg(T127, tree(s(T127), T128, T129))
inI_in_gg(T146, tree(T147, T148, T149)) → U11_gg(T146, T147, T148, T149, pJ_in_ggg(T146, T147, T148))
pJ_in_ggg(T146, T147, T148) → U20_ggg(T146, T147, T148, lessO_in_gg(T146, T147))
lessO_in_gg(T154, s(T155)) → U15_gg(T154, T155, lessL_in_gg(T154, T155))
lessL_in_gg(0, s(T162)) → lessL_out_gg(0, s(T162))
lessL_in_gg(s(T167), s(T168)) → U13_gg(T167, T168, lessL_in_gg(T167, T168))
U13_gg(T167, T168, lessL_out_gg(T167, T168)) → lessL_out_gg(s(T167), s(T168))
U15_gg(T154, T155, lessL_out_gg(T154, T155)) → lessO_out_gg(T154, s(T155))
U20_ggg(T146, T147, T148, lessO_out_gg(T146, T147)) → U21_ggg(T146, T147, T148, inI_in_gg(T146, T148))
inI_in_gg(T185, tree(T186, T187, T188)) → U12_gg(T185, T186, T187, T188, pK_in_ggg(T186, T185, T188))
pK_in_ggg(T186, T185, T188) → U22_ggg(T186, T185, T188, lessL_in_gg(T186, s(T185)))
U22_ggg(T186, T185, T188, lessL_out_gg(T186, s(T185))) → U23_ggg(T186, T185, T188, inI_in_gg(T185, T188))
U23_ggg(T186, T185, T188, inI_out_gg(T185, T188)) → pK_out_ggg(T186, T185, T188)
U12_gg(T185, T186, T187, T188, pK_out_ggg(T186, T185, T188)) → inI_out_gg(T185, tree(T186, T187, T188))
U21_ggg(T146, T147, T148, inI_out_gg(T146, T148)) → pJ_out_ggg(T146, T147, T148)
U11_gg(T146, T147, T148, T149, pJ_out_ggg(T146, T147, T148)) → inI_out_gg(T146, tree(T147, T148, T149))
U19_agg(T92, T88, T15, inI_out_gg(T92, T15)) → pC_out_agg(T92, T88, T15)
U2_ag(T89, T88, T15, T16, pC_out_agg(T89, T88, T15)) → inA_out_ag(s(T89), tree(s(T88), T15, T16))
inA_in_ag(T214, tree(T211, T212, T213)) → U3_ag(T214, T211, T212, T213, pD_in_gag(T211, T214, T213))
pD_in_gag(T211, T217, T213) → U24_gag(T211, T217, T213, lessM_in_ga(T211, T217))
lessM_in_ga(0, s(T224)) → lessM_out_ga(0, s(T224))
lessM_in_ga(s(T229), s(T231)) → U14_ga(T229, T231, lessM_in_ga(T229, T231))
U14_ga(T229, T231, lessM_out_ga(T229, T231)) → lessM_out_ga(s(T229), s(T231))
U24_gag(T211, T217, T213, lessM_out_ga(T211, T217)) → U25_gag(T211, T217, T213, inA_in_ag(T217, T213))
inA_in_ag(0, tree(s(T253), T246, T247)) → U4_ag(T253, T246, T247, inB_in_g(T246))
U4_ag(T253, T246, T247, inB_out_g(T246)) → inA_out_ag(0, tree(s(T253), T246, T247))
inA_in_ag(s(T268), tree(s(T267), T246, T247)) → U5_ag(T268, T267, T246, T247, pC_in_agg(T268, T267, T246))
U5_ag(T268, T267, T246, T247, pC_out_agg(T268, T267, T246)) → inA_out_ag(s(T268), tree(s(T267), T246, T247))
inA_in_ag(T286, tree(T283, T284, T285)) → U6_ag(T286, T283, T284, T285, pD_in_gag(T283, T286, T285))
U6_ag(T286, T283, T284, T285, pD_out_gag(T283, T286, T285)) → inA_out_ag(T286, tree(T283, T284, T285))
inA_in_ag(s(T303), tree(0, T295, T296)) → U7_ag(T303, T295, T296, inA_in_ag(s(T303), T296))
inA_in_ag(s(T316), tree(s(T314), T295, T296)) → U8_ag(T316, T314, T295, T296, pE_in_gag(T314, T316, T296))
pE_in_gag(T314, T319, T296) → U26_gag(T314, T319, T296, lessM_in_ga(T314, T319))
U26_gag(T314, T319, T296, lessM_out_ga(T314, T319)) → U27_gag(T314, T319, T296, inA_in_ag(s(T319), T296))
U27_gag(T314, T319, T296, inA_out_ag(s(T319), T296)) → pE_out_gag(T314, T319, T296)
U8_ag(T316, T314, T295, T296, pE_out_gag(T314, T316, T296)) → inA_out_ag(s(T316), tree(s(T314), T295, T296))
U7_ag(T303, T295, T296, inA_out_ag(s(T303), T296)) → inA_out_ag(s(T303), tree(0, T295, T296))
U25_gag(T211, T217, T213, inA_out_ag(T217, T213)) → pD_out_gag(T211, T217, T213)
U3_ag(T214, T211, T212, T213, pD_out_gag(T211, T214, T213)) → inA_out_ag(T214, tree(T211, T212, T213))

The argument filtering Pi contains the following mapping:
inA_in_ag(x1, x2)  =  inA_in_ag(x2)
tree(x1, x2, x3)  =  tree(x1, x2, x3)
inA_out_ag(x1, x2)  =  inA_out_ag(x1, x2)
s(x1)  =  s(x1)
U1_ag(x1, x2, x3, x4)  =  U1_ag(x1, x2, x3, x4)
inB_in_g(x1)  =  inB_in_g(x1)
0  =  0
inB_out_g(x1)  =  inB_out_g(x1)
U9_g(x1, x2, x3, x4)  =  U9_g(x1, x2, x3, x4)
pF_in_gg(x1, x2)  =  pF_in_gg(x1, x2)
U16_gg(x1, x2, x3)  =  U16_gg(x1, x2, x3)
lessN_in_g(x1)  =  lessN_in_g(x1)
lessN_out_g(x1)  =  lessN_out_g(x1)
U17_gg(x1, x2, x3)  =  U17_gg(x1, x2, x3)
pF_out_gg(x1, x2)  =  pF_out_gg(x1, x2)
U2_ag(x1, x2, x3, x4, x5)  =  U2_ag(x2, x3, x4, x5)
pC_in_agg(x1, x2, x3)  =  pC_in_agg(x2, x3)
U18_agg(x1, x2, x3, x4)  =  U18_agg(x2, x3, x4)
lessH_in_ag(x1, x2)  =  lessH_in_ag(x2)
lessH_out_ag(x1, x2)  =  lessH_out_ag(x1, x2)
U10_ag(x1, x2, x3)  =  U10_ag(x2, x3)
U19_agg(x1, x2, x3, x4)  =  U19_agg(x1, x2, x3, x4)
inI_in_gg(x1, x2)  =  inI_in_gg(x1, x2)
inI_out_gg(x1, x2)  =  inI_out_gg(x1, x2)
U11_gg(x1, x2, x3, x4, x5)  =  U11_gg(x1, x2, x3, x4, x5)
pJ_in_ggg(x1, x2, x3)  =  pJ_in_ggg(x1, x2, x3)
U20_ggg(x1, x2, x3, x4)  =  U20_ggg(x1, x2, x3, x4)
lessO_in_gg(x1, x2)  =  lessO_in_gg(x1, x2)
U15_gg(x1, x2, x3)  =  U15_gg(x1, x2, x3)
lessL_in_gg(x1, x2)  =  lessL_in_gg(x1, x2)
lessL_out_gg(x1, x2)  =  lessL_out_gg(x1, x2)
U13_gg(x1, x2, x3)  =  U13_gg(x1, x2, x3)
lessO_out_gg(x1, x2)  =  lessO_out_gg(x1, x2)
U21_ggg(x1, x2, x3, x4)  =  U21_ggg(x1, x2, x3, x4)
U12_gg(x1, x2, x3, x4, x5)  =  U12_gg(x1, x2, x3, x4, x5)
pK_in_ggg(x1, x2, x3)  =  pK_in_ggg(x1, x2, x3)
U22_ggg(x1, x2, x3, x4)  =  U22_ggg(x1, x2, x3, x4)
U23_ggg(x1, x2, x3, x4)  =  U23_ggg(x1, x2, x3, x4)
pK_out_ggg(x1, x2, x3)  =  pK_out_ggg(x1, x2, x3)
pJ_out_ggg(x1, x2, x3)  =  pJ_out_ggg(x1, x2, x3)
pC_out_agg(x1, x2, x3)  =  pC_out_agg(x1, x2, x3)
U3_ag(x1, x2, x3, x4, x5)  =  U3_ag(x2, x3, x4, x5)
pD_in_gag(x1, x2, x3)  =  pD_in_gag(x1, x3)
U24_gag(x1, x2, x3, x4)  =  U24_gag(x1, x3, x4)
lessM_in_ga(x1, x2)  =  lessM_in_ga(x1)
lessM_out_ga(x1, x2)  =  lessM_out_ga(x1)
U14_ga(x1, x2, x3)  =  U14_ga(x1, x3)
U25_gag(x1, x2, x3, x4)  =  U25_gag(x1, x3, x4)
U4_ag(x1, x2, x3, x4)  =  U4_ag(x1, x2, x3, x4)
U5_ag(x1, x2, x3, x4, x5)  =  U5_ag(x2, x3, x4, x5)
U6_ag(x1, x2, x3, x4, x5)  =  U6_ag(x2, x3, x4, x5)
pD_out_gag(x1, x2, x3)  =  pD_out_gag(x1, x2, x3)
U7_ag(x1, x2, x3, x4)  =  U7_ag(x2, x3, x4)
U8_ag(x1, x2, x3, x4, x5)  =  U8_ag(x2, x3, x4, x5)
pE_in_gag(x1, x2, x3)  =  pE_in_gag(x1, x3)
U26_gag(x1, x2, x3, x4)  =  U26_gag(x1, x3, x4)
U27_gag(x1, x2, x3, x4)  =  U27_gag(x1, x3, x4)
pE_out_gag(x1, x2, x3)  =  pE_out_gag(x1, x2, x3)
INA_IN_AG(x1, x2)  =  INA_IN_AG(x2)
U1_AG(x1, x2, x3, x4)  =  U1_AG(x1, x2, x3, x4)
INB_IN_G(x1)  =  INB_IN_G(x1)
U9_G(x1, x2, x3, x4)  =  U9_G(x1, x2, x3, x4)
PF_IN_GG(x1, x2)  =  PF_IN_GG(x1, x2)
U16_GG(x1, x2, x3)  =  U16_GG(x1, x2, x3)
LESSN_IN_G(x1)  =  LESSN_IN_G(x1)
U17_GG(x1, x2, x3)  =  U17_GG(x1, x2, x3)
U2_AG(x1, x2, x3, x4, x5)  =  U2_AG(x2, x3, x4, x5)
PC_IN_AGG(x1, x2, x3)  =  PC_IN_AGG(x2, x3)
U18_AGG(x1, x2, x3, x4)  =  U18_AGG(x2, x3, x4)
LESSH_IN_AG(x1, x2)  =  LESSH_IN_AG(x2)
U10_AG(x1, x2, x3)  =  U10_AG(x2, x3)
U19_AGG(x1, x2, x3, x4)  =  U19_AGG(x1, x2, x3, x4)
INI_IN_GG(x1, x2)  =  INI_IN_GG(x1, x2)
U11_GG(x1, x2, x3, x4, x5)  =  U11_GG(x1, x2, x3, x4, x5)
PJ_IN_GGG(x1, x2, x3)  =  PJ_IN_GGG(x1, x2, x3)
U20_GGG(x1, x2, x3, x4)  =  U20_GGG(x1, x2, x3, x4)
LESSO_IN_GG(x1, x2)  =  LESSO_IN_GG(x1, x2)
U15_GG(x1, x2, x3)  =  U15_GG(x1, x2, x3)
LESSL_IN_GG(x1, x2)  =  LESSL_IN_GG(x1, x2)
U13_GG(x1, x2, x3)  =  U13_GG(x1, x2, x3)
U21_GGG(x1, x2, x3, x4)  =  U21_GGG(x1, x2, x3, x4)
U12_GG(x1, x2, x3, x4, x5)  =  U12_GG(x1, x2, x3, x4, x5)
PK_IN_GGG(x1, x2, x3)  =  PK_IN_GGG(x1, x2, x3)
U22_GGG(x1, x2, x3, x4)  =  U22_GGG(x1, x2, x3, x4)
U23_GGG(x1, x2, x3, x4)  =  U23_GGG(x1, x2, x3, x4)
U3_AG(x1, x2, x3, x4, x5)  =  U3_AG(x2, x3, x4, x5)
PD_IN_GAG(x1, x2, x3)  =  PD_IN_GAG(x1, x3)
U24_GAG(x1, x2, x3, x4)  =  U24_GAG(x1, x3, x4)
LESSM_IN_GA(x1, x2)  =  LESSM_IN_GA(x1)
U14_GA(x1, x2, x3)  =  U14_GA(x1, x3)
U25_GAG(x1, x2, x3, x4)  =  U25_GAG(x1, x3, x4)
U4_AG(x1, x2, x3, x4)  =  U4_AG(x1, x2, x3, x4)
U5_AG(x1, x2, x3, x4, x5)  =  U5_AG(x2, x3, x4, x5)
U6_AG(x1, x2, x3, x4, x5)  =  U6_AG(x2, x3, x4, x5)
U7_AG(x1, x2, x3, x4)  =  U7_AG(x2, x3, x4)
U8_AG(x1, x2, x3, x4, x5)  =  U8_AG(x2, x3, x4, x5)
PE_IN_GAG(x1, x2, x3)  =  PE_IN_GAG(x1, x3)
U26_GAG(x1, x2, x3, x4)  =  U26_GAG(x1, x3, x4)
U27_GAG(x1, x2, x3, x4)  =  U27_GAG(x1, x3, x4)

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

(4) Obligation:

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

INA_IN_AG(0, tree(s(T22), T15, T16)) → U1_AG(T22, T15, T16, inB_in_g(T15))
INA_IN_AG(0, tree(s(T22), T15, T16)) → INB_IN_G(T15)
INB_IN_G(tree(T49, T50, T51)) → U9_G(T49, T50, T51, pF_in_gg(T49, T50))
INB_IN_G(tree(T49, T50, T51)) → PF_IN_GG(T49, T50)
PF_IN_GG(T49, T50) → U16_GG(T49, T50, lessN_in_g(T49))
PF_IN_GG(T49, T50) → LESSN_IN_G(T49)
U16_GG(T49, T50, lessN_out_g(T49)) → U17_GG(T49, T50, inB_in_g(T50))
U16_GG(T49, T50, lessN_out_g(T49)) → INB_IN_G(T50)
INA_IN_AG(s(T89), tree(s(T88), T15, T16)) → U2_AG(T89, T88, T15, T16, pC_in_agg(T89, T88, T15))
INA_IN_AG(s(T89), tree(s(T88), T15, T16)) → PC_IN_AGG(T89, T88, T15)
PC_IN_AGG(T92, T88, T15) → U18_AGG(T92, T88, T15, lessH_in_ag(T92, T88))
PC_IN_AGG(T92, T88, T15) → LESSH_IN_AG(T92, T88)
LESSH_IN_AG(s(T106), s(T105)) → U10_AG(T106, T105, lessH_in_ag(T106, T105))
LESSH_IN_AG(s(T106), s(T105)) → LESSH_IN_AG(T106, T105)
U18_AGG(T92, T88, T15, lessH_out_ag(T92, T88)) → U19_AGG(T92, T88, T15, inI_in_gg(T92, T15))
U18_AGG(T92, T88, T15, lessH_out_ag(T92, T88)) → INI_IN_GG(T92, T15)
INI_IN_GG(T146, tree(T147, T148, T149)) → U11_GG(T146, T147, T148, T149, pJ_in_ggg(T146, T147, T148))
INI_IN_GG(T146, tree(T147, T148, T149)) → PJ_IN_GGG(T146, T147, T148)
PJ_IN_GGG(T146, T147, T148) → U20_GGG(T146, T147, T148, lessO_in_gg(T146, T147))
PJ_IN_GGG(T146, T147, T148) → LESSO_IN_GG(T146, T147)
LESSO_IN_GG(T154, s(T155)) → U15_GG(T154, T155, lessL_in_gg(T154, T155))
LESSO_IN_GG(T154, s(T155)) → LESSL_IN_GG(T154, T155)
LESSL_IN_GG(s(T167), s(T168)) → U13_GG(T167, T168, lessL_in_gg(T167, T168))
LESSL_IN_GG(s(T167), s(T168)) → LESSL_IN_GG(T167, T168)
U20_GGG(T146, T147, T148, lessO_out_gg(T146, T147)) → U21_GGG(T146, T147, T148, inI_in_gg(T146, T148))
U20_GGG(T146, T147, T148, lessO_out_gg(T146, T147)) → INI_IN_GG(T146, T148)
INI_IN_GG(T185, tree(T186, T187, T188)) → U12_GG(T185, T186, T187, T188, pK_in_ggg(T186, T185, T188))
INI_IN_GG(T185, tree(T186, T187, T188)) → PK_IN_GGG(T186, T185, T188)
PK_IN_GGG(T186, T185, T188) → U22_GGG(T186, T185, T188, lessL_in_gg(T186, s(T185)))
PK_IN_GGG(T186, T185, T188) → LESSL_IN_GG(T186, s(T185))
U22_GGG(T186, T185, T188, lessL_out_gg(T186, s(T185))) → U23_GGG(T186, T185, T188, inI_in_gg(T185, T188))
U22_GGG(T186, T185, T188, lessL_out_gg(T186, s(T185))) → INI_IN_GG(T185, T188)
INA_IN_AG(T214, tree(T211, T212, T213)) → U3_AG(T214, T211, T212, T213, pD_in_gag(T211, T214, T213))
INA_IN_AG(T214, tree(T211, T212, T213)) → PD_IN_GAG(T211, T214, T213)
PD_IN_GAG(T211, T217, T213) → U24_GAG(T211, T217, T213, lessM_in_ga(T211, T217))
PD_IN_GAG(T211, T217, T213) → LESSM_IN_GA(T211, T217)
LESSM_IN_GA(s(T229), s(T231)) → U14_GA(T229, T231, lessM_in_ga(T229, T231))
LESSM_IN_GA(s(T229), s(T231)) → LESSM_IN_GA(T229, T231)
U24_GAG(T211, T217, T213, lessM_out_ga(T211, T217)) → U25_GAG(T211, T217, T213, inA_in_ag(T217, T213))
U24_GAG(T211, T217, T213, lessM_out_ga(T211, T217)) → INA_IN_AG(T217, T213)
INA_IN_AG(0, tree(s(T253), T246, T247)) → U4_AG(T253, T246, T247, inB_in_g(T246))
INA_IN_AG(s(T268), tree(s(T267), T246, T247)) → U5_AG(T268, T267, T246, T247, pC_in_agg(T268, T267, T246))
INA_IN_AG(T286, tree(T283, T284, T285)) → U6_AG(T286, T283, T284, T285, pD_in_gag(T283, T286, T285))
INA_IN_AG(s(T303), tree(0, T295, T296)) → U7_AG(T303, T295, T296, inA_in_ag(s(T303), T296))
INA_IN_AG(s(T303), tree(0, T295, T296)) → INA_IN_AG(s(T303), T296)
INA_IN_AG(s(T316), tree(s(T314), T295, T296)) → U8_AG(T316, T314, T295, T296, pE_in_gag(T314, T316, T296))
INA_IN_AG(s(T316), tree(s(T314), T295, T296)) → PE_IN_GAG(T314, T316, T296)
PE_IN_GAG(T314, T319, T296) → U26_GAG(T314, T319, T296, lessM_in_ga(T314, T319))
PE_IN_GAG(T314, T319, T296) → LESSM_IN_GA(T314, T319)
U26_GAG(T314, T319, T296, lessM_out_ga(T314, T319)) → U27_GAG(T314, T319, T296, inA_in_ag(s(T319), T296))
U26_GAG(T314, T319, T296, lessM_out_ga(T314, T319)) → INA_IN_AG(s(T319), T296)

The TRS R consists of the following rules:

inA_in_ag(T6, tree(T6, T7, T8)) → inA_out_ag(T6, tree(T6, T7, T8))
inA_in_ag(0, tree(s(T22), T15, T16)) → U1_ag(T22, T15, T16, inB_in_g(T15))
inB_in_g(tree(0, T35, T36)) → inB_out_g(tree(0, T35, T36))
inB_in_g(tree(T49, T50, T51)) → U9_g(T49, T50, T51, pF_in_gg(T49, T50))
pF_in_gg(T49, T50) → U16_gg(T49, T50, lessN_in_g(T49))
lessN_in_g(s(T60)) → lessN_out_g(s(T60))
U16_gg(T49, T50, lessN_out_g(T49)) → U17_gg(T49, T50, inB_in_g(T50))
U17_gg(T49, T50, inB_out_g(T50)) → pF_out_gg(T49, T50)
U9_g(T49, T50, T51, pF_out_gg(T49, T50)) → inB_out_g(tree(T49, T50, T51))
U1_ag(T22, T15, T16, inB_out_g(T15)) → inA_out_ag(0, tree(s(T22), T15, T16))
inA_in_ag(s(T89), tree(s(T88), T15, T16)) → U2_ag(T89, T88, T15, T16, pC_in_agg(T89, T88, T15))
pC_in_agg(T92, T88, T15) → U18_agg(T92, T88, T15, lessH_in_ag(T92, T88))
lessH_in_ag(0, s(T99)) → lessH_out_ag(0, s(T99))
lessH_in_ag(s(T106), s(T105)) → U10_ag(T106, T105, lessH_in_ag(T106, T105))
U10_ag(T106, T105, lessH_out_ag(T106, T105)) → lessH_out_ag(s(T106), s(T105))
U18_agg(T92, T88, T15, lessH_out_ag(T92, T88)) → U19_agg(T92, T88, T15, inI_in_gg(T92, T15))
inI_in_gg(T127, tree(s(T127), T128, T129)) → inI_out_gg(T127, tree(s(T127), T128, T129))
inI_in_gg(T146, tree(T147, T148, T149)) → U11_gg(T146, T147, T148, T149, pJ_in_ggg(T146, T147, T148))
pJ_in_ggg(T146, T147, T148) → U20_ggg(T146, T147, T148, lessO_in_gg(T146, T147))
lessO_in_gg(T154, s(T155)) → U15_gg(T154, T155, lessL_in_gg(T154, T155))
lessL_in_gg(0, s(T162)) → lessL_out_gg(0, s(T162))
lessL_in_gg(s(T167), s(T168)) → U13_gg(T167, T168, lessL_in_gg(T167, T168))
U13_gg(T167, T168, lessL_out_gg(T167, T168)) → lessL_out_gg(s(T167), s(T168))
U15_gg(T154, T155, lessL_out_gg(T154, T155)) → lessO_out_gg(T154, s(T155))
U20_ggg(T146, T147, T148, lessO_out_gg(T146, T147)) → U21_ggg(T146, T147, T148, inI_in_gg(T146, T148))
inI_in_gg(T185, tree(T186, T187, T188)) → U12_gg(T185, T186, T187, T188, pK_in_ggg(T186, T185, T188))
pK_in_ggg(T186, T185, T188) → U22_ggg(T186, T185, T188, lessL_in_gg(T186, s(T185)))
U22_ggg(T186, T185, T188, lessL_out_gg(T186, s(T185))) → U23_ggg(T186, T185, T188, inI_in_gg(T185, T188))
U23_ggg(T186, T185, T188, inI_out_gg(T185, T188)) → pK_out_ggg(T186, T185, T188)
U12_gg(T185, T186, T187, T188, pK_out_ggg(T186, T185, T188)) → inI_out_gg(T185, tree(T186, T187, T188))
U21_ggg(T146, T147, T148, inI_out_gg(T146, T148)) → pJ_out_ggg(T146, T147, T148)
U11_gg(T146, T147, T148, T149, pJ_out_ggg(T146, T147, T148)) → inI_out_gg(T146, tree(T147, T148, T149))
U19_agg(T92, T88, T15, inI_out_gg(T92, T15)) → pC_out_agg(T92, T88, T15)
U2_ag(T89, T88, T15, T16, pC_out_agg(T89, T88, T15)) → inA_out_ag(s(T89), tree(s(T88), T15, T16))
inA_in_ag(T214, tree(T211, T212, T213)) → U3_ag(T214, T211, T212, T213, pD_in_gag(T211, T214, T213))
pD_in_gag(T211, T217, T213) → U24_gag(T211, T217, T213, lessM_in_ga(T211, T217))
lessM_in_ga(0, s(T224)) → lessM_out_ga(0, s(T224))
lessM_in_ga(s(T229), s(T231)) → U14_ga(T229, T231, lessM_in_ga(T229, T231))
U14_ga(T229, T231, lessM_out_ga(T229, T231)) → lessM_out_ga(s(T229), s(T231))
U24_gag(T211, T217, T213, lessM_out_ga(T211, T217)) → U25_gag(T211, T217, T213, inA_in_ag(T217, T213))
inA_in_ag(0, tree(s(T253), T246, T247)) → U4_ag(T253, T246, T247, inB_in_g(T246))
U4_ag(T253, T246, T247, inB_out_g(T246)) → inA_out_ag(0, tree(s(T253), T246, T247))
inA_in_ag(s(T268), tree(s(T267), T246, T247)) → U5_ag(T268, T267, T246, T247, pC_in_agg(T268, T267, T246))
U5_ag(T268, T267, T246, T247, pC_out_agg(T268, T267, T246)) → inA_out_ag(s(T268), tree(s(T267), T246, T247))
inA_in_ag(T286, tree(T283, T284, T285)) → U6_ag(T286, T283, T284, T285, pD_in_gag(T283, T286, T285))
U6_ag(T286, T283, T284, T285, pD_out_gag(T283, T286, T285)) → inA_out_ag(T286, tree(T283, T284, T285))
inA_in_ag(s(T303), tree(0, T295, T296)) → U7_ag(T303, T295, T296, inA_in_ag(s(T303), T296))
inA_in_ag(s(T316), tree(s(T314), T295, T296)) → U8_ag(T316, T314, T295, T296, pE_in_gag(T314, T316, T296))
pE_in_gag(T314, T319, T296) → U26_gag(T314, T319, T296, lessM_in_ga(T314, T319))
U26_gag(T314, T319, T296, lessM_out_ga(T314, T319)) → U27_gag(T314, T319, T296, inA_in_ag(s(T319), T296))
U27_gag(T314, T319, T296, inA_out_ag(s(T319), T296)) → pE_out_gag(T314, T319, T296)
U8_ag(T316, T314, T295, T296, pE_out_gag(T314, T316, T296)) → inA_out_ag(s(T316), tree(s(T314), T295, T296))
U7_ag(T303, T295, T296, inA_out_ag(s(T303), T296)) → inA_out_ag(s(T303), tree(0, T295, T296))
U25_gag(T211, T217, T213, inA_out_ag(T217, T213)) → pD_out_gag(T211, T217, T213)
U3_ag(T214, T211, T212, T213, pD_out_gag(T211, T214, T213)) → inA_out_ag(T214, tree(T211, T212, T213))

The argument filtering Pi contains the following mapping:
inA_in_ag(x1, x2)  =  inA_in_ag(x2)
tree(x1, x2, x3)  =  tree(x1, x2, x3)
inA_out_ag(x1, x2)  =  inA_out_ag(x1, x2)
s(x1)  =  s(x1)
U1_ag(x1, x2, x3, x4)  =  U1_ag(x1, x2, x3, x4)
inB_in_g(x1)  =  inB_in_g(x1)
0  =  0
inB_out_g(x1)  =  inB_out_g(x1)
U9_g(x1, x2, x3, x4)  =  U9_g(x1, x2, x3, x4)
pF_in_gg(x1, x2)  =  pF_in_gg(x1, x2)
U16_gg(x1, x2, x3)  =  U16_gg(x1, x2, x3)
lessN_in_g(x1)  =  lessN_in_g(x1)
lessN_out_g(x1)  =  lessN_out_g(x1)
U17_gg(x1, x2, x3)  =  U17_gg(x1, x2, x3)
pF_out_gg(x1, x2)  =  pF_out_gg(x1, x2)
U2_ag(x1, x2, x3, x4, x5)  =  U2_ag(x2, x3, x4, x5)
pC_in_agg(x1, x2, x3)  =  pC_in_agg(x2, x3)
U18_agg(x1, x2, x3, x4)  =  U18_agg(x2, x3, x4)
lessH_in_ag(x1, x2)  =  lessH_in_ag(x2)
lessH_out_ag(x1, x2)  =  lessH_out_ag(x1, x2)
U10_ag(x1, x2, x3)  =  U10_ag(x2, x3)
U19_agg(x1, x2, x3, x4)  =  U19_agg(x1, x2, x3, x4)
inI_in_gg(x1, x2)  =  inI_in_gg(x1, x2)
inI_out_gg(x1, x2)  =  inI_out_gg(x1, x2)
U11_gg(x1, x2, x3, x4, x5)  =  U11_gg(x1, x2, x3, x4, x5)
pJ_in_ggg(x1, x2, x3)  =  pJ_in_ggg(x1, x2, x3)
U20_ggg(x1, x2, x3, x4)  =  U20_ggg(x1, x2, x3, x4)
lessO_in_gg(x1, x2)  =  lessO_in_gg(x1, x2)
U15_gg(x1, x2, x3)  =  U15_gg(x1, x2, x3)
lessL_in_gg(x1, x2)  =  lessL_in_gg(x1, x2)
lessL_out_gg(x1, x2)  =  lessL_out_gg(x1, x2)
U13_gg(x1, x2, x3)  =  U13_gg(x1, x2, x3)
lessO_out_gg(x1, x2)  =  lessO_out_gg(x1, x2)
U21_ggg(x1, x2, x3, x4)  =  U21_ggg(x1, x2, x3, x4)
U12_gg(x1, x2, x3, x4, x5)  =  U12_gg(x1, x2, x3, x4, x5)
pK_in_ggg(x1, x2, x3)  =  pK_in_ggg(x1, x2, x3)
U22_ggg(x1, x2, x3, x4)  =  U22_ggg(x1, x2, x3, x4)
U23_ggg(x1, x2, x3, x4)  =  U23_ggg(x1, x2, x3, x4)
pK_out_ggg(x1, x2, x3)  =  pK_out_ggg(x1, x2, x3)
pJ_out_ggg(x1, x2, x3)  =  pJ_out_ggg(x1, x2, x3)
pC_out_agg(x1, x2, x3)  =  pC_out_agg(x1, x2, x3)
U3_ag(x1, x2, x3, x4, x5)  =  U3_ag(x2, x3, x4, x5)
pD_in_gag(x1, x2, x3)  =  pD_in_gag(x1, x3)
U24_gag(x1, x2, x3, x4)  =  U24_gag(x1, x3, x4)
lessM_in_ga(x1, x2)  =  lessM_in_ga(x1)
lessM_out_ga(x1, x2)  =  lessM_out_ga(x1)
U14_ga(x1, x2, x3)  =  U14_ga(x1, x3)
U25_gag(x1, x2, x3, x4)  =  U25_gag(x1, x3, x4)
U4_ag(x1, x2, x3, x4)  =  U4_ag(x1, x2, x3, x4)
U5_ag(x1, x2, x3, x4, x5)  =  U5_ag(x2, x3, x4, x5)
U6_ag(x1, x2, x3, x4, x5)  =  U6_ag(x2, x3, x4, x5)
pD_out_gag(x1, x2, x3)  =  pD_out_gag(x1, x2, x3)
U7_ag(x1, x2, x3, x4)  =  U7_ag(x2, x3, x4)
U8_ag(x1, x2, x3, x4, x5)  =  U8_ag(x2, x3, x4, x5)
pE_in_gag(x1, x2, x3)  =  pE_in_gag(x1, x3)
U26_gag(x1, x2, x3, x4)  =  U26_gag(x1, x3, x4)
U27_gag(x1, x2, x3, x4)  =  U27_gag(x1, x3, x4)
pE_out_gag(x1, x2, x3)  =  pE_out_gag(x1, x2, x3)
INA_IN_AG(x1, x2)  =  INA_IN_AG(x2)
U1_AG(x1, x2, x3, x4)  =  U1_AG(x1, x2, x3, x4)
INB_IN_G(x1)  =  INB_IN_G(x1)
U9_G(x1, x2, x3, x4)  =  U9_G(x1, x2, x3, x4)
PF_IN_GG(x1, x2)  =  PF_IN_GG(x1, x2)
U16_GG(x1, x2, x3)  =  U16_GG(x1, x2, x3)
LESSN_IN_G(x1)  =  LESSN_IN_G(x1)
U17_GG(x1, x2, x3)  =  U17_GG(x1, x2, x3)
U2_AG(x1, x2, x3, x4, x5)  =  U2_AG(x2, x3, x4, x5)
PC_IN_AGG(x1, x2, x3)  =  PC_IN_AGG(x2, x3)
U18_AGG(x1, x2, x3, x4)  =  U18_AGG(x2, x3, x4)
LESSH_IN_AG(x1, x2)  =  LESSH_IN_AG(x2)
U10_AG(x1, x2, x3)  =  U10_AG(x2, x3)
U19_AGG(x1, x2, x3, x4)  =  U19_AGG(x1, x2, x3, x4)
INI_IN_GG(x1, x2)  =  INI_IN_GG(x1, x2)
U11_GG(x1, x2, x3, x4, x5)  =  U11_GG(x1, x2, x3, x4, x5)
PJ_IN_GGG(x1, x2, x3)  =  PJ_IN_GGG(x1, x2, x3)
U20_GGG(x1, x2, x3, x4)  =  U20_GGG(x1, x2, x3, x4)
LESSO_IN_GG(x1, x2)  =  LESSO_IN_GG(x1, x2)
U15_GG(x1, x2, x3)  =  U15_GG(x1, x2, x3)
LESSL_IN_GG(x1, x2)  =  LESSL_IN_GG(x1, x2)
U13_GG(x1, x2, x3)  =  U13_GG(x1, x2, x3)
U21_GGG(x1, x2, x3, x4)  =  U21_GGG(x1, x2, x3, x4)
U12_GG(x1, x2, x3, x4, x5)  =  U12_GG(x1, x2, x3, x4, x5)
PK_IN_GGG(x1, x2, x3)  =  PK_IN_GGG(x1, x2, x3)
U22_GGG(x1, x2, x3, x4)  =  U22_GGG(x1, x2, x3, x4)
U23_GGG(x1, x2, x3, x4)  =  U23_GGG(x1, x2, x3, x4)
U3_AG(x1, x2, x3, x4, x5)  =  U3_AG(x2, x3, x4, x5)
PD_IN_GAG(x1, x2, x3)  =  PD_IN_GAG(x1, x3)
U24_GAG(x1, x2, x3, x4)  =  U24_GAG(x1, x3, x4)
LESSM_IN_GA(x1, x2)  =  LESSM_IN_GA(x1)
U14_GA(x1, x2, x3)  =  U14_GA(x1, x3)
U25_GAG(x1, x2, x3, x4)  =  U25_GAG(x1, x3, x4)
U4_AG(x1, x2, x3, x4)  =  U4_AG(x1, x2, x3, x4)
U5_AG(x1, x2, x3, x4, x5)  =  U5_AG(x2, x3, x4, x5)
U6_AG(x1, x2, x3, x4, x5)  =  U6_AG(x2, x3, x4, x5)
U7_AG(x1, x2, x3, x4)  =  U7_AG(x2, x3, x4)
U8_AG(x1, x2, x3, x4, x5)  =  U8_AG(x2, x3, x4, x5)
PE_IN_GAG(x1, x2, x3)  =  PE_IN_GAG(x1, x3)
U26_GAG(x1, x2, x3, x4)  =  U26_GAG(x1, x3, x4)
U27_GAG(x1, x2, x3, x4)  =  U27_GAG(x1, x3, x4)

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

(5) DependencyGraphProof (EQUIVALENT transformation)

The approximation of the Dependency Graph [LOPSTR] contains 6 SCCs with 32 less nodes.

(6) Complex Obligation (AND)

(7) Obligation:

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

LESSM_IN_GA(s(T229), s(T231)) → LESSM_IN_GA(T229, T231)

The TRS R consists of the following rules:

inA_in_ag(T6, tree(T6, T7, T8)) → inA_out_ag(T6, tree(T6, T7, T8))
inA_in_ag(0, tree(s(T22), T15, T16)) → U1_ag(T22, T15, T16, inB_in_g(T15))
inB_in_g(tree(0, T35, T36)) → inB_out_g(tree(0, T35, T36))
inB_in_g(tree(T49, T50, T51)) → U9_g(T49, T50, T51, pF_in_gg(T49, T50))
pF_in_gg(T49, T50) → U16_gg(T49, T50, lessN_in_g(T49))
lessN_in_g(s(T60)) → lessN_out_g(s(T60))
U16_gg(T49, T50, lessN_out_g(T49)) → U17_gg(T49, T50, inB_in_g(T50))
U17_gg(T49, T50, inB_out_g(T50)) → pF_out_gg(T49, T50)
U9_g(T49, T50, T51, pF_out_gg(T49, T50)) → inB_out_g(tree(T49, T50, T51))
U1_ag(T22, T15, T16, inB_out_g(T15)) → inA_out_ag(0, tree(s(T22), T15, T16))
inA_in_ag(s(T89), tree(s(T88), T15, T16)) → U2_ag(T89, T88, T15, T16, pC_in_agg(T89, T88, T15))
pC_in_agg(T92, T88, T15) → U18_agg(T92, T88, T15, lessH_in_ag(T92, T88))
lessH_in_ag(0, s(T99)) → lessH_out_ag(0, s(T99))
lessH_in_ag(s(T106), s(T105)) → U10_ag(T106, T105, lessH_in_ag(T106, T105))
U10_ag(T106, T105, lessH_out_ag(T106, T105)) → lessH_out_ag(s(T106), s(T105))
U18_agg(T92, T88, T15, lessH_out_ag(T92, T88)) → U19_agg(T92, T88, T15, inI_in_gg(T92, T15))
inI_in_gg(T127, tree(s(T127), T128, T129)) → inI_out_gg(T127, tree(s(T127), T128, T129))
inI_in_gg(T146, tree(T147, T148, T149)) → U11_gg(T146, T147, T148, T149, pJ_in_ggg(T146, T147, T148))
pJ_in_ggg(T146, T147, T148) → U20_ggg(T146, T147, T148, lessO_in_gg(T146, T147))
lessO_in_gg(T154, s(T155)) → U15_gg(T154, T155, lessL_in_gg(T154, T155))
lessL_in_gg(0, s(T162)) → lessL_out_gg(0, s(T162))
lessL_in_gg(s(T167), s(T168)) → U13_gg(T167, T168, lessL_in_gg(T167, T168))
U13_gg(T167, T168, lessL_out_gg(T167, T168)) → lessL_out_gg(s(T167), s(T168))
U15_gg(T154, T155, lessL_out_gg(T154, T155)) → lessO_out_gg(T154, s(T155))
U20_ggg(T146, T147, T148, lessO_out_gg(T146, T147)) → U21_ggg(T146, T147, T148, inI_in_gg(T146, T148))
inI_in_gg(T185, tree(T186, T187, T188)) → U12_gg(T185, T186, T187, T188, pK_in_ggg(T186, T185, T188))
pK_in_ggg(T186, T185, T188) → U22_ggg(T186, T185, T188, lessL_in_gg(T186, s(T185)))
U22_ggg(T186, T185, T188, lessL_out_gg(T186, s(T185))) → U23_ggg(T186, T185, T188, inI_in_gg(T185, T188))
U23_ggg(T186, T185, T188, inI_out_gg(T185, T188)) → pK_out_ggg(T186, T185, T188)
U12_gg(T185, T186, T187, T188, pK_out_ggg(T186, T185, T188)) → inI_out_gg(T185, tree(T186, T187, T188))
U21_ggg(T146, T147, T148, inI_out_gg(T146, T148)) → pJ_out_ggg(T146, T147, T148)
U11_gg(T146, T147, T148, T149, pJ_out_ggg(T146, T147, T148)) → inI_out_gg(T146, tree(T147, T148, T149))
U19_agg(T92, T88, T15, inI_out_gg(T92, T15)) → pC_out_agg(T92, T88, T15)
U2_ag(T89, T88, T15, T16, pC_out_agg(T89, T88, T15)) → inA_out_ag(s(T89), tree(s(T88), T15, T16))
inA_in_ag(T214, tree(T211, T212, T213)) → U3_ag(T214, T211, T212, T213, pD_in_gag(T211, T214, T213))
pD_in_gag(T211, T217, T213) → U24_gag(T211, T217, T213, lessM_in_ga(T211, T217))
lessM_in_ga(0, s(T224)) → lessM_out_ga(0, s(T224))
lessM_in_ga(s(T229), s(T231)) → U14_ga(T229, T231, lessM_in_ga(T229, T231))
U14_ga(T229, T231, lessM_out_ga(T229, T231)) → lessM_out_ga(s(T229), s(T231))
U24_gag(T211, T217, T213, lessM_out_ga(T211, T217)) → U25_gag(T211, T217, T213, inA_in_ag(T217, T213))
inA_in_ag(0, tree(s(T253), T246, T247)) → U4_ag(T253, T246, T247, inB_in_g(T246))
U4_ag(T253, T246, T247, inB_out_g(T246)) → inA_out_ag(0, tree(s(T253), T246, T247))
inA_in_ag(s(T268), tree(s(T267), T246, T247)) → U5_ag(T268, T267, T246, T247, pC_in_agg(T268, T267, T246))
U5_ag(T268, T267, T246, T247, pC_out_agg(T268, T267, T246)) → inA_out_ag(s(T268), tree(s(T267), T246, T247))
inA_in_ag(T286, tree(T283, T284, T285)) → U6_ag(T286, T283, T284, T285, pD_in_gag(T283, T286, T285))
U6_ag(T286, T283, T284, T285, pD_out_gag(T283, T286, T285)) → inA_out_ag(T286, tree(T283, T284, T285))
inA_in_ag(s(T303), tree(0, T295, T296)) → U7_ag(T303, T295, T296, inA_in_ag(s(T303), T296))
inA_in_ag(s(T316), tree(s(T314), T295, T296)) → U8_ag(T316, T314, T295, T296, pE_in_gag(T314, T316, T296))
pE_in_gag(T314, T319, T296) → U26_gag(T314, T319, T296, lessM_in_ga(T314, T319))
U26_gag(T314, T319, T296, lessM_out_ga(T314, T319)) → U27_gag(T314, T319, T296, inA_in_ag(s(T319), T296))
U27_gag(T314, T319, T296, inA_out_ag(s(T319), T296)) → pE_out_gag(T314, T319, T296)
U8_ag(T316, T314, T295, T296, pE_out_gag(T314, T316, T296)) → inA_out_ag(s(T316), tree(s(T314), T295, T296))
U7_ag(T303, T295, T296, inA_out_ag(s(T303), T296)) → inA_out_ag(s(T303), tree(0, T295, T296))
U25_gag(T211, T217, T213, inA_out_ag(T217, T213)) → pD_out_gag(T211, T217, T213)
U3_ag(T214, T211, T212, T213, pD_out_gag(T211, T214, T213)) → inA_out_ag(T214, tree(T211, T212, T213))

The argument filtering Pi contains the following mapping:
inA_in_ag(x1, x2)  =  inA_in_ag(x2)
tree(x1, x2, x3)  =  tree(x1, x2, x3)
inA_out_ag(x1, x2)  =  inA_out_ag(x1, x2)
s(x1)  =  s(x1)
U1_ag(x1, x2, x3, x4)  =  U1_ag(x1, x2, x3, x4)
inB_in_g(x1)  =  inB_in_g(x1)
0  =  0
inB_out_g(x1)  =  inB_out_g(x1)
U9_g(x1, x2, x3, x4)  =  U9_g(x1, x2, x3, x4)
pF_in_gg(x1, x2)  =  pF_in_gg(x1, x2)
U16_gg(x1, x2, x3)  =  U16_gg(x1, x2, x3)
lessN_in_g(x1)  =  lessN_in_g(x1)
lessN_out_g(x1)  =  lessN_out_g(x1)
U17_gg(x1, x2, x3)  =  U17_gg(x1, x2, x3)
pF_out_gg(x1, x2)  =  pF_out_gg(x1, x2)
U2_ag(x1, x2, x3, x4, x5)  =  U2_ag(x2, x3, x4, x5)
pC_in_agg(x1, x2, x3)  =  pC_in_agg(x2, x3)
U18_agg(x1, x2, x3, x4)  =  U18_agg(x2, x3, x4)
lessH_in_ag(x1, x2)  =  lessH_in_ag(x2)
lessH_out_ag(x1, x2)  =  lessH_out_ag(x1, x2)
U10_ag(x1, x2, x3)  =  U10_ag(x2, x3)
U19_agg(x1, x2, x3, x4)  =  U19_agg(x1, x2, x3, x4)
inI_in_gg(x1, x2)  =  inI_in_gg(x1, x2)
inI_out_gg(x1, x2)  =  inI_out_gg(x1, x2)
U11_gg(x1, x2, x3, x4, x5)  =  U11_gg(x1, x2, x3, x4, x5)
pJ_in_ggg(x1, x2, x3)  =  pJ_in_ggg(x1, x2, x3)
U20_ggg(x1, x2, x3, x4)  =  U20_ggg(x1, x2, x3, x4)
lessO_in_gg(x1, x2)  =  lessO_in_gg(x1, x2)
U15_gg(x1, x2, x3)  =  U15_gg(x1, x2, x3)
lessL_in_gg(x1, x2)  =  lessL_in_gg(x1, x2)
lessL_out_gg(x1, x2)  =  lessL_out_gg(x1, x2)
U13_gg(x1, x2, x3)  =  U13_gg(x1, x2, x3)
lessO_out_gg(x1, x2)  =  lessO_out_gg(x1, x2)
U21_ggg(x1, x2, x3, x4)  =  U21_ggg(x1, x2, x3, x4)
U12_gg(x1, x2, x3, x4, x5)  =  U12_gg(x1, x2, x3, x4, x5)
pK_in_ggg(x1, x2, x3)  =  pK_in_ggg(x1, x2, x3)
U22_ggg(x1, x2, x3, x4)  =  U22_ggg(x1, x2, x3, x4)
U23_ggg(x1, x2, x3, x4)  =  U23_ggg(x1, x2, x3, x4)
pK_out_ggg(x1, x2, x3)  =  pK_out_ggg(x1, x2, x3)
pJ_out_ggg(x1, x2, x3)  =  pJ_out_ggg(x1, x2, x3)
pC_out_agg(x1, x2, x3)  =  pC_out_agg(x1, x2, x3)
U3_ag(x1, x2, x3, x4, x5)  =  U3_ag(x2, x3, x4, x5)
pD_in_gag(x1, x2, x3)  =  pD_in_gag(x1, x3)
U24_gag(x1, x2, x3, x4)  =  U24_gag(x1, x3, x4)
lessM_in_ga(x1, x2)  =  lessM_in_ga(x1)
lessM_out_ga(x1, x2)  =  lessM_out_ga(x1)
U14_ga(x1, x2, x3)  =  U14_ga(x1, x3)
U25_gag(x1, x2, x3, x4)  =  U25_gag(x1, x3, x4)
U4_ag(x1, x2, x3, x4)  =  U4_ag(x1, x2, x3, x4)
U5_ag(x1, x2, x3, x4, x5)  =  U5_ag(x2, x3, x4, x5)
U6_ag(x1, x2, x3, x4, x5)  =  U6_ag(x2, x3, x4, x5)
pD_out_gag(x1, x2, x3)  =  pD_out_gag(x1, x2, x3)
U7_ag(x1, x2, x3, x4)  =  U7_ag(x2, x3, x4)
U8_ag(x1, x2, x3, x4, x5)  =  U8_ag(x2, x3, x4, x5)
pE_in_gag(x1, x2, x3)  =  pE_in_gag(x1, x3)
U26_gag(x1, x2, x3, x4)  =  U26_gag(x1, x3, x4)
U27_gag(x1, x2, x3, x4)  =  U27_gag(x1, x3, x4)
pE_out_gag(x1, x2, x3)  =  pE_out_gag(x1, x2, x3)
LESSM_IN_GA(x1, x2)  =  LESSM_IN_GA(x1)

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:

LESSM_IN_GA(s(T229), s(T231)) → LESSM_IN_GA(T229, T231)

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

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

(10) PiDPToQDPProof (SOUND 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:

LESSM_IN_GA(s(T229)) → LESSM_IN_GA(T229)

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:

  • LESSM_IN_GA(s(T229)) → LESSM_IN_GA(T229)
    The graph contains the following edges 1 > 1

(13) YES

(14) Obligation:

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

LESSL_IN_GG(s(T167), s(T168)) → LESSL_IN_GG(T167, T168)

The TRS R consists of the following rules:

inA_in_ag(T6, tree(T6, T7, T8)) → inA_out_ag(T6, tree(T6, T7, T8))
inA_in_ag(0, tree(s(T22), T15, T16)) → U1_ag(T22, T15, T16, inB_in_g(T15))
inB_in_g(tree(0, T35, T36)) → inB_out_g(tree(0, T35, T36))
inB_in_g(tree(T49, T50, T51)) → U9_g(T49, T50, T51, pF_in_gg(T49, T50))
pF_in_gg(T49, T50) → U16_gg(T49, T50, lessN_in_g(T49))
lessN_in_g(s(T60)) → lessN_out_g(s(T60))
U16_gg(T49, T50, lessN_out_g(T49)) → U17_gg(T49, T50, inB_in_g(T50))
U17_gg(T49, T50, inB_out_g(T50)) → pF_out_gg(T49, T50)
U9_g(T49, T50, T51, pF_out_gg(T49, T50)) → inB_out_g(tree(T49, T50, T51))
U1_ag(T22, T15, T16, inB_out_g(T15)) → inA_out_ag(0, tree(s(T22), T15, T16))
inA_in_ag(s(T89), tree(s(T88), T15, T16)) → U2_ag(T89, T88, T15, T16, pC_in_agg(T89, T88, T15))
pC_in_agg(T92, T88, T15) → U18_agg(T92, T88, T15, lessH_in_ag(T92, T88))
lessH_in_ag(0, s(T99)) → lessH_out_ag(0, s(T99))
lessH_in_ag(s(T106), s(T105)) → U10_ag(T106, T105, lessH_in_ag(T106, T105))
U10_ag(T106, T105, lessH_out_ag(T106, T105)) → lessH_out_ag(s(T106), s(T105))
U18_agg(T92, T88, T15, lessH_out_ag(T92, T88)) → U19_agg(T92, T88, T15, inI_in_gg(T92, T15))
inI_in_gg(T127, tree(s(T127), T128, T129)) → inI_out_gg(T127, tree(s(T127), T128, T129))
inI_in_gg(T146, tree(T147, T148, T149)) → U11_gg(T146, T147, T148, T149, pJ_in_ggg(T146, T147, T148))
pJ_in_ggg(T146, T147, T148) → U20_ggg(T146, T147, T148, lessO_in_gg(T146, T147))
lessO_in_gg(T154, s(T155)) → U15_gg(T154, T155, lessL_in_gg(T154, T155))
lessL_in_gg(0, s(T162)) → lessL_out_gg(0, s(T162))
lessL_in_gg(s(T167), s(T168)) → U13_gg(T167, T168, lessL_in_gg(T167, T168))
U13_gg(T167, T168, lessL_out_gg(T167, T168)) → lessL_out_gg(s(T167), s(T168))
U15_gg(T154, T155, lessL_out_gg(T154, T155)) → lessO_out_gg(T154, s(T155))
U20_ggg(T146, T147, T148, lessO_out_gg(T146, T147)) → U21_ggg(T146, T147, T148, inI_in_gg(T146, T148))
inI_in_gg(T185, tree(T186, T187, T188)) → U12_gg(T185, T186, T187, T188, pK_in_ggg(T186, T185, T188))
pK_in_ggg(T186, T185, T188) → U22_ggg(T186, T185, T188, lessL_in_gg(T186, s(T185)))
U22_ggg(T186, T185, T188, lessL_out_gg(T186, s(T185))) → U23_ggg(T186, T185, T188, inI_in_gg(T185, T188))
U23_ggg(T186, T185, T188, inI_out_gg(T185, T188)) → pK_out_ggg(T186, T185, T188)
U12_gg(T185, T186, T187, T188, pK_out_ggg(T186, T185, T188)) → inI_out_gg(T185, tree(T186, T187, T188))
U21_ggg(T146, T147, T148, inI_out_gg(T146, T148)) → pJ_out_ggg(T146, T147, T148)
U11_gg(T146, T147, T148, T149, pJ_out_ggg(T146, T147, T148)) → inI_out_gg(T146, tree(T147, T148, T149))
U19_agg(T92, T88, T15, inI_out_gg(T92, T15)) → pC_out_agg(T92, T88, T15)
U2_ag(T89, T88, T15, T16, pC_out_agg(T89, T88, T15)) → inA_out_ag(s(T89), tree(s(T88), T15, T16))
inA_in_ag(T214, tree(T211, T212, T213)) → U3_ag(T214, T211, T212, T213, pD_in_gag(T211, T214, T213))
pD_in_gag(T211, T217, T213) → U24_gag(T211, T217, T213, lessM_in_ga(T211, T217))
lessM_in_ga(0, s(T224)) → lessM_out_ga(0, s(T224))
lessM_in_ga(s(T229), s(T231)) → U14_ga(T229, T231, lessM_in_ga(T229, T231))
U14_ga(T229, T231, lessM_out_ga(T229, T231)) → lessM_out_ga(s(T229), s(T231))
U24_gag(T211, T217, T213, lessM_out_ga(T211, T217)) → U25_gag(T211, T217, T213, inA_in_ag(T217, T213))
inA_in_ag(0, tree(s(T253), T246, T247)) → U4_ag(T253, T246, T247, inB_in_g(T246))
U4_ag(T253, T246, T247, inB_out_g(T246)) → inA_out_ag(0, tree(s(T253), T246, T247))
inA_in_ag(s(T268), tree(s(T267), T246, T247)) → U5_ag(T268, T267, T246, T247, pC_in_agg(T268, T267, T246))
U5_ag(T268, T267, T246, T247, pC_out_agg(T268, T267, T246)) → inA_out_ag(s(T268), tree(s(T267), T246, T247))
inA_in_ag(T286, tree(T283, T284, T285)) → U6_ag(T286, T283, T284, T285, pD_in_gag(T283, T286, T285))
U6_ag(T286, T283, T284, T285, pD_out_gag(T283, T286, T285)) → inA_out_ag(T286, tree(T283, T284, T285))
inA_in_ag(s(T303), tree(0, T295, T296)) → U7_ag(T303, T295, T296, inA_in_ag(s(T303), T296))
inA_in_ag(s(T316), tree(s(T314), T295, T296)) → U8_ag(T316, T314, T295, T296, pE_in_gag(T314, T316, T296))
pE_in_gag(T314, T319, T296) → U26_gag(T314, T319, T296, lessM_in_ga(T314, T319))
U26_gag(T314, T319, T296, lessM_out_ga(T314, T319)) → U27_gag(T314, T319, T296, inA_in_ag(s(T319), T296))
U27_gag(T314, T319, T296, inA_out_ag(s(T319), T296)) → pE_out_gag(T314, T319, T296)
U8_ag(T316, T314, T295, T296, pE_out_gag(T314, T316, T296)) → inA_out_ag(s(T316), tree(s(T314), T295, T296))
U7_ag(T303, T295, T296, inA_out_ag(s(T303), T296)) → inA_out_ag(s(T303), tree(0, T295, T296))
U25_gag(T211, T217, T213, inA_out_ag(T217, T213)) → pD_out_gag(T211, T217, T213)
U3_ag(T214, T211, T212, T213, pD_out_gag(T211, T214, T213)) → inA_out_ag(T214, tree(T211, T212, T213))

The argument filtering Pi contains the following mapping:
inA_in_ag(x1, x2)  =  inA_in_ag(x2)
tree(x1, x2, x3)  =  tree(x1, x2, x3)
inA_out_ag(x1, x2)  =  inA_out_ag(x1, x2)
s(x1)  =  s(x1)
U1_ag(x1, x2, x3, x4)  =  U1_ag(x1, x2, x3, x4)
inB_in_g(x1)  =  inB_in_g(x1)
0  =  0
inB_out_g(x1)  =  inB_out_g(x1)
U9_g(x1, x2, x3, x4)  =  U9_g(x1, x2, x3, x4)
pF_in_gg(x1, x2)  =  pF_in_gg(x1, x2)
U16_gg(x1, x2, x3)  =  U16_gg(x1, x2, x3)
lessN_in_g(x1)  =  lessN_in_g(x1)
lessN_out_g(x1)  =  lessN_out_g(x1)
U17_gg(x1, x2, x3)  =  U17_gg(x1, x2, x3)
pF_out_gg(x1, x2)  =  pF_out_gg(x1, x2)
U2_ag(x1, x2, x3, x4, x5)  =  U2_ag(x2, x3, x4, x5)
pC_in_agg(x1, x2, x3)  =  pC_in_agg(x2, x3)
U18_agg(x1, x2, x3, x4)  =  U18_agg(x2, x3, x4)
lessH_in_ag(x1, x2)  =  lessH_in_ag(x2)
lessH_out_ag(x1, x2)  =  lessH_out_ag(x1, x2)
U10_ag(x1, x2, x3)  =  U10_ag(x2, x3)
U19_agg(x1, x2, x3, x4)  =  U19_agg(x1, x2, x3, x4)
inI_in_gg(x1, x2)  =  inI_in_gg(x1, x2)
inI_out_gg(x1, x2)  =  inI_out_gg(x1, x2)
U11_gg(x1, x2, x3, x4, x5)  =  U11_gg(x1, x2, x3, x4, x5)
pJ_in_ggg(x1, x2, x3)  =  pJ_in_ggg(x1, x2, x3)
U20_ggg(x1, x2, x3, x4)  =  U20_ggg(x1, x2, x3, x4)
lessO_in_gg(x1, x2)  =  lessO_in_gg(x1, x2)
U15_gg(x1, x2, x3)  =  U15_gg(x1, x2, x3)
lessL_in_gg(x1, x2)  =  lessL_in_gg(x1, x2)
lessL_out_gg(x1, x2)  =  lessL_out_gg(x1, x2)
U13_gg(x1, x2, x3)  =  U13_gg(x1, x2, x3)
lessO_out_gg(x1, x2)  =  lessO_out_gg(x1, x2)
U21_ggg(x1, x2, x3, x4)  =  U21_ggg(x1, x2, x3, x4)
U12_gg(x1, x2, x3, x4, x5)  =  U12_gg(x1, x2, x3, x4, x5)
pK_in_ggg(x1, x2, x3)  =  pK_in_ggg(x1, x2, x3)
U22_ggg(x1, x2, x3, x4)  =  U22_ggg(x1, x2, x3, x4)
U23_ggg(x1, x2, x3, x4)  =  U23_ggg(x1, x2, x3, x4)
pK_out_ggg(x1, x2, x3)  =  pK_out_ggg(x1, x2, x3)
pJ_out_ggg(x1, x2, x3)  =  pJ_out_ggg(x1, x2, x3)
pC_out_agg(x1, x2, x3)  =  pC_out_agg(x1, x2, x3)
U3_ag(x1, x2, x3, x4, x5)  =  U3_ag(x2, x3, x4, x5)
pD_in_gag(x1, x2, x3)  =  pD_in_gag(x1, x3)
U24_gag(x1, x2, x3, x4)  =  U24_gag(x1, x3, x4)
lessM_in_ga(x1, x2)  =  lessM_in_ga(x1)
lessM_out_ga(x1, x2)  =  lessM_out_ga(x1)
U14_ga(x1, x2, x3)  =  U14_ga(x1, x3)
U25_gag(x1, x2, x3, x4)  =  U25_gag(x1, x3, x4)
U4_ag(x1, x2, x3, x4)  =  U4_ag(x1, x2, x3, x4)
U5_ag(x1, x2, x3, x4, x5)  =  U5_ag(x2, x3, x4, x5)
U6_ag(x1, x2, x3, x4, x5)  =  U6_ag(x2, x3, x4, x5)
pD_out_gag(x1, x2, x3)  =  pD_out_gag(x1, x2, x3)
U7_ag(x1, x2, x3, x4)  =  U7_ag(x2, x3, x4)
U8_ag(x1, x2, x3, x4, x5)  =  U8_ag(x2, x3, x4, x5)
pE_in_gag(x1, x2, x3)  =  pE_in_gag(x1, x3)
U26_gag(x1, x2, x3, x4)  =  U26_gag(x1, x3, x4)
U27_gag(x1, x2, x3, x4)  =  U27_gag(x1, x3, x4)
pE_out_gag(x1, x2, x3)  =  pE_out_gag(x1, x2, x3)
LESSL_IN_GG(x1, x2)  =  LESSL_IN_GG(x1, x2)

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:

LESSL_IN_GG(s(T167), s(T168)) → LESSL_IN_GG(T167, T168)

R is empty.
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:

LESSL_IN_GG(s(T167), s(T168)) → LESSL_IN_GG(T167, T168)

R is empty.
Q is empty.
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:

  • LESSL_IN_GG(s(T167), s(T168)) → LESSL_IN_GG(T167, T168)
    The graph contains the following edges 1 > 1, 2 > 2

(20) YES

(21) Obligation:

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

INI_IN_GG(T146, tree(T147, T148, T149)) → PJ_IN_GGG(T146, T147, T148)
PJ_IN_GGG(T146, T147, T148) → U20_GGG(T146, T147, T148, lessO_in_gg(T146, T147))
U20_GGG(T146, T147, T148, lessO_out_gg(T146, T147)) → INI_IN_GG(T146, T148)
INI_IN_GG(T185, tree(T186, T187, T188)) → PK_IN_GGG(T186, T185, T188)
PK_IN_GGG(T186, T185, T188) → U22_GGG(T186, T185, T188, lessL_in_gg(T186, s(T185)))
U22_GGG(T186, T185, T188, lessL_out_gg(T186, s(T185))) → INI_IN_GG(T185, T188)

The TRS R consists of the following rules:

inA_in_ag(T6, tree(T6, T7, T8)) → inA_out_ag(T6, tree(T6, T7, T8))
inA_in_ag(0, tree(s(T22), T15, T16)) → U1_ag(T22, T15, T16, inB_in_g(T15))
inB_in_g(tree(0, T35, T36)) → inB_out_g(tree(0, T35, T36))
inB_in_g(tree(T49, T50, T51)) → U9_g(T49, T50, T51, pF_in_gg(T49, T50))
pF_in_gg(T49, T50) → U16_gg(T49, T50, lessN_in_g(T49))
lessN_in_g(s(T60)) → lessN_out_g(s(T60))
U16_gg(T49, T50, lessN_out_g(T49)) → U17_gg(T49, T50, inB_in_g(T50))
U17_gg(T49, T50, inB_out_g(T50)) → pF_out_gg(T49, T50)
U9_g(T49, T50, T51, pF_out_gg(T49, T50)) → inB_out_g(tree(T49, T50, T51))
U1_ag(T22, T15, T16, inB_out_g(T15)) → inA_out_ag(0, tree(s(T22), T15, T16))
inA_in_ag(s(T89), tree(s(T88), T15, T16)) → U2_ag(T89, T88, T15, T16, pC_in_agg(T89, T88, T15))
pC_in_agg(T92, T88, T15) → U18_agg(T92, T88, T15, lessH_in_ag(T92, T88))
lessH_in_ag(0, s(T99)) → lessH_out_ag(0, s(T99))
lessH_in_ag(s(T106), s(T105)) → U10_ag(T106, T105, lessH_in_ag(T106, T105))
U10_ag(T106, T105, lessH_out_ag(T106, T105)) → lessH_out_ag(s(T106), s(T105))
U18_agg(T92, T88, T15, lessH_out_ag(T92, T88)) → U19_agg(T92, T88, T15, inI_in_gg(T92, T15))
inI_in_gg(T127, tree(s(T127), T128, T129)) → inI_out_gg(T127, tree(s(T127), T128, T129))
inI_in_gg(T146, tree(T147, T148, T149)) → U11_gg(T146, T147, T148, T149, pJ_in_ggg(T146, T147, T148))
pJ_in_ggg(T146, T147, T148) → U20_ggg(T146, T147, T148, lessO_in_gg(T146, T147))
lessO_in_gg(T154, s(T155)) → U15_gg(T154, T155, lessL_in_gg(T154, T155))
lessL_in_gg(0, s(T162)) → lessL_out_gg(0, s(T162))
lessL_in_gg(s(T167), s(T168)) → U13_gg(T167, T168, lessL_in_gg(T167, T168))
U13_gg(T167, T168, lessL_out_gg(T167, T168)) → lessL_out_gg(s(T167), s(T168))
U15_gg(T154, T155, lessL_out_gg(T154, T155)) → lessO_out_gg(T154, s(T155))
U20_ggg(T146, T147, T148, lessO_out_gg(T146, T147)) → U21_ggg(T146, T147, T148, inI_in_gg(T146, T148))
inI_in_gg(T185, tree(T186, T187, T188)) → U12_gg(T185, T186, T187, T188, pK_in_ggg(T186, T185, T188))
pK_in_ggg(T186, T185, T188) → U22_ggg(T186, T185, T188, lessL_in_gg(T186, s(T185)))
U22_ggg(T186, T185, T188, lessL_out_gg(T186, s(T185))) → U23_ggg(T186, T185, T188, inI_in_gg(T185, T188))
U23_ggg(T186, T185, T188, inI_out_gg(T185, T188)) → pK_out_ggg(T186, T185, T188)
U12_gg(T185, T186, T187, T188, pK_out_ggg(T186, T185, T188)) → inI_out_gg(T185, tree(T186, T187, T188))
U21_ggg(T146, T147, T148, inI_out_gg(T146, T148)) → pJ_out_ggg(T146, T147, T148)
U11_gg(T146, T147, T148, T149, pJ_out_ggg(T146, T147, T148)) → inI_out_gg(T146, tree(T147, T148, T149))
U19_agg(T92, T88, T15, inI_out_gg(T92, T15)) → pC_out_agg(T92, T88, T15)
U2_ag(T89, T88, T15, T16, pC_out_agg(T89, T88, T15)) → inA_out_ag(s(T89), tree(s(T88), T15, T16))
inA_in_ag(T214, tree(T211, T212, T213)) → U3_ag(T214, T211, T212, T213, pD_in_gag(T211, T214, T213))
pD_in_gag(T211, T217, T213) → U24_gag(T211, T217, T213, lessM_in_ga(T211, T217))
lessM_in_ga(0, s(T224)) → lessM_out_ga(0, s(T224))
lessM_in_ga(s(T229), s(T231)) → U14_ga(T229, T231, lessM_in_ga(T229, T231))
U14_ga(T229, T231, lessM_out_ga(T229, T231)) → lessM_out_ga(s(T229), s(T231))
U24_gag(T211, T217, T213, lessM_out_ga(T211, T217)) → U25_gag(T211, T217, T213, inA_in_ag(T217, T213))
inA_in_ag(0, tree(s(T253), T246, T247)) → U4_ag(T253, T246, T247, inB_in_g(T246))
U4_ag(T253, T246, T247, inB_out_g(T246)) → inA_out_ag(0, tree(s(T253), T246, T247))
inA_in_ag(s(T268), tree(s(T267), T246, T247)) → U5_ag(T268, T267, T246, T247, pC_in_agg(T268, T267, T246))
U5_ag(T268, T267, T246, T247, pC_out_agg(T268, T267, T246)) → inA_out_ag(s(T268), tree(s(T267), T246, T247))
inA_in_ag(T286, tree(T283, T284, T285)) → U6_ag(T286, T283, T284, T285, pD_in_gag(T283, T286, T285))
U6_ag(T286, T283, T284, T285, pD_out_gag(T283, T286, T285)) → inA_out_ag(T286, tree(T283, T284, T285))
inA_in_ag(s(T303), tree(0, T295, T296)) → U7_ag(T303, T295, T296, inA_in_ag(s(T303), T296))
inA_in_ag(s(T316), tree(s(T314), T295, T296)) → U8_ag(T316, T314, T295, T296, pE_in_gag(T314, T316, T296))
pE_in_gag(T314, T319, T296) → U26_gag(T314, T319, T296, lessM_in_ga(T314, T319))
U26_gag(T314, T319, T296, lessM_out_ga(T314, T319)) → U27_gag(T314, T319, T296, inA_in_ag(s(T319), T296))
U27_gag(T314, T319, T296, inA_out_ag(s(T319), T296)) → pE_out_gag(T314, T319, T296)
U8_ag(T316, T314, T295, T296, pE_out_gag(T314, T316, T296)) → inA_out_ag(s(T316), tree(s(T314), T295, T296))
U7_ag(T303, T295, T296, inA_out_ag(s(T303), T296)) → inA_out_ag(s(T303), tree(0, T295, T296))
U25_gag(T211, T217, T213, inA_out_ag(T217, T213)) → pD_out_gag(T211, T217, T213)
U3_ag(T214, T211, T212, T213, pD_out_gag(T211, T214, T213)) → inA_out_ag(T214, tree(T211, T212, T213))

The argument filtering Pi contains the following mapping:
inA_in_ag(x1, x2)  =  inA_in_ag(x2)
tree(x1, x2, x3)  =  tree(x1, x2, x3)
inA_out_ag(x1, x2)  =  inA_out_ag(x1, x2)
s(x1)  =  s(x1)
U1_ag(x1, x2, x3, x4)  =  U1_ag(x1, x2, x3, x4)
inB_in_g(x1)  =  inB_in_g(x1)
0  =  0
inB_out_g(x1)  =  inB_out_g(x1)
U9_g(x1, x2, x3, x4)  =  U9_g(x1, x2, x3, x4)
pF_in_gg(x1, x2)  =  pF_in_gg(x1, x2)
U16_gg(x1, x2, x3)  =  U16_gg(x1, x2, x3)
lessN_in_g(x1)  =  lessN_in_g(x1)
lessN_out_g(x1)  =  lessN_out_g(x1)
U17_gg(x1, x2, x3)  =  U17_gg(x1, x2, x3)
pF_out_gg(x1, x2)  =  pF_out_gg(x1, x2)
U2_ag(x1, x2, x3, x4, x5)  =  U2_ag(x2, x3, x4, x5)
pC_in_agg(x1, x2, x3)  =  pC_in_agg(x2, x3)
U18_agg(x1, x2, x3, x4)  =  U18_agg(x2, x3, x4)
lessH_in_ag(x1, x2)  =  lessH_in_ag(x2)
lessH_out_ag(x1, x2)  =  lessH_out_ag(x1, x2)
U10_ag(x1, x2, x3)  =  U10_ag(x2, x3)
U19_agg(x1, x2, x3, x4)  =  U19_agg(x1, x2, x3, x4)
inI_in_gg(x1, x2)  =  inI_in_gg(x1, x2)
inI_out_gg(x1, x2)  =  inI_out_gg(x1, x2)
U11_gg(x1, x2, x3, x4, x5)  =  U11_gg(x1, x2, x3, x4, x5)
pJ_in_ggg(x1, x2, x3)  =  pJ_in_ggg(x1, x2, x3)
U20_ggg(x1, x2, x3, x4)  =  U20_ggg(x1, x2, x3, x4)
lessO_in_gg(x1, x2)  =  lessO_in_gg(x1, x2)
U15_gg(x1, x2, x3)  =  U15_gg(x1, x2, x3)
lessL_in_gg(x1, x2)  =  lessL_in_gg(x1, x2)
lessL_out_gg(x1, x2)  =  lessL_out_gg(x1, x2)
U13_gg(x1, x2, x3)  =  U13_gg(x1, x2, x3)
lessO_out_gg(x1, x2)  =  lessO_out_gg(x1, x2)
U21_ggg(x1, x2, x3, x4)  =  U21_ggg(x1, x2, x3, x4)
U12_gg(x1, x2, x3, x4, x5)  =  U12_gg(x1, x2, x3, x4, x5)
pK_in_ggg(x1, x2, x3)  =  pK_in_ggg(x1, x2, x3)
U22_ggg(x1, x2, x3, x4)  =  U22_ggg(x1, x2, x3, x4)
U23_ggg(x1, x2, x3, x4)  =  U23_ggg(x1, x2, x3, x4)
pK_out_ggg(x1, x2, x3)  =  pK_out_ggg(x1, x2, x3)
pJ_out_ggg(x1, x2, x3)  =  pJ_out_ggg(x1, x2, x3)
pC_out_agg(x1, x2, x3)  =  pC_out_agg(x1, x2, x3)
U3_ag(x1, x2, x3, x4, x5)  =  U3_ag(x2, x3, x4, x5)
pD_in_gag(x1, x2, x3)  =  pD_in_gag(x1, x3)
U24_gag(x1, x2, x3, x4)  =  U24_gag(x1, x3, x4)
lessM_in_ga(x1, x2)  =  lessM_in_ga(x1)
lessM_out_ga(x1, x2)  =  lessM_out_ga(x1)
U14_ga(x1, x2, x3)  =  U14_ga(x1, x3)
U25_gag(x1, x2, x3, x4)  =  U25_gag(x1, x3, x4)
U4_ag(x1, x2, x3, x4)  =  U4_ag(x1, x2, x3, x4)
U5_ag(x1, x2, x3, x4, x5)  =  U5_ag(x2, x3, x4, x5)
U6_ag(x1, x2, x3, x4, x5)  =  U6_ag(x2, x3, x4, x5)
pD_out_gag(x1, x2, x3)  =  pD_out_gag(x1, x2, x3)
U7_ag(x1, x2, x3, x4)  =  U7_ag(x2, x3, x4)
U8_ag(x1, x2, x3, x4, x5)  =  U8_ag(x2, x3, x4, x5)
pE_in_gag(x1, x2, x3)  =  pE_in_gag(x1, x3)
U26_gag(x1, x2, x3, x4)  =  U26_gag(x1, x3, x4)
U27_gag(x1, x2, x3, x4)  =  U27_gag(x1, x3, x4)
pE_out_gag(x1, x2, x3)  =  pE_out_gag(x1, x2, x3)
INI_IN_GG(x1, x2)  =  INI_IN_GG(x1, x2)
PJ_IN_GGG(x1, x2, x3)  =  PJ_IN_GGG(x1, x2, x3)
U20_GGG(x1, x2, x3, x4)  =  U20_GGG(x1, x2, x3, x4)
PK_IN_GGG(x1, x2, x3)  =  PK_IN_GGG(x1, x2, x3)
U22_GGG(x1, x2, x3, x4)  =  U22_GGG(x1, x2, x3, x4)

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:

INI_IN_GG(T146, tree(T147, T148, T149)) → PJ_IN_GGG(T146, T147, T148)
PJ_IN_GGG(T146, T147, T148) → U20_GGG(T146, T147, T148, lessO_in_gg(T146, T147))
U20_GGG(T146, T147, T148, lessO_out_gg(T146, T147)) → INI_IN_GG(T146, T148)
INI_IN_GG(T185, tree(T186, T187, T188)) → PK_IN_GGG(T186, T185, T188)
PK_IN_GGG(T186, T185, T188) → U22_GGG(T186, T185, T188, lessL_in_gg(T186, s(T185)))
U22_GGG(T186, T185, T188, lessL_out_gg(T186, s(T185))) → INI_IN_GG(T185, T188)

The TRS R consists of the following rules:

lessO_in_gg(T154, s(T155)) → U15_gg(T154, T155, lessL_in_gg(T154, T155))
lessL_in_gg(0, s(T162)) → lessL_out_gg(0, s(T162))
lessL_in_gg(s(T167), s(T168)) → U13_gg(T167, T168, lessL_in_gg(T167, T168))
U15_gg(T154, T155, lessL_out_gg(T154, T155)) → lessO_out_gg(T154, s(T155))
U13_gg(T167, T168, lessL_out_gg(T167, T168)) → lessL_out_gg(s(T167), s(T168))

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

(24) PiDPToQDPProof (EQUIVALENT 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:

INI_IN_GG(T146, tree(T147, T148, T149)) → PJ_IN_GGG(T146, T147, T148)
PJ_IN_GGG(T146, T147, T148) → U20_GGG(T146, T147, T148, lessO_in_gg(T146, T147))
U20_GGG(T146, T147, T148, lessO_out_gg(T146, T147)) → INI_IN_GG(T146, T148)
INI_IN_GG(T185, tree(T186, T187, T188)) → PK_IN_GGG(T186, T185, T188)
PK_IN_GGG(T186, T185, T188) → U22_GGG(T186, T185, T188, lessL_in_gg(T186, s(T185)))
U22_GGG(T186, T185, T188, lessL_out_gg(T186, s(T185))) → INI_IN_GG(T185, T188)

The TRS R consists of the following rules:

lessO_in_gg(T154, s(T155)) → U15_gg(T154, T155, lessL_in_gg(T154, T155))
lessL_in_gg(0, s(T162)) → lessL_out_gg(0, s(T162))
lessL_in_gg(s(T167), s(T168)) → U13_gg(T167, T168, lessL_in_gg(T167, T168))
U15_gg(T154, T155, lessL_out_gg(T154, T155)) → lessO_out_gg(T154, s(T155))
U13_gg(T167, T168, lessL_out_gg(T167, T168)) → lessL_out_gg(s(T167), s(T168))

The set Q consists of the following terms:

lessO_in_gg(x0, x1)
lessL_in_gg(x0, x1)
U15_gg(x0, x1, x2)
U13_gg(x0, x1, x2)

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:

  • PJ_IN_GGG(T146, T147, T148) → U20_GGG(T146, T147, T148, lessO_in_gg(T146, T147))
    The graph contains the following edges 1 >= 1, 2 >= 2, 3 >= 3

  • U20_GGG(T146, T147, T148, lessO_out_gg(T146, T147)) → INI_IN_GG(T146, T148)
    The graph contains the following edges 1 >= 1, 4 > 1, 3 >= 2

  • U22_GGG(T186, T185, T188, lessL_out_gg(T186, s(T185))) → INI_IN_GG(T185, T188)
    The graph contains the following edges 2 >= 1, 4 > 1, 3 >= 2

  • INI_IN_GG(T146, tree(T147, T148, T149)) → PJ_IN_GGG(T146, T147, T148)
    The graph contains the following edges 1 >= 1, 2 > 2, 2 > 3

  • INI_IN_GG(T185, tree(T186, T187, T188)) → PK_IN_GGG(T186, T185, T188)
    The graph contains the following edges 2 > 1, 1 >= 2, 2 > 3

  • PK_IN_GGG(T186, T185, T188) → U22_GGG(T186, T185, T188, lessL_in_gg(T186, s(T185)))
    The graph contains the following edges 1 >= 1, 2 >= 2, 3 >= 3

(27) YES

(28) Obligation:

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

LESSH_IN_AG(s(T106), s(T105)) → LESSH_IN_AG(T106, T105)

The TRS R consists of the following rules:

inA_in_ag(T6, tree(T6, T7, T8)) → inA_out_ag(T6, tree(T6, T7, T8))
inA_in_ag(0, tree(s(T22), T15, T16)) → U1_ag(T22, T15, T16, inB_in_g(T15))
inB_in_g(tree(0, T35, T36)) → inB_out_g(tree(0, T35, T36))
inB_in_g(tree(T49, T50, T51)) → U9_g(T49, T50, T51, pF_in_gg(T49, T50))
pF_in_gg(T49, T50) → U16_gg(T49, T50, lessN_in_g(T49))
lessN_in_g(s(T60)) → lessN_out_g(s(T60))
U16_gg(T49, T50, lessN_out_g(T49)) → U17_gg(T49, T50, inB_in_g(T50))
U17_gg(T49, T50, inB_out_g(T50)) → pF_out_gg(T49, T50)
U9_g(T49, T50, T51, pF_out_gg(T49, T50)) → inB_out_g(tree(T49, T50, T51))
U1_ag(T22, T15, T16, inB_out_g(T15)) → inA_out_ag(0, tree(s(T22), T15, T16))
inA_in_ag(s(T89), tree(s(T88), T15, T16)) → U2_ag(T89, T88, T15, T16, pC_in_agg(T89, T88, T15))
pC_in_agg(T92, T88, T15) → U18_agg(T92, T88, T15, lessH_in_ag(T92, T88))
lessH_in_ag(0, s(T99)) → lessH_out_ag(0, s(T99))
lessH_in_ag(s(T106), s(T105)) → U10_ag(T106, T105, lessH_in_ag(T106, T105))
U10_ag(T106, T105, lessH_out_ag(T106, T105)) → lessH_out_ag(s(T106), s(T105))
U18_agg(T92, T88, T15, lessH_out_ag(T92, T88)) → U19_agg(T92, T88, T15, inI_in_gg(T92, T15))
inI_in_gg(T127, tree(s(T127), T128, T129)) → inI_out_gg(T127, tree(s(T127), T128, T129))
inI_in_gg(T146, tree(T147, T148, T149)) → U11_gg(T146, T147, T148, T149, pJ_in_ggg(T146, T147, T148))
pJ_in_ggg(T146, T147, T148) → U20_ggg(T146, T147, T148, lessO_in_gg(T146, T147))
lessO_in_gg(T154, s(T155)) → U15_gg(T154, T155, lessL_in_gg(T154, T155))
lessL_in_gg(0, s(T162)) → lessL_out_gg(0, s(T162))
lessL_in_gg(s(T167), s(T168)) → U13_gg(T167, T168, lessL_in_gg(T167, T168))
U13_gg(T167, T168, lessL_out_gg(T167, T168)) → lessL_out_gg(s(T167), s(T168))
U15_gg(T154, T155, lessL_out_gg(T154, T155)) → lessO_out_gg(T154, s(T155))
U20_ggg(T146, T147, T148, lessO_out_gg(T146, T147)) → U21_ggg(T146, T147, T148, inI_in_gg(T146, T148))
inI_in_gg(T185, tree(T186, T187, T188)) → U12_gg(T185, T186, T187, T188, pK_in_ggg(T186, T185, T188))
pK_in_ggg(T186, T185, T188) → U22_ggg(T186, T185, T188, lessL_in_gg(T186, s(T185)))
U22_ggg(T186, T185, T188, lessL_out_gg(T186, s(T185))) → U23_ggg(T186, T185, T188, inI_in_gg(T185, T188))
U23_ggg(T186, T185, T188, inI_out_gg(T185, T188)) → pK_out_ggg(T186, T185, T188)
U12_gg(T185, T186, T187, T188, pK_out_ggg(T186, T185, T188)) → inI_out_gg(T185, tree(T186, T187, T188))
U21_ggg(T146, T147, T148, inI_out_gg(T146, T148)) → pJ_out_ggg(T146, T147, T148)
U11_gg(T146, T147, T148, T149, pJ_out_ggg(T146, T147, T148)) → inI_out_gg(T146, tree(T147, T148, T149))
U19_agg(T92, T88, T15, inI_out_gg(T92, T15)) → pC_out_agg(T92, T88, T15)
U2_ag(T89, T88, T15, T16, pC_out_agg(T89, T88, T15)) → inA_out_ag(s(T89), tree(s(T88), T15, T16))
inA_in_ag(T214, tree(T211, T212, T213)) → U3_ag(T214, T211, T212, T213, pD_in_gag(T211, T214, T213))
pD_in_gag(T211, T217, T213) → U24_gag(T211, T217, T213, lessM_in_ga(T211, T217))
lessM_in_ga(0, s(T224)) → lessM_out_ga(0, s(T224))
lessM_in_ga(s(T229), s(T231)) → U14_ga(T229, T231, lessM_in_ga(T229, T231))
U14_ga(T229, T231, lessM_out_ga(T229, T231)) → lessM_out_ga(s(T229), s(T231))
U24_gag(T211, T217, T213, lessM_out_ga(T211, T217)) → U25_gag(T211, T217, T213, inA_in_ag(T217, T213))
inA_in_ag(0, tree(s(T253), T246, T247)) → U4_ag(T253, T246, T247, inB_in_g(T246))
U4_ag(T253, T246, T247, inB_out_g(T246)) → inA_out_ag(0, tree(s(T253), T246, T247))
inA_in_ag(s(T268), tree(s(T267), T246, T247)) → U5_ag(T268, T267, T246, T247, pC_in_agg(T268, T267, T246))
U5_ag(T268, T267, T246, T247, pC_out_agg(T268, T267, T246)) → inA_out_ag(s(T268), tree(s(T267), T246, T247))
inA_in_ag(T286, tree(T283, T284, T285)) → U6_ag(T286, T283, T284, T285, pD_in_gag(T283, T286, T285))
U6_ag(T286, T283, T284, T285, pD_out_gag(T283, T286, T285)) → inA_out_ag(T286, tree(T283, T284, T285))
inA_in_ag(s(T303), tree(0, T295, T296)) → U7_ag(T303, T295, T296, inA_in_ag(s(T303), T296))
inA_in_ag(s(T316), tree(s(T314), T295, T296)) → U8_ag(T316, T314, T295, T296, pE_in_gag(T314, T316, T296))
pE_in_gag(T314, T319, T296) → U26_gag(T314, T319, T296, lessM_in_ga(T314, T319))
U26_gag(T314, T319, T296, lessM_out_ga(T314, T319)) → U27_gag(T314, T319, T296, inA_in_ag(s(T319), T296))
U27_gag(T314, T319, T296, inA_out_ag(s(T319), T296)) → pE_out_gag(T314, T319, T296)
U8_ag(T316, T314, T295, T296, pE_out_gag(T314, T316, T296)) → inA_out_ag(s(T316), tree(s(T314), T295, T296))
U7_ag(T303, T295, T296, inA_out_ag(s(T303), T296)) → inA_out_ag(s(T303), tree(0, T295, T296))
U25_gag(T211, T217, T213, inA_out_ag(T217, T213)) → pD_out_gag(T211, T217, T213)
U3_ag(T214, T211, T212, T213, pD_out_gag(T211, T214, T213)) → inA_out_ag(T214, tree(T211, T212, T213))

The argument filtering Pi contains the following mapping:
inA_in_ag(x1, x2)  =  inA_in_ag(x2)
tree(x1, x2, x3)  =  tree(x1, x2, x3)
inA_out_ag(x1, x2)  =  inA_out_ag(x1, x2)
s(x1)  =  s(x1)
U1_ag(x1, x2, x3, x4)  =  U1_ag(x1, x2, x3, x4)
inB_in_g(x1)  =  inB_in_g(x1)
0  =  0
inB_out_g(x1)  =  inB_out_g(x1)
U9_g(x1, x2, x3, x4)  =  U9_g(x1, x2, x3, x4)
pF_in_gg(x1, x2)  =  pF_in_gg(x1, x2)
U16_gg(x1, x2, x3)  =  U16_gg(x1, x2, x3)
lessN_in_g(x1)  =  lessN_in_g(x1)
lessN_out_g(x1)  =  lessN_out_g(x1)
U17_gg(x1, x2, x3)  =  U17_gg(x1, x2, x3)
pF_out_gg(x1, x2)  =  pF_out_gg(x1, x2)
U2_ag(x1, x2, x3, x4, x5)  =  U2_ag(x2, x3, x4, x5)
pC_in_agg(x1, x2, x3)  =  pC_in_agg(x2, x3)
U18_agg(x1, x2, x3, x4)  =  U18_agg(x2, x3, x4)
lessH_in_ag(x1, x2)  =  lessH_in_ag(x2)
lessH_out_ag(x1, x2)  =  lessH_out_ag(x1, x2)
U10_ag(x1, x2, x3)  =  U10_ag(x2, x3)
U19_agg(x1, x2, x3, x4)  =  U19_agg(x1, x2, x3, x4)
inI_in_gg(x1, x2)  =  inI_in_gg(x1, x2)
inI_out_gg(x1, x2)  =  inI_out_gg(x1, x2)
U11_gg(x1, x2, x3, x4, x5)  =  U11_gg(x1, x2, x3, x4, x5)
pJ_in_ggg(x1, x2, x3)  =  pJ_in_ggg(x1, x2, x3)
U20_ggg(x1, x2, x3, x4)  =  U20_ggg(x1, x2, x3, x4)
lessO_in_gg(x1, x2)  =  lessO_in_gg(x1, x2)
U15_gg(x1, x2, x3)  =  U15_gg(x1, x2, x3)
lessL_in_gg(x1, x2)  =  lessL_in_gg(x1, x2)
lessL_out_gg(x1, x2)  =  lessL_out_gg(x1, x2)
U13_gg(x1, x2, x3)  =  U13_gg(x1, x2, x3)
lessO_out_gg(x1, x2)  =  lessO_out_gg(x1, x2)
U21_ggg(x1, x2, x3, x4)  =  U21_ggg(x1, x2, x3, x4)
U12_gg(x1, x2, x3, x4, x5)  =  U12_gg(x1, x2, x3, x4, x5)
pK_in_ggg(x1, x2, x3)  =  pK_in_ggg(x1, x2, x3)
U22_ggg(x1, x2, x3, x4)  =  U22_ggg(x1, x2, x3, x4)
U23_ggg(x1, x2, x3, x4)  =  U23_ggg(x1, x2, x3, x4)
pK_out_ggg(x1, x2, x3)  =  pK_out_ggg(x1, x2, x3)
pJ_out_ggg(x1, x2, x3)  =  pJ_out_ggg(x1, x2, x3)
pC_out_agg(x1, x2, x3)  =  pC_out_agg(x1, x2, x3)
U3_ag(x1, x2, x3, x4, x5)  =  U3_ag(x2, x3, x4, x5)
pD_in_gag(x1, x2, x3)  =  pD_in_gag(x1, x3)
U24_gag(x1, x2, x3, x4)  =  U24_gag(x1, x3, x4)
lessM_in_ga(x1, x2)  =  lessM_in_ga(x1)
lessM_out_ga(x1, x2)  =  lessM_out_ga(x1)
U14_ga(x1, x2, x3)  =  U14_ga(x1, x3)
U25_gag(x1, x2, x3, x4)  =  U25_gag(x1, x3, x4)
U4_ag(x1, x2, x3, x4)  =  U4_ag(x1, x2, x3, x4)
U5_ag(x1, x2, x3, x4, x5)  =  U5_ag(x2, x3, x4, x5)
U6_ag(x1, x2, x3, x4, x5)  =  U6_ag(x2, x3, x4, x5)
pD_out_gag(x1, x2, x3)  =  pD_out_gag(x1, x2, x3)
U7_ag(x1, x2, x3, x4)  =  U7_ag(x2, x3, x4)
U8_ag(x1, x2, x3, x4, x5)  =  U8_ag(x2, x3, x4, x5)
pE_in_gag(x1, x2, x3)  =  pE_in_gag(x1, x3)
U26_gag(x1, x2, x3, x4)  =  U26_gag(x1, x3, x4)
U27_gag(x1, x2, x3, x4)  =  U27_gag(x1, x3, x4)
pE_out_gag(x1, x2, x3)  =  pE_out_gag(x1, x2, x3)
LESSH_IN_AG(x1, x2)  =  LESSH_IN_AG(x2)

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:

LESSH_IN_AG(s(T106), s(T105)) → LESSH_IN_AG(T106, T105)

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

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:

LESSH_IN_AG(s(T105)) → LESSH_IN_AG(T105)

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:

  • LESSH_IN_AG(s(T105)) → LESSH_IN_AG(T105)
    The graph contains the following edges 1 > 1

(34) YES

(35) Obligation:

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

INB_IN_G(tree(T49, T50, T51)) → PF_IN_GG(T49, T50)
PF_IN_GG(T49, T50) → U16_GG(T49, T50, lessN_in_g(T49))
U16_GG(T49, T50, lessN_out_g(T49)) → INB_IN_G(T50)

The TRS R consists of the following rules:

inA_in_ag(T6, tree(T6, T7, T8)) → inA_out_ag(T6, tree(T6, T7, T8))
inA_in_ag(0, tree(s(T22), T15, T16)) → U1_ag(T22, T15, T16, inB_in_g(T15))
inB_in_g(tree(0, T35, T36)) → inB_out_g(tree(0, T35, T36))
inB_in_g(tree(T49, T50, T51)) → U9_g(T49, T50, T51, pF_in_gg(T49, T50))
pF_in_gg(T49, T50) → U16_gg(T49, T50, lessN_in_g(T49))
lessN_in_g(s(T60)) → lessN_out_g(s(T60))
U16_gg(T49, T50, lessN_out_g(T49)) → U17_gg(T49, T50, inB_in_g(T50))
U17_gg(T49, T50, inB_out_g(T50)) → pF_out_gg(T49, T50)
U9_g(T49, T50, T51, pF_out_gg(T49, T50)) → inB_out_g(tree(T49, T50, T51))
U1_ag(T22, T15, T16, inB_out_g(T15)) → inA_out_ag(0, tree(s(T22), T15, T16))
inA_in_ag(s(T89), tree(s(T88), T15, T16)) → U2_ag(T89, T88, T15, T16, pC_in_agg(T89, T88, T15))
pC_in_agg(T92, T88, T15) → U18_agg(T92, T88, T15, lessH_in_ag(T92, T88))
lessH_in_ag(0, s(T99)) → lessH_out_ag(0, s(T99))
lessH_in_ag(s(T106), s(T105)) → U10_ag(T106, T105, lessH_in_ag(T106, T105))
U10_ag(T106, T105, lessH_out_ag(T106, T105)) → lessH_out_ag(s(T106), s(T105))
U18_agg(T92, T88, T15, lessH_out_ag(T92, T88)) → U19_agg(T92, T88, T15, inI_in_gg(T92, T15))
inI_in_gg(T127, tree(s(T127), T128, T129)) → inI_out_gg(T127, tree(s(T127), T128, T129))
inI_in_gg(T146, tree(T147, T148, T149)) → U11_gg(T146, T147, T148, T149, pJ_in_ggg(T146, T147, T148))
pJ_in_ggg(T146, T147, T148) → U20_ggg(T146, T147, T148, lessO_in_gg(T146, T147))
lessO_in_gg(T154, s(T155)) → U15_gg(T154, T155, lessL_in_gg(T154, T155))
lessL_in_gg(0, s(T162)) → lessL_out_gg(0, s(T162))
lessL_in_gg(s(T167), s(T168)) → U13_gg(T167, T168, lessL_in_gg(T167, T168))
U13_gg(T167, T168, lessL_out_gg(T167, T168)) → lessL_out_gg(s(T167), s(T168))
U15_gg(T154, T155, lessL_out_gg(T154, T155)) → lessO_out_gg(T154, s(T155))
U20_ggg(T146, T147, T148, lessO_out_gg(T146, T147)) → U21_ggg(T146, T147, T148, inI_in_gg(T146, T148))
inI_in_gg(T185, tree(T186, T187, T188)) → U12_gg(T185, T186, T187, T188, pK_in_ggg(T186, T185, T188))
pK_in_ggg(T186, T185, T188) → U22_ggg(T186, T185, T188, lessL_in_gg(T186, s(T185)))
U22_ggg(T186, T185, T188, lessL_out_gg(T186, s(T185))) → U23_ggg(T186, T185, T188, inI_in_gg(T185, T188))
U23_ggg(T186, T185, T188, inI_out_gg(T185, T188)) → pK_out_ggg(T186, T185, T188)
U12_gg(T185, T186, T187, T188, pK_out_ggg(T186, T185, T188)) → inI_out_gg(T185, tree(T186, T187, T188))
U21_ggg(T146, T147, T148, inI_out_gg(T146, T148)) → pJ_out_ggg(T146, T147, T148)
U11_gg(T146, T147, T148, T149, pJ_out_ggg(T146, T147, T148)) → inI_out_gg(T146, tree(T147, T148, T149))
U19_agg(T92, T88, T15, inI_out_gg(T92, T15)) → pC_out_agg(T92, T88, T15)
U2_ag(T89, T88, T15, T16, pC_out_agg(T89, T88, T15)) → inA_out_ag(s(T89), tree(s(T88), T15, T16))
inA_in_ag(T214, tree(T211, T212, T213)) → U3_ag(T214, T211, T212, T213, pD_in_gag(T211, T214, T213))
pD_in_gag(T211, T217, T213) → U24_gag(T211, T217, T213, lessM_in_ga(T211, T217))
lessM_in_ga(0, s(T224)) → lessM_out_ga(0, s(T224))
lessM_in_ga(s(T229), s(T231)) → U14_ga(T229, T231, lessM_in_ga(T229, T231))
U14_ga(T229, T231, lessM_out_ga(T229, T231)) → lessM_out_ga(s(T229), s(T231))
U24_gag(T211, T217, T213, lessM_out_ga(T211, T217)) → U25_gag(T211, T217, T213, inA_in_ag(T217, T213))
inA_in_ag(0, tree(s(T253), T246, T247)) → U4_ag(T253, T246, T247, inB_in_g(T246))
U4_ag(T253, T246, T247, inB_out_g(T246)) → inA_out_ag(0, tree(s(T253), T246, T247))
inA_in_ag(s(T268), tree(s(T267), T246, T247)) → U5_ag(T268, T267, T246, T247, pC_in_agg(T268, T267, T246))
U5_ag(T268, T267, T246, T247, pC_out_agg(T268, T267, T246)) → inA_out_ag(s(T268), tree(s(T267), T246, T247))
inA_in_ag(T286, tree(T283, T284, T285)) → U6_ag(T286, T283, T284, T285, pD_in_gag(T283, T286, T285))
U6_ag(T286, T283, T284, T285, pD_out_gag(T283, T286, T285)) → inA_out_ag(T286, tree(T283, T284, T285))
inA_in_ag(s(T303), tree(0, T295, T296)) → U7_ag(T303, T295, T296, inA_in_ag(s(T303), T296))
inA_in_ag(s(T316), tree(s(T314), T295, T296)) → U8_ag(T316, T314, T295, T296, pE_in_gag(T314, T316, T296))
pE_in_gag(T314, T319, T296) → U26_gag(T314, T319, T296, lessM_in_ga(T314, T319))
U26_gag(T314, T319, T296, lessM_out_ga(T314, T319)) → U27_gag(T314, T319, T296, inA_in_ag(s(T319), T296))
U27_gag(T314, T319, T296, inA_out_ag(s(T319), T296)) → pE_out_gag(T314, T319, T296)
U8_ag(T316, T314, T295, T296, pE_out_gag(T314, T316, T296)) → inA_out_ag(s(T316), tree(s(T314), T295, T296))
U7_ag(T303, T295, T296, inA_out_ag(s(T303), T296)) → inA_out_ag(s(T303), tree(0, T295, T296))
U25_gag(T211, T217, T213, inA_out_ag(T217, T213)) → pD_out_gag(T211, T217, T213)
U3_ag(T214, T211, T212, T213, pD_out_gag(T211, T214, T213)) → inA_out_ag(T214, tree(T211, T212, T213))

The argument filtering Pi contains the following mapping:
inA_in_ag(x1, x2)  =  inA_in_ag(x2)
tree(x1, x2, x3)  =  tree(x1, x2, x3)
inA_out_ag(x1, x2)  =  inA_out_ag(x1, x2)
s(x1)  =  s(x1)
U1_ag(x1, x2, x3, x4)  =  U1_ag(x1, x2, x3, x4)
inB_in_g(x1)  =  inB_in_g(x1)
0  =  0
inB_out_g(x1)  =  inB_out_g(x1)
U9_g(x1, x2, x3, x4)  =  U9_g(x1, x2, x3, x4)
pF_in_gg(x1, x2)  =  pF_in_gg(x1, x2)
U16_gg(x1, x2, x3)  =  U16_gg(x1, x2, x3)
lessN_in_g(x1)  =  lessN_in_g(x1)
lessN_out_g(x1)  =  lessN_out_g(x1)
U17_gg(x1, x2, x3)  =  U17_gg(x1, x2, x3)
pF_out_gg(x1, x2)  =  pF_out_gg(x1, x2)
U2_ag(x1, x2, x3, x4, x5)  =  U2_ag(x2, x3, x4, x5)
pC_in_agg(x1, x2, x3)  =  pC_in_agg(x2, x3)
U18_agg(x1, x2, x3, x4)  =  U18_agg(x2, x3, x4)
lessH_in_ag(x1, x2)  =  lessH_in_ag(x2)
lessH_out_ag(x1, x2)  =  lessH_out_ag(x1, x2)
U10_ag(x1, x2, x3)  =  U10_ag(x2, x3)
U19_agg(x1, x2, x3, x4)  =  U19_agg(x1, x2, x3, x4)
inI_in_gg(x1, x2)  =  inI_in_gg(x1, x2)
inI_out_gg(x1, x2)  =  inI_out_gg(x1, x2)
U11_gg(x1, x2, x3, x4, x5)  =  U11_gg(x1, x2, x3, x4, x5)
pJ_in_ggg(x1, x2, x3)  =  pJ_in_ggg(x1, x2, x3)
U20_ggg(x1, x2, x3, x4)  =  U20_ggg(x1, x2, x3, x4)
lessO_in_gg(x1, x2)  =  lessO_in_gg(x1, x2)
U15_gg(x1, x2, x3)  =  U15_gg(x1, x2, x3)
lessL_in_gg(x1, x2)  =  lessL_in_gg(x1, x2)
lessL_out_gg(x1, x2)  =  lessL_out_gg(x1, x2)
U13_gg(x1, x2, x3)  =  U13_gg(x1, x2, x3)
lessO_out_gg(x1, x2)  =  lessO_out_gg(x1, x2)
U21_ggg(x1, x2, x3, x4)  =  U21_ggg(x1, x2, x3, x4)
U12_gg(x1, x2, x3, x4, x5)  =  U12_gg(x1, x2, x3, x4, x5)
pK_in_ggg(x1, x2, x3)  =  pK_in_ggg(x1, x2, x3)
U22_ggg(x1, x2, x3, x4)  =  U22_ggg(x1, x2, x3, x4)
U23_ggg(x1, x2, x3, x4)  =  U23_ggg(x1, x2, x3, x4)
pK_out_ggg(x1, x2, x3)  =  pK_out_ggg(x1, x2, x3)
pJ_out_ggg(x1, x2, x3)  =  pJ_out_ggg(x1, x2, x3)
pC_out_agg(x1, x2, x3)  =  pC_out_agg(x1, x2, x3)
U3_ag(x1, x2, x3, x4, x5)  =  U3_ag(x2, x3, x4, x5)
pD_in_gag(x1, x2, x3)  =  pD_in_gag(x1, x3)
U24_gag(x1, x2, x3, x4)  =  U24_gag(x1, x3, x4)
lessM_in_ga(x1, x2)  =  lessM_in_ga(x1)
lessM_out_ga(x1, x2)  =  lessM_out_ga(x1)
U14_ga(x1, x2, x3)  =  U14_ga(x1, x3)
U25_gag(x1, x2, x3, x4)  =  U25_gag(x1, x3, x4)
U4_ag(x1, x2, x3, x4)  =  U4_ag(x1, x2, x3, x4)
U5_ag(x1, x2, x3, x4, x5)  =  U5_ag(x2, x3, x4, x5)
U6_ag(x1, x2, x3, x4, x5)  =  U6_ag(x2, x3, x4, x5)
pD_out_gag(x1, x2, x3)  =  pD_out_gag(x1, x2, x3)
U7_ag(x1, x2, x3, x4)  =  U7_ag(x2, x3, x4)
U8_ag(x1, x2, x3, x4, x5)  =  U8_ag(x2, x3, x4, x5)
pE_in_gag(x1, x2, x3)  =  pE_in_gag(x1, x3)
U26_gag(x1, x2, x3, x4)  =  U26_gag(x1, x3, x4)
U27_gag(x1, x2, x3, x4)  =  U27_gag(x1, x3, x4)
pE_out_gag(x1, x2, x3)  =  pE_out_gag(x1, x2, x3)
INB_IN_G(x1)  =  INB_IN_G(x1)
PF_IN_GG(x1, x2)  =  PF_IN_GG(x1, x2)
U16_GG(x1, x2, x3)  =  U16_GG(x1, x2, x3)

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:

INB_IN_G(tree(T49, T50, T51)) → PF_IN_GG(T49, T50)
PF_IN_GG(T49, T50) → U16_GG(T49, T50, lessN_in_g(T49))
U16_GG(T49, T50, lessN_out_g(T49)) → INB_IN_G(T50)

The TRS R consists of the following rules:

lessN_in_g(s(T60)) → lessN_out_g(s(T60))

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

(38) PiDPToQDPProof (EQUIVALENT 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:

INB_IN_G(tree(T49, T50, T51)) → PF_IN_GG(T49, T50)
PF_IN_GG(T49, T50) → U16_GG(T49, T50, lessN_in_g(T49))
U16_GG(T49, T50, lessN_out_g(T49)) → INB_IN_G(T50)

The TRS R consists of the following rules:

lessN_in_g(s(T60)) → lessN_out_g(s(T60))

The set Q consists of the following terms:

lessN_in_g(x0)

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:

  • PF_IN_GG(T49, T50) → U16_GG(T49, T50, lessN_in_g(T49))
    The graph contains the following edges 1 >= 1, 2 >= 2

  • U16_GG(T49, T50, lessN_out_g(T49)) → INB_IN_G(T50)
    The graph contains the following edges 2 >= 1

  • INB_IN_G(tree(T49, T50, T51)) → PF_IN_GG(T49, T50)
    The graph contains the following edges 1 > 1, 1 > 2

(41) YES

(42) Obligation:

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

INA_IN_AG(T214, tree(T211, T212, T213)) → PD_IN_GAG(T211, T214, T213)
PD_IN_GAG(T211, T217, T213) → U24_GAG(T211, T217, T213, lessM_in_ga(T211, T217))
U24_GAG(T211, T217, T213, lessM_out_ga(T211, T217)) → INA_IN_AG(T217, T213)
INA_IN_AG(s(T303), tree(0, T295, T296)) → INA_IN_AG(s(T303), T296)
INA_IN_AG(s(T316), tree(s(T314), T295, T296)) → PE_IN_GAG(T314, T316, T296)
PE_IN_GAG(T314, T319, T296) → U26_GAG(T314, T319, T296, lessM_in_ga(T314, T319))
U26_GAG(T314, T319, T296, lessM_out_ga(T314, T319)) → INA_IN_AG(s(T319), T296)

The TRS R consists of the following rules:

inA_in_ag(T6, tree(T6, T7, T8)) → inA_out_ag(T6, tree(T6, T7, T8))
inA_in_ag(0, tree(s(T22), T15, T16)) → U1_ag(T22, T15, T16, inB_in_g(T15))
inB_in_g(tree(0, T35, T36)) → inB_out_g(tree(0, T35, T36))
inB_in_g(tree(T49, T50, T51)) → U9_g(T49, T50, T51, pF_in_gg(T49, T50))
pF_in_gg(T49, T50) → U16_gg(T49, T50, lessN_in_g(T49))
lessN_in_g(s(T60)) → lessN_out_g(s(T60))
U16_gg(T49, T50, lessN_out_g(T49)) → U17_gg(T49, T50, inB_in_g(T50))
U17_gg(T49, T50, inB_out_g(T50)) → pF_out_gg(T49, T50)
U9_g(T49, T50, T51, pF_out_gg(T49, T50)) → inB_out_g(tree(T49, T50, T51))
U1_ag(T22, T15, T16, inB_out_g(T15)) → inA_out_ag(0, tree(s(T22), T15, T16))
inA_in_ag(s(T89), tree(s(T88), T15, T16)) → U2_ag(T89, T88, T15, T16, pC_in_agg(T89, T88, T15))
pC_in_agg(T92, T88, T15) → U18_agg(T92, T88, T15, lessH_in_ag(T92, T88))
lessH_in_ag(0, s(T99)) → lessH_out_ag(0, s(T99))
lessH_in_ag(s(T106), s(T105)) → U10_ag(T106, T105, lessH_in_ag(T106, T105))
U10_ag(T106, T105, lessH_out_ag(T106, T105)) → lessH_out_ag(s(T106), s(T105))
U18_agg(T92, T88, T15, lessH_out_ag(T92, T88)) → U19_agg(T92, T88, T15, inI_in_gg(T92, T15))
inI_in_gg(T127, tree(s(T127), T128, T129)) → inI_out_gg(T127, tree(s(T127), T128, T129))
inI_in_gg(T146, tree(T147, T148, T149)) → U11_gg(T146, T147, T148, T149, pJ_in_ggg(T146, T147, T148))
pJ_in_ggg(T146, T147, T148) → U20_ggg(T146, T147, T148, lessO_in_gg(T146, T147))
lessO_in_gg(T154, s(T155)) → U15_gg(T154, T155, lessL_in_gg(T154, T155))
lessL_in_gg(0, s(T162)) → lessL_out_gg(0, s(T162))
lessL_in_gg(s(T167), s(T168)) → U13_gg(T167, T168, lessL_in_gg(T167, T168))
U13_gg(T167, T168, lessL_out_gg(T167, T168)) → lessL_out_gg(s(T167), s(T168))
U15_gg(T154, T155, lessL_out_gg(T154, T155)) → lessO_out_gg(T154, s(T155))
U20_ggg(T146, T147, T148, lessO_out_gg(T146, T147)) → U21_ggg(T146, T147, T148, inI_in_gg(T146, T148))
inI_in_gg(T185, tree(T186, T187, T188)) → U12_gg(T185, T186, T187, T188, pK_in_ggg(T186, T185, T188))
pK_in_ggg(T186, T185, T188) → U22_ggg(T186, T185, T188, lessL_in_gg(T186, s(T185)))
U22_ggg(T186, T185, T188, lessL_out_gg(T186, s(T185))) → U23_ggg(T186, T185, T188, inI_in_gg(T185, T188))
U23_ggg(T186, T185, T188, inI_out_gg(T185, T188)) → pK_out_ggg(T186, T185, T188)
U12_gg(T185, T186, T187, T188, pK_out_ggg(T186, T185, T188)) → inI_out_gg(T185, tree(T186, T187, T188))
U21_ggg(T146, T147, T148, inI_out_gg(T146, T148)) → pJ_out_ggg(T146, T147, T148)
U11_gg(T146, T147, T148, T149, pJ_out_ggg(T146, T147, T148)) → inI_out_gg(T146, tree(T147, T148, T149))
U19_agg(T92, T88, T15, inI_out_gg(T92, T15)) → pC_out_agg(T92, T88, T15)
U2_ag(T89, T88, T15, T16, pC_out_agg(T89, T88, T15)) → inA_out_ag(s(T89), tree(s(T88), T15, T16))
inA_in_ag(T214, tree(T211, T212, T213)) → U3_ag(T214, T211, T212, T213, pD_in_gag(T211, T214, T213))
pD_in_gag(T211, T217, T213) → U24_gag(T211, T217, T213, lessM_in_ga(T211, T217))
lessM_in_ga(0, s(T224)) → lessM_out_ga(0, s(T224))
lessM_in_ga(s(T229), s(T231)) → U14_ga(T229, T231, lessM_in_ga(T229, T231))
U14_ga(T229, T231, lessM_out_ga(T229, T231)) → lessM_out_ga(s(T229), s(T231))
U24_gag(T211, T217, T213, lessM_out_ga(T211, T217)) → U25_gag(T211, T217, T213, inA_in_ag(T217, T213))
inA_in_ag(0, tree(s(T253), T246, T247)) → U4_ag(T253, T246, T247, inB_in_g(T246))
U4_ag(T253, T246, T247, inB_out_g(T246)) → inA_out_ag(0, tree(s(T253), T246, T247))
inA_in_ag(s(T268), tree(s(T267), T246, T247)) → U5_ag(T268, T267, T246, T247, pC_in_agg(T268, T267, T246))
U5_ag(T268, T267, T246, T247, pC_out_agg(T268, T267, T246)) → inA_out_ag(s(T268), tree(s(T267), T246, T247))
inA_in_ag(T286, tree(T283, T284, T285)) → U6_ag(T286, T283, T284, T285, pD_in_gag(T283, T286, T285))
U6_ag(T286, T283, T284, T285, pD_out_gag(T283, T286, T285)) → inA_out_ag(T286, tree(T283, T284, T285))
inA_in_ag(s(T303), tree(0, T295, T296)) → U7_ag(T303, T295, T296, inA_in_ag(s(T303), T296))
inA_in_ag(s(T316), tree(s(T314), T295, T296)) → U8_ag(T316, T314, T295, T296, pE_in_gag(T314, T316, T296))
pE_in_gag(T314, T319, T296) → U26_gag(T314, T319, T296, lessM_in_ga(T314, T319))
U26_gag(T314, T319, T296, lessM_out_ga(T314, T319)) → U27_gag(T314, T319, T296, inA_in_ag(s(T319), T296))
U27_gag(T314, T319, T296, inA_out_ag(s(T319), T296)) → pE_out_gag(T314, T319, T296)
U8_ag(T316, T314, T295, T296, pE_out_gag(T314, T316, T296)) → inA_out_ag(s(T316), tree(s(T314), T295, T296))
U7_ag(T303, T295, T296, inA_out_ag(s(T303), T296)) → inA_out_ag(s(T303), tree(0, T295, T296))
U25_gag(T211, T217, T213, inA_out_ag(T217, T213)) → pD_out_gag(T211, T217, T213)
U3_ag(T214, T211, T212, T213, pD_out_gag(T211, T214, T213)) → inA_out_ag(T214, tree(T211, T212, T213))

The argument filtering Pi contains the following mapping:
inA_in_ag(x1, x2)  =  inA_in_ag(x2)
tree(x1, x2, x3)  =  tree(x1, x2, x3)
inA_out_ag(x1, x2)  =  inA_out_ag(x1, x2)
s(x1)  =  s(x1)
U1_ag(x1, x2, x3, x4)  =  U1_ag(x1, x2, x3, x4)
inB_in_g(x1)  =  inB_in_g(x1)
0  =  0
inB_out_g(x1)  =  inB_out_g(x1)
U9_g(x1, x2, x3, x4)  =  U9_g(x1, x2, x3, x4)
pF_in_gg(x1, x2)  =  pF_in_gg(x1, x2)
U16_gg(x1, x2, x3)  =  U16_gg(x1, x2, x3)
lessN_in_g(x1)  =  lessN_in_g(x1)
lessN_out_g(x1)  =  lessN_out_g(x1)
U17_gg(x1, x2, x3)  =  U17_gg(x1, x2, x3)
pF_out_gg(x1, x2)  =  pF_out_gg(x1, x2)
U2_ag(x1, x2, x3, x4, x5)  =  U2_ag(x2, x3, x4, x5)
pC_in_agg(x1, x2, x3)  =  pC_in_agg(x2, x3)
U18_agg(x1, x2, x3, x4)  =  U18_agg(x2, x3, x4)
lessH_in_ag(x1, x2)  =  lessH_in_ag(x2)
lessH_out_ag(x1, x2)  =  lessH_out_ag(x1, x2)
U10_ag(x1, x2, x3)  =  U10_ag(x2, x3)
U19_agg(x1, x2, x3, x4)  =  U19_agg(x1, x2, x3, x4)
inI_in_gg(x1, x2)  =  inI_in_gg(x1, x2)
inI_out_gg(x1, x2)  =  inI_out_gg(x1, x2)
U11_gg(x1, x2, x3, x4, x5)  =  U11_gg(x1, x2, x3, x4, x5)
pJ_in_ggg(x1, x2, x3)  =  pJ_in_ggg(x1, x2, x3)
U20_ggg(x1, x2, x3, x4)  =  U20_ggg(x1, x2, x3, x4)
lessO_in_gg(x1, x2)  =  lessO_in_gg(x1, x2)
U15_gg(x1, x2, x3)  =  U15_gg(x1, x2, x3)
lessL_in_gg(x1, x2)  =  lessL_in_gg(x1, x2)
lessL_out_gg(x1, x2)  =  lessL_out_gg(x1, x2)
U13_gg(x1, x2, x3)  =  U13_gg(x1, x2, x3)
lessO_out_gg(x1, x2)  =  lessO_out_gg(x1, x2)
U21_ggg(x1, x2, x3, x4)  =  U21_ggg(x1, x2, x3, x4)
U12_gg(x1, x2, x3, x4, x5)  =  U12_gg(x1, x2, x3, x4, x5)
pK_in_ggg(x1, x2, x3)  =  pK_in_ggg(x1, x2, x3)
U22_ggg(x1, x2, x3, x4)  =  U22_ggg(x1, x2, x3, x4)
U23_ggg(x1, x2, x3, x4)  =  U23_ggg(x1, x2, x3, x4)
pK_out_ggg(x1, x2, x3)  =  pK_out_ggg(x1, x2, x3)
pJ_out_ggg(x1, x2, x3)  =  pJ_out_ggg(x1, x2, x3)
pC_out_agg(x1, x2, x3)  =  pC_out_agg(x1, x2, x3)
U3_ag(x1, x2, x3, x4, x5)  =  U3_ag(x2, x3, x4, x5)
pD_in_gag(x1, x2, x3)  =  pD_in_gag(x1, x3)
U24_gag(x1, x2, x3, x4)  =  U24_gag(x1, x3, x4)
lessM_in_ga(x1, x2)  =  lessM_in_ga(x1)
lessM_out_ga(x1, x2)  =  lessM_out_ga(x1)
U14_ga(x1, x2, x3)  =  U14_ga(x1, x3)
U25_gag(x1, x2, x3, x4)  =  U25_gag(x1, x3, x4)
U4_ag(x1, x2, x3, x4)  =  U4_ag(x1, x2, x3, x4)
U5_ag(x1, x2, x3, x4, x5)  =  U5_ag(x2, x3, x4, x5)
U6_ag(x1, x2, x3, x4, x5)  =  U6_ag(x2, x3, x4, x5)
pD_out_gag(x1, x2, x3)  =  pD_out_gag(x1, x2, x3)
U7_ag(x1, x2, x3, x4)  =  U7_ag(x2, x3, x4)
U8_ag(x1, x2, x3, x4, x5)  =  U8_ag(x2, x3, x4, x5)
pE_in_gag(x1, x2, x3)  =  pE_in_gag(x1, x3)
U26_gag(x1, x2, x3, x4)  =  U26_gag(x1, x3, x4)
U27_gag(x1, x2, x3, x4)  =  U27_gag(x1, x3, x4)
pE_out_gag(x1, x2, x3)  =  pE_out_gag(x1, x2, x3)
INA_IN_AG(x1, x2)  =  INA_IN_AG(x2)
PD_IN_GAG(x1, x2, x3)  =  PD_IN_GAG(x1, x3)
U24_GAG(x1, x2, x3, x4)  =  U24_GAG(x1, x3, x4)
PE_IN_GAG(x1, x2, x3)  =  PE_IN_GAG(x1, x3)
U26_GAG(x1, x2, x3, x4)  =  U26_GAG(x1, x3, x4)

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

(43) UsableRulesProof (EQUIVALENT transformation)

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

(44) Obligation:

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

INA_IN_AG(T214, tree(T211, T212, T213)) → PD_IN_GAG(T211, T214, T213)
PD_IN_GAG(T211, T217, T213) → U24_GAG(T211, T217, T213, lessM_in_ga(T211, T217))
U24_GAG(T211, T217, T213, lessM_out_ga(T211, T217)) → INA_IN_AG(T217, T213)
INA_IN_AG(s(T303), tree(0, T295, T296)) → INA_IN_AG(s(T303), T296)
INA_IN_AG(s(T316), tree(s(T314), T295, T296)) → PE_IN_GAG(T314, T316, T296)
PE_IN_GAG(T314, T319, T296) → U26_GAG(T314, T319, T296, lessM_in_ga(T314, T319))
U26_GAG(T314, T319, T296, lessM_out_ga(T314, T319)) → INA_IN_AG(s(T319), T296)

The TRS R consists of the following rules:

lessM_in_ga(0, s(T224)) → lessM_out_ga(0, s(T224))
lessM_in_ga(s(T229), s(T231)) → U14_ga(T229, T231, lessM_in_ga(T229, T231))
U14_ga(T229, T231, lessM_out_ga(T229, T231)) → lessM_out_ga(s(T229), s(T231))

The argument filtering Pi contains the following mapping:
tree(x1, x2, x3)  =  tree(x1, x2, x3)
s(x1)  =  s(x1)
0  =  0
lessM_in_ga(x1, x2)  =  lessM_in_ga(x1)
lessM_out_ga(x1, x2)  =  lessM_out_ga(x1)
U14_ga(x1, x2, x3)  =  U14_ga(x1, x3)
INA_IN_AG(x1, x2)  =  INA_IN_AG(x2)
PD_IN_GAG(x1, x2, x3)  =  PD_IN_GAG(x1, x3)
U24_GAG(x1, x2, x3, x4)  =  U24_GAG(x1, x3, x4)
PE_IN_GAG(x1, x2, x3)  =  PE_IN_GAG(x1, x3)
U26_GAG(x1, x2, x3, x4)  =  U26_GAG(x1, x3, x4)

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

(45) PiDPToQDPProof (SOUND transformation)

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

(46) Obligation:

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

INA_IN_AG(tree(T211, T212, T213)) → PD_IN_GAG(T211, T213)
PD_IN_GAG(T211, T213) → U24_GAG(T211, T213, lessM_in_ga(T211))
U24_GAG(T211, T213, lessM_out_ga(T211)) → INA_IN_AG(T213)
INA_IN_AG(tree(0, T295, T296)) → INA_IN_AG(T296)
INA_IN_AG(tree(s(T314), T295, T296)) → PE_IN_GAG(T314, T296)
PE_IN_GAG(T314, T296) → U26_GAG(T314, T296, lessM_in_ga(T314))
U26_GAG(T314, T296, lessM_out_ga(T314)) → INA_IN_AG(T296)

The TRS R consists of the following rules:

lessM_in_ga(0) → lessM_out_ga(0)
lessM_in_ga(s(T229)) → U14_ga(T229, lessM_in_ga(T229))
U14_ga(T229, lessM_out_ga(T229)) → lessM_out_ga(s(T229))

The set Q consists of the following terms:

lessM_in_ga(x0)
U14_ga(x0, x1)

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

(47) 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:

  • PD_IN_GAG(T211, T213) → U24_GAG(T211, T213, lessM_in_ga(T211))
    The graph contains the following edges 1 >= 1, 2 >= 2

  • U24_GAG(T211, T213, lessM_out_ga(T211)) → INA_IN_AG(T213)
    The graph contains the following edges 2 >= 1

  • INA_IN_AG(tree(T211, T212, T213)) → PD_IN_GAG(T211, T213)
    The graph contains the following edges 1 > 1, 1 > 2

  • INA_IN_AG(tree(0, T295, T296)) → INA_IN_AG(T296)
    The graph contains the following edges 1 > 1

  • U26_GAG(T314, T296, lessM_out_ga(T314)) → INA_IN_AG(T296)
    The graph contains the following edges 2 >= 1

  • INA_IN_AG(tree(s(T314), T295, T296)) → PE_IN_GAG(T314, T296)
    The graph contains the following edges 1 > 1, 1 > 2

  • PE_IN_GAG(T314, T296) → U26_GAG(T314, T296, lessM_in_ga(T314))
    The graph contains the following edges 1 >= 1, 2 >= 2

(48) YES