0 Prolog
↳1 PrologToPiTRSProof (⇐)
↳2 PiTRS
↳3 DependencyPairsProof (⇔)
↳4 PiDP
↳5 DependencyGraphProof (⇔)
↳6 AND
↳7 PiDP
↳8 UsableRulesProof (⇔)
↳9 PiDP
↳10 PiDPToQDPProof (⇐)
↳11 QDP
↳12 QDPSizeChangeProof (⇔)
↳13 TRUE
↳14 PiDP
↳15 UsableRulesProof (⇔)
↳16 PiDP
↳17 PiDPToQDPProof (⇐)
↳18 QDP
↳19 QDPSizeChangeProof (⇔)
↳20 TRUE
↳21 PiDP
↳22 UsableRulesProof (⇔)
↳23 PiDP
↳24 PiDPToQDPProof (⇐)
↳25 QDP
↳26 Narrowing (⇐)
↳27 QDP
↳28 Narrowing (⇐)
↳29 QDP
↳30 Instantiation (⇔)
↳31 QDP
↳32 DependencyGraphProof (⇔)
↳33 AND
↳34 QDP
↳35 UsableRulesProof (⇔)
↳36 QDP
↳37 QReductionProof (⇔)
↳38 QDP
↳39 NonTerminationProof (⇔)
↳40 FALSE
↳41 QDP
↳42 Instantiation (⇔)
↳43 QDP
↳44 NonTerminationProof (⇔)
↳45 FALSE
↳46 PrologToPiTRSProof (⇐)
↳47 PiTRS
↳48 DependencyPairsProof (⇔)
↳49 PiDP
↳50 DependencyGraphProof (⇔)
↳51 AND
↳52 PiDP
↳53 UsableRulesProof (⇔)
↳54 PiDP
↳55 PiDPToQDPProof (⇐)
↳56 QDP
↳57 QDPSizeChangeProof (⇔)
↳58 TRUE
↳59 PiDP
↳60 UsableRulesProof (⇔)
↳61 PiDP
↳62 PiDPToQDPProof (⇐)
↳63 QDP
↳64 QDPSizeChangeProof (⇔)
↳65 TRUE
↳66 PiDP
↳67 UsableRulesProof (⇔)
↳68 PiDP
↳69 PiDPToQDPProof (⇐)
↳70 QDP
↳71 Narrowing (⇐)
↳72 QDP
↳73 Narrowing (⇐)
↳74 QDP
↳75 Instantiation (⇔)
↳76 QDP
↳77 DependencyGraphProof (⇔)
↳78 AND
↳79 QDP
↳80 UsableRulesProof (⇔)
↳81 QDP
↳82 QReductionProof (⇔)
↳83 QDP
↳84 NonTerminationProof (⇔)
↳85 FALSE
↳86 QDP
↳87 Instantiation (⇔)
↳88 QDP
↳89 NonTerminationProof (⇔)
↳90 FALSE
in_in_ga(X, tree(X, X1, X2)) → in_out_ga(X, tree(X, X1, X2))
in_in_ga(X, tree(Y, Left, X3)) → U1_ga(X, Y, Left, X3, less_in_ga(X, Y))
less_in_ga(0, s(X5)) → less_out_ga(0, s(X5))
less_in_ga(s(X), s(Y)) → U5_ga(X, Y, less_in_ga(X, Y))
U5_ga(X, Y, less_out_ga(X, Y)) → less_out_ga(s(X), s(Y))
U1_ga(X, Y, Left, X3, less_out_ga(X, Y)) → U2_ga(X, Y, Left, X3, in_in_ga(X, Left))
in_in_ga(X, tree(Y, X4, Right)) → U3_ga(X, Y, X4, Right, less_in_ag(Y, X))
less_in_ag(0, s(X5)) → less_out_ag(0, s(X5))
less_in_ag(s(X), s(Y)) → U5_ag(X, Y, less_in_ag(X, Y))
U5_ag(X, Y, less_out_ag(X, Y)) → less_out_ag(s(X), s(Y))
U3_ga(X, Y, X4, Right, less_out_ag(Y, X)) → U4_ga(X, Y, X4, Right, in_in_ga(X, Right))
U4_ga(X, Y, X4, Right, in_out_ga(X, Right)) → in_out_ga(X, tree(Y, X4, Right))
U2_ga(X, Y, Left, X3, in_out_ga(X, Left)) → in_out_ga(X, tree(Y, Left, X3))
Infinitary Constructor Rewriting Termination of PiTRS implies Termination of Prolog
in_in_ga(X, tree(X, X1, X2)) → in_out_ga(X, tree(X, X1, X2))
in_in_ga(X, tree(Y, Left, X3)) → U1_ga(X, Y, Left, X3, less_in_ga(X, Y))
less_in_ga(0, s(X5)) → less_out_ga(0, s(X5))
less_in_ga(s(X), s(Y)) → U5_ga(X, Y, less_in_ga(X, Y))
U5_ga(X, Y, less_out_ga(X, Y)) → less_out_ga(s(X), s(Y))
U1_ga(X, Y, Left, X3, less_out_ga(X, Y)) → U2_ga(X, Y, Left, X3, in_in_ga(X, Left))
in_in_ga(X, tree(Y, X4, Right)) → U3_ga(X, Y, X4, Right, less_in_ag(Y, X))
less_in_ag(0, s(X5)) → less_out_ag(0, s(X5))
less_in_ag(s(X), s(Y)) → U5_ag(X, Y, less_in_ag(X, Y))
U5_ag(X, Y, less_out_ag(X, Y)) → less_out_ag(s(X), s(Y))
U3_ga(X, Y, X4, Right, less_out_ag(Y, X)) → U4_ga(X, Y, X4, Right, in_in_ga(X, Right))
U4_ga(X, Y, X4, Right, in_out_ga(X, Right)) → in_out_ga(X, tree(Y, X4, Right))
U2_ga(X, Y, Left, X3, in_out_ga(X, Left)) → in_out_ga(X, tree(Y, Left, X3))
IN_IN_GA(X, tree(Y, Left, X3)) → U1_GA(X, Y, Left, X3, less_in_ga(X, Y))
IN_IN_GA(X, tree(Y, Left, X3)) → LESS_IN_GA(X, Y)
LESS_IN_GA(s(X), s(Y)) → U5_GA(X, Y, less_in_ga(X, Y))
LESS_IN_GA(s(X), s(Y)) → LESS_IN_GA(X, Y)
U1_GA(X, Y, Left, X3, less_out_ga(X, Y)) → U2_GA(X, Y, Left, X3, in_in_ga(X, Left))
U1_GA(X, Y, Left, X3, less_out_ga(X, Y)) → IN_IN_GA(X, Left)
IN_IN_GA(X, tree(Y, X4, Right)) → U3_GA(X, Y, X4, Right, less_in_ag(Y, X))
IN_IN_GA(X, tree(Y, X4, Right)) → LESS_IN_AG(Y, X)
LESS_IN_AG(s(X), s(Y)) → U5_AG(X, Y, less_in_ag(X, Y))
LESS_IN_AG(s(X), s(Y)) → LESS_IN_AG(X, Y)
U3_GA(X, Y, X4, Right, less_out_ag(Y, X)) → U4_GA(X, Y, X4, Right, in_in_ga(X, Right))
U3_GA(X, Y, X4, Right, less_out_ag(Y, X)) → IN_IN_GA(X, Right)
in_in_ga(X, tree(X, X1, X2)) → in_out_ga(X, tree(X, X1, X2))
in_in_ga(X, tree(Y, Left, X3)) → U1_ga(X, Y, Left, X3, less_in_ga(X, Y))
less_in_ga(0, s(X5)) → less_out_ga(0, s(X5))
less_in_ga(s(X), s(Y)) → U5_ga(X, Y, less_in_ga(X, Y))
U5_ga(X, Y, less_out_ga(X, Y)) → less_out_ga(s(X), s(Y))
U1_ga(X, Y, Left, X3, less_out_ga(X, Y)) → U2_ga(X, Y, Left, X3, in_in_ga(X, Left))
in_in_ga(X, tree(Y, X4, Right)) → U3_ga(X, Y, X4, Right, less_in_ag(Y, X))
less_in_ag(0, s(X5)) → less_out_ag(0, s(X5))
less_in_ag(s(X), s(Y)) → U5_ag(X, Y, less_in_ag(X, Y))
U5_ag(X, Y, less_out_ag(X, Y)) → less_out_ag(s(X), s(Y))
U3_ga(X, Y, X4, Right, less_out_ag(Y, X)) → U4_ga(X, Y, X4, Right, in_in_ga(X, Right))
U4_ga(X, Y, X4, Right, in_out_ga(X, Right)) → in_out_ga(X, tree(Y, X4, Right))
U2_ga(X, Y, Left, X3, in_out_ga(X, Left)) → in_out_ga(X, tree(Y, Left, X3))
IN_IN_GA(X, tree(Y, Left, X3)) → U1_GA(X, Y, Left, X3, less_in_ga(X, Y))
IN_IN_GA(X, tree(Y, Left, X3)) → LESS_IN_GA(X, Y)
LESS_IN_GA(s(X), s(Y)) → U5_GA(X, Y, less_in_ga(X, Y))
LESS_IN_GA(s(X), s(Y)) → LESS_IN_GA(X, Y)
U1_GA(X, Y, Left, X3, less_out_ga(X, Y)) → U2_GA(X, Y, Left, X3, in_in_ga(X, Left))
U1_GA(X, Y, Left, X3, less_out_ga(X, Y)) → IN_IN_GA(X, Left)
IN_IN_GA(X, tree(Y, X4, Right)) → U3_GA(X, Y, X4, Right, less_in_ag(Y, X))
IN_IN_GA(X, tree(Y, X4, Right)) → LESS_IN_AG(Y, X)
LESS_IN_AG(s(X), s(Y)) → U5_AG(X, Y, less_in_ag(X, Y))
LESS_IN_AG(s(X), s(Y)) → LESS_IN_AG(X, Y)
U3_GA(X, Y, X4, Right, less_out_ag(Y, X)) → U4_GA(X, Y, X4, Right, in_in_ga(X, Right))
U3_GA(X, Y, X4, Right, less_out_ag(Y, X)) → IN_IN_GA(X, Right)
in_in_ga(X, tree(X, X1, X2)) → in_out_ga(X, tree(X, X1, X2))
in_in_ga(X, tree(Y, Left, X3)) → U1_ga(X, Y, Left, X3, less_in_ga(X, Y))
less_in_ga(0, s(X5)) → less_out_ga(0, s(X5))
less_in_ga(s(X), s(Y)) → U5_ga(X, Y, less_in_ga(X, Y))
U5_ga(X, Y, less_out_ga(X, Y)) → less_out_ga(s(X), s(Y))
U1_ga(X, Y, Left, X3, less_out_ga(X, Y)) → U2_ga(X, Y, Left, X3, in_in_ga(X, Left))
in_in_ga(X, tree(Y, X4, Right)) → U3_ga(X, Y, X4, Right, less_in_ag(Y, X))
less_in_ag(0, s(X5)) → less_out_ag(0, s(X5))
less_in_ag(s(X), s(Y)) → U5_ag(X, Y, less_in_ag(X, Y))
U5_ag(X, Y, less_out_ag(X, Y)) → less_out_ag(s(X), s(Y))
U3_ga(X, Y, X4, Right, less_out_ag(Y, X)) → U4_ga(X, Y, X4, Right, in_in_ga(X, Right))
U4_ga(X, Y, X4, Right, in_out_ga(X, Right)) → in_out_ga(X, tree(Y, X4, Right))
U2_ga(X, Y, Left, X3, in_out_ga(X, Left)) → in_out_ga(X, tree(Y, Left, X3))
LESS_IN_AG(s(X), s(Y)) → LESS_IN_AG(X, Y)
in_in_ga(X, tree(X, X1, X2)) → in_out_ga(X, tree(X, X1, X2))
in_in_ga(X, tree(Y, Left, X3)) → U1_ga(X, Y, Left, X3, less_in_ga(X, Y))
less_in_ga(0, s(X5)) → less_out_ga(0, s(X5))
less_in_ga(s(X), s(Y)) → U5_ga(X, Y, less_in_ga(X, Y))
U5_ga(X, Y, less_out_ga(X, Y)) → less_out_ga(s(X), s(Y))
U1_ga(X, Y, Left, X3, less_out_ga(X, Y)) → U2_ga(X, Y, Left, X3, in_in_ga(X, Left))
in_in_ga(X, tree(Y, X4, Right)) → U3_ga(X, Y, X4, Right, less_in_ag(Y, X))
less_in_ag(0, s(X5)) → less_out_ag(0, s(X5))
less_in_ag(s(X), s(Y)) → U5_ag(X, Y, less_in_ag(X, Y))
U5_ag(X, Y, less_out_ag(X, Y)) → less_out_ag(s(X), s(Y))
U3_ga(X, Y, X4, Right, less_out_ag(Y, X)) → U4_ga(X, Y, X4, Right, in_in_ga(X, Right))
U4_ga(X, Y, X4, Right, in_out_ga(X, Right)) → in_out_ga(X, tree(Y, X4, Right))
U2_ga(X, Y, Left, X3, in_out_ga(X, Left)) → in_out_ga(X, tree(Y, Left, X3))
LESS_IN_AG(s(X), s(Y)) → LESS_IN_AG(X, Y)
LESS_IN_AG(s(Y)) → LESS_IN_AG(Y)
From the DPs we obtained the following set of size-change graphs:
LESS_IN_GA(s(X), s(Y)) → LESS_IN_GA(X, Y)
in_in_ga(X, tree(X, X1, X2)) → in_out_ga(X, tree(X, X1, X2))
in_in_ga(X, tree(Y, Left, X3)) → U1_ga(X, Y, Left, X3, less_in_ga(X, Y))
less_in_ga(0, s(X5)) → less_out_ga(0, s(X5))
less_in_ga(s(X), s(Y)) → U5_ga(X, Y, less_in_ga(X, Y))
U5_ga(X, Y, less_out_ga(X, Y)) → less_out_ga(s(X), s(Y))
U1_ga(X, Y, Left, X3, less_out_ga(X, Y)) → U2_ga(X, Y, Left, X3, in_in_ga(X, Left))
in_in_ga(X, tree(Y, X4, Right)) → U3_ga(X, Y, X4, Right, less_in_ag(Y, X))
less_in_ag(0, s(X5)) → less_out_ag(0, s(X5))
less_in_ag(s(X), s(Y)) → U5_ag(X, Y, less_in_ag(X, Y))
U5_ag(X, Y, less_out_ag(X, Y)) → less_out_ag(s(X), s(Y))
U3_ga(X, Y, X4, Right, less_out_ag(Y, X)) → U4_ga(X, Y, X4, Right, in_in_ga(X, Right))
U4_ga(X, Y, X4, Right, in_out_ga(X, Right)) → in_out_ga(X, tree(Y, X4, Right))
U2_ga(X, Y, Left, X3, in_out_ga(X, Left)) → in_out_ga(X, tree(Y, Left, X3))
LESS_IN_GA(s(X), s(Y)) → LESS_IN_GA(X, Y)
LESS_IN_GA(s(X)) → LESS_IN_GA(X)
From the DPs we obtained the following set of size-change graphs:
U1_GA(X, Y, Left, X3, less_out_ga(X, Y)) → IN_IN_GA(X, Left)
IN_IN_GA(X, tree(Y, Left, X3)) → U1_GA(X, Y, Left, X3, less_in_ga(X, Y))
IN_IN_GA(X, tree(Y, X4, Right)) → U3_GA(X, Y, X4, Right, less_in_ag(Y, X))
U3_GA(X, Y, X4, Right, less_out_ag(Y, X)) → IN_IN_GA(X, Right)
in_in_ga(X, tree(X, X1, X2)) → in_out_ga(X, tree(X, X1, X2))
in_in_ga(X, tree(Y, Left, X3)) → U1_ga(X, Y, Left, X3, less_in_ga(X, Y))
less_in_ga(0, s(X5)) → less_out_ga(0, s(X5))
less_in_ga(s(X), s(Y)) → U5_ga(X, Y, less_in_ga(X, Y))
U5_ga(X, Y, less_out_ga(X, Y)) → less_out_ga(s(X), s(Y))
U1_ga(X, Y, Left, X3, less_out_ga(X, Y)) → U2_ga(X, Y, Left, X3, in_in_ga(X, Left))
in_in_ga(X, tree(Y, X4, Right)) → U3_ga(X, Y, X4, Right, less_in_ag(Y, X))
less_in_ag(0, s(X5)) → less_out_ag(0, s(X5))
less_in_ag(s(X), s(Y)) → U5_ag(X, Y, less_in_ag(X, Y))
U5_ag(X, Y, less_out_ag(X, Y)) → less_out_ag(s(X), s(Y))
U3_ga(X, Y, X4, Right, less_out_ag(Y, X)) → U4_ga(X, Y, X4, Right, in_in_ga(X, Right))
U4_ga(X, Y, X4, Right, in_out_ga(X, Right)) → in_out_ga(X, tree(Y, X4, Right))
U2_ga(X, Y, Left, X3, in_out_ga(X, Left)) → in_out_ga(X, tree(Y, Left, X3))
U1_GA(X, Y, Left, X3, less_out_ga(X, Y)) → IN_IN_GA(X, Left)
IN_IN_GA(X, tree(Y, Left, X3)) → U1_GA(X, Y, Left, X3, less_in_ga(X, Y))
IN_IN_GA(X, tree(Y, X4, Right)) → U3_GA(X, Y, X4, Right, less_in_ag(Y, X))
U3_GA(X, Y, X4, Right, less_out_ag(Y, X)) → IN_IN_GA(X, Right)
less_in_ga(0, s(X5)) → less_out_ga(0, s(X5))
less_in_ga(s(X), s(Y)) → U5_ga(X, Y, less_in_ga(X, Y))
less_in_ag(0, s(X5)) → less_out_ag(0, s(X5))
less_in_ag(s(X), s(Y)) → U5_ag(X, Y, less_in_ag(X, Y))
U5_ga(X, Y, less_out_ga(X, Y)) → less_out_ga(s(X), s(Y))
U5_ag(X, Y, less_out_ag(X, Y)) → less_out_ag(s(X), s(Y))
U1_GA(X, less_out_ga) → IN_IN_GA(X)
IN_IN_GA(X) → U1_GA(X, less_in_ga(X))
IN_IN_GA(X) → U3_GA(X, less_in_ag(X))
U3_GA(X, less_out_ag(Y)) → IN_IN_GA(X)
less_in_ga(0) → less_out_ga
less_in_ga(s(X)) → U5_ga(less_in_ga(X))
less_in_ag(s(X5)) → less_out_ag(0)
less_in_ag(s(Y)) → U5_ag(less_in_ag(Y))
U5_ga(less_out_ga) → less_out_ga
U5_ag(less_out_ag(X)) → less_out_ag(s(X))
less_in_ga(x0)
less_in_ag(x0)
U5_ga(x0)
U5_ag(x0)
IN_IN_GA(0) → U1_GA(0, less_out_ga)
IN_IN_GA(s(x0)) → U1_GA(s(x0), U5_ga(less_in_ga(x0)))
U1_GA(X, less_out_ga) → IN_IN_GA(X)
IN_IN_GA(X) → U3_GA(X, less_in_ag(X))
U3_GA(X, less_out_ag(Y)) → IN_IN_GA(X)
IN_IN_GA(0) → U1_GA(0, less_out_ga)
IN_IN_GA(s(x0)) → U1_GA(s(x0), U5_ga(less_in_ga(x0)))
less_in_ga(0) → less_out_ga
less_in_ga(s(X)) → U5_ga(less_in_ga(X))
less_in_ag(s(X5)) → less_out_ag(0)
less_in_ag(s(Y)) → U5_ag(less_in_ag(Y))
U5_ga(less_out_ga) → less_out_ga
U5_ag(less_out_ag(X)) → less_out_ag(s(X))
less_in_ga(x0)
less_in_ag(x0)
U5_ga(x0)
U5_ag(x0)
IN_IN_GA(s(x0)) → U3_GA(s(x0), less_out_ag(0))
IN_IN_GA(s(x0)) → U3_GA(s(x0), U5_ag(less_in_ag(x0)))
U1_GA(X, less_out_ga) → IN_IN_GA(X)
U3_GA(X, less_out_ag(Y)) → IN_IN_GA(X)
IN_IN_GA(0) → U1_GA(0, less_out_ga)
IN_IN_GA(s(x0)) → U1_GA(s(x0), U5_ga(less_in_ga(x0)))
IN_IN_GA(s(x0)) → U3_GA(s(x0), less_out_ag(0))
IN_IN_GA(s(x0)) → U3_GA(s(x0), U5_ag(less_in_ag(x0)))
less_in_ga(0) → less_out_ga
less_in_ga(s(X)) → U5_ga(less_in_ga(X))
less_in_ag(s(X5)) → less_out_ag(0)
less_in_ag(s(Y)) → U5_ag(less_in_ag(Y))
U5_ga(less_out_ga) → less_out_ga
U5_ag(less_out_ag(X)) → less_out_ag(s(X))
less_in_ga(x0)
less_in_ag(x0)
U5_ga(x0)
U5_ag(x0)
U1_GA(0, less_out_ga) → IN_IN_GA(0)
U1_GA(s(z0), less_out_ga) → IN_IN_GA(s(z0))
U3_GA(X, less_out_ag(Y)) → IN_IN_GA(X)
IN_IN_GA(0) → U1_GA(0, less_out_ga)
IN_IN_GA(s(x0)) → U1_GA(s(x0), U5_ga(less_in_ga(x0)))
IN_IN_GA(s(x0)) → U3_GA(s(x0), less_out_ag(0))
IN_IN_GA(s(x0)) → U3_GA(s(x0), U5_ag(less_in_ag(x0)))
U1_GA(0, less_out_ga) → IN_IN_GA(0)
U1_GA(s(z0), less_out_ga) → IN_IN_GA(s(z0))
less_in_ga(0) → less_out_ga
less_in_ga(s(X)) → U5_ga(less_in_ga(X))
less_in_ag(s(X5)) → less_out_ag(0)
less_in_ag(s(Y)) → U5_ag(less_in_ag(Y))
U5_ga(less_out_ga) → less_out_ga
U5_ag(less_out_ag(X)) → less_out_ag(s(X))
less_in_ga(x0)
less_in_ag(x0)
U5_ga(x0)
U5_ag(x0)
U1_GA(0, less_out_ga) → IN_IN_GA(0)
IN_IN_GA(0) → U1_GA(0, less_out_ga)
less_in_ga(0) → less_out_ga
less_in_ga(s(X)) → U5_ga(less_in_ga(X))
less_in_ag(s(X5)) → less_out_ag(0)
less_in_ag(s(Y)) → U5_ag(less_in_ag(Y))
U5_ga(less_out_ga) → less_out_ga
U5_ag(less_out_ag(X)) → less_out_ag(s(X))
less_in_ga(x0)
less_in_ag(x0)
U5_ga(x0)
U5_ag(x0)
U1_GA(0, less_out_ga) → IN_IN_GA(0)
IN_IN_GA(0) → U1_GA(0, less_out_ga)
less_in_ga(x0)
less_in_ag(x0)
U5_ga(x0)
U5_ag(x0)
less_in_ga(x0)
less_in_ag(x0)
U5_ga(x0)
U5_ag(x0)
U1_GA(0, less_out_ga) → IN_IN_GA(0)
IN_IN_GA(0) → U1_GA(0, less_out_ga)
IN_IN_GA(s(x0)) → U1_GA(s(x0), U5_ga(less_in_ga(x0)))
U1_GA(s(z0), less_out_ga) → IN_IN_GA(s(z0))
IN_IN_GA(s(x0)) → U3_GA(s(x0), less_out_ag(0))
U3_GA(X, less_out_ag(Y)) → IN_IN_GA(X)
IN_IN_GA(s(x0)) → U3_GA(s(x0), U5_ag(less_in_ag(x0)))
less_in_ga(0) → less_out_ga
less_in_ga(s(X)) → U5_ga(less_in_ga(X))
less_in_ag(s(X5)) → less_out_ag(0)
less_in_ag(s(Y)) → U5_ag(less_in_ag(Y))
U5_ga(less_out_ga) → less_out_ga
U5_ag(less_out_ag(X)) → less_out_ag(s(X))
less_in_ga(x0)
less_in_ag(x0)
U5_ga(x0)
U5_ag(x0)
U3_GA(s(z0), less_out_ag(0)) → IN_IN_GA(s(z0))
U3_GA(s(z0), less_out_ag(x1)) → IN_IN_GA(s(z0))
IN_IN_GA(s(x0)) → U1_GA(s(x0), U5_ga(less_in_ga(x0)))
U1_GA(s(z0), less_out_ga) → IN_IN_GA(s(z0))
IN_IN_GA(s(x0)) → U3_GA(s(x0), less_out_ag(0))
IN_IN_GA(s(x0)) → U3_GA(s(x0), U5_ag(less_in_ag(x0)))
U3_GA(s(z0), less_out_ag(0)) → IN_IN_GA(s(z0))
U3_GA(s(z0), less_out_ag(x1)) → IN_IN_GA(s(z0))
less_in_ga(0) → less_out_ga
less_in_ga(s(X)) → U5_ga(less_in_ga(X))
less_in_ag(s(X5)) → less_out_ag(0)
less_in_ag(s(Y)) → U5_ag(less_in_ag(Y))
U5_ga(less_out_ga) → less_out_ga
U5_ag(less_out_ag(X)) → less_out_ag(s(X))
less_in_ga(x0)
less_in_ag(x0)
U5_ga(x0)
U5_ag(x0)
in_in_ga(X, tree(X, X1, X2)) → in_out_ga(X, tree(X, X1, X2))
in_in_ga(X, tree(Y, Left, X3)) → U1_ga(X, Y, Left, X3, less_in_ga(X, Y))
less_in_ga(0, s(X5)) → less_out_ga(0, s(X5))
less_in_ga(s(X), s(Y)) → U5_ga(X, Y, less_in_ga(X, Y))
U5_ga(X, Y, less_out_ga(X, Y)) → less_out_ga(s(X), s(Y))
U1_ga(X, Y, Left, X3, less_out_ga(X, Y)) → U2_ga(X, Y, Left, X3, in_in_ga(X, Left))
in_in_ga(X, tree(Y, X4, Right)) → U3_ga(X, Y, X4, Right, less_in_ag(Y, X))
less_in_ag(0, s(X5)) → less_out_ag(0, s(X5))
less_in_ag(s(X), s(Y)) → U5_ag(X, Y, less_in_ag(X, Y))
U5_ag(X, Y, less_out_ag(X, Y)) → less_out_ag(s(X), s(Y))
U3_ga(X, Y, X4, Right, less_out_ag(Y, X)) → U4_ga(X, Y, X4, Right, in_in_ga(X, Right))
U4_ga(X, Y, X4, Right, in_out_ga(X, Right)) → in_out_ga(X, tree(Y, X4, Right))
U2_ga(X, Y, Left, X3, in_out_ga(X, Left)) → in_out_ga(X, tree(Y, Left, X3))
Infinitary Constructor Rewriting Termination of PiTRS implies Termination of Prolog
in_in_ga(X, tree(X, X1, X2)) → in_out_ga(X, tree(X, X1, X2))
in_in_ga(X, tree(Y, Left, X3)) → U1_ga(X, Y, Left, X3, less_in_ga(X, Y))
less_in_ga(0, s(X5)) → less_out_ga(0, s(X5))
less_in_ga(s(X), s(Y)) → U5_ga(X, Y, less_in_ga(X, Y))
U5_ga(X, Y, less_out_ga(X, Y)) → less_out_ga(s(X), s(Y))
U1_ga(X, Y, Left, X3, less_out_ga(X, Y)) → U2_ga(X, Y, Left, X3, in_in_ga(X, Left))
in_in_ga(X, tree(Y, X4, Right)) → U3_ga(X, Y, X4, Right, less_in_ag(Y, X))
less_in_ag(0, s(X5)) → less_out_ag(0, s(X5))
less_in_ag(s(X), s(Y)) → U5_ag(X, Y, less_in_ag(X, Y))
U5_ag(X, Y, less_out_ag(X, Y)) → less_out_ag(s(X), s(Y))
U3_ga(X, Y, X4, Right, less_out_ag(Y, X)) → U4_ga(X, Y, X4, Right, in_in_ga(X, Right))
U4_ga(X, Y, X4, Right, in_out_ga(X, Right)) → in_out_ga(X, tree(Y, X4, Right))
U2_ga(X, Y, Left, X3, in_out_ga(X, Left)) → in_out_ga(X, tree(Y, Left, X3))
IN_IN_GA(X, tree(Y, Left, X3)) → U1_GA(X, Y, Left, X3, less_in_ga(X, Y))
IN_IN_GA(X, tree(Y, Left, X3)) → LESS_IN_GA(X, Y)
LESS_IN_GA(s(X), s(Y)) → U5_GA(X, Y, less_in_ga(X, Y))
LESS_IN_GA(s(X), s(Y)) → LESS_IN_GA(X, Y)
U1_GA(X, Y, Left, X3, less_out_ga(X, Y)) → U2_GA(X, Y, Left, X3, in_in_ga(X, Left))
U1_GA(X, Y, Left, X3, less_out_ga(X, Y)) → IN_IN_GA(X, Left)
IN_IN_GA(X, tree(Y, X4, Right)) → U3_GA(X, Y, X4, Right, less_in_ag(Y, X))
IN_IN_GA(X, tree(Y, X4, Right)) → LESS_IN_AG(Y, X)
LESS_IN_AG(s(X), s(Y)) → U5_AG(X, Y, less_in_ag(X, Y))
LESS_IN_AG(s(X), s(Y)) → LESS_IN_AG(X, Y)
U3_GA(X, Y, X4, Right, less_out_ag(Y, X)) → U4_GA(X, Y, X4, Right, in_in_ga(X, Right))
U3_GA(X, Y, X4, Right, less_out_ag(Y, X)) → IN_IN_GA(X, Right)
in_in_ga(X, tree(X, X1, X2)) → in_out_ga(X, tree(X, X1, X2))
in_in_ga(X, tree(Y, Left, X3)) → U1_ga(X, Y, Left, X3, less_in_ga(X, Y))
less_in_ga(0, s(X5)) → less_out_ga(0, s(X5))
less_in_ga(s(X), s(Y)) → U5_ga(X, Y, less_in_ga(X, Y))
U5_ga(X, Y, less_out_ga(X, Y)) → less_out_ga(s(X), s(Y))
U1_ga(X, Y, Left, X3, less_out_ga(X, Y)) → U2_ga(X, Y, Left, X3, in_in_ga(X, Left))
in_in_ga(X, tree(Y, X4, Right)) → U3_ga(X, Y, X4, Right, less_in_ag(Y, X))
less_in_ag(0, s(X5)) → less_out_ag(0, s(X5))
less_in_ag(s(X), s(Y)) → U5_ag(X, Y, less_in_ag(X, Y))
U5_ag(X, Y, less_out_ag(X, Y)) → less_out_ag(s(X), s(Y))
U3_ga(X, Y, X4, Right, less_out_ag(Y, X)) → U4_ga(X, Y, X4, Right, in_in_ga(X, Right))
U4_ga(X, Y, X4, Right, in_out_ga(X, Right)) → in_out_ga(X, tree(Y, X4, Right))
U2_ga(X, Y, Left, X3, in_out_ga(X, Left)) → in_out_ga(X, tree(Y, Left, X3))
IN_IN_GA(X, tree(Y, Left, X3)) → U1_GA(X, Y, Left, X3, less_in_ga(X, Y))
IN_IN_GA(X, tree(Y, Left, X3)) → LESS_IN_GA(X, Y)
LESS_IN_GA(s(X), s(Y)) → U5_GA(X, Y, less_in_ga(X, Y))
LESS_IN_GA(s(X), s(Y)) → LESS_IN_GA(X, Y)
U1_GA(X, Y, Left, X3, less_out_ga(X, Y)) → U2_GA(X, Y, Left, X3, in_in_ga(X, Left))
U1_GA(X, Y, Left, X3, less_out_ga(X, Y)) → IN_IN_GA(X, Left)
IN_IN_GA(X, tree(Y, X4, Right)) → U3_GA(X, Y, X4, Right, less_in_ag(Y, X))
IN_IN_GA(X, tree(Y, X4, Right)) → LESS_IN_AG(Y, X)
LESS_IN_AG(s(X), s(Y)) → U5_AG(X, Y, less_in_ag(X, Y))
LESS_IN_AG(s(X), s(Y)) → LESS_IN_AG(X, Y)
U3_GA(X, Y, X4, Right, less_out_ag(Y, X)) → U4_GA(X, Y, X4, Right, in_in_ga(X, Right))
U3_GA(X, Y, X4, Right, less_out_ag(Y, X)) → IN_IN_GA(X, Right)
in_in_ga(X, tree(X, X1, X2)) → in_out_ga(X, tree(X, X1, X2))
in_in_ga(X, tree(Y, Left, X3)) → U1_ga(X, Y, Left, X3, less_in_ga(X, Y))
less_in_ga(0, s(X5)) → less_out_ga(0, s(X5))
less_in_ga(s(X), s(Y)) → U5_ga(X, Y, less_in_ga(X, Y))
U5_ga(X, Y, less_out_ga(X, Y)) → less_out_ga(s(X), s(Y))
U1_ga(X, Y, Left, X3, less_out_ga(X, Y)) → U2_ga(X, Y, Left, X3, in_in_ga(X, Left))
in_in_ga(X, tree(Y, X4, Right)) → U3_ga(X, Y, X4, Right, less_in_ag(Y, X))
less_in_ag(0, s(X5)) → less_out_ag(0, s(X5))
less_in_ag(s(X), s(Y)) → U5_ag(X, Y, less_in_ag(X, Y))
U5_ag(X, Y, less_out_ag(X, Y)) → less_out_ag(s(X), s(Y))
U3_ga(X, Y, X4, Right, less_out_ag(Y, X)) → U4_ga(X, Y, X4, Right, in_in_ga(X, Right))
U4_ga(X, Y, X4, Right, in_out_ga(X, Right)) → in_out_ga(X, tree(Y, X4, Right))
U2_ga(X, Y, Left, X3, in_out_ga(X, Left)) → in_out_ga(X, tree(Y, Left, X3))
LESS_IN_AG(s(X), s(Y)) → LESS_IN_AG(X, Y)
in_in_ga(X, tree(X, X1, X2)) → in_out_ga(X, tree(X, X1, X2))
in_in_ga(X, tree(Y, Left, X3)) → U1_ga(X, Y, Left, X3, less_in_ga(X, Y))
less_in_ga(0, s(X5)) → less_out_ga(0, s(X5))
less_in_ga(s(X), s(Y)) → U5_ga(X, Y, less_in_ga(X, Y))
U5_ga(X, Y, less_out_ga(X, Y)) → less_out_ga(s(X), s(Y))
U1_ga(X, Y, Left, X3, less_out_ga(X, Y)) → U2_ga(X, Y, Left, X3, in_in_ga(X, Left))
in_in_ga(X, tree(Y, X4, Right)) → U3_ga(X, Y, X4, Right, less_in_ag(Y, X))
less_in_ag(0, s(X5)) → less_out_ag(0, s(X5))
less_in_ag(s(X), s(Y)) → U5_ag(X, Y, less_in_ag(X, Y))
U5_ag(X, Y, less_out_ag(X, Y)) → less_out_ag(s(X), s(Y))
U3_ga(X, Y, X4, Right, less_out_ag(Y, X)) → U4_ga(X, Y, X4, Right, in_in_ga(X, Right))
U4_ga(X, Y, X4, Right, in_out_ga(X, Right)) → in_out_ga(X, tree(Y, X4, Right))
U2_ga(X, Y, Left, X3, in_out_ga(X, Left)) → in_out_ga(X, tree(Y, Left, X3))
LESS_IN_AG(s(X), s(Y)) → LESS_IN_AG(X, Y)
LESS_IN_AG(s(Y)) → LESS_IN_AG(Y)
From the DPs we obtained the following set of size-change graphs:
LESS_IN_GA(s(X), s(Y)) → LESS_IN_GA(X, Y)
in_in_ga(X, tree(X, X1, X2)) → in_out_ga(X, tree(X, X1, X2))
in_in_ga(X, tree(Y, Left, X3)) → U1_ga(X, Y, Left, X3, less_in_ga(X, Y))
less_in_ga(0, s(X5)) → less_out_ga(0, s(X5))
less_in_ga(s(X), s(Y)) → U5_ga(X, Y, less_in_ga(X, Y))
U5_ga(X, Y, less_out_ga(X, Y)) → less_out_ga(s(X), s(Y))
U1_ga(X, Y, Left, X3, less_out_ga(X, Y)) → U2_ga(X, Y, Left, X3, in_in_ga(X, Left))
in_in_ga(X, tree(Y, X4, Right)) → U3_ga(X, Y, X4, Right, less_in_ag(Y, X))
less_in_ag(0, s(X5)) → less_out_ag(0, s(X5))
less_in_ag(s(X), s(Y)) → U5_ag(X, Y, less_in_ag(X, Y))
U5_ag(X, Y, less_out_ag(X, Y)) → less_out_ag(s(X), s(Y))
U3_ga(X, Y, X4, Right, less_out_ag(Y, X)) → U4_ga(X, Y, X4, Right, in_in_ga(X, Right))
U4_ga(X, Y, X4, Right, in_out_ga(X, Right)) → in_out_ga(X, tree(Y, X4, Right))
U2_ga(X, Y, Left, X3, in_out_ga(X, Left)) → in_out_ga(X, tree(Y, Left, X3))
LESS_IN_GA(s(X), s(Y)) → LESS_IN_GA(X, Y)
LESS_IN_GA(s(X)) → LESS_IN_GA(X)
From the DPs we obtained the following set of size-change graphs:
U1_GA(X, Y, Left, X3, less_out_ga(X, Y)) → IN_IN_GA(X, Left)
IN_IN_GA(X, tree(Y, Left, X3)) → U1_GA(X, Y, Left, X3, less_in_ga(X, Y))
IN_IN_GA(X, tree(Y, X4, Right)) → U3_GA(X, Y, X4, Right, less_in_ag(Y, X))
U3_GA(X, Y, X4, Right, less_out_ag(Y, X)) → IN_IN_GA(X, Right)
in_in_ga(X, tree(X, X1, X2)) → in_out_ga(X, tree(X, X1, X2))
in_in_ga(X, tree(Y, Left, X3)) → U1_ga(X, Y, Left, X3, less_in_ga(X, Y))
less_in_ga(0, s(X5)) → less_out_ga(0, s(X5))
less_in_ga(s(X), s(Y)) → U5_ga(X, Y, less_in_ga(X, Y))
U5_ga(X, Y, less_out_ga(X, Y)) → less_out_ga(s(X), s(Y))
U1_ga(X, Y, Left, X3, less_out_ga(X, Y)) → U2_ga(X, Y, Left, X3, in_in_ga(X, Left))
in_in_ga(X, tree(Y, X4, Right)) → U3_ga(X, Y, X4, Right, less_in_ag(Y, X))
less_in_ag(0, s(X5)) → less_out_ag(0, s(X5))
less_in_ag(s(X), s(Y)) → U5_ag(X, Y, less_in_ag(X, Y))
U5_ag(X, Y, less_out_ag(X, Y)) → less_out_ag(s(X), s(Y))
U3_ga(X, Y, X4, Right, less_out_ag(Y, X)) → U4_ga(X, Y, X4, Right, in_in_ga(X, Right))
U4_ga(X, Y, X4, Right, in_out_ga(X, Right)) → in_out_ga(X, tree(Y, X4, Right))
U2_ga(X, Y, Left, X3, in_out_ga(X, Left)) → in_out_ga(X, tree(Y, Left, X3))
U1_GA(X, Y, Left, X3, less_out_ga(X, Y)) → IN_IN_GA(X, Left)
IN_IN_GA(X, tree(Y, Left, X3)) → U1_GA(X, Y, Left, X3, less_in_ga(X, Y))
IN_IN_GA(X, tree(Y, X4, Right)) → U3_GA(X, Y, X4, Right, less_in_ag(Y, X))
U3_GA(X, Y, X4, Right, less_out_ag(Y, X)) → IN_IN_GA(X, Right)
less_in_ga(0, s(X5)) → less_out_ga(0, s(X5))
less_in_ga(s(X), s(Y)) → U5_ga(X, Y, less_in_ga(X, Y))
less_in_ag(0, s(X5)) → less_out_ag(0, s(X5))
less_in_ag(s(X), s(Y)) → U5_ag(X, Y, less_in_ag(X, Y))
U5_ga(X, Y, less_out_ga(X, Y)) → less_out_ga(s(X), s(Y))
U5_ag(X, Y, less_out_ag(X, Y)) → less_out_ag(s(X), s(Y))
U1_GA(X, less_out_ga(X)) → IN_IN_GA(X)
IN_IN_GA(X) → U1_GA(X, less_in_ga(X))
IN_IN_GA(X) → U3_GA(X, less_in_ag(X))
U3_GA(X, less_out_ag(Y, X)) → IN_IN_GA(X)
less_in_ga(0) → less_out_ga(0)
less_in_ga(s(X)) → U5_ga(X, less_in_ga(X))
less_in_ag(s(X5)) → less_out_ag(0, s(X5))
less_in_ag(s(Y)) → U5_ag(Y, less_in_ag(Y))
U5_ga(X, less_out_ga(X)) → less_out_ga(s(X))
U5_ag(Y, less_out_ag(X, Y)) → less_out_ag(s(X), s(Y))
less_in_ga(x0)
less_in_ag(x0)
U5_ga(x0, x1)
U5_ag(x0, x1)
IN_IN_GA(0) → U1_GA(0, less_out_ga(0))
IN_IN_GA(s(x0)) → U1_GA(s(x0), U5_ga(x0, less_in_ga(x0)))
U1_GA(X, less_out_ga(X)) → IN_IN_GA(X)
IN_IN_GA(X) → U3_GA(X, less_in_ag(X))
U3_GA(X, less_out_ag(Y, X)) → IN_IN_GA(X)
IN_IN_GA(0) → U1_GA(0, less_out_ga(0))
IN_IN_GA(s(x0)) → U1_GA(s(x0), U5_ga(x0, less_in_ga(x0)))
less_in_ga(0) → less_out_ga(0)
less_in_ga(s(X)) → U5_ga(X, less_in_ga(X))
less_in_ag(s(X5)) → less_out_ag(0, s(X5))
less_in_ag(s(Y)) → U5_ag(Y, less_in_ag(Y))
U5_ga(X, less_out_ga(X)) → less_out_ga(s(X))
U5_ag(Y, less_out_ag(X, Y)) → less_out_ag(s(X), s(Y))
less_in_ga(x0)
less_in_ag(x0)
U5_ga(x0, x1)
U5_ag(x0, x1)
IN_IN_GA(s(x0)) → U3_GA(s(x0), less_out_ag(0, s(x0)))
IN_IN_GA(s(x0)) → U3_GA(s(x0), U5_ag(x0, less_in_ag(x0)))
U1_GA(X, less_out_ga(X)) → IN_IN_GA(X)
U3_GA(X, less_out_ag(Y, X)) → IN_IN_GA(X)
IN_IN_GA(0) → U1_GA(0, less_out_ga(0))
IN_IN_GA(s(x0)) → U1_GA(s(x0), U5_ga(x0, less_in_ga(x0)))
IN_IN_GA(s(x0)) → U3_GA(s(x0), less_out_ag(0, s(x0)))
IN_IN_GA(s(x0)) → U3_GA(s(x0), U5_ag(x0, less_in_ag(x0)))
less_in_ga(0) → less_out_ga(0)
less_in_ga(s(X)) → U5_ga(X, less_in_ga(X))
less_in_ag(s(X5)) → less_out_ag(0, s(X5))
less_in_ag(s(Y)) → U5_ag(Y, less_in_ag(Y))
U5_ga(X, less_out_ga(X)) → less_out_ga(s(X))
U5_ag(Y, less_out_ag(X, Y)) → less_out_ag(s(X), s(Y))
less_in_ga(x0)
less_in_ag(x0)
U5_ga(x0, x1)
U5_ag(x0, x1)
U1_GA(0, less_out_ga(0)) → IN_IN_GA(0)
U1_GA(s(z0), less_out_ga(s(z0))) → IN_IN_GA(s(z0))
U3_GA(X, less_out_ag(Y, X)) → IN_IN_GA(X)
IN_IN_GA(0) → U1_GA(0, less_out_ga(0))
IN_IN_GA(s(x0)) → U1_GA(s(x0), U5_ga(x0, less_in_ga(x0)))
IN_IN_GA(s(x0)) → U3_GA(s(x0), less_out_ag(0, s(x0)))
IN_IN_GA(s(x0)) → U3_GA(s(x0), U5_ag(x0, less_in_ag(x0)))
U1_GA(0, less_out_ga(0)) → IN_IN_GA(0)
U1_GA(s(z0), less_out_ga(s(z0))) → IN_IN_GA(s(z0))
less_in_ga(0) → less_out_ga(0)
less_in_ga(s(X)) → U5_ga(X, less_in_ga(X))
less_in_ag(s(X5)) → less_out_ag(0, s(X5))
less_in_ag(s(Y)) → U5_ag(Y, less_in_ag(Y))
U5_ga(X, less_out_ga(X)) → less_out_ga(s(X))
U5_ag(Y, less_out_ag(X, Y)) → less_out_ag(s(X), s(Y))
less_in_ga(x0)
less_in_ag(x0)
U5_ga(x0, x1)
U5_ag(x0, x1)
U1_GA(0, less_out_ga(0)) → IN_IN_GA(0)
IN_IN_GA(0) → U1_GA(0, less_out_ga(0))
less_in_ga(0) → less_out_ga(0)
less_in_ga(s(X)) → U5_ga(X, less_in_ga(X))
less_in_ag(s(X5)) → less_out_ag(0, s(X5))
less_in_ag(s(Y)) → U5_ag(Y, less_in_ag(Y))
U5_ga(X, less_out_ga(X)) → less_out_ga(s(X))
U5_ag(Y, less_out_ag(X, Y)) → less_out_ag(s(X), s(Y))
less_in_ga(x0)
less_in_ag(x0)
U5_ga(x0, x1)
U5_ag(x0, x1)
U1_GA(0, less_out_ga(0)) → IN_IN_GA(0)
IN_IN_GA(0) → U1_GA(0, less_out_ga(0))
less_in_ga(x0)
less_in_ag(x0)
U5_ga(x0, x1)
U5_ag(x0, x1)
less_in_ga(x0)
less_in_ag(x0)
U5_ga(x0, x1)
U5_ag(x0, x1)
U1_GA(0, less_out_ga(0)) → IN_IN_GA(0)
IN_IN_GA(0) → U1_GA(0, less_out_ga(0))
IN_IN_GA(s(x0)) → U1_GA(s(x0), U5_ga(x0, less_in_ga(x0)))
U1_GA(s(z0), less_out_ga(s(z0))) → IN_IN_GA(s(z0))
IN_IN_GA(s(x0)) → U3_GA(s(x0), less_out_ag(0, s(x0)))
U3_GA(X, less_out_ag(Y, X)) → IN_IN_GA(X)
IN_IN_GA(s(x0)) → U3_GA(s(x0), U5_ag(x0, less_in_ag(x0)))
less_in_ga(0) → less_out_ga(0)
less_in_ga(s(X)) → U5_ga(X, less_in_ga(X))
less_in_ag(s(X5)) → less_out_ag(0, s(X5))
less_in_ag(s(Y)) → U5_ag(Y, less_in_ag(Y))
U5_ga(X, less_out_ga(X)) → less_out_ga(s(X))
U5_ag(Y, less_out_ag(X, Y)) → less_out_ag(s(X), s(Y))
less_in_ga(x0)
less_in_ag(x0)
U5_ga(x0, x1)
U5_ag(x0, x1)
U3_GA(s(z0), less_out_ag(0, s(z0))) → IN_IN_GA(s(z0))
U3_GA(s(z0), less_out_ag(x1, s(z0))) → IN_IN_GA(s(z0))
IN_IN_GA(s(x0)) → U1_GA(s(x0), U5_ga(x0, less_in_ga(x0)))
U1_GA(s(z0), less_out_ga(s(z0))) → IN_IN_GA(s(z0))
IN_IN_GA(s(x0)) → U3_GA(s(x0), less_out_ag(0, s(x0)))
IN_IN_GA(s(x0)) → U3_GA(s(x0), U5_ag(x0, less_in_ag(x0)))
U3_GA(s(z0), less_out_ag(0, s(z0))) → IN_IN_GA(s(z0))
U3_GA(s(z0), less_out_ag(x1, s(z0))) → IN_IN_GA(s(z0))
less_in_ga(0) → less_out_ga(0)
less_in_ga(s(X)) → U5_ga(X, less_in_ga(X))
less_in_ag(s(X5)) → less_out_ag(0, s(X5))
less_in_ag(s(Y)) → U5_ag(Y, less_in_ag(Y))
U5_ga(X, less_out_ga(X)) → less_out_ga(s(X))
U5_ag(Y, less_out_ag(X, Y)) → less_out_ag(s(X), s(Y))
less_in_ga(x0)
less_in_ag(x0)
U5_ga(x0, x1)
U5_ag(x0, x1)