(0) Obligation:

Clauses:

nat(0).
nat(s(X)) :- nat(X).
plus(0, X, X) :- nat(X).
plus(s(X), Y, s(Z)) :- plus(X, Y, Z).
ways(0, X1, s(0)).
ways(X2, [], 0).
ways(Amount, .(s(C), Coins), N) :- ','(=(Amount, s(X3)), ','(plus(s(C), NewAmount, Amount), ','(ways(Amount, Coins, N1), ','(ways(NewAmount, .(s(C), Coins), N2), plus(N1, N2, N))))).
ways(Amount, .(s(C), Coins), N) :- ','(=(Amount, s(X4)), ','(plus(Amount, s(X5), s(C)), ways(Amount, Coins, N))).

Query: ways(g,g,a)

(1) PrologToPiTRSViaGraphTransformerProof (SOUND transformation)

Transformed Prolog program to (Pi-)TRS.

(2) Obligation:

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

waysA_in_gga(0, T5, s(0)) → waysA_out_gga(0, T5, s(0))
waysA_in_gga(0, [], 0) → waysA_out_gga(0, [], 0)
waysA_in_gga(T24, [], 0) → waysA_out_gga(T24, [], 0)
waysA_in_gga(s(T49), .(s(T48), T33), T35) → U1_gga(T49, T48, T33, T35, pB_in_gaggaaa(T48, X90, T49, T33, X64, X65, T35))
pB_in_gaggaaa(T48, T51, T49, T33, X64, X65, T35) → U11_gaggaaa(T48, T51, T49, T33, X64, X65, T35, plusE_in_gag(T48, T51, T49))
plusE_in_gag(0, T57, T57) → U4_gag(T57, natD_in_g(T57))
natD_in_g(0) → natD_out_g(0)
natD_in_g(s(T60)) → U3_g(T60, natD_in_g(T60))
U3_g(T60, natD_out_g(T60)) → natD_out_g(s(T60))
U4_gag(T57, natD_out_g(T57)) → plusE_out_gag(0, T57, T57)
plusE_in_gag(s(T65), X119, s(T66)) → U5_gag(T65, X119, T66, plusE_in_gag(T65, X119, T66))
U5_gag(T65, X119, T66, plusE_out_gag(T65, X119, T66)) → plusE_out_gag(s(T65), X119, s(T66))
U11_gaggaaa(T48, T51, T49, T33, X64, X65, T35, plusE_out_gag(T48, T51, T49)) → U12_gaggaaa(T48, T51, T49, T33, X64, X65, T35, pI_in_ggaggaa(T49, T33, X64, T51, T48, X65, T35))
pI_in_ggaggaa(T49, T33, T68, T51, T48, X65, T35) → U13_ggaggaa(T49, T33, T68, T51, T48, X65, T35, waysA_in_gga(s(T49), T33, T68))
waysA_in_gga(s(T110), .(s(T105), T106), T108) → U2_gga(T110, T105, T106, T108, pC_in_gagga(T110, X161, T105, T106, T108))
pC_in_gagga(T110, T111, T105, T106, T108) → U17_gagga(T110, T111, T105, T106, T108, plusH_in_gag(T110, T111, T105))
plusH_in_gag(T117, X178, T118) → U10_gag(T117, X178, T118, plusG_in_gag(T117, X178, T118))
plusG_in_gag(0, T124, s(T124)) → U8_gag(T124, natD_in_g(s(T124)))
U8_gag(T124, natD_out_g(s(T124))) → plusG_out_gag(0, T124, s(T124))
plusG_in_gag(s(T129), X202, s(T130)) → U9_gag(T129, X202, T130, plusG_in_gag(T129, X202, T130))
U9_gag(T129, X202, T130, plusG_out_gag(T129, X202, T130)) → plusG_out_gag(s(T129), X202, s(T130))
U10_gag(T117, X178, T118, plusG_out_gag(T117, X178, T118)) → plusH_out_gag(T117, X178, T118)
U17_gagga(T110, T111, T105, T106, T108, plusH_out_gag(T110, T111, T105)) → U18_gagga(T110, T111, T105, T106, T108, waysA_in_gga(s(T110), T106, T108))
U18_gagga(T110, T111, T105, T106, T108, waysA_out_gga(s(T110), T106, T108)) → pC_out_gagga(T110, T111, T105, T106, T108)
U2_gga(T110, T105, T106, T108, pC_out_gagga(T110, X161, T105, T106, T108)) → waysA_out_gga(s(T110), .(s(T105), T106), T108)
U13_ggaggaa(T49, T33, T68, T51, T48, X65, T35, waysA_out_gga(s(T49), T33, T68)) → U14_ggaggaa(T49, T33, T68, T51, T48, X65, T35, pJ_in_gggaga(T51, T48, T33, X65, T68, T35))
pJ_in_gggaga(T51, T48, T33, T73, T68, T35) → U15_gggaga(T51, T48, T33, T73, T68, T35, waysA_in_gga(T51, .(s(T48), T33), T73))
U15_gggaga(T51, T48, T33, T73, T68, T35, waysA_out_gga(T51, .(s(T48), T33), T73)) → U16_gggaga(T51, T48, T33, T73, T68, T35, plusF_in_gga(T68, T73, T35))
plusF_in_gga(0, T83, T83) → U6_gga(T83, natD_in_g(T83))
U6_gga(T83, natD_out_g(T83)) → plusF_out_gga(0, T83, T83)
plusF_in_gga(s(T90), T91, s(T93)) → U7_gga(T90, T91, T93, plusF_in_gga(T90, T91, T93))
U7_gga(T90, T91, T93, plusF_out_gga(T90, T91, T93)) → plusF_out_gga(s(T90), T91, s(T93))
U16_gggaga(T51, T48, T33, T73, T68, T35, plusF_out_gga(T68, T73, T35)) → pJ_out_gggaga(T51, T48, T33, T73, T68, T35)
U14_ggaggaa(T49, T33, T68, T51, T48, X65, T35, pJ_out_gggaga(T51, T48, T33, X65, T68, T35)) → pI_out_ggaggaa(T49, T33, T68, T51, T48, X65, T35)
U12_gaggaaa(T48, T51, T49, T33, X64, X65, T35, pI_out_ggaggaa(T49, T33, X64, T51, T48, X65, T35)) → pB_out_gaggaaa(T48, T51, T49, T33, X64, X65, T35)
U1_gga(T49, T48, T33, T35, pB_out_gaggaaa(T48, X90, T49, T33, X64, X65, T35)) → waysA_out_gga(s(T49), .(s(T48), T33), T35)

The argument filtering Pi contains the following mapping:
waysA_in_gga(x1, x2, x3)  =  waysA_in_gga(x1, x2)
0  =  0
waysA_out_gga(x1, x2, x3)  =  waysA_out_gga(x1, x2, x3)
[]  =  []
s(x1)  =  s(x1)
.(x1, x2)  =  .(x1, x2)
U1_gga(x1, x2, x3, x4, x5)  =  U1_gga(x1, x2, x3, x5)
pB_in_gaggaaa(x1, x2, x3, x4, x5, x6, x7)  =  pB_in_gaggaaa(x1, x3, x4)
U11_gaggaaa(x1, x2, x3, x4, x5, x6, x7, x8)  =  U11_gaggaaa(x1, x3, x4, x8)
plusE_in_gag(x1, x2, x3)  =  plusE_in_gag(x1, x3)
U4_gag(x1, x2)  =  U4_gag(x1, x2)
natD_in_g(x1)  =  natD_in_g(x1)
natD_out_g(x1)  =  natD_out_g(x1)
U3_g(x1, x2)  =  U3_g(x1, x2)
plusE_out_gag(x1, x2, x3)  =  plusE_out_gag(x1, x2, x3)
U5_gag(x1, x2, x3, x4)  =  U5_gag(x1, x3, x4)
U12_gaggaaa(x1, x2, x3, x4, x5, x6, x7, x8)  =  U12_gaggaaa(x1, x2, x3, x4, x8)
pI_in_ggaggaa(x1, x2, x3, x4, x5, x6, x7)  =  pI_in_ggaggaa(x1, x2, x4, x5)
U13_ggaggaa(x1, x2, x3, x4, x5, x6, x7, x8)  =  U13_ggaggaa(x1, x2, x4, x5, x8)
U2_gga(x1, x2, x3, x4, x5)  =  U2_gga(x1, x2, x3, x5)
pC_in_gagga(x1, x2, x3, x4, x5)  =  pC_in_gagga(x1, x3, x4)
U17_gagga(x1, x2, x3, x4, x5, x6)  =  U17_gagga(x1, x3, x4, x6)
plusH_in_gag(x1, x2, x3)  =  plusH_in_gag(x1, x3)
U10_gag(x1, x2, x3, x4)  =  U10_gag(x1, x3, x4)
plusG_in_gag(x1, x2, x3)  =  plusG_in_gag(x1, x3)
U8_gag(x1, x2)  =  U8_gag(x1, x2)
plusG_out_gag(x1, x2, x3)  =  plusG_out_gag(x1, x2, x3)
U9_gag(x1, x2, x3, x4)  =  U9_gag(x1, x3, x4)
plusH_out_gag(x1, x2, x3)  =  plusH_out_gag(x1, x2, x3)
U18_gagga(x1, x2, x3, x4, x5, x6)  =  U18_gagga(x1, x2, x3, x4, x6)
pC_out_gagga(x1, x2, x3, x4, x5)  =  pC_out_gagga(x1, x2, x3, x4, x5)
U14_ggaggaa(x1, x2, x3, x4, x5, x6, x7, x8)  =  U14_ggaggaa(x1, x2, x3, x4, x5, x8)
pJ_in_gggaga(x1, x2, x3, x4, x5, x6)  =  pJ_in_gggaga(x1, x2, x3, x5)
U15_gggaga(x1, x2, x3, x4, x5, x6, x7)  =  U15_gggaga(x1, x2, x3, x5, x7)
U16_gggaga(x1, x2, x3, x4, x5, x6, x7)  =  U16_gggaga(x1, x2, x3, x4, x5, x7)
plusF_in_gga(x1, x2, x3)  =  plusF_in_gga(x1, x2)
U6_gga(x1, x2)  =  U6_gga(x1, x2)
plusF_out_gga(x1, x2, x3)  =  plusF_out_gga(x1, x2, x3)
U7_gga(x1, x2, x3, x4)  =  U7_gga(x1, x2, x4)
pJ_out_gggaga(x1, x2, x3, x4, x5, x6)  =  pJ_out_gggaga(x1, x2, x3, x4, x5, x6)
pI_out_ggaggaa(x1, x2, x3, x4, x5, x6, x7)  =  pI_out_ggaggaa(x1, x2, x3, x4, x5, x6, x7)
pB_out_gaggaaa(x1, x2, x3, x4, x5, x6, x7)  =  pB_out_gaggaaa(x1, x2, x3, x4, x5, x6, x7)

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

WAYSA_IN_GGA(s(T49), .(s(T48), T33), T35) → U1_GGA(T49, T48, T33, T35, pB_in_gaggaaa(T48, X90, T49, T33, X64, X65, T35))
WAYSA_IN_GGA(s(T49), .(s(T48), T33), T35) → PB_IN_GAGGAAA(T48, X90, T49, T33, X64, X65, T35)
PB_IN_GAGGAAA(T48, T51, T49, T33, X64, X65, T35) → U11_GAGGAAA(T48, T51, T49, T33, X64, X65, T35, plusE_in_gag(T48, T51, T49))
PB_IN_GAGGAAA(T48, T51, T49, T33, X64, X65, T35) → PLUSE_IN_GAG(T48, T51, T49)
PLUSE_IN_GAG(0, T57, T57) → U4_GAG(T57, natD_in_g(T57))
PLUSE_IN_GAG(0, T57, T57) → NATD_IN_G(T57)
NATD_IN_G(s(T60)) → U3_G(T60, natD_in_g(T60))
NATD_IN_G(s(T60)) → NATD_IN_G(T60)
PLUSE_IN_GAG(s(T65), X119, s(T66)) → U5_GAG(T65, X119, T66, plusE_in_gag(T65, X119, T66))
PLUSE_IN_GAG(s(T65), X119, s(T66)) → PLUSE_IN_GAG(T65, X119, T66)
U11_GAGGAAA(T48, T51, T49, T33, X64, X65, T35, plusE_out_gag(T48, T51, T49)) → U12_GAGGAAA(T48, T51, T49, T33, X64, X65, T35, pI_in_ggaggaa(T49, T33, X64, T51, T48, X65, T35))
U11_GAGGAAA(T48, T51, T49, T33, X64, X65, T35, plusE_out_gag(T48, T51, T49)) → PI_IN_GGAGGAA(T49, T33, X64, T51, T48, X65, T35)
PI_IN_GGAGGAA(T49, T33, T68, T51, T48, X65, T35) → U13_GGAGGAA(T49, T33, T68, T51, T48, X65, T35, waysA_in_gga(s(T49), T33, T68))
PI_IN_GGAGGAA(T49, T33, T68, T51, T48, X65, T35) → WAYSA_IN_GGA(s(T49), T33, T68)
WAYSA_IN_GGA(s(T110), .(s(T105), T106), T108) → U2_GGA(T110, T105, T106, T108, pC_in_gagga(T110, X161, T105, T106, T108))
WAYSA_IN_GGA(s(T110), .(s(T105), T106), T108) → PC_IN_GAGGA(T110, X161, T105, T106, T108)
PC_IN_GAGGA(T110, T111, T105, T106, T108) → U17_GAGGA(T110, T111, T105, T106, T108, plusH_in_gag(T110, T111, T105))
PC_IN_GAGGA(T110, T111, T105, T106, T108) → PLUSH_IN_GAG(T110, T111, T105)
PLUSH_IN_GAG(T117, X178, T118) → U10_GAG(T117, X178, T118, plusG_in_gag(T117, X178, T118))
PLUSH_IN_GAG(T117, X178, T118) → PLUSG_IN_GAG(T117, X178, T118)
PLUSG_IN_GAG(0, T124, s(T124)) → U8_GAG(T124, natD_in_g(s(T124)))
PLUSG_IN_GAG(0, T124, s(T124)) → NATD_IN_G(s(T124))
PLUSG_IN_GAG(s(T129), X202, s(T130)) → U9_GAG(T129, X202, T130, plusG_in_gag(T129, X202, T130))
PLUSG_IN_GAG(s(T129), X202, s(T130)) → PLUSG_IN_GAG(T129, X202, T130)
U17_GAGGA(T110, T111, T105, T106, T108, plusH_out_gag(T110, T111, T105)) → U18_GAGGA(T110, T111, T105, T106, T108, waysA_in_gga(s(T110), T106, T108))
U17_GAGGA(T110, T111, T105, T106, T108, plusH_out_gag(T110, T111, T105)) → WAYSA_IN_GGA(s(T110), T106, T108)
U13_GGAGGAA(T49, T33, T68, T51, T48, X65, T35, waysA_out_gga(s(T49), T33, T68)) → U14_GGAGGAA(T49, T33, T68, T51, T48, X65, T35, pJ_in_gggaga(T51, T48, T33, X65, T68, T35))
U13_GGAGGAA(T49, T33, T68, T51, T48, X65, T35, waysA_out_gga(s(T49), T33, T68)) → PJ_IN_GGGAGA(T51, T48, T33, X65, T68, T35)
PJ_IN_GGGAGA(T51, T48, T33, T73, T68, T35) → U15_GGGAGA(T51, T48, T33, T73, T68, T35, waysA_in_gga(T51, .(s(T48), T33), T73))
PJ_IN_GGGAGA(T51, T48, T33, T73, T68, T35) → WAYSA_IN_GGA(T51, .(s(T48), T33), T73)
U15_GGGAGA(T51, T48, T33, T73, T68, T35, waysA_out_gga(T51, .(s(T48), T33), T73)) → U16_GGGAGA(T51, T48, T33, T73, T68, T35, plusF_in_gga(T68, T73, T35))
U15_GGGAGA(T51, T48, T33, T73, T68, T35, waysA_out_gga(T51, .(s(T48), T33), T73)) → PLUSF_IN_GGA(T68, T73, T35)
PLUSF_IN_GGA(0, T83, T83) → U6_GGA(T83, natD_in_g(T83))
PLUSF_IN_GGA(0, T83, T83) → NATD_IN_G(T83)
PLUSF_IN_GGA(s(T90), T91, s(T93)) → U7_GGA(T90, T91, T93, plusF_in_gga(T90, T91, T93))
PLUSF_IN_GGA(s(T90), T91, s(T93)) → PLUSF_IN_GGA(T90, T91, T93)

The TRS R consists of the following rules:

waysA_in_gga(0, T5, s(0)) → waysA_out_gga(0, T5, s(0))
waysA_in_gga(0, [], 0) → waysA_out_gga(0, [], 0)
waysA_in_gga(T24, [], 0) → waysA_out_gga(T24, [], 0)
waysA_in_gga(s(T49), .(s(T48), T33), T35) → U1_gga(T49, T48, T33, T35, pB_in_gaggaaa(T48, X90, T49, T33, X64, X65, T35))
pB_in_gaggaaa(T48, T51, T49, T33, X64, X65, T35) → U11_gaggaaa(T48, T51, T49, T33, X64, X65, T35, plusE_in_gag(T48, T51, T49))
plusE_in_gag(0, T57, T57) → U4_gag(T57, natD_in_g(T57))
natD_in_g(0) → natD_out_g(0)
natD_in_g(s(T60)) → U3_g(T60, natD_in_g(T60))
U3_g(T60, natD_out_g(T60)) → natD_out_g(s(T60))
U4_gag(T57, natD_out_g(T57)) → plusE_out_gag(0, T57, T57)
plusE_in_gag(s(T65), X119, s(T66)) → U5_gag(T65, X119, T66, plusE_in_gag(T65, X119, T66))
U5_gag(T65, X119, T66, plusE_out_gag(T65, X119, T66)) → plusE_out_gag(s(T65), X119, s(T66))
U11_gaggaaa(T48, T51, T49, T33, X64, X65, T35, plusE_out_gag(T48, T51, T49)) → U12_gaggaaa(T48, T51, T49, T33, X64, X65, T35, pI_in_ggaggaa(T49, T33, X64, T51, T48, X65, T35))
pI_in_ggaggaa(T49, T33, T68, T51, T48, X65, T35) → U13_ggaggaa(T49, T33, T68, T51, T48, X65, T35, waysA_in_gga(s(T49), T33, T68))
waysA_in_gga(s(T110), .(s(T105), T106), T108) → U2_gga(T110, T105, T106, T108, pC_in_gagga(T110, X161, T105, T106, T108))
pC_in_gagga(T110, T111, T105, T106, T108) → U17_gagga(T110, T111, T105, T106, T108, plusH_in_gag(T110, T111, T105))
plusH_in_gag(T117, X178, T118) → U10_gag(T117, X178, T118, plusG_in_gag(T117, X178, T118))
plusG_in_gag(0, T124, s(T124)) → U8_gag(T124, natD_in_g(s(T124)))
U8_gag(T124, natD_out_g(s(T124))) → plusG_out_gag(0, T124, s(T124))
plusG_in_gag(s(T129), X202, s(T130)) → U9_gag(T129, X202, T130, plusG_in_gag(T129, X202, T130))
U9_gag(T129, X202, T130, plusG_out_gag(T129, X202, T130)) → plusG_out_gag(s(T129), X202, s(T130))
U10_gag(T117, X178, T118, plusG_out_gag(T117, X178, T118)) → plusH_out_gag(T117, X178, T118)
U17_gagga(T110, T111, T105, T106, T108, plusH_out_gag(T110, T111, T105)) → U18_gagga(T110, T111, T105, T106, T108, waysA_in_gga(s(T110), T106, T108))
U18_gagga(T110, T111, T105, T106, T108, waysA_out_gga(s(T110), T106, T108)) → pC_out_gagga(T110, T111, T105, T106, T108)
U2_gga(T110, T105, T106, T108, pC_out_gagga(T110, X161, T105, T106, T108)) → waysA_out_gga(s(T110), .(s(T105), T106), T108)
U13_ggaggaa(T49, T33, T68, T51, T48, X65, T35, waysA_out_gga(s(T49), T33, T68)) → U14_ggaggaa(T49, T33, T68, T51, T48, X65, T35, pJ_in_gggaga(T51, T48, T33, X65, T68, T35))
pJ_in_gggaga(T51, T48, T33, T73, T68, T35) → U15_gggaga(T51, T48, T33, T73, T68, T35, waysA_in_gga(T51, .(s(T48), T33), T73))
U15_gggaga(T51, T48, T33, T73, T68, T35, waysA_out_gga(T51, .(s(T48), T33), T73)) → U16_gggaga(T51, T48, T33, T73, T68, T35, plusF_in_gga(T68, T73, T35))
plusF_in_gga(0, T83, T83) → U6_gga(T83, natD_in_g(T83))
U6_gga(T83, natD_out_g(T83)) → plusF_out_gga(0, T83, T83)
plusF_in_gga(s(T90), T91, s(T93)) → U7_gga(T90, T91, T93, plusF_in_gga(T90, T91, T93))
U7_gga(T90, T91, T93, plusF_out_gga(T90, T91, T93)) → plusF_out_gga(s(T90), T91, s(T93))
U16_gggaga(T51, T48, T33, T73, T68, T35, plusF_out_gga(T68, T73, T35)) → pJ_out_gggaga(T51, T48, T33, T73, T68, T35)
U14_ggaggaa(T49, T33, T68, T51, T48, X65, T35, pJ_out_gggaga(T51, T48, T33, X65, T68, T35)) → pI_out_ggaggaa(T49, T33, T68, T51, T48, X65, T35)
U12_gaggaaa(T48, T51, T49, T33, X64, X65, T35, pI_out_ggaggaa(T49, T33, X64, T51, T48, X65, T35)) → pB_out_gaggaaa(T48, T51, T49, T33, X64, X65, T35)
U1_gga(T49, T48, T33, T35, pB_out_gaggaaa(T48, X90, T49, T33, X64, X65, T35)) → waysA_out_gga(s(T49), .(s(T48), T33), T35)

The argument filtering Pi contains the following mapping:
waysA_in_gga(x1, x2, x3)  =  waysA_in_gga(x1, x2)
0  =  0
waysA_out_gga(x1, x2, x3)  =  waysA_out_gga(x1, x2, x3)
[]  =  []
s(x1)  =  s(x1)
.(x1, x2)  =  .(x1, x2)
U1_gga(x1, x2, x3, x4, x5)  =  U1_gga(x1, x2, x3, x5)
pB_in_gaggaaa(x1, x2, x3, x4, x5, x6, x7)  =  pB_in_gaggaaa(x1, x3, x4)
U11_gaggaaa(x1, x2, x3, x4, x5, x6, x7, x8)  =  U11_gaggaaa(x1, x3, x4, x8)
plusE_in_gag(x1, x2, x3)  =  plusE_in_gag(x1, x3)
U4_gag(x1, x2)  =  U4_gag(x1, x2)
natD_in_g(x1)  =  natD_in_g(x1)
natD_out_g(x1)  =  natD_out_g(x1)
U3_g(x1, x2)  =  U3_g(x1, x2)
plusE_out_gag(x1, x2, x3)  =  plusE_out_gag(x1, x2, x3)
U5_gag(x1, x2, x3, x4)  =  U5_gag(x1, x3, x4)
U12_gaggaaa(x1, x2, x3, x4, x5, x6, x7, x8)  =  U12_gaggaaa(x1, x2, x3, x4, x8)
pI_in_ggaggaa(x1, x2, x3, x4, x5, x6, x7)  =  pI_in_ggaggaa(x1, x2, x4, x5)
U13_ggaggaa(x1, x2, x3, x4, x5, x6, x7, x8)  =  U13_ggaggaa(x1, x2, x4, x5, x8)
U2_gga(x1, x2, x3, x4, x5)  =  U2_gga(x1, x2, x3, x5)
pC_in_gagga(x1, x2, x3, x4, x5)  =  pC_in_gagga(x1, x3, x4)
U17_gagga(x1, x2, x3, x4, x5, x6)  =  U17_gagga(x1, x3, x4, x6)
plusH_in_gag(x1, x2, x3)  =  plusH_in_gag(x1, x3)
U10_gag(x1, x2, x3, x4)  =  U10_gag(x1, x3, x4)
plusG_in_gag(x1, x2, x3)  =  plusG_in_gag(x1, x3)
U8_gag(x1, x2)  =  U8_gag(x1, x2)
plusG_out_gag(x1, x2, x3)  =  plusG_out_gag(x1, x2, x3)
U9_gag(x1, x2, x3, x4)  =  U9_gag(x1, x3, x4)
plusH_out_gag(x1, x2, x3)  =  plusH_out_gag(x1, x2, x3)
U18_gagga(x1, x2, x3, x4, x5, x6)  =  U18_gagga(x1, x2, x3, x4, x6)
pC_out_gagga(x1, x2, x3, x4, x5)  =  pC_out_gagga(x1, x2, x3, x4, x5)
U14_ggaggaa(x1, x2, x3, x4, x5, x6, x7, x8)  =  U14_ggaggaa(x1, x2, x3, x4, x5, x8)
pJ_in_gggaga(x1, x2, x3, x4, x5, x6)  =  pJ_in_gggaga(x1, x2, x3, x5)
U15_gggaga(x1, x2, x3, x4, x5, x6, x7)  =  U15_gggaga(x1, x2, x3, x5, x7)
U16_gggaga(x1, x2, x3, x4, x5, x6, x7)  =  U16_gggaga(x1, x2, x3, x4, x5, x7)
plusF_in_gga(x1, x2, x3)  =  plusF_in_gga(x1, x2)
U6_gga(x1, x2)  =  U6_gga(x1, x2)
plusF_out_gga(x1, x2, x3)  =  plusF_out_gga(x1, x2, x3)
U7_gga(x1, x2, x3, x4)  =  U7_gga(x1, x2, x4)
pJ_out_gggaga(x1, x2, x3, x4, x5, x6)  =  pJ_out_gggaga(x1, x2, x3, x4, x5, x6)
pI_out_ggaggaa(x1, x2, x3, x4, x5, x6, x7)  =  pI_out_ggaggaa(x1, x2, x3, x4, x5, x6, x7)
pB_out_gaggaaa(x1, x2, x3, x4, x5, x6, x7)  =  pB_out_gaggaaa(x1, x2, x3, x4, x5, x6, x7)
WAYSA_IN_GGA(x1, x2, x3)  =  WAYSA_IN_GGA(x1, x2)
U1_GGA(x1, x2, x3, x4, x5)  =  U1_GGA(x1, x2, x3, x5)
PB_IN_GAGGAAA(x1, x2, x3, x4, x5, x6, x7)  =  PB_IN_GAGGAAA(x1, x3, x4)
U11_GAGGAAA(x1, x2, x3, x4, x5, x6, x7, x8)  =  U11_GAGGAAA(x1, x3, x4, x8)
PLUSE_IN_GAG(x1, x2, x3)  =  PLUSE_IN_GAG(x1, x3)
U4_GAG(x1, x2)  =  U4_GAG(x1, x2)
NATD_IN_G(x1)  =  NATD_IN_G(x1)
U3_G(x1, x2)  =  U3_G(x1, x2)
U5_GAG(x1, x2, x3, x4)  =  U5_GAG(x1, x3, x4)
U12_GAGGAAA(x1, x2, x3, x4, x5, x6, x7, x8)  =  U12_GAGGAAA(x1, x2, x3, x4, x8)
PI_IN_GGAGGAA(x1, x2, x3, x4, x5, x6, x7)  =  PI_IN_GGAGGAA(x1, x2, x4, x5)
U13_GGAGGAA(x1, x2, x3, x4, x5, x6, x7, x8)  =  U13_GGAGGAA(x1, x2, x4, x5, x8)
U2_GGA(x1, x2, x3, x4, x5)  =  U2_GGA(x1, x2, x3, x5)
PC_IN_GAGGA(x1, x2, x3, x4, x5)  =  PC_IN_GAGGA(x1, x3, x4)
U17_GAGGA(x1, x2, x3, x4, x5, x6)  =  U17_GAGGA(x1, x3, x4, x6)
PLUSH_IN_GAG(x1, x2, x3)  =  PLUSH_IN_GAG(x1, x3)
U10_GAG(x1, x2, x3, x4)  =  U10_GAG(x1, x3, x4)
PLUSG_IN_GAG(x1, x2, x3)  =  PLUSG_IN_GAG(x1, x3)
U8_GAG(x1, x2)  =  U8_GAG(x1, x2)
U9_GAG(x1, x2, x3, x4)  =  U9_GAG(x1, x3, x4)
U18_GAGGA(x1, x2, x3, x4, x5, x6)  =  U18_GAGGA(x1, x2, x3, x4, x6)
U14_GGAGGAA(x1, x2, x3, x4, x5, x6, x7, x8)  =  U14_GGAGGAA(x1, x2, x3, x4, x5, x8)
PJ_IN_GGGAGA(x1, x2, x3, x4, x5, x6)  =  PJ_IN_GGGAGA(x1, x2, x3, x5)
U15_GGGAGA(x1, x2, x3, x4, x5, x6, x7)  =  U15_GGGAGA(x1, x2, x3, x5, x7)
U16_GGGAGA(x1, x2, x3, x4, x5, x6, x7)  =  U16_GGGAGA(x1, x2, x3, x4, x5, x7)
PLUSF_IN_GGA(x1, x2, x3)  =  PLUSF_IN_GGA(x1, x2)
U6_GGA(x1, x2)  =  U6_GGA(x1, x2)
U7_GGA(x1, x2, x3, x4)  =  U7_GGA(x1, x2, x4)

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

(4) Obligation:

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

WAYSA_IN_GGA(s(T49), .(s(T48), T33), T35) → U1_GGA(T49, T48, T33, T35, pB_in_gaggaaa(T48, X90, T49, T33, X64, X65, T35))
WAYSA_IN_GGA(s(T49), .(s(T48), T33), T35) → PB_IN_GAGGAAA(T48, X90, T49, T33, X64, X65, T35)
PB_IN_GAGGAAA(T48, T51, T49, T33, X64, X65, T35) → U11_GAGGAAA(T48, T51, T49, T33, X64, X65, T35, plusE_in_gag(T48, T51, T49))
PB_IN_GAGGAAA(T48, T51, T49, T33, X64, X65, T35) → PLUSE_IN_GAG(T48, T51, T49)
PLUSE_IN_GAG(0, T57, T57) → U4_GAG(T57, natD_in_g(T57))
PLUSE_IN_GAG(0, T57, T57) → NATD_IN_G(T57)
NATD_IN_G(s(T60)) → U3_G(T60, natD_in_g(T60))
NATD_IN_G(s(T60)) → NATD_IN_G(T60)
PLUSE_IN_GAG(s(T65), X119, s(T66)) → U5_GAG(T65, X119, T66, plusE_in_gag(T65, X119, T66))
PLUSE_IN_GAG(s(T65), X119, s(T66)) → PLUSE_IN_GAG(T65, X119, T66)
U11_GAGGAAA(T48, T51, T49, T33, X64, X65, T35, plusE_out_gag(T48, T51, T49)) → U12_GAGGAAA(T48, T51, T49, T33, X64, X65, T35, pI_in_ggaggaa(T49, T33, X64, T51, T48, X65, T35))
U11_GAGGAAA(T48, T51, T49, T33, X64, X65, T35, plusE_out_gag(T48, T51, T49)) → PI_IN_GGAGGAA(T49, T33, X64, T51, T48, X65, T35)
PI_IN_GGAGGAA(T49, T33, T68, T51, T48, X65, T35) → U13_GGAGGAA(T49, T33, T68, T51, T48, X65, T35, waysA_in_gga(s(T49), T33, T68))
PI_IN_GGAGGAA(T49, T33, T68, T51, T48, X65, T35) → WAYSA_IN_GGA(s(T49), T33, T68)
WAYSA_IN_GGA(s(T110), .(s(T105), T106), T108) → U2_GGA(T110, T105, T106, T108, pC_in_gagga(T110, X161, T105, T106, T108))
WAYSA_IN_GGA(s(T110), .(s(T105), T106), T108) → PC_IN_GAGGA(T110, X161, T105, T106, T108)
PC_IN_GAGGA(T110, T111, T105, T106, T108) → U17_GAGGA(T110, T111, T105, T106, T108, plusH_in_gag(T110, T111, T105))
PC_IN_GAGGA(T110, T111, T105, T106, T108) → PLUSH_IN_GAG(T110, T111, T105)
PLUSH_IN_GAG(T117, X178, T118) → U10_GAG(T117, X178, T118, plusG_in_gag(T117, X178, T118))
PLUSH_IN_GAG(T117, X178, T118) → PLUSG_IN_GAG(T117, X178, T118)
PLUSG_IN_GAG(0, T124, s(T124)) → U8_GAG(T124, natD_in_g(s(T124)))
PLUSG_IN_GAG(0, T124, s(T124)) → NATD_IN_G(s(T124))
PLUSG_IN_GAG(s(T129), X202, s(T130)) → U9_GAG(T129, X202, T130, plusG_in_gag(T129, X202, T130))
PLUSG_IN_GAG(s(T129), X202, s(T130)) → PLUSG_IN_GAG(T129, X202, T130)
U17_GAGGA(T110, T111, T105, T106, T108, plusH_out_gag(T110, T111, T105)) → U18_GAGGA(T110, T111, T105, T106, T108, waysA_in_gga(s(T110), T106, T108))
U17_GAGGA(T110, T111, T105, T106, T108, plusH_out_gag(T110, T111, T105)) → WAYSA_IN_GGA(s(T110), T106, T108)
U13_GGAGGAA(T49, T33, T68, T51, T48, X65, T35, waysA_out_gga(s(T49), T33, T68)) → U14_GGAGGAA(T49, T33, T68, T51, T48, X65, T35, pJ_in_gggaga(T51, T48, T33, X65, T68, T35))
U13_GGAGGAA(T49, T33, T68, T51, T48, X65, T35, waysA_out_gga(s(T49), T33, T68)) → PJ_IN_GGGAGA(T51, T48, T33, X65, T68, T35)
PJ_IN_GGGAGA(T51, T48, T33, T73, T68, T35) → U15_GGGAGA(T51, T48, T33, T73, T68, T35, waysA_in_gga(T51, .(s(T48), T33), T73))
PJ_IN_GGGAGA(T51, T48, T33, T73, T68, T35) → WAYSA_IN_GGA(T51, .(s(T48), T33), T73)
U15_GGGAGA(T51, T48, T33, T73, T68, T35, waysA_out_gga(T51, .(s(T48), T33), T73)) → U16_GGGAGA(T51, T48, T33, T73, T68, T35, plusF_in_gga(T68, T73, T35))
U15_GGGAGA(T51, T48, T33, T73, T68, T35, waysA_out_gga(T51, .(s(T48), T33), T73)) → PLUSF_IN_GGA(T68, T73, T35)
PLUSF_IN_GGA(0, T83, T83) → U6_GGA(T83, natD_in_g(T83))
PLUSF_IN_GGA(0, T83, T83) → NATD_IN_G(T83)
PLUSF_IN_GGA(s(T90), T91, s(T93)) → U7_GGA(T90, T91, T93, plusF_in_gga(T90, T91, T93))
PLUSF_IN_GGA(s(T90), T91, s(T93)) → PLUSF_IN_GGA(T90, T91, T93)

The TRS R consists of the following rules:

waysA_in_gga(0, T5, s(0)) → waysA_out_gga(0, T5, s(0))
waysA_in_gga(0, [], 0) → waysA_out_gga(0, [], 0)
waysA_in_gga(T24, [], 0) → waysA_out_gga(T24, [], 0)
waysA_in_gga(s(T49), .(s(T48), T33), T35) → U1_gga(T49, T48, T33, T35, pB_in_gaggaaa(T48, X90, T49, T33, X64, X65, T35))
pB_in_gaggaaa(T48, T51, T49, T33, X64, X65, T35) → U11_gaggaaa(T48, T51, T49, T33, X64, X65, T35, plusE_in_gag(T48, T51, T49))
plusE_in_gag(0, T57, T57) → U4_gag(T57, natD_in_g(T57))
natD_in_g(0) → natD_out_g(0)
natD_in_g(s(T60)) → U3_g(T60, natD_in_g(T60))
U3_g(T60, natD_out_g(T60)) → natD_out_g(s(T60))
U4_gag(T57, natD_out_g(T57)) → plusE_out_gag(0, T57, T57)
plusE_in_gag(s(T65), X119, s(T66)) → U5_gag(T65, X119, T66, plusE_in_gag(T65, X119, T66))
U5_gag(T65, X119, T66, plusE_out_gag(T65, X119, T66)) → plusE_out_gag(s(T65), X119, s(T66))
U11_gaggaaa(T48, T51, T49, T33, X64, X65, T35, plusE_out_gag(T48, T51, T49)) → U12_gaggaaa(T48, T51, T49, T33, X64, X65, T35, pI_in_ggaggaa(T49, T33, X64, T51, T48, X65, T35))
pI_in_ggaggaa(T49, T33, T68, T51, T48, X65, T35) → U13_ggaggaa(T49, T33, T68, T51, T48, X65, T35, waysA_in_gga(s(T49), T33, T68))
waysA_in_gga(s(T110), .(s(T105), T106), T108) → U2_gga(T110, T105, T106, T108, pC_in_gagga(T110, X161, T105, T106, T108))
pC_in_gagga(T110, T111, T105, T106, T108) → U17_gagga(T110, T111, T105, T106, T108, plusH_in_gag(T110, T111, T105))
plusH_in_gag(T117, X178, T118) → U10_gag(T117, X178, T118, plusG_in_gag(T117, X178, T118))
plusG_in_gag(0, T124, s(T124)) → U8_gag(T124, natD_in_g(s(T124)))
U8_gag(T124, natD_out_g(s(T124))) → plusG_out_gag(0, T124, s(T124))
plusG_in_gag(s(T129), X202, s(T130)) → U9_gag(T129, X202, T130, plusG_in_gag(T129, X202, T130))
U9_gag(T129, X202, T130, plusG_out_gag(T129, X202, T130)) → plusG_out_gag(s(T129), X202, s(T130))
U10_gag(T117, X178, T118, plusG_out_gag(T117, X178, T118)) → plusH_out_gag(T117, X178, T118)
U17_gagga(T110, T111, T105, T106, T108, plusH_out_gag(T110, T111, T105)) → U18_gagga(T110, T111, T105, T106, T108, waysA_in_gga(s(T110), T106, T108))
U18_gagga(T110, T111, T105, T106, T108, waysA_out_gga(s(T110), T106, T108)) → pC_out_gagga(T110, T111, T105, T106, T108)
U2_gga(T110, T105, T106, T108, pC_out_gagga(T110, X161, T105, T106, T108)) → waysA_out_gga(s(T110), .(s(T105), T106), T108)
U13_ggaggaa(T49, T33, T68, T51, T48, X65, T35, waysA_out_gga(s(T49), T33, T68)) → U14_ggaggaa(T49, T33, T68, T51, T48, X65, T35, pJ_in_gggaga(T51, T48, T33, X65, T68, T35))
pJ_in_gggaga(T51, T48, T33, T73, T68, T35) → U15_gggaga(T51, T48, T33, T73, T68, T35, waysA_in_gga(T51, .(s(T48), T33), T73))
U15_gggaga(T51, T48, T33, T73, T68, T35, waysA_out_gga(T51, .(s(T48), T33), T73)) → U16_gggaga(T51, T48, T33, T73, T68, T35, plusF_in_gga(T68, T73, T35))
plusF_in_gga(0, T83, T83) → U6_gga(T83, natD_in_g(T83))
U6_gga(T83, natD_out_g(T83)) → plusF_out_gga(0, T83, T83)
plusF_in_gga(s(T90), T91, s(T93)) → U7_gga(T90, T91, T93, plusF_in_gga(T90, T91, T93))
U7_gga(T90, T91, T93, plusF_out_gga(T90, T91, T93)) → plusF_out_gga(s(T90), T91, s(T93))
U16_gggaga(T51, T48, T33, T73, T68, T35, plusF_out_gga(T68, T73, T35)) → pJ_out_gggaga(T51, T48, T33, T73, T68, T35)
U14_ggaggaa(T49, T33, T68, T51, T48, X65, T35, pJ_out_gggaga(T51, T48, T33, X65, T68, T35)) → pI_out_ggaggaa(T49, T33, T68, T51, T48, X65, T35)
U12_gaggaaa(T48, T51, T49, T33, X64, X65, T35, pI_out_ggaggaa(T49, T33, X64, T51, T48, X65, T35)) → pB_out_gaggaaa(T48, T51, T49, T33, X64, X65, T35)
U1_gga(T49, T48, T33, T35, pB_out_gaggaaa(T48, X90, T49, T33, X64, X65, T35)) → waysA_out_gga(s(T49), .(s(T48), T33), T35)

The argument filtering Pi contains the following mapping:
waysA_in_gga(x1, x2, x3)  =  waysA_in_gga(x1, x2)
0  =  0
waysA_out_gga(x1, x2, x3)  =  waysA_out_gga(x1, x2, x3)
[]  =  []
s(x1)  =  s(x1)
.(x1, x2)  =  .(x1, x2)
U1_gga(x1, x2, x3, x4, x5)  =  U1_gga(x1, x2, x3, x5)
pB_in_gaggaaa(x1, x2, x3, x4, x5, x6, x7)  =  pB_in_gaggaaa(x1, x3, x4)
U11_gaggaaa(x1, x2, x3, x4, x5, x6, x7, x8)  =  U11_gaggaaa(x1, x3, x4, x8)
plusE_in_gag(x1, x2, x3)  =  plusE_in_gag(x1, x3)
U4_gag(x1, x2)  =  U4_gag(x1, x2)
natD_in_g(x1)  =  natD_in_g(x1)
natD_out_g(x1)  =  natD_out_g(x1)
U3_g(x1, x2)  =  U3_g(x1, x2)
plusE_out_gag(x1, x2, x3)  =  plusE_out_gag(x1, x2, x3)
U5_gag(x1, x2, x3, x4)  =  U5_gag(x1, x3, x4)
U12_gaggaaa(x1, x2, x3, x4, x5, x6, x7, x8)  =  U12_gaggaaa(x1, x2, x3, x4, x8)
pI_in_ggaggaa(x1, x2, x3, x4, x5, x6, x7)  =  pI_in_ggaggaa(x1, x2, x4, x5)
U13_ggaggaa(x1, x2, x3, x4, x5, x6, x7, x8)  =  U13_ggaggaa(x1, x2, x4, x5, x8)
U2_gga(x1, x2, x3, x4, x5)  =  U2_gga(x1, x2, x3, x5)
pC_in_gagga(x1, x2, x3, x4, x5)  =  pC_in_gagga(x1, x3, x4)
U17_gagga(x1, x2, x3, x4, x5, x6)  =  U17_gagga(x1, x3, x4, x6)
plusH_in_gag(x1, x2, x3)  =  plusH_in_gag(x1, x3)
U10_gag(x1, x2, x3, x4)  =  U10_gag(x1, x3, x4)
plusG_in_gag(x1, x2, x3)  =  plusG_in_gag(x1, x3)
U8_gag(x1, x2)  =  U8_gag(x1, x2)
plusG_out_gag(x1, x2, x3)  =  plusG_out_gag(x1, x2, x3)
U9_gag(x1, x2, x3, x4)  =  U9_gag(x1, x3, x4)
plusH_out_gag(x1, x2, x3)  =  plusH_out_gag(x1, x2, x3)
U18_gagga(x1, x2, x3, x4, x5, x6)  =  U18_gagga(x1, x2, x3, x4, x6)
pC_out_gagga(x1, x2, x3, x4, x5)  =  pC_out_gagga(x1, x2, x3, x4, x5)
U14_ggaggaa(x1, x2, x3, x4, x5, x6, x7, x8)  =  U14_ggaggaa(x1, x2, x3, x4, x5, x8)
pJ_in_gggaga(x1, x2, x3, x4, x5, x6)  =  pJ_in_gggaga(x1, x2, x3, x5)
U15_gggaga(x1, x2, x3, x4, x5, x6, x7)  =  U15_gggaga(x1, x2, x3, x5, x7)
U16_gggaga(x1, x2, x3, x4, x5, x6, x7)  =  U16_gggaga(x1, x2, x3, x4, x5, x7)
plusF_in_gga(x1, x2, x3)  =  plusF_in_gga(x1, x2)
U6_gga(x1, x2)  =  U6_gga(x1, x2)
plusF_out_gga(x1, x2, x3)  =  plusF_out_gga(x1, x2, x3)
U7_gga(x1, x2, x3, x4)  =  U7_gga(x1, x2, x4)
pJ_out_gggaga(x1, x2, x3, x4, x5, x6)  =  pJ_out_gggaga(x1, x2, x3, x4, x5, x6)
pI_out_ggaggaa(x1, x2, x3, x4, x5, x6, x7)  =  pI_out_ggaggaa(x1, x2, x3, x4, x5, x6, x7)
pB_out_gaggaaa(x1, x2, x3, x4, x5, x6, x7)  =  pB_out_gaggaaa(x1, x2, x3, x4, x5, x6, x7)
WAYSA_IN_GGA(x1, x2, x3)  =  WAYSA_IN_GGA(x1, x2)
U1_GGA(x1, x2, x3, x4, x5)  =  U1_GGA(x1, x2, x3, x5)
PB_IN_GAGGAAA(x1, x2, x3, x4, x5, x6, x7)  =  PB_IN_GAGGAAA(x1, x3, x4)
U11_GAGGAAA(x1, x2, x3, x4, x5, x6, x7, x8)  =  U11_GAGGAAA(x1, x3, x4, x8)
PLUSE_IN_GAG(x1, x2, x3)  =  PLUSE_IN_GAG(x1, x3)
U4_GAG(x1, x2)  =  U4_GAG(x1, x2)
NATD_IN_G(x1)  =  NATD_IN_G(x1)
U3_G(x1, x2)  =  U3_G(x1, x2)
U5_GAG(x1, x2, x3, x4)  =  U5_GAG(x1, x3, x4)
U12_GAGGAAA(x1, x2, x3, x4, x5, x6, x7, x8)  =  U12_GAGGAAA(x1, x2, x3, x4, x8)
PI_IN_GGAGGAA(x1, x2, x3, x4, x5, x6, x7)  =  PI_IN_GGAGGAA(x1, x2, x4, x5)
U13_GGAGGAA(x1, x2, x3, x4, x5, x6, x7, x8)  =  U13_GGAGGAA(x1, x2, x4, x5, x8)
U2_GGA(x1, x2, x3, x4, x5)  =  U2_GGA(x1, x2, x3, x5)
PC_IN_GAGGA(x1, x2, x3, x4, x5)  =  PC_IN_GAGGA(x1, x3, x4)
U17_GAGGA(x1, x2, x3, x4, x5, x6)  =  U17_GAGGA(x1, x3, x4, x6)
PLUSH_IN_GAG(x1, x2, x3)  =  PLUSH_IN_GAG(x1, x3)
U10_GAG(x1, x2, x3, x4)  =  U10_GAG(x1, x3, x4)
PLUSG_IN_GAG(x1, x2, x3)  =  PLUSG_IN_GAG(x1, x3)
U8_GAG(x1, x2)  =  U8_GAG(x1, x2)
U9_GAG(x1, x2, x3, x4)  =  U9_GAG(x1, x3, x4)
U18_GAGGA(x1, x2, x3, x4, x5, x6)  =  U18_GAGGA(x1, x2, x3, x4, x6)
U14_GGAGGAA(x1, x2, x3, x4, x5, x6, x7, x8)  =  U14_GGAGGAA(x1, x2, x3, x4, x5, x8)
PJ_IN_GGGAGA(x1, x2, x3, x4, x5, x6)  =  PJ_IN_GGGAGA(x1, x2, x3, x5)
U15_GGGAGA(x1, x2, x3, x4, x5, x6, x7)  =  U15_GGGAGA(x1, x2, x3, x5, x7)
U16_GGGAGA(x1, x2, x3, x4, x5, x6, x7)  =  U16_GGGAGA(x1, x2, x3, x4, x5, x7)
PLUSF_IN_GGA(x1, x2, x3)  =  PLUSF_IN_GGA(x1, x2)
U6_GGA(x1, x2)  =  U6_GGA(x1, x2)
U7_GGA(x1, x2, x3, x4)  =  U7_GGA(x1, x2, x4)

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

(5) DependencyGraphProof (EQUIVALENT transformation)

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

(6) Complex Obligation (AND)

(7) Obligation:

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

NATD_IN_G(s(T60)) → NATD_IN_G(T60)

The TRS R consists of the following rules:

waysA_in_gga(0, T5, s(0)) → waysA_out_gga(0, T5, s(0))
waysA_in_gga(0, [], 0) → waysA_out_gga(0, [], 0)
waysA_in_gga(T24, [], 0) → waysA_out_gga(T24, [], 0)
waysA_in_gga(s(T49), .(s(T48), T33), T35) → U1_gga(T49, T48, T33, T35, pB_in_gaggaaa(T48, X90, T49, T33, X64, X65, T35))
pB_in_gaggaaa(T48, T51, T49, T33, X64, X65, T35) → U11_gaggaaa(T48, T51, T49, T33, X64, X65, T35, plusE_in_gag(T48, T51, T49))
plusE_in_gag(0, T57, T57) → U4_gag(T57, natD_in_g(T57))
natD_in_g(0) → natD_out_g(0)
natD_in_g(s(T60)) → U3_g(T60, natD_in_g(T60))
U3_g(T60, natD_out_g(T60)) → natD_out_g(s(T60))
U4_gag(T57, natD_out_g(T57)) → plusE_out_gag(0, T57, T57)
plusE_in_gag(s(T65), X119, s(T66)) → U5_gag(T65, X119, T66, plusE_in_gag(T65, X119, T66))
U5_gag(T65, X119, T66, plusE_out_gag(T65, X119, T66)) → plusE_out_gag(s(T65), X119, s(T66))
U11_gaggaaa(T48, T51, T49, T33, X64, X65, T35, plusE_out_gag(T48, T51, T49)) → U12_gaggaaa(T48, T51, T49, T33, X64, X65, T35, pI_in_ggaggaa(T49, T33, X64, T51, T48, X65, T35))
pI_in_ggaggaa(T49, T33, T68, T51, T48, X65, T35) → U13_ggaggaa(T49, T33, T68, T51, T48, X65, T35, waysA_in_gga(s(T49), T33, T68))
waysA_in_gga(s(T110), .(s(T105), T106), T108) → U2_gga(T110, T105, T106, T108, pC_in_gagga(T110, X161, T105, T106, T108))
pC_in_gagga(T110, T111, T105, T106, T108) → U17_gagga(T110, T111, T105, T106, T108, plusH_in_gag(T110, T111, T105))
plusH_in_gag(T117, X178, T118) → U10_gag(T117, X178, T118, plusG_in_gag(T117, X178, T118))
plusG_in_gag(0, T124, s(T124)) → U8_gag(T124, natD_in_g(s(T124)))
U8_gag(T124, natD_out_g(s(T124))) → plusG_out_gag(0, T124, s(T124))
plusG_in_gag(s(T129), X202, s(T130)) → U9_gag(T129, X202, T130, plusG_in_gag(T129, X202, T130))
U9_gag(T129, X202, T130, plusG_out_gag(T129, X202, T130)) → plusG_out_gag(s(T129), X202, s(T130))
U10_gag(T117, X178, T118, plusG_out_gag(T117, X178, T118)) → plusH_out_gag(T117, X178, T118)
U17_gagga(T110, T111, T105, T106, T108, plusH_out_gag(T110, T111, T105)) → U18_gagga(T110, T111, T105, T106, T108, waysA_in_gga(s(T110), T106, T108))
U18_gagga(T110, T111, T105, T106, T108, waysA_out_gga(s(T110), T106, T108)) → pC_out_gagga(T110, T111, T105, T106, T108)
U2_gga(T110, T105, T106, T108, pC_out_gagga(T110, X161, T105, T106, T108)) → waysA_out_gga(s(T110), .(s(T105), T106), T108)
U13_ggaggaa(T49, T33, T68, T51, T48, X65, T35, waysA_out_gga(s(T49), T33, T68)) → U14_ggaggaa(T49, T33, T68, T51, T48, X65, T35, pJ_in_gggaga(T51, T48, T33, X65, T68, T35))
pJ_in_gggaga(T51, T48, T33, T73, T68, T35) → U15_gggaga(T51, T48, T33, T73, T68, T35, waysA_in_gga(T51, .(s(T48), T33), T73))
U15_gggaga(T51, T48, T33, T73, T68, T35, waysA_out_gga(T51, .(s(T48), T33), T73)) → U16_gggaga(T51, T48, T33, T73, T68, T35, plusF_in_gga(T68, T73, T35))
plusF_in_gga(0, T83, T83) → U6_gga(T83, natD_in_g(T83))
U6_gga(T83, natD_out_g(T83)) → plusF_out_gga(0, T83, T83)
plusF_in_gga(s(T90), T91, s(T93)) → U7_gga(T90, T91, T93, plusF_in_gga(T90, T91, T93))
U7_gga(T90, T91, T93, plusF_out_gga(T90, T91, T93)) → plusF_out_gga(s(T90), T91, s(T93))
U16_gggaga(T51, T48, T33, T73, T68, T35, plusF_out_gga(T68, T73, T35)) → pJ_out_gggaga(T51, T48, T33, T73, T68, T35)
U14_ggaggaa(T49, T33, T68, T51, T48, X65, T35, pJ_out_gggaga(T51, T48, T33, X65, T68, T35)) → pI_out_ggaggaa(T49, T33, T68, T51, T48, X65, T35)
U12_gaggaaa(T48, T51, T49, T33, X64, X65, T35, pI_out_ggaggaa(T49, T33, X64, T51, T48, X65, T35)) → pB_out_gaggaaa(T48, T51, T49, T33, X64, X65, T35)
U1_gga(T49, T48, T33, T35, pB_out_gaggaaa(T48, X90, T49, T33, X64, X65, T35)) → waysA_out_gga(s(T49), .(s(T48), T33), T35)

The argument filtering Pi contains the following mapping:
waysA_in_gga(x1, x2, x3)  =  waysA_in_gga(x1, x2)
0  =  0
waysA_out_gga(x1, x2, x3)  =  waysA_out_gga(x1, x2, x3)
[]  =  []
s(x1)  =  s(x1)
.(x1, x2)  =  .(x1, x2)
U1_gga(x1, x2, x3, x4, x5)  =  U1_gga(x1, x2, x3, x5)
pB_in_gaggaaa(x1, x2, x3, x4, x5, x6, x7)  =  pB_in_gaggaaa(x1, x3, x4)
U11_gaggaaa(x1, x2, x3, x4, x5, x6, x7, x8)  =  U11_gaggaaa(x1, x3, x4, x8)
plusE_in_gag(x1, x2, x3)  =  plusE_in_gag(x1, x3)
U4_gag(x1, x2)  =  U4_gag(x1, x2)
natD_in_g(x1)  =  natD_in_g(x1)
natD_out_g(x1)  =  natD_out_g(x1)
U3_g(x1, x2)  =  U3_g(x1, x2)
plusE_out_gag(x1, x2, x3)  =  plusE_out_gag(x1, x2, x3)
U5_gag(x1, x2, x3, x4)  =  U5_gag(x1, x3, x4)
U12_gaggaaa(x1, x2, x3, x4, x5, x6, x7, x8)  =  U12_gaggaaa(x1, x2, x3, x4, x8)
pI_in_ggaggaa(x1, x2, x3, x4, x5, x6, x7)  =  pI_in_ggaggaa(x1, x2, x4, x5)
U13_ggaggaa(x1, x2, x3, x4, x5, x6, x7, x8)  =  U13_ggaggaa(x1, x2, x4, x5, x8)
U2_gga(x1, x2, x3, x4, x5)  =  U2_gga(x1, x2, x3, x5)
pC_in_gagga(x1, x2, x3, x4, x5)  =  pC_in_gagga(x1, x3, x4)
U17_gagga(x1, x2, x3, x4, x5, x6)  =  U17_gagga(x1, x3, x4, x6)
plusH_in_gag(x1, x2, x3)  =  plusH_in_gag(x1, x3)
U10_gag(x1, x2, x3, x4)  =  U10_gag(x1, x3, x4)
plusG_in_gag(x1, x2, x3)  =  plusG_in_gag(x1, x3)
U8_gag(x1, x2)  =  U8_gag(x1, x2)
plusG_out_gag(x1, x2, x3)  =  plusG_out_gag(x1, x2, x3)
U9_gag(x1, x2, x3, x4)  =  U9_gag(x1, x3, x4)
plusH_out_gag(x1, x2, x3)  =  plusH_out_gag(x1, x2, x3)
U18_gagga(x1, x2, x3, x4, x5, x6)  =  U18_gagga(x1, x2, x3, x4, x6)
pC_out_gagga(x1, x2, x3, x4, x5)  =  pC_out_gagga(x1, x2, x3, x4, x5)
U14_ggaggaa(x1, x2, x3, x4, x5, x6, x7, x8)  =  U14_ggaggaa(x1, x2, x3, x4, x5, x8)
pJ_in_gggaga(x1, x2, x3, x4, x5, x6)  =  pJ_in_gggaga(x1, x2, x3, x5)
U15_gggaga(x1, x2, x3, x4, x5, x6, x7)  =  U15_gggaga(x1, x2, x3, x5, x7)
U16_gggaga(x1, x2, x3, x4, x5, x6, x7)  =  U16_gggaga(x1, x2, x3, x4, x5, x7)
plusF_in_gga(x1, x2, x3)  =  plusF_in_gga(x1, x2)
U6_gga(x1, x2)  =  U6_gga(x1, x2)
plusF_out_gga(x1, x2, x3)  =  plusF_out_gga(x1, x2, x3)
U7_gga(x1, x2, x3, x4)  =  U7_gga(x1, x2, x4)
pJ_out_gggaga(x1, x2, x3, x4, x5, x6)  =  pJ_out_gggaga(x1, x2, x3, x4, x5, x6)
pI_out_ggaggaa(x1, x2, x3, x4, x5, x6, x7)  =  pI_out_ggaggaa(x1, x2, x3, x4, x5, x6, x7)
pB_out_gaggaaa(x1, x2, x3, x4, x5, x6, x7)  =  pB_out_gaggaaa(x1, x2, x3, x4, x5, x6, x7)
NATD_IN_G(x1)  =  NATD_IN_G(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:

NATD_IN_G(s(T60)) → NATD_IN_G(T60)

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

(10) PiDPToQDPProof (EQUIVALENT transformation)

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

(11) Obligation:

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

NATD_IN_G(s(T60)) → NATD_IN_G(T60)

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:

  • NATD_IN_G(s(T60)) → NATD_IN_G(T60)
    The graph contains the following edges 1 > 1

(13) YES

(14) Obligation:

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

PLUSF_IN_GGA(s(T90), T91, s(T93)) → PLUSF_IN_GGA(T90, T91, T93)

The TRS R consists of the following rules:

waysA_in_gga(0, T5, s(0)) → waysA_out_gga(0, T5, s(0))
waysA_in_gga(0, [], 0) → waysA_out_gga(0, [], 0)
waysA_in_gga(T24, [], 0) → waysA_out_gga(T24, [], 0)
waysA_in_gga(s(T49), .(s(T48), T33), T35) → U1_gga(T49, T48, T33, T35, pB_in_gaggaaa(T48, X90, T49, T33, X64, X65, T35))
pB_in_gaggaaa(T48, T51, T49, T33, X64, X65, T35) → U11_gaggaaa(T48, T51, T49, T33, X64, X65, T35, plusE_in_gag(T48, T51, T49))
plusE_in_gag(0, T57, T57) → U4_gag(T57, natD_in_g(T57))
natD_in_g(0) → natD_out_g(0)
natD_in_g(s(T60)) → U3_g(T60, natD_in_g(T60))
U3_g(T60, natD_out_g(T60)) → natD_out_g(s(T60))
U4_gag(T57, natD_out_g(T57)) → plusE_out_gag(0, T57, T57)
plusE_in_gag(s(T65), X119, s(T66)) → U5_gag(T65, X119, T66, plusE_in_gag(T65, X119, T66))
U5_gag(T65, X119, T66, plusE_out_gag(T65, X119, T66)) → plusE_out_gag(s(T65), X119, s(T66))
U11_gaggaaa(T48, T51, T49, T33, X64, X65, T35, plusE_out_gag(T48, T51, T49)) → U12_gaggaaa(T48, T51, T49, T33, X64, X65, T35, pI_in_ggaggaa(T49, T33, X64, T51, T48, X65, T35))
pI_in_ggaggaa(T49, T33, T68, T51, T48, X65, T35) → U13_ggaggaa(T49, T33, T68, T51, T48, X65, T35, waysA_in_gga(s(T49), T33, T68))
waysA_in_gga(s(T110), .(s(T105), T106), T108) → U2_gga(T110, T105, T106, T108, pC_in_gagga(T110, X161, T105, T106, T108))
pC_in_gagga(T110, T111, T105, T106, T108) → U17_gagga(T110, T111, T105, T106, T108, plusH_in_gag(T110, T111, T105))
plusH_in_gag(T117, X178, T118) → U10_gag(T117, X178, T118, plusG_in_gag(T117, X178, T118))
plusG_in_gag(0, T124, s(T124)) → U8_gag(T124, natD_in_g(s(T124)))
U8_gag(T124, natD_out_g(s(T124))) → plusG_out_gag(0, T124, s(T124))
plusG_in_gag(s(T129), X202, s(T130)) → U9_gag(T129, X202, T130, plusG_in_gag(T129, X202, T130))
U9_gag(T129, X202, T130, plusG_out_gag(T129, X202, T130)) → plusG_out_gag(s(T129), X202, s(T130))
U10_gag(T117, X178, T118, plusG_out_gag(T117, X178, T118)) → plusH_out_gag(T117, X178, T118)
U17_gagga(T110, T111, T105, T106, T108, plusH_out_gag(T110, T111, T105)) → U18_gagga(T110, T111, T105, T106, T108, waysA_in_gga(s(T110), T106, T108))
U18_gagga(T110, T111, T105, T106, T108, waysA_out_gga(s(T110), T106, T108)) → pC_out_gagga(T110, T111, T105, T106, T108)
U2_gga(T110, T105, T106, T108, pC_out_gagga(T110, X161, T105, T106, T108)) → waysA_out_gga(s(T110), .(s(T105), T106), T108)
U13_ggaggaa(T49, T33, T68, T51, T48, X65, T35, waysA_out_gga(s(T49), T33, T68)) → U14_ggaggaa(T49, T33, T68, T51, T48, X65, T35, pJ_in_gggaga(T51, T48, T33, X65, T68, T35))
pJ_in_gggaga(T51, T48, T33, T73, T68, T35) → U15_gggaga(T51, T48, T33, T73, T68, T35, waysA_in_gga(T51, .(s(T48), T33), T73))
U15_gggaga(T51, T48, T33, T73, T68, T35, waysA_out_gga(T51, .(s(T48), T33), T73)) → U16_gggaga(T51, T48, T33, T73, T68, T35, plusF_in_gga(T68, T73, T35))
plusF_in_gga(0, T83, T83) → U6_gga(T83, natD_in_g(T83))
U6_gga(T83, natD_out_g(T83)) → plusF_out_gga(0, T83, T83)
plusF_in_gga(s(T90), T91, s(T93)) → U7_gga(T90, T91, T93, plusF_in_gga(T90, T91, T93))
U7_gga(T90, T91, T93, plusF_out_gga(T90, T91, T93)) → plusF_out_gga(s(T90), T91, s(T93))
U16_gggaga(T51, T48, T33, T73, T68, T35, plusF_out_gga(T68, T73, T35)) → pJ_out_gggaga(T51, T48, T33, T73, T68, T35)
U14_ggaggaa(T49, T33, T68, T51, T48, X65, T35, pJ_out_gggaga(T51, T48, T33, X65, T68, T35)) → pI_out_ggaggaa(T49, T33, T68, T51, T48, X65, T35)
U12_gaggaaa(T48, T51, T49, T33, X64, X65, T35, pI_out_ggaggaa(T49, T33, X64, T51, T48, X65, T35)) → pB_out_gaggaaa(T48, T51, T49, T33, X64, X65, T35)
U1_gga(T49, T48, T33, T35, pB_out_gaggaaa(T48, X90, T49, T33, X64, X65, T35)) → waysA_out_gga(s(T49), .(s(T48), T33), T35)

The argument filtering Pi contains the following mapping:
waysA_in_gga(x1, x2, x3)  =  waysA_in_gga(x1, x2)
0  =  0
waysA_out_gga(x1, x2, x3)  =  waysA_out_gga(x1, x2, x3)
[]  =  []
s(x1)  =  s(x1)
.(x1, x2)  =  .(x1, x2)
U1_gga(x1, x2, x3, x4, x5)  =  U1_gga(x1, x2, x3, x5)
pB_in_gaggaaa(x1, x2, x3, x4, x5, x6, x7)  =  pB_in_gaggaaa(x1, x3, x4)
U11_gaggaaa(x1, x2, x3, x4, x5, x6, x7, x8)  =  U11_gaggaaa(x1, x3, x4, x8)
plusE_in_gag(x1, x2, x3)  =  plusE_in_gag(x1, x3)
U4_gag(x1, x2)  =  U4_gag(x1, x2)
natD_in_g(x1)  =  natD_in_g(x1)
natD_out_g(x1)  =  natD_out_g(x1)
U3_g(x1, x2)  =  U3_g(x1, x2)
plusE_out_gag(x1, x2, x3)  =  plusE_out_gag(x1, x2, x3)
U5_gag(x1, x2, x3, x4)  =  U5_gag(x1, x3, x4)
U12_gaggaaa(x1, x2, x3, x4, x5, x6, x7, x8)  =  U12_gaggaaa(x1, x2, x3, x4, x8)
pI_in_ggaggaa(x1, x2, x3, x4, x5, x6, x7)  =  pI_in_ggaggaa(x1, x2, x4, x5)
U13_ggaggaa(x1, x2, x3, x4, x5, x6, x7, x8)  =  U13_ggaggaa(x1, x2, x4, x5, x8)
U2_gga(x1, x2, x3, x4, x5)  =  U2_gga(x1, x2, x3, x5)
pC_in_gagga(x1, x2, x3, x4, x5)  =  pC_in_gagga(x1, x3, x4)
U17_gagga(x1, x2, x3, x4, x5, x6)  =  U17_gagga(x1, x3, x4, x6)
plusH_in_gag(x1, x2, x3)  =  plusH_in_gag(x1, x3)
U10_gag(x1, x2, x3, x4)  =  U10_gag(x1, x3, x4)
plusG_in_gag(x1, x2, x3)  =  plusG_in_gag(x1, x3)
U8_gag(x1, x2)  =  U8_gag(x1, x2)
plusG_out_gag(x1, x2, x3)  =  plusG_out_gag(x1, x2, x3)
U9_gag(x1, x2, x3, x4)  =  U9_gag(x1, x3, x4)
plusH_out_gag(x1, x2, x3)  =  plusH_out_gag(x1, x2, x3)
U18_gagga(x1, x2, x3, x4, x5, x6)  =  U18_gagga(x1, x2, x3, x4, x6)
pC_out_gagga(x1, x2, x3, x4, x5)  =  pC_out_gagga(x1, x2, x3, x4, x5)
U14_ggaggaa(x1, x2, x3, x4, x5, x6, x7, x8)  =  U14_ggaggaa(x1, x2, x3, x4, x5, x8)
pJ_in_gggaga(x1, x2, x3, x4, x5, x6)  =  pJ_in_gggaga(x1, x2, x3, x5)
U15_gggaga(x1, x2, x3, x4, x5, x6, x7)  =  U15_gggaga(x1, x2, x3, x5, x7)
U16_gggaga(x1, x2, x3, x4, x5, x6, x7)  =  U16_gggaga(x1, x2, x3, x4, x5, x7)
plusF_in_gga(x1, x2, x3)  =  plusF_in_gga(x1, x2)
U6_gga(x1, x2)  =  U6_gga(x1, x2)
plusF_out_gga(x1, x2, x3)  =  plusF_out_gga(x1, x2, x3)
U7_gga(x1, x2, x3, x4)  =  U7_gga(x1, x2, x4)
pJ_out_gggaga(x1, x2, x3, x4, x5, x6)  =  pJ_out_gggaga(x1, x2, x3, x4, x5, x6)
pI_out_ggaggaa(x1, x2, x3, x4, x5, x6, x7)  =  pI_out_ggaggaa(x1, x2, x3, x4, x5, x6, x7)
pB_out_gaggaaa(x1, x2, x3, x4, x5, x6, x7)  =  pB_out_gaggaaa(x1, x2, x3, x4, x5, x6, x7)
PLUSF_IN_GGA(x1, x2, x3)  =  PLUSF_IN_GGA(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:

PLUSF_IN_GGA(s(T90), T91, s(T93)) → PLUSF_IN_GGA(T90, T91, T93)

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

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

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

PLUSF_IN_GGA(s(T90), T91) → PLUSF_IN_GGA(T90, T91)

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:

  • PLUSF_IN_GGA(s(T90), T91) → PLUSF_IN_GGA(T90, T91)
    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:

PLUSG_IN_GAG(s(T129), X202, s(T130)) → PLUSG_IN_GAG(T129, X202, T130)

The TRS R consists of the following rules:

waysA_in_gga(0, T5, s(0)) → waysA_out_gga(0, T5, s(0))
waysA_in_gga(0, [], 0) → waysA_out_gga(0, [], 0)
waysA_in_gga(T24, [], 0) → waysA_out_gga(T24, [], 0)
waysA_in_gga(s(T49), .(s(T48), T33), T35) → U1_gga(T49, T48, T33, T35, pB_in_gaggaaa(T48, X90, T49, T33, X64, X65, T35))
pB_in_gaggaaa(T48, T51, T49, T33, X64, X65, T35) → U11_gaggaaa(T48, T51, T49, T33, X64, X65, T35, plusE_in_gag(T48, T51, T49))
plusE_in_gag(0, T57, T57) → U4_gag(T57, natD_in_g(T57))
natD_in_g(0) → natD_out_g(0)
natD_in_g(s(T60)) → U3_g(T60, natD_in_g(T60))
U3_g(T60, natD_out_g(T60)) → natD_out_g(s(T60))
U4_gag(T57, natD_out_g(T57)) → plusE_out_gag(0, T57, T57)
plusE_in_gag(s(T65), X119, s(T66)) → U5_gag(T65, X119, T66, plusE_in_gag(T65, X119, T66))
U5_gag(T65, X119, T66, plusE_out_gag(T65, X119, T66)) → plusE_out_gag(s(T65), X119, s(T66))
U11_gaggaaa(T48, T51, T49, T33, X64, X65, T35, plusE_out_gag(T48, T51, T49)) → U12_gaggaaa(T48, T51, T49, T33, X64, X65, T35, pI_in_ggaggaa(T49, T33, X64, T51, T48, X65, T35))
pI_in_ggaggaa(T49, T33, T68, T51, T48, X65, T35) → U13_ggaggaa(T49, T33, T68, T51, T48, X65, T35, waysA_in_gga(s(T49), T33, T68))
waysA_in_gga(s(T110), .(s(T105), T106), T108) → U2_gga(T110, T105, T106, T108, pC_in_gagga(T110, X161, T105, T106, T108))
pC_in_gagga(T110, T111, T105, T106, T108) → U17_gagga(T110, T111, T105, T106, T108, plusH_in_gag(T110, T111, T105))
plusH_in_gag(T117, X178, T118) → U10_gag(T117, X178, T118, plusG_in_gag(T117, X178, T118))
plusG_in_gag(0, T124, s(T124)) → U8_gag(T124, natD_in_g(s(T124)))
U8_gag(T124, natD_out_g(s(T124))) → plusG_out_gag(0, T124, s(T124))
plusG_in_gag(s(T129), X202, s(T130)) → U9_gag(T129, X202, T130, plusG_in_gag(T129, X202, T130))
U9_gag(T129, X202, T130, plusG_out_gag(T129, X202, T130)) → plusG_out_gag(s(T129), X202, s(T130))
U10_gag(T117, X178, T118, plusG_out_gag(T117, X178, T118)) → plusH_out_gag(T117, X178, T118)
U17_gagga(T110, T111, T105, T106, T108, plusH_out_gag(T110, T111, T105)) → U18_gagga(T110, T111, T105, T106, T108, waysA_in_gga(s(T110), T106, T108))
U18_gagga(T110, T111, T105, T106, T108, waysA_out_gga(s(T110), T106, T108)) → pC_out_gagga(T110, T111, T105, T106, T108)
U2_gga(T110, T105, T106, T108, pC_out_gagga(T110, X161, T105, T106, T108)) → waysA_out_gga(s(T110), .(s(T105), T106), T108)
U13_ggaggaa(T49, T33, T68, T51, T48, X65, T35, waysA_out_gga(s(T49), T33, T68)) → U14_ggaggaa(T49, T33, T68, T51, T48, X65, T35, pJ_in_gggaga(T51, T48, T33, X65, T68, T35))
pJ_in_gggaga(T51, T48, T33, T73, T68, T35) → U15_gggaga(T51, T48, T33, T73, T68, T35, waysA_in_gga(T51, .(s(T48), T33), T73))
U15_gggaga(T51, T48, T33, T73, T68, T35, waysA_out_gga(T51, .(s(T48), T33), T73)) → U16_gggaga(T51, T48, T33, T73, T68, T35, plusF_in_gga(T68, T73, T35))
plusF_in_gga(0, T83, T83) → U6_gga(T83, natD_in_g(T83))
U6_gga(T83, natD_out_g(T83)) → plusF_out_gga(0, T83, T83)
plusF_in_gga(s(T90), T91, s(T93)) → U7_gga(T90, T91, T93, plusF_in_gga(T90, T91, T93))
U7_gga(T90, T91, T93, plusF_out_gga(T90, T91, T93)) → plusF_out_gga(s(T90), T91, s(T93))
U16_gggaga(T51, T48, T33, T73, T68, T35, plusF_out_gga(T68, T73, T35)) → pJ_out_gggaga(T51, T48, T33, T73, T68, T35)
U14_ggaggaa(T49, T33, T68, T51, T48, X65, T35, pJ_out_gggaga(T51, T48, T33, X65, T68, T35)) → pI_out_ggaggaa(T49, T33, T68, T51, T48, X65, T35)
U12_gaggaaa(T48, T51, T49, T33, X64, X65, T35, pI_out_ggaggaa(T49, T33, X64, T51, T48, X65, T35)) → pB_out_gaggaaa(T48, T51, T49, T33, X64, X65, T35)
U1_gga(T49, T48, T33, T35, pB_out_gaggaaa(T48, X90, T49, T33, X64, X65, T35)) → waysA_out_gga(s(T49), .(s(T48), T33), T35)

The argument filtering Pi contains the following mapping:
waysA_in_gga(x1, x2, x3)  =  waysA_in_gga(x1, x2)
0  =  0
waysA_out_gga(x1, x2, x3)  =  waysA_out_gga(x1, x2, x3)
[]  =  []
s(x1)  =  s(x1)
.(x1, x2)  =  .(x1, x2)
U1_gga(x1, x2, x3, x4, x5)  =  U1_gga(x1, x2, x3, x5)
pB_in_gaggaaa(x1, x2, x3, x4, x5, x6, x7)  =  pB_in_gaggaaa(x1, x3, x4)
U11_gaggaaa(x1, x2, x3, x4, x5, x6, x7, x8)  =  U11_gaggaaa(x1, x3, x4, x8)
plusE_in_gag(x1, x2, x3)  =  plusE_in_gag(x1, x3)
U4_gag(x1, x2)  =  U4_gag(x1, x2)
natD_in_g(x1)  =  natD_in_g(x1)
natD_out_g(x1)  =  natD_out_g(x1)
U3_g(x1, x2)  =  U3_g(x1, x2)
plusE_out_gag(x1, x2, x3)  =  plusE_out_gag(x1, x2, x3)
U5_gag(x1, x2, x3, x4)  =  U5_gag(x1, x3, x4)
U12_gaggaaa(x1, x2, x3, x4, x5, x6, x7, x8)  =  U12_gaggaaa(x1, x2, x3, x4, x8)
pI_in_ggaggaa(x1, x2, x3, x4, x5, x6, x7)  =  pI_in_ggaggaa(x1, x2, x4, x5)
U13_ggaggaa(x1, x2, x3, x4, x5, x6, x7, x8)  =  U13_ggaggaa(x1, x2, x4, x5, x8)
U2_gga(x1, x2, x3, x4, x5)  =  U2_gga(x1, x2, x3, x5)
pC_in_gagga(x1, x2, x3, x4, x5)  =  pC_in_gagga(x1, x3, x4)
U17_gagga(x1, x2, x3, x4, x5, x6)  =  U17_gagga(x1, x3, x4, x6)
plusH_in_gag(x1, x2, x3)  =  plusH_in_gag(x1, x3)
U10_gag(x1, x2, x3, x4)  =  U10_gag(x1, x3, x4)
plusG_in_gag(x1, x2, x3)  =  plusG_in_gag(x1, x3)
U8_gag(x1, x2)  =  U8_gag(x1, x2)
plusG_out_gag(x1, x2, x3)  =  plusG_out_gag(x1, x2, x3)
U9_gag(x1, x2, x3, x4)  =  U9_gag(x1, x3, x4)
plusH_out_gag(x1, x2, x3)  =  plusH_out_gag(x1, x2, x3)
U18_gagga(x1, x2, x3, x4, x5, x6)  =  U18_gagga(x1, x2, x3, x4, x6)
pC_out_gagga(x1, x2, x3, x4, x5)  =  pC_out_gagga(x1, x2, x3, x4, x5)
U14_ggaggaa(x1, x2, x3, x4, x5, x6, x7, x8)  =  U14_ggaggaa(x1, x2, x3, x4, x5, x8)
pJ_in_gggaga(x1, x2, x3, x4, x5, x6)  =  pJ_in_gggaga(x1, x2, x3, x5)
U15_gggaga(x1, x2, x3, x4, x5, x6, x7)  =  U15_gggaga(x1, x2, x3, x5, x7)
U16_gggaga(x1, x2, x3, x4, x5, x6, x7)  =  U16_gggaga(x1, x2, x3, x4, x5, x7)
plusF_in_gga(x1, x2, x3)  =  plusF_in_gga(x1, x2)
U6_gga(x1, x2)  =  U6_gga(x1, x2)
plusF_out_gga(x1, x2, x3)  =  plusF_out_gga(x1, x2, x3)
U7_gga(x1, x2, x3, x4)  =  U7_gga(x1, x2, x4)
pJ_out_gggaga(x1, x2, x3, x4, x5, x6)  =  pJ_out_gggaga(x1, x2, x3, x4, x5, x6)
pI_out_ggaggaa(x1, x2, x3, x4, x5, x6, x7)  =  pI_out_ggaggaa(x1, x2, x3, x4, x5, x6, x7)
pB_out_gaggaaa(x1, x2, x3, x4, x5, x6, x7)  =  pB_out_gaggaaa(x1, x2, x3, x4, x5, x6, x7)
PLUSG_IN_GAG(x1, x2, x3)  =  PLUSG_IN_GAG(x1, x3)

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:

PLUSG_IN_GAG(s(T129), X202, s(T130)) → PLUSG_IN_GAG(T129, X202, T130)

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

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

(24) PiDPToQDPProof (SOUND transformation)

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

(25) Obligation:

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

PLUSG_IN_GAG(s(T129), s(T130)) → PLUSG_IN_GAG(T129, T130)

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

(26) QDPSizeChangeProof (EQUIVALENT transformation)

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

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

  • PLUSG_IN_GAG(s(T129), s(T130)) → PLUSG_IN_GAG(T129, T130)
    The graph contains the following edges 1 > 1, 2 > 2

(27) YES

(28) Obligation:

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

PLUSE_IN_GAG(s(T65), X119, s(T66)) → PLUSE_IN_GAG(T65, X119, T66)

The TRS R consists of the following rules:

waysA_in_gga(0, T5, s(0)) → waysA_out_gga(0, T5, s(0))
waysA_in_gga(0, [], 0) → waysA_out_gga(0, [], 0)
waysA_in_gga(T24, [], 0) → waysA_out_gga(T24, [], 0)
waysA_in_gga(s(T49), .(s(T48), T33), T35) → U1_gga(T49, T48, T33, T35, pB_in_gaggaaa(T48, X90, T49, T33, X64, X65, T35))
pB_in_gaggaaa(T48, T51, T49, T33, X64, X65, T35) → U11_gaggaaa(T48, T51, T49, T33, X64, X65, T35, plusE_in_gag(T48, T51, T49))
plusE_in_gag(0, T57, T57) → U4_gag(T57, natD_in_g(T57))
natD_in_g(0) → natD_out_g(0)
natD_in_g(s(T60)) → U3_g(T60, natD_in_g(T60))
U3_g(T60, natD_out_g(T60)) → natD_out_g(s(T60))
U4_gag(T57, natD_out_g(T57)) → plusE_out_gag(0, T57, T57)
plusE_in_gag(s(T65), X119, s(T66)) → U5_gag(T65, X119, T66, plusE_in_gag(T65, X119, T66))
U5_gag(T65, X119, T66, plusE_out_gag(T65, X119, T66)) → plusE_out_gag(s(T65), X119, s(T66))
U11_gaggaaa(T48, T51, T49, T33, X64, X65, T35, plusE_out_gag(T48, T51, T49)) → U12_gaggaaa(T48, T51, T49, T33, X64, X65, T35, pI_in_ggaggaa(T49, T33, X64, T51, T48, X65, T35))
pI_in_ggaggaa(T49, T33, T68, T51, T48, X65, T35) → U13_ggaggaa(T49, T33, T68, T51, T48, X65, T35, waysA_in_gga(s(T49), T33, T68))
waysA_in_gga(s(T110), .(s(T105), T106), T108) → U2_gga(T110, T105, T106, T108, pC_in_gagga(T110, X161, T105, T106, T108))
pC_in_gagga(T110, T111, T105, T106, T108) → U17_gagga(T110, T111, T105, T106, T108, plusH_in_gag(T110, T111, T105))
plusH_in_gag(T117, X178, T118) → U10_gag(T117, X178, T118, plusG_in_gag(T117, X178, T118))
plusG_in_gag(0, T124, s(T124)) → U8_gag(T124, natD_in_g(s(T124)))
U8_gag(T124, natD_out_g(s(T124))) → plusG_out_gag(0, T124, s(T124))
plusG_in_gag(s(T129), X202, s(T130)) → U9_gag(T129, X202, T130, plusG_in_gag(T129, X202, T130))
U9_gag(T129, X202, T130, plusG_out_gag(T129, X202, T130)) → plusG_out_gag(s(T129), X202, s(T130))
U10_gag(T117, X178, T118, plusG_out_gag(T117, X178, T118)) → plusH_out_gag(T117, X178, T118)
U17_gagga(T110, T111, T105, T106, T108, plusH_out_gag(T110, T111, T105)) → U18_gagga(T110, T111, T105, T106, T108, waysA_in_gga(s(T110), T106, T108))
U18_gagga(T110, T111, T105, T106, T108, waysA_out_gga(s(T110), T106, T108)) → pC_out_gagga(T110, T111, T105, T106, T108)
U2_gga(T110, T105, T106, T108, pC_out_gagga(T110, X161, T105, T106, T108)) → waysA_out_gga(s(T110), .(s(T105), T106), T108)
U13_ggaggaa(T49, T33, T68, T51, T48, X65, T35, waysA_out_gga(s(T49), T33, T68)) → U14_ggaggaa(T49, T33, T68, T51, T48, X65, T35, pJ_in_gggaga(T51, T48, T33, X65, T68, T35))
pJ_in_gggaga(T51, T48, T33, T73, T68, T35) → U15_gggaga(T51, T48, T33, T73, T68, T35, waysA_in_gga(T51, .(s(T48), T33), T73))
U15_gggaga(T51, T48, T33, T73, T68, T35, waysA_out_gga(T51, .(s(T48), T33), T73)) → U16_gggaga(T51, T48, T33, T73, T68, T35, plusF_in_gga(T68, T73, T35))
plusF_in_gga(0, T83, T83) → U6_gga(T83, natD_in_g(T83))
U6_gga(T83, natD_out_g(T83)) → plusF_out_gga(0, T83, T83)
plusF_in_gga(s(T90), T91, s(T93)) → U7_gga(T90, T91, T93, plusF_in_gga(T90, T91, T93))
U7_gga(T90, T91, T93, plusF_out_gga(T90, T91, T93)) → plusF_out_gga(s(T90), T91, s(T93))
U16_gggaga(T51, T48, T33, T73, T68, T35, plusF_out_gga(T68, T73, T35)) → pJ_out_gggaga(T51, T48, T33, T73, T68, T35)
U14_ggaggaa(T49, T33, T68, T51, T48, X65, T35, pJ_out_gggaga(T51, T48, T33, X65, T68, T35)) → pI_out_ggaggaa(T49, T33, T68, T51, T48, X65, T35)
U12_gaggaaa(T48, T51, T49, T33, X64, X65, T35, pI_out_ggaggaa(T49, T33, X64, T51, T48, X65, T35)) → pB_out_gaggaaa(T48, T51, T49, T33, X64, X65, T35)
U1_gga(T49, T48, T33, T35, pB_out_gaggaaa(T48, X90, T49, T33, X64, X65, T35)) → waysA_out_gga(s(T49), .(s(T48), T33), T35)

The argument filtering Pi contains the following mapping:
waysA_in_gga(x1, x2, x3)  =  waysA_in_gga(x1, x2)
0  =  0
waysA_out_gga(x1, x2, x3)  =  waysA_out_gga(x1, x2, x3)
[]  =  []
s(x1)  =  s(x1)
.(x1, x2)  =  .(x1, x2)
U1_gga(x1, x2, x3, x4, x5)  =  U1_gga(x1, x2, x3, x5)
pB_in_gaggaaa(x1, x2, x3, x4, x5, x6, x7)  =  pB_in_gaggaaa(x1, x3, x4)
U11_gaggaaa(x1, x2, x3, x4, x5, x6, x7, x8)  =  U11_gaggaaa(x1, x3, x4, x8)
plusE_in_gag(x1, x2, x3)  =  plusE_in_gag(x1, x3)
U4_gag(x1, x2)  =  U4_gag(x1, x2)
natD_in_g(x1)  =  natD_in_g(x1)
natD_out_g(x1)  =  natD_out_g(x1)
U3_g(x1, x2)  =  U3_g(x1, x2)
plusE_out_gag(x1, x2, x3)  =  plusE_out_gag(x1, x2, x3)
U5_gag(x1, x2, x3, x4)  =  U5_gag(x1, x3, x4)
U12_gaggaaa(x1, x2, x3, x4, x5, x6, x7, x8)  =  U12_gaggaaa(x1, x2, x3, x4, x8)
pI_in_ggaggaa(x1, x2, x3, x4, x5, x6, x7)  =  pI_in_ggaggaa(x1, x2, x4, x5)
U13_ggaggaa(x1, x2, x3, x4, x5, x6, x7, x8)  =  U13_ggaggaa(x1, x2, x4, x5, x8)
U2_gga(x1, x2, x3, x4, x5)  =  U2_gga(x1, x2, x3, x5)
pC_in_gagga(x1, x2, x3, x4, x5)  =  pC_in_gagga(x1, x3, x4)
U17_gagga(x1, x2, x3, x4, x5, x6)  =  U17_gagga(x1, x3, x4, x6)
plusH_in_gag(x1, x2, x3)  =  plusH_in_gag(x1, x3)
U10_gag(x1, x2, x3, x4)  =  U10_gag(x1, x3, x4)
plusG_in_gag(x1, x2, x3)  =  plusG_in_gag(x1, x3)
U8_gag(x1, x2)  =  U8_gag(x1, x2)
plusG_out_gag(x1, x2, x3)  =  plusG_out_gag(x1, x2, x3)
U9_gag(x1, x2, x3, x4)  =  U9_gag(x1, x3, x4)
plusH_out_gag(x1, x2, x3)  =  plusH_out_gag(x1, x2, x3)
U18_gagga(x1, x2, x3, x4, x5, x6)  =  U18_gagga(x1, x2, x3, x4, x6)
pC_out_gagga(x1, x2, x3, x4, x5)  =  pC_out_gagga(x1, x2, x3, x4, x5)
U14_ggaggaa(x1, x2, x3, x4, x5, x6, x7, x8)  =  U14_ggaggaa(x1, x2, x3, x4, x5, x8)
pJ_in_gggaga(x1, x2, x3, x4, x5, x6)  =  pJ_in_gggaga(x1, x2, x3, x5)
U15_gggaga(x1, x2, x3, x4, x5, x6, x7)  =  U15_gggaga(x1, x2, x3, x5, x7)
U16_gggaga(x1, x2, x3, x4, x5, x6, x7)  =  U16_gggaga(x1, x2, x3, x4, x5, x7)
plusF_in_gga(x1, x2, x3)  =  plusF_in_gga(x1, x2)
U6_gga(x1, x2)  =  U6_gga(x1, x2)
plusF_out_gga(x1, x2, x3)  =  plusF_out_gga(x1, x2, x3)
U7_gga(x1, x2, x3, x4)  =  U7_gga(x1, x2, x4)
pJ_out_gggaga(x1, x2, x3, x4, x5, x6)  =  pJ_out_gggaga(x1, x2, x3, x4, x5, x6)
pI_out_ggaggaa(x1, x2, x3, x4, x5, x6, x7)  =  pI_out_ggaggaa(x1, x2, x3, x4, x5, x6, x7)
pB_out_gaggaaa(x1, x2, x3, x4, x5, x6, x7)  =  pB_out_gaggaaa(x1, x2, x3, x4, x5, x6, x7)
PLUSE_IN_GAG(x1, x2, x3)  =  PLUSE_IN_GAG(x1, x3)

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:

PLUSE_IN_GAG(s(T65), X119, s(T66)) → PLUSE_IN_GAG(T65, X119, T66)

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

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:

PLUSE_IN_GAG(s(T65), s(T66)) → PLUSE_IN_GAG(T65, T66)

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:

  • PLUSE_IN_GAG(s(T65), s(T66)) → PLUSE_IN_GAG(T65, T66)
    The graph contains the following edges 1 > 1, 2 > 2

(34) YES

(35) Obligation:

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

WAYSA_IN_GGA(s(T49), .(s(T48), T33), T35) → PB_IN_GAGGAAA(T48, X90, T49, T33, X64, X65, T35)
PB_IN_GAGGAAA(T48, T51, T49, T33, X64, X65, T35) → U11_GAGGAAA(T48, T51, T49, T33, X64, X65, T35, plusE_in_gag(T48, T51, T49))
U11_GAGGAAA(T48, T51, T49, T33, X64, X65, T35, plusE_out_gag(T48, T51, T49)) → PI_IN_GGAGGAA(T49, T33, X64, T51, T48, X65, T35)
PI_IN_GGAGGAA(T49, T33, T68, T51, T48, X65, T35) → U13_GGAGGAA(T49, T33, T68, T51, T48, X65, T35, waysA_in_gga(s(T49), T33, T68))
U13_GGAGGAA(T49, T33, T68, T51, T48, X65, T35, waysA_out_gga(s(T49), T33, T68)) → PJ_IN_GGGAGA(T51, T48, T33, X65, T68, T35)
PJ_IN_GGGAGA(T51, T48, T33, T73, T68, T35) → WAYSA_IN_GGA(T51, .(s(T48), T33), T73)
WAYSA_IN_GGA(s(T110), .(s(T105), T106), T108) → PC_IN_GAGGA(T110, X161, T105, T106, T108)
PC_IN_GAGGA(T110, T111, T105, T106, T108) → U17_GAGGA(T110, T111, T105, T106, T108, plusH_in_gag(T110, T111, T105))
U17_GAGGA(T110, T111, T105, T106, T108, plusH_out_gag(T110, T111, T105)) → WAYSA_IN_GGA(s(T110), T106, T108)
PI_IN_GGAGGAA(T49, T33, T68, T51, T48, X65, T35) → WAYSA_IN_GGA(s(T49), T33, T68)

The TRS R consists of the following rules:

waysA_in_gga(0, T5, s(0)) → waysA_out_gga(0, T5, s(0))
waysA_in_gga(0, [], 0) → waysA_out_gga(0, [], 0)
waysA_in_gga(T24, [], 0) → waysA_out_gga(T24, [], 0)
waysA_in_gga(s(T49), .(s(T48), T33), T35) → U1_gga(T49, T48, T33, T35, pB_in_gaggaaa(T48, X90, T49, T33, X64, X65, T35))
pB_in_gaggaaa(T48, T51, T49, T33, X64, X65, T35) → U11_gaggaaa(T48, T51, T49, T33, X64, X65, T35, plusE_in_gag(T48, T51, T49))
plusE_in_gag(0, T57, T57) → U4_gag(T57, natD_in_g(T57))
natD_in_g(0) → natD_out_g(0)
natD_in_g(s(T60)) → U3_g(T60, natD_in_g(T60))
U3_g(T60, natD_out_g(T60)) → natD_out_g(s(T60))
U4_gag(T57, natD_out_g(T57)) → plusE_out_gag(0, T57, T57)
plusE_in_gag(s(T65), X119, s(T66)) → U5_gag(T65, X119, T66, plusE_in_gag(T65, X119, T66))
U5_gag(T65, X119, T66, plusE_out_gag(T65, X119, T66)) → plusE_out_gag(s(T65), X119, s(T66))
U11_gaggaaa(T48, T51, T49, T33, X64, X65, T35, plusE_out_gag(T48, T51, T49)) → U12_gaggaaa(T48, T51, T49, T33, X64, X65, T35, pI_in_ggaggaa(T49, T33, X64, T51, T48, X65, T35))
pI_in_ggaggaa(T49, T33, T68, T51, T48, X65, T35) → U13_ggaggaa(T49, T33, T68, T51, T48, X65, T35, waysA_in_gga(s(T49), T33, T68))
waysA_in_gga(s(T110), .(s(T105), T106), T108) → U2_gga(T110, T105, T106, T108, pC_in_gagga(T110, X161, T105, T106, T108))
pC_in_gagga(T110, T111, T105, T106, T108) → U17_gagga(T110, T111, T105, T106, T108, plusH_in_gag(T110, T111, T105))
plusH_in_gag(T117, X178, T118) → U10_gag(T117, X178, T118, plusG_in_gag(T117, X178, T118))
plusG_in_gag(0, T124, s(T124)) → U8_gag(T124, natD_in_g(s(T124)))
U8_gag(T124, natD_out_g(s(T124))) → plusG_out_gag(0, T124, s(T124))
plusG_in_gag(s(T129), X202, s(T130)) → U9_gag(T129, X202, T130, plusG_in_gag(T129, X202, T130))
U9_gag(T129, X202, T130, plusG_out_gag(T129, X202, T130)) → plusG_out_gag(s(T129), X202, s(T130))
U10_gag(T117, X178, T118, plusG_out_gag(T117, X178, T118)) → plusH_out_gag(T117, X178, T118)
U17_gagga(T110, T111, T105, T106, T108, plusH_out_gag(T110, T111, T105)) → U18_gagga(T110, T111, T105, T106, T108, waysA_in_gga(s(T110), T106, T108))
U18_gagga(T110, T111, T105, T106, T108, waysA_out_gga(s(T110), T106, T108)) → pC_out_gagga(T110, T111, T105, T106, T108)
U2_gga(T110, T105, T106, T108, pC_out_gagga(T110, X161, T105, T106, T108)) → waysA_out_gga(s(T110), .(s(T105), T106), T108)
U13_ggaggaa(T49, T33, T68, T51, T48, X65, T35, waysA_out_gga(s(T49), T33, T68)) → U14_ggaggaa(T49, T33, T68, T51, T48, X65, T35, pJ_in_gggaga(T51, T48, T33, X65, T68, T35))
pJ_in_gggaga(T51, T48, T33, T73, T68, T35) → U15_gggaga(T51, T48, T33, T73, T68, T35, waysA_in_gga(T51, .(s(T48), T33), T73))
U15_gggaga(T51, T48, T33, T73, T68, T35, waysA_out_gga(T51, .(s(T48), T33), T73)) → U16_gggaga(T51, T48, T33, T73, T68, T35, plusF_in_gga(T68, T73, T35))
plusF_in_gga(0, T83, T83) → U6_gga(T83, natD_in_g(T83))
U6_gga(T83, natD_out_g(T83)) → plusF_out_gga(0, T83, T83)
plusF_in_gga(s(T90), T91, s(T93)) → U7_gga(T90, T91, T93, plusF_in_gga(T90, T91, T93))
U7_gga(T90, T91, T93, plusF_out_gga(T90, T91, T93)) → plusF_out_gga(s(T90), T91, s(T93))
U16_gggaga(T51, T48, T33, T73, T68, T35, plusF_out_gga(T68, T73, T35)) → pJ_out_gggaga(T51, T48, T33, T73, T68, T35)
U14_ggaggaa(T49, T33, T68, T51, T48, X65, T35, pJ_out_gggaga(T51, T48, T33, X65, T68, T35)) → pI_out_ggaggaa(T49, T33, T68, T51, T48, X65, T35)
U12_gaggaaa(T48, T51, T49, T33, X64, X65, T35, pI_out_ggaggaa(T49, T33, X64, T51, T48, X65, T35)) → pB_out_gaggaaa(T48, T51, T49, T33, X64, X65, T35)
U1_gga(T49, T48, T33, T35, pB_out_gaggaaa(T48, X90, T49, T33, X64, X65, T35)) → waysA_out_gga(s(T49), .(s(T48), T33), T35)

The argument filtering Pi contains the following mapping:
waysA_in_gga(x1, x2, x3)  =  waysA_in_gga(x1, x2)
0  =  0
waysA_out_gga(x1, x2, x3)  =  waysA_out_gga(x1, x2, x3)
[]  =  []
s(x1)  =  s(x1)
.(x1, x2)  =  .(x1, x2)
U1_gga(x1, x2, x3, x4, x5)  =  U1_gga(x1, x2, x3, x5)
pB_in_gaggaaa(x1, x2, x3, x4, x5, x6, x7)  =  pB_in_gaggaaa(x1, x3, x4)
U11_gaggaaa(x1, x2, x3, x4, x5, x6, x7, x8)  =  U11_gaggaaa(x1, x3, x4, x8)
plusE_in_gag(x1, x2, x3)  =  plusE_in_gag(x1, x3)
U4_gag(x1, x2)  =  U4_gag(x1, x2)
natD_in_g(x1)  =  natD_in_g(x1)
natD_out_g(x1)  =  natD_out_g(x1)
U3_g(x1, x2)  =  U3_g(x1, x2)
plusE_out_gag(x1, x2, x3)  =  plusE_out_gag(x1, x2, x3)
U5_gag(x1, x2, x3, x4)  =  U5_gag(x1, x3, x4)
U12_gaggaaa(x1, x2, x3, x4, x5, x6, x7, x8)  =  U12_gaggaaa(x1, x2, x3, x4, x8)
pI_in_ggaggaa(x1, x2, x3, x4, x5, x6, x7)  =  pI_in_ggaggaa(x1, x2, x4, x5)
U13_ggaggaa(x1, x2, x3, x4, x5, x6, x7, x8)  =  U13_ggaggaa(x1, x2, x4, x5, x8)
U2_gga(x1, x2, x3, x4, x5)  =  U2_gga(x1, x2, x3, x5)
pC_in_gagga(x1, x2, x3, x4, x5)  =  pC_in_gagga(x1, x3, x4)
U17_gagga(x1, x2, x3, x4, x5, x6)  =  U17_gagga(x1, x3, x4, x6)
plusH_in_gag(x1, x2, x3)  =  plusH_in_gag(x1, x3)
U10_gag(x1, x2, x3, x4)  =  U10_gag(x1, x3, x4)
plusG_in_gag(x1, x2, x3)  =  plusG_in_gag(x1, x3)
U8_gag(x1, x2)  =  U8_gag(x1, x2)
plusG_out_gag(x1, x2, x3)  =  plusG_out_gag(x1, x2, x3)
U9_gag(x1, x2, x3, x4)  =  U9_gag(x1, x3, x4)
plusH_out_gag(x1, x2, x3)  =  plusH_out_gag(x1, x2, x3)
U18_gagga(x1, x2, x3, x4, x5, x6)  =  U18_gagga(x1, x2, x3, x4, x6)
pC_out_gagga(x1, x2, x3, x4, x5)  =  pC_out_gagga(x1, x2, x3, x4, x5)
U14_ggaggaa(x1, x2, x3, x4, x5, x6, x7, x8)  =  U14_ggaggaa(x1, x2, x3, x4, x5, x8)
pJ_in_gggaga(x1, x2, x3, x4, x5, x6)  =  pJ_in_gggaga(x1, x2, x3, x5)
U15_gggaga(x1, x2, x3, x4, x5, x6, x7)  =  U15_gggaga(x1, x2, x3, x5, x7)
U16_gggaga(x1, x2, x3, x4, x5, x6, x7)  =  U16_gggaga(x1, x2, x3, x4, x5, x7)
plusF_in_gga(x1, x2, x3)  =  plusF_in_gga(x1, x2)
U6_gga(x1, x2)  =  U6_gga(x1, x2)
plusF_out_gga(x1, x2, x3)  =  plusF_out_gga(x1, x2, x3)
U7_gga(x1, x2, x3, x4)  =  U7_gga(x1, x2, x4)
pJ_out_gggaga(x1, x2, x3, x4, x5, x6)  =  pJ_out_gggaga(x1, x2, x3, x4, x5, x6)
pI_out_ggaggaa(x1, x2, x3, x4, x5, x6, x7)  =  pI_out_ggaggaa(x1, x2, x3, x4, x5, x6, x7)
pB_out_gaggaaa(x1, x2, x3, x4, x5, x6, x7)  =  pB_out_gaggaaa(x1, x2, x3, x4, x5, x6, x7)
WAYSA_IN_GGA(x1, x2, x3)  =  WAYSA_IN_GGA(x1, x2)
PB_IN_GAGGAAA(x1, x2, x3, x4, x5, x6, x7)  =  PB_IN_GAGGAAA(x1, x3, x4)
U11_GAGGAAA(x1, x2, x3, x4, x5, x6, x7, x8)  =  U11_GAGGAAA(x1, x3, x4, x8)
PI_IN_GGAGGAA(x1, x2, x3, x4, x5, x6, x7)  =  PI_IN_GGAGGAA(x1, x2, x4, x5)
U13_GGAGGAA(x1, x2, x3, x4, x5, x6, x7, x8)  =  U13_GGAGGAA(x1, x2, x4, x5, x8)
PC_IN_GAGGA(x1, x2, x3, x4, x5)  =  PC_IN_GAGGA(x1, x3, x4)
U17_GAGGA(x1, x2, x3, x4, x5, x6)  =  U17_GAGGA(x1, x3, x4, x6)
PJ_IN_GGGAGA(x1, x2, x3, x4, x5, x6)  =  PJ_IN_GGGAGA(x1, x2, x3, x5)

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

(36) UsableRulesProof (EQUIVALENT transformation)

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

(37) Obligation:

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

WAYSA_IN_GGA(s(T49), .(s(T48), T33), T35) → PB_IN_GAGGAAA(T48, X90, T49, T33, X64, X65, T35)
PB_IN_GAGGAAA(T48, T51, T49, T33, X64, X65, T35) → U11_GAGGAAA(T48, T51, T49, T33, X64, X65, T35, plusE_in_gag(T48, T51, T49))
U11_GAGGAAA(T48, T51, T49, T33, X64, X65, T35, plusE_out_gag(T48, T51, T49)) → PI_IN_GGAGGAA(T49, T33, X64, T51, T48, X65, T35)
PI_IN_GGAGGAA(T49, T33, T68, T51, T48, X65, T35) → U13_GGAGGAA(T49, T33, T68, T51, T48, X65, T35, waysA_in_gga(s(T49), T33, T68))
U13_GGAGGAA(T49, T33, T68, T51, T48, X65, T35, waysA_out_gga(s(T49), T33, T68)) → PJ_IN_GGGAGA(T51, T48, T33, X65, T68, T35)
PJ_IN_GGGAGA(T51, T48, T33, T73, T68, T35) → WAYSA_IN_GGA(T51, .(s(T48), T33), T73)
WAYSA_IN_GGA(s(T110), .(s(T105), T106), T108) → PC_IN_GAGGA(T110, X161, T105, T106, T108)
PC_IN_GAGGA(T110, T111, T105, T106, T108) → U17_GAGGA(T110, T111, T105, T106, T108, plusH_in_gag(T110, T111, T105))
U17_GAGGA(T110, T111, T105, T106, T108, plusH_out_gag(T110, T111, T105)) → WAYSA_IN_GGA(s(T110), T106, T108)
PI_IN_GGAGGAA(T49, T33, T68, T51, T48, X65, T35) → WAYSA_IN_GGA(s(T49), T33, T68)

The TRS R consists of the following rules:

plusE_in_gag(0, T57, T57) → U4_gag(T57, natD_in_g(T57))
plusE_in_gag(s(T65), X119, s(T66)) → U5_gag(T65, X119, T66, plusE_in_gag(T65, X119, T66))
waysA_in_gga(T24, [], 0) → waysA_out_gga(T24, [], 0)
waysA_in_gga(s(T49), .(s(T48), T33), T35) → U1_gga(T49, T48, T33, T35, pB_in_gaggaaa(T48, X90, T49, T33, X64, X65, T35))
waysA_in_gga(s(T110), .(s(T105), T106), T108) → U2_gga(T110, T105, T106, T108, pC_in_gagga(T110, X161, T105, T106, T108))
plusH_in_gag(T117, X178, T118) → U10_gag(T117, X178, T118, plusG_in_gag(T117, X178, T118))
U4_gag(T57, natD_out_g(T57)) → plusE_out_gag(0, T57, T57)
U5_gag(T65, X119, T66, plusE_out_gag(T65, X119, T66)) → plusE_out_gag(s(T65), X119, s(T66))
U1_gga(T49, T48, T33, T35, pB_out_gaggaaa(T48, X90, T49, T33, X64, X65, T35)) → waysA_out_gga(s(T49), .(s(T48), T33), T35)
U2_gga(T110, T105, T106, T108, pC_out_gagga(T110, X161, T105, T106, T108)) → waysA_out_gga(s(T110), .(s(T105), T106), T108)
U10_gag(T117, X178, T118, plusG_out_gag(T117, X178, T118)) → plusH_out_gag(T117, X178, T118)
natD_in_g(0) → natD_out_g(0)
natD_in_g(s(T60)) → U3_g(T60, natD_in_g(T60))
pB_in_gaggaaa(T48, T51, T49, T33, X64, X65, T35) → U11_gaggaaa(T48, T51, T49, T33, X64, X65, T35, plusE_in_gag(T48, T51, T49))
pC_in_gagga(T110, T111, T105, T106, T108) → U17_gagga(T110, T111, T105, T106, T108, plusH_in_gag(T110, T111, T105))
plusG_in_gag(0, T124, s(T124)) → U8_gag(T124, natD_in_g(s(T124)))
plusG_in_gag(s(T129), X202, s(T130)) → U9_gag(T129, X202, T130, plusG_in_gag(T129, X202, T130))
U3_g(T60, natD_out_g(T60)) → natD_out_g(s(T60))
U11_gaggaaa(T48, T51, T49, T33, X64, X65, T35, plusE_out_gag(T48, T51, T49)) → U12_gaggaaa(T48, T51, T49, T33, X64, X65, T35, pI_in_ggaggaa(T49, T33, X64, T51, T48, X65, T35))
U17_gagga(T110, T111, T105, T106, T108, plusH_out_gag(T110, T111, T105)) → U18_gagga(T110, T111, T105, T106, T108, waysA_in_gga(s(T110), T106, T108))
U8_gag(T124, natD_out_g(s(T124))) → plusG_out_gag(0, T124, s(T124))
U9_gag(T129, X202, T130, plusG_out_gag(T129, X202, T130)) → plusG_out_gag(s(T129), X202, s(T130))
U12_gaggaaa(T48, T51, T49, T33, X64, X65, T35, pI_out_ggaggaa(T49, T33, X64, T51, T48, X65, T35)) → pB_out_gaggaaa(T48, T51, T49, T33, X64, X65, T35)
U18_gagga(T110, T111, T105, T106, T108, waysA_out_gga(s(T110), T106, T108)) → pC_out_gagga(T110, T111, T105, T106, T108)
pI_in_ggaggaa(T49, T33, T68, T51, T48, X65, T35) → U13_ggaggaa(T49, T33, T68, T51, T48, X65, T35, waysA_in_gga(s(T49), T33, T68))
U13_ggaggaa(T49, T33, T68, T51, T48, X65, T35, waysA_out_gga(s(T49), T33, T68)) → U14_ggaggaa(T49, T33, T68, T51, T48, X65, T35, pJ_in_gggaga(T51, T48, T33, X65, T68, T35))
U14_ggaggaa(T49, T33, T68, T51, T48, X65, T35, pJ_out_gggaga(T51, T48, T33, X65, T68, T35)) → pI_out_ggaggaa(T49, T33, T68, T51, T48, X65, T35)
pJ_in_gggaga(T51, T48, T33, T73, T68, T35) → U15_gggaga(T51, T48, T33, T73, T68, T35, waysA_in_gga(T51, .(s(T48), T33), T73))
U15_gggaga(T51, T48, T33, T73, T68, T35, waysA_out_gga(T51, .(s(T48), T33), T73)) → U16_gggaga(T51, T48, T33, T73, T68, T35, plusF_in_gga(T68, T73, T35))
waysA_in_gga(0, T5, s(0)) → waysA_out_gga(0, T5, s(0))
U16_gggaga(T51, T48, T33, T73, T68, T35, plusF_out_gga(T68, T73, T35)) → pJ_out_gggaga(T51, T48, T33, T73, T68, T35)
plusF_in_gga(0, T83, T83) → U6_gga(T83, natD_in_g(T83))
plusF_in_gga(s(T90), T91, s(T93)) → U7_gga(T90, T91, T93, plusF_in_gga(T90, T91, T93))
U6_gga(T83, natD_out_g(T83)) → plusF_out_gga(0, T83, T83)
U7_gga(T90, T91, T93, plusF_out_gga(T90, T91, T93)) → plusF_out_gga(s(T90), T91, s(T93))

The argument filtering Pi contains the following mapping:
waysA_in_gga(x1, x2, x3)  =  waysA_in_gga(x1, x2)
0  =  0
waysA_out_gga(x1, x2, x3)  =  waysA_out_gga(x1, x2, x3)
[]  =  []
s(x1)  =  s(x1)
.(x1, x2)  =  .(x1, x2)
U1_gga(x1, x2, x3, x4, x5)  =  U1_gga(x1, x2, x3, x5)
pB_in_gaggaaa(x1, x2, x3, x4, x5, x6, x7)  =  pB_in_gaggaaa(x1, x3, x4)
U11_gaggaaa(x1, x2, x3, x4, x5, x6, x7, x8)  =  U11_gaggaaa(x1, x3, x4, x8)
plusE_in_gag(x1, x2, x3)  =  plusE_in_gag(x1, x3)
U4_gag(x1, x2)  =  U4_gag(x1, x2)
natD_in_g(x1)  =  natD_in_g(x1)
natD_out_g(x1)  =  natD_out_g(x1)
U3_g(x1, x2)  =  U3_g(x1, x2)
plusE_out_gag(x1, x2, x3)  =  plusE_out_gag(x1, x2, x3)
U5_gag(x1, x2, x3, x4)  =  U5_gag(x1, x3, x4)
U12_gaggaaa(x1, x2, x3, x4, x5, x6, x7, x8)  =  U12_gaggaaa(x1, x2, x3, x4, x8)
pI_in_ggaggaa(x1, x2, x3, x4, x5, x6, x7)  =  pI_in_ggaggaa(x1, x2, x4, x5)
U13_ggaggaa(x1, x2, x3, x4, x5, x6, x7, x8)  =  U13_ggaggaa(x1, x2, x4, x5, x8)
U2_gga(x1, x2, x3, x4, x5)  =  U2_gga(x1, x2, x3, x5)
pC_in_gagga(x1, x2, x3, x4, x5)  =  pC_in_gagga(x1, x3, x4)
U17_gagga(x1, x2, x3, x4, x5, x6)  =  U17_gagga(x1, x3, x4, x6)
plusH_in_gag(x1, x2, x3)  =  plusH_in_gag(x1, x3)
U10_gag(x1, x2, x3, x4)  =  U10_gag(x1, x3, x4)
plusG_in_gag(x1, x2, x3)  =  plusG_in_gag(x1, x3)
U8_gag(x1, x2)  =  U8_gag(x1, x2)
plusG_out_gag(x1, x2, x3)  =  plusG_out_gag(x1, x2, x3)
U9_gag(x1, x2, x3, x4)  =  U9_gag(x1, x3, x4)
plusH_out_gag(x1, x2, x3)  =  plusH_out_gag(x1, x2, x3)
U18_gagga(x1, x2, x3, x4, x5, x6)  =  U18_gagga(x1, x2, x3, x4, x6)
pC_out_gagga(x1, x2, x3, x4, x5)  =  pC_out_gagga(x1, x2, x3, x4, x5)
U14_ggaggaa(x1, x2, x3, x4, x5, x6, x7, x8)  =  U14_ggaggaa(x1, x2, x3, x4, x5, x8)
pJ_in_gggaga(x1, x2, x3, x4, x5, x6)  =  pJ_in_gggaga(x1, x2, x3, x5)
U15_gggaga(x1, x2, x3, x4, x5, x6, x7)  =  U15_gggaga(x1, x2, x3, x5, x7)
U16_gggaga(x1, x2, x3, x4, x5, x6, x7)  =  U16_gggaga(x1, x2, x3, x4, x5, x7)
plusF_in_gga(x1, x2, x3)  =  plusF_in_gga(x1, x2)
U6_gga(x1, x2)  =  U6_gga(x1, x2)
plusF_out_gga(x1, x2, x3)  =  plusF_out_gga(x1, x2, x3)
U7_gga(x1, x2, x3, x4)  =  U7_gga(x1, x2, x4)
pJ_out_gggaga(x1, x2, x3, x4, x5, x6)  =  pJ_out_gggaga(x1, x2, x3, x4, x5, x6)
pI_out_ggaggaa(x1, x2, x3, x4, x5, x6, x7)  =  pI_out_ggaggaa(x1, x2, x3, x4, x5, x6, x7)
pB_out_gaggaaa(x1, x2, x3, x4, x5, x6, x7)  =  pB_out_gaggaaa(x1, x2, x3, x4, x5, x6, x7)
WAYSA_IN_GGA(x1, x2, x3)  =  WAYSA_IN_GGA(x1, x2)
PB_IN_GAGGAAA(x1, x2, x3, x4, x5, x6, x7)  =  PB_IN_GAGGAAA(x1, x3, x4)
U11_GAGGAAA(x1, x2, x3, x4, x5, x6, x7, x8)  =  U11_GAGGAAA(x1, x3, x4, x8)
PI_IN_GGAGGAA(x1, x2, x3, x4, x5, x6, x7)  =  PI_IN_GGAGGAA(x1, x2, x4, x5)
U13_GGAGGAA(x1, x2, x3, x4, x5, x6, x7, x8)  =  U13_GGAGGAA(x1, x2, x4, x5, x8)
PC_IN_GAGGA(x1, x2, x3, x4, x5)  =  PC_IN_GAGGA(x1, x3, x4)
U17_GAGGA(x1, x2, x3, x4, x5, x6)  =  U17_GAGGA(x1, x3, x4, x6)
PJ_IN_GGGAGA(x1, x2, x3, x4, x5, x6)  =  PJ_IN_GGGAGA(x1, x2, x3, x5)

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

(38) PiDPToQDPProof (SOUND transformation)

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

(39) Obligation:

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

WAYSA_IN_GGA(s(T49), .(s(T48), T33)) → PB_IN_GAGGAAA(T48, T49, T33)
PB_IN_GAGGAAA(T48, T49, T33) → U11_GAGGAAA(T48, T49, T33, plusE_in_gag(T48, T49))
U11_GAGGAAA(T48, T49, T33, plusE_out_gag(T48, T51, T49)) → PI_IN_GGAGGAA(T49, T33, T51, T48)
PI_IN_GGAGGAA(T49, T33, T51, T48) → U13_GGAGGAA(T49, T33, T51, T48, waysA_in_gga(s(T49), T33))
U13_GGAGGAA(T49, T33, T51, T48, waysA_out_gga(s(T49), T33, T68)) → PJ_IN_GGGAGA(T51, T48, T33, T68)
PJ_IN_GGGAGA(T51, T48, T33, T68) → WAYSA_IN_GGA(T51, .(s(T48), T33))
WAYSA_IN_GGA(s(T110), .(s(T105), T106)) → PC_IN_GAGGA(T110, T105, T106)
PC_IN_GAGGA(T110, T105, T106) → U17_GAGGA(T110, T105, T106, plusH_in_gag(T110, T105))
U17_GAGGA(T110, T105, T106, plusH_out_gag(T110, T111, T105)) → WAYSA_IN_GGA(s(T110), T106)
PI_IN_GGAGGAA(T49, T33, T51, T48) → WAYSA_IN_GGA(s(T49), T33)

The TRS R consists of the following rules:

plusE_in_gag(0, T57) → U4_gag(T57, natD_in_g(T57))
plusE_in_gag(s(T65), s(T66)) → U5_gag(T65, T66, plusE_in_gag(T65, T66))
waysA_in_gga(T24, []) → waysA_out_gga(T24, [], 0)
waysA_in_gga(s(T49), .(s(T48), T33)) → U1_gga(T49, T48, T33, pB_in_gaggaaa(T48, T49, T33))
waysA_in_gga(s(T110), .(s(T105), T106)) → U2_gga(T110, T105, T106, pC_in_gagga(T110, T105, T106))
plusH_in_gag(T117, T118) → U10_gag(T117, T118, plusG_in_gag(T117, T118))
U4_gag(T57, natD_out_g(T57)) → plusE_out_gag(0, T57, T57)
U5_gag(T65, T66, plusE_out_gag(T65, X119, T66)) → plusE_out_gag(s(T65), X119, s(T66))
U1_gga(T49, T48, T33, pB_out_gaggaaa(T48, X90, T49, T33, X64, X65, T35)) → waysA_out_gga(s(T49), .(s(T48), T33), T35)
U2_gga(T110, T105, T106, pC_out_gagga(T110, X161, T105, T106, T108)) → waysA_out_gga(s(T110), .(s(T105), T106), T108)
U10_gag(T117, T118, plusG_out_gag(T117, X178, T118)) → plusH_out_gag(T117, X178, T118)
natD_in_g(0) → natD_out_g(0)
natD_in_g(s(T60)) → U3_g(T60, natD_in_g(T60))
pB_in_gaggaaa(T48, T49, T33) → U11_gaggaaa(T48, T49, T33, plusE_in_gag(T48, T49))
pC_in_gagga(T110, T105, T106) → U17_gagga(T110, T105, T106, plusH_in_gag(T110, T105))
plusG_in_gag(0, s(T124)) → U8_gag(T124, natD_in_g(s(T124)))
plusG_in_gag(s(T129), s(T130)) → U9_gag(T129, T130, plusG_in_gag(T129, T130))
U3_g(T60, natD_out_g(T60)) → natD_out_g(s(T60))
U11_gaggaaa(T48, T49, T33, plusE_out_gag(T48, T51, T49)) → U12_gaggaaa(T48, T51, T49, T33, pI_in_ggaggaa(T49, T33, T51, T48))
U17_gagga(T110, T105, T106, plusH_out_gag(T110, T111, T105)) → U18_gagga(T110, T111, T105, T106, waysA_in_gga(s(T110), T106))
U8_gag(T124, natD_out_g(s(T124))) → plusG_out_gag(0, T124, s(T124))
U9_gag(T129, T130, plusG_out_gag(T129, X202, T130)) → plusG_out_gag(s(T129), X202, s(T130))
U12_gaggaaa(T48, T51, T49, T33, pI_out_ggaggaa(T49, T33, X64, T51, T48, X65, T35)) → pB_out_gaggaaa(T48, T51, T49, T33, X64, X65, T35)
U18_gagga(T110, T111, T105, T106, waysA_out_gga(s(T110), T106, T108)) → pC_out_gagga(T110, T111, T105, T106, T108)
pI_in_ggaggaa(T49, T33, T51, T48) → U13_ggaggaa(T49, T33, T51, T48, waysA_in_gga(s(T49), T33))
U13_ggaggaa(T49, T33, T51, T48, waysA_out_gga(s(T49), T33, T68)) → U14_ggaggaa(T49, T33, T68, T51, T48, pJ_in_gggaga(T51, T48, T33, T68))
U14_ggaggaa(T49, T33, T68, T51, T48, pJ_out_gggaga(T51, T48, T33, X65, T68, T35)) → pI_out_ggaggaa(T49, T33, T68, T51, T48, X65, T35)
pJ_in_gggaga(T51, T48, T33, T68) → U15_gggaga(T51, T48, T33, T68, waysA_in_gga(T51, .(s(T48), T33)))
U15_gggaga(T51, T48, T33, T68, waysA_out_gga(T51, .(s(T48), T33), T73)) → U16_gggaga(T51, T48, T33, T73, T68, plusF_in_gga(T68, T73))
waysA_in_gga(0, T5) → waysA_out_gga(0, T5, s(0))
U16_gggaga(T51, T48, T33, T73, T68, plusF_out_gga(T68, T73, T35)) → pJ_out_gggaga(T51, T48, T33, T73, T68, T35)
plusF_in_gga(0, T83) → U6_gga(T83, natD_in_g(T83))
plusF_in_gga(s(T90), T91) → U7_gga(T90, T91, plusF_in_gga(T90, T91))
U6_gga(T83, natD_out_g(T83)) → plusF_out_gga(0, T83, T83)
U7_gga(T90, T91, plusF_out_gga(T90, T91, T93)) → plusF_out_gga(s(T90), T91, s(T93))

The set Q consists of the following terms:

plusE_in_gag(x0, x1)
waysA_in_gga(x0, x1)
plusH_in_gag(x0, x1)
U4_gag(x0, x1)
U5_gag(x0, x1, x2)
U1_gga(x0, x1, x2, x3)
U2_gga(x0, x1, x2, x3)
U10_gag(x0, x1, x2)
natD_in_g(x0)
pB_in_gaggaaa(x0, x1, x2)
pC_in_gagga(x0, x1, x2)
plusG_in_gag(x0, x1)
U3_g(x0, x1)
U11_gaggaaa(x0, x1, x2, x3)
U17_gagga(x0, x1, x2, x3)
U8_gag(x0, x1)
U9_gag(x0, x1, x2)
U12_gaggaaa(x0, x1, x2, x3, x4)
U18_gagga(x0, x1, x2, x3, x4)
pI_in_ggaggaa(x0, x1, x2, x3)
U13_ggaggaa(x0, x1, x2, x3, x4)
U14_ggaggaa(x0, x1, x2, x3, x4, x5)
pJ_in_gggaga(x0, x1, x2, x3)
U15_gggaga(x0, x1, x2, x3, x4)
U16_gggaga(x0, x1, x2, x3, x4, x5)
plusF_in_gga(x0, x1)
U6_gga(x0, x1)
U7_gga(x0, x1, x2)

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

(40) Rewriting (EQUIVALENT transformation)

By rewriting [LPAR04] the rule PC_IN_GAGGA(T110, T105, T106) → U17_GAGGA(T110, T105, T106, plusH_in_gag(T110, T105)) at position [3] we obtained the following new rules [LPAR04]:

PC_IN_GAGGA(T110, T105, T106) → U17_GAGGA(T110, T105, T106, U10_gag(T110, T105, plusG_in_gag(T110, T105)))

(41) Obligation:

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

WAYSA_IN_GGA(s(T49), .(s(T48), T33)) → PB_IN_GAGGAAA(T48, T49, T33)
PB_IN_GAGGAAA(T48, T49, T33) → U11_GAGGAAA(T48, T49, T33, plusE_in_gag(T48, T49))
U11_GAGGAAA(T48, T49, T33, plusE_out_gag(T48, T51, T49)) → PI_IN_GGAGGAA(T49, T33, T51, T48)
PI_IN_GGAGGAA(T49, T33, T51, T48) → U13_GGAGGAA(T49, T33, T51, T48, waysA_in_gga(s(T49), T33))
U13_GGAGGAA(T49, T33, T51, T48, waysA_out_gga(s(T49), T33, T68)) → PJ_IN_GGGAGA(T51, T48, T33, T68)
PJ_IN_GGGAGA(T51, T48, T33, T68) → WAYSA_IN_GGA(T51, .(s(T48), T33))
WAYSA_IN_GGA(s(T110), .(s(T105), T106)) → PC_IN_GAGGA(T110, T105, T106)
U17_GAGGA(T110, T105, T106, plusH_out_gag(T110, T111, T105)) → WAYSA_IN_GGA(s(T110), T106)
PI_IN_GGAGGAA(T49, T33, T51, T48) → WAYSA_IN_GGA(s(T49), T33)
PC_IN_GAGGA(T110, T105, T106) → U17_GAGGA(T110, T105, T106, U10_gag(T110, T105, plusG_in_gag(T110, T105)))

The TRS R consists of the following rules:

plusE_in_gag(0, T57) → U4_gag(T57, natD_in_g(T57))
plusE_in_gag(s(T65), s(T66)) → U5_gag(T65, T66, plusE_in_gag(T65, T66))
waysA_in_gga(T24, []) → waysA_out_gga(T24, [], 0)
waysA_in_gga(s(T49), .(s(T48), T33)) → U1_gga(T49, T48, T33, pB_in_gaggaaa(T48, T49, T33))
waysA_in_gga(s(T110), .(s(T105), T106)) → U2_gga(T110, T105, T106, pC_in_gagga(T110, T105, T106))
plusH_in_gag(T117, T118) → U10_gag(T117, T118, plusG_in_gag(T117, T118))
U4_gag(T57, natD_out_g(T57)) → plusE_out_gag(0, T57, T57)
U5_gag(T65, T66, plusE_out_gag(T65, X119, T66)) → plusE_out_gag(s(T65), X119, s(T66))
U1_gga(T49, T48, T33, pB_out_gaggaaa(T48, X90, T49, T33, X64, X65, T35)) → waysA_out_gga(s(T49), .(s(T48), T33), T35)
U2_gga(T110, T105, T106, pC_out_gagga(T110, X161, T105, T106, T108)) → waysA_out_gga(s(T110), .(s(T105), T106), T108)
U10_gag(T117, T118, plusG_out_gag(T117, X178, T118)) → plusH_out_gag(T117, X178, T118)
natD_in_g(0) → natD_out_g(0)
natD_in_g(s(T60)) → U3_g(T60, natD_in_g(T60))
pB_in_gaggaaa(T48, T49, T33) → U11_gaggaaa(T48, T49, T33, plusE_in_gag(T48, T49))
pC_in_gagga(T110, T105, T106) → U17_gagga(T110, T105, T106, plusH_in_gag(T110, T105))
plusG_in_gag(0, s(T124)) → U8_gag(T124, natD_in_g(s(T124)))
plusG_in_gag(s(T129), s(T130)) → U9_gag(T129, T130, plusG_in_gag(T129, T130))
U3_g(T60, natD_out_g(T60)) → natD_out_g(s(T60))
U11_gaggaaa(T48, T49, T33, plusE_out_gag(T48, T51, T49)) → U12_gaggaaa(T48, T51, T49, T33, pI_in_ggaggaa(T49, T33, T51, T48))
U17_gagga(T110, T105, T106, plusH_out_gag(T110, T111, T105)) → U18_gagga(T110, T111, T105, T106, waysA_in_gga(s(T110), T106))
U8_gag(T124, natD_out_g(s(T124))) → plusG_out_gag(0, T124, s(T124))
U9_gag(T129, T130, plusG_out_gag(T129, X202, T130)) → plusG_out_gag(s(T129), X202, s(T130))
U12_gaggaaa(T48, T51, T49, T33, pI_out_ggaggaa(T49, T33, X64, T51, T48, X65, T35)) → pB_out_gaggaaa(T48, T51, T49, T33, X64, X65, T35)
U18_gagga(T110, T111, T105, T106, waysA_out_gga(s(T110), T106, T108)) → pC_out_gagga(T110, T111, T105, T106, T108)
pI_in_ggaggaa(T49, T33, T51, T48) → U13_ggaggaa(T49, T33, T51, T48, waysA_in_gga(s(T49), T33))
U13_ggaggaa(T49, T33, T51, T48, waysA_out_gga(s(T49), T33, T68)) → U14_ggaggaa(T49, T33, T68, T51, T48, pJ_in_gggaga(T51, T48, T33, T68))
U14_ggaggaa(T49, T33, T68, T51, T48, pJ_out_gggaga(T51, T48, T33, X65, T68, T35)) → pI_out_ggaggaa(T49, T33, T68, T51, T48, X65, T35)
pJ_in_gggaga(T51, T48, T33, T68) → U15_gggaga(T51, T48, T33, T68, waysA_in_gga(T51, .(s(T48), T33)))
U15_gggaga(T51, T48, T33, T68, waysA_out_gga(T51, .(s(T48), T33), T73)) → U16_gggaga(T51, T48, T33, T73, T68, plusF_in_gga(T68, T73))
waysA_in_gga(0, T5) → waysA_out_gga(0, T5, s(0))
U16_gggaga(T51, T48, T33, T73, T68, plusF_out_gga(T68, T73, T35)) → pJ_out_gggaga(T51, T48, T33, T73, T68, T35)
plusF_in_gga(0, T83) → U6_gga(T83, natD_in_g(T83))
plusF_in_gga(s(T90), T91) → U7_gga(T90, T91, plusF_in_gga(T90, T91))
U6_gga(T83, natD_out_g(T83)) → plusF_out_gga(0, T83, T83)
U7_gga(T90, T91, plusF_out_gga(T90, T91, T93)) → plusF_out_gga(s(T90), T91, s(T93))

The set Q consists of the following terms:

plusE_in_gag(x0, x1)
waysA_in_gga(x0, x1)
plusH_in_gag(x0, x1)
U4_gag(x0, x1)
U5_gag(x0, x1, x2)
U1_gga(x0, x1, x2, x3)
U2_gga(x0, x1, x2, x3)
U10_gag(x0, x1, x2)
natD_in_g(x0)
pB_in_gaggaaa(x0, x1, x2)
pC_in_gagga(x0, x1, x2)
plusG_in_gag(x0, x1)
U3_g(x0, x1)
U11_gaggaaa(x0, x1, x2, x3)
U17_gagga(x0, x1, x2, x3)
U8_gag(x0, x1)
U9_gag(x0, x1, x2)
U12_gaggaaa(x0, x1, x2, x3, x4)
U18_gagga(x0, x1, x2, x3, x4)
pI_in_ggaggaa(x0, x1, x2, x3)
U13_ggaggaa(x0, x1, x2, x3, x4)
U14_ggaggaa(x0, x1, x2, x3, x4, x5)
pJ_in_gggaga(x0, x1, x2, x3)
U15_gggaga(x0, x1, x2, x3, x4)
U16_gggaga(x0, x1, x2, x3, x4, x5)
plusF_in_gga(x0, x1)
U6_gga(x0, x1)
U7_gga(x0, x1, x2)

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

(42) QDPOrderProof (EQUIVALENT transformation)

We use the reduction pair processor [LPAR04,JAR06].


The following pairs can be oriented strictly and are deleted.


WAYSA_IN_GGA(s(T110), .(s(T105), T106)) → PC_IN_GAGGA(T110, T105, T106)
PI_IN_GGAGGAA(T49, T33, T51, T48) → WAYSA_IN_GGA(s(T49), T33)
The remaining pairs can at least be oriented weakly.
Used ordering: Polynomial interpretation [POLO]:

POL(.(x1, x2)) = 1 + x2   
POL(0) = 0   
POL(PB_IN_GAGGAAA(x1, x2, x3)) = 1 + x3   
POL(PC_IN_GAGGA(x1, x2, x3)) = x3   
POL(PI_IN_GGAGGAA(x1, x2, x3, x4)) = 1 + x2   
POL(PJ_IN_GGGAGA(x1, x2, x3, x4)) = 1 + x3   
POL(U10_gag(x1, x2, x3)) = 0   
POL(U11_GAGGAAA(x1, x2, x3, x4)) = 1 + x3   
POL(U11_gaggaaa(x1, x2, x3, x4)) = 0   
POL(U12_gaggaaa(x1, x2, x3, x4, x5)) = 0   
POL(U13_GGAGGAA(x1, x2, x3, x4, x5)) = 1 + x2   
POL(U13_ggaggaa(x1, x2, x3, x4, x5)) = 0   
POL(U14_ggaggaa(x1, x2, x3, x4, x5, x6)) = 0   
POL(U15_gggaga(x1, x2, x3, x4, x5)) = 0   
POL(U16_gggaga(x1, x2, x3, x4, x5, x6)) = 0   
POL(U17_GAGGA(x1, x2, x3, x4)) = x3   
POL(U17_gagga(x1, x2, x3, x4)) = 0   
POL(U18_gagga(x1, x2, x3, x4, x5)) = 0   
POL(U1_gga(x1, x2, x3, x4)) = 0   
POL(U2_gga(x1, x2, x3, x4)) = 0   
POL(U3_g(x1, x2)) = 0   
POL(U4_gag(x1, x2)) = 0   
POL(U5_gag(x1, x2, x3)) = 0   
POL(U6_gga(x1, x2)) = 0   
POL(U7_gga(x1, x2, x3)) = 0   
POL(U8_gag(x1, x2)) = 0   
POL(U9_gag(x1, x2, x3)) = 0   
POL(WAYSA_IN_GGA(x1, x2)) = x2   
POL([]) = 0   
POL(natD_in_g(x1)) = 0   
POL(natD_out_g(x1)) = 0   
POL(pB_in_gaggaaa(x1, x2, x3)) = 0   
POL(pB_out_gaggaaa(x1, x2, x3, x4, x5, x6, x7)) = 0   
POL(pC_in_gagga(x1, x2, x3)) = 0   
POL(pC_out_gagga(x1, x2, x3, x4, x5)) = 0   
POL(pI_in_ggaggaa(x1, x2, x3, x4)) = 0   
POL(pI_out_ggaggaa(x1, x2, x3, x4, x5, x6, x7)) = 0   
POL(pJ_in_gggaga(x1, x2, x3, x4)) = 0   
POL(pJ_out_gggaga(x1, x2, x3, x4, x5, x6)) = 0   
POL(plusE_in_gag(x1, x2)) = 0   
POL(plusE_out_gag(x1, x2, x3)) = 0   
POL(plusF_in_gga(x1, x2)) = 0   
POL(plusF_out_gga(x1, x2, x3)) = 0   
POL(plusG_in_gag(x1, x2)) = 0   
POL(plusG_out_gag(x1, x2, x3)) = 0   
POL(plusH_in_gag(x1, x2)) = 1 + x1 + x2   
POL(plusH_out_gag(x1, x2, x3)) = 0   
POL(s(x1)) = 0   
POL(waysA_in_gga(x1, x2)) = 0   
POL(waysA_out_gga(x1, x2, x3)) = 0   

The following usable rules [FROCOS05] with respect to the argument filtering of the ordering [JAR06] were oriented:
none

(43) Obligation:

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

WAYSA_IN_GGA(s(T49), .(s(T48), T33)) → PB_IN_GAGGAAA(T48, T49, T33)
PB_IN_GAGGAAA(T48, T49, T33) → U11_GAGGAAA(T48, T49, T33, plusE_in_gag(T48, T49))
U11_GAGGAAA(T48, T49, T33, plusE_out_gag(T48, T51, T49)) → PI_IN_GGAGGAA(T49, T33, T51, T48)
PI_IN_GGAGGAA(T49, T33, T51, T48) → U13_GGAGGAA(T49, T33, T51, T48, waysA_in_gga(s(T49), T33))
U13_GGAGGAA(T49, T33, T51, T48, waysA_out_gga(s(T49), T33, T68)) → PJ_IN_GGGAGA(T51, T48, T33, T68)
PJ_IN_GGGAGA(T51, T48, T33, T68) → WAYSA_IN_GGA(T51, .(s(T48), T33))
U17_GAGGA(T110, T105, T106, plusH_out_gag(T110, T111, T105)) → WAYSA_IN_GGA(s(T110), T106)
PC_IN_GAGGA(T110, T105, T106) → U17_GAGGA(T110, T105, T106, U10_gag(T110, T105, plusG_in_gag(T110, T105)))

The TRS R consists of the following rules:

plusE_in_gag(0, T57) → U4_gag(T57, natD_in_g(T57))
plusE_in_gag(s(T65), s(T66)) → U5_gag(T65, T66, plusE_in_gag(T65, T66))
waysA_in_gga(T24, []) → waysA_out_gga(T24, [], 0)
waysA_in_gga(s(T49), .(s(T48), T33)) → U1_gga(T49, T48, T33, pB_in_gaggaaa(T48, T49, T33))
waysA_in_gga(s(T110), .(s(T105), T106)) → U2_gga(T110, T105, T106, pC_in_gagga(T110, T105, T106))
plusH_in_gag(T117, T118) → U10_gag(T117, T118, plusG_in_gag(T117, T118))
U4_gag(T57, natD_out_g(T57)) → plusE_out_gag(0, T57, T57)
U5_gag(T65, T66, plusE_out_gag(T65, X119, T66)) → plusE_out_gag(s(T65), X119, s(T66))
U1_gga(T49, T48, T33, pB_out_gaggaaa(T48, X90, T49, T33, X64, X65, T35)) → waysA_out_gga(s(T49), .(s(T48), T33), T35)
U2_gga(T110, T105, T106, pC_out_gagga(T110, X161, T105, T106, T108)) → waysA_out_gga(s(T110), .(s(T105), T106), T108)
U10_gag(T117, T118, plusG_out_gag(T117, X178, T118)) → plusH_out_gag(T117, X178, T118)
natD_in_g(0) → natD_out_g(0)
natD_in_g(s(T60)) → U3_g(T60, natD_in_g(T60))
pB_in_gaggaaa(T48, T49, T33) → U11_gaggaaa(T48, T49, T33, plusE_in_gag(T48, T49))
pC_in_gagga(T110, T105, T106) → U17_gagga(T110, T105, T106, plusH_in_gag(T110, T105))
plusG_in_gag(0, s(T124)) → U8_gag(T124, natD_in_g(s(T124)))
plusG_in_gag(s(T129), s(T130)) → U9_gag(T129, T130, plusG_in_gag(T129, T130))
U3_g(T60, natD_out_g(T60)) → natD_out_g(s(T60))
U11_gaggaaa(T48, T49, T33, plusE_out_gag(T48, T51, T49)) → U12_gaggaaa(T48, T51, T49, T33, pI_in_ggaggaa(T49, T33, T51, T48))
U17_gagga(T110, T105, T106, plusH_out_gag(T110, T111, T105)) → U18_gagga(T110, T111, T105, T106, waysA_in_gga(s(T110), T106))
U8_gag(T124, natD_out_g(s(T124))) → plusG_out_gag(0, T124, s(T124))
U9_gag(T129, T130, plusG_out_gag(T129, X202, T130)) → plusG_out_gag(s(T129), X202, s(T130))
U12_gaggaaa(T48, T51, T49, T33, pI_out_ggaggaa(T49, T33, X64, T51, T48, X65, T35)) → pB_out_gaggaaa(T48, T51, T49, T33, X64, X65, T35)
U18_gagga(T110, T111, T105, T106, waysA_out_gga(s(T110), T106, T108)) → pC_out_gagga(T110, T111, T105, T106, T108)
pI_in_ggaggaa(T49, T33, T51, T48) → U13_ggaggaa(T49, T33, T51, T48, waysA_in_gga(s(T49), T33))
U13_ggaggaa(T49, T33, T51, T48, waysA_out_gga(s(T49), T33, T68)) → U14_ggaggaa(T49, T33, T68, T51, T48, pJ_in_gggaga(T51, T48, T33, T68))
U14_ggaggaa(T49, T33, T68, T51, T48, pJ_out_gggaga(T51, T48, T33, X65, T68, T35)) → pI_out_ggaggaa(T49, T33, T68, T51, T48, X65, T35)
pJ_in_gggaga(T51, T48, T33, T68) → U15_gggaga(T51, T48, T33, T68, waysA_in_gga(T51, .(s(T48), T33)))
U15_gggaga(T51, T48, T33, T68, waysA_out_gga(T51, .(s(T48), T33), T73)) → U16_gggaga(T51, T48, T33, T73, T68, plusF_in_gga(T68, T73))
waysA_in_gga(0, T5) → waysA_out_gga(0, T5, s(0))
U16_gggaga(T51, T48, T33, T73, T68, plusF_out_gga(T68, T73, T35)) → pJ_out_gggaga(T51, T48, T33, T73, T68, T35)
plusF_in_gga(0, T83) → U6_gga(T83, natD_in_g(T83))
plusF_in_gga(s(T90), T91) → U7_gga(T90, T91, plusF_in_gga(T90, T91))
U6_gga(T83, natD_out_g(T83)) → plusF_out_gga(0, T83, T83)
U7_gga(T90, T91, plusF_out_gga(T90, T91, T93)) → plusF_out_gga(s(T90), T91, s(T93))

The set Q consists of the following terms:

plusE_in_gag(x0, x1)
waysA_in_gga(x0, x1)
plusH_in_gag(x0, x1)
U4_gag(x0, x1)
U5_gag(x0, x1, x2)
U1_gga(x0, x1, x2, x3)
U2_gga(x0, x1, x2, x3)
U10_gag(x0, x1, x2)
natD_in_g(x0)
pB_in_gaggaaa(x0, x1, x2)
pC_in_gagga(x0, x1, x2)
plusG_in_gag(x0, x1)
U3_g(x0, x1)
U11_gaggaaa(x0, x1, x2, x3)
U17_gagga(x0, x1, x2, x3)
U8_gag(x0, x1)
U9_gag(x0, x1, x2)
U12_gaggaaa(x0, x1, x2, x3, x4)
U18_gagga(x0, x1, x2, x3, x4)
pI_in_ggaggaa(x0, x1, x2, x3)
U13_ggaggaa(x0, x1, x2, x3, x4)
U14_ggaggaa(x0, x1, x2, x3, x4, x5)
pJ_in_gggaga(x0, x1, x2, x3)
U15_gggaga(x0, x1, x2, x3, x4)
U16_gggaga(x0, x1, x2, x3, x4, x5)
plusF_in_gga(x0, x1)
U6_gga(x0, x1)
U7_gga(x0, x1, x2)

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

(44) DependencyGraphProof (EQUIVALENT transformation)

The approximation of the Dependency Graph [LPAR04,FROCOS05,EDGSTAR] contains 1 SCC with 2 less nodes.

(45) Obligation:

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

PB_IN_GAGGAAA(T48, T49, T33) → U11_GAGGAAA(T48, T49, T33, plusE_in_gag(T48, T49))
U11_GAGGAAA(T48, T49, T33, plusE_out_gag(T48, T51, T49)) → PI_IN_GGAGGAA(T49, T33, T51, T48)
PI_IN_GGAGGAA(T49, T33, T51, T48) → U13_GGAGGAA(T49, T33, T51, T48, waysA_in_gga(s(T49), T33))
U13_GGAGGAA(T49, T33, T51, T48, waysA_out_gga(s(T49), T33, T68)) → PJ_IN_GGGAGA(T51, T48, T33, T68)
PJ_IN_GGGAGA(T51, T48, T33, T68) → WAYSA_IN_GGA(T51, .(s(T48), T33))
WAYSA_IN_GGA(s(T49), .(s(T48), T33)) → PB_IN_GAGGAAA(T48, T49, T33)

The TRS R consists of the following rules:

plusE_in_gag(0, T57) → U4_gag(T57, natD_in_g(T57))
plusE_in_gag(s(T65), s(T66)) → U5_gag(T65, T66, plusE_in_gag(T65, T66))
waysA_in_gga(T24, []) → waysA_out_gga(T24, [], 0)
waysA_in_gga(s(T49), .(s(T48), T33)) → U1_gga(T49, T48, T33, pB_in_gaggaaa(T48, T49, T33))
waysA_in_gga(s(T110), .(s(T105), T106)) → U2_gga(T110, T105, T106, pC_in_gagga(T110, T105, T106))
plusH_in_gag(T117, T118) → U10_gag(T117, T118, plusG_in_gag(T117, T118))
U4_gag(T57, natD_out_g(T57)) → plusE_out_gag(0, T57, T57)
U5_gag(T65, T66, plusE_out_gag(T65, X119, T66)) → plusE_out_gag(s(T65), X119, s(T66))
U1_gga(T49, T48, T33, pB_out_gaggaaa(T48, X90, T49, T33, X64, X65, T35)) → waysA_out_gga(s(T49), .(s(T48), T33), T35)
U2_gga(T110, T105, T106, pC_out_gagga(T110, X161, T105, T106, T108)) → waysA_out_gga(s(T110), .(s(T105), T106), T108)
U10_gag(T117, T118, plusG_out_gag(T117, X178, T118)) → plusH_out_gag(T117, X178, T118)
natD_in_g(0) → natD_out_g(0)
natD_in_g(s(T60)) → U3_g(T60, natD_in_g(T60))
pB_in_gaggaaa(T48, T49, T33) → U11_gaggaaa(T48, T49, T33, plusE_in_gag(T48, T49))
pC_in_gagga(T110, T105, T106) → U17_gagga(T110, T105, T106, plusH_in_gag(T110, T105))
plusG_in_gag(0, s(T124)) → U8_gag(T124, natD_in_g(s(T124)))
plusG_in_gag(s(T129), s(T130)) → U9_gag(T129, T130, plusG_in_gag(T129, T130))
U3_g(T60, natD_out_g(T60)) → natD_out_g(s(T60))
U11_gaggaaa(T48, T49, T33, plusE_out_gag(T48, T51, T49)) → U12_gaggaaa(T48, T51, T49, T33, pI_in_ggaggaa(T49, T33, T51, T48))
U17_gagga(T110, T105, T106, plusH_out_gag(T110, T111, T105)) → U18_gagga(T110, T111, T105, T106, waysA_in_gga(s(T110), T106))
U8_gag(T124, natD_out_g(s(T124))) → plusG_out_gag(0, T124, s(T124))
U9_gag(T129, T130, plusG_out_gag(T129, X202, T130)) → plusG_out_gag(s(T129), X202, s(T130))
U12_gaggaaa(T48, T51, T49, T33, pI_out_ggaggaa(T49, T33, X64, T51, T48, X65, T35)) → pB_out_gaggaaa(T48, T51, T49, T33, X64, X65, T35)
U18_gagga(T110, T111, T105, T106, waysA_out_gga(s(T110), T106, T108)) → pC_out_gagga(T110, T111, T105, T106, T108)
pI_in_ggaggaa(T49, T33, T51, T48) → U13_ggaggaa(T49, T33, T51, T48, waysA_in_gga(s(T49), T33))
U13_ggaggaa(T49, T33, T51, T48, waysA_out_gga(s(T49), T33, T68)) → U14_ggaggaa(T49, T33, T68, T51, T48, pJ_in_gggaga(T51, T48, T33, T68))
U14_ggaggaa(T49, T33, T68, T51, T48, pJ_out_gggaga(T51, T48, T33, X65, T68, T35)) → pI_out_ggaggaa(T49, T33, T68, T51, T48, X65, T35)
pJ_in_gggaga(T51, T48, T33, T68) → U15_gggaga(T51, T48, T33, T68, waysA_in_gga(T51, .(s(T48), T33)))
U15_gggaga(T51, T48, T33, T68, waysA_out_gga(T51, .(s(T48), T33), T73)) → U16_gggaga(T51, T48, T33, T73, T68, plusF_in_gga(T68, T73))
waysA_in_gga(0, T5) → waysA_out_gga(0, T5, s(0))
U16_gggaga(T51, T48, T33, T73, T68, plusF_out_gga(T68, T73, T35)) → pJ_out_gggaga(T51, T48, T33, T73, T68, T35)
plusF_in_gga(0, T83) → U6_gga(T83, natD_in_g(T83))
plusF_in_gga(s(T90), T91) → U7_gga(T90, T91, plusF_in_gga(T90, T91))
U6_gga(T83, natD_out_g(T83)) → plusF_out_gga(0, T83, T83)
U7_gga(T90, T91, plusF_out_gga(T90, T91, T93)) → plusF_out_gga(s(T90), T91, s(T93))

The set Q consists of the following terms:

plusE_in_gag(x0, x1)
waysA_in_gga(x0, x1)
plusH_in_gag(x0, x1)
U4_gag(x0, x1)
U5_gag(x0, x1, x2)
U1_gga(x0, x1, x2, x3)
U2_gga(x0, x1, x2, x3)
U10_gag(x0, x1, x2)
natD_in_g(x0)
pB_in_gaggaaa(x0, x1, x2)
pC_in_gagga(x0, x1, x2)
plusG_in_gag(x0, x1)
U3_g(x0, x1)
U11_gaggaaa(x0, x1, x2, x3)
U17_gagga(x0, x1, x2, x3)
U8_gag(x0, x1)
U9_gag(x0, x1, x2)
U12_gaggaaa(x0, x1, x2, x3, x4)
U18_gagga(x0, x1, x2, x3, x4)
pI_in_ggaggaa(x0, x1, x2, x3)
U13_ggaggaa(x0, x1, x2, x3, x4)
U14_ggaggaa(x0, x1, x2, x3, x4, x5)
pJ_in_gggaga(x0, x1, x2, x3)
U15_gggaga(x0, x1, x2, x3, x4)
U16_gggaga(x0, x1, x2, x3, x4, x5)
plusF_in_gga(x0, x1)
U6_gga(x0, x1)
U7_gga(x0, x1, x2)

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

(46) QDPOrderProof (EQUIVALENT transformation)

We use the reduction pair processor [LPAR04,JAR06].


The following pairs can be oriented strictly and are deleted.


PB_IN_GAGGAAA(T48, T49, T33) → U11_GAGGAAA(T48, T49, T33, plusE_in_gag(T48, T49))
The remaining pairs can at least be oriented weakly.
Used ordering: Polynomial interpretation [POLO]:

POL(.(x1, x2)) = 0   
POL(0) = 0   
POL(PB_IN_GAGGAAA(x1, x2, x3)) = 1 + x2   
POL(PI_IN_GGAGGAA(x1, x2, x3, x4)) = x3   
POL(PJ_IN_GGGAGA(x1, x2, x3, x4)) = x1   
POL(U10_gag(x1, x2, x3)) = 0   
POL(U11_GAGGAAA(x1, x2, x3, x4)) = x4   
POL(U11_gaggaaa(x1, x2, x3, x4)) = 0   
POL(U12_gaggaaa(x1, x2, x3, x4, x5)) = 0   
POL(U13_GGAGGAA(x1, x2, x3, x4, x5)) = x3   
POL(U13_ggaggaa(x1, x2, x3, x4, x5)) = 0   
POL(U14_ggaggaa(x1, x2, x3, x4, x5, x6)) = 0   
POL(U15_gggaga(x1, x2, x3, x4, x5)) = 0   
POL(U16_gggaga(x1, x2, x3, x4, x5, x6)) = 0   
POL(U17_gagga(x1, x2, x3, x4)) = 0   
POL(U18_gagga(x1, x2, x3, x4, x5)) = 0   
POL(U1_gga(x1, x2, x3, x4)) = 0   
POL(U2_gga(x1, x2, x3, x4)) = 0   
POL(U3_g(x1, x2)) = 0   
POL(U4_gag(x1, x2)) = x1   
POL(U5_gag(x1, x2, x3)) = 1 + x3   
POL(U6_gga(x1, x2)) = 0   
POL(U7_gga(x1, x2, x3)) = 0   
POL(U8_gag(x1, x2)) = 0   
POL(U9_gag(x1, x2, x3)) = 0   
POL(WAYSA_IN_GGA(x1, x2)) = x1   
POL([]) = 0   
POL(natD_in_g(x1)) = 0   
POL(natD_out_g(x1)) = 0   
POL(pB_in_gaggaaa(x1, x2, x3)) = 0   
POL(pB_out_gaggaaa(x1, x2, x3, x4, x5, x6, x7)) = 0   
POL(pC_in_gagga(x1, x2, x3)) = 0   
POL(pC_out_gagga(x1, x2, x3, x4, x5)) = 0   
POL(pI_in_ggaggaa(x1, x2, x3, x4)) = 0   
POL(pI_out_ggaggaa(x1, x2, x3, x4, x5, x6, x7)) = 0   
POL(pJ_in_gggaga(x1, x2, x3, x4)) = 0   
POL(pJ_out_gggaga(x1, x2, x3, x4, x5, x6)) = 0   
POL(plusE_in_gag(x1, x2)) = x2   
POL(plusE_out_gag(x1, x2, x3)) = x2   
POL(plusF_in_gga(x1, x2)) = 0   
POL(plusF_out_gga(x1, x2, x3)) = 0   
POL(plusG_in_gag(x1, x2)) = 0   
POL(plusG_out_gag(x1, x2, x3)) = 0   
POL(plusH_in_gag(x1, x2)) = 0   
POL(plusH_out_gag(x1, x2, x3)) = 0   
POL(s(x1)) = 1 + x1   
POL(waysA_in_gga(x1, x2)) = 0   
POL(waysA_out_gga(x1, x2, x3)) = 0   

The following usable rules [FROCOS05] with respect to the argument filtering of the ordering [JAR06] were oriented:

plusE_in_gag(0, T57) → U4_gag(T57, natD_in_g(T57))
plusE_in_gag(s(T65), s(T66)) → U5_gag(T65, T66, plusE_in_gag(T65, T66))
U5_gag(T65, T66, plusE_out_gag(T65, X119, T66)) → plusE_out_gag(s(T65), X119, s(T66))
U4_gag(T57, natD_out_g(T57)) → plusE_out_gag(0, T57, T57)

(47) Obligation:

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

U11_GAGGAAA(T48, T49, T33, plusE_out_gag(T48, T51, T49)) → PI_IN_GGAGGAA(T49, T33, T51, T48)
PI_IN_GGAGGAA(T49, T33, T51, T48) → U13_GGAGGAA(T49, T33, T51, T48, waysA_in_gga(s(T49), T33))
U13_GGAGGAA(T49, T33, T51, T48, waysA_out_gga(s(T49), T33, T68)) → PJ_IN_GGGAGA(T51, T48, T33, T68)
PJ_IN_GGGAGA(T51, T48, T33, T68) → WAYSA_IN_GGA(T51, .(s(T48), T33))
WAYSA_IN_GGA(s(T49), .(s(T48), T33)) → PB_IN_GAGGAAA(T48, T49, T33)

The TRS R consists of the following rules:

plusE_in_gag(0, T57) → U4_gag(T57, natD_in_g(T57))
plusE_in_gag(s(T65), s(T66)) → U5_gag(T65, T66, plusE_in_gag(T65, T66))
waysA_in_gga(T24, []) → waysA_out_gga(T24, [], 0)
waysA_in_gga(s(T49), .(s(T48), T33)) → U1_gga(T49, T48, T33, pB_in_gaggaaa(T48, T49, T33))
waysA_in_gga(s(T110), .(s(T105), T106)) → U2_gga(T110, T105, T106, pC_in_gagga(T110, T105, T106))
plusH_in_gag(T117, T118) → U10_gag(T117, T118, plusG_in_gag(T117, T118))
U4_gag(T57, natD_out_g(T57)) → plusE_out_gag(0, T57, T57)
U5_gag(T65, T66, plusE_out_gag(T65, X119, T66)) → plusE_out_gag(s(T65), X119, s(T66))
U1_gga(T49, T48, T33, pB_out_gaggaaa(T48, X90, T49, T33, X64, X65, T35)) → waysA_out_gga(s(T49), .(s(T48), T33), T35)
U2_gga(T110, T105, T106, pC_out_gagga(T110, X161, T105, T106, T108)) → waysA_out_gga(s(T110), .(s(T105), T106), T108)
U10_gag(T117, T118, plusG_out_gag(T117, X178, T118)) → plusH_out_gag(T117, X178, T118)
natD_in_g(0) → natD_out_g(0)
natD_in_g(s(T60)) → U3_g(T60, natD_in_g(T60))
pB_in_gaggaaa(T48, T49, T33) → U11_gaggaaa(T48, T49, T33, plusE_in_gag(T48, T49))
pC_in_gagga(T110, T105, T106) → U17_gagga(T110, T105, T106, plusH_in_gag(T110, T105))
plusG_in_gag(0, s(T124)) → U8_gag(T124, natD_in_g(s(T124)))
plusG_in_gag(s(T129), s(T130)) → U9_gag(T129, T130, plusG_in_gag(T129, T130))
U3_g(T60, natD_out_g(T60)) → natD_out_g(s(T60))
U11_gaggaaa(T48, T49, T33, plusE_out_gag(T48, T51, T49)) → U12_gaggaaa(T48, T51, T49, T33, pI_in_ggaggaa(T49, T33, T51, T48))
U17_gagga(T110, T105, T106, plusH_out_gag(T110, T111, T105)) → U18_gagga(T110, T111, T105, T106, waysA_in_gga(s(T110), T106))
U8_gag(T124, natD_out_g(s(T124))) → plusG_out_gag(0, T124, s(T124))
U9_gag(T129, T130, plusG_out_gag(T129, X202, T130)) → plusG_out_gag(s(T129), X202, s(T130))
U12_gaggaaa(T48, T51, T49, T33, pI_out_ggaggaa(T49, T33, X64, T51, T48, X65, T35)) → pB_out_gaggaaa(T48, T51, T49, T33, X64, X65, T35)
U18_gagga(T110, T111, T105, T106, waysA_out_gga(s(T110), T106, T108)) → pC_out_gagga(T110, T111, T105, T106, T108)
pI_in_ggaggaa(T49, T33, T51, T48) → U13_ggaggaa(T49, T33, T51, T48, waysA_in_gga(s(T49), T33))
U13_ggaggaa(T49, T33, T51, T48, waysA_out_gga(s(T49), T33, T68)) → U14_ggaggaa(T49, T33, T68, T51, T48, pJ_in_gggaga(T51, T48, T33, T68))
U14_ggaggaa(T49, T33, T68, T51, T48, pJ_out_gggaga(T51, T48, T33, X65, T68, T35)) → pI_out_ggaggaa(T49, T33, T68, T51, T48, X65, T35)
pJ_in_gggaga(T51, T48, T33, T68) → U15_gggaga(T51, T48, T33, T68, waysA_in_gga(T51, .(s(T48), T33)))
U15_gggaga(T51, T48, T33, T68, waysA_out_gga(T51, .(s(T48), T33), T73)) → U16_gggaga(T51, T48, T33, T73, T68, plusF_in_gga(T68, T73))
waysA_in_gga(0, T5) → waysA_out_gga(0, T5, s(0))
U16_gggaga(T51, T48, T33, T73, T68, plusF_out_gga(T68, T73, T35)) → pJ_out_gggaga(T51, T48, T33, T73, T68, T35)
plusF_in_gga(0, T83) → U6_gga(T83, natD_in_g(T83))
plusF_in_gga(s(T90), T91) → U7_gga(T90, T91, plusF_in_gga(T90, T91))
U6_gga(T83, natD_out_g(T83)) → plusF_out_gga(0, T83, T83)
U7_gga(T90, T91, plusF_out_gga(T90, T91, T93)) → plusF_out_gga(s(T90), T91, s(T93))

The set Q consists of the following terms:

plusE_in_gag(x0, x1)
waysA_in_gga(x0, x1)
plusH_in_gag(x0, x1)
U4_gag(x0, x1)
U5_gag(x0, x1, x2)
U1_gga(x0, x1, x2, x3)
U2_gga(x0, x1, x2, x3)
U10_gag(x0, x1, x2)
natD_in_g(x0)
pB_in_gaggaaa(x0, x1, x2)
pC_in_gagga(x0, x1, x2)
plusG_in_gag(x0, x1)
U3_g(x0, x1)
U11_gaggaaa(x0, x1, x2, x3)
U17_gagga(x0, x1, x2, x3)
U8_gag(x0, x1)
U9_gag(x0, x1, x2)
U12_gaggaaa(x0, x1, x2, x3, x4)
U18_gagga(x0, x1, x2, x3, x4)
pI_in_ggaggaa(x0, x1, x2, x3)
U13_ggaggaa(x0, x1, x2, x3, x4)
U14_ggaggaa(x0, x1, x2, x3, x4, x5)
pJ_in_gggaga(x0, x1, x2, x3)
U15_gggaga(x0, x1, x2, x3, x4)
U16_gggaga(x0, x1, x2, x3, x4, x5)
plusF_in_gga(x0, x1)
U6_gga(x0, x1)
U7_gga(x0, x1, x2)

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

(48) DependencyGraphProof (EQUIVALENT transformation)

The approximation of the Dependency Graph [LPAR04,FROCOS05,EDGSTAR] contains 0 SCCs with 5 less nodes.

(49) TRUE