↳ PROLOG
↳ PrologToPiTRSProof
With regard to the inferred argument filtering the predicates were used in the following modes:
reverse2: (b,f)
app3: (b,b,f)
Transforming PROLOG into the following Term Rewriting System:
Pi-finite rewrite system:
The TRS R consists of the following rules:
reverse_2_in_ga2(._22(X, Xs), Ys) -> if_reverse_2_in_1_ga4(X, Xs, Ys, reverse_2_in_ga2(Xs, Zs))
reverse_2_in_ga2([]_0, []_0) -> reverse_2_out_ga2([]_0, []_0)
if_reverse_2_in_1_ga4(X, Xs, Ys, reverse_2_out_ga2(Xs, Zs)) -> if_reverse_2_in_2_ga5(X, Xs, Ys, Zs, app_3_in_gga3(Zs, ._22(X, []_0), Ys))
app_3_in_gga3(._22(X, Xs), Ys, ._22(X, Zs)) -> if_app_3_in_1_gga5(X, Xs, Ys, Zs, app_3_in_gga3(Xs, Ys, Zs))
app_3_in_gga3([]_0, Ys, Ys) -> app_3_out_gga3([]_0, Ys, Ys)
if_app_3_in_1_gga5(X, Xs, Ys, Zs, app_3_out_gga3(Xs, Ys, Zs)) -> app_3_out_gga3(._22(X, Xs), Ys, ._22(X, Zs))
if_reverse_2_in_2_ga5(X, Xs, Ys, Zs, app_3_out_gga3(Zs, ._22(X, []_0), Ys)) -> reverse_2_out_ga2(._22(X, Xs), Ys)
Infinitary Constructor Rewriting Termination of PiTRS implies Termination of PROLOG
↳ PROLOG
↳ PrologToPiTRSProof
↳ PiTRS
↳ DependencyPairsProof
reverse_2_in_ga2(._22(X, Xs), Ys) -> if_reverse_2_in_1_ga4(X, Xs, Ys, reverse_2_in_ga2(Xs, Zs))
reverse_2_in_ga2([]_0, []_0) -> reverse_2_out_ga2([]_0, []_0)
if_reverse_2_in_1_ga4(X, Xs, Ys, reverse_2_out_ga2(Xs, Zs)) -> if_reverse_2_in_2_ga5(X, Xs, Ys, Zs, app_3_in_gga3(Zs, ._22(X, []_0), Ys))
app_3_in_gga3(._22(X, Xs), Ys, ._22(X, Zs)) -> if_app_3_in_1_gga5(X, Xs, Ys, Zs, app_3_in_gga3(Xs, Ys, Zs))
app_3_in_gga3([]_0, Ys, Ys) -> app_3_out_gga3([]_0, Ys, Ys)
if_app_3_in_1_gga5(X, Xs, Ys, Zs, app_3_out_gga3(Xs, Ys, Zs)) -> app_3_out_gga3(._22(X, Xs), Ys, ._22(X, Zs))
if_reverse_2_in_2_ga5(X, Xs, Ys, Zs, app_3_out_gga3(Zs, ._22(X, []_0), Ys)) -> reverse_2_out_ga2(._22(X, Xs), Ys)
REVERSE_2_IN_GA2(._22(X, Xs), Ys) -> IF_REVERSE_2_IN_1_GA4(X, Xs, Ys, reverse_2_in_ga2(Xs, Zs))
REVERSE_2_IN_GA2(._22(X, Xs), Ys) -> REVERSE_2_IN_GA2(Xs, Zs)
IF_REVERSE_2_IN_1_GA4(X, Xs, Ys, reverse_2_out_ga2(Xs, Zs)) -> IF_REVERSE_2_IN_2_GA5(X, Xs, Ys, Zs, app_3_in_gga3(Zs, ._22(X, []_0), Ys))
IF_REVERSE_2_IN_1_GA4(X, Xs, Ys, reverse_2_out_ga2(Xs, Zs)) -> APP_3_IN_GGA3(Zs, ._22(X, []_0), Ys)
APP_3_IN_GGA3(._22(X, Xs), Ys, ._22(X, Zs)) -> IF_APP_3_IN_1_GGA5(X, Xs, Ys, Zs, app_3_in_gga3(Xs, Ys, Zs))
APP_3_IN_GGA3(._22(X, Xs), Ys, ._22(X, Zs)) -> APP_3_IN_GGA3(Xs, Ys, Zs)
reverse_2_in_ga2(._22(X, Xs), Ys) -> if_reverse_2_in_1_ga4(X, Xs, Ys, reverse_2_in_ga2(Xs, Zs))
reverse_2_in_ga2([]_0, []_0) -> reverse_2_out_ga2([]_0, []_0)
if_reverse_2_in_1_ga4(X, Xs, Ys, reverse_2_out_ga2(Xs, Zs)) -> if_reverse_2_in_2_ga5(X, Xs, Ys, Zs, app_3_in_gga3(Zs, ._22(X, []_0), Ys))
app_3_in_gga3(._22(X, Xs), Ys, ._22(X, Zs)) -> if_app_3_in_1_gga5(X, Xs, Ys, Zs, app_3_in_gga3(Xs, Ys, Zs))
app_3_in_gga3([]_0, Ys, Ys) -> app_3_out_gga3([]_0, Ys, Ys)
if_app_3_in_1_gga5(X, Xs, Ys, Zs, app_3_out_gga3(Xs, Ys, Zs)) -> app_3_out_gga3(._22(X, Xs), Ys, ._22(X, Zs))
if_reverse_2_in_2_ga5(X, Xs, Ys, Zs, app_3_out_gga3(Zs, ._22(X, []_0), Ys)) -> reverse_2_out_ga2(._22(X, Xs), Ys)
↳ PROLOG
↳ PrologToPiTRSProof
↳ PiTRS
↳ DependencyPairsProof
↳ PiDP
↳ DependencyGraphProof
REVERSE_2_IN_GA2(._22(X, Xs), Ys) -> IF_REVERSE_2_IN_1_GA4(X, Xs, Ys, reverse_2_in_ga2(Xs, Zs))
REVERSE_2_IN_GA2(._22(X, Xs), Ys) -> REVERSE_2_IN_GA2(Xs, Zs)
IF_REVERSE_2_IN_1_GA4(X, Xs, Ys, reverse_2_out_ga2(Xs, Zs)) -> IF_REVERSE_2_IN_2_GA5(X, Xs, Ys, Zs, app_3_in_gga3(Zs, ._22(X, []_0), Ys))
IF_REVERSE_2_IN_1_GA4(X, Xs, Ys, reverse_2_out_ga2(Xs, Zs)) -> APP_3_IN_GGA3(Zs, ._22(X, []_0), Ys)
APP_3_IN_GGA3(._22(X, Xs), Ys, ._22(X, Zs)) -> IF_APP_3_IN_1_GGA5(X, Xs, Ys, Zs, app_3_in_gga3(Xs, Ys, Zs))
APP_3_IN_GGA3(._22(X, Xs), Ys, ._22(X, Zs)) -> APP_3_IN_GGA3(Xs, Ys, Zs)
reverse_2_in_ga2(._22(X, Xs), Ys) -> if_reverse_2_in_1_ga4(X, Xs, Ys, reverse_2_in_ga2(Xs, Zs))
reverse_2_in_ga2([]_0, []_0) -> reverse_2_out_ga2([]_0, []_0)
if_reverse_2_in_1_ga4(X, Xs, Ys, reverse_2_out_ga2(Xs, Zs)) -> if_reverse_2_in_2_ga5(X, Xs, Ys, Zs, app_3_in_gga3(Zs, ._22(X, []_0), Ys))
app_3_in_gga3(._22(X, Xs), Ys, ._22(X, Zs)) -> if_app_3_in_1_gga5(X, Xs, Ys, Zs, app_3_in_gga3(Xs, Ys, Zs))
app_3_in_gga3([]_0, Ys, Ys) -> app_3_out_gga3([]_0, Ys, Ys)
if_app_3_in_1_gga5(X, Xs, Ys, Zs, app_3_out_gga3(Xs, Ys, Zs)) -> app_3_out_gga3(._22(X, Xs), Ys, ._22(X, Zs))
if_reverse_2_in_2_ga5(X, Xs, Ys, Zs, app_3_out_gga3(Zs, ._22(X, []_0), Ys)) -> reverse_2_out_ga2(._22(X, Xs), Ys)
↳ PROLOG
↳ PrologToPiTRSProof
↳ PiTRS
↳ DependencyPairsProof
↳ PiDP
↳ DependencyGraphProof
↳ AND
↳ PiDP
↳ UsableRulesProof
↳ PiDP
APP_3_IN_GGA3(._22(X, Xs), Ys, ._22(X, Zs)) -> APP_3_IN_GGA3(Xs, Ys, Zs)
reverse_2_in_ga2(._22(X, Xs), Ys) -> if_reverse_2_in_1_ga4(X, Xs, Ys, reverse_2_in_ga2(Xs, Zs))
reverse_2_in_ga2([]_0, []_0) -> reverse_2_out_ga2([]_0, []_0)
if_reverse_2_in_1_ga4(X, Xs, Ys, reverse_2_out_ga2(Xs, Zs)) -> if_reverse_2_in_2_ga5(X, Xs, Ys, Zs, app_3_in_gga3(Zs, ._22(X, []_0), Ys))
app_3_in_gga3(._22(X, Xs), Ys, ._22(X, Zs)) -> if_app_3_in_1_gga5(X, Xs, Ys, Zs, app_3_in_gga3(Xs, Ys, Zs))
app_3_in_gga3([]_0, Ys, Ys) -> app_3_out_gga3([]_0, Ys, Ys)
if_app_3_in_1_gga5(X, Xs, Ys, Zs, app_3_out_gga3(Xs, Ys, Zs)) -> app_3_out_gga3(._22(X, Xs), Ys, ._22(X, Zs))
if_reverse_2_in_2_ga5(X, Xs, Ys, Zs, app_3_out_gga3(Zs, ._22(X, []_0), Ys)) -> reverse_2_out_ga2(._22(X, Xs), Ys)
↳ PROLOG
↳ PrologToPiTRSProof
↳ PiTRS
↳ DependencyPairsProof
↳ PiDP
↳ DependencyGraphProof
↳ AND
↳ PiDP
↳ UsableRulesProof
↳ PiDP
↳ PiDPToQDPProof
↳ PiDP
APP_3_IN_GGA3(._22(X, Xs), Ys, ._22(X, Zs)) -> APP_3_IN_GGA3(Xs, Ys, Zs)
↳ PROLOG
↳ PrologToPiTRSProof
↳ PiTRS
↳ DependencyPairsProof
↳ PiDP
↳ DependencyGraphProof
↳ AND
↳ PiDP
↳ UsableRulesProof
↳ PiDP
↳ PiDPToQDPProof
↳ QDP
↳ QDPSizeChangeProof
↳ PiDP
APP_3_IN_GGA2(._22(X, Xs), Ys) -> APP_3_IN_GGA2(Xs, Ys)
From the DPs we obtained the following set of size-change graphs:
↳ PROLOG
↳ PrologToPiTRSProof
↳ PiTRS
↳ DependencyPairsProof
↳ PiDP
↳ DependencyGraphProof
↳ AND
↳ PiDP
↳ PiDP
↳ UsableRulesProof
REVERSE_2_IN_GA2(._22(X, Xs), Ys) -> REVERSE_2_IN_GA2(Xs, Zs)
reverse_2_in_ga2(._22(X, Xs), Ys) -> if_reverse_2_in_1_ga4(X, Xs, Ys, reverse_2_in_ga2(Xs, Zs))
reverse_2_in_ga2([]_0, []_0) -> reverse_2_out_ga2([]_0, []_0)
if_reverse_2_in_1_ga4(X, Xs, Ys, reverse_2_out_ga2(Xs, Zs)) -> if_reverse_2_in_2_ga5(X, Xs, Ys, Zs, app_3_in_gga3(Zs, ._22(X, []_0), Ys))
app_3_in_gga3(._22(X, Xs), Ys, ._22(X, Zs)) -> if_app_3_in_1_gga5(X, Xs, Ys, Zs, app_3_in_gga3(Xs, Ys, Zs))
app_3_in_gga3([]_0, Ys, Ys) -> app_3_out_gga3([]_0, Ys, Ys)
if_app_3_in_1_gga5(X, Xs, Ys, Zs, app_3_out_gga3(Xs, Ys, Zs)) -> app_3_out_gga3(._22(X, Xs), Ys, ._22(X, Zs))
if_reverse_2_in_2_ga5(X, Xs, Ys, Zs, app_3_out_gga3(Zs, ._22(X, []_0), Ys)) -> reverse_2_out_ga2(._22(X, Xs), Ys)
↳ PROLOG
↳ PrologToPiTRSProof
↳ PiTRS
↳ DependencyPairsProof
↳ PiDP
↳ DependencyGraphProof
↳ AND
↳ PiDP
↳ PiDP
↳ UsableRulesProof
↳ PiDP
↳ PiDPToQDPProof
REVERSE_2_IN_GA2(._22(X, Xs), Ys) -> REVERSE_2_IN_GA2(Xs, Zs)
↳ PROLOG
↳ PrologToPiTRSProof
↳ PiTRS
↳ DependencyPairsProof
↳ PiDP
↳ DependencyGraphProof
↳ AND
↳ PiDP
↳ PiDP
↳ UsableRulesProof
↳ PiDP
↳ PiDPToQDPProof
↳ QDP
↳ QDPSizeChangeProof
REVERSE_2_IN_GA1(._22(X, Xs)) -> REVERSE_2_IN_GA1(Xs)
From the DPs we obtained the following set of size-change graphs: