0 Prolog
↳1 PrologToPrologProblemTransformerProof (⇐)
↳2 Prolog
↳3 PrologToPiTRSProof (⇐)
↳4 PiTRS
↳5 DependencyPairsProof (⇔)
↳6 PiDP
↳7 DependencyGraphProof (⇔)
↳8 AND
↳9 PiDP
↳10 UsableRulesProof (⇔)
↳11 PiDP
↳12 PiDPToQDPProof (⇐)
↳13 QDP
↳14 UsableRulesReductionPairsProof (⇔)
↳15 QDP
↳16 QDPSizeChangeProof (⇔)
↳17 YES
↳18 PiDP
↳19 UsableRulesProof (⇔)
↳20 PiDP
↳21 PiDPToQDPProof (⇐)
↳22 QDP
↳23 UsableRulesReductionPairsProof (⇔)
↳24 QDP
↳25 PisEmptyProof (⇔)
↳26 YES
count1_in_ga(atom(T4), s(0)) → count1_out_ga(atom(T4), s(0))
count1_in_ga(cons(atom(T8), atom(T16)), s(s(0))) → count1_out_ga(cons(atom(T8), atom(T16)), s(s(0)))
count1_in_ga(cons(atom(T8), cons(atom(T29), T30)), s(s(T32))) → U7_ga(T8, T29, T30, T32, count1_in_ga(T30, T32))
count1_in_ga(cons(atom(T8), cons(cons(T51, T52), T53)), s(T55)) → U8_ga(T8, T51, T52, T53, T55, flatten24_in_ggga(T51, T52, T53, X68))
flatten24_in_ggga(T72, T73, T74, X117) → U6_ggga(T72, T73, T74, X117, flatten29_in_ggga(T72, T73, T74, X117))
flatten29_in_ggga(atom(T90), atom(T103), T104, .(T90, .(T103, X174))) → U3_ggga(T90, T103, T104, X174, flatten40_in_ga(T104, X174))
flatten40_in_ga(atom(T111), .(T111, [])) → flatten40_out_ga(atom(T111), .(T111, []))
flatten40_in_ga(cons(atom(T120), T121), .(T120, X205)) → U1_ga(T120, T121, X205, flatten40_in_ga(T121, X205))
flatten40_in_ga(cons(cons(T130, T131), T132), X225) → U2_ga(T130, T131, T132, X225, flatten29_in_ggga(T130, T131, T132, X225))
flatten29_in_ggga(atom(T90), cons(T142, T143), T144, .(T90, X250)) → U4_ggga(T90, T142, T143, T144, X250, flatten29_in_ggga(T142, T143, T144, X250))
flatten29_in_ggga(cons(T156, T157), T158, T159, X275) → U5_ggga(T156, T157, T158, T159, X275, flatten29_in_ggga(T156, T157, cons(T158, T159), X275))
U5_ggga(T156, T157, T158, T159, X275, flatten29_out_ggga(T156, T157, cons(T158, T159), X275)) → flatten29_out_ggga(cons(T156, T157), T158, T159, X275)
U4_ggga(T90, T142, T143, T144, X250, flatten29_out_ggga(T142, T143, T144, X250)) → flatten29_out_ggga(atom(T90), cons(T142, T143), T144, .(T90, X250))
U2_ga(T130, T131, T132, X225, flatten29_out_ggga(T130, T131, T132, X225)) → flatten40_out_ga(cons(cons(T130, T131), T132), X225)
U1_ga(T120, T121, X205, flatten40_out_ga(T121, X205)) → flatten40_out_ga(cons(atom(T120), T121), .(T120, X205))
U3_ggga(T90, T103, T104, X174, flatten40_out_ga(T104, X174)) → flatten29_out_ggga(atom(T90), atom(T103), T104, .(T90, .(T103, X174)))
U6_ggga(T72, T73, T74, X117, flatten29_out_ggga(T72, T73, T74, X117)) → flatten24_out_ggga(T72, T73, T74, X117)
U8_ga(T8, T51, T52, T53, T55, flatten24_out_ggga(T51, T52, T53, X68)) → count1_out_ga(cons(atom(T8), cons(cons(T51, T52), T53)), s(T55))
count1_in_ga(cons(atom(T8), cons(cons(T51, T52), T53)), s(T55)) → U9_ga(T8, T51, T52, T53, T55, flatten24_in_ggga(T51, T52, T53, T59))
U9_ga(T8, T51, T52, T53, T55, flatten24_out_ggga(T51, T52, T53, T59)) → U10_ga(T8, T51, T52, T53, T55, count1_in_ga(T59, T55))
count1_in_ga(cons(cons(T184, T185), T186), T174) → U11_ga(T184, T185, T186, T174, flatten29_in_ggga(T184, T185, T186, X329))
U11_ga(T184, T185, T186, T174, flatten29_out_ggga(T184, T185, T186, X329)) → count1_out_ga(cons(cons(T184, T185), T186), T174)
count1_in_ga(cons(cons(T184, T185), T186), T174) → U12_ga(T184, T185, T186, T174, flatten29_in_ggga(T184, T185, T186, T190))
U12_ga(T184, T185, T186, T174, flatten29_out_ggga(T184, T185, T186, T190)) → U13_ga(T184, T185, T186, T174, count1_in_ga(T190, T174))
U13_ga(T184, T185, T186, T174, count1_out_ga(T190, T174)) → count1_out_ga(cons(cons(T184, T185), T186), T174)
U10_ga(T8, T51, T52, T53, T55, count1_out_ga(T59, T55)) → count1_out_ga(cons(atom(T8), cons(cons(T51, T52), T53)), s(T55))
U7_ga(T8, T29, T30, T32, count1_out_ga(T30, T32)) → count1_out_ga(cons(atom(T8), cons(atom(T29), T30)), s(s(T32)))
Infinitary Constructor Rewriting Termination of PiTRS implies Termination of Prolog
count1_in_ga(atom(T4), s(0)) → count1_out_ga(atom(T4), s(0))
count1_in_ga(cons(atom(T8), atom(T16)), s(s(0))) → count1_out_ga(cons(atom(T8), atom(T16)), s(s(0)))
count1_in_ga(cons(atom(T8), cons(atom(T29), T30)), s(s(T32))) → U7_ga(T8, T29, T30, T32, count1_in_ga(T30, T32))
count1_in_ga(cons(atom(T8), cons(cons(T51, T52), T53)), s(T55)) → U8_ga(T8, T51, T52, T53, T55, flatten24_in_ggga(T51, T52, T53, X68))
flatten24_in_ggga(T72, T73, T74, X117) → U6_ggga(T72, T73, T74, X117, flatten29_in_ggga(T72, T73, T74, X117))
flatten29_in_ggga(atom(T90), atom(T103), T104, .(T90, .(T103, X174))) → U3_ggga(T90, T103, T104, X174, flatten40_in_ga(T104, X174))
flatten40_in_ga(atom(T111), .(T111, [])) → flatten40_out_ga(atom(T111), .(T111, []))
flatten40_in_ga(cons(atom(T120), T121), .(T120, X205)) → U1_ga(T120, T121, X205, flatten40_in_ga(T121, X205))
flatten40_in_ga(cons(cons(T130, T131), T132), X225) → U2_ga(T130, T131, T132, X225, flatten29_in_ggga(T130, T131, T132, X225))
flatten29_in_ggga(atom(T90), cons(T142, T143), T144, .(T90, X250)) → U4_ggga(T90, T142, T143, T144, X250, flatten29_in_ggga(T142, T143, T144, X250))
flatten29_in_ggga(cons(T156, T157), T158, T159, X275) → U5_ggga(T156, T157, T158, T159, X275, flatten29_in_ggga(T156, T157, cons(T158, T159), X275))
U5_ggga(T156, T157, T158, T159, X275, flatten29_out_ggga(T156, T157, cons(T158, T159), X275)) → flatten29_out_ggga(cons(T156, T157), T158, T159, X275)
U4_ggga(T90, T142, T143, T144, X250, flatten29_out_ggga(T142, T143, T144, X250)) → flatten29_out_ggga(atom(T90), cons(T142, T143), T144, .(T90, X250))
U2_ga(T130, T131, T132, X225, flatten29_out_ggga(T130, T131, T132, X225)) → flatten40_out_ga(cons(cons(T130, T131), T132), X225)
U1_ga(T120, T121, X205, flatten40_out_ga(T121, X205)) → flatten40_out_ga(cons(atom(T120), T121), .(T120, X205))
U3_ggga(T90, T103, T104, X174, flatten40_out_ga(T104, X174)) → flatten29_out_ggga(atom(T90), atom(T103), T104, .(T90, .(T103, X174)))
U6_ggga(T72, T73, T74, X117, flatten29_out_ggga(T72, T73, T74, X117)) → flatten24_out_ggga(T72, T73, T74, X117)
U8_ga(T8, T51, T52, T53, T55, flatten24_out_ggga(T51, T52, T53, X68)) → count1_out_ga(cons(atom(T8), cons(cons(T51, T52), T53)), s(T55))
count1_in_ga(cons(atom(T8), cons(cons(T51, T52), T53)), s(T55)) → U9_ga(T8, T51, T52, T53, T55, flatten24_in_ggga(T51, T52, T53, T59))
U9_ga(T8, T51, T52, T53, T55, flatten24_out_ggga(T51, T52, T53, T59)) → U10_ga(T8, T51, T52, T53, T55, count1_in_ga(T59, T55))
count1_in_ga(cons(cons(T184, T185), T186), T174) → U11_ga(T184, T185, T186, T174, flatten29_in_ggga(T184, T185, T186, X329))
U11_ga(T184, T185, T186, T174, flatten29_out_ggga(T184, T185, T186, X329)) → count1_out_ga(cons(cons(T184, T185), T186), T174)
count1_in_ga(cons(cons(T184, T185), T186), T174) → U12_ga(T184, T185, T186, T174, flatten29_in_ggga(T184, T185, T186, T190))
U12_ga(T184, T185, T186, T174, flatten29_out_ggga(T184, T185, T186, T190)) → U13_ga(T184, T185, T186, T174, count1_in_ga(T190, T174))
U13_ga(T184, T185, T186, T174, count1_out_ga(T190, T174)) → count1_out_ga(cons(cons(T184, T185), T186), T174)
U10_ga(T8, T51, T52, T53, T55, count1_out_ga(T59, T55)) → count1_out_ga(cons(atom(T8), cons(cons(T51, T52), T53)), s(T55))
U7_ga(T8, T29, T30, T32, count1_out_ga(T30, T32)) → count1_out_ga(cons(atom(T8), cons(atom(T29), T30)), s(s(T32)))
COUNT1_IN_GA(cons(atom(T8), cons(atom(T29), T30)), s(s(T32))) → U7_GA(T8, T29, T30, T32, count1_in_ga(T30, T32))
COUNT1_IN_GA(cons(atom(T8), cons(atom(T29), T30)), s(s(T32))) → COUNT1_IN_GA(T30, T32)
COUNT1_IN_GA(cons(atom(T8), cons(cons(T51, T52), T53)), s(T55)) → U8_GA(T8, T51, T52, T53, T55, flatten24_in_ggga(T51, T52, T53, X68))
COUNT1_IN_GA(cons(atom(T8), cons(cons(T51, T52), T53)), s(T55)) → FLATTEN24_IN_GGGA(T51, T52, T53, X68)
FLATTEN24_IN_GGGA(T72, T73, T74, X117) → U6_GGGA(T72, T73, T74, X117, flatten29_in_ggga(T72, T73, T74, X117))
FLATTEN24_IN_GGGA(T72, T73, T74, X117) → FLATTEN29_IN_GGGA(T72, T73, T74, X117)
FLATTEN29_IN_GGGA(atom(T90), atom(T103), T104, .(T90, .(T103, X174))) → U3_GGGA(T90, T103, T104, X174, flatten40_in_ga(T104, X174))
FLATTEN29_IN_GGGA(atom(T90), atom(T103), T104, .(T90, .(T103, X174))) → FLATTEN40_IN_GA(T104, X174)
FLATTEN40_IN_GA(cons(atom(T120), T121), .(T120, X205)) → U1_GA(T120, T121, X205, flatten40_in_ga(T121, X205))
FLATTEN40_IN_GA(cons(atom(T120), T121), .(T120, X205)) → FLATTEN40_IN_GA(T121, X205)
FLATTEN40_IN_GA(cons(cons(T130, T131), T132), X225) → U2_GA(T130, T131, T132, X225, flatten29_in_ggga(T130, T131, T132, X225))
FLATTEN40_IN_GA(cons(cons(T130, T131), T132), X225) → FLATTEN29_IN_GGGA(T130, T131, T132, X225)
FLATTEN29_IN_GGGA(atom(T90), cons(T142, T143), T144, .(T90, X250)) → U4_GGGA(T90, T142, T143, T144, X250, flatten29_in_ggga(T142, T143, T144, X250))
FLATTEN29_IN_GGGA(atom(T90), cons(T142, T143), T144, .(T90, X250)) → FLATTEN29_IN_GGGA(T142, T143, T144, X250)
FLATTEN29_IN_GGGA(cons(T156, T157), T158, T159, X275) → U5_GGGA(T156, T157, T158, T159, X275, flatten29_in_ggga(T156, T157, cons(T158, T159), X275))
FLATTEN29_IN_GGGA(cons(T156, T157), T158, T159, X275) → FLATTEN29_IN_GGGA(T156, T157, cons(T158, T159), X275)
COUNT1_IN_GA(cons(atom(T8), cons(cons(T51, T52), T53)), s(T55)) → U9_GA(T8, T51, T52, T53, T55, flatten24_in_ggga(T51, T52, T53, T59))
U9_GA(T8, T51, T52, T53, T55, flatten24_out_ggga(T51, T52, T53, T59)) → U10_GA(T8, T51, T52, T53, T55, count1_in_ga(T59, T55))
U9_GA(T8, T51, T52, T53, T55, flatten24_out_ggga(T51, T52, T53, T59)) → COUNT1_IN_GA(T59, T55)
COUNT1_IN_GA(cons(cons(T184, T185), T186), T174) → U11_GA(T184, T185, T186, T174, flatten29_in_ggga(T184, T185, T186, X329))
COUNT1_IN_GA(cons(cons(T184, T185), T186), T174) → FLATTEN29_IN_GGGA(T184, T185, T186, X329)
COUNT1_IN_GA(cons(cons(T184, T185), T186), T174) → U12_GA(T184, T185, T186, T174, flatten29_in_ggga(T184, T185, T186, T190))
U12_GA(T184, T185, T186, T174, flatten29_out_ggga(T184, T185, T186, T190)) → U13_GA(T184, T185, T186, T174, count1_in_ga(T190, T174))
U12_GA(T184, T185, T186, T174, flatten29_out_ggga(T184, T185, T186, T190)) → COUNT1_IN_GA(T190, T174)
count1_in_ga(atom(T4), s(0)) → count1_out_ga(atom(T4), s(0))
count1_in_ga(cons(atom(T8), atom(T16)), s(s(0))) → count1_out_ga(cons(atom(T8), atom(T16)), s(s(0)))
count1_in_ga(cons(atom(T8), cons(atom(T29), T30)), s(s(T32))) → U7_ga(T8, T29, T30, T32, count1_in_ga(T30, T32))
count1_in_ga(cons(atom(T8), cons(cons(T51, T52), T53)), s(T55)) → U8_ga(T8, T51, T52, T53, T55, flatten24_in_ggga(T51, T52, T53, X68))
flatten24_in_ggga(T72, T73, T74, X117) → U6_ggga(T72, T73, T74, X117, flatten29_in_ggga(T72, T73, T74, X117))
flatten29_in_ggga(atom(T90), atom(T103), T104, .(T90, .(T103, X174))) → U3_ggga(T90, T103, T104, X174, flatten40_in_ga(T104, X174))
flatten40_in_ga(atom(T111), .(T111, [])) → flatten40_out_ga(atom(T111), .(T111, []))
flatten40_in_ga(cons(atom(T120), T121), .(T120, X205)) → U1_ga(T120, T121, X205, flatten40_in_ga(T121, X205))
flatten40_in_ga(cons(cons(T130, T131), T132), X225) → U2_ga(T130, T131, T132, X225, flatten29_in_ggga(T130, T131, T132, X225))
flatten29_in_ggga(atom(T90), cons(T142, T143), T144, .(T90, X250)) → U4_ggga(T90, T142, T143, T144, X250, flatten29_in_ggga(T142, T143, T144, X250))
flatten29_in_ggga(cons(T156, T157), T158, T159, X275) → U5_ggga(T156, T157, T158, T159, X275, flatten29_in_ggga(T156, T157, cons(T158, T159), X275))
U5_ggga(T156, T157, T158, T159, X275, flatten29_out_ggga(T156, T157, cons(T158, T159), X275)) → flatten29_out_ggga(cons(T156, T157), T158, T159, X275)
U4_ggga(T90, T142, T143, T144, X250, flatten29_out_ggga(T142, T143, T144, X250)) → flatten29_out_ggga(atom(T90), cons(T142, T143), T144, .(T90, X250))
U2_ga(T130, T131, T132, X225, flatten29_out_ggga(T130, T131, T132, X225)) → flatten40_out_ga(cons(cons(T130, T131), T132), X225)
U1_ga(T120, T121, X205, flatten40_out_ga(T121, X205)) → flatten40_out_ga(cons(atom(T120), T121), .(T120, X205))
U3_ggga(T90, T103, T104, X174, flatten40_out_ga(T104, X174)) → flatten29_out_ggga(atom(T90), atom(T103), T104, .(T90, .(T103, X174)))
U6_ggga(T72, T73, T74, X117, flatten29_out_ggga(T72, T73, T74, X117)) → flatten24_out_ggga(T72, T73, T74, X117)
U8_ga(T8, T51, T52, T53, T55, flatten24_out_ggga(T51, T52, T53, X68)) → count1_out_ga(cons(atom(T8), cons(cons(T51, T52), T53)), s(T55))
count1_in_ga(cons(atom(T8), cons(cons(T51, T52), T53)), s(T55)) → U9_ga(T8, T51, T52, T53, T55, flatten24_in_ggga(T51, T52, T53, T59))
U9_ga(T8, T51, T52, T53, T55, flatten24_out_ggga(T51, T52, T53, T59)) → U10_ga(T8, T51, T52, T53, T55, count1_in_ga(T59, T55))
count1_in_ga(cons(cons(T184, T185), T186), T174) → U11_ga(T184, T185, T186, T174, flatten29_in_ggga(T184, T185, T186, X329))
U11_ga(T184, T185, T186, T174, flatten29_out_ggga(T184, T185, T186, X329)) → count1_out_ga(cons(cons(T184, T185), T186), T174)
count1_in_ga(cons(cons(T184, T185), T186), T174) → U12_ga(T184, T185, T186, T174, flatten29_in_ggga(T184, T185, T186, T190))
U12_ga(T184, T185, T186, T174, flatten29_out_ggga(T184, T185, T186, T190)) → U13_ga(T184, T185, T186, T174, count1_in_ga(T190, T174))
U13_ga(T184, T185, T186, T174, count1_out_ga(T190, T174)) → count1_out_ga(cons(cons(T184, T185), T186), T174)
U10_ga(T8, T51, T52, T53, T55, count1_out_ga(T59, T55)) → count1_out_ga(cons(atom(T8), cons(cons(T51, T52), T53)), s(T55))
U7_ga(T8, T29, T30, T32, count1_out_ga(T30, T32)) → count1_out_ga(cons(atom(T8), cons(atom(T29), T30)), s(s(T32)))
COUNT1_IN_GA(cons(atom(T8), cons(atom(T29), T30)), s(s(T32))) → U7_GA(T8, T29, T30, T32, count1_in_ga(T30, T32))
COUNT1_IN_GA(cons(atom(T8), cons(atom(T29), T30)), s(s(T32))) → COUNT1_IN_GA(T30, T32)
COUNT1_IN_GA(cons(atom(T8), cons(cons(T51, T52), T53)), s(T55)) → U8_GA(T8, T51, T52, T53, T55, flatten24_in_ggga(T51, T52, T53, X68))
COUNT1_IN_GA(cons(atom(T8), cons(cons(T51, T52), T53)), s(T55)) → FLATTEN24_IN_GGGA(T51, T52, T53, X68)
FLATTEN24_IN_GGGA(T72, T73, T74, X117) → U6_GGGA(T72, T73, T74, X117, flatten29_in_ggga(T72, T73, T74, X117))
FLATTEN24_IN_GGGA(T72, T73, T74, X117) → FLATTEN29_IN_GGGA(T72, T73, T74, X117)
FLATTEN29_IN_GGGA(atom(T90), atom(T103), T104, .(T90, .(T103, X174))) → U3_GGGA(T90, T103, T104, X174, flatten40_in_ga(T104, X174))
FLATTEN29_IN_GGGA(atom(T90), atom(T103), T104, .(T90, .(T103, X174))) → FLATTEN40_IN_GA(T104, X174)
FLATTEN40_IN_GA(cons(atom(T120), T121), .(T120, X205)) → U1_GA(T120, T121, X205, flatten40_in_ga(T121, X205))
FLATTEN40_IN_GA(cons(atom(T120), T121), .(T120, X205)) → FLATTEN40_IN_GA(T121, X205)
FLATTEN40_IN_GA(cons(cons(T130, T131), T132), X225) → U2_GA(T130, T131, T132, X225, flatten29_in_ggga(T130, T131, T132, X225))
FLATTEN40_IN_GA(cons(cons(T130, T131), T132), X225) → FLATTEN29_IN_GGGA(T130, T131, T132, X225)
FLATTEN29_IN_GGGA(atom(T90), cons(T142, T143), T144, .(T90, X250)) → U4_GGGA(T90, T142, T143, T144, X250, flatten29_in_ggga(T142, T143, T144, X250))
FLATTEN29_IN_GGGA(atom(T90), cons(T142, T143), T144, .(T90, X250)) → FLATTEN29_IN_GGGA(T142, T143, T144, X250)
FLATTEN29_IN_GGGA(cons(T156, T157), T158, T159, X275) → U5_GGGA(T156, T157, T158, T159, X275, flatten29_in_ggga(T156, T157, cons(T158, T159), X275))
FLATTEN29_IN_GGGA(cons(T156, T157), T158, T159, X275) → FLATTEN29_IN_GGGA(T156, T157, cons(T158, T159), X275)
COUNT1_IN_GA(cons(atom(T8), cons(cons(T51, T52), T53)), s(T55)) → U9_GA(T8, T51, T52, T53, T55, flatten24_in_ggga(T51, T52, T53, T59))
U9_GA(T8, T51, T52, T53, T55, flatten24_out_ggga(T51, T52, T53, T59)) → U10_GA(T8, T51, T52, T53, T55, count1_in_ga(T59, T55))
U9_GA(T8, T51, T52, T53, T55, flatten24_out_ggga(T51, T52, T53, T59)) → COUNT1_IN_GA(T59, T55)
COUNT1_IN_GA(cons(cons(T184, T185), T186), T174) → U11_GA(T184, T185, T186, T174, flatten29_in_ggga(T184, T185, T186, X329))
COUNT1_IN_GA(cons(cons(T184, T185), T186), T174) → FLATTEN29_IN_GGGA(T184, T185, T186, X329)
COUNT1_IN_GA(cons(cons(T184, T185), T186), T174) → U12_GA(T184, T185, T186, T174, flatten29_in_ggga(T184, T185, T186, T190))
U12_GA(T184, T185, T186, T174, flatten29_out_ggga(T184, T185, T186, T190)) → U13_GA(T184, T185, T186, T174, count1_in_ga(T190, T174))
U12_GA(T184, T185, T186, T174, flatten29_out_ggga(T184, T185, T186, T190)) → COUNT1_IN_GA(T190, T174)
count1_in_ga(atom(T4), s(0)) → count1_out_ga(atom(T4), s(0))
count1_in_ga(cons(atom(T8), atom(T16)), s(s(0))) → count1_out_ga(cons(atom(T8), atom(T16)), s(s(0)))
count1_in_ga(cons(atom(T8), cons(atom(T29), T30)), s(s(T32))) → U7_ga(T8, T29, T30, T32, count1_in_ga(T30, T32))
count1_in_ga(cons(atom(T8), cons(cons(T51, T52), T53)), s(T55)) → U8_ga(T8, T51, T52, T53, T55, flatten24_in_ggga(T51, T52, T53, X68))
flatten24_in_ggga(T72, T73, T74, X117) → U6_ggga(T72, T73, T74, X117, flatten29_in_ggga(T72, T73, T74, X117))
flatten29_in_ggga(atom(T90), atom(T103), T104, .(T90, .(T103, X174))) → U3_ggga(T90, T103, T104, X174, flatten40_in_ga(T104, X174))
flatten40_in_ga(atom(T111), .(T111, [])) → flatten40_out_ga(atom(T111), .(T111, []))
flatten40_in_ga(cons(atom(T120), T121), .(T120, X205)) → U1_ga(T120, T121, X205, flatten40_in_ga(T121, X205))
flatten40_in_ga(cons(cons(T130, T131), T132), X225) → U2_ga(T130, T131, T132, X225, flatten29_in_ggga(T130, T131, T132, X225))
flatten29_in_ggga(atom(T90), cons(T142, T143), T144, .(T90, X250)) → U4_ggga(T90, T142, T143, T144, X250, flatten29_in_ggga(T142, T143, T144, X250))
flatten29_in_ggga(cons(T156, T157), T158, T159, X275) → U5_ggga(T156, T157, T158, T159, X275, flatten29_in_ggga(T156, T157, cons(T158, T159), X275))
U5_ggga(T156, T157, T158, T159, X275, flatten29_out_ggga(T156, T157, cons(T158, T159), X275)) → flatten29_out_ggga(cons(T156, T157), T158, T159, X275)
U4_ggga(T90, T142, T143, T144, X250, flatten29_out_ggga(T142, T143, T144, X250)) → flatten29_out_ggga(atom(T90), cons(T142, T143), T144, .(T90, X250))
U2_ga(T130, T131, T132, X225, flatten29_out_ggga(T130, T131, T132, X225)) → flatten40_out_ga(cons(cons(T130, T131), T132), X225)
U1_ga(T120, T121, X205, flatten40_out_ga(T121, X205)) → flatten40_out_ga(cons(atom(T120), T121), .(T120, X205))
U3_ggga(T90, T103, T104, X174, flatten40_out_ga(T104, X174)) → flatten29_out_ggga(atom(T90), atom(T103), T104, .(T90, .(T103, X174)))
U6_ggga(T72, T73, T74, X117, flatten29_out_ggga(T72, T73, T74, X117)) → flatten24_out_ggga(T72, T73, T74, X117)
U8_ga(T8, T51, T52, T53, T55, flatten24_out_ggga(T51, T52, T53, X68)) → count1_out_ga(cons(atom(T8), cons(cons(T51, T52), T53)), s(T55))
count1_in_ga(cons(atom(T8), cons(cons(T51, T52), T53)), s(T55)) → U9_ga(T8, T51, T52, T53, T55, flatten24_in_ggga(T51, T52, T53, T59))
U9_ga(T8, T51, T52, T53, T55, flatten24_out_ggga(T51, T52, T53, T59)) → U10_ga(T8, T51, T52, T53, T55, count1_in_ga(T59, T55))
count1_in_ga(cons(cons(T184, T185), T186), T174) → U11_ga(T184, T185, T186, T174, flatten29_in_ggga(T184, T185, T186, X329))
U11_ga(T184, T185, T186, T174, flatten29_out_ggga(T184, T185, T186, X329)) → count1_out_ga(cons(cons(T184, T185), T186), T174)
count1_in_ga(cons(cons(T184, T185), T186), T174) → U12_ga(T184, T185, T186, T174, flatten29_in_ggga(T184, T185, T186, T190))
U12_ga(T184, T185, T186, T174, flatten29_out_ggga(T184, T185, T186, T190)) → U13_ga(T184, T185, T186, T174, count1_in_ga(T190, T174))
U13_ga(T184, T185, T186, T174, count1_out_ga(T190, T174)) → count1_out_ga(cons(cons(T184, T185), T186), T174)
U10_ga(T8, T51, T52, T53, T55, count1_out_ga(T59, T55)) → count1_out_ga(cons(atom(T8), cons(cons(T51, T52), T53)), s(T55))
U7_ga(T8, T29, T30, T32, count1_out_ga(T30, T32)) → count1_out_ga(cons(atom(T8), cons(atom(T29), T30)), s(s(T32)))
FLATTEN29_IN_GGGA(atom(T90), atom(T103), T104, .(T90, .(T103, X174))) → FLATTEN40_IN_GA(T104, X174)
FLATTEN40_IN_GA(cons(atom(T120), T121), .(T120, X205)) → FLATTEN40_IN_GA(T121, X205)
FLATTEN40_IN_GA(cons(cons(T130, T131), T132), X225) → FLATTEN29_IN_GGGA(T130, T131, T132, X225)
FLATTEN29_IN_GGGA(atom(T90), cons(T142, T143), T144, .(T90, X250)) → FLATTEN29_IN_GGGA(T142, T143, T144, X250)
FLATTEN29_IN_GGGA(cons(T156, T157), T158, T159, X275) → FLATTEN29_IN_GGGA(T156, T157, cons(T158, T159), X275)
count1_in_ga(atom(T4), s(0)) → count1_out_ga(atom(T4), s(0))
count1_in_ga(cons(atom(T8), atom(T16)), s(s(0))) → count1_out_ga(cons(atom(T8), atom(T16)), s(s(0)))
count1_in_ga(cons(atom(T8), cons(atom(T29), T30)), s(s(T32))) → U7_ga(T8, T29, T30, T32, count1_in_ga(T30, T32))
count1_in_ga(cons(atom(T8), cons(cons(T51, T52), T53)), s(T55)) → U8_ga(T8, T51, T52, T53, T55, flatten24_in_ggga(T51, T52, T53, X68))
flatten24_in_ggga(T72, T73, T74, X117) → U6_ggga(T72, T73, T74, X117, flatten29_in_ggga(T72, T73, T74, X117))
flatten29_in_ggga(atom(T90), atom(T103), T104, .(T90, .(T103, X174))) → U3_ggga(T90, T103, T104, X174, flatten40_in_ga(T104, X174))
flatten40_in_ga(atom(T111), .(T111, [])) → flatten40_out_ga(atom(T111), .(T111, []))
flatten40_in_ga(cons(atom(T120), T121), .(T120, X205)) → U1_ga(T120, T121, X205, flatten40_in_ga(T121, X205))
flatten40_in_ga(cons(cons(T130, T131), T132), X225) → U2_ga(T130, T131, T132, X225, flatten29_in_ggga(T130, T131, T132, X225))
flatten29_in_ggga(atom(T90), cons(T142, T143), T144, .(T90, X250)) → U4_ggga(T90, T142, T143, T144, X250, flatten29_in_ggga(T142, T143, T144, X250))
flatten29_in_ggga(cons(T156, T157), T158, T159, X275) → U5_ggga(T156, T157, T158, T159, X275, flatten29_in_ggga(T156, T157, cons(T158, T159), X275))
U5_ggga(T156, T157, T158, T159, X275, flatten29_out_ggga(T156, T157, cons(T158, T159), X275)) → flatten29_out_ggga(cons(T156, T157), T158, T159, X275)
U4_ggga(T90, T142, T143, T144, X250, flatten29_out_ggga(T142, T143, T144, X250)) → flatten29_out_ggga(atom(T90), cons(T142, T143), T144, .(T90, X250))
U2_ga(T130, T131, T132, X225, flatten29_out_ggga(T130, T131, T132, X225)) → flatten40_out_ga(cons(cons(T130, T131), T132), X225)
U1_ga(T120, T121, X205, flatten40_out_ga(T121, X205)) → flatten40_out_ga(cons(atom(T120), T121), .(T120, X205))
U3_ggga(T90, T103, T104, X174, flatten40_out_ga(T104, X174)) → flatten29_out_ggga(atom(T90), atom(T103), T104, .(T90, .(T103, X174)))
U6_ggga(T72, T73, T74, X117, flatten29_out_ggga(T72, T73, T74, X117)) → flatten24_out_ggga(T72, T73, T74, X117)
U8_ga(T8, T51, T52, T53, T55, flatten24_out_ggga(T51, T52, T53, X68)) → count1_out_ga(cons(atom(T8), cons(cons(T51, T52), T53)), s(T55))
count1_in_ga(cons(atom(T8), cons(cons(T51, T52), T53)), s(T55)) → U9_ga(T8, T51, T52, T53, T55, flatten24_in_ggga(T51, T52, T53, T59))
U9_ga(T8, T51, T52, T53, T55, flatten24_out_ggga(T51, T52, T53, T59)) → U10_ga(T8, T51, T52, T53, T55, count1_in_ga(T59, T55))
count1_in_ga(cons(cons(T184, T185), T186), T174) → U11_ga(T184, T185, T186, T174, flatten29_in_ggga(T184, T185, T186, X329))
U11_ga(T184, T185, T186, T174, flatten29_out_ggga(T184, T185, T186, X329)) → count1_out_ga(cons(cons(T184, T185), T186), T174)
count1_in_ga(cons(cons(T184, T185), T186), T174) → U12_ga(T184, T185, T186, T174, flatten29_in_ggga(T184, T185, T186, T190))
U12_ga(T184, T185, T186, T174, flatten29_out_ggga(T184, T185, T186, T190)) → U13_ga(T184, T185, T186, T174, count1_in_ga(T190, T174))
U13_ga(T184, T185, T186, T174, count1_out_ga(T190, T174)) → count1_out_ga(cons(cons(T184, T185), T186), T174)
U10_ga(T8, T51, T52, T53, T55, count1_out_ga(T59, T55)) → count1_out_ga(cons(atom(T8), cons(cons(T51, T52), T53)), s(T55))
U7_ga(T8, T29, T30, T32, count1_out_ga(T30, T32)) → count1_out_ga(cons(atom(T8), cons(atom(T29), T30)), s(s(T32)))
FLATTEN29_IN_GGGA(atom(T90), atom(T103), T104, .(T90, .(T103, X174))) → FLATTEN40_IN_GA(T104, X174)
FLATTEN40_IN_GA(cons(atom(T120), T121), .(T120, X205)) → FLATTEN40_IN_GA(T121, X205)
FLATTEN40_IN_GA(cons(cons(T130, T131), T132), X225) → FLATTEN29_IN_GGGA(T130, T131, T132, X225)
FLATTEN29_IN_GGGA(atom(T90), cons(T142, T143), T144, .(T90, X250)) → FLATTEN29_IN_GGGA(T142, T143, T144, X250)
FLATTEN29_IN_GGGA(cons(T156, T157), T158, T159, X275) → FLATTEN29_IN_GGGA(T156, T157, cons(T158, T159), X275)
FLATTEN29_IN_GGGA(atom(T90), atom(T103), T104) → FLATTEN40_IN_GA(T104)
FLATTEN40_IN_GA(cons(atom(T120), T121)) → FLATTEN40_IN_GA(T121)
FLATTEN40_IN_GA(cons(cons(T130, T131), T132)) → FLATTEN29_IN_GGGA(T130, T131, T132)
FLATTEN29_IN_GGGA(atom(T90), cons(T142, T143), T144) → FLATTEN29_IN_GGGA(T142, T143, T144)
FLATTEN29_IN_GGGA(cons(T156, T157), T158, T159) → FLATTEN29_IN_GGGA(T156, T157, cons(T158, T159))
No rules are removed from R.
FLATTEN29_IN_GGGA(atom(T90), atom(T103), T104) → FLATTEN40_IN_GA(T104)
FLATTEN40_IN_GA(cons(atom(T120), T121)) → FLATTEN40_IN_GA(T121)
FLATTEN40_IN_GA(cons(cons(T130, T131), T132)) → FLATTEN29_IN_GGGA(T130, T131, T132)
FLATTEN29_IN_GGGA(atom(T90), cons(T142, T143), T144) → FLATTEN29_IN_GGGA(T142, T143, T144)
POL(FLATTEN29_IN_GGGA(x1, x2, x3)) = 2·x1 + 2·x2 + 2·x3
POL(FLATTEN40_IN_GA(x1)) = 1 + 2·x1
POL(atom(x1)) = 1 + x1
POL(cons(x1, x2)) = x1 + x2
FLATTEN29_IN_GGGA(cons(T156, T157), T158, T159) → FLATTEN29_IN_GGGA(T156, T157, cons(T158, T159))
From the DPs we obtained the following set of size-change graphs:
COUNT1_IN_GA(cons(atom(T8), cons(cons(T51, T52), T53)), s(T55)) → U9_GA(T8, T51, T52, T53, T55, flatten24_in_ggga(T51, T52, T53, T59))
U9_GA(T8, T51, T52, T53, T55, flatten24_out_ggga(T51, T52, T53, T59)) → COUNT1_IN_GA(T59, T55)
COUNT1_IN_GA(cons(atom(T8), cons(atom(T29), T30)), s(s(T32))) → COUNT1_IN_GA(T30, T32)
COUNT1_IN_GA(cons(cons(T184, T185), T186), T174) → U12_GA(T184, T185, T186, T174, flatten29_in_ggga(T184, T185, T186, T190))
U12_GA(T184, T185, T186, T174, flatten29_out_ggga(T184, T185, T186, T190)) → COUNT1_IN_GA(T190, T174)
count1_in_ga(atom(T4), s(0)) → count1_out_ga(atom(T4), s(0))
count1_in_ga(cons(atom(T8), atom(T16)), s(s(0))) → count1_out_ga(cons(atom(T8), atom(T16)), s(s(0)))
count1_in_ga(cons(atom(T8), cons(atom(T29), T30)), s(s(T32))) → U7_ga(T8, T29, T30, T32, count1_in_ga(T30, T32))
count1_in_ga(cons(atom(T8), cons(cons(T51, T52), T53)), s(T55)) → U8_ga(T8, T51, T52, T53, T55, flatten24_in_ggga(T51, T52, T53, X68))
flatten24_in_ggga(T72, T73, T74, X117) → U6_ggga(T72, T73, T74, X117, flatten29_in_ggga(T72, T73, T74, X117))
flatten29_in_ggga(atom(T90), atom(T103), T104, .(T90, .(T103, X174))) → U3_ggga(T90, T103, T104, X174, flatten40_in_ga(T104, X174))
flatten40_in_ga(atom(T111), .(T111, [])) → flatten40_out_ga(atom(T111), .(T111, []))
flatten40_in_ga(cons(atom(T120), T121), .(T120, X205)) → U1_ga(T120, T121, X205, flatten40_in_ga(T121, X205))
flatten40_in_ga(cons(cons(T130, T131), T132), X225) → U2_ga(T130, T131, T132, X225, flatten29_in_ggga(T130, T131, T132, X225))
flatten29_in_ggga(atom(T90), cons(T142, T143), T144, .(T90, X250)) → U4_ggga(T90, T142, T143, T144, X250, flatten29_in_ggga(T142, T143, T144, X250))
flatten29_in_ggga(cons(T156, T157), T158, T159, X275) → U5_ggga(T156, T157, T158, T159, X275, flatten29_in_ggga(T156, T157, cons(T158, T159), X275))
U5_ggga(T156, T157, T158, T159, X275, flatten29_out_ggga(T156, T157, cons(T158, T159), X275)) → flatten29_out_ggga(cons(T156, T157), T158, T159, X275)
U4_ggga(T90, T142, T143, T144, X250, flatten29_out_ggga(T142, T143, T144, X250)) → flatten29_out_ggga(atom(T90), cons(T142, T143), T144, .(T90, X250))
U2_ga(T130, T131, T132, X225, flatten29_out_ggga(T130, T131, T132, X225)) → flatten40_out_ga(cons(cons(T130, T131), T132), X225)
U1_ga(T120, T121, X205, flatten40_out_ga(T121, X205)) → flatten40_out_ga(cons(atom(T120), T121), .(T120, X205))
U3_ggga(T90, T103, T104, X174, flatten40_out_ga(T104, X174)) → flatten29_out_ggga(atom(T90), atom(T103), T104, .(T90, .(T103, X174)))
U6_ggga(T72, T73, T74, X117, flatten29_out_ggga(T72, T73, T74, X117)) → flatten24_out_ggga(T72, T73, T74, X117)
U8_ga(T8, T51, T52, T53, T55, flatten24_out_ggga(T51, T52, T53, X68)) → count1_out_ga(cons(atom(T8), cons(cons(T51, T52), T53)), s(T55))
count1_in_ga(cons(atom(T8), cons(cons(T51, T52), T53)), s(T55)) → U9_ga(T8, T51, T52, T53, T55, flatten24_in_ggga(T51, T52, T53, T59))
U9_ga(T8, T51, T52, T53, T55, flatten24_out_ggga(T51, T52, T53, T59)) → U10_ga(T8, T51, T52, T53, T55, count1_in_ga(T59, T55))
count1_in_ga(cons(cons(T184, T185), T186), T174) → U11_ga(T184, T185, T186, T174, flatten29_in_ggga(T184, T185, T186, X329))
U11_ga(T184, T185, T186, T174, flatten29_out_ggga(T184, T185, T186, X329)) → count1_out_ga(cons(cons(T184, T185), T186), T174)
count1_in_ga(cons(cons(T184, T185), T186), T174) → U12_ga(T184, T185, T186, T174, flatten29_in_ggga(T184, T185, T186, T190))
U12_ga(T184, T185, T186, T174, flatten29_out_ggga(T184, T185, T186, T190)) → U13_ga(T184, T185, T186, T174, count1_in_ga(T190, T174))
U13_ga(T184, T185, T186, T174, count1_out_ga(T190, T174)) → count1_out_ga(cons(cons(T184, T185), T186), T174)
U10_ga(T8, T51, T52, T53, T55, count1_out_ga(T59, T55)) → count1_out_ga(cons(atom(T8), cons(cons(T51, T52), T53)), s(T55))
U7_ga(T8, T29, T30, T32, count1_out_ga(T30, T32)) → count1_out_ga(cons(atom(T8), cons(atom(T29), T30)), s(s(T32)))
COUNT1_IN_GA(cons(atom(T8), cons(cons(T51, T52), T53)), s(T55)) → U9_GA(T8, T51, T52, T53, T55, flatten24_in_ggga(T51, T52, T53, T59))
U9_GA(T8, T51, T52, T53, T55, flatten24_out_ggga(T51, T52, T53, T59)) → COUNT1_IN_GA(T59, T55)
COUNT1_IN_GA(cons(atom(T8), cons(atom(T29), T30)), s(s(T32))) → COUNT1_IN_GA(T30, T32)
COUNT1_IN_GA(cons(cons(T184, T185), T186), T174) → U12_GA(T184, T185, T186, T174, flatten29_in_ggga(T184, T185, T186, T190))
U12_GA(T184, T185, T186, T174, flatten29_out_ggga(T184, T185, T186, T190)) → COUNT1_IN_GA(T190, T174)
flatten24_in_ggga(T72, T73, T74, X117) → U6_ggga(T72, T73, T74, X117, flatten29_in_ggga(T72, T73, T74, X117))
flatten29_in_ggga(atom(T90), atom(T103), T104, .(T90, .(T103, X174))) → U3_ggga(T90, T103, T104, X174, flatten40_in_ga(T104, X174))
flatten29_in_ggga(atom(T90), cons(T142, T143), T144, .(T90, X250)) → U4_ggga(T90, T142, T143, T144, X250, flatten29_in_ggga(T142, T143, T144, X250))
flatten29_in_ggga(cons(T156, T157), T158, T159, X275) → U5_ggga(T156, T157, T158, T159, X275, flatten29_in_ggga(T156, T157, cons(T158, T159), X275))
U6_ggga(T72, T73, T74, X117, flatten29_out_ggga(T72, T73, T74, X117)) → flatten24_out_ggga(T72, T73, T74, X117)
U3_ggga(T90, T103, T104, X174, flatten40_out_ga(T104, X174)) → flatten29_out_ggga(atom(T90), atom(T103), T104, .(T90, .(T103, X174)))
U4_ggga(T90, T142, T143, T144, X250, flatten29_out_ggga(T142, T143, T144, X250)) → flatten29_out_ggga(atom(T90), cons(T142, T143), T144, .(T90, X250))
U5_ggga(T156, T157, T158, T159, X275, flatten29_out_ggga(T156, T157, cons(T158, T159), X275)) → flatten29_out_ggga(cons(T156, T157), T158, T159, X275)
flatten40_in_ga(atom(T111), .(T111, [])) → flatten40_out_ga(atom(T111), .(T111, []))
flatten40_in_ga(cons(atom(T120), T121), .(T120, X205)) → U1_ga(T120, T121, X205, flatten40_in_ga(T121, X205))
flatten40_in_ga(cons(cons(T130, T131), T132), X225) → U2_ga(T130, T131, T132, X225, flatten29_in_ggga(T130, T131, T132, X225))
U1_ga(T120, T121, X205, flatten40_out_ga(T121, X205)) → flatten40_out_ga(cons(atom(T120), T121), .(T120, X205))
U2_ga(T130, T131, T132, X225, flatten29_out_ggga(T130, T131, T132, X225)) → flatten40_out_ga(cons(cons(T130, T131), T132), X225)
COUNT1_IN_GA(cons(atom(T8), cons(cons(T51, T52), T53))) → U9_GA(flatten24_in_ggga(T51, T52, T53))
U9_GA(flatten24_out_ggga(T59)) → COUNT1_IN_GA(T59)
COUNT1_IN_GA(cons(atom(T8), cons(atom(T29), T30))) → COUNT1_IN_GA(T30)
COUNT1_IN_GA(cons(cons(T184, T185), T186)) → U12_GA(flatten29_in_ggga(T184, T185, T186))
U12_GA(flatten29_out_ggga(T190)) → COUNT1_IN_GA(T190)
flatten24_in_ggga(T72, T73, T74) → U6_ggga(flatten29_in_ggga(T72, T73, T74))
flatten29_in_ggga(atom(T90), atom(T103), T104) → U3_ggga(T90, T103, flatten40_in_ga(T104))
flatten29_in_ggga(atom(T90), cons(T142, T143), T144) → U4_ggga(T90, flatten29_in_ggga(T142, T143, T144))
flatten29_in_ggga(cons(T156, T157), T158, T159) → U5_ggga(flatten29_in_ggga(T156, T157, cons(T158, T159)))
U6_ggga(flatten29_out_ggga(X117)) → flatten24_out_ggga(X117)
U3_ggga(T90, T103, flatten40_out_ga(X174)) → flatten29_out_ggga(.(T90, .(T103, X174)))
U4_ggga(T90, flatten29_out_ggga(X250)) → flatten29_out_ggga(.(T90, X250))
U5_ggga(flatten29_out_ggga(X275)) → flatten29_out_ggga(X275)
flatten40_in_ga(atom(T111)) → flatten40_out_ga(.(T111, []))
flatten40_in_ga(cons(atom(T120), T121)) → U1_ga(T120, flatten40_in_ga(T121))
flatten40_in_ga(cons(cons(T130, T131), T132)) → U2_ga(flatten29_in_ggga(T130, T131, T132))
U1_ga(T120, flatten40_out_ga(X205)) → flatten40_out_ga(.(T120, X205))
U2_ga(flatten29_out_ggga(X225)) → flatten40_out_ga(X225)
flatten24_in_ggga(x0, x1, x2)
flatten29_in_ggga(x0, x1, x2)
U6_ggga(x0)
U3_ggga(x0, x1, x2)
U4_ggga(x0, x1)
U5_ggga(x0)
flatten40_in_ga(x0)
U1_ga(x0, x1)
U2_ga(x0)
The following rules are removed from R:
COUNT1_IN_GA(cons(atom(T8), cons(cons(T51, T52), T53))) → U9_GA(flatten24_in_ggga(T51, T52, T53))
U9_GA(flatten24_out_ggga(T59)) → COUNT1_IN_GA(T59)
COUNT1_IN_GA(cons(atom(T8), cons(atom(T29), T30))) → COUNT1_IN_GA(T30)
COUNT1_IN_GA(cons(cons(T184, T185), T186)) → U12_GA(flatten29_in_ggga(T184, T185, T186))
U12_GA(flatten29_out_ggga(T190)) → COUNT1_IN_GA(T190)
Used ordering: POLO with Polynomial interpretation [POLO]:
flatten29_in_ggga(atom(T90), atom(T103), T104) → U3_ggga(T90, T103, flatten40_in_ga(T104))
flatten29_in_ggga(atom(T90), cons(T142, T143), T144) → U4_ggga(T90, flatten29_in_ggga(T142, T143, T144))
U4_ggga(T90, flatten29_out_ggga(X250)) → flatten29_out_ggga(.(T90, X250))
flatten40_in_ga(atom(T111)) → flatten40_out_ga(.(T111, []))
flatten40_in_ga(cons(atom(T120), T121)) → U1_ga(T120, flatten40_in_ga(T121))
flatten40_in_ga(cons(cons(T130, T131), T132)) → U2_ga(flatten29_in_ggga(T130, T131, T132))
U2_ga(flatten29_out_ggga(X225)) → flatten40_out_ga(X225)
U1_ga(T120, flatten40_out_ga(X205)) → flatten40_out_ga(.(T120, X205))
U6_ggga(flatten29_out_ggga(X117)) → flatten24_out_ggga(X117)
POL(.(x1, x2)) = x1 + x2
POL(COUNT1_IN_GA(x1)) = 2·x1
POL(U12_GA(x1)) = 2 + 2·x1
POL(U1_ga(x1, x2)) = 1 + 2·x1 + x2
POL(U2_ga(x1)) = 1 + x1
POL(U3_ggga(x1, x2, x3)) = 2·x1 + 2·x2 + x3
POL(U4_ggga(x1, x2)) = 1 + 2·x1 + x2
POL(U5_ggga(x1)) = x1
POL(U6_ggga(x1)) = 2 + x1
POL(U9_GA(x1)) = 1 + 2·x1
POL([]) = 0
POL(atom(x1)) = 2 + 2·x1
POL(cons(x1, x2)) = 2 + x1 + x2
POL(flatten24_in_ggga(x1, x2, x3)) = 2 + x1 + x2 + x3
POL(flatten24_out_ggga(x1)) = 1 + x1
POL(flatten29_in_ggga(x1, x2, x3)) = x1 + x2 + x3
POL(flatten29_out_ggga(x1)) = x1
POL(flatten40_in_ga(x1)) = x1
POL(flatten40_out_ga(x1)) = x1
flatten29_in_ggga(cons(T156, T157), T158, T159) → U5_ggga(flatten29_in_ggga(T156, T157, cons(T158, T159)))
U5_ggga(flatten29_out_ggga(X275)) → flatten29_out_ggga(X275)
U3_ggga(T90, T103, flatten40_out_ga(X174)) → flatten29_out_ggga(.(T90, .(T103, X174)))
flatten24_in_ggga(T72, T73, T74) → U6_ggga(flatten29_in_ggga(T72, T73, T74))
flatten24_in_ggga(x0, x1, x2)
flatten29_in_ggga(x0, x1, x2)
U6_ggga(x0)
U3_ggga(x0, x1, x2)
U4_ggga(x0, x1)
U5_ggga(x0)
flatten40_in_ga(x0)
U1_ga(x0, x1)
U2_ga(x0)