↳ PROLOG
↳ PrologToPiTRSProof
With regard to the inferred argument filtering the predicates were used in the following modes:
ordered1: (b)
less2: (b,b)
Transforming PROLOG into the following Term Rewriting System:
Pi-finite rewrite system:
The TRS R consists of the following rules:
ordered_1_in_g1([]_0) -> ordered_1_out_g1([]_0)
ordered_1_in_g1(._22(underscore, []_0)) -> ordered_1_out_g1(._22(underscore, []_0))
ordered_1_in_g1(._22(X, ._22(Y, Xs))) -> if_ordered_1_in_1_g4(X, Y, Xs, less_2_in_gg2(X, s_11(Y)))
less_2_in_gg2(0_0, s_11(underscore1)) -> less_2_out_gg2(0_0, s_11(underscore1))
less_2_in_gg2(s_11(X), s_11(Y)) -> if_less_2_in_1_gg3(X, Y, less_2_in_gg2(X, Y))
if_less_2_in_1_gg3(X, Y, less_2_out_gg2(X, Y)) -> less_2_out_gg2(s_11(X), s_11(Y))
if_ordered_1_in_1_g4(X, Y, Xs, less_2_out_gg2(X, s_11(Y))) -> if_ordered_1_in_2_g4(X, Y, Xs, ordered_1_in_g1(._22(Y, Xs)))
if_ordered_1_in_2_g4(X, Y, Xs, ordered_1_out_g1(._22(Y, Xs))) -> ordered_1_out_g1(._22(X, ._22(Y, Xs)))
Infinitary Constructor Rewriting Termination of PiTRS implies Termination of PROLOG
↳ PROLOG
↳ PrologToPiTRSProof
↳ PiTRS
↳ DependencyPairsProof
ordered_1_in_g1([]_0) -> ordered_1_out_g1([]_0)
ordered_1_in_g1(._22(underscore, []_0)) -> ordered_1_out_g1(._22(underscore, []_0))
ordered_1_in_g1(._22(X, ._22(Y, Xs))) -> if_ordered_1_in_1_g4(X, Y, Xs, less_2_in_gg2(X, s_11(Y)))
less_2_in_gg2(0_0, s_11(underscore1)) -> less_2_out_gg2(0_0, s_11(underscore1))
less_2_in_gg2(s_11(X), s_11(Y)) -> if_less_2_in_1_gg3(X, Y, less_2_in_gg2(X, Y))
if_less_2_in_1_gg3(X, Y, less_2_out_gg2(X, Y)) -> less_2_out_gg2(s_11(X), s_11(Y))
if_ordered_1_in_1_g4(X, Y, Xs, less_2_out_gg2(X, s_11(Y))) -> if_ordered_1_in_2_g4(X, Y, Xs, ordered_1_in_g1(._22(Y, Xs)))
if_ordered_1_in_2_g4(X, Y, Xs, ordered_1_out_g1(._22(Y, Xs))) -> ordered_1_out_g1(._22(X, ._22(Y, Xs)))
ORDERED_1_IN_G1(._22(X, ._22(Y, Xs))) -> IF_ORDERED_1_IN_1_G4(X, Y, Xs, less_2_in_gg2(X, s_11(Y)))
ORDERED_1_IN_G1(._22(X, ._22(Y, Xs))) -> LESS_2_IN_GG2(X, s_11(Y))
LESS_2_IN_GG2(s_11(X), s_11(Y)) -> IF_LESS_2_IN_1_GG3(X, Y, less_2_in_gg2(X, Y))
LESS_2_IN_GG2(s_11(X), s_11(Y)) -> LESS_2_IN_GG2(X, Y)
IF_ORDERED_1_IN_1_G4(X, Y, Xs, less_2_out_gg2(X, s_11(Y))) -> IF_ORDERED_1_IN_2_G4(X, Y, Xs, ordered_1_in_g1(._22(Y, Xs)))
IF_ORDERED_1_IN_1_G4(X, Y, Xs, less_2_out_gg2(X, s_11(Y))) -> ORDERED_1_IN_G1(._22(Y, Xs))
ordered_1_in_g1([]_0) -> ordered_1_out_g1([]_0)
ordered_1_in_g1(._22(underscore, []_0)) -> ordered_1_out_g1(._22(underscore, []_0))
ordered_1_in_g1(._22(X, ._22(Y, Xs))) -> if_ordered_1_in_1_g4(X, Y, Xs, less_2_in_gg2(X, s_11(Y)))
less_2_in_gg2(0_0, s_11(underscore1)) -> less_2_out_gg2(0_0, s_11(underscore1))
less_2_in_gg2(s_11(X), s_11(Y)) -> if_less_2_in_1_gg3(X, Y, less_2_in_gg2(X, Y))
if_less_2_in_1_gg3(X, Y, less_2_out_gg2(X, Y)) -> less_2_out_gg2(s_11(X), s_11(Y))
if_ordered_1_in_1_g4(X, Y, Xs, less_2_out_gg2(X, s_11(Y))) -> if_ordered_1_in_2_g4(X, Y, Xs, ordered_1_in_g1(._22(Y, Xs)))
if_ordered_1_in_2_g4(X, Y, Xs, ordered_1_out_g1(._22(Y, Xs))) -> ordered_1_out_g1(._22(X, ._22(Y, Xs)))
↳ PROLOG
↳ PrologToPiTRSProof
↳ PiTRS
↳ DependencyPairsProof
↳ PiDP
↳ DependencyGraphProof
ORDERED_1_IN_G1(._22(X, ._22(Y, Xs))) -> IF_ORDERED_1_IN_1_G4(X, Y, Xs, less_2_in_gg2(X, s_11(Y)))
ORDERED_1_IN_G1(._22(X, ._22(Y, Xs))) -> LESS_2_IN_GG2(X, s_11(Y))
LESS_2_IN_GG2(s_11(X), s_11(Y)) -> IF_LESS_2_IN_1_GG3(X, Y, less_2_in_gg2(X, Y))
LESS_2_IN_GG2(s_11(X), s_11(Y)) -> LESS_2_IN_GG2(X, Y)
IF_ORDERED_1_IN_1_G4(X, Y, Xs, less_2_out_gg2(X, s_11(Y))) -> IF_ORDERED_1_IN_2_G4(X, Y, Xs, ordered_1_in_g1(._22(Y, Xs)))
IF_ORDERED_1_IN_1_G4(X, Y, Xs, less_2_out_gg2(X, s_11(Y))) -> ORDERED_1_IN_G1(._22(Y, Xs))
ordered_1_in_g1([]_0) -> ordered_1_out_g1([]_0)
ordered_1_in_g1(._22(underscore, []_0)) -> ordered_1_out_g1(._22(underscore, []_0))
ordered_1_in_g1(._22(X, ._22(Y, Xs))) -> if_ordered_1_in_1_g4(X, Y, Xs, less_2_in_gg2(X, s_11(Y)))
less_2_in_gg2(0_0, s_11(underscore1)) -> less_2_out_gg2(0_0, s_11(underscore1))
less_2_in_gg2(s_11(X), s_11(Y)) -> if_less_2_in_1_gg3(X, Y, less_2_in_gg2(X, Y))
if_less_2_in_1_gg3(X, Y, less_2_out_gg2(X, Y)) -> less_2_out_gg2(s_11(X), s_11(Y))
if_ordered_1_in_1_g4(X, Y, Xs, less_2_out_gg2(X, s_11(Y))) -> if_ordered_1_in_2_g4(X, Y, Xs, ordered_1_in_g1(._22(Y, Xs)))
if_ordered_1_in_2_g4(X, Y, Xs, ordered_1_out_g1(._22(Y, Xs))) -> ordered_1_out_g1(._22(X, ._22(Y, Xs)))
↳ PROLOG
↳ PrologToPiTRSProof
↳ PiTRS
↳ DependencyPairsProof
↳ PiDP
↳ DependencyGraphProof
↳ AND
↳ PiDP
↳ UsableRulesProof
↳ PiDP
LESS_2_IN_GG2(s_11(X), s_11(Y)) -> LESS_2_IN_GG2(X, Y)
ordered_1_in_g1([]_0) -> ordered_1_out_g1([]_0)
ordered_1_in_g1(._22(underscore, []_0)) -> ordered_1_out_g1(._22(underscore, []_0))
ordered_1_in_g1(._22(X, ._22(Y, Xs))) -> if_ordered_1_in_1_g4(X, Y, Xs, less_2_in_gg2(X, s_11(Y)))
less_2_in_gg2(0_0, s_11(underscore1)) -> less_2_out_gg2(0_0, s_11(underscore1))
less_2_in_gg2(s_11(X), s_11(Y)) -> if_less_2_in_1_gg3(X, Y, less_2_in_gg2(X, Y))
if_less_2_in_1_gg3(X, Y, less_2_out_gg2(X, Y)) -> less_2_out_gg2(s_11(X), s_11(Y))
if_ordered_1_in_1_g4(X, Y, Xs, less_2_out_gg2(X, s_11(Y))) -> if_ordered_1_in_2_g4(X, Y, Xs, ordered_1_in_g1(._22(Y, Xs)))
if_ordered_1_in_2_g4(X, Y, Xs, ordered_1_out_g1(._22(Y, Xs))) -> ordered_1_out_g1(._22(X, ._22(Y, Xs)))
↳ PROLOG
↳ PrologToPiTRSProof
↳ PiTRS
↳ DependencyPairsProof
↳ PiDP
↳ DependencyGraphProof
↳ AND
↳ PiDP
↳ UsableRulesProof
↳ PiDP
↳ PiDPToQDPProof
↳ PiDP
LESS_2_IN_GG2(s_11(X), s_11(Y)) -> LESS_2_IN_GG2(X, Y)
↳ PROLOG
↳ PrologToPiTRSProof
↳ PiTRS
↳ DependencyPairsProof
↳ PiDP
↳ DependencyGraphProof
↳ AND
↳ PiDP
↳ UsableRulesProof
↳ PiDP
↳ PiDPToQDPProof
↳ QDP
↳ QDPSizeChangeProof
↳ PiDP
LESS_2_IN_GG2(s_11(X), s_11(Y)) -> LESS_2_IN_GG2(X, Y)
From the DPs we obtained the following set of size-change graphs:
↳ PROLOG
↳ PrologToPiTRSProof
↳ PiTRS
↳ DependencyPairsProof
↳ PiDP
↳ DependencyGraphProof
↳ AND
↳ PiDP
↳ PiDP
↳ UsableRulesProof
ORDERED_1_IN_G1(._22(X, ._22(Y, Xs))) -> IF_ORDERED_1_IN_1_G4(X, Y, Xs, less_2_in_gg2(X, s_11(Y)))
IF_ORDERED_1_IN_1_G4(X, Y, Xs, less_2_out_gg2(X, s_11(Y))) -> ORDERED_1_IN_G1(._22(Y, Xs))
ordered_1_in_g1([]_0) -> ordered_1_out_g1([]_0)
ordered_1_in_g1(._22(underscore, []_0)) -> ordered_1_out_g1(._22(underscore, []_0))
ordered_1_in_g1(._22(X, ._22(Y, Xs))) -> if_ordered_1_in_1_g4(X, Y, Xs, less_2_in_gg2(X, s_11(Y)))
less_2_in_gg2(0_0, s_11(underscore1)) -> less_2_out_gg2(0_0, s_11(underscore1))
less_2_in_gg2(s_11(X), s_11(Y)) -> if_less_2_in_1_gg3(X, Y, less_2_in_gg2(X, Y))
if_less_2_in_1_gg3(X, Y, less_2_out_gg2(X, Y)) -> less_2_out_gg2(s_11(X), s_11(Y))
if_ordered_1_in_1_g4(X, Y, Xs, less_2_out_gg2(X, s_11(Y))) -> if_ordered_1_in_2_g4(X, Y, Xs, ordered_1_in_g1(._22(Y, Xs)))
if_ordered_1_in_2_g4(X, Y, Xs, ordered_1_out_g1(._22(Y, Xs))) -> ordered_1_out_g1(._22(X, ._22(Y, Xs)))
↳ PROLOG
↳ PrologToPiTRSProof
↳ PiTRS
↳ DependencyPairsProof
↳ PiDP
↳ DependencyGraphProof
↳ AND
↳ PiDP
↳ PiDP
↳ UsableRulesProof
↳ PiDP
↳ PiDPToQDPProof
ORDERED_1_IN_G1(._22(X, ._22(Y, Xs))) -> IF_ORDERED_1_IN_1_G4(X, Y, Xs, less_2_in_gg2(X, s_11(Y)))
IF_ORDERED_1_IN_1_G4(X, Y, Xs, less_2_out_gg2(X, s_11(Y))) -> ORDERED_1_IN_G1(._22(Y, Xs))
less_2_in_gg2(0_0, s_11(underscore1)) -> less_2_out_gg2(0_0, s_11(underscore1))
less_2_in_gg2(s_11(X), s_11(Y)) -> if_less_2_in_1_gg3(X, Y, less_2_in_gg2(X, Y))
if_less_2_in_1_gg3(X, Y, less_2_out_gg2(X, Y)) -> less_2_out_gg2(s_11(X), s_11(Y))
↳ PROLOG
↳ PrologToPiTRSProof
↳ PiTRS
↳ DependencyPairsProof
↳ PiDP
↳ DependencyGraphProof
↳ AND
↳ PiDP
↳ PiDP
↳ UsableRulesProof
↳ PiDP
↳ PiDPToQDPProof
↳ QDP
↳ RuleRemovalProof
ORDERED_1_IN_G1(._22(X, ._22(Y, Xs))) -> IF_ORDERED_1_IN_1_G3(Y, Xs, less_2_in_gg2(X, s_11(Y)))
IF_ORDERED_1_IN_1_G3(Y, Xs, less_2_out_gg) -> ORDERED_1_IN_G1(._22(Y, Xs))
less_2_in_gg2(0_0, s_11(underscore1)) -> less_2_out_gg
less_2_in_gg2(s_11(X), s_11(Y)) -> if_less_2_in_1_gg1(less_2_in_gg2(X, Y))
if_less_2_in_1_gg1(less_2_out_gg) -> less_2_out_gg
less_2_in_gg2(x0, x1)
if_less_2_in_1_gg1(x0)
IF_ORDERED_1_IN_1_G3(Y, Xs, less_2_out_gg) -> ORDERED_1_IN_G1(._22(Y, Xs))
less_2_in_gg2(0_0, s_11(underscore1)) -> less_2_out_gg
POL(0_0) = 2
POL(less_2_out_gg) = 1
POL(._22(x1, x2)) = x1 + 2·x2
POL(ORDERED_1_IN_G1(x1)) = x1
POL(if_less_2_in_1_gg1(x1)) = x1
POL(s_11(x1)) = x1
POL(less_2_in_gg2(x1, x2)) = x1 + x2
POL(IF_ORDERED_1_IN_1_G3(x1, x2, x3)) = x1 + 2·x2 + x3
↳ PROLOG
↳ PrologToPiTRSProof
↳ PiTRS
↳ DependencyPairsProof
↳ PiDP
↳ DependencyGraphProof
↳ AND
↳ PiDP
↳ PiDP
↳ UsableRulesProof
↳ PiDP
↳ PiDPToQDPProof
↳ QDP
↳ RuleRemovalProof
↳ QDP
↳ RuleRemovalProof
ORDERED_1_IN_G1(._22(X, ._22(Y, Xs))) -> IF_ORDERED_1_IN_1_G3(Y, Xs, less_2_in_gg2(X, s_11(Y)))
less_2_in_gg2(s_11(X), s_11(Y)) -> if_less_2_in_1_gg1(less_2_in_gg2(X, Y))
if_less_2_in_1_gg1(less_2_out_gg) -> less_2_out_gg
less_2_in_gg2(x0, x1)
if_less_2_in_1_gg1(x0)
less_2_in_gg2(s_11(X), s_11(Y)) -> if_less_2_in_1_gg1(less_2_in_gg2(X, Y))
if_less_2_in_1_gg1(less_2_out_gg) -> less_2_out_gg
POL(less_2_out_gg) = 0
POL(._22(x1, x2)) = 2·x1 + x2
POL(ORDERED_1_IN_G1(x1)) = 2 + x1
POL(if_less_2_in_1_gg1(x1)) = 1 + x1
POL(s_11(x1)) = 1 + x1
POL(less_2_in_gg2(x1, x2)) = 1 + x1 + x2
POL(IF_ORDERED_1_IN_1_G3(x1, x2, x3)) = x1 + x2 + x3
↳ PROLOG
↳ PrologToPiTRSProof
↳ PiTRS
↳ DependencyPairsProof
↳ PiDP
↳ DependencyGraphProof
↳ AND
↳ PiDP
↳ PiDP
↳ UsableRulesProof
↳ PiDP
↳ PiDPToQDPProof
↳ QDP
↳ RuleRemovalProof
↳ QDP
↳ RuleRemovalProof
↳ QDP
↳ DependencyGraphProof
ORDERED_1_IN_G1(._22(X, ._22(Y, Xs))) -> IF_ORDERED_1_IN_1_G3(Y, Xs, less_2_in_gg2(X, s_11(Y)))
less_2_in_gg2(x0, x1)
if_less_2_in_1_gg1(x0)