↳ PROLOG
↳ PrologToPiTRSProof
With regard to the inferred argument filtering the predicates were used in the following modes:
rev2: (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:
rev_2_in_ga2([]_0, []_0) -> rev_2_out_ga2([]_0, []_0)
rev_2_in_ga2(._22(X, Xs), Ys) -> if_rev_2_in_1_ga4(X, Xs, Ys, rev_2_in_ga2(Xs, Zs))
if_rev_2_in_1_ga4(X, Xs, Ys, rev_2_out_ga2(Xs, Zs)) -> if_rev_2_in_2_ga5(X, Xs, Ys, Zs, app_3_in_gga3(Zs, ._22(X, []_0), Ys))
app_3_in_gga3([]_0, X, X) -> app_3_out_gga3([]_0, X, X)
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))
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_rev_2_in_2_ga5(X, Xs, Ys, Zs, app_3_out_gga3(Zs, ._22(X, []_0), Ys)) -> rev_2_out_ga2(._22(X, Xs), Ys)
Infinitary Constructor Rewriting Termination of PiTRS implies Termination of PROLOG
↳ PROLOG
↳ PrologToPiTRSProof
↳ PiTRS
↳ DependencyPairsProof
rev_2_in_ga2([]_0, []_0) -> rev_2_out_ga2([]_0, []_0)
rev_2_in_ga2(._22(X, Xs), Ys) -> if_rev_2_in_1_ga4(X, Xs, Ys, rev_2_in_ga2(Xs, Zs))
if_rev_2_in_1_ga4(X, Xs, Ys, rev_2_out_ga2(Xs, Zs)) -> if_rev_2_in_2_ga5(X, Xs, Ys, Zs, app_3_in_gga3(Zs, ._22(X, []_0), Ys))
app_3_in_gga3([]_0, X, X) -> app_3_out_gga3([]_0, X, X)
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))
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_rev_2_in_2_ga5(X, Xs, Ys, Zs, app_3_out_gga3(Zs, ._22(X, []_0), Ys)) -> rev_2_out_ga2(._22(X, Xs), Ys)
REV_2_IN_GA2(._22(X, Xs), Ys) -> IF_REV_2_IN_1_GA4(X, Xs, Ys, rev_2_in_ga2(Xs, Zs))
REV_2_IN_GA2(._22(X, Xs), Ys) -> REV_2_IN_GA2(Xs, Zs)
IF_REV_2_IN_1_GA4(X, Xs, Ys, rev_2_out_ga2(Xs, Zs)) -> IF_REV_2_IN_2_GA5(X, Xs, Ys, Zs, app_3_in_gga3(Zs, ._22(X, []_0), Ys))
IF_REV_2_IN_1_GA4(X, Xs, Ys, rev_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)
rev_2_in_ga2([]_0, []_0) -> rev_2_out_ga2([]_0, []_0)
rev_2_in_ga2(._22(X, Xs), Ys) -> if_rev_2_in_1_ga4(X, Xs, Ys, rev_2_in_ga2(Xs, Zs))
if_rev_2_in_1_ga4(X, Xs, Ys, rev_2_out_ga2(Xs, Zs)) -> if_rev_2_in_2_ga5(X, Xs, Ys, Zs, app_3_in_gga3(Zs, ._22(X, []_0), Ys))
app_3_in_gga3([]_0, X, X) -> app_3_out_gga3([]_0, X, X)
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))
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_rev_2_in_2_ga5(X, Xs, Ys, Zs, app_3_out_gga3(Zs, ._22(X, []_0), Ys)) -> rev_2_out_ga2(._22(X, Xs), Ys)
↳ PROLOG
↳ PrologToPiTRSProof
↳ PiTRS
↳ DependencyPairsProof
↳ PiDP
↳ DependencyGraphProof
REV_2_IN_GA2(._22(X, Xs), Ys) -> IF_REV_2_IN_1_GA4(X, Xs, Ys, rev_2_in_ga2(Xs, Zs))
REV_2_IN_GA2(._22(X, Xs), Ys) -> REV_2_IN_GA2(Xs, Zs)
IF_REV_2_IN_1_GA4(X, Xs, Ys, rev_2_out_ga2(Xs, Zs)) -> IF_REV_2_IN_2_GA5(X, Xs, Ys, Zs, app_3_in_gga3(Zs, ._22(X, []_0), Ys))
IF_REV_2_IN_1_GA4(X, Xs, Ys, rev_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)
rev_2_in_ga2([]_0, []_0) -> rev_2_out_ga2([]_0, []_0)
rev_2_in_ga2(._22(X, Xs), Ys) -> if_rev_2_in_1_ga4(X, Xs, Ys, rev_2_in_ga2(Xs, Zs))
if_rev_2_in_1_ga4(X, Xs, Ys, rev_2_out_ga2(Xs, Zs)) -> if_rev_2_in_2_ga5(X, Xs, Ys, Zs, app_3_in_gga3(Zs, ._22(X, []_0), Ys))
app_3_in_gga3([]_0, X, X) -> app_3_out_gga3([]_0, X, X)
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))
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_rev_2_in_2_ga5(X, Xs, Ys, Zs, app_3_out_gga3(Zs, ._22(X, []_0), Ys)) -> rev_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)
rev_2_in_ga2([]_0, []_0) -> rev_2_out_ga2([]_0, []_0)
rev_2_in_ga2(._22(X, Xs), Ys) -> if_rev_2_in_1_ga4(X, Xs, Ys, rev_2_in_ga2(Xs, Zs))
if_rev_2_in_1_ga4(X, Xs, Ys, rev_2_out_ga2(Xs, Zs)) -> if_rev_2_in_2_ga5(X, Xs, Ys, Zs, app_3_in_gga3(Zs, ._22(X, []_0), Ys))
app_3_in_gga3([]_0, X, X) -> app_3_out_gga3([]_0, X, X)
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))
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_rev_2_in_2_ga5(X, Xs, Ys, Zs, app_3_out_gga3(Zs, ._22(X, []_0), Ys)) -> rev_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
REV_2_IN_GA2(._22(X, Xs), Ys) -> REV_2_IN_GA2(Xs, Zs)
rev_2_in_ga2([]_0, []_0) -> rev_2_out_ga2([]_0, []_0)
rev_2_in_ga2(._22(X, Xs), Ys) -> if_rev_2_in_1_ga4(X, Xs, Ys, rev_2_in_ga2(Xs, Zs))
if_rev_2_in_1_ga4(X, Xs, Ys, rev_2_out_ga2(Xs, Zs)) -> if_rev_2_in_2_ga5(X, Xs, Ys, Zs, app_3_in_gga3(Zs, ._22(X, []_0), Ys))
app_3_in_gga3([]_0, X, X) -> app_3_out_gga3([]_0, X, X)
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))
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_rev_2_in_2_ga5(X, Xs, Ys, Zs, app_3_out_gga3(Zs, ._22(X, []_0), Ys)) -> rev_2_out_ga2(._22(X, Xs), Ys)
↳ PROLOG
↳ PrologToPiTRSProof
↳ PiTRS
↳ DependencyPairsProof
↳ PiDP
↳ DependencyGraphProof
↳ AND
↳ PiDP
↳ PiDP
↳ UsableRulesProof
↳ PiDP
↳ PiDPToQDPProof
REV_2_IN_GA2(._22(X, Xs), Ys) -> REV_2_IN_GA2(Xs, Zs)
↳ PROLOG
↳ PrologToPiTRSProof
↳ PiTRS
↳ DependencyPairsProof
↳ PiDP
↳ DependencyGraphProof
↳ AND
↳ PiDP
↳ PiDP
↳ UsableRulesProof
↳ PiDP
↳ PiDPToQDPProof
↳ QDP
↳ QDPSizeChangeProof
REV_2_IN_GA1(._22(X, Xs)) -> REV_2_IN_GA1(Xs)
From the DPs we obtained the following set of size-change graphs: