↳ PROLOG
↳ PrologToPiTRSProof
With regard to the inferred argument filtering the predicates were used in the following modes:
log22: (b,f)
log24: (b,b,b,f)
Transforming PROLOG into the following Term Rewriting System:
Pi-finite rewrite system:
The TRS R consists of the following rules:
log2_2_in_ga2(X, Y) -> if_log2_2_in_1_ga3(X, Y, log2_4_in_ggga4(X, 0_0, s_11(0_0), Y))
log2_4_in_ggga4(s_11(s_11(X)), Half, Acc, Y) -> if_log2_4_in_1_ggga5(X, Half, Acc, Y, log2_4_in_ggga4(X, s_11(Half), Acc, Y))
log2_4_in_ggga4(X, s_11(s_11(Half)), Acc, Y) -> if_log2_4_in_2_ggga5(X, Half, Acc, Y, small_1_in_g1(X))
small_1_in_g1(0_0) -> small_1_out_g1(0_0)
small_1_in_g1(s_11(0_0)) -> small_1_out_g1(s_11(0_0))
if_log2_4_in_2_ggga5(X, Half, Acc, Y, small_1_out_g1(X)) -> if_log2_4_in_3_ggga5(X, Half, Acc, Y, log2_4_in_ggga4(Half, s_11(0_0), s_11(Acc), Y))
log2_4_in_ggga4(X, Half, Y, Y) -> if_log2_4_in_4_ggga4(X, Half, Y, small_1_in_g1(X))
if_log2_4_in_4_ggga4(X, Half, Y, small_1_out_g1(X)) -> if_log2_4_in_5_ggga4(X, Half, Y, small_1_in_g1(Half))
if_log2_4_in_5_ggga4(X, Half, Y, small_1_out_g1(Half)) -> log2_4_out_ggga4(X, Half, Y, Y)
if_log2_4_in_3_ggga5(X, Half, Acc, Y, log2_4_out_ggga4(Half, s_11(0_0), s_11(Acc), Y)) -> log2_4_out_ggga4(X, s_11(s_11(Half)), Acc, Y)
if_log2_4_in_1_ggga5(X, Half, Acc, Y, log2_4_out_ggga4(X, s_11(Half), Acc, Y)) -> log2_4_out_ggga4(s_11(s_11(X)), Half, Acc, Y)
if_log2_2_in_1_ga3(X, Y, log2_4_out_ggga4(X, 0_0, s_11(0_0), Y)) -> log2_2_out_ga2(X, Y)
Infinitary Constructor Rewriting Termination of PiTRS implies Termination of PROLOG
↳ PROLOG
↳ PrologToPiTRSProof
↳ PiTRS
↳ DependencyPairsProof
log2_2_in_ga2(X, Y) -> if_log2_2_in_1_ga3(X, Y, log2_4_in_ggga4(X, 0_0, s_11(0_0), Y))
log2_4_in_ggga4(s_11(s_11(X)), Half, Acc, Y) -> if_log2_4_in_1_ggga5(X, Half, Acc, Y, log2_4_in_ggga4(X, s_11(Half), Acc, Y))
log2_4_in_ggga4(X, s_11(s_11(Half)), Acc, Y) -> if_log2_4_in_2_ggga5(X, Half, Acc, Y, small_1_in_g1(X))
small_1_in_g1(0_0) -> small_1_out_g1(0_0)
small_1_in_g1(s_11(0_0)) -> small_1_out_g1(s_11(0_0))
if_log2_4_in_2_ggga5(X, Half, Acc, Y, small_1_out_g1(X)) -> if_log2_4_in_3_ggga5(X, Half, Acc, Y, log2_4_in_ggga4(Half, s_11(0_0), s_11(Acc), Y))
log2_4_in_ggga4(X, Half, Y, Y) -> if_log2_4_in_4_ggga4(X, Half, Y, small_1_in_g1(X))
if_log2_4_in_4_ggga4(X, Half, Y, small_1_out_g1(X)) -> if_log2_4_in_5_ggga4(X, Half, Y, small_1_in_g1(Half))
if_log2_4_in_5_ggga4(X, Half, Y, small_1_out_g1(Half)) -> log2_4_out_ggga4(X, Half, Y, Y)
if_log2_4_in_3_ggga5(X, Half, Acc, Y, log2_4_out_ggga4(Half, s_11(0_0), s_11(Acc), Y)) -> log2_4_out_ggga4(X, s_11(s_11(Half)), Acc, Y)
if_log2_4_in_1_ggga5(X, Half, Acc, Y, log2_4_out_ggga4(X, s_11(Half), Acc, Y)) -> log2_4_out_ggga4(s_11(s_11(X)), Half, Acc, Y)
if_log2_2_in_1_ga3(X, Y, log2_4_out_ggga4(X, 0_0, s_11(0_0), Y)) -> log2_2_out_ga2(X, Y)
LOG2_2_IN_GA2(X, Y) -> IF_LOG2_2_IN_1_GA3(X, Y, log2_4_in_ggga4(X, 0_0, s_11(0_0), Y))
LOG2_2_IN_GA2(X, Y) -> LOG2_4_IN_GGGA4(X, 0_0, s_11(0_0), Y)
LOG2_4_IN_GGGA4(s_11(s_11(X)), Half, Acc, Y) -> IF_LOG2_4_IN_1_GGGA5(X, Half, Acc, Y, log2_4_in_ggga4(X, s_11(Half), Acc, Y))
LOG2_4_IN_GGGA4(s_11(s_11(X)), Half, Acc, Y) -> LOG2_4_IN_GGGA4(X, s_11(Half), Acc, Y)
LOG2_4_IN_GGGA4(X, s_11(s_11(Half)), Acc, Y) -> IF_LOG2_4_IN_2_GGGA5(X, Half, Acc, Y, small_1_in_g1(X))
LOG2_4_IN_GGGA4(X, s_11(s_11(Half)), Acc, Y) -> SMALL_1_IN_G1(X)
IF_LOG2_4_IN_2_GGGA5(X, Half, Acc, Y, small_1_out_g1(X)) -> IF_LOG2_4_IN_3_GGGA5(X, Half, Acc, Y, log2_4_in_ggga4(Half, s_11(0_0), s_11(Acc), Y))
IF_LOG2_4_IN_2_GGGA5(X, Half, Acc, Y, small_1_out_g1(X)) -> LOG2_4_IN_GGGA4(Half, s_11(0_0), s_11(Acc), Y)
LOG2_4_IN_GGGA4(X, Half, Y, Y) -> IF_LOG2_4_IN_4_GGGA4(X, Half, Y, small_1_in_g1(X))
LOG2_4_IN_GGGA4(X, Half, Y, Y) -> SMALL_1_IN_G1(X)
IF_LOG2_4_IN_4_GGGA4(X, Half, Y, small_1_out_g1(X)) -> IF_LOG2_4_IN_5_GGGA4(X, Half, Y, small_1_in_g1(Half))
IF_LOG2_4_IN_4_GGGA4(X, Half, Y, small_1_out_g1(X)) -> SMALL_1_IN_G1(Half)
log2_2_in_ga2(X, Y) -> if_log2_2_in_1_ga3(X, Y, log2_4_in_ggga4(X, 0_0, s_11(0_0), Y))
log2_4_in_ggga4(s_11(s_11(X)), Half, Acc, Y) -> if_log2_4_in_1_ggga5(X, Half, Acc, Y, log2_4_in_ggga4(X, s_11(Half), Acc, Y))
log2_4_in_ggga4(X, s_11(s_11(Half)), Acc, Y) -> if_log2_4_in_2_ggga5(X, Half, Acc, Y, small_1_in_g1(X))
small_1_in_g1(0_0) -> small_1_out_g1(0_0)
small_1_in_g1(s_11(0_0)) -> small_1_out_g1(s_11(0_0))
if_log2_4_in_2_ggga5(X, Half, Acc, Y, small_1_out_g1(X)) -> if_log2_4_in_3_ggga5(X, Half, Acc, Y, log2_4_in_ggga4(Half, s_11(0_0), s_11(Acc), Y))
log2_4_in_ggga4(X, Half, Y, Y) -> if_log2_4_in_4_ggga4(X, Half, Y, small_1_in_g1(X))
if_log2_4_in_4_ggga4(X, Half, Y, small_1_out_g1(X)) -> if_log2_4_in_5_ggga4(X, Half, Y, small_1_in_g1(Half))
if_log2_4_in_5_ggga4(X, Half, Y, small_1_out_g1(Half)) -> log2_4_out_ggga4(X, Half, Y, Y)
if_log2_4_in_3_ggga5(X, Half, Acc, Y, log2_4_out_ggga4(Half, s_11(0_0), s_11(Acc), Y)) -> log2_4_out_ggga4(X, s_11(s_11(Half)), Acc, Y)
if_log2_4_in_1_ggga5(X, Half, Acc, Y, log2_4_out_ggga4(X, s_11(Half), Acc, Y)) -> log2_4_out_ggga4(s_11(s_11(X)), Half, Acc, Y)
if_log2_2_in_1_ga3(X, Y, log2_4_out_ggga4(X, 0_0, s_11(0_0), Y)) -> log2_2_out_ga2(X, Y)
↳ PROLOG
↳ PrologToPiTRSProof
↳ PiTRS
↳ DependencyPairsProof
↳ PiDP
↳ DependencyGraphProof
LOG2_2_IN_GA2(X, Y) -> IF_LOG2_2_IN_1_GA3(X, Y, log2_4_in_ggga4(X, 0_0, s_11(0_0), Y))
LOG2_2_IN_GA2(X, Y) -> LOG2_4_IN_GGGA4(X, 0_0, s_11(0_0), Y)
LOG2_4_IN_GGGA4(s_11(s_11(X)), Half, Acc, Y) -> IF_LOG2_4_IN_1_GGGA5(X, Half, Acc, Y, log2_4_in_ggga4(X, s_11(Half), Acc, Y))
LOG2_4_IN_GGGA4(s_11(s_11(X)), Half, Acc, Y) -> LOG2_4_IN_GGGA4(X, s_11(Half), Acc, Y)
LOG2_4_IN_GGGA4(X, s_11(s_11(Half)), Acc, Y) -> IF_LOG2_4_IN_2_GGGA5(X, Half, Acc, Y, small_1_in_g1(X))
LOG2_4_IN_GGGA4(X, s_11(s_11(Half)), Acc, Y) -> SMALL_1_IN_G1(X)
IF_LOG2_4_IN_2_GGGA5(X, Half, Acc, Y, small_1_out_g1(X)) -> IF_LOG2_4_IN_3_GGGA5(X, Half, Acc, Y, log2_4_in_ggga4(Half, s_11(0_0), s_11(Acc), Y))
IF_LOG2_4_IN_2_GGGA5(X, Half, Acc, Y, small_1_out_g1(X)) -> LOG2_4_IN_GGGA4(Half, s_11(0_0), s_11(Acc), Y)
LOG2_4_IN_GGGA4(X, Half, Y, Y) -> IF_LOG2_4_IN_4_GGGA4(X, Half, Y, small_1_in_g1(X))
LOG2_4_IN_GGGA4(X, Half, Y, Y) -> SMALL_1_IN_G1(X)
IF_LOG2_4_IN_4_GGGA4(X, Half, Y, small_1_out_g1(X)) -> IF_LOG2_4_IN_5_GGGA4(X, Half, Y, small_1_in_g1(Half))
IF_LOG2_4_IN_4_GGGA4(X, Half, Y, small_1_out_g1(X)) -> SMALL_1_IN_G1(Half)
log2_2_in_ga2(X, Y) -> if_log2_2_in_1_ga3(X, Y, log2_4_in_ggga4(X, 0_0, s_11(0_0), Y))
log2_4_in_ggga4(s_11(s_11(X)), Half, Acc, Y) -> if_log2_4_in_1_ggga5(X, Half, Acc, Y, log2_4_in_ggga4(X, s_11(Half), Acc, Y))
log2_4_in_ggga4(X, s_11(s_11(Half)), Acc, Y) -> if_log2_4_in_2_ggga5(X, Half, Acc, Y, small_1_in_g1(X))
small_1_in_g1(0_0) -> small_1_out_g1(0_0)
small_1_in_g1(s_11(0_0)) -> small_1_out_g1(s_11(0_0))
if_log2_4_in_2_ggga5(X, Half, Acc, Y, small_1_out_g1(X)) -> if_log2_4_in_3_ggga5(X, Half, Acc, Y, log2_4_in_ggga4(Half, s_11(0_0), s_11(Acc), Y))
log2_4_in_ggga4(X, Half, Y, Y) -> if_log2_4_in_4_ggga4(X, Half, Y, small_1_in_g1(X))
if_log2_4_in_4_ggga4(X, Half, Y, small_1_out_g1(X)) -> if_log2_4_in_5_ggga4(X, Half, Y, small_1_in_g1(Half))
if_log2_4_in_5_ggga4(X, Half, Y, small_1_out_g1(Half)) -> log2_4_out_ggga4(X, Half, Y, Y)
if_log2_4_in_3_ggga5(X, Half, Acc, Y, log2_4_out_ggga4(Half, s_11(0_0), s_11(Acc), Y)) -> log2_4_out_ggga4(X, s_11(s_11(Half)), Acc, Y)
if_log2_4_in_1_ggga5(X, Half, Acc, Y, log2_4_out_ggga4(X, s_11(Half), Acc, Y)) -> log2_4_out_ggga4(s_11(s_11(X)), Half, Acc, Y)
if_log2_2_in_1_ga3(X, Y, log2_4_out_ggga4(X, 0_0, s_11(0_0), Y)) -> log2_2_out_ga2(X, Y)
↳ PROLOG
↳ PrologToPiTRSProof
↳ PiTRS
↳ DependencyPairsProof
↳ PiDP
↳ DependencyGraphProof
↳ PiDP
↳ UsableRulesProof
IF_LOG2_4_IN_2_GGGA5(X, Half, Acc, Y, small_1_out_g1(X)) -> LOG2_4_IN_GGGA4(Half, s_11(0_0), s_11(Acc), Y)
LOG2_4_IN_GGGA4(X, s_11(s_11(Half)), Acc, Y) -> IF_LOG2_4_IN_2_GGGA5(X, Half, Acc, Y, small_1_in_g1(X))
LOG2_4_IN_GGGA4(s_11(s_11(X)), Half, Acc, Y) -> LOG2_4_IN_GGGA4(X, s_11(Half), Acc, Y)
log2_2_in_ga2(X, Y) -> if_log2_2_in_1_ga3(X, Y, log2_4_in_ggga4(X, 0_0, s_11(0_0), Y))
log2_4_in_ggga4(s_11(s_11(X)), Half, Acc, Y) -> if_log2_4_in_1_ggga5(X, Half, Acc, Y, log2_4_in_ggga4(X, s_11(Half), Acc, Y))
log2_4_in_ggga4(X, s_11(s_11(Half)), Acc, Y) -> if_log2_4_in_2_ggga5(X, Half, Acc, Y, small_1_in_g1(X))
small_1_in_g1(0_0) -> small_1_out_g1(0_0)
small_1_in_g1(s_11(0_0)) -> small_1_out_g1(s_11(0_0))
if_log2_4_in_2_ggga5(X, Half, Acc, Y, small_1_out_g1(X)) -> if_log2_4_in_3_ggga5(X, Half, Acc, Y, log2_4_in_ggga4(Half, s_11(0_0), s_11(Acc), Y))
log2_4_in_ggga4(X, Half, Y, Y) -> if_log2_4_in_4_ggga4(X, Half, Y, small_1_in_g1(X))
if_log2_4_in_4_ggga4(X, Half, Y, small_1_out_g1(X)) -> if_log2_4_in_5_ggga4(X, Half, Y, small_1_in_g1(Half))
if_log2_4_in_5_ggga4(X, Half, Y, small_1_out_g1(Half)) -> log2_4_out_ggga4(X, Half, Y, Y)
if_log2_4_in_3_ggga5(X, Half, Acc, Y, log2_4_out_ggga4(Half, s_11(0_0), s_11(Acc), Y)) -> log2_4_out_ggga4(X, s_11(s_11(Half)), Acc, Y)
if_log2_4_in_1_ggga5(X, Half, Acc, Y, log2_4_out_ggga4(X, s_11(Half), Acc, Y)) -> log2_4_out_ggga4(s_11(s_11(X)), Half, Acc, Y)
if_log2_2_in_1_ga3(X, Y, log2_4_out_ggga4(X, 0_0, s_11(0_0), Y)) -> log2_2_out_ga2(X, Y)
↳ PROLOG
↳ PrologToPiTRSProof
↳ PiTRS
↳ DependencyPairsProof
↳ PiDP
↳ DependencyGraphProof
↳ PiDP
↳ UsableRulesProof
↳ PiDP
↳ PiDPToQDPProof
IF_LOG2_4_IN_2_GGGA5(X, Half, Acc, Y, small_1_out_g1(X)) -> LOG2_4_IN_GGGA4(Half, s_11(0_0), s_11(Acc), Y)
LOG2_4_IN_GGGA4(X, s_11(s_11(Half)), Acc, Y) -> IF_LOG2_4_IN_2_GGGA5(X, Half, Acc, Y, small_1_in_g1(X))
LOG2_4_IN_GGGA4(s_11(s_11(X)), Half, Acc, Y) -> LOG2_4_IN_GGGA4(X, s_11(Half), Acc, Y)
small_1_in_g1(0_0) -> small_1_out_g1(0_0)
small_1_in_g1(s_11(0_0)) -> small_1_out_g1(s_11(0_0))
↳ PROLOG
↳ PrologToPiTRSProof
↳ PiTRS
↳ DependencyPairsProof
↳ PiDP
↳ DependencyGraphProof
↳ PiDP
↳ UsableRulesProof
↳ PiDP
↳ PiDPToQDPProof
↳ QDP
↳ RuleRemovalProof
IF_LOG2_4_IN_2_GGGA3(Half, Acc, small_1_out_g) -> LOG2_4_IN_GGGA3(Half, s_11(0_0), s_11(Acc))
LOG2_4_IN_GGGA3(X, s_11(s_11(Half)), Acc) -> IF_LOG2_4_IN_2_GGGA3(Half, Acc, small_1_in_g1(X))
LOG2_4_IN_GGGA3(s_11(s_11(X)), Half, Acc) -> LOG2_4_IN_GGGA3(X, s_11(Half), Acc)
small_1_in_g1(0_0) -> small_1_out_g
small_1_in_g1(s_11(0_0)) -> small_1_out_g
small_1_in_g1(x0)
small_1_in_g1(0_0) -> small_1_out_g
small_1_in_g1(s_11(0_0)) -> small_1_out_g
POL(small_1_in_g1(x1)) = 2 + x1
POL(0_0) = 0
POL(small_1_out_g) = 1
POL(IF_LOG2_4_IN_2_GGGA3(x1, x2, x3)) = 2 + x1 + x2 + x3
POL(s_11(x1)) = 1 + x1
POL(LOG2_4_IN_GGGA3(x1, x2, x3)) = x1 + 2·x2 + x3
↳ PROLOG
↳ PrologToPiTRSProof
↳ PiTRS
↳ DependencyPairsProof
↳ PiDP
↳ DependencyGraphProof
↳ PiDP
↳ UsableRulesProof
↳ PiDP
↳ PiDPToQDPProof
↳ QDP
↳ RuleRemovalProof
↳ QDP
↳ DependencyGraphProof
IF_LOG2_4_IN_2_GGGA3(Half, Acc, small_1_out_g) -> LOG2_4_IN_GGGA3(Half, s_11(0_0), s_11(Acc))
LOG2_4_IN_GGGA3(X, s_11(s_11(Half)), Acc) -> IF_LOG2_4_IN_2_GGGA3(Half, Acc, small_1_in_g1(X))
LOG2_4_IN_GGGA3(s_11(s_11(X)), Half, Acc) -> LOG2_4_IN_GGGA3(X, s_11(Half), Acc)
small_1_in_g1(x0)
↳ PROLOG
↳ PrologToPiTRSProof
↳ PiTRS
↳ DependencyPairsProof
↳ PiDP
↳ DependencyGraphProof
↳ PiDP
↳ UsableRulesProof
↳ PiDP
↳ PiDPToQDPProof
↳ QDP
↳ RuleRemovalProof
↳ QDP
↳ DependencyGraphProof
↳ QDP
↳ QDPSizeChangeProof
LOG2_4_IN_GGGA3(s_11(s_11(X)), Half, Acc) -> LOG2_4_IN_GGGA3(X, s_11(Half), Acc)
small_1_in_g1(x0)
From the DPs we obtained the following set of size-change graphs: