↳ PROLOG
↳ PrologToPiTRSProof
↳ PrologToPiTRSProof
With regard to the inferred argument filtering the predicates were used in the following modes:
rev2: (f,b) (f,f)
app3: (f,b,f) (f,b,b)
Transforming PROLOG into the following Term Rewriting System:
Pi-finite rewrite system:
The TRS R consists of the following rules:
rev_2_in_ag2([]_0, []_0) -> rev_2_out_ag2([]_0, []_0)
rev_2_in_ag2(._22(X, Xs), Ys) -> if_rev_2_in_1_ag4(X, Xs, Ys, rev_2_in_aa2(Xs, Zs))
rev_2_in_aa2([]_0, []_0) -> rev_2_out_aa2([]_0, []_0)
rev_2_in_aa2(._22(X, Xs), Ys) -> if_rev_2_in_1_aa4(X, Xs, Ys, rev_2_in_aa2(Xs, Zs))
if_rev_2_in_1_aa4(X, Xs, Ys, rev_2_out_aa2(Xs, Zs)) -> if_rev_2_in_2_aa5(X, Xs, Ys, Zs, app_3_in_aga3(Zs, ._22(X, []_0), Ys))
app_3_in_aga3([]_0, X, X) -> app_3_out_aga3([]_0, X, X)
app_3_in_aga3(._22(X, Xs), Ys, ._22(X, Zs)) -> if_app_3_in_1_aga5(X, Xs, Ys, Zs, app_3_in_aga3(Xs, Ys, Zs))
if_app_3_in_1_aga5(X, Xs, Ys, Zs, app_3_out_aga3(Xs, Ys, Zs)) -> app_3_out_aga3(._22(X, Xs), Ys, ._22(X, Zs))
if_rev_2_in_2_aa5(X, Xs, Ys, Zs, app_3_out_aga3(Zs, ._22(X, []_0), Ys)) -> rev_2_out_aa2(._22(X, Xs), Ys)
if_rev_2_in_1_ag4(X, Xs, Ys, rev_2_out_aa2(Xs, Zs)) -> if_rev_2_in_2_ag5(X, Xs, Ys, Zs, app_3_in_agg3(Zs, ._22(X, []_0), Ys))
app_3_in_agg3([]_0, X, X) -> app_3_out_agg3([]_0, X, X)
app_3_in_agg3(._22(X, Xs), Ys, ._22(X, Zs)) -> if_app_3_in_1_agg5(X, Xs, Ys, Zs, app_3_in_agg3(Xs, Ys, Zs))
if_app_3_in_1_agg5(X, Xs, Ys, Zs, app_3_out_agg3(Xs, Ys, Zs)) -> app_3_out_agg3(._22(X, Xs), Ys, ._22(X, Zs))
if_rev_2_in_2_ag5(X, Xs, Ys, Zs, app_3_out_agg3(Zs, ._22(X, []_0), Ys)) -> rev_2_out_ag2(._22(X, Xs), Ys)
Infinitary Constructor Rewriting Termination of PiTRS implies Termination of PROLOG
↳ PROLOG
↳ PrologToPiTRSProof
↳ PiTRS
↳ DependencyPairsProof
↳ PrologToPiTRSProof
rev_2_in_ag2([]_0, []_0) -> rev_2_out_ag2([]_0, []_0)
rev_2_in_ag2(._22(X, Xs), Ys) -> if_rev_2_in_1_ag4(X, Xs, Ys, rev_2_in_aa2(Xs, Zs))
rev_2_in_aa2([]_0, []_0) -> rev_2_out_aa2([]_0, []_0)
rev_2_in_aa2(._22(X, Xs), Ys) -> if_rev_2_in_1_aa4(X, Xs, Ys, rev_2_in_aa2(Xs, Zs))
if_rev_2_in_1_aa4(X, Xs, Ys, rev_2_out_aa2(Xs, Zs)) -> if_rev_2_in_2_aa5(X, Xs, Ys, Zs, app_3_in_aga3(Zs, ._22(X, []_0), Ys))
app_3_in_aga3([]_0, X, X) -> app_3_out_aga3([]_0, X, X)
app_3_in_aga3(._22(X, Xs), Ys, ._22(X, Zs)) -> if_app_3_in_1_aga5(X, Xs, Ys, Zs, app_3_in_aga3(Xs, Ys, Zs))
if_app_3_in_1_aga5(X, Xs, Ys, Zs, app_3_out_aga3(Xs, Ys, Zs)) -> app_3_out_aga3(._22(X, Xs), Ys, ._22(X, Zs))
if_rev_2_in_2_aa5(X, Xs, Ys, Zs, app_3_out_aga3(Zs, ._22(X, []_0), Ys)) -> rev_2_out_aa2(._22(X, Xs), Ys)
if_rev_2_in_1_ag4(X, Xs, Ys, rev_2_out_aa2(Xs, Zs)) -> if_rev_2_in_2_ag5(X, Xs, Ys, Zs, app_3_in_agg3(Zs, ._22(X, []_0), Ys))
app_3_in_agg3([]_0, X, X) -> app_3_out_agg3([]_0, X, X)
app_3_in_agg3(._22(X, Xs), Ys, ._22(X, Zs)) -> if_app_3_in_1_agg5(X, Xs, Ys, Zs, app_3_in_agg3(Xs, Ys, Zs))
if_app_3_in_1_agg5(X, Xs, Ys, Zs, app_3_out_agg3(Xs, Ys, Zs)) -> app_3_out_agg3(._22(X, Xs), Ys, ._22(X, Zs))
if_rev_2_in_2_ag5(X, Xs, Ys, Zs, app_3_out_agg3(Zs, ._22(X, []_0), Ys)) -> rev_2_out_ag2(._22(X, Xs), Ys)
REV_2_IN_AG2(._22(X, Xs), Ys) -> IF_REV_2_IN_1_AG4(X, Xs, Ys, rev_2_in_aa2(Xs, Zs))
REV_2_IN_AG2(._22(X, Xs), Ys) -> REV_2_IN_AA2(Xs, Zs)
REV_2_IN_AA2(._22(X, Xs), Ys) -> IF_REV_2_IN_1_AA4(X, Xs, Ys, rev_2_in_aa2(Xs, Zs))
REV_2_IN_AA2(._22(X, Xs), Ys) -> REV_2_IN_AA2(Xs, Zs)
IF_REV_2_IN_1_AA4(X, Xs, Ys, rev_2_out_aa2(Xs, Zs)) -> IF_REV_2_IN_2_AA5(X, Xs, Ys, Zs, app_3_in_aga3(Zs, ._22(X, []_0), Ys))
IF_REV_2_IN_1_AA4(X, Xs, Ys, rev_2_out_aa2(Xs, Zs)) -> APP_3_IN_AGA3(Zs, ._22(X, []_0), Ys)
APP_3_IN_AGA3(._22(X, Xs), Ys, ._22(X, Zs)) -> IF_APP_3_IN_1_AGA5(X, Xs, Ys, Zs, app_3_in_aga3(Xs, Ys, Zs))
APP_3_IN_AGA3(._22(X, Xs), Ys, ._22(X, Zs)) -> APP_3_IN_AGA3(Xs, Ys, Zs)
IF_REV_2_IN_1_AG4(X, Xs, Ys, rev_2_out_aa2(Xs, Zs)) -> IF_REV_2_IN_2_AG5(X, Xs, Ys, Zs, app_3_in_agg3(Zs, ._22(X, []_0), Ys))
IF_REV_2_IN_1_AG4(X, Xs, Ys, rev_2_out_aa2(Xs, Zs)) -> APP_3_IN_AGG3(Zs, ._22(X, []_0), Ys)
APP_3_IN_AGG3(._22(X, Xs), Ys, ._22(X, Zs)) -> IF_APP_3_IN_1_AGG5(X, Xs, Ys, Zs, app_3_in_agg3(Xs, Ys, Zs))
APP_3_IN_AGG3(._22(X, Xs), Ys, ._22(X, Zs)) -> APP_3_IN_AGG3(Xs, Ys, Zs)
rev_2_in_ag2([]_0, []_0) -> rev_2_out_ag2([]_0, []_0)
rev_2_in_ag2(._22(X, Xs), Ys) -> if_rev_2_in_1_ag4(X, Xs, Ys, rev_2_in_aa2(Xs, Zs))
rev_2_in_aa2([]_0, []_0) -> rev_2_out_aa2([]_0, []_0)
rev_2_in_aa2(._22(X, Xs), Ys) -> if_rev_2_in_1_aa4(X, Xs, Ys, rev_2_in_aa2(Xs, Zs))
if_rev_2_in_1_aa4(X, Xs, Ys, rev_2_out_aa2(Xs, Zs)) -> if_rev_2_in_2_aa5(X, Xs, Ys, Zs, app_3_in_aga3(Zs, ._22(X, []_0), Ys))
app_3_in_aga3([]_0, X, X) -> app_3_out_aga3([]_0, X, X)
app_3_in_aga3(._22(X, Xs), Ys, ._22(X, Zs)) -> if_app_3_in_1_aga5(X, Xs, Ys, Zs, app_3_in_aga3(Xs, Ys, Zs))
if_app_3_in_1_aga5(X, Xs, Ys, Zs, app_3_out_aga3(Xs, Ys, Zs)) -> app_3_out_aga3(._22(X, Xs), Ys, ._22(X, Zs))
if_rev_2_in_2_aa5(X, Xs, Ys, Zs, app_3_out_aga3(Zs, ._22(X, []_0), Ys)) -> rev_2_out_aa2(._22(X, Xs), Ys)
if_rev_2_in_1_ag4(X, Xs, Ys, rev_2_out_aa2(Xs, Zs)) -> if_rev_2_in_2_ag5(X, Xs, Ys, Zs, app_3_in_agg3(Zs, ._22(X, []_0), Ys))
app_3_in_agg3([]_0, X, X) -> app_3_out_agg3([]_0, X, X)
app_3_in_agg3(._22(X, Xs), Ys, ._22(X, Zs)) -> if_app_3_in_1_agg5(X, Xs, Ys, Zs, app_3_in_agg3(Xs, Ys, Zs))
if_app_3_in_1_agg5(X, Xs, Ys, Zs, app_3_out_agg3(Xs, Ys, Zs)) -> app_3_out_agg3(._22(X, Xs), Ys, ._22(X, Zs))
if_rev_2_in_2_ag5(X, Xs, Ys, Zs, app_3_out_agg3(Zs, ._22(X, []_0), Ys)) -> rev_2_out_ag2(._22(X, Xs), Ys)
↳ PROLOG
↳ PrologToPiTRSProof
↳ PiTRS
↳ DependencyPairsProof
↳ PiDP
↳ DependencyGraphProof
↳ PrologToPiTRSProof
REV_2_IN_AG2(._22(X, Xs), Ys) -> IF_REV_2_IN_1_AG4(X, Xs, Ys, rev_2_in_aa2(Xs, Zs))
REV_2_IN_AG2(._22(X, Xs), Ys) -> REV_2_IN_AA2(Xs, Zs)
REV_2_IN_AA2(._22(X, Xs), Ys) -> IF_REV_2_IN_1_AA4(X, Xs, Ys, rev_2_in_aa2(Xs, Zs))
REV_2_IN_AA2(._22(X, Xs), Ys) -> REV_2_IN_AA2(Xs, Zs)
IF_REV_2_IN_1_AA4(X, Xs, Ys, rev_2_out_aa2(Xs, Zs)) -> IF_REV_2_IN_2_AA5(X, Xs, Ys, Zs, app_3_in_aga3(Zs, ._22(X, []_0), Ys))
IF_REV_2_IN_1_AA4(X, Xs, Ys, rev_2_out_aa2(Xs, Zs)) -> APP_3_IN_AGA3(Zs, ._22(X, []_0), Ys)
APP_3_IN_AGA3(._22(X, Xs), Ys, ._22(X, Zs)) -> IF_APP_3_IN_1_AGA5(X, Xs, Ys, Zs, app_3_in_aga3(Xs, Ys, Zs))
APP_3_IN_AGA3(._22(X, Xs), Ys, ._22(X, Zs)) -> APP_3_IN_AGA3(Xs, Ys, Zs)
IF_REV_2_IN_1_AG4(X, Xs, Ys, rev_2_out_aa2(Xs, Zs)) -> IF_REV_2_IN_2_AG5(X, Xs, Ys, Zs, app_3_in_agg3(Zs, ._22(X, []_0), Ys))
IF_REV_2_IN_1_AG4(X, Xs, Ys, rev_2_out_aa2(Xs, Zs)) -> APP_3_IN_AGG3(Zs, ._22(X, []_0), Ys)
APP_3_IN_AGG3(._22(X, Xs), Ys, ._22(X, Zs)) -> IF_APP_3_IN_1_AGG5(X, Xs, Ys, Zs, app_3_in_agg3(Xs, Ys, Zs))
APP_3_IN_AGG3(._22(X, Xs), Ys, ._22(X, Zs)) -> APP_3_IN_AGG3(Xs, Ys, Zs)
rev_2_in_ag2([]_0, []_0) -> rev_2_out_ag2([]_0, []_0)
rev_2_in_ag2(._22(X, Xs), Ys) -> if_rev_2_in_1_ag4(X, Xs, Ys, rev_2_in_aa2(Xs, Zs))
rev_2_in_aa2([]_0, []_0) -> rev_2_out_aa2([]_0, []_0)
rev_2_in_aa2(._22(X, Xs), Ys) -> if_rev_2_in_1_aa4(X, Xs, Ys, rev_2_in_aa2(Xs, Zs))
if_rev_2_in_1_aa4(X, Xs, Ys, rev_2_out_aa2(Xs, Zs)) -> if_rev_2_in_2_aa5(X, Xs, Ys, Zs, app_3_in_aga3(Zs, ._22(X, []_0), Ys))
app_3_in_aga3([]_0, X, X) -> app_3_out_aga3([]_0, X, X)
app_3_in_aga3(._22(X, Xs), Ys, ._22(X, Zs)) -> if_app_3_in_1_aga5(X, Xs, Ys, Zs, app_3_in_aga3(Xs, Ys, Zs))
if_app_3_in_1_aga5(X, Xs, Ys, Zs, app_3_out_aga3(Xs, Ys, Zs)) -> app_3_out_aga3(._22(X, Xs), Ys, ._22(X, Zs))
if_rev_2_in_2_aa5(X, Xs, Ys, Zs, app_3_out_aga3(Zs, ._22(X, []_0), Ys)) -> rev_2_out_aa2(._22(X, Xs), Ys)
if_rev_2_in_1_ag4(X, Xs, Ys, rev_2_out_aa2(Xs, Zs)) -> if_rev_2_in_2_ag5(X, Xs, Ys, Zs, app_3_in_agg3(Zs, ._22(X, []_0), Ys))
app_3_in_agg3([]_0, X, X) -> app_3_out_agg3([]_0, X, X)
app_3_in_agg3(._22(X, Xs), Ys, ._22(X, Zs)) -> if_app_3_in_1_agg5(X, Xs, Ys, Zs, app_3_in_agg3(Xs, Ys, Zs))
if_app_3_in_1_agg5(X, Xs, Ys, Zs, app_3_out_agg3(Xs, Ys, Zs)) -> app_3_out_agg3(._22(X, Xs), Ys, ._22(X, Zs))
if_rev_2_in_2_ag5(X, Xs, Ys, Zs, app_3_out_agg3(Zs, ._22(X, []_0), Ys)) -> rev_2_out_ag2(._22(X, Xs), Ys)
↳ PROLOG
↳ PrologToPiTRSProof
↳ PiTRS
↳ DependencyPairsProof
↳ PiDP
↳ DependencyGraphProof
↳ AND
↳ PiDP
↳ UsableRulesProof
↳ PiDP
↳ PiDP
↳ PrologToPiTRSProof
APP_3_IN_AGG3(._22(X, Xs), Ys, ._22(X, Zs)) -> APP_3_IN_AGG3(Xs, Ys, Zs)
rev_2_in_ag2([]_0, []_0) -> rev_2_out_ag2([]_0, []_0)
rev_2_in_ag2(._22(X, Xs), Ys) -> if_rev_2_in_1_ag4(X, Xs, Ys, rev_2_in_aa2(Xs, Zs))
rev_2_in_aa2([]_0, []_0) -> rev_2_out_aa2([]_0, []_0)
rev_2_in_aa2(._22(X, Xs), Ys) -> if_rev_2_in_1_aa4(X, Xs, Ys, rev_2_in_aa2(Xs, Zs))
if_rev_2_in_1_aa4(X, Xs, Ys, rev_2_out_aa2(Xs, Zs)) -> if_rev_2_in_2_aa5(X, Xs, Ys, Zs, app_3_in_aga3(Zs, ._22(X, []_0), Ys))
app_3_in_aga3([]_0, X, X) -> app_3_out_aga3([]_0, X, X)
app_3_in_aga3(._22(X, Xs), Ys, ._22(X, Zs)) -> if_app_3_in_1_aga5(X, Xs, Ys, Zs, app_3_in_aga3(Xs, Ys, Zs))
if_app_3_in_1_aga5(X, Xs, Ys, Zs, app_3_out_aga3(Xs, Ys, Zs)) -> app_3_out_aga3(._22(X, Xs), Ys, ._22(X, Zs))
if_rev_2_in_2_aa5(X, Xs, Ys, Zs, app_3_out_aga3(Zs, ._22(X, []_0), Ys)) -> rev_2_out_aa2(._22(X, Xs), Ys)
if_rev_2_in_1_ag4(X, Xs, Ys, rev_2_out_aa2(Xs, Zs)) -> if_rev_2_in_2_ag5(X, Xs, Ys, Zs, app_3_in_agg3(Zs, ._22(X, []_0), Ys))
app_3_in_agg3([]_0, X, X) -> app_3_out_agg3([]_0, X, X)
app_3_in_agg3(._22(X, Xs), Ys, ._22(X, Zs)) -> if_app_3_in_1_agg5(X, Xs, Ys, Zs, app_3_in_agg3(Xs, Ys, Zs))
if_app_3_in_1_agg5(X, Xs, Ys, Zs, app_3_out_agg3(Xs, Ys, Zs)) -> app_3_out_agg3(._22(X, Xs), Ys, ._22(X, Zs))
if_rev_2_in_2_ag5(X, Xs, Ys, Zs, app_3_out_agg3(Zs, ._22(X, []_0), Ys)) -> rev_2_out_ag2(._22(X, Xs), Ys)
↳ PROLOG
↳ PrologToPiTRSProof
↳ PiTRS
↳ DependencyPairsProof
↳ PiDP
↳ DependencyGraphProof
↳ AND
↳ PiDP
↳ UsableRulesProof
↳ PiDP
↳ PiDPToQDPProof
↳ PiDP
↳ PiDP
↳ PrologToPiTRSProof
APP_3_IN_AGG3(._22(X, Xs), Ys, ._22(X, Zs)) -> APP_3_IN_AGG3(Xs, Ys, Zs)
↳ PROLOG
↳ PrologToPiTRSProof
↳ PiTRS
↳ DependencyPairsProof
↳ PiDP
↳ DependencyGraphProof
↳ AND
↳ PiDP
↳ UsableRulesProof
↳ PiDP
↳ PiDPToQDPProof
↳ QDP
↳ QDPSizeChangeProof
↳ PiDP
↳ PiDP
↳ PrologToPiTRSProof
APP_3_IN_AGG2(Ys, ._21(Zs)) -> APP_3_IN_AGG2(Ys, Zs)
From the DPs we obtained the following set of size-change graphs:
↳ PROLOG
↳ PrologToPiTRSProof
↳ PiTRS
↳ DependencyPairsProof
↳ PiDP
↳ DependencyGraphProof
↳ AND
↳ PiDP
↳ PiDP
↳ UsableRulesProof
↳ PiDP
↳ PrologToPiTRSProof
APP_3_IN_AGA3(._22(X, Xs), Ys, ._22(X, Zs)) -> APP_3_IN_AGA3(Xs, Ys, Zs)
rev_2_in_ag2([]_0, []_0) -> rev_2_out_ag2([]_0, []_0)
rev_2_in_ag2(._22(X, Xs), Ys) -> if_rev_2_in_1_ag4(X, Xs, Ys, rev_2_in_aa2(Xs, Zs))
rev_2_in_aa2([]_0, []_0) -> rev_2_out_aa2([]_0, []_0)
rev_2_in_aa2(._22(X, Xs), Ys) -> if_rev_2_in_1_aa4(X, Xs, Ys, rev_2_in_aa2(Xs, Zs))
if_rev_2_in_1_aa4(X, Xs, Ys, rev_2_out_aa2(Xs, Zs)) -> if_rev_2_in_2_aa5(X, Xs, Ys, Zs, app_3_in_aga3(Zs, ._22(X, []_0), Ys))
app_3_in_aga3([]_0, X, X) -> app_3_out_aga3([]_0, X, X)
app_3_in_aga3(._22(X, Xs), Ys, ._22(X, Zs)) -> if_app_3_in_1_aga5(X, Xs, Ys, Zs, app_3_in_aga3(Xs, Ys, Zs))
if_app_3_in_1_aga5(X, Xs, Ys, Zs, app_3_out_aga3(Xs, Ys, Zs)) -> app_3_out_aga3(._22(X, Xs), Ys, ._22(X, Zs))
if_rev_2_in_2_aa5(X, Xs, Ys, Zs, app_3_out_aga3(Zs, ._22(X, []_0), Ys)) -> rev_2_out_aa2(._22(X, Xs), Ys)
if_rev_2_in_1_ag4(X, Xs, Ys, rev_2_out_aa2(Xs, Zs)) -> if_rev_2_in_2_ag5(X, Xs, Ys, Zs, app_3_in_agg3(Zs, ._22(X, []_0), Ys))
app_3_in_agg3([]_0, X, X) -> app_3_out_agg3([]_0, X, X)
app_3_in_agg3(._22(X, Xs), Ys, ._22(X, Zs)) -> if_app_3_in_1_agg5(X, Xs, Ys, Zs, app_3_in_agg3(Xs, Ys, Zs))
if_app_3_in_1_agg5(X, Xs, Ys, Zs, app_3_out_agg3(Xs, Ys, Zs)) -> app_3_out_agg3(._22(X, Xs), Ys, ._22(X, Zs))
if_rev_2_in_2_ag5(X, Xs, Ys, Zs, app_3_out_agg3(Zs, ._22(X, []_0), Ys)) -> rev_2_out_ag2(._22(X, Xs), Ys)
↳ PROLOG
↳ PrologToPiTRSProof
↳ PiTRS
↳ DependencyPairsProof
↳ PiDP
↳ DependencyGraphProof
↳ AND
↳ PiDP
↳ PiDP
↳ UsableRulesProof
↳ PiDP
↳ PiDPToQDPProof
↳ PiDP
↳ PrologToPiTRSProof
APP_3_IN_AGA3(._22(X, Xs), Ys, ._22(X, Zs)) -> APP_3_IN_AGA3(Xs, Ys, Zs)
↳ PROLOG
↳ PrologToPiTRSProof
↳ PiTRS
↳ DependencyPairsProof
↳ PiDP
↳ DependencyGraphProof
↳ AND
↳ PiDP
↳ PiDP
↳ UsableRulesProof
↳ PiDP
↳ PiDPToQDPProof
↳ QDP
↳ PiDP
↳ PrologToPiTRSProof
APP_3_IN_AGA1(Ys) -> APP_3_IN_AGA1(Ys)
↳ PROLOG
↳ PrologToPiTRSProof
↳ PiTRS
↳ DependencyPairsProof
↳ PiDP
↳ DependencyGraphProof
↳ AND
↳ PiDP
↳ PiDP
↳ PiDP
↳ UsableRulesProof
↳ PrologToPiTRSProof
REV_2_IN_AA2(._22(X, Xs), Ys) -> REV_2_IN_AA2(Xs, Zs)
rev_2_in_ag2([]_0, []_0) -> rev_2_out_ag2([]_0, []_0)
rev_2_in_ag2(._22(X, Xs), Ys) -> if_rev_2_in_1_ag4(X, Xs, Ys, rev_2_in_aa2(Xs, Zs))
rev_2_in_aa2([]_0, []_0) -> rev_2_out_aa2([]_0, []_0)
rev_2_in_aa2(._22(X, Xs), Ys) -> if_rev_2_in_1_aa4(X, Xs, Ys, rev_2_in_aa2(Xs, Zs))
if_rev_2_in_1_aa4(X, Xs, Ys, rev_2_out_aa2(Xs, Zs)) -> if_rev_2_in_2_aa5(X, Xs, Ys, Zs, app_3_in_aga3(Zs, ._22(X, []_0), Ys))
app_3_in_aga3([]_0, X, X) -> app_3_out_aga3([]_0, X, X)
app_3_in_aga3(._22(X, Xs), Ys, ._22(X, Zs)) -> if_app_3_in_1_aga5(X, Xs, Ys, Zs, app_3_in_aga3(Xs, Ys, Zs))
if_app_3_in_1_aga5(X, Xs, Ys, Zs, app_3_out_aga3(Xs, Ys, Zs)) -> app_3_out_aga3(._22(X, Xs), Ys, ._22(X, Zs))
if_rev_2_in_2_aa5(X, Xs, Ys, Zs, app_3_out_aga3(Zs, ._22(X, []_0), Ys)) -> rev_2_out_aa2(._22(X, Xs), Ys)
if_rev_2_in_1_ag4(X, Xs, Ys, rev_2_out_aa2(Xs, Zs)) -> if_rev_2_in_2_ag5(X, Xs, Ys, Zs, app_3_in_agg3(Zs, ._22(X, []_0), Ys))
app_3_in_agg3([]_0, X, X) -> app_3_out_agg3([]_0, X, X)
app_3_in_agg3(._22(X, Xs), Ys, ._22(X, Zs)) -> if_app_3_in_1_agg5(X, Xs, Ys, Zs, app_3_in_agg3(Xs, Ys, Zs))
if_app_3_in_1_agg5(X, Xs, Ys, Zs, app_3_out_agg3(Xs, Ys, Zs)) -> app_3_out_agg3(._22(X, Xs), Ys, ._22(X, Zs))
if_rev_2_in_2_ag5(X, Xs, Ys, Zs, app_3_out_agg3(Zs, ._22(X, []_0), Ys)) -> rev_2_out_ag2(._22(X, Xs), Ys)
↳ PROLOG
↳ PrologToPiTRSProof
↳ PiTRS
↳ DependencyPairsProof
↳ PiDP
↳ DependencyGraphProof
↳ AND
↳ PiDP
↳ PiDP
↳ PiDP
↳ UsableRulesProof
↳ PiDP
↳ PiDPToQDPProof
↳ PrologToPiTRSProof
REV_2_IN_AA2(._22(X, Xs), Ys) -> REV_2_IN_AA2(Xs, Zs)
↳ PROLOG
↳ PrologToPiTRSProof
↳ PiTRS
↳ DependencyPairsProof
↳ PiDP
↳ DependencyGraphProof
↳ AND
↳ PiDP
↳ PiDP
↳ PiDP
↳ UsableRulesProof
↳ PiDP
↳ PiDPToQDPProof
↳ QDP
↳ PrologToPiTRSProof
REV_2_IN_AA -> REV_2_IN_AA
rev_2_in_ag2([]_0, []_0) -> rev_2_out_ag2([]_0, []_0)
rev_2_in_ag2(._22(X, Xs), Ys) -> if_rev_2_in_1_ag4(X, Xs, Ys, rev_2_in_aa2(Xs, Zs))
rev_2_in_aa2([]_0, []_0) -> rev_2_out_aa2([]_0, []_0)
rev_2_in_aa2(._22(X, Xs), Ys) -> if_rev_2_in_1_aa4(X, Xs, Ys, rev_2_in_aa2(Xs, Zs))
if_rev_2_in_1_aa4(X, Xs, Ys, rev_2_out_aa2(Xs, Zs)) -> if_rev_2_in_2_aa5(X, Xs, Ys, Zs, app_3_in_aga3(Zs, ._22(X, []_0), Ys))
app_3_in_aga3([]_0, X, X) -> app_3_out_aga3([]_0, X, X)
app_3_in_aga3(._22(X, Xs), Ys, ._22(X, Zs)) -> if_app_3_in_1_aga5(X, Xs, Ys, Zs, app_3_in_aga3(Xs, Ys, Zs))
if_app_3_in_1_aga5(X, Xs, Ys, Zs, app_3_out_aga3(Xs, Ys, Zs)) -> app_3_out_aga3(._22(X, Xs), Ys, ._22(X, Zs))
if_rev_2_in_2_aa5(X, Xs, Ys, Zs, app_3_out_aga3(Zs, ._22(X, []_0), Ys)) -> rev_2_out_aa2(._22(X, Xs), Ys)
if_rev_2_in_1_ag4(X, Xs, Ys, rev_2_out_aa2(Xs, Zs)) -> if_rev_2_in_2_ag5(X, Xs, Ys, Zs, app_3_in_agg3(Zs, ._22(X, []_0), Ys))
app_3_in_agg3([]_0, X, X) -> app_3_out_agg3([]_0, X, X)
app_3_in_agg3(._22(X, Xs), Ys, ._22(X, Zs)) -> if_app_3_in_1_agg5(X, Xs, Ys, Zs, app_3_in_agg3(Xs, Ys, Zs))
if_app_3_in_1_agg5(X, Xs, Ys, Zs, app_3_out_agg3(Xs, Ys, Zs)) -> app_3_out_agg3(._22(X, Xs), Ys, ._22(X, Zs))
if_rev_2_in_2_ag5(X, Xs, Ys, Zs, app_3_out_agg3(Zs, ._22(X, []_0), Ys)) -> rev_2_out_ag2(._22(X, Xs), Ys)
Infinitary Constructor Rewriting Termination of PiTRS implies Termination of PROLOG
↳ PROLOG
↳ PrologToPiTRSProof
↳ PrologToPiTRSProof
↳ PiTRS
↳ DependencyPairsProof
rev_2_in_ag2([]_0, []_0) -> rev_2_out_ag2([]_0, []_0)
rev_2_in_ag2(._22(X, Xs), Ys) -> if_rev_2_in_1_ag4(X, Xs, Ys, rev_2_in_aa2(Xs, Zs))
rev_2_in_aa2([]_0, []_0) -> rev_2_out_aa2([]_0, []_0)
rev_2_in_aa2(._22(X, Xs), Ys) -> if_rev_2_in_1_aa4(X, Xs, Ys, rev_2_in_aa2(Xs, Zs))
if_rev_2_in_1_aa4(X, Xs, Ys, rev_2_out_aa2(Xs, Zs)) -> if_rev_2_in_2_aa5(X, Xs, Ys, Zs, app_3_in_aga3(Zs, ._22(X, []_0), Ys))
app_3_in_aga3([]_0, X, X) -> app_3_out_aga3([]_0, X, X)
app_3_in_aga3(._22(X, Xs), Ys, ._22(X, Zs)) -> if_app_3_in_1_aga5(X, Xs, Ys, Zs, app_3_in_aga3(Xs, Ys, Zs))
if_app_3_in_1_aga5(X, Xs, Ys, Zs, app_3_out_aga3(Xs, Ys, Zs)) -> app_3_out_aga3(._22(X, Xs), Ys, ._22(X, Zs))
if_rev_2_in_2_aa5(X, Xs, Ys, Zs, app_3_out_aga3(Zs, ._22(X, []_0), Ys)) -> rev_2_out_aa2(._22(X, Xs), Ys)
if_rev_2_in_1_ag4(X, Xs, Ys, rev_2_out_aa2(Xs, Zs)) -> if_rev_2_in_2_ag5(X, Xs, Ys, Zs, app_3_in_agg3(Zs, ._22(X, []_0), Ys))
app_3_in_agg3([]_0, X, X) -> app_3_out_agg3([]_0, X, X)
app_3_in_agg3(._22(X, Xs), Ys, ._22(X, Zs)) -> if_app_3_in_1_agg5(X, Xs, Ys, Zs, app_3_in_agg3(Xs, Ys, Zs))
if_app_3_in_1_agg5(X, Xs, Ys, Zs, app_3_out_agg3(Xs, Ys, Zs)) -> app_3_out_agg3(._22(X, Xs), Ys, ._22(X, Zs))
if_rev_2_in_2_ag5(X, Xs, Ys, Zs, app_3_out_agg3(Zs, ._22(X, []_0), Ys)) -> rev_2_out_ag2(._22(X, Xs), Ys)
REV_2_IN_AG2(._22(X, Xs), Ys) -> IF_REV_2_IN_1_AG4(X, Xs, Ys, rev_2_in_aa2(Xs, Zs))
REV_2_IN_AG2(._22(X, Xs), Ys) -> REV_2_IN_AA2(Xs, Zs)
REV_2_IN_AA2(._22(X, Xs), Ys) -> IF_REV_2_IN_1_AA4(X, Xs, Ys, rev_2_in_aa2(Xs, Zs))
REV_2_IN_AA2(._22(X, Xs), Ys) -> REV_2_IN_AA2(Xs, Zs)
IF_REV_2_IN_1_AA4(X, Xs, Ys, rev_2_out_aa2(Xs, Zs)) -> IF_REV_2_IN_2_AA5(X, Xs, Ys, Zs, app_3_in_aga3(Zs, ._22(X, []_0), Ys))
IF_REV_2_IN_1_AA4(X, Xs, Ys, rev_2_out_aa2(Xs, Zs)) -> APP_3_IN_AGA3(Zs, ._22(X, []_0), Ys)
APP_3_IN_AGA3(._22(X, Xs), Ys, ._22(X, Zs)) -> IF_APP_3_IN_1_AGA5(X, Xs, Ys, Zs, app_3_in_aga3(Xs, Ys, Zs))
APP_3_IN_AGA3(._22(X, Xs), Ys, ._22(X, Zs)) -> APP_3_IN_AGA3(Xs, Ys, Zs)
IF_REV_2_IN_1_AG4(X, Xs, Ys, rev_2_out_aa2(Xs, Zs)) -> IF_REV_2_IN_2_AG5(X, Xs, Ys, Zs, app_3_in_agg3(Zs, ._22(X, []_0), Ys))
IF_REV_2_IN_1_AG4(X, Xs, Ys, rev_2_out_aa2(Xs, Zs)) -> APP_3_IN_AGG3(Zs, ._22(X, []_0), Ys)
APP_3_IN_AGG3(._22(X, Xs), Ys, ._22(X, Zs)) -> IF_APP_3_IN_1_AGG5(X, Xs, Ys, Zs, app_3_in_agg3(Xs, Ys, Zs))
APP_3_IN_AGG3(._22(X, Xs), Ys, ._22(X, Zs)) -> APP_3_IN_AGG3(Xs, Ys, Zs)
rev_2_in_ag2([]_0, []_0) -> rev_2_out_ag2([]_0, []_0)
rev_2_in_ag2(._22(X, Xs), Ys) -> if_rev_2_in_1_ag4(X, Xs, Ys, rev_2_in_aa2(Xs, Zs))
rev_2_in_aa2([]_0, []_0) -> rev_2_out_aa2([]_0, []_0)
rev_2_in_aa2(._22(X, Xs), Ys) -> if_rev_2_in_1_aa4(X, Xs, Ys, rev_2_in_aa2(Xs, Zs))
if_rev_2_in_1_aa4(X, Xs, Ys, rev_2_out_aa2(Xs, Zs)) -> if_rev_2_in_2_aa5(X, Xs, Ys, Zs, app_3_in_aga3(Zs, ._22(X, []_0), Ys))
app_3_in_aga3([]_0, X, X) -> app_3_out_aga3([]_0, X, X)
app_3_in_aga3(._22(X, Xs), Ys, ._22(X, Zs)) -> if_app_3_in_1_aga5(X, Xs, Ys, Zs, app_3_in_aga3(Xs, Ys, Zs))
if_app_3_in_1_aga5(X, Xs, Ys, Zs, app_3_out_aga3(Xs, Ys, Zs)) -> app_3_out_aga3(._22(X, Xs), Ys, ._22(X, Zs))
if_rev_2_in_2_aa5(X, Xs, Ys, Zs, app_3_out_aga3(Zs, ._22(X, []_0), Ys)) -> rev_2_out_aa2(._22(X, Xs), Ys)
if_rev_2_in_1_ag4(X, Xs, Ys, rev_2_out_aa2(Xs, Zs)) -> if_rev_2_in_2_ag5(X, Xs, Ys, Zs, app_3_in_agg3(Zs, ._22(X, []_0), Ys))
app_3_in_agg3([]_0, X, X) -> app_3_out_agg3([]_0, X, X)
app_3_in_agg3(._22(X, Xs), Ys, ._22(X, Zs)) -> if_app_3_in_1_agg5(X, Xs, Ys, Zs, app_3_in_agg3(Xs, Ys, Zs))
if_app_3_in_1_agg5(X, Xs, Ys, Zs, app_3_out_agg3(Xs, Ys, Zs)) -> app_3_out_agg3(._22(X, Xs), Ys, ._22(X, Zs))
if_rev_2_in_2_ag5(X, Xs, Ys, Zs, app_3_out_agg3(Zs, ._22(X, []_0), Ys)) -> rev_2_out_ag2(._22(X, Xs), Ys)
↳ PROLOG
↳ PrologToPiTRSProof
↳ PrologToPiTRSProof
↳ PiTRS
↳ DependencyPairsProof
↳ PiDP
↳ DependencyGraphProof
REV_2_IN_AG2(._22(X, Xs), Ys) -> IF_REV_2_IN_1_AG4(X, Xs, Ys, rev_2_in_aa2(Xs, Zs))
REV_2_IN_AG2(._22(X, Xs), Ys) -> REV_2_IN_AA2(Xs, Zs)
REV_2_IN_AA2(._22(X, Xs), Ys) -> IF_REV_2_IN_1_AA4(X, Xs, Ys, rev_2_in_aa2(Xs, Zs))
REV_2_IN_AA2(._22(X, Xs), Ys) -> REV_2_IN_AA2(Xs, Zs)
IF_REV_2_IN_1_AA4(X, Xs, Ys, rev_2_out_aa2(Xs, Zs)) -> IF_REV_2_IN_2_AA5(X, Xs, Ys, Zs, app_3_in_aga3(Zs, ._22(X, []_0), Ys))
IF_REV_2_IN_1_AA4(X, Xs, Ys, rev_2_out_aa2(Xs, Zs)) -> APP_3_IN_AGA3(Zs, ._22(X, []_0), Ys)
APP_3_IN_AGA3(._22(X, Xs), Ys, ._22(X, Zs)) -> IF_APP_3_IN_1_AGA5(X, Xs, Ys, Zs, app_3_in_aga3(Xs, Ys, Zs))
APP_3_IN_AGA3(._22(X, Xs), Ys, ._22(X, Zs)) -> APP_3_IN_AGA3(Xs, Ys, Zs)
IF_REV_2_IN_1_AG4(X, Xs, Ys, rev_2_out_aa2(Xs, Zs)) -> IF_REV_2_IN_2_AG5(X, Xs, Ys, Zs, app_3_in_agg3(Zs, ._22(X, []_0), Ys))
IF_REV_2_IN_1_AG4(X, Xs, Ys, rev_2_out_aa2(Xs, Zs)) -> APP_3_IN_AGG3(Zs, ._22(X, []_0), Ys)
APP_3_IN_AGG3(._22(X, Xs), Ys, ._22(X, Zs)) -> IF_APP_3_IN_1_AGG5(X, Xs, Ys, Zs, app_3_in_agg3(Xs, Ys, Zs))
APP_3_IN_AGG3(._22(X, Xs), Ys, ._22(X, Zs)) -> APP_3_IN_AGG3(Xs, Ys, Zs)
rev_2_in_ag2([]_0, []_0) -> rev_2_out_ag2([]_0, []_0)
rev_2_in_ag2(._22(X, Xs), Ys) -> if_rev_2_in_1_ag4(X, Xs, Ys, rev_2_in_aa2(Xs, Zs))
rev_2_in_aa2([]_0, []_0) -> rev_2_out_aa2([]_0, []_0)
rev_2_in_aa2(._22(X, Xs), Ys) -> if_rev_2_in_1_aa4(X, Xs, Ys, rev_2_in_aa2(Xs, Zs))
if_rev_2_in_1_aa4(X, Xs, Ys, rev_2_out_aa2(Xs, Zs)) -> if_rev_2_in_2_aa5(X, Xs, Ys, Zs, app_3_in_aga3(Zs, ._22(X, []_0), Ys))
app_3_in_aga3([]_0, X, X) -> app_3_out_aga3([]_0, X, X)
app_3_in_aga3(._22(X, Xs), Ys, ._22(X, Zs)) -> if_app_3_in_1_aga5(X, Xs, Ys, Zs, app_3_in_aga3(Xs, Ys, Zs))
if_app_3_in_1_aga5(X, Xs, Ys, Zs, app_3_out_aga3(Xs, Ys, Zs)) -> app_3_out_aga3(._22(X, Xs), Ys, ._22(X, Zs))
if_rev_2_in_2_aa5(X, Xs, Ys, Zs, app_3_out_aga3(Zs, ._22(X, []_0), Ys)) -> rev_2_out_aa2(._22(X, Xs), Ys)
if_rev_2_in_1_ag4(X, Xs, Ys, rev_2_out_aa2(Xs, Zs)) -> if_rev_2_in_2_ag5(X, Xs, Ys, Zs, app_3_in_agg3(Zs, ._22(X, []_0), Ys))
app_3_in_agg3([]_0, X, X) -> app_3_out_agg3([]_0, X, X)
app_3_in_agg3(._22(X, Xs), Ys, ._22(X, Zs)) -> if_app_3_in_1_agg5(X, Xs, Ys, Zs, app_3_in_agg3(Xs, Ys, Zs))
if_app_3_in_1_agg5(X, Xs, Ys, Zs, app_3_out_agg3(Xs, Ys, Zs)) -> app_3_out_agg3(._22(X, Xs), Ys, ._22(X, Zs))
if_rev_2_in_2_ag5(X, Xs, Ys, Zs, app_3_out_agg3(Zs, ._22(X, []_0), Ys)) -> rev_2_out_ag2(._22(X, Xs), Ys)
↳ PROLOG
↳ PrologToPiTRSProof
↳ PrologToPiTRSProof
↳ PiTRS
↳ DependencyPairsProof
↳ PiDP
↳ DependencyGraphProof
↳ AND
↳ PiDP
↳ UsableRulesProof
↳ PiDP
↳ PiDP
APP_3_IN_AGG3(._22(X, Xs), Ys, ._22(X, Zs)) -> APP_3_IN_AGG3(Xs, Ys, Zs)
rev_2_in_ag2([]_0, []_0) -> rev_2_out_ag2([]_0, []_0)
rev_2_in_ag2(._22(X, Xs), Ys) -> if_rev_2_in_1_ag4(X, Xs, Ys, rev_2_in_aa2(Xs, Zs))
rev_2_in_aa2([]_0, []_0) -> rev_2_out_aa2([]_0, []_0)
rev_2_in_aa2(._22(X, Xs), Ys) -> if_rev_2_in_1_aa4(X, Xs, Ys, rev_2_in_aa2(Xs, Zs))
if_rev_2_in_1_aa4(X, Xs, Ys, rev_2_out_aa2(Xs, Zs)) -> if_rev_2_in_2_aa5(X, Xs, Ys, Zs, app_3_in_aga3(Zs, ._22(X, []_0), Ys))
app_3_in_aga3([]_0, X, X) -> app_3_out_aga3([]_0, X, X)
app_3_in_aga3(._22(X, Xs), Ys, ._22(X, Zs)) -> if_app_3_in_1_aga5(X, Xs, Ys, Zs, app_3_in_aga3(Xs, Ys, Zs))
if_app_3_in_1_aga5(X, Xs, Ys, Zs, app_3_out_aga3(Xs, Ys, Zs)) -> app_3_out_aga3(._22(X, Xs), Ys, ._22(X, Zs))
if_rev_2_in_2_aa5(X, Xs, Ys, Zs, app_3_out_aga3(Zs, ._22(X, []_0), Ys)) -> rev_2_out_aa2(._22(X, Xs), Ys)
if_rev_2_in_1_ag4(X, Xs, Ys, rev_2_out_aa2(Xs, Zs)) -> if_rev_2_in_2_ag5(X, Xs, Ys, Zs, app_3_in_agg3(Zs, ._22(X, []_0), Ys))
app_3_in_agg3([]_0, X, X) -> app_3_out_agg3([]_0, X, X)
app_3_in_agg3(._22(X, Xs), Ys, ._22(X, Zs)) -> if_app_3_in_1_agg5(X, Xs, Ys, Zs, app_3_in_agg3(Xs, Ys, Zs))
if_app_3_in_1_agg5(X, Xs, Ys, Zs, app_3_out_agg3(Xs, Ys, Zs)) -> app_3_out_agg3(._22(X, Xs), Ys, ._22(X, Zs))
if_rev_2_in_2_ag5(X, Xs, Ys, Zs, app_3_out_agg3(Zs, ._22(X, []_0), Ys)) -> rev_2_out_ag2(._22(X, Xs), Ys)
↳ PROLOG
↳ PrologToPiTRSProof
↳ PrologToPiTRSProof
↳ PiTRS
↳ DependencyPairsProof
↳ PiDP
↳ DependencyGraphProof
↳ AND
↳ PiDP
↳ UsableRulesProof
↳ PiDP
↳ PiDP
↳ PiDP
APP_3_IN_AGG3(._22(X, Xs), Ys, ._22(X, Zs)) -> APP_3_IN_AGG3(Xs, Ys, Zs)
↳ PROLOG
↳ PrologToPiTRSProof
↳ PrologToPiTRSProof
↳ PiTRS
↳ DependencyPairsProof
↳ PiDP
↳ DependencyGraphProof
↳ AND
↳ PiDP
↳ PiDP
↳ UsableRulesProof
↳ PiDP
APP_3_IN_AGA3(._22(X, Xs), Ys, ._22(X, Zs)) -> APP_3_IN_AGA3(Xs, Ys, Zs)
rev_2_in_ag2([]_0, []_0) -> rev_2_out_ag2([]_0, []_0)
rev_2_in_ag2(._22(X, Xs), Ys) -> if_rev_2_in_1_ag4(X, Xs, Ys, rev_2_in_aa2(Xs, Zs))
rev_2_in_aa2([]_0, []_0) -> rev_2_out_aa2([]_0, []_0)
rev_2_in_aa2(._22(X, Xs), Ys) -> if_rev_2_in_1_aa4(X, Xs, Ys, rev_2_in_aa2(Xs, Zs))
if_rev_2_in_1_aa4(X, Xs, Ys, rev_2_out_aa2(Xs, Zs)) -> if_rev_2_in_2_aa5(X, Xs, Ys, Zs, app_3_in_aga3(Zs, ._22(X, []_0), Ys))
app_3_in_aga3([]_0, X, X) -> app_3_out_aga3([]_0, X, X)
app_3_in_aga3(._22(X, Xs), Ys, ._22(X, Zs)) -> if_app_3_in_1_aga5(X, Xs, Ys, Zs, app_3_in_aga3(Xs, Ys, Zs))
if_app_3_in_1_aga5(X, Xs, Ys, Zs, app_3_out_aga3(Xs, Ys, Zs)) -> app_3_out_aga3(._22(X, Xs), Ys, ._22(X, Zs))
if_rev_2_in_2_aa5(X, Xs, Ys, Zs, app_3_out_aga3(Zs, ._22(X, []_0), Ys)) -> rev_2_out_aa2(._22(X, Xs), Ys)
if_rev_2_in_1_ag4(X, Xs, Ys, rev_2_out_aa2(Xs, Zs)) -> if_rev_2_in_2_ag5(X, Xs, Ys, Zs, app_3_in_agg3(Zs, ._22(X, []_0), Ys))
app_3_in_agg3([]_0, X, X) -> app_3_out_agg3([]_0, X, X)
app_3_in_agg3(._22(X, Xs), Ys, ._22(X, Zs)) -> if_app_3_in_1_agg5(X, Xs, Ys, Zs, app_3_in_agg3(Xs, Ys, Zs))
if_app_3_in_1_agg5(X, Xs, Ys, Zs, app_3_out_agg3(Xs, Ys, Zs)) -> app_3_out_agg3(._22(X, Xs), Ys, ._22(X, Zs))
if_rev_2_in_2_ag5(X, Xs, Ys, Zs, app_3_out_agg3(Zs, ._22(X, []_0), Ys)) -> rev_2_out_ag2(._22(X, Xs), Ys)
↳ PROLOG
↳ PrologToPiTRSProof
↳ PrologToPiTRSProof
↳ PiTRS
↳ DependencyPairsProof
↳ PiDP
↳ DependencyGraphProof
↳ AND
↳ PiDP
↳ PiDP
↳ UsableRulesProof
↳ PiDP
↳ PiDP
APP_3_IN_AGA3(._22(X, Xs), Ys, ._22(X, Zs)) -> APP_3_IN_AGA3(Xs, Ys, Zs)
↳ PROLOG
↳ PrologToPiTRSProof
↳ PrologToPiTRSProof
↳ PiTRS
↳ DependencyPairsProof
↳ PiDP
↳ DependencyGraphProof
↳ AND
↳ PiDP
↳ PiDP
↳ PiDP
REV_2_IN_AA2(._22(X, Xs), Ys) -> REV_2_IN_AA2(Xs, Zs)
rev_2_in_ag2([]_0, []_0) -> rev_2_out_ag2([]_0, []_0)
rev_2_in_ag2(._22(X, Xs), Ys) -> if_rev_2_in_1_ag4(X, Xs, Ys, rev_2_in_aa2(Xs, Zs))
rev_2_in_aa2([]_0, []_0) -> rev_2_out_aa2([]_0, []_0)
rev_2_in_aa2(._22(X, Xs), Ys) -> if_rev_2_in_1_aa4(X, Xs, Ys, rev_2_in_aa2(Xs, Zs))
if_rev_2_in_1_aa4(X, Xs, Ys, rev_2_out_aa2(Xs, Zs)) -> if_rev_2_in_2_aa5(X, Xs, Ys, Zs, app_3_in_aga3(Zs, ._22(X, []_0), Ys))
app_3_in_aga3([]_0, X, X) -> app_3_out_aga3([]_0, X, X)
app_3_in_aga3(._22(X, Xs), Ys, ._22(X, Zs)) -> if_app_3_in_1_aga5(X, Xs, Ys, Zs, app_3_in_aga3(Xs, Ys, Zs))
if_app_3_in_1_aga5(X, Xs, Ys, Zs, app_3_out_aga3(Xs, Ys, Zs)) -> app_3_out_aga3(._22(X, Xs), Ys, ._22(X, Zs))
if_rev_2_in_2_aa5(X, Xs, Ys, Zs, app_3_out_aga3(Zs, ._22(X, []_0), Ys)) -> rev_2_out_aa2(._22(X, Xs), Ys)
if_rev_2_in_1_ag4(X, Xs, Ys, rev_2_out_aa2(Xs, Zs)) -> if_rev_2_in_2_ag5(X, Xs, Ys, Zs, app_3_in_agg3(Zs, ._22(X, []_0), Ys))
app_3_in_agg3([]_0, X, X) -> app_3_out_agg3([]_0, X, X)
app_3_in_agg3(._22(X, Xs), Ys, ._22(X, Zs)) -> if_app_3_in_1_agg5(X, Xs, Ys, Zs, app_3_in_agg3(Xs, Ys, Zs))
if_app_3_in_1_agg5(X, Xs, Ys, Zs, app_3_out_agg3(Xs, Ys, Zs)) -> app_3_out_agg3(._22(X, Xs), Ys, ._22(X, Zs))
if_rev_2_in_2_ag5(X, Xs, Ys, Zs, app_3_out_agg3(Zs, ._22(X, []_0), Ys)) -> rev_2_out_ag2(._22(X, Xs), Ys)