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 QDPSizeChangeProof (⇔)
↳15 YES
↳16 PiDP
↳17 UsableRulesProof (⇔)
↳18 PiDP
↳19 PiDPToQDPProof (⇐)
↳20 QDP
↳21 QDPSizeChangeProof (⇔)
↳22 YES
↳23 PiDP
↳24 UsableRulesProof (⇔)
↳25 PiDP
↳26 PiDPToQDPProof (⇐)
↳27 QDP
↳28 MRRProof (⇔)
↳29 QDP
↳30 PisEmptyProof (⇔)
↳31 YES
↳32 PiDP
↳33 UsableRulesProof (⇔)
↳34 PiDP
↳35 PiDPToQDPProof (⇐)
↳36 QDP
↳37 QDPSizeChangeProof (⇔)
↳38 YES
↳39 PiDP
↳40 UsableRulesProof (⇔)
↳41 PiDP
↳42 PiDPToQDPProof (⇐)
↳43 QDP
↳44 QDPSizeChangeProof (⇔)
↳45 YES
perm1_in_ga(.(X47, T20), .(T21, T22)) → U12_ga(X47, T20, T21, T22, app110_in_aaag(X48, T21, X49, T20))
app110_in_aaag(.(X100, X101), T40, X102, .(X100, T39)) → U1_aaag(X100, X101, T40, X102, T39, app110_in_aaag(X101, T40, X102, T39))
app110_in_aaag([], T45, X119, .(T45, X119)) → app110_out_aaag([], T45, X119, .(T45, X119))
U1_aaag(X100, X101, T40, X102, T39, app110_out_aaag(X101, T40, X102, T39)) → app110_out_aaag(.(X100, X101), T40, X102, .(X100, T39))
U12_ga(X47, T20, T21, T22, app110_out_aaag(X48, T21, X49, T20)) → perm1_out_ga(.(X47, T20), .(T21, T22))
perm1_in_ga(.(X47, T20), .(T21, T27)) → U13_ga(X47, T20, T21, T27, app110_in_aaag(T25, T21, T26, T20))
U13_ga(X47, T20, T21, T27, app110_out_aaag(T25, T21, T26, T20)) → U14_ga(X47, T20, T21, T27, app220_in_ggga(X47, T25, T26, X11))
app220_in_ggga(X171, T66, T67, .(X171, X172)) → U11_ggga(X171, T66, T67, X172, app225_in_gga(T66, T67, X172))
app225_in_gga(.(T83, T84), T85, .(T83, X202)) → U2_gga(T83, T84, T85, X202, app225_in_gga(T84, T85, X202))
app225_in_gga([], T91, T91) → app225_out_gga([], T91, T91)
U2_gga(T83, T84, T85, X202, app225_out_gga(T84, T85, X202)) → app225_out_gga(.(T83, T84), T85, .(T83, X202))
U11_ggga(X171, T66, T67, X172, app225_out_gga(T66, T67, X172)) → app220_out_ggga(X171, T66, T67, .(X171, X172))
U14_ga(X47, T20, T21, T27, app220_out_ggga(X47, T25, T26, X11)) → perm1_out_ga(.(X47, T20), .(T21, T27))
perm1_in_ga(.(T48, T20), .(T21, T27)) → U15_ga(T48, T20, T21, T27, app110_in_aaag(T25, T21, T26, T20))
U15_ga(T48, T20, T21, T27, app110_out_aaag(T25, T21, T26, T20)) → U16_ga(T48, T20, T21, T27, app220_in_ggga(T48, T25, T26, T49))
U16_ga(T48, T20, T21, T27, app220_out_ggga(T48, T25, T26, T49)) → U17_ga(T48, T20, T21, T27, perm21_in_ga(T49, T27))
perm21_in_ga(T110, .(T111, T112)) → U4_ga(T110, T111, T112, app140_in_aaag(X244, T111, X245, T110))
app140_in_aaag(.(X296, X297), T131, X298, .(X296, T130)) → U3_aaag(X296, X297, T131, X298, T130, app140_in_aaag(X297, T131, X298, T130))
app140_in_aaag([], T136, X315, .(T136, X315)) → app140_out_aaag([], T136, X315, .(T136, X315))
U3_aaag(X296, X297, T131, X298, T130, app140_out_aaag(X297, T131, X298, T130)) → app140_out_aaag(.(X296, X297), T131, X298, .(X296, T130))
U4_ga(T110, T111, T112, app140_out_aaag(X244, T111, X245, T110)) → perm21_out_ga(T110, .(T111, T112))
perm21_in_ga(T110, .(T111, T117)) → U5_ga(T110, T111, T117, app140_in_aaag(T115, T111, T116, T110))
U5_ga(T110, T111, T117, app140_out_aaag(T115, T111, T116, T110)) → U6_ga(T110, T111, T117, app250_in_gga(T115, T116, X246))
app250_in_gga(.(T157, T160), T161, .(T157, X351)) → U10_gga(T157, T160, T161, X351, app250_in_gga(T160, T161, X351))
app250_in_gga([], T167, T167) → app250_out_gga([], T167, T167)
U10_gga(T157, T160, T161, X351, app250_out_gga(T160, T161, X351)) → app250_out_gga(.(T157, T160), T161, .(T157, X351))
U6_ga(T110, T111, T117, app250_out_gga(T115, T116, X246)) → perm21_out_ga(T110, .(T111, T117))
perm21_in_ga(T110, .(T111, T141)) → U7_ga(T110, T111, T141, app140_in_aaag(T115, T111, T116, T110))
U7_ga(T110, T111, T141, app140_out_aaag(T115, T111, T116, T110)) → U8_ga(T110, T111, T141, app250_in_gga(T115, T116, T140))
U8_ga(T110, T111, T141, app250_out_gga(T115, T116, T140)) → U9_ga(T110, T111, T141, perm21_in_ga(T140, T141))
perm21_in_ga([], []) → perm21_out_ga([], [])
U9_ga(T110, T111, T141, perm21_out_ga(T140, T141)) → perm21_out_ga(T110, .(T111, T141))
U17_ga(T48, T20, T21, T27, perm21_out_ga(T49, T27)) → perm1_out_ga(.(T48, T20), .(T21, T27))
perm1_in_ga(.(T175, X380), .(T175, T176)) → U18_ga(T175, X380, T176, app267_in_ga(X380, X11))
app267_in_ga(X410, X410) → app267_out_ga(X410, X410)
U18_ga(T175, X380, T176, app267_out_ga(X380, X11)) → perm1_out_ga(.(T175, X380), .(T175, T176))
perm1_in_ga(.(T175, T179), .(T175, T176)) → U19_ga(T175, T179, T176, app267_in_ga(T179, T180))
U19_ga(T175, T179, T176, app267_out_ga(T179, T180)) → U20_ga(T175, T179, T176, perm21_in_ga(T180, T176))
U20_ga(T175, T179, T176, perm21_out_ga(T180, T176)) → perm1_out_ga(.(T175, T179), .(T175, T176))
perm1_in_ga([], []) → perm1_out_ga([], [])
Infinitary Constructor Rewriting Termination of PiTRS implies Termination of Prolog
perm1_in_ga(.(X47, T20), .(T21, T22)) → U12_ga(X47, T20, T21, T22, app110_in_aaag(X48, T21, X49, T20))
app110_in_aaag(.(X100, X101), T40, X102, .(X100, T39)) → U1_aaag(X100, X101, T40, X102, T39, app110_in_aaag(X101, T40, X102, T39))
app110_in_aaag([], T45, X119, .(T45, X119)) → app110_out_aaag([], T45, X119, .(T45, X119))
U1_aaag(X100, X101, T40, X102, T39, app110_out_aaag(X101, T40, X102, T39)) → app110_out_aaag(.(X100, X101), T40, X102, .(X100, T39))
U12_ga(X47, T20, T21, T22, app110_out_aaag(X48, T21, X49, T20)) → perm1_out_ga(.(X47, T20), .(T21, T22))
perm1_in_ga(.(X47, T20), .(T21, T27)) → U13_ga(X47, T20, T21, T27, app110_in_aaag(T25, T21, T26, T20))
U13_ga(X47, T20, T21, T27, app110_out_aaag(T25, T21, T26, T20)) → U14_ga(X47, T20, T21, T27, app220_in_ggga(X47, T25, T26, X11))
app220_in_ggga(X171, T66, T67, .(X171, X172)) → U11_ggga(X171, T66, T67, X172, app225_in_gga(T66, T67, X172))
app225_in_gga(.(T83, T84), T85, .(T83, X202)) → U2_gga(T83, T84, T85, X202, app225_in_gga(T84, T85, X202))
app225_in_gga([], T91, T91) → app225_out_gga([], T91, T91)
U2_gga(T83, T84, T85, X202, app225_out_gga(T84, T85, X202)) → app225_out_gga(.(T83, T84), T85, .(T83, X202))
U11_ggga(X171, T66, T67, X172, app225_out_gga(T66, T67, X172)) → app220_out_ggga(X171, T66, T67, .(X171, X172))
U14_ga(X47, T20, T21, T27, app220_out_ggga(X47, T25, T26, X11)) → perm1_out_ga(.(X47, T20), .(T21, T27))
perm1_in_ga(.(T48, T20), .(T21, T27)) → U15_ga(T48, T20, T21, T27, app110_in_aaag(T25, T21, T26, T20))
U15_ga(T48, T20, T21, T27, app110_out_aaag(T25, T21, T26, T20)) → U16_ga(T48, T20, T21, T27, app220_in_ggga(T48, T25, T26, T49))
U16_ga(T48, T20, T21, T27, app220_out_ggga(T48, T25, T26, T49)) → U17_ga(T48, T20, T21, T27, perm21_in_ga(T49, T27))
perm21_in_ga(T110, .(T111, T112)) → U4_ga(T110, T111, T112, app140_in_aaag(X244, T111, X245, T110))
app140_in_aaag(.(X296, X297), T131, X298, .(X296, T130)) → U3_aaag(X296, X297, T131, X298, T130, app140_in_aaag(X297, T131, X298, T130))
app140_in_aaag([], T136, X315, .(T136, X315)) → app140_out_aaag([], T136, X315, .(T136, X315))
U3_aaag(X296, X297, T131, X298, T130, app140_out_aaag(X297, T131, X298, T130)) → app140_out_aaag(.(X296, X297), T131, X298, .(X296, T130))
U4_ga(T110, T111, T112, app140_out_aaag(X244, T111, X245, T110)) → perm21_out_ga(T110, .(T111, T112))
perm21_in_ga(T110, .(T111, T117)) → U5_ga(T110, T111, T117, app140_in_aaag(T115, T111, T116, T110))
U5_ga(T110, T111, T117, app140_out_aaag(T115, T111, T116, T110)) → U6_ga(T110, T111, T117, app250_in_gga(T115, T116, X246))
app250_in_gga(.(T157, T160), T161, .(T157, X351)) → U10_gga(T157, T160, T161, X351, app250_in_gga(T160, T161, X351))
app250_in_gga([], T167, T167) → app250_out_gga([], T167, T167)
U10_gga(T157, T160, T161, X351, app250_out_gga(T160, T161, X351)) → app250_out_gga(.(T157, T160), T161, .(T157, X351))
U6_ga(T110, T111, T117, app250_out_gga(T115, T116, X246)) → perm21_out_ga(T110, .(T111, T117))
perm21_in_ga(T110, .(T111, T141)) → U7_ga(T110, T111, T141, app140_in_aaag(T115, T111, T116, T110))
U7_ga(T110, T111, T141, app140_out_aaag(T115, T111, T116, T110)) → U8_ga(T110, T111, T141, app250_in_gga(T115, T116, T140))
U8_ga(T110, T111, T141, app250_out_gga(T115, T116, T140)) → U9_ga(T110, T111, T141, perm21_in_ga(T140, T141))
perm21_in_ga([], []) → perm21_out_ga([], [])
U9_ga(T110, T111, T141, perm21_out_ga(T140, T141)) → perm21_out_ga(T110, .(T111, T141))
U17_ga(T48, T20, T21, T27, perm21_out_ga(T49, T27)) → perm1_out_ga(.(T48, T20), .(T21, T27))
perm1_in_ga(.(T175, X380), .(T175, T176)) → U18_ga(T175, X380, T176, app267_in_ga(X380, X11))
app267_in_ga(X410, X410) → app267_out_ga(X410, X410)
U18_ga(T175, X380, T176, app267_out_ga(X380, X11)) → perm1_out_ga(.(T175, X380), .(T175, T176))
perm1_in_ga(.(T175, T179), .(T175, T176)) → U19_ga(T175, T179, T176, app267_in_ga(T179, T180))
U19_ga(T175, T179, T176, app267_out_ga(T179, T180)) → U20_ga(T175, T179, T176, perm21_in_ga(T180, T176))
U20_ga(T175, T179, T176, perm21_out_ga(T180, T176)) → perm1_out_ga(.(T175, T179), .(T175, T176))
perm1_in_ga([], []) → perm1_out_ga([], [])
PERM1_IN_GA(.(X47, T20), .(T21, T22)) → U12_GA(X47, T20, T21, T22, app110_in_aaag(X48, T21, X49, T20))
PERM1_IN_GA(.(X47, T20), .(T21, T22)) → APP110_IN_AAAG(X48, T21, X49, T20)
APP110_IN_AAAG(.(X100, X101), T40, X102, .(X100, T39)) → U1_AAAG(X100, X101, T40, X102, T39, app110_in_aaag(X101, T40, X102, T39))
APP110_IN_AAAG(.(X100, X101), T40, X102, .(X100, T39)) → APP110_IN_AAAG(X101, T40, X102, T39)
PERM1_IN_GA(.(X47, T20), .(T21, T27)) → U13_GA(X47, T20, T21, T27, app110_in_aaag(T25, T21, T26, T20))
U13_GA(X47, T20, T21, T27, app110_out_aaag(T25, T21, T26, T20)) → U14_GA(X47, T20, T21, T27, app220_in_ggga(X47, T25, T26, X11))
U13_GA(X47, T20, T21, T27, app110_out_aaag(T25, T21, T26, T20)) → APP220_IN_GGGA(X47, T25, T26, X11)
APP220_IN_GGGA(X171, T66, T67, .(X171, X172)) → U11_GGGA(X171, T66, T67, X172, app225_in_gga(T66, T67, X172))
APP220_IN_GGGA(X171, T66, T67, .(X171, X172)) → APP225_IN_GGA(T66, T67, X172)
APP225_IN_GGA(.(T83, T84), T85, .(T83, X202)) → U2_GGA(T83, T84, T85, X202, app225_in_gga(T84, T85, X202))
APP225_IN_GGA(.(T83, T84), T85, .(T83, X202)) → APP225_IN_GGA(T84, T85, X202)
PERM1_IN_GA(.(T48, T20), .(T21, T27)) → U15_GA(T48, T20, T21, T27, app110_in_aaag(T25, T21, T26, T20))
U15_GA(T48, T20, T21, T27, app110_out_aaag(T25, T21, T26, T20)) → U16_GA(T48, T20, T21, T27, app220_in_ggga(T48, T25, T26, T49))
U15_GA(T48, T20, T21, T27, app110_out_aaag(T25, T21, T26, T20)) → APP220_IN_GGGA(T48, T25, T26, T49)
U16_GA(T48, T20, T21, T27, app220_out_ggga(T48, T25, T26, T49)) → U17_GA(T48, T20, T21, T27, perm21_in_ga(T49, T27))
U16_GA(T48, T20, T21, T27, app220_out_ggga(T48, T25, T26, T49)) → PERM21_IN_GA(T49, T27)
PERM21_IN_GA(T110, .(T111, T112)) → U4_GA(T110, T111, T112, app140_in_aaag(X244, T111, X245, T110))
PERM21_IN_GA(T110, .(T111, T112)) → APP140_IN_AAAG(X244, T111, X245, T110)
APP140_IN_AAAG(.(X296, X297), T131, X298, .(X296, T130)) → U3_AAAG(X296, X297, T131, X298, T130, app140_in_aaag(X297, T131, X298, T130))
APP140_IN_AAAG(.(X296, X297), T131, X298, .(X296, T130)) → APP140_IN_AAAG(X297, T131, X298, T130)
PERM21_IN_GA(T110, .(T111, T117)) → U5_GA(T110, T111, T117, app140_in_aaag(T115, T111, T116, T110))
U5_GA(T110, T111, T117, app140_out_aaag(T115, T111, T116, T110)) → U6_GA(T110, T111, T117, app250_in_gga(T115, T116, X246))
U5_GA(T110, T111, T117, app140_out_aaag(T115, T111, T116, T110)) → APP250_IN_GGA(T115, T116, X246)
APP250_IN_GGA(.(T157, T160), T161, .(T157, X351)) → U10_GGA(T157, T160, T161, X351, app250_in_gga(T160, T161, X351))
APP250_IN_GGA(.(T157, T160), T161, .(T157, X351)) → APP250_IN_GGA(T160, T161, X351)
PERM21_IN_GA(T110, .(T111, T141)) → U7_GA(T110, T111, T141, app140_in_aaag(T115, T111, T116, T110))
U7_GA(T110, T111, T141, app140_out_aaag(T115, T111, T116, T110)) → U8_GA(T110, T111, T141, app250_in_gga(T115, T116, T140))
U7_GA(T110, T111, T141, app140_out_aaag(T115, T111, T116, T110)) → APP250_IN_GGA(T115, T116, T140)
U8_GA(T110, T111, T141, app250_out_gga(T115, T116, T140)) → U9_GA(T110, T111, T141, perm21_in_ga(T140, T141))
U8_GA(T110, T111, T141, app250_out_gga(T115, T116, T140)) → PERM21_IN_GA(T140, T141)
PERM1_IN_GA(.(T175, X380), .(T175, T176)) → U18_GA(T175, X380, T176, app267_in_ga(X380, X11))
PERM1_IN_GA(.(T175, X380), .(T175, T176)) → APP267_IN_GA(X380, X11)
PERM1_IN_GA(.(T175, T179), .(T175, T176)) → U19_GA(T175, T179, T176, app267_in_ga(T179, T180))
U19_GA(T175, T179, T176, app267_out_ga(T179, T180)) → U20_GA(T175, T179, T176, perm21_in_ga(T180, T176))
U19_GA(T175, T179, T176, app267_out_ga(T179, T180)) → PERM21_IN_GA(T180, T176)
perm1_in_ga(.(X47, T20), .(T21, T22)) → U12_ga(X47, T20, T21, T22, app110_in_aaag(X48, T21, X49, T20))
app110_in_aaag(.(X100, X101), T40, X102, .(X100, T39)) → U1_aaag(X100, X101, T40, X102, T39, app110_in_aaag(X101, T40, X102, T39))
app110_in_aaag([], T45, X119, .(T45, X119)) → app110_out_aaag([], T45, X119, .(T45, X119))
U1_aaag(X100, X101, T40, X102, T39, app110_out_aaag(X101, T40, X102, T39)) → app110_out_aaag(.(X100, X101), T40, X102, .(X100, T39))
U12_ga(X47, T20, T21, T22, app110_out_aaag(X48, T21, X49, T20)) → perm1_out_ga(.(X47, T20), .(T21, T22))
perm1_in_ga(.(X47, T20), .(T21, T27)) → U13_ga(X47, T20, T21, T27, app110_in_aaag(T25, T21, T26, T20))
U13_ga(X47, T20, T21, T27, app110_out_aaag(T25, T21, T26, T20)) → U14_ga(X47, T20, T21, T27, app220_in_ggga(X47, T25, T26, X11))
app220_in_ggga(X171, T66, T67, .(X171, X172)) → U11_ggga(X171, T66, T67, X172, app225_in_gga(T66, T67, X172))
app225_in_gga(.(T83, T84), T85, .(T83, X202)) → U2_gga(T83, T84, T85, X202, app225_in_gga(T84, T85, X202))
app225_in_gga([], T91, T91) → app225_out_gga([], T91, T91)
U2_gga(T83, T84, T85, X202, app225_out_gga(T84, T85, X202)) → app225_out_gga(.(T83, T84), T85, .(T83, X202))
U11_ggga(X171, T66, T67, X172, app225_out_gga(T66, T67, X172)) → app220_out_ggga(X171, T66, T67, .(X171, X172))
U14_ga(X47, T20, T21, T27, app220_out_ggga(X47, T25, T26, X11)) → perm1_out_ga(.(X47, T20), .(T21, T27))
perm1_in_ga(.(T48, T20), .(T21, T27)) → U15_ga(T48, T20, T21, T27, app110_in_aaag(T25, T21, T26, T20))
U15_ga(T48, T20, T21, T27, app110_out_aaag(T25, T21, T26, T20)) → U16_ga(T48, T20, T21, T27, app220_in_ggga(T48, T25, T26, T49))
U16_ga(T48, T20, T21, T27, app220_out_ggga(T48, T25, T26, T49)) → U17_ga(T48, T20, T21, T27, perm21_in_ga(T49, T27))
perm21_in_ga(T110, .(T111, T112)) → U4_ga(T110, T111, T112, app140_in_aaag(X244, T111, X245, T110))
app140_in_aaag(.(X296, X297), T131, X298, .(X296, T130)) → U3_aaag(X296, X297, T131, X298, T130, app140_in_aaag(X297, T131, X298, T130))
app140_in_aaag([], T136, X315, .(T136, X315)) → app140_out_aaag([], T136, X315, .(T136, X315))
U3_aaag(X296, X297, T131, X298, T130, app140_out_aaag(X297, T131, X298, T130)) → app140_out_aaag(.(X296, X297), T131, X298, .(X296, T130))
U4_ga(T110, T111, T112, app140_out_aaag(X244, T111, X245, T110)) → perm21_out_ga(T110, .(T111, T112))
perm21_in_ga(T110, .(T111, T117)) → U5_ga(T110, T111, T117, app140_in_aaag(T115, T111, T116, T110))
U5_ga(T110, T111, T117, app140_out_aaag(T115, T111, T116, T110)) → U6_ga(T110, T111, T117, app250_in_gga(T115, T116, X246))
app250_in_gga(.(T157, T160), T161, .(T157, X351)) → U10_gga(T157, T160, T161, X351, app250_in_gga(T160, T161, X351))
app250_in_gga([], T167, T167) → app250_out_gga([], T167, T167)
U10_gga(T157, T160, T161, X351, app250_out_gga(T160, T161, X351)) → app250_out_gga(.(T157, T160), T161, .(T157, X351))
U6_ga(T110, T111, T117, app250_out_gga(T115, T116, X246)) → perm21_out_ga(T110, .(T111, T117))
perm21_in_ga(T110, .(T111, T141)) → U7_ga(T110, T111, T141, app140_in_aaag(T115, T111, T116, T110))
U7_ga(T110, T111, T141, app140_out_aaag(T115, T111, T116, T110)) → U8_ga(T110, T111, T141, app250_in_gga(T115, T116, T140))
U8_ga(T110, T111, T141, app250_out_gga(T115, T116, T140)) → U9_ga(T110, T111, T141, perm21_in_ga(T140, T141))
perm21_in_ga([], []) → perm21_out_ga([], [])
U9_ga(T110, T111, T141, perm21_out_ga(T140, T141)) → perm21_out_ga(T110, .(T111, T141))
U17_ga(T48, T20, T21, T27, perm21_out_ga(T49, T27)) → perm1_out_ga(.(T48, T20), .(T21, T27))
perm1_in_ga(.(T175, X380), .(T175, T176)) → U18_ga(T175, X380, T176, app267_in_ga(X380, X11))
app267_in_ga(X410, X410) → app267_out_ga(X410, X410)
U18_ga(T175, X380, T176, app267_out_ga(X380, X11)) → perm1_out_ga(.(T175, X380), .(T175, T176))
perm1_in_ga(.(T175, T179), .(T175, T176)) → U19_ga(T175, T179, T176, app267_in_ga(T179, T180))
U19_ga(T175, T179, T176, app267_out_ga(T179, T180)) → U20_ga(T175, T179, T176, perm21_in_ga(T180, T176))
U20_ga(T175, T179, T176, perm21_out_ga(T180, T176)) → perm1_out_ga(.(T175, T179), .(T175, T176))
perm1_in_ga([], []) → perm1_out_ga([], [])
PERM1_IN_GA(.(X47, T20), .(T21, T22)) → U12_GA(X47, T20, T21, T22, app110_in_aaag(X48, T21, X49, T20))
PERM1_IN_GA(.(X47, T20), .(T21, T22)) → APP110_IN_AAAG(X48, T21, X49, T20)
APP110_IN_AAAG(.(X100, X101), T40, X102, .(X100, T39)) → U1_AAAG(X100, X101, T40, X102, T39, app110_in_aaag(X101, T40, X102, T39))
APP110_IN_AAAG(.(X100, X101), T40, X102, .(X100, T39)) → APP110_IN_AAAG(X101, T40, X102, T39)
PERM1_IN_GA(.(X47, T20), .(T21, T27)) → U13_GA(X47, T20, T21, T27, app110_in_aaag(T25, T21, T26, T20))
U13_GA(X47, T20, T21, T27, app110_out_aaag(T25, T21, T26, T20)) → U14_GA(X47, T20, T21, T27, app220_in_ggga(X47, T25, T26, X11))
U13_GA(X47, T20, T21, T27, app110_out_aaag(T25, T21, T26, T20)) → APP220_IN_GGGA(X47, T25, T26, X11)
APP220_IN_GGGA(X171, T66, T67, .(X171, X172)) → U11_GGGA(X171, T66, T67, X172, app225_in_gga(T66, T67, X172))
APP220_IN_GGGA(X171, T66, T67, .(X171, X172)) → APP225_IN_GGA(T66, T67, X172)
APP225_IN_GGA(.(T83, T84), T85, .(T83, X202)) → U2_GGA(T83, T84, T85, X202, app225_in_gga(T84, T85, X202))
APP225_IN_GGA(.(T83, T84), T85, .(T83, X202)) → APP225_IN_GGA(T84, T85, X202)
PERM1_IN_GA(.(T48, T20), .(T21, T27)) → U15_GA(T48, T20, T21, T27, app110_in_aaag(T25, T21, T26, T20))
U15_GA(T48, T20, T21, T27, app110_out_aaag(T25, T21, T26, T20)) → U16_GA(T48, T20, T21, T27, app220_in_ggga(T48, T25, T26, T49))
U15_GA(T48, T20, T21, T27, app110_out_aaag(T25, T21, T26, T20)) → APP220_IN_GGGA(T48, T25, T26, T49)
U16_GA(T48, T20, T21, T27, app220_out_ggga(T48, T25, T26, T49)) → U17_GA(T48, T20, T21, T27, perm21_in_ga(T49, T27))
U16_GA(T48, T20, T21, T27, app220_out_ggga(T48, T25, T26, T49)) → PERM21_IN_GA(T49, T27)
PERM21_IN_GA(T110, .(T111, T112)) → U4_GA(T110, T111, T112, app140_in_aaag(X244, T111, X245, T110))
PERM21_IN_GA(T110, .(T111, T112)) → APP140_IN_AAAG(X244, T111, X245, T110)
APP140_IN_AAAG(.(X296, X297), T131, X298, .(X296, T130)) → U3_AAAG(X296, X297, T131, X298, T130, app140_in_aaag(X297, T131, X298, T130))
APP140_IN_AAAG(.(X296, X297), T131, X298, .(X296, T130)) → APP140_IN_AAAG(X297, T131, X298, T130)
PERM21_IN_GA(T110, .(T111, T117)) → U5_GA(T110, T111, T117, app140_in_aaag(T115, T111, T116, T110))
U5_GA(T110, T111, T117, app140_out_aaag(T115, T111, T116, T110)) → U6_GA(T110, T111, T117, app250_in_gga(T115, T116, X246))
U5_GA(T110, T111, T117, app140_out_aaag(T115, T111, T116, T110)) → APP250_IN_GGA(T115, T116, X246)
APP250_IN_GGA(.(T157, T160), T161, .(T157, X351)) → U10_GGA(T157, T160, T161, X351, app250_in_gga(T160, T161, X351))
APP250_IN_GGA(.(T157, T160), T161, .(T157, X351)) → APP250_IN_GGA(T160, T161, X351)
PERM21_IN_GA(T110, .(T111, T141)) → U7_GA(T110, T111, T141, app140_in_aaag(T115, T111, T116, T110))
U7_GA(T110, T111, T141, app140_out_aaag(T115, T111, T116, T110)) → U8_GA(T110, T111, T141, app250_in_gga(T115, T116, T140))
U7_GA(T110, T111, T141, app140_out_aaag(T115, T111, T116, T110)) → APP250_IN_GGA(T115, T116, T140)
U8_GA(T110, T111, T141, app250_out_gga(T115, T116, T140)) → U9_GA(T110, T111, T141, perm21_in_ga(T140, T141))
U8_GA(T110, T111, T141, app250_out_gga(T115, T116, T140)) → PERM21_IN_GA(T140, T141)
PERM1_IN_GA(.(T175, X380), .(T175, T176)) → U18_GA(T175, X380, T176, app267_in_ga(X380, X11))
PERM1_IN_GA(.(T175, X380), .(T175, T176)) → APP267_IN_GA(X380, X11)
PERM1_IN_GA(.(T175, T179), .(T175, T176)) → U19_GA(T175, T179, T176, app267_in_ga(T179, T180))
U19_GA(T175, T179, T176, app267_out_ga(T179, T180)) → U20_GA(T175, T179, T176, perm21_in_ga(T180, T176))
U19_GA(T175, T179, T176, app267_out_ga(T179, T180)) → PERM21_IN_GA(T180, T176)
perm1_in_ga(.(X47, T20), .(T21, T22)) → U12_ga(X47, T20, T21, T22, app110_in_aaag(X48, T21, X49, T20))
app110_in_aaag(.(X100, X101), T40, X102, .(X100, T39)) → U1_aaag(X100, X101, T40, X102, T39, app110_in_aaag(X101, T40, X102, T39))
app110_in_aaag([], T45, X119, .(T45, X119)) → app110_out_aaag([], T45, X119, .(T45, X119))
U1_aaag(X100, X101, T40, X102, T39, app110_out_aaag(X101, T40, X102, T39)) → app110_out_aaag(.(X100, X101), T40, X102, .(X100, T39))
U12_ga(X47, T20, T21, T22, app110_out_aaag(X48, T21, X49, T20)) → perm1_out_ga(.(X47, T20), .(T21, T22))
perm1_in_ga(.(X47, T20), .(T21, T27)) → U13_ga(X47, T20, T21, T27, app110_in_aaag(T25, T21, T26, T20))
U13_ga(X47, T20, T21, T27, app110_out_aaag(T25, T21, T26, T20)) → U14_ga(X47, T20, T21, T27, app220_in_ggga(X47, T25, T26, X11))
app220_in_ggga(X171, T66, T67, .(X171, X172)) → U11_ggga(X171, T66, T67, X172, app225_in_gga(T66, T67, X172))
app225_in_gga(.(T83, T84), T85, .(T83, X202)) → U2_gga(T83, T84, T85, X202, app225_in_gga(T84, T85, X202))
app225_in_gga([], T91, T91) → app225_out_gga([], T91, T91)
U2_gga(T83, T84, T85, X202, app225_out_gga(T84, T85, X202)) → app225_out_gga(.(T83, T84), T85, .(T83, X202))
U11_ggga(X171, T66, T67, X172, app225_out_gga(T66, T67, X172)) → app220_out_ggga(X171, T66, T67, .(X171, X172))
U14_ga(X47, T20, T21, T27, app220_out_ggga(X47, T25, T26, X11)) → perm1_out_ga(.(X47, T20), .(T21, T27))
perm1_in_ga(.(T48, T20), .(T21, T27)) → U15_ga(T48, T20, T21, T27, app110_in_aaag(T25, T21, T26, T20))
U15_ga(T48, T20, T21, T27, app110_out_aaag(T25, T21, T26, T20)) → U16_ga(T48, T20, T21, T27, app220_in_ggga(T48, T25, T26, T49))
U16_ga(T48, T20, T21, T27, app220_out_ggga(T48, T25, T26, T49)) → U17_ga(T48, T20, T21, T27, perm21_in_ga(T49, T27))
perm21_in_ga(T110, .(T111, T112)) → U4_ga(T110, T111, T112, app140_in_aaag(X244, T111, X245, T110))
app140_in_aaag(.(X296, X297), T131, X298, .(X296, T130)) → U3_aaag(X296, X297, T131, X298, T130, app140_in_aaag(X297, T131, X298, T130))
app140_in_aaag([], T136, X315, .(T136, X315)) → app140_out_aaag([], T136, X315, .(T136, X315))
U3_aaag(X296, X297, T131, X298, T130, app140_out_aaag(X297, T131, X298, T130)) → app140_out_aaag(.(X296, X297), T131, X298, .(X296, T130))
U4_ga(T110, T111, T112, app140_out_aaag(X244, T111, X245, T110)) → perm21_out_ga(T110, .(T111, T112))
perm21_in_ga(T110, .(T111, T117)) → U5_ga(T110, T111, T117, app140_in_aaag(T115, T111, T116, T110))
U5_ga(T110, T111, T117, app140_out_aaag(T115, T111, T116, T110)) → U6_ga(T110, T111, T117, app250_in_gga(T115, T116, X246))
app250_in_gga(.(T157, T160), T161, .(T157, X351)) → U10_gga(T157, T160, T161, X351, app250_in_gga(T160, T161, X351))
app250_in_gga([], T167, T167) → app250_out_gga([], T167, T167)
U10_gga(T157, T160, T161, X351, app250_out_gga(T160, T161, X351)) → app250_out_gga(.(T157, T160), T161, .(T157, X351))
U6_ga(T110, T111, T117, app250_out_gga(T115, T116, X246)) → perm21_out_ga(T110, .(T111, T117))
perm21_in_ga(T110, .(T111, T141)) → U7_ga(T110, T111, T141, app140_in_aaag(T115, T111, T116, T110))
U7_ga(T110, T111, T141, app140_out_aaag(T115, T111, T116, T110)) → U8_ga(T110, T111, T141, app250_in_gga(T115, T116, T140))
U8_ga(T110, T111, T141, app250_out_gga(T115, T116, T140)) → U9_ga(T110, T111, T141, perm21_in_ga(T140, T141))
perm21_in_ga([], []) → perm21_out_ga([], [])
U9_ga(T110, T111, T141, perm21_out_ga(T140, T141)) → perm21_out_ga(T110, .(T111, T141))
U17_ga(T48, T20, T21, T27, perm21_out_ga(T49, T27)) → perm1_out_ga(.(T48, T20), .(T21, T27))
perm1_in_ga(.(T175, X380), .(T175, T176)) → U18_ga(T175, X380, T176, app267_in_ga(X380, X11))
app267_in_ga(X410, X410) → app267_out_ga(X410, X410)
U18_ga(T175, X380, T176, app267_out_ga(X380, X11)) → perm1_out_ga(.(T175, X380), .(T175, T176))
perm1_in_ga(.(T175, T179), .(T175, T176)) → U19_ga(T175, T179, T176, app267_in_ga(T179, T180))
U19_ga(T175, T179, T176, app267_out_ga(T179, T180)) → U20_ga(T175, T179, T176, perm21_in_ga(T180, T176))
U20_ga(T175, T179, T176, perm21_out_ga(T180, T176)) → perm1_out_ga(.(T175, T179), .(T175, T176))
perm1_in_ga([], []) → perm1_out_ga([], [])
APP250_IN_GGA(.(T157, T160), T161, .(T157, X351)) → APP250_IN_GGA(T160, T161, X351)
perm1_in_ga(.(X47, T20), .(T21, T22)) → U12_ga(X47, T20, T21, T22, app110_in_aaag(X48, T21, X49, T20))
app110_in_aaag(.(X100, X101), T40, X102, .(X100, T39)) → U1_aaag(X100, X101, T40, X102, T39, app110_in_aaag(X101, T40, X102, T39))
app110_in_aaag([], T45, X119, .(T45, X119)) → app110_out_aaag([], T45, X119, .(T45, X119))
U1_aaag(X100, X101, T40, X102, T39, app110_out_aaag(X101, T40, X102, T39)) → app110_out_aaag(.(X100, X101), T40, X102, .(X100, T39))
U12_ga(X47, T20, T21, T22, app110_out_aaag(X48, T21, X49, T20)) → perm1_out_ga(.(X47, T20), .(T21, T22))
perm1_in_ga(.(X47, T20), .(T21, T27)) → U13_ga(X47, T20, T21, T27, app110_in_aaag(T25, T21, T26, T20))
U13_ga(X47, T20, T21, T27, app110_out_aaag(T25, T21, T26, T20)) → U14_ga(X47, T20, T21, T27, app220_in_ggga(X47, T25, T26, X11))
app220_in_ggga(X171, T66, T67, .(X171, X172)) → U11_ggga(X171, T66, T67, X172, app225_in_gga(T66, T67, X172))
app225_in_gga(.(T83, T84), T85, .(T83, X202)) → U2_gga(T83, T84, T85, X202, app225_in_gga(T84, T85, X202))
app225_in_gga([], T91, T91) → app225_out_gga([], T91, T91)
U2_gga(T83, T84, T85, X202, app225_out_gga(T84, T85, X202)) → app225_out_gga(.(T83, T84), T85, .(T83, X202))
U11_ggga(X171, T66, T67, X172, app225_out_gga(T66, T67, X172)) → app220_out_ggga(X171, T66, T67, .(X171, X172))
U14_ga(X47, T20, T21, T27, app220_out_ggga(X47, T25, T26, X11)) → perm1_out_ga(.(X47, T20), .(T21, T27))
perm1_in_ga(.(T48, T20), .(T21, T27)) → U15_ga(T48, T20, T21, T27, app110_in_aaag(T25, T21, T26, T20))
U15_ga(T48, T20, T21, T27, app110_out_aaag(T25, T21, T26, T20)) → U16_ga(T48, T20, T21, T27, app220_in_ggga(T48, T25, T26, T49))
U16_ga(T48, T20, T21, T27, app220_out_ggga(T48, T25, T26, T49)) → U17_ga(T48, T20, T21, T27, perm21_in_ga(T49, T27))
perm21_in_ga(T110, .(T111, T112)) → U4_ga(T110, T111, T112, app140_in_aaag(X244, T111, X245, T110))
app140_in_aaag(.(X296, X297), T131, X298, .(X296, T130)) → U3_aaag(X296, X297, T131, X298, T130, app140_in_aaag(X297, T131, X298, T130))
app140_in_aaag([], T136, X315, .(T136, X315)) → app140_out_aaag([], T136, X315, .(T136, X315))
U3_aaag(X296, X297, T131, X298, T130, app140_out_aaag(X297, T131, X298, T130)) → app140_out_aaag(.(X296, X297), T131, X298, .(X296, T130))
U4_ga(T110, T111, T112, app140_out_aaag(X244, T111, X245, T110)) → perm21_out_ga(T110, .(T111, T112))
perm21_in_ga(T110, .(T111, T117)) → U5_ga(T110, T111, T117, app140_in_aaag(T115, T111, T116, T110))
U5_ga(T110, T111, T117, app140_out_aaag(T115, T111, T116, T110)) → U6_ga(T110, T111, T117, app250_in_gga(T115, T116, X246))
app250_in_gga(.(T157, T160), T161, .(T157, X351)) → U10_gga(T157, T160, T161, X351, app250_in_gga(T160, T161, X351))
app250_in_gga([], T167, T167) → app250_out_gga([], T167, T167)
U10_gga(T157, T160, T161, X351, app250_out_gga(T160, T161, X351)) → app250_out_gga(.(T157, T160), T161, .(T157, X351))
U6_ga(T110, T111, T117, app250_out_gga(T115, T116, X246)) → perm21_out_ga(T110, .(T111, T117))
perm21_in_ga(T110, .(T111, T141)) → U7_ga(T110, T111, T141, app140_in_aaag(T115, T111, T116, T110))
U7_ga(T110, T111, T141, app140_out_aaag(T115, T111, T116, T110)) → U8_ga(T110, T111, T141, app250_in_gga(T115, T116, T140))
U8_ga(T110, T111, T141, app250_out_gga(T115, T116, T140)) → U9_ga(T110, T111, T141, perm21_in_ga(T140, T141))
perm21_in_ga([], []) → perm21_out_ga([], [])
U9_ga(T110, T111, T141, perm21_out_ga(T140, T141)) → perm21_out_ga(T110, .(T111, T141))
U17_ga(T48, T20, T21, T27, perm21_out_ga(T49, T27)) → perm1_out_ga(.(T48, T20), .(T21, T27))
perm1_in_ga(.(T175, X380), .(T175, T176)) → U18_ga(T175, X380, T176, app267_in_ga(X380, X11))
app267_in_ga(X410, X410) → app267_out_ga(X410, X410)
U18_ga(T175, X380, T176, app267_out_ga(X380, X11)) → perm1_out_ga(.(T175, X380), .(T175, T176))
perm1_in_ga(.(T175, T179), .(T175, T176)) → U19_ga(T175, T179, T176, app267_in_ga(T179, T180))
U19_ga(T175, T179, T176, app267_out_ga(T179, T180)) → U20_ga(T175, T179, T176, perm21_in_ga(T180, T176))
U20_ga(T175, T179, T176, perm21_out_ga(T180, T176)) → perm1_out_ga(.(T175, T179), .(T175, T176))
perm1_in_ga([], []) → perm1_out_ga([], [])
APP250_IN_GGA(.(T157, T160), T161, .(T157, X351)) → APP250_IN_GGA(T160, T161, X351)
APP250_IN_GGA(.(T157, T160), T161) → APP250_IN_GGA(T160, T161)
From the DPs we obtained the following set of size-change graphs:
APP140_IN_AAAG(.(X296, X297), T131, X298, .(X296, T130)) → APP140_IN_AAAG(X297, T131, X298, T130)
perm1_in_ga(.(X47, T20), .(T21, T22)) → U12_ga(X47, T20, T21, T22, app110_in_aaag(X48, T21, X49, T20))
app110_in_aaag(.(X100, X101), T40, X102, .(X100, T39)) → U1_aaag(X100, X101, T40, X102, T39, app110_in_aaag(X101, T40, X102, T39))
app110_in_aaag([], T45, X119, .(T45, X119)) → app110_out_aaag([], T45, X119, .(T45, X119))
U1_aaag(X100, X101, T40, X102, T39, app110_out_aaag(X101, T40, X102, T39)) → app110_out_aaag(.(X100, X101), T40, X102, .(X100, T39))
U12_ga(X47, T20, T21, T22, app110_out_aaag(X48, T21, X49, T20)) → perm1_out_ga(.(X47, T20), .(T21, T22))
perm1_in_ga(.(X47, T20), .(T21, T27)) → U13_ga(X47, T20, T21, T27, app110_in_aaag(T25, T21, T26, T20))
U13_ga(X47, T20, T21, T27, app110_out_aaag(T25, T21, T26, T20)) → U14_ga(X47, T20, T21, T27, app220_in_ggga(X47, T25, T26, X11))
app220_in_ggga(X171, T66, T67, .(X171, X172)) → U11_ggga(X171, T66, T67, X172, app225_in_gga(T66, T67, X172))
app225_in_gga(.(T83, T84), T85, .(T83, X202)) → U2_gga(T83, T84, T85, X202, app225_in_gga(T84, T85, X202))
app225_in_gga([], T91, T91) → app225_out_gga([], T91, T91)
U2_gga(T83, T84, T85, X202, app225_out_gga(T84, T85, X202)) → app225_out_gga(.(T83, T84), T85, .(T83, X202))
U11_ggga(X171, T66, T67, X172, app225_out_gga(T66, T67, X172)) → app220_out_ggga(X171, T66, T67, .(X171, X172))
U14_ga(X47, T20, T21, T27, app220_out_ggga(X47, T25, T26, X11)) → perm1_out_ga(.(X47, T20), .(T21, T27))
perm1_in_ga(.(T48, T20), .(T21, T27)) → U15_ga(T48, T20, T21, T27, app110_in_aaag(T25, T21, T26, T20))
U15_ga(T48, T20, T21, T27, app110_out_aaag(T25, T21, T26, T20)) → U16_ga(T48, T20, T21, T27, app220_in_ggga(T48, T25, T26, T49))
U16_ga(T48, T20, T21, T27, app220_out_ggga(T48, T25, T26, T49)) → U17_ga(T48, T20, T21, T27, perm21_in_ga(T49, T27))
perm21_in_ga(T110, .(T111, T112)) → U4_ga(T110, T111, T112, app140_in_aaag(X244, T111, X245, T110))
app140_in_aaag(.(X296, X297), T131, X298, .(X296, T130)) → U3_aaag(X296, X297, T131, X298, T130, app140_in_aaag(X297, T131, X298, T130))
app140_in_aaag([], T136, X315, .(T136, X315)) → app140_out_aaag([], T136, X315, .(T136, X315))
U3_aaag(X296, X297, T131, X298, T130, app140_out_aaag(X297, T131, X298, T130)) → app140_out_aaag(.(X296, X297), T131, X298, .(X296, T130))
U4_ga(T110, T111, T112, app140_out_aaag(X244, T111, X245, T110)) → perm21_out_ga(T110, .(T111, T112))
perm21_in_ga(T110, .(T111, T117)) → U5_ga(T110, T111, T117, app140_in_aaag(T115, T111, T116, T110))
U5_ga(T110, T111, T117, app140_out_aaag(T115, T111, T116, T110)) → U6_ga(T110, T111, T117, app250_in_gga(T115, T116, X246))
app250_in_gga(.(T157, T160), T161, .(T157, X351)) → U10_gga(T157, T160, T161, X351, app250_in_gga(T160, T161, X351))
app250_in_gga([], T167, T167) → app250_out_gga([], T167, T167)
U10_gga(T157, T160, T161, X351, app250_out_gga(T160, T161, X351)) → app250_out_gga(.(T157, T160), T161, .(T157, X351))
U6_ga(T110, T111, T117, app250_out_gga(T115, T116, X246)) → perm21_out_ga(T110, .(T111, T117))
perm21_in_ga(T110, .(T111, T141)) → U7_ga(T110, T111, T141, app140_in_aaag(T115, T111, T116, T110))
U7_ga(T110, T111, T141, app140_out_aaag(T115, T111, T116, T110)) → U8_ga(T110, T111, T141, app250_in_gga(T115, T116, T140))
U8_ga(T110, T111, T141, app250_out_gga(T115, T116, T140)) → U9_ga(T110, T111, T141, perm21_in_ga(T140, T141))
perm21_in_ga([], []) → perm21_out_ga([], [])
U9_ga(T110, T111, T141, perm21_out_ga(T140, T141)) → perm21_out_ga(T110, .(T111, T141))
U17_ga(T48, T20, T21, T27, perm21_out_ga(T49, T27)) → perm1_out_ga(.(T48, T20), .(T21, T27))
perm1_in_ga(.(T175, X380), .(T175, T176)) → U18_ga(T175, X380, T176, app267_in_ga(X380, X11))
app267_in_ga(X410, X410) → app267_out_ga(X410, X410)
U18_ga(T175, X380, T176, app267_out_ga(X380, X11)) → perm1_out_ga(.(T175, X380), .(T175, T176))
perm1_in_ga(.(T175, T179), .(T175, T176)) → U19_ga(T175, T179, T176, app267_in_ga(T179, T180))
U19_ga(T175, T179, T176, app267_out_ga(T179, T180)) → U20_ga(T175, T179, T176, perm21_in_ga(T180, T176))
U20_ga(T175, T179, T176, perm21_out_ga(T180, T176)) → perm1_out_ga(.(T175, T179), .(T175, T176))
perm1_in_ga([], []) → perm1_out_ga([], [])
APP140_IN_AAAG(.(X296, X297), T131, X298, .(X296, T130)) → APP140_IN_AAAG(X297, T131, X298, T130)
APP140_IN_AAAG(.(X296, T130)) → APP140_IN_AAAG(T130)
From the DPs we obtained the following set of size-change graphs:
PERM21_IN_GA(T110, .(T111, T141)) → U7_GA(T110, T111, T141, app140_in_aaag(T115, T111, T116, T110))
U7_GA(T110, T111, T141, app140_out_aaag(T115, T111, T116, T110)) → U8_GA(T110, T111, T141, app250_in_gga(T115, T116, T140))
U8_GA(T110, T111, T141, app250_out_gga(T115, T116, T140)) → PERM21_IN_GA(T140, T141)
perm1_in_ga(.(X47, T20), .(T21, T22)) → U12_ga(X47, T20, T21, T22, app110_in_aaag(X48, T21, X49, T20))
app110_in_aaag(.(X100, X101), T40, X102, .(X100, T39)) → U1_aaag(X100, X101, T40, X102, T39, app110_in_aaag(X101, T40, X102, T39))
app110_in_aaag([], T45, X119, .(T45, X119)) → app110_out_aaag([], T45, X119, .(T45, X119))
U1_aaag(X100, X101, T40, X102, T39, app110_out_aaag(X101, T40, X102, T39)) → app110_out_aaag(.(X100, X101), T40, X102, .(X100, T39))
U12_ga(X47, T20, T21, T22, app110_out_aaag(X48, T21, X49, T20)) → perm1_out_ga(.(X47, T20), .(T21, T22))
perm1_in_ga(.(X47, T20), .(T21, T27)) → U13_ga(X47, T20, T21, T27, app110_in_aaag(T25, T21, T26, T20))
U13_ga(X47, T20, T21, T27, app110_out_aaag(T25, T21, T26, T20)) → U14_ga(X47, T20, T21, T27, app220_in_ggga(X47, T25, T26, X11))
app220_in_ggga(X171, T66, T67, .(X171, X172)) → U11_ggga(X171, T66, T67, X172, app225_in_gga(T66, T67, X172))
app225_in_gga(.(T83, T84), T85, .(T83, X202)) → U2_gga(T83, T84, T85, X202, app225_in_gga(T84, T85, X202))
app225_in_gga([], T91, T91) → app225_out_gga([], T91, T91)
U2_gga(T83, T84, T85, X202, app225_out_gga(T84, T85, X202)) → app225_out_gga(.(T83, T84), T85, .(T83, X202))
U11_ggga(X171, T66, T67, X172, app225_out_gga(T66, T67, X172)) → app220_out_ggga(X171, T66, T67, .(X171, X172))
U14_ga(X47, T20, T21, T27, app220_out_ggga(X47, T25, T26, X11)) → perm1_out_ga(.(X47, T20), .(T21, T27))
perm1_in_ga(.(T48, T20), .(T21, T27)) → U15_ga(T48, T20, T21, T27, app110_in_aaag(T25, T21, T26, T20))
U15_ga(T48, T20, T21, T27, app110_out_aaag(T25, T21, T26, T20)) → U16_ga(T48, T20, T21, T27, app220_in_ggga(T48, T25, T26, T49))
U16_ga(T48, T20, T21, T27, app220_out_ggga(T48, T25, T26, T49)) → U17_ga(T48, T20, T21, T27, perm21_in_ga(T49, T27))
perm21_in_ga(T110, .(T111, T112)) → U4_ga(T110, T111, T112, app140_in_aaag(X244, T111, X245, T110))
app140_in_aaag(.(X296, X297), T131, X298, .(X296, T130)) → U3_aaag(X296, X297, T131, X298, T130, app140_in_aaag(X297, T131, X298, T130))
app140_in_aaag([], T136, X315, .(T136, X315)) → app140_out_aaag([], T136, X315, .(T136, X315))
U3_aaag(X296, X297, T131, X298, T130, app140_out_aaag(X297, T131, X298, T130)) → app140_out_aaag(.(X296, X297), T131, X298, .(X296, T130))
U4_ga(T110, T111, T112, app140_out_aaag(X244, T111, X245, T110)) → perm21_out_ga(T110, .(T111, T112))
perm21_in_ga(T110, .(T111, T117)) → U5_ga(T110, T111, T117, app140_in_aaag(T115, T111, T116, T110))
U5_ga(T110, T111, T117, app140_out_aaag(T115, T111, T116, T110)) → U6_ga(T110, T111, T117, app250_in_gga(T115, T116, X246))
app250_in_gga(.(T157, T160), T161, .(T157, X351)) → U10_gga(T157, T160, T161, X351, app250_in_gga(T160, T161, X351))
app250_in_gga([], T167, T167) → app250_out_gga([], T167, T167)
U10_gga(T157, T160, T161, X351, app250_out_gga(T160, T161, X351)) → app250_out_gga(.(T157, T160), T161, .(T157, X351))
U6_ga(T110, T111, T117, app250_out_gga(T115, T116, X246)) → perm21_out_ga(T110, .(T111, T117))
perm21_in_ga(T110, .(T111, T141)) → U7_ga(T110, T111, T141, app140_in_aaag(T115, T111, T116, T110))
U7_ga(T110, T111, T141, app140_out_aaag(T115, T111, T116, T110)) → U8_ga(T110, T111, T141, app250_in_gga(T115, T116, T140))
U8_ga(T110, T111, T141, app250_out_gga(T115, T116, T140)) → U9_ga(T110, T111, T141, perm21_in_ga(T140, T141))
perm21_in_ga([], []) → perm21_out_ga([], [])
U9_ga(T110, T111, T141, perm21_out_ga(T140, T141)) → perm21_out_ga(T110, .(T111, T141))
U17_ga(T48, T20, T21, T27, perm21_out_ga(T49, T27)) → perm1_out_ga(.(T48, T20), .(T21, T27))
perm1_in_ga(.(T175, X380), .(T175, T176)) → U18_ga(T175, X380, T176, app267_in_ga(X380, X11))
app267_in_ga(X410, X410) → app267_out_ga(X410, X410)
U18_ga(T175, X380, T176, app267_out_ga(X380, X11)) → perm1_out_ga(.(T175, X380), .(T175, T176))
perm1_in_ga(.(T175, T179), .(T175, T176)) → U19_ga(T175, T179, T176, app267_in_ga(T179, T180))
U19_ga(T175, T179, T176, app267_out_ga(T179, T180)) → U20_ga(T175, T179, T176, perm21_in_ga(T180, T176))
U20_ga(T175, T179, T176, perm21_out_ga(T180, T176)) → perm1_out_ga(.(T175, T179), .(T175, T176))
perm1_in_ga([], []) → perm1_out_ga([], [])
PERM21_IN_GA(T110, .(T111, T141)) → U7_GA(T110, T111, T141, app140_in_aaag(T115, T111, T116, T110))
U7_GA(T110, T111, T141, app140_out_aaag(T115, T111, T116, T110)) → U8_GA(T110, T111, T141, app250_in_gga(T115, T116, T140))
U8_GA(T110, T111, T141, app250_out_gga(T115, T116, T140)) → PERM21_IN_GA(T140, T141)
app140_in_aaag(.(X296, X297), T131, X298, .(X296, T130)) → U3_aaag(X296, X297, T131, X298, T130, app140_in_aaag(X297, T131, X298, T130))
app140_in_aaag([], T136, X315, .(T136, X315)) → app140_out_aaag([], T136, X315, .(T136, X315))
app250_in_gga(.(T157, T160), T161, .(T157, X351)) → U10_gga(T157, T160, T161, X351, app250_in_gga(T160, T161, X351))
app250_in_gga([], T167, T167) → app250_out_gga([], T167, T167)
U3_aaag(X296, X297, T131, X298, T130, app140_out_aaag(X297, T131, X298, T130)) → app140_out_aaag(.(X296, X297), T131, X298, .(X296, T130))
U10_gga(T157, T160, T161, X351, app250_out_gga(T160, T161, X351)) → app250_out_gga(.(T157, T160), T161, .(T157, X351))
PERM21_IN_GA(T110) → U7_GA(app140_in_aaag(T110))
U7_GA(app140_out_aaag(T115, T111, T116)) → U8_GA(app250_in_gga(T115, T116))
U8_GA(app250_out_gga(T140)) → PERM21_IN_GA(T140)
app140_in_aaag(.(X296, T130)) → U3_aaag(X296, app140_in_aaag(T130))
app140_in_aaag(.(T136, X315)) → app140_out_aaag([], T136, X315)
app250_in_gga(.(T157, T160), T161) → U10_gga(T157, app250_in_gga(T160, T161))
app250_in_gga([], T167) → app250_out_gga(T167)
U3_aaag(X296, app140_out_aaag(X297, T131, X298)) → app140_out_aaag(.(X296, X297), T131, X298)
U10_gga(T157, app250_out_gga(X351)) → app250_out_gga(.(T157, X351))
app140_in_aaag(x0)
app250_in_gga(x0, x1)
U3_aaag(x0, x1)
U10_gga(x0, x1)
PERM21_IN_GA(T110) → U7_GA(app140_in_aaag(T110))
U7_GA(app140_out_aaag(T115, T111, T116)) → U8_GA(app250_in_gga(T115, T116))
U8_GA(app250_out_gga(T140)) → PERM21_IN_GA(T140)
app140_in_aaag(.(T136, X315)) → app140_out_aaag([], T136, X315)
app250_in_gga([], T167) → app250_out_gga(T167)
POL(.(x1, x2)) = 5 + x1 + x2
POL(PERM21_IN_GA(x1)) = 1 + x1
POL(U10_gga(x1, x2)) = 5 + x1 + x2
POL(U3_aaag(x1, x2)) = 5 + x1 + x2
POL(U7_GA(x1)) = x1
POL(U8_GA(x1)) = x1
POL([]) = 0
POL(app140_in_aaag(x1)) = x1
POL(app140_out_aaag(x1, x2, x3)) = 4 + x1 + x2 + x3
POL(app250_in_gga(x1, x2)) = 3 + x1 + x2
POL(app250_out_gga(x1)) = 2 + x1
app140_in_aaag(.(X296, T130)) → U3_aaag(X296, app140_in_aaag(T130))
app250_in_gga(.(T157, T160), T161) → U10_gga(T157, app250_in_gga(T160, T161))
U3_aaag(X296, app140_out_aaag(X297, T131, X298)) → app140_out_aaag(.(X296, X297), T131, X298)
U10_gga(T157, app250_out_gga(X351)) → app250_out_gga(.(T157, X351))
app140_in_aaag(x0)
app250_in_gga(x0, x1)
U3_aaag(x0, x1)
U10_gga(x0, x1)
APP225_IN_GGA(.(T83, T84), T85, .(T83, X202)) → APP225_IN_GGA(T84, T85, X202)
perm1_in_ga(.(X47, T20), .(T21, T22)) → U12_ga(X47, T20, T21, T22, app110_in_aaag(X48, T21, X49, T20))
app110_in_aaag(.(X100, X101), T40, X102, .(X100, T39)) → U1_aaag(X100, X101, T40, X102, T39, app110_in_aaag(X101, T40, X102, T39))
app110_in_aaag([], T45, X119, .(T45, X119)) → app110_out_aaag([], T45, X119, .(T45, X119))
U1_aaag(X100, X101, T40, X102, T39, app110_out_aaag(X101, T40, X102, T39)) → app110_out_aaag(.(X100, X101), T40, X102, .(X100, T39))
U12_ga(X47, T20, T21, T22, app110_out_aaag(X48, T21, X49, T20)) → perm1_out_ga(.(X47, T20), .(T21, T22))
perm1_in_ga(.(X47, T20), .(T21, T27)) → U13_ga(X47, T20, T21, T27, app110_in_aaag(T25, T21, T26, T20))
U13_ga(X47, T20, T21, T27, app110_out_aaag(T25, T21, T26, T20)) → U14_ga(X47, T20, T21, T27, app220_in_ggga(X47, T25, T26, X11))
app220_in_ggga(X171, T66, T67, .(X171, X172)) → U11_ggga(X171, T66, T67, X172, app225_in_gga(T66, T67, X172))
app225_in_gga(.(T83, T84), T85, .(T83, X202)) → U2_gga(T83, T84, T85, X202, app225_in_gga(T84, T85, X202))
app225_in_gga([], T91, T91) → app225_out_gga([], T91, T91)
U2_gga(T83, T84, T85, X202, app225_out_gga(T84, T85, X202)) → app225_out_gga(.(T83, T84), T85, .(T83, X202))
U11_ggga(X171, T66, T67, X172, app225_out_gga(T66, T67, X172)) → app220_out_ggga(X171, T66, T67, .(X171, X172))
U14_ga(X47, T20, T21, T27, app220_out_ggga(X47, T25, T26, X11)) → perm1_out_ga(.(X47, T20), .(T21, T27))
perm1_in_ga(.(T48, T20), .(T21, T27)) → U15_ga(T48, T20, T21, T27, app110_in_aaag(T25, T21, T26, T20))
U15_ga(T48, T20, T21, T27, app110_out_aaag(T25, T21, T26, T20)) → U16_ga(T48, T20, T21, T27, app220_in_ggga(T48, T25, T26, T49))
U16_ga(T48, T20, T21, T27, app220_out_ggga(T48, T25, T26, T49)) → U17_ga(T48, T20, T21, T27, perm21_in_ga(T49, T27))
perm21_in_ga(T110, .(T111, T112)) → U4_ga(T110, T111, T112, app140_in_aaag(X244, T111, X245, T110))
app140_in_aaag(.(X296, X297), T131, X298, .(X296, T130)) → U3_aaag(X296, X297, T131, X298, T130, app140_in_aaag(X297, T131, X298, T130))
app140_in_aaag([], T136, X315, .(T136, X315)) → app140_out_aaag([], T136, X315, .(T136, X315))
U3_aaag(X296, X297, T131, X298, T130, app140_out_aaag(X297, T131, X298, T130)) → app140_out_aaag(.(X296, X297), T131, X298, .(X296, T130))
U4_ga(T110, T111, T112, app140_out_aaag(X244, T111, X245, T110)) → perm21_out_ga(T110, .(T111, T112))
perm21_in_ga(T110, .(T111, T117)) → U5_ga(T110, T111, T117, app140_in_aaag(T115, T111, T116, T110))
U5_ga(T110, T111, T117, app140_out_aaag(T115, T111, T116, T110)) → U6_ga(T110, T111, T117, app250_in_gga(T115, T116, X246))
app250_in_gga(.(T157, T160), T161, .(T157, X351)) → U10_gga(T157, T160, T161, X351, app250_in_gga(T160, T161, X351))
app250_in_gga([], T167, T167) → app250_out_gga([], T167, T167)
U10_gga(T157, T160, T161, X351, app250_out_gga(T160, T161, X351)) → app250_out_gga(.(T157, T160), T161, .(T157, X351))
U6_ga(T110, T111, T117, app250_out_gga(T115, T116, X246)) → perm21_out_ga(T110, .(T111, T117))
perm21_in_ga(T110, .(T111, T141)) → U7_ga(T110, T111, T141, app140_in_aaag(T115, T111, T116, T110))
U7_ga(T110, T111, T141, app140_out_aaag(T115, T111, T116, T110)) → U8_ga(T110, T111, T141, app250_in_gga(T115, T116, T140))
U8_ga(T110, T111, T141, app250_out_gga(T115, T116, T140)) → U9_ga(T110, T111, T141, perm21_in_ga(T140, T141))
perm21_in_ga([], []) → perm21_out_ga([], [])
U9_ga(T110, T111, T141, perm21_out_ga(T140, T141)) → perm21_out_ga(T110, .(T111, T141))
U17_ga(T48, T20, T21, T27, perm21_out_ga(T49, T27)) → perm1_out_ga(.(T48, T20), .(T21, T27))
perm1_in_ga(.(T175, X380), .(T175, T176)) → U18_ga(T175, X380, T176, app267_in_ga(X380, X11))
app267_in_ga(X410, X410) → app267_out_ga(X410, X410)
U18_ga(T175, X380, T176, app267_out_ga(X380, X11)) → perm1_out_ga(.(T175, X380), .(T175, T176))
perm1_in_ga(.(T175, T179), .(T175, T176)) → U19_ga(T175, T179, T176, app267_in_ga(T179, T180))
U19_ga(T175, T179, T176, app267_out_ga(T179, T180)) → U20_ga(T175, T179, T176, perm21_in_ga(T180, T176))
U20_ga(T175, T179, T176, perm21_out_ga(T180, T176)) → perm1_out_ga(.(T175, T179), .(T175, T176))
perm1_in_ga([], []) → perm1_out_ga([], [])
APP225_IN_GGA(.(T83, T84), T85, .(T83, X202)) → APP225_IN_GGA(T84, T85, X202)
APP225_IN_GGA(.(T83, T84), T85) → APP225_IN_GGA(T84, T85)
From the DPs we obtained the following set of size-change graphs:
APP110_IN_AAAG(.(X100, X101), T40, X102, .(X100, T39)) → APP110_IN_AAAG(X101, T40, X102, T39)
perm1_in_ga(.(X47, T20), .(T21, T22)) → U12_ga(X47, T20, T21, T22, app110_in_aaag(X48, T21, X49, T20))
app110_in_aaag(.(X100, X101), T40, X102, .(X100, T39)) → U1_aaag(X100, X101, T40, X102, T39, app110_in_aaag(X101, T40, X102, T39))
app110_in_aaag([], T45, X119, .(T45, X119)) → app110_out_aaag([], T45, X119, .(T45, X119))
U1_aaag(X100, X101, T40, X102, T39, app110_out_aaag(X101, T40, X102, T39)) → app110_out_aaag(.(X100, X101), T40, X102, .(X100, T39))
U12_ga(X47, T20, T21, T22, app110_out_aaag(X48, T21, X49, T20)) → perm1_out_ga(.(X47, T20), .(T21, T22))
perm1_in_ga(.(X47, T20), .(T21, T27)) → U13_ga(X47, T20, T21, T27, app110_in_aaag(T25, T21, T26, T20))
U13_ga(X47, T20, T21, T27, app110_out_aaag(T25, T21, T26, T20)) → U14_ga(X47, T20, T21, T27, app220_in_ggga(X47, T25, T26, X11))
app220_in_ggga(X171, T66, T67, .(X171, X172)) → U11_ggga(X171, T66, T67, X172, app225_in_gga(T66, T67, X172))
app225_in_gga(.(T83, T84), T85, .(T83, X202)) → U2_gga(T83, T84, T85, X202, app225_in_gga(T84, T85, X202))
app225_in_gga([], T91, T91) → app225_out_gga([], T91, T91)
U2_gga(T83, T84, T85, X202, app225_out_gga(T84, T85, X202)) → app225_out_gga(.(T83, T84), T85, .(T83, X202))
U11_ggga(X171, T66, T67, X172, app225_out_gga(T66, T67, X172)) → app220_out_ggga(X171, T66, T67, .(X171, X172))
U14_ga(X47, T20, T21, T27, app220_out_ggga(X47, T25, T26, X11)) → perm1_out_ga(.(X47, T20), .(T21, T27))
perm1_in_ga(.(T48, T20), .(T21, T27)) → U15_ga(T48, T20, T21, T27, app110_in_aaag(T25, T21, T26, T20))
U15_ga(T48, T20, T21, T27, app110_out_aaag(T25, T21, T26, T20)) → U16_ga(T48, T20, T21, T27, app220_in_ggga(T48, T25, T26, T49))
U16_ga(T48, T20, T21, T27, app220_out_ggga(T48, T25, T26, T49)) → U17_ga(T48, T20, T21, T27, perm21_in_ga(T49, T27))
perm21_in_ga(T110, .(T111, T112)) → U4_ga(T110, T111, T112, app140_in_aaag(X244, T111, X245, T110))
app140_in_aaag(.(X296, X297), T131, X298, .(X296, T130)) → U3_aaag(X296, X297, T131, X298, T130, app140_in_aaag(X297, T131, X298, T130))
app140_in_aaag([], T136, X315, .(T136, X315)) → app140_out_aaag([], T136, X315, .(T136, X315))
U3_aaag(X296, X297, T131, X298, T130, app140_out_aaag(X297, T131, X298, T130)) → app140_out_aaag(.(X296, X297), T131, X298, .(X296, T130))
U4_ga(T110, T111, T112, app140_out_aaag(X244, T111, X245, T110)) → perm21_out_ga(T110, .(T111, T112))
perm21_in_ga(T110, .(T111, T117)) → U5_ga(T110, T111, T117, app140_in_aaag(T115, T111, T116, T110))
U5_ga(T110, T111, T117, app140_out_aaag(T115, T111, T116, T110)) → U6_ga(T110, T111, T117, app250_in_gga(T115, T116, X246))
app250_in_gga(.(T157, T160), T161, .(T157, X351)) → U10_gga(T157, T160, T161, X351, app250_in_gga(T160, T161, X351))
app250_in_gga([], T167, T167) → app250_out_gga([], T167, T167)
U10_gga(T157, T160, T161, X351, app250_out_gga(T160, T161, X351)) → app250_out_gga(.(T157, T160), T161, .(T157, X351))
U6_ga(T110, T111, T117, app250_out_gga(T115, T116, X246)) → perm21_out_ga(T110, .(T111, T117))
perm21_in_ga(T110, .(T111, T141)) → U7_ga(T110, T111, T141, app140_in_aaag(T115, T111, T116, T110))
U7_ga(T110, T111, T141, app140_out_aaag(T115, T111, T116, T110)) → U8_ga(T110, T111, T141, app250_in_gga(T115, T116, T140))
U8_ga(T110, T111, T141, app250_out_gga(T115, T116, T140)) → U9_ga(T110, T111, T141, perm21_in_ga(T140, T141))
perm21_in_ga([], []) → perm21_out_ga([], [])
U9_ga(T110, T111, T141, perm21_out_ga(T140, T141)) → perm21_out_ga(T110, .(T111, T141))
U17_ga(T48, T20, T21, T27, perm21_out_ga(T49, T27)) → perm1_out_ga(.(T48, T20), .(T21, T27))
perm1_in_ga(.(T175, X380), .(T175, T176)) → U18_ga(T175, X380, T176, app267_in_ga(X380, X11))
app267_in_ga(X410, X410) → app267_out_ga(X410, X410)
U18_ga(T175, X380, T176, app267_out_ga(X380, X11)) → perm1_out_ga(.(T175, X380), .(T175, T176))
perm1_in_ga(.(T175, T179), .(T175, T176)) → U19_ga(T175, T179, T176, app267_in_ga(T179, T180))
U19_ga(T175, T179, T176, app267_out_ga(T179, T180)) → U20_ga(T175, T179, T176, perm21_in_ga(T180, T176))
U20_ga(T175, T179, T176, perm21_out_ga(T180, T176)) → perm1_out_ga(.(T175, T179), .(T175, T176))
perm1_in_ga([], []) → perm1_out_ga([], [])
APP110_IN_AAAG(.(X100, X101), T40, X102, .(X100, T39)) → APP110_IN_AAAG(X101, T40, X102, T39)
APP110_IN_AAAG(.(X100, T39)) → APP110_IN_AAAG(T39)
From the DPs we obtained the following set of size-change graphs: