0 Prolog
↳1 PrologToPiTRSProof (⇐)
↳2 PiTRS
↳3 DependencyPairsProof (⇔)
↳4 PiDP
↳5 DependencyGraphProof (⇔)
↳6 AND
↳7 PiDP
↳8 UsableRulesProof (⇔)
↳9 PiDP
↳10 PiDPToQDPProof (⇐)
↳11 QDP
↳12 QDPSizeChangeProof (⇔)
↳13 TRUE
↳14 PiDP
↳15 UsableRulesProof (⇔)
↳16 PiDP
↳17 PiDPToQDPProof (⇐)
↳18 QDP
↳19 Instantiation (⇔)
↳20 QDP
↳21 Narrowing (⇐)
↳22 QDP
↳23 Narrowing (⇐)
↳24 QDP
↳25 Narrowing (⇐)
↳26 QDP
↳27 Narrowing (⇐)
↳28 QDP
↳29 Instantiation (⇔)
↳30 QDP
↳31 Instantiation (⇔)
↳32 QDP
↳33 Instantiation (⇔)
↳34 QDP
↳35 Instantiation (⇔)
↳36 QDP
↳37 Instantiation (⇔)
↳38 QDP
↳39 Instantiation (⇔)
↳40 QDP
↳41 Instantiation (⇔)
↳42 QDP
↳43 Instantiation (⇔)
↳44 QDP
↳45 Instantiation (⇔)
↳46 QDP
↳47 Instantiation (⇔)
↳48 QDP
↳49 Instantiation (⇔)
↳50 QDP
↳51 Instantiation (⇔)
↳52 QDP
↳53 ForwardInstantiation (⇔)
↳54 QDP
↳55 ForwardInstantiation (⇔)
↳56 QDP
↳57 ForwardInstantiation (⇔)
↳58 QDP
↳59 ForwardInstantiation (⇔)
↳60 QDP
↳61 ForwardInstantiation (⇔)
↳62 QDP
↳63 ForwardInstantiation (⇔)
↳64 QDP
↳65 PrologToPiTRSProof (⇐)
↳66 PiTRS
↳67 DependencyPairsProof (⇔)
↳68 PiDP
↳69 DependencyGraphProof (⇔)
↳70 AND
↳71 PiDP
↳72 UsableRulesProof (⇔)
↳73 PiDP
↳74 PiDPToQDPProof (⇐)
↳75 QDP
↳76 QDPSizeChangeProof (⇔)
↳77 TRUE
↳78 PiDP
↳79 UsableRulesProof (⇔)
↳80 PiDP
↳81 PiDPToQDPProof (⇐)
↳82 QDP
↳83 Instantiation (⇔)
↳84 QDP
↳85 Narrowing (⇐)
↳86 QDP
↳87 Narrowing (⇐)
↳88 QDP
↳89 Narrowing (⇐)
↳90 QDP
↳91 Narrowing (⇐)
↳92 QDP
↳93 Instantiation (⇔)
↳94 QDP
↳95 Instantiation (⇔)
↳96 QDP
↳97 Instantiation (⇔)
↳98 QDP
↳99 Instantiation (⇔)
↳100 QDP
↳101 Instantiation (⇔)
↳102 QDP
↳103 Instantiation (⇔)
↳104 QDP
↳105 Instantiation (⇔)
↳106 QDP
↳107 Instantiation (⇔)
↳108 QDP
↳109 Instantiation (⇔)
↳110 QDP
↳111 Instantiation (⇔)
↳112 QDP
↳113 Instantiation (⇔)
↳114 QDP
↳115 Instantiation (⇔)
↳116 QDP
↳117 ForwardInstantiation (⇔)
↳118 QDP
↳119 ForwardInstantiation (⇔)
↳120 QDP
↳121 ForwardInstantiation (⇔)
↳122 QDP
↳123 ForwardInstantiation (⇔)
↳124 QDP
↳125 ForwardInstantiation (⇔)
↳126 QDP
↳127 ForwardInstantiation (⇔)
↳128 QDP
↳129 NonTerminationProof (⇔)
↳130 FALSE
turing_in_ggga(t(X, Y, Z), S, P, t(X, Y, Z)) → U2_ggga(X, Y, Z, S, P, member_in_ag(p(S, Y, halt, W, D), P))
member_in_ag(H, .(H, L)) → member_out_ag(H, .(H, L))
member_in_ag(X, .(H, L)) → U1_ag(X, H, L, member_in_ag(X, L))
U1_ag(X, H, L, member_out_ag(X, L)) → member_out_ag(X, .(H, L))
U2_ggga(X, Y, Z, S, P, member_out_ag(p(S, Y, halt, W, D), P)) → turing_out_ggga(t(X, Y, Z), S, P, t(X, Y, Z))
turing_in_ggga(t(X, Y, .(R, L)), S, P, T) → U3_ggga(X, Y, R, L, S, P, T, member_in_ag(p(S, Y, S1, W, r), P))
U3_ggga(X, Y, R, L, S, P, T, member_out_ag(p(S, Y, S1, W, r), P)) → U4_ggga(X, Y, R, L, S, P, T, turing_in_gaga(t(.(W, X), R, L), S1, P, T))
turing_in_gaga(t(X, Y, Z), S, P, t(X, Y, Z)) → U2_gaga(X, Y, Z, S, P, member_in_ag(p(S, Y, halt, W, D), P))
U2_gaga(X, Y, Z, S, P, member_out_ag(p(S, Y, halt, W, D), P)) → turing_out_gaga(t(X, Y, Z), S, P, t(X, Y, Z))
turing_in_gaga(t(X, Y, .(R, L)), S, P, T) → U3_gaga(X, Y, R, L, S, P, T, member_in_ag(p(S, Y, S1, W, r), P))
U3_gaga(X, Y, R, L, S, P, T, member_out_ag(p(S, Y, S1, W, r), P)) → U4_gaga(X, Y, R, L, S, P, T, turing_in_gaga(t(.(W, X), R, L), S1, P, T))
turing_in_gaga(t(X, Y, []), S, P, T) → U5_gaga(X, Y, S, P, T, member_in_ag(p(S, Y, S1, W, r), P))
U5_gaga(X, Y, S, P, T, member_out_ag(p(S, Y, S1, W, r), P)) → U6_gaga(X, Y, S, P, T, turing_in_gaga(t(.(W, X), space, []), S1, P, T))
turing_in_gaga(t(.(X, L), Y, R), S, P, T) → U7_gaga(X, L, Y, R, S, P, T, member_in_ag(p(S, Y, S1, W, l), P))
U7_gaga(X, L, Y, R, S, P, T, member_out_ag(p(S, Y, S1, W, l), P)) → U8_gaga(X, L, Y, R, S, P, T, turing_in_gaga(t(L, X, .(W, R)), S1, P, T))
turing_in_gaga(t([], Y, R), S, P, T) → U9_gaga(Y, R, S, P, T, member_in_ag(p(S, Y, S1, W, l), P))
U9_gaga(Y, R, S, P, T, member_out_ag(p(S, Y, S1, W, l), P)) → U10_gaga(Y, R, S, P, T, turing_in_gaga(t([], space, .(W, R)), S1, P, T))
U10_gaga(Y, R, S, P, T, turing_out_gaga(t([], space, .(W, R)), S1, P, T)) → turing_out_gaga(t([], Y, R), S, P, T)
U8_gaga(X, L, Y, R, S, P, T, turing_out_gaga(t(L, X, .(W, R)), S1, P, T)) → turing_out_gaga(t(.(X, L), Y, R), S, P, T)
U6_gaga(X, Y, S, P, T, turing_out_gaga(t(.(W, X), space, []), S1, P, T)) → turing_out_gaga(t(X, Y, []), S, P, T)
U4_gaga(X, Y, R, L, S, P, T, turing_out_gaga(t(.(W, X), R, L), S1, P, T)) → turing_out_gaga(t(X, Y, .(R, L)), S, P, T)
U4_ggga(X, Y, R, L, S, P, T, turing_out_gaga(t(.(W, X), R, L), S1, P, T)) → turing_out_ggga(t(X, Y, .(R, L)), S, P, T)
turing_in_ggga(t(X, Y, []), S, P, T) → U5_ggga(X, Y, S, P, T, member_in_ag(p(S, Y, S1, W, r), P))
U5_ggga(X, Y, S, P, T, member_out_ag(p(S, Y, S1, W, r), P)) → U6_ggga(X, Y, S, P, T, turing_in_gaga(t(.(W, X), space, []), S1, P, T))
U6_ggga(X, Y, S, P, T, turing_out_gaga(t(.(W, X), space, []), S1, P, T)) → turing_out_ggga(t(X, Y, []), S, P, T)
turing_in_ggga(t(.(X, L), Y, R), S, P, T) → U7_ggga(X, L, Y, R, S, P, T, member_in_ag(p(S, Y, S1, W, l), P))
U7_ggga(X, L, Y, R, S, P, T, member_out_ag(p(S, Y, S1, W, l), P)) → U8_ggga(X, L, Y, R, S, P, T, turing_in_gaga(t(L, X, .(W, R)), S1, P, T))
U8_ggga(X, L, Y, R, S, P, T, turing_out_gaga(t(L, X, .(W, R)), S1, P, T)) → turing_out_ggga(t(.(X, L), Y, R), S, P, T)
turing_in_ggga(t([], Y, R), S, P, T) → U9_ggga(Y, R, S, P, T, member_in_ag(p(S, Y, S1, W, l), P))
U9_ggga(Y, R, S, P, T, member_out_ag(p(S, Y, S1, W, l), P)) → U10_ggga(Y, R, S, P, T, turing_in_gaga(t([], space, .(W, R)), S1, P, T))
U10_ggga(Y, R, S, P, T, turing_out_gaga(t([], space, .(W, R)), S1, P, T)) → turing_out_ggga(t([], Y, R), S, P, T)
Infinitary Constructor Rewriting Termination of PiTRS implies Termination of Prolog
turing_in_ggga(t(X, Y, Z), S, P, t(X, Y, Z)) → U2_ggga(X, Y, Z, S, P, member_in_ag(p(S, Y, halt, W, D), P))
member_in_ag(H, .(H, L)) → member_out_ag(H, .(H, L))
member_in_ag(X, .(H, L)) → U1_ag(X, H, L, member_in_ag(X, L))
U1_ag(X, H, L, member_out_ag(X, L)) → member_out_ag(X, .(H, L))
U2_ggga(X, Y, Z, S, P, member_out_ag(p(S, Y, halt, W, D), P)) → turing_out_ggga(t(X, Y, Z), S, P, t(X, Y, Z))
turing_in_ggga(t(X, Y, .(R, L)), S, P, T) → U3_ggga(X, Y, R, L, S, P, T, member_in_ag(p(S, Y, S1, W, r), P))
U3_ggga(X, Y, R, L, S, P, T, member_out_ag(p(S, Y, S1, W, r), P)) → U4_ggga(X, Y, R, L, S, P, T, turing_in_gaga(t(.(W, X), R, L), S1, P, T))
turing_in_gaga(t(X, Y, Z), S, P, t(X, Y, Z)) → U2_gaga(X, Y, Z, S, P, member_in_ag(p(S, Y, halt, W, D), P))
U2_gaga(X, Y, Z, S, P, member_out_ag(p(S, Y, halt, W, D), P)) → turing_out_gaga(t(X, Y, Z), S, P, t(X, Y, Z))
turing_in_gaga(t(X, Y, .(R, L)), S, P, T) → U3_gaga(X, Y, R, L, S, P, T, member_in_ag(p(S, Y, S1, W, r), P))
U3_gaga(X, Y, R, L, S, P, T, member_out_ag(p(S, Y, S1, W, r), P)) → U4_gaga(X, Y, R, L, S, P, T, turing_in_gaga(t(.(W, X), R, L), S1, P, T))
turing_in_gaga(t(X, Y, []), S, P, T) → U5_gaga(X, Y, S, P, T, member_in_ag(p(S, Y, S1, W, r), P))
U5_gaga(X, Y, S, P, T, member_out_ag(p(S, Y, S1, W, r), P)) → U6_gaga(X, Y, S, P, T, turing_in_gaga(t(.(W, X), space, []), S1, P, T))
turing_in_gaga(t(.(X, L), Y, R), S, P, T) → U7_gaga(X, L, Y, R, S, P, T, member_in_ag(p(S, Y, S1, W, l), P))
U7_gaga(X, L, Y, R, S, P, T, member_out_ag(p(S, Y, S1, W, l), P)) → U8_gaga(X, L, Y, R, S, P, T, turing_in_gaga(t(L, X, .(W, R)), S1, P, T))
turing_in_gaga(t([], Y, R), S, P, T) → U9_gaga(Y, R, S, P, T, member_in_ag(p(S, Y, S1, W, l), P))
U9_gaga(Y, R, S, P, T, member_out_ag(p(S, Y, S1, W, l), P)) → U10_gaga(Y, R, S, P, T, turing_in_gaga(t([], space, .(W, R)), S1, P, T))
U10_gaga(Y, R, S, P, T, turing_out_gaga(t([], space, .(W, R)), S1, P, T)) → turing_out_gaga(t([], Y, R), S, P, T)
U8_gaga(X, L, Y, R, S, P, T, turing_out_gaga(t(L, X, .(W, R)), S1, P, T)) → turing_out_gaga(t(.(X, L), Y, R), S, P, T)
U6_gaga(X, Y, S, P, T, turing_out_gaga(t(.(W, X), space, []), S1, P, T)) → turing_out_gaga(t(X, Y, []), S, P, T)
U4_gaga(X, Y, R, L, S, P, T, turing_out_gaga(t(.(W, X), R, L), S1, P, T)) → turing_out_gaga(t(X, Y, .(R, L)), S, P, T)
U4_ggga(X, Y, R, L, S, P, T, turing_out_gaga(t(.(W, X), R, L), S1, P, T)) → turing_out_ggga(t(X, Y, .(R, L)), S, P, T)
turing_in_ggga(t(X, Y, []), S, P, T) → U5_ggga(X, Y, S, P, T, member_in_ag(p(S, Y, S1, W, r), P))
U5_ggga(X, Y, S, P, T, member_out_ag(p(S, Y, S1, W, r), P)) → U6_ggga(X, Y, S, P, T, turing_in_gaga(t(.(W, X), space, []), S1, P, T))
U6_ggga(X, Y, S, P, T, turing_out_gaga(t(.(W, X), space, []), S1, P, T)) → turing_out_ggga(t(X, Y, []), S, P, T)
turing_in_ggga(t(.(X, L), Y, R), S, P, T) → U7_ggga(X, L, Y, R, S, P, T, member_in_ag(p(S, Y, S1, W, l), P))
U7_ggga(X, L, Y, R, S, P, T, member_out_ag(p(S, Y, S1, W, l), P)) → U8_ggga(X, L, Y, R, S, P, T, turing_in_gaga(t(L, X, .(W, R)), S1, P, T))
U8_ggga(X, L, Y, R, S, P, T, turing_out_gaga(t(L, X, .(W, R)), S1, P, T)) → turing_out_ggga(t(.(X, L), Y, R), S, P, T)
turing_in_ggga(t([], Y, R), S, P, T) → U9_ggga(Y, R, S, P, T, member_in_ag(p(S, Y, S1, W, l), P))
U9_ggga(Y, R, S, P, T, member_out_ag(p(S, Y, S1, W, l), P)) → U10_ggga(Y, R, S, P, T, turing_in_gaga(t([], space, .(W, R)), S1, P, T))
U10_ggga(Y, R, S, P, T, turing_out_gaga(t([], space, .(W, R)), S1, P, T)) → turing_out_ggga(t([], Y, R), S, P, T)
TURING_IN_GGGA(t(X, Y, Z), S, P, t(X, Y, Z)) → U2_GGGA(X, Y, Z, S, P, member_in_ag(p(S, Y, halt, W, D), P))
TURING_IN_GGGA(t(X, Y, Z), S, P, t(X, Y, Z)) → MEMBER_IN_AG(p(S, Y, halt, W, D), P)
MEMBER_IN_AG(X, .(H, L)) → U1_AG(X, H, L, member_in_ag(X, L))
MEMBER_IN_AG(X, .(H, L)) → MEMBER_IN_AG(X, L)
TURING_IN_GGGA(t(X, Y, .(R, L)), S, P, T) → U3_GGGA(X, Y, R, L, S, P, T, member_in_ag(p(S, Y, S1, W, r), P))
TURING_IN_GGGA(t(X, Y, .(R, L)), S, P, T) → MEMBER_IN_AG(p(S, Y, S1, W, r), P)
U3_GGGA(X, Y, R, L, S, P, T, member_out_ag(p(S, Y, S1, W, r), P)) → U4_GGGA(X, Y, R, L, S, P, T, turing_in_gaga(t(.(W, X), R, L), S1, P, T))
U3_GGGA(X, Y, R, L, S, P, T, member_out_ag(p(S, Y, S1, W, r), P)) → TURING_IN_GAGA(t(.(W, X), R, L), S1, P, T)
TURING_IN_GAGA(t(X, Y, Z), S, P, t(X, Y, Z)) → U2_GAGA(X, Y, Z, S, P, member_in_ag(p(S, Y, halt, W, D), P))
TURING_IN_GAGA(t(X, Y, Z), S, P, t(X, Y, Z)) → MEMBER_IN_AG(p(S, Y, halt, W, D), P)
TURING_IN_GAGA(t(X, Y, .(R, L)), S, P, T) → U3_GAGA(X, Y, R, L, S, P, T, member_in_ag(p(S, Y, S1, W, r), P))
TURING_IN_GAGA(t(X, Y, .(R, L)), S, P, T) → MEMBER_IN_AG(p(S, Y, S1, W, r), P)
U3_GAGA(X, Y, R, L, S, P, T, member_out_ag(p(S, Y, S1, W, r), P)) → U4_GAGA(X, Y, R, L, S, P, T, turing_in_gaga(t(.(W, X), R, L), S1, P, T))
U3_GAGA(X, Y, R, L, S, P, T, member_out_ag(p(S, Y, S1, W, r), P)) → TURING_IN_GAGA(t(.(W, X), R, L), S1, P, T)
TURING_IN_GAGA(t(X, Y, []), S, P, T) → U5_GAGA(X, Y, S, P, T, member_in_ag(p(S, Y, S1, W, r), P))
TURING_IN_GAGA(t(X, Y, []), S, P, T) → MEMBER_IN_AG(p(S, Y, S1, W, r), P)
U5_GAGA(X, Y, S, P, T, member_out_ag(p(S, Y, S1, W, r), P)) → U6_GAGA(X, Y, S, P, T, turing_in_gaga(t(.(W, X), space, []), S1, P, T))
U5_GAGA(X, Y, S, P, T, member_out_ag(p(S, Y, S1, W, r), P)) → TURING_IN_GAGA(t(.(W, X), space, []), S1, P, T)
TURING_IN_GAGA(t(.(X, L), Y, R), S, P, T) → U7_GAGA(X, L, Y, R, S, P, T, member_in_ag(p(S, Y, S1, W, l), P))
TURING_IN_GAGA(t(.(X, L), Y, R), S, P, T) → MEMBER_IN_AG(p(S, Y, S1, W, l), P)
U7_GAGA(X, L, Y, R, S, P, T, member_out_ag(p(S, Y, S1, W, l), P)) → U8_GAGA(X, L, Y, R, S, P, T, turing_in_gaga(t(L, X, .(W, R)), S1, P, T))
U7_GAGA(X, L, Y, R, S, P, T, member_out_ag(p(S, Y, S1, W, l), P)) → TURING_IN_GAGA(t(L, X, .(W, R)), S1, P, T)
TURING_IN_GAGA(t([], Y, R), S, P, T) → U9_GAGA(Y, R, S, P, T, member_in_ag(p(S, Y, S1, W, l), P))
TURING_IN_GAGA(t([], Y, R), S, P, T) → MEMBER_IN_AG(p(S, Y, S1, W, l), P)
U9_GAGA(Y, R, S, P, T, member_out_ag(p(S, Y, S1, W, l), P)) → U10_GAGA(Y, R, S, P, T, turing_in_gaga(t([], space, .(W, R)), S1, P, T))
U9_GAGA(Y, R, S, P, T, member_out_ag(p(S, Y, S1, W, l), P)) → TURING_IN_GAGA(t([], space, .(W, R)), S1, P, T)
TURING_IN_GGGA(t(X, Y, []), S, P, T) → U5_GGGA(X, Y, S, P, T, member_in_ag(p(S, Y, S1, W, r), P))
TURING_IN_GGGA(t(X, Y, []), S, P, T) → MEMBER_IN_AG(p(S, Y, S1, W, r), P)
U5_GGGA(X, Y, S, P, T, member_out_ag(p(S, Y, S1, W, r), P)) → U6_GGGA(X, Y, S, P, T, turing_in_gaga(t(.(W, X), space, []), S1, P, T))
U5_GGGA(X, Y, S, P, T, member_out_ag(p(S, Y, S1, W, r), P)) → TURING_IN_GAGA(t(.(W, X), space, []), S1, P, T)
TURING_IN_GGGA(t(.(X, L), Y, R), S, P, T) → U7_GGGA(X, L, Y, R, S, P, T, member_in_ag(p(S, Y, S1, W, l), P))
TURING_IN_GGGA(t(.(X, L), Y, R), S, P, T) → MEMBER_IN_AG(p(S, Y, S1, W, l), P)
U7_GGGA(X, L, Y, R, S, P, T, member_out_ag(p(S, Y, S1, W, l), P)) → U8_GGGA(X, L, Y, R, S, P, T, turing_in_gaga(t(L, X, .(W, R)), S1, P, T))
U7_GGGA(X, L, Y, R, S, P, T, member_out_ag(p(S, Y, S1, W, l), P)) → TURING_IN_GAGA(t(L, X, .(W, R)), S1, P, T)
TURING_IN_GGGA(t([], Y, R), S, P, T) → U9_GGGA(Y, R, S, P, T, member_in_ag(p(S, Y, S1, W, l), P))
TURING_IN_GGGA(t([], Y, R), S, P, T) → MEMBER_IN_AG(p(S, Y, S1, W, l), P)
U9_GGGA(Y, R, S, P, T, member_out_ag(p(S, Y, S1, W, l), P)) → U10_GGGA(Y, R, S, P, T, turing_in_gaga(t([], space, .(W, R)), S1, P, T))
U9_GGGA(Y, R, S, P, T, member_out_ag(p(S, Y, S1, W, l), P)) → TURING_IN_GAGA(t([], space, .(W, R)), S1, P, T)
turing_in_ggga(t(X, Y, Z), S, P, t(X, Y, Z)) → U2_ggga(X, Y, Z, S, P, member_in_ag(p(S, Y, halt, W, D), P))
member_in_ag(H, .(H, L)) → member_out_ag(H, .(H, L))
member_in_ag(X, .(H, L)) → U1_ag(X, H, L, member_in_ag(X, L))
U1_ag(X, H, L, member_out_ag(X, L)) → member_out_ag(X, .(H, L))
U2_ggga(X, Y, Z, S, P, member_out_ag(p(S, Y, halt, W, D), P)) → turing_out_ggga(t(X, Y, Z), S, P, t(X, Y, Z))
turing_in_ggga(t(X, Y, .(R, L)), S, P, T) → U3_ggga(X, Y, R, L, S, P, T, member_in_ag(p(S, Y, S1, W, r), P))
U3_ggga(X, Y, R, L, S, P, T, member_out_ag(p(S, Y, S1, W, r), P)) → U4_ggga(X, Y, R, L, S, P, T, turing_in_gaga(t(.(W, X), R, L), S1, P, T))
turing_in_gaga(t(X, Y, Z), S, P, t(X, Y, Z)) → U2_gaga(X, Y, Z, S, P, member_in_ag(p(S, Y, halt, W, D), P))
U2_gaga(X, Y, Z, S, P, member_out_ag(p(S, Y, halt, W, D), P)) → turing_out_gaga(t(X, Y, Z), S, P, t(X, Y, Z))
turing_in_gaga(t(X, Y, .(R, L)), S, P, T) → U3_gaga(X, Y, R, L, S, P, T, member_in_ag(p(S, Y, S1, W, r), P))
U3_gaga(X, Y, R, L, S, P, T, member_out_ag(p(S, Y, S1, W, r), P)) → U4_gaga(X, Y, R, L, S, P, T, turing_in_gaga(t(.(W, X), R, L), S1, P, T))
turing_in_gaga(t(X, Y, []), S, P, T) → U5_gaga(X, Y, S, P, T, member_in_ag(p(S, Y, S1, W, r), P))
U5_gaga(X, Y, S, P, T, member_out_ag(p(S, Y, S1, W, r), P)) → U6_gaga(X, Y, S, P, T, turing_in_gaga(t(.(W, X), space, []), S1, P, T))
turing_in_gaga(t(.(X, L), Y, R), S, P, T) → U7_gaga(X, L, Y, R, S, P, T, member_in_ag(p(S, Y, S1, W, l), P))
U7_gaga(X, L, Y, R, S, P, T, member_out_ag(p(S, Y, S1, W, l), P)) → U8_gaga(X, L, Y, R, S, P, T, turing_in_gaga(t(L, X, .(W, R)), S1, P, T))
turing_in_gaga(t([], Y, R), S, P, T) → U9_gaga(Y, R, S, P, T, member_in_ag(p(S, Y, S1, W, l), P))
U9_gaga(Y, R, S, P, T, member_out_ag(p(S, Y, S1, W, l), P)) → U10_gaga(Y, R, S, P, T, turing_in_gaga(t([], space, .(W, R)), S1, P, T))
U10_gaga(Y, R, S, P, T, turing_out_gaga(t([], space, .(W, R)), S1, P, T)) → turing_out_gaga(t([], Y, R), S, P, T)
U8_gaga(X, L, Y, R, S, P, T, turing_out_gaga(t(L, X, .(W, R)), S1, P, T)) → turing_out_gaga(t(.(X, L), Y, R), S, P, T)
U6_gaga(X, Y, S, P, T, turing_out_gaga(t(.(W, X), space, []), S1, P, T)) → turing_out_gaga(t(X, Y, []), S, P, T)
U4_gaga(X, Y, R, L, S, P, T, turing_out_gaga(t(.(W, X), R, L), S1, P, T)) → turing_out_gaga(t(X, Y, .(R, L)), S, P, T)
U4_ggga(X, Y, R, L, S, P, T, turing_out_gaga(t(.(W, X), R, L), S1, P, T)) → turing_out_ggga(t(X, Y, .(R, L)), S, P, T)
turing_in_ggga(t(X, Y, []), S, P, T) → U5_ggga(X, Y, S, P, T, member_in_ag(p(S, Y, S1, W, r), P))
U5_ggga(X, Y, S, P, T, member_out_ag(p(S, Y, S1, W, r), P)) → U6_ggga(X, Y, S, P, T, turing_in_gaga(t(.(W, X), space, []), S1, P, T))
U6_ggga(X, Y, S, P, T, turing_out_gaga(t(.(W, X), space, []), S1, P, T)) → turing_out_ggga(t(X, Y, []), S, P, T)
turing_in_ggga(t(.(X, L), Y, R), S, P, T) → U7_ggga(X, L, Y, R, S, P, T, member_in_ag(p(S, Y, S1, W, l), P))
U7_ggga(X, L, Y, R, S, P, T, member_out_ag(p(S, Y, S1, W, l), P)) → U8_ggga(X, L, Y, R, S, P, T, turing_in_gaga(t(L, X, .(W, R)), S1, P, T))
U8_ggga(X, L, Y, R, S, P, T, turing_out_gaga(t(L, X, .(W, R)), S1, P, T)) → turing_out_ggga(t(.(X, L), Y, R), S, P, T)
turing_in_ggga(t([], Y, R), S, P, T) → U9_ggga(Y, R, S, P, T, member_in_ag(p(S, Y, S1, W, l), P))
U9_ggga(Y, R, S, P, T, member_out_ag(p(S, Y, S1, W, l), P)) → U10_ggga(Y, R, S, P, T, turing_in_gaga(t([], space, .(W, R)), S1, P, T))
U10_ggga(Y, R, S, P, T, turing_out_gaga(t([], space, .(W, R)), S1, P, T)) → turing_out_ggga(t([], Y, R), S, P, T)
TURING_IN_GGGA(t(X, Y, Z), S, P, t(X, Y, Z)) → U2_GGGA(X, Y, Z, S, P, member_in_ag(p(S, Y, halt, W, D), P))
TURING_IN_GGGA(t(X, Y, Z), S, P, t(X, Y, Z)) → MEMBER_IN_AG(p(S, Y, halt, W, D), P)
MEMBER_IN_AG(X, .(H, L)) → U1_AG(X, H, L, member_in_ag(X, L))
MEMBER_IN_AG(X, .(H, L)) → MEMBER_IN_AG(X, L)
TURING_IN_GGGA(t(X, Y, .(R, L)), S, P, T) → U3_GGGA(X, Y, R, L, S, P, T, member_in_ag(p(S, Y, S1, W, r), P))
TURING_IN_GGGA(t(X, Y, .(R, L)), S, P, T) → MEMBER_IN_AG(p(S, Y, S1, W, r), P)
U3_GGGA(X, Y, R, L, S, P, T, member_out_ag(p(S, Y, S1, W, r), P)) → U4_GGGA(X, Y, R, L, S, P, T, turing_in_gaga(t(.(W, X), R, L), S1, P, T))
U3_GGGA(X, Y, R, L, S, P, T, member_out_ag(p(S, Y, S1, W, r), P)) → TURING_IN_GAGA(t(.(W, X), R, L), S1, P, T)
TURING_IN_GAGA(t(X, Y, Z), S, P, t(X, Y, Z)) → U2_GAGA(X, Y, Z, S, P, member_in_ag(p(S, Y, halt, W, D), P))
TURING_IN_GAGA(t(X, Y, Z), S, P, t(X, Y, Z)) → MEMBER_IN_AG(p(S, Y, halt, W, D), P)
TURING_IN_GAGA(t(X, Y, .(R, L)), S, P, T) → U3_GAGA(X, Y, R, L, S, P, T, member_in_ag(p(S, Y, S1, W, r), P))
TURING_IN_GAGA(t(X, Y, .(R, L)), S, P, T) → MEMBER_IN_AG(p(S, Y, S1, W, r), P)
U3_GAGA(X, Y, R, L, S, P, T, member_out_ag(p(S, Y, S1, W, r), P)) → U4_GAGA(X, Y, R, L, S, P, T, turing_in_gaga(t(.(W, X), R, L), S1, P, T))
U3_GAGA(X, Y, R, L, S, P, T, member_out_ag(p(S, Y, S1, W, r), P)) → TURING_IN_GAGA(t(.(W, X), R, L), S1, P, T)
TURING_IN_GAGA(t(X, Y, []), S, P, T) → U5_GAGA(X, Y, S, P, T, member_in_ag(p(S, Y, S1, W, r), P))
TURING_IN_GAGA(t(X, Y, []), S, P, T) → MEMBER_IN_AG(p(S, Y, S1, W, r), P)
U5_GAGA(X, Y, S, P, T, member_out_ag(p(S, Y, S1, W, r), P)) → U6_GAGA(X, Y, S, P, T, turing_in_gaga(t(.(W, X), space, []), S1, P, T))
U5_GAGA(X, Y, S, P, T, member_out_ag(p(S, Y, S1, W, r), P)) → TURING_IN_GAGA(t(.(W, X), space, []), S1, P, T)
TURING_IN_GAGA(t(.(X, L), Y, R), S, P, T) → U7_GAGA(X, L, Y, R, S, P, T, member_in_ag(p(S, Y, S1, W, l), P))
TURING_IN_GAGA(t(.(X, L), Y, R), S, P, T) → MEMBER_IN_AG(p(S, Y, S1, W, l), P)
U7_GAGA(X, L, Y, R, S, P, T, member_out_ag(p(S, Y, S1, W, l), P)) → U8_GAGA(X, L, Y, R, S, P, T, turing_in_gaga(t(L, X, .(W, R)), S1, P, T))
U7_GAGA(X, L, Y, R, S, P, T, member_out_ag(p(S, Y, S1, W, l), P)) → TURING_IN_GAGA(t(L, X, .(W, R)), S1, P, T)
TURING_IN_GAGA(t([], Y, R), S, P, T) → U9_GAGA(Y, R, S, P, T, member_in_ag(p(S, Y, S1, W, l), P))
TURING_IN_GAGA(t([], Y, R), S, P, T) → MEMBER_IN_AG(p(S, Y, S1, W, l), P)
U9_GAGA(Y, R, S, P, T, member_out_ag(p(S, Y, S1, W, l), P)) → U10_GAGA(Y, R, S, P, T, turing_in_gaga(t([], space, .(W, R)), S1, P, T))
U9_GAGA(Y, R, S, P, T, member_out_ag(p(S, Y, S1, W, l), P)) → TURING_IN_GAGA(t([], space, .(W, R)), S1, P, T)
TURING_IN_GGGA(t(X, Y, []), S, P, T) → U5_GGGA(X, Y, S, P, T, member_in_ag(p(S, Y, S1, W, r), P))
TURING_IN_GGGA(t(X, Y, []), S, P, T) → MEMBER_IN_AG(p(S, Y, S1, W, r), P)
U5_GGGA(X, Y, S, P, T, member_out_ag(p(S, Y, S1, W, r), P)) → U6_GGGA(X, Y, S, P, T, turing_in_gaga(t(.(W, X), space, []), S1, P, T))
U5_GGGA(X, Y, S, P, T, member_out_ag(p(S, Y, S1, W, r), P)) → TURING_IN_GAGA(t(.(W, X), space, []), S1, P, T)
TURING_IN_GGGA(t(.(X, L), Y, R), S, P, T) → U7_GGGA(X, L, Y, R, S, P, T, member_in_ag(p(S, Y, S1, W, l), P))
TURING_IN_GGGA(t(.(X, L), Y, R), S, P, T) → MEMBER_IN_AG(p(S, Y, S1, W, l), P)
U7_GGGA(X, L, Y, R, S, P, T, member_out_ag(p(S, Y, S1, W, l), P)) → U8_GGGA(X, L, Y, R, S, P, T, turing_in_gaga(t(L, X, .(W, R)), S1, P, T))
U7_GGGA(X, L, Y, R, S, P, T, member_out_ag(p(S, Y, S1, W, l), P)) → TURING_IN_GAGA(t(L, X, .(W, R)), S1, P, T)
TURING_IN_GGGA(t([], Y, R), S, P, T) → U9_GGGA(Y, R, S, P, T, member_in_ag(p(S, Y, S1, W, l), P))
TURING_IN_GGGA(t([], Y, R), S, P, T) → MEMBER_IN_AG(p(S, Y, S1, W, l), P)
U9_GGGA(Y, R, S, P, T, member_out_ag(p(S, Y, S1, W, l), P)) → U10_GGGA(Y, R, S, P, T, turing_in_gaga(t([], space, .(W, R)), S1, P, T))
U9_GGGA(Y, R, S, P, T, member_out_ag(p(S, Y, S1, W, l), P)) → TURING_IN_GAGA(t([], space, .(W, R)), S1, P, T)
turing_in_ggga(t(X, Y, Z), S, P, t(X, Y, Z)) → U2_ggga(X, Y, Z, S, P, member_in_ag(p(S, Y, halt, W, D), P))
member_in_ag(H, .(H, L)) → member_out_ag(H, .(H, L))
member_in_ag(X, .(H, L)) → U1_ag(X, H, L, member_in_ag(X, L))
U1_ag(X, H, L, member_out_ag(X, L)) → member_out_ag(X, .(H, L))
U2_ggga(X, Y, Z, S, P, member_out_ag(p(S, Y, halt, W, D), P)) → turing_out_ggga(t(X, Y, Z), S, P, t(X, Y, Z))
turing_in_ggga(t(X, Y, .(R, L)), S, P, T) → U3_ggga(X, Y, R, L, S, P, T, member_in_ag(p(S, Y, S1, W, r), P))
U3_ggga(X, Y, R, L, S, P, T, member_out_ag(p(S, Y, S1, W, r), P)) → U4_ggga(X, Y, R, L, S, P, T, turing_in_gaga(t(.(W, X), R, L), S1, P, T))
turing_in_gaga(t(X, Y, Z), S, P, t(X, Y, Z)) → U2_gaga(X, Y, Z, S, P, member_in_ag(p(S, Y, halt, W, D), P))
U2_gaga(X, Y, Z, S, P, member_out_ag(p(S, Y, halt, W, D), P)) → turing_out_gaga(t(X, Y, Z), S, P, t(X, Y, Z))
turing_in_gaga(t(X, Y, .(R, L)), S, P, T) → U3_gaga(X, Y, R, L, S, P, T, member_in_ag(p(S, Y, S1, W, r), P))
U3_gaga(X, Y, R, L, S, P, T, member_out_ag(p(S, Y, S1, W, r), P)) → U4_gaga(X, Y, R, L, S, P, T, turing_in_gaga(t(.(W, X), R, L), S1, P, T))
turing_in_gaga(t(X, Y, []), S, P, T) → U5_gaga(X, Y, S, P, T, member_in_ag(p(S, Y, S1, W, r), P))
U5_gaga(X, Y, S, P, T, member_out_ag(p(S, Y, S1, W, r), P)) → U6_gaga(X, Y, S, P, T, turing_in_gaga(t(.(W, X), space, []), S1, P, T))
turing_in_gaga(t(.(X, L), Y, R), S, P, T) → U7_gaga(X, L, Y, R, S, P, T, member_in_ag(p(S, Y, S1, W, l), P))
U7_gaga(X, L, Y, R, S, P, T, member_out_ag(p(S, Y, S1, W, l), P)) → U8_gaga(X, L, Y, R, S, P, T, turing_in_gaga(t(L, X, .(W, R)), S1, P, T))
turing_in_gaga(t([], Y, R), S, P, T) → U9_gaga(Y, R, S, P, T, member_in_ag(p(S, Y, S1, W, l), P))
U9_gaga(Y, R, S, P, T, member_out_ag(p(S, Y, S1, W, l), P)) → U10_gaga(Y, R, S, P, T, turing_in_gaga(t([], space, .(W, R)), S1, P, T))
U10_gaga(Y, R, S, P, T, turing_out_gaga(t([], space, .(W, R)), S1, P, T)) → turing_out_gaga(t([], Y, R), S, P, T)
U8_gaga(X, L, Y, R, S, P, T, turing_out_gaga(t(L, X, .(W, R)), S1, P, T)) → turing_out_gaga(t(.(X, L), Y, R), S, P, T)
U6_gaga(X, Y, S, P, T, turing_out_gaga(t(.(W, X), space, []), S1, P, T)) → turing_out_gaga(t(X, Y, []), S, P, T)
U4_gaga(X, Y, R, L, S, P, T, turing_out_gaga(t(.(W, X), R, L), S1, P, T)) → turing_out_gaga(t(X, Y, .(R, L)), S, P, T)
U4_ggga(X, Y, R, L, S, P, T, turing_out_gaga(t(.(W, X), R, L), S1, P, T)) → turing_out_ggga(t(X, Y, .(R, L)), S, P, T)
turing_in_ggga(t(X, Y, []), S, P, T) → U5_ggga(X, Y, S, P, T, member_in_ag(p(S, Y, S1, W, r), P))
U5_ggga(X, Y, S, P, T, member_out_ag(p(S, Y, S1, W, r), P)) → U6_ggga(X, Y, S, P, T, turing_in_gaga(t(.(W, X), space, []), S1, P, T))
U6_ggga(X, Y, S, P, T, turing_out_gaga(t(.(W, X), space, []), S1, P, T)) → turing_out_ggga(t(X, Y, []), S, P, T)
turing_in_ggga(t(.(X, L), Y, R), S, P, T) → U7_ggga(X, L, Y, R, S, P, T, member_in_ag(p(S, Y, S1, W, l), P))
U7_ggga(X, L, Y, R, S, P, T, member_out_ag(p(S, Y, S1, W, l), P)) → U8_ggga(X, L, Y, R, S, P, T, turing_in_gaga(t(L, X, .(W, R)), S1, P, T))
U8_ggga(X, L, Y, R, S, P, T, turing_out_gaga(t(L, X, .(W, R)), S1, P, T)) → turing_out_ggga(t(.(X, L), Y, R), S, P, T)
turing_in_ggga(t([], Y, R), S, P, T) → U9_ggga(Y, R, S, P, T, member_in_ag(p(S, Y, S1, W, l), P))
U9_ggga(Y, R, S, P, T, member_out_ag(p(S, Y, S1, W, l), P)) → U10_ggga(Y, R, S, P, T, turing_in_gaga(t([], space, .(W, R)), S1, P, T))
U10_ggga(Y, R, S, P, T, turing_out_gaga(t([], space, .(W, R)), S1, P, T)) → turing_out_ggga(t([], Y, R), S, P, T)
MEMBER_IN_AG(X, .(H, L)) → MEMBER_IN_AG(X, L)
turing_in_ggga(t(X, Y, Z), S, P, t(X, Y, Z)) → U2_ggga(X, Y, Z, S, P, member_in_ag(p(S, Y, halt, W, D), P))
member_in_ag(H, .(H, L)) → member_out_ag(H, .(H, L))
member_in_ag(X, .(H, L)) → U1_ag(X, H, L, member_in_ag(X, L))
U1_ag(X, H, L, member_out_ag(X, L)) → member_out_ag(X, .(H, L))
U2_ggga(X, Y, Z, S, P, member_out_ag(p(S, Y, halt, W, D), P)) → turing_out_ggga(t(X, Y, Z), S, P, t(X, Y, Z))
turing_in_ggga(t(X, Y, .(R, L)), S, P, T) → U3_ggga(X, Y, R, L, S, P, T, member_in_ag(p(S, Y, S1, W, r), P))
U3_ggga(X, Y, R, L, S, P, T, member_out_ag(p(S, Y, S1, W, r), P)) → U4_ggga(X, Y, R, L, S, P, T, turing_in_gaga(t(.(W, X), R, L), S1, P, T))
turing_in_gaga(t(X, Y, Z), S, P, t(X, Y, Z)) → U2_gaga(X, Y, Z, S, P, member_in_ag(p(S, Y, halt, W, D), P))
U2_gaga(X, Y, Z, S, P, member_out_ag(p(S, Y, halt, W, D), P)) → turing_out_gaga(t(X, Y, Z), S, P, t(X, Y, Z))
turing_in_gaga(t(X, Y, .(R, L)), S, P, T) → U3_gaga(X, Y, R, L, S, P, T, member_in_ag(p(S, Y, S1, W, r), P))
U3_gaga(X, Y, R, L, S, P, T, member_out_ag(p(S, Y, S1, W, r), P)) → U4_gaga(X, Y, R, L, S, P, T, turing_in_gaga(t(.(W, X), R, L), S1, P, T))
turing_in_gaga(t(X, Y, []), S, P, T) → U5_gaga(X, Y, S, P, T, member_in_ag(p(S, Y, S1, W, r), P))
U5_gaga(X, Y, S, P, T, member_out_ag(p(S, Y, S1, W, r), P)) → U6_gaga(X, Y, S, P, T, turing_in_gaga(t(.(W, X), space, []), S1, P, T))
turing_in_gaga(t(.(X, L), Y, R), S, P, T) → U7_gaga(X, L, Y, R, S, P, T, member_in_ag(p(S, Y, S1, W, l), P))
U7_gaga(X, L, Y, R, S, P, T, member_out_ag(p(S, Y, S1, W, l), P)) → U8_gaga(X, L, Y, R, S, P, T, turing_in_gaga(t(L, X, .(W, R)), S1, P, T))
turing_in_gaga(t([], Y, R), S, P, T) → U9_gaga(Y, R, S, P, T, member_in_ag(p(S, Y, S1, W, l), P))
U9_gaga(Y, R, S, P, T, member_out_ag(p(S, Y, S1, W, l), P)) → U10_gaga(Y, R, S, P, T, turing_in_gaga(t([], space, .(W, R)), S1, P, T))
U10_gaga(Y, R, S, P, T, turing_out_gaga(t([], space, .(W, R)), S1, P, T)) → turing_out_gaga(t([], Y, R), S, P, T)
U8_gaga(X, L, Y, R, S, P, T, turing_out_gaga(t(L, X, .(W, R)), S1, P, T)) → turing_out_gaga(t(.(X, L), Y, R), S, P, T)
U6_gaga(X, Y, S, P, T, turing_out_gaga(t(.(W, X), space, []), S1, P, T)) → turing_out_gaga(t(X, Y, []), S, P, T)
U4_gaga(X, Y, R, L, S, P, T, turing_out_gaga(t(.(W, X), R, L), S1, P, T)) → turing_out_gaga(t(X, Y, .(R, L)), S, P, T)
U4_ggga(X, Y, R, L, S, P, T, turing_out_gaga(t(.(W, X), R, L), S1, P, T)) → turing_out_ggga(t(X, Y, .(R, L)), S, P, T)
turing_in_ggga(t(X, Y, []), S, P, T) → U5_ggga(X, Y, S, P, T, member_in_ag(p(S, Y, S1, W, r), P))
U5_ggga(X, Y, S, P, T, member_out_ag(p(S, Y, S1, W, r), P)) → U6_ggga(X, Y, S, P, T, turing_in_gaga(t(.(W, X), space, []), S1, P, T))
U6_ggga(X, Y, S, P, T, turing_out_gaga(t(.(W, X), space, []), S1, P, T)) → turing_out_ggga(t(X, Y, []), S, P, T)
turing_in_ggga(t(.(X, L), Y, R), S, P, T) → U7_ggga(X, L, Y, R, S, P, T, member_in_ag(p(S, Y, S1, W, l), P))
U7_ggga(X, L, Y, R, S, P, T, member_out_ag(p(S, Y, S1, W, l), P)) → U8_ggga(X, L, Y, R, S, P, T, turing_in_gaga(t(L, X, .(W, R)), S1, P, T))
U8_ggga(X, L, Y, R, S, P, T, turing_out_gaga(t(L, X, .(W, R)), S1, P, T)) → turing_out_ggga(t(.(X, L), Y, R), S, P, T)
turing_in_ggga(t([], Y, R), S, P, T) → U9_ggga(Y, R, S, P, T, member_in_ag(p(S, Y, S1, W, l), P))
U9_ggga(Y, R, S, P, T, member_out_ag(p(S, Y, S1, W, l), P)) → U10_ggga(Y, R, S, P, T, turing_in_gaga(t([], space, .(W, R)), S1, P, T))
U10_ggga(Y, R, S, P, T, turing_out_gaga(t([], space, .(W, R)), S1, P, T)) → turing_out_ggga(t([], Y, R), S, P, T)
MEMBER_IN_AG(X, .(H, L)) → MEMBER_IN_AG(X, L)
MEMBER_IN_AG(.(H, L)) → MEMBER_IN_AG(L)
From the DPs we obtained the following set of size-change graphs:
TURING_IN_GAGA(t(X, Y, .(R, L)), S, P, T) → U3_GAGA(X, Y, R, L, S, P, T, member_in_ag(p(S, Y, S1, W, r), P))
U3_GAGA(X, Y, R, L, S, P, T, member_out_ag(p(S, Y, S1, W, r), P)) → TURING_IN_GAGA(t(.(W, X), R, L), S1, P, T)
TURING_IN_GAGA(t(X, Y, []), S, P, T) → U5_GAGA(X, Y, S, P, T, member_in_ag(p(S, Y, S1, W, r), P))
U5_GAGA(X, Y, S, P, T, member_out_ag(p(S, Y, S1, W, r), P)) → TURING_IN_GAGA(t(.(W, X), space, []), S1, P, T)
TURING_IN_GAGA(t(.(X, L), Y, R), S, P, T) → U7_GAGA(X, L, Y, R, S, P, T, member_in_ag(p(S, Y, S1, W, l), P))
U7_GAGA(X, L, Y, R, S, P, T, member_out_ag(p(S, Y, S1, W, l), P)) → TURING_IN_GAGA(t(L, X, .(W, R)), S1, P, T)
TURING_IN_GAGA(t([], Y, R), S, P, T) → U9_GAGA(Y, R, S, P, T, member_in_ag(p(S, Y, S1, W, l), P))
U9_GAGA(Y, R, S, P, T, member_out_ag(p(S, Y, S1, W, l), P)) → TURING_IN_GAGA(t([], space, .(W, R)), S1, P, T)
turing_in_ggga(t(X, Y, Z), S, P, t(X, Y, Z)) → U2_ggga(X, Y, Z, S, P, member_in_ag(p(S, Y, halt, W, D), P))
member_in_ag(H, .(H, L)) → member_out_ag(H, .(H, L))
member_in_ag(X, .(H, L)) → U1_ag(X, H, L, member_in_ag(X, L))
U1_ag(X, H, L, member_out_ag(X, L)) → member_out_ag(X, .(H, L))
U2_ggga(X, Y, Z, S, P, member_out_ag(p(S, Y, halt, W, D), P)) → turing_out_ggga(t(X, Y, Z), S, P, t(X, Y, Z))
turing_in_ggga(t(X, Y, .(R, L)), S, P, T) → U3_ggga(X, Y, R, L, S, P, T, member_in_ag(p(S, Y, S1, W, r), P))
U3_ggga(X, Y, R, L, S, P, T, member_out_ag(p(S, Y, S1, W, r), P)) → U4_ggga(X, Y, R, L, S, P, T, turing_in_gaga(t(.(W, X), R, L), S1, P, T))
turing_in_gaga(t(X, Y, Z), S, P, t(X, Y, Z)) → U2_gaga(X, Y, Z, S, P, member_in_ag(p(S, Y, halt, W, D), P))
U2_gaga(X, Y, Z, S, P, member_out_ag(p(S, Y, halt, W, D), P)) → turing_out_gaga(t(X, Y, Z), S, P, t(X, Y, Z))
turing_in_gaga(t(X, Y, .(R, L)), S, P, T) → U3_gaga(X, Y, R, L, S, P, T, member_in_ag(p(S, Y, S1, W, r), P))
U3_gaga(X, Y, R, L, S, P, T, member_out_ag(p(S, Y, S1, W, r), P)) → U4_gaga(X, Y, R, L, S, P, T, turing_in_gaga(t(.(W, X), R, L), S1, P, T))
turing_in_gaga(t(X, Y, []), S, P, T) → U5_gaga(X, Y, S, P, T, member_in_ag(p(S, Y, S1, W, r), P))
U5_gaga(X, Y, S, P, T, member_out_ag(p(S, Y, S1, W, r), P)) → U6_gaga(X, Y, S, P, T, turing_in_gaga(t(.(W, X), space, []), S1, P, T))
turing_in_gaga(t(.(X, L), Y, R), S, P, T) → U7_gaga(X, L, Y, R, S, P, T, member_in_ag(p(S, Y, S1, W, l), P))
U7_gaga(X, L, Y, R, S, P, T, member_out_ag(p(S, Y, S1, W, l), P)) → U8_gaga(X, L, Y, R, S, P, T, turing_in_gaga(t(L, X, .(W, R)), S1, P, T))
turing_in_gaga(t([], Y, R), S, P, T) → U9_gaga(Y, R, S, P, T, member_in_ag(p(S, Y, S1, W, l), P))
U9_gaga(Y, R, S, P, T, member_out_ag(p(S, Y, S1, W, l), P)) → U10_gaga(Y, R, S, P, T, turing_in_gaga(t([], space, .(W, R)), S1, P, T))
U10_gaga(Y, R, S, P, T, turing_out_gaga(t([], space, .(W, R)), S1, P, T)) → turing_out_gaga(t([], Y, R), S, P, T)
U8_gaga(X, L, Y, R, S, P, T, turing_out_gaga(t(L, X, .(W, R)), S1, P, T)) → turing_out_gaga(t(.(X, L), Y, R), S, P, T)
U6_gaga(X, Y, S, P, T, turing_out_gaga(t(.(W, X), space, []), S1, P, T)) → turing_out_gaga(t(X, Y, []), S, P, T)
U4_gaga(X, Y, R, L, S, P, T, turing_out_gaga(t(.(W, X), R, L), S1, P, T)) → turing_out_gaga(t(X, Y, .(R, L)), S, P, T)
U4_ggga(X, Y, R, L, S, P, T, turing_out_gaga(t(.(W, X), R, L), S1, P, T)) → turing_out_ggga(t(X, Y, .(R, L)), S, P, T)
turing_in_ggga(t(X, Y, []), S, P, T) → U5_ggga(X, Y, S, P, T, member_in_ag(p(S, Y, S1, W, r), P))
U5_ggga(X, Y, S, P, T, member_out_ag(p(S, Y, S1, W, r), P)) → U6_ggga(X, Y, S, P, T, turing_in_gaga(t(.(W, X), space, []), S1, P, T))
U6_ggga(X, Y, S, P, T, turing_out_gaga(t(.(W, X), space, []), S1, P, T)) → turing_out_ggga(t(X, Y, []), S, P, T)
turing_in_ggga(t(.(X, L), Y, R), S, P, T) → U7_ggga(X, L, Y, R, S, P, T, member_in_ag(p(S, Y, S1, W, l), P))
U7_ggga(X, L, Y, R, S, P, T, member_out_ag(p(S, Y, S1, W, l), P)) → U8_ggga(X, L, Y, R, S, P, T, turing_in_gaga(t(L, X, .(W, R)), S1, P, T))
U8_ggga(X, L, Y, R, S, P, T, turing_out_gaga(t(L, X, .(W, R)), S1, P, T)) → turing_out_ggga(t(.(X, L), Y, R), S, P, T)
turing_in_ggga(t([], Y, R), S, P, T) → U9_ggga(Y, R, S, P, T, member_in_ag(p(S, Y, S1, W, l), P))
U9_ggga(Y, R, S, P, T, member_out_ag(p(S, Y, S1, W, l), P)) → U10_ggga(Y, R, S, P, T, turing_in_gaga(t([], space, .(W, R)), S1, P, T))
U10_ggga(Y, R, S, P, T, turing_out_gaga(t([], space, .(W, R)), S1, P, T)) → turing_out_ggga(t([], Y, R), S, P, T)
TURING_IN_GAGA(t(X, Y, .(R, L)), S, P, T) → U3_GAGA(X, Y, R, L, S, P, T, member_in_ag(p(S, Y, S1, W, r), P))
U3_GAGA(X, Y, R, L, S, P, T, member_out_ag(p(S, Y, S1, W, r), P)) → TURING_IN_GAGA(t(.(W, X), R, L), S1, P, T)
TURING_IN_GAGA(t(X, Y, []), S, P, T) → U5_GAGA(X, Y, S, P, T, member_in_ag(p(S, Y, S1, W, r), P))
U5_GAGA(X, Y, S, P, T, member_out_ag(p(S, Y, S1, W, r), P)) → TURING_IN_GAGA(t(.(W, X), space, []), S1, P, T)
TURING_IN_GAGA(t(.(X, L), Y, R), S, P, T) → U7_GAGA(X, L, Y, R, S, P, T, member_in_ag(p(S, Y, S1, W, l), P))
U7_GAGA(X, L, Y, R, S, P, T, member_out_ag(p(S, Y, S1, W, l), P)) → TURING_IN_GAGA(t(L, X, .(W, R)), S1, P, T)
TURING_IN_GAGA(t([], Y, R), S, P, T) → U9_GAGA(Y, R, S, P, T, member_in_ag(p(S, Y, S1, W, l), P))
U9_GAGA(Y, R, S, P, T, member_out_ag(p(S, Y, S1, W, l), P)) → TURING_IN_GAGA(t([], space, .(W, R)), S1, P, T)
member_in_ag(H, .(H, L)) → member_out_ag(H, .(H, L))
member_in_ag(X, .(H, L)) → U1_ag(X, H, L, member_in_ag(X, L))
U1_ag(X, H, L, member_out_ag(X, L)) → member_out_ag(X, .(H, L))
TURING_IN_GAGA(t(X, Y, .(R, L)), P) → U3_GAGA(X, Y, R, L, P, member_in_ag(P))
U3_GAGA(X, Y, R, L, P, member_out_ag(p(Y, W), P)) → TURING_IN_GAGA(t(.(W, X), R, L), P)
TURING_IN_GAGA(t(X, Y, []), P) → U5_GAGA(X, Y, P, member_in_ag(P))
U5_GAGA(X, Y, P, member_out_ag(p(Y, W), P)) → TURING_IN_GAGA(t(.(W, X), space, []), P)
TURING_IN_GAGA(t(.(X, L), Y, R), P) → U7_GAGA(X, L, Y, R, P, member_in_ag(P))
U7_GAGA(X, L, Y, R, P, member_out_ag(p(Y, W), P)) → TURING_IN_GAGA(t(L, X, .(W, R)), P)
TURING_IN_GAGA(t([], Y, R), P) → U9_GAGA(Y, R, P, member_in_ag(P))
U9_GAGA(Y, R, P, member_out_ag(p(Y, W), P)) → TURING_IN_GAGA(t([], space, .(W, R)), P)
member_in_ag(.(H, L)) → member_out_ag(H, .(H, L))
member_in_ag(.(H, L)) → U1_ag(H, L, member_in_ag(L))
U1_ag(H, L, member_out_ag(X, L)) → member_out_ag(X, .(H, L))
member_in_ag(x0)
U1_ag(x0, x1, x2)
TURING_IN_GAGA(t(.(z5, z0), z2, []), z4) → U5_GAGA(.(z5, z0), z2, z4, member_in_ag(z4))
TURING_IN_GAGA(t(.(z3, z0), space, []), z2) → U5_GAGA(.(z3, z0), space, z2, member_in_ag(z2))
TURING_IN_GAGA(t(X, Y, .(R, L)), P) → U3_GAGA(X, Y, R, L, P, member_in_ag(P))
U3_GAGA(X, Y, R, L, P, member_out_ag(p(Y, W), P)) → TURING_IN_GAGA(t(.(W, X), R, L), P)
U5_GAGA(X, Y, P, member_out_ag(p(Y, W), P)) → TURING_IN_GAGA(t(.(W, X), space, []), P)
TURING_IN_GAGA(t(.(X, L), Y, R), P) → U7_GAGA(X, L, Y, R, P, member_in_ag(P))
U7_GAGA(X, L, Y, R, P, member_out_ag(p(Y, W), P)) → TURING_IN_GAGA(t(L, X, .(W, R)), P)
TURING_IN_GAGA(t([], Y, R), P) → U9_GAGA(Y, R, P, member_in_ag(P))
U9_GAGA(Y, R, P, member_out_ag(p(Y, W), P)) → TURING_IN_GAGA(t([], space, .(W, R)), P)
TURING_IN_GAGA(t(.(z5, z0), z2, []), z4) → U5_GAGA(.(z5, z0), z2, z4, member_in_ag(z4))
TURING_IN_GAGA(t(.(z3, z0), space, []), z2) → U5_GAGA(.(z3, z0), space, z2, member_in_ag(z2))
member_in_ag(.(H, L)) → member_out_ag(H, .(H, L))
member_in_ag(.(H, L)) → U1_ag(H, L, member_in_ag(L))
U1_ag(H, L, member_out_ag(X, L)) → member_out_ag(X, .(H, L))
member_in_ag(x0)
U1_ag(x0, x1, x2)
TURING_IN_GAGA(t(y0, y1, .(y2, y3)), .(x0, x1)) → U3_GAGA(y0, y1, y2, y3, .(x0, x1), member_out_ag(x0, .(x0, x1)))
TURING_IN_GAGA(t(y0, y1, .(y2, y3)), .(x0, x1)) → U3_GAGA(y0, y1, y2, y3, .(x0, x1), U1_ag(x0, x1, member_in_ag(x1)))
U3_GAGA(X, Y, R, L, P, member_out_ag(p(Y, W), P)) → TURING_IN_GAGA(t(.(W, X), R, L), P)
TURING_IN_GAGA(t(X, Y, []), P) → U5_GAGA(X, Y, P, member_in_ag(P))
U5_GAGA(X, Y, P, member_out_ag(p(Y, W), P)) → TURING_IN_GAGA(t(.(W, X), space, []), P)
TURING_IN_GAGA(t(.(X, L), Y, R), P) → U7_GAGA(X, L, Y, R, P, member_in_ag(P))
U7_GAGA(X, L, Y, R, P, member_out_ag(p(Y, W), P)) → TURING_IN_GAGA(t(L, X, .(W, R)), P)
TURING_IN_GAGA(t([], Y, R), P) → U9_GAGA(Y, R, P, member_in_ag(P))
U9_GAGA(Y, R, P, member_out_ag(p(Y, W), P)) → TURING_IN_GAGA(t([], space, .(W, R)), P)
TURING_IN_GAGA(t(y0, y1, .(y2, y3)), .(x0, x1)) → U3_GAGA(y0, y1, y2, y3, .(x0, x1), member_out_ag(x0, .(x0, x1)))
TURING_IN_GAGA(t(y0, y1, .(y2, y3)), .(x0, x1)) → U3_GAGA(y0, y1, y2, y3, .(x0, x1), U1_ag(x0, x1, member_in_ag(x1)))
member_in_ag(.(H, L)) → member_out_ag(H, .(H, L))
member_in_ag(.(H, L)) → U1_ag(H, L, member_in_ag(L))
U1_ag(H, L, member_out_ag(X, L)) → member_out_ag(X, .(H, L))
member_in_ag(x0)
U1_ag(x0, x1, x2)
TURING_IN_GAGA(t(y0, y1, []), .(x0, x1)) → U5_GAGA(y0, y1, .(x0, x1), member_out_ag(x0, .(x0, x1)))
TURING_IN_GAGA(t(y0, y1, []), .(x0, x1)) → U5_GAGA(y0, y1, .(x0, x1), U1_ag(x0, x1, member_in_ag(x1)))
U3_GAGA(X, Y, R, L, P, member_out_ag(p(Y, W), P)) → TURING_IN_GAGA(t(.(W, X), R, L), P)
U5_GAGA(X, Y, P, member_out_ag(p(Y, W), P)) → TURING_IN_GAGA(t(.(W, X), space, []), P)
TURING_IN_GAGA(t(.(X, L), Y, R), P) → U7_GAGA(X, L, Y, R, P, member_in_ag(P))
U7_GAGA(X, L, Y, R, P, member_out_ag(p(Y, W), P)) → TURING_IN_GAGA(t(L, X, .(W, R)), P)
TURING_IN_GAGA(t([], Y, R), P) → U9_GAGA(Y, R, P, member_in_ag(P))
U9_GAGA(Y, R, P, member_out_ag(p(Y, W), P)) → TURING_IN_GAGA(t([], space, .(W, R)), P)
TURING_IN_GAGA(t(y0, y1, .(y2, y3)), .(x0, x1)) → U3_GAGA(y0, y1, y2, y3, .(x0, x1), member_out_ag(x0, .(x0, x1)))
TURING_IN_GAGA(t(y0, y1, .(y2, y3)), .(x0, x1)) → U3_GAGA(y0, y1, y2, y3, .(x0, x1), U1_ag(x0, x1, member_in_ag(x1)))
TURING_IN_GAGA(t(y0, y1, []), .(x0, x1)) → U5_GAGA(y0, y1, .(x0, x1), member_out_ag(x0, .(x0, x1)))
TURING_IN_GAGA(t(y0, y1, []), .(x0, x1)) → U5_GAGA(y0, y1, .(x0, x1), U1_ag(x0, x1, member_in_ag(x1)))
member_in_ag(.(H, L)) → member_out_ag(H, .(H, L))
member_in_ag(.(H, L)) → U1_ag(H, L, member_in_ag(L))
U1_ag(H, L, member_out_ag(X, L)) → member_out_ag(X, .(H, L))
member_in_ag(x0)
U1_ag(x0, x1, x2)
TURING_IN_GAGA(t(.(y0, y1), y2, y3), .(x0, x1)) → U7_GAGA(y0, y1, y2, y3, .(x0, x1), member_out_ag(x0, .(x0, x1)))
TURING_IN_GAGA(t(.(y0, y1), y2, y3), .(x0, x1)) → U7_GAGA(y0, y1, y2, y3, .(x0, x1), U1_ag(x0, x1, member_in_ag(x1)))
U3_GAGA(X, Y, R, L, P, member_out_ag(p(Y, W), P)) → TURING_IN_GAGA(t(.(W, X), R, L), P)
U5_GAGA(X, Y, P, member_out_ag(p(Y, W), P)) → TURING_IN_GAGA(t(.(W, X), space, []), P)
U7_GAGA(X, L, Y, R, P, member_out_ag(p(Y, W), P)) → TURING_IN_GAGA(t(L, X, .(W, R)), P)
TURING_IN_GAGA(t([], Y, R), P) → U9_GAGA(Y, R, P, member_in_ag(P))
U9_GAGA(Y, R, P, member_out_ag(p(Y, W), P)) → TURING_IN_GAGA(t([], space, .(W, R)), P)
TURING_IN_GAGA(t(y0, y1, .(y2, y3)), .(x0, x1)) → U3_GAGA(y0, y1, y2, y3, .(x0, x1), member_out_ag(x0, .(x0, x1)))
TURING_IN_GAGA(t(y0, y1, .(y2, y3)), .(x0, x1)) → U3_GAGA(y0, y1, y2, y3, .(x0, x1), U1_ag(x0, x1, member_in_ag(x1)))
TURING_IN_GAGA(t(y0, y1, []), .(x0, x1)) → U5_GAGA(y0, y1, .(x0, x1), member_out_ag(x0, .(x0, x1)))
TURING_IN_GAGA(t(y0, y1, []), .(x0, x1)) → U5_GAGA(y0, y1, .(x0, x1), U1_ag(x0, x1, member_in_ag(x1)))
TURING_IN_GAGA(t(.(y0, y1), y2, y3), .(x0, x1)) → U7_GAGA(y0, y1, y2, y3, .(x0, x1), member_out_ag(x0, .(x0, x1)))
TURING_IN_GAGA(t(.(y0, y1), y2, y3), .(x0, x1)) → U7_GAGA(y0, y1, y2, y3, .(x0, x1), U1_ag(x0, x1, member_in_ag(x1)))
member_in_ag(.(H, L)) → member_out_ag(H, .(H, L))
member_in_ag(.(H, L)) → U1_ag(H, L, member_in_ag(L))
U1_ag(H, L, member_out_ag(X, L)) → member_out_ag(X, .(H, L))
member_in_ag(x0)
U1_ag(x0, x1, x2)
TURING_IN_GAGA(t([], y0, y1), .(x0, x1)) → U9_GAGA(y0, y1, .(x0, x1), member_out_ag(x0, .(x0, x1)))
TURING_IN_GAGA(t([], y0, y1), .(x0, x1)) → U9_GAGA(y0, y1, .(x0, x1), U1_ag(x0, x1, member_in_ag(x1)))
U3_GAGA(X, Y, R, L, P, member_out_ag(p(Y, W), P)) → TURING_IN_GAGA(t(.(W, X), R, L), P)
U5_GAGA(X, Y, P, member_out_ag(p(Y, W), P)) → TURING_IN_GAGA(t(.(W, X), space, []), P)
U7_GAGA(X, L, Y, R, P, member_out_ag(p(Y, W), P)) → TURING_IN_GAGA(t(L, X, .(W, R)), P)
U9_GAGA(Y, R, P, member_out_ag(p(Y, W), P)) → TURING_IN_GAGA(t([], space, .(W, R)), P)
TURING_IN_GAGA(t(y0, y1, .(y2, y3)), .(x0, x1)) → U3_GAGA(y0, y1, y2, y3, .(x0, x1), member_out_ag(x0, .(x0, x1)))
TURING_IN_GAGA(t(y0, y1, .(y2, y3)), .(x0, x1)) → U3_GAGA(y0, y1, y2, y3, .(x0, x1), U1_ag(x0, x1, member_in_ag(x1)))
TURING_IN_GAGA(t(y0, y1, []), .(x0, x1)) → U5_GAGA(y0, y1, .(x0, x1), member_out_ag(x0, .(x0, x1)))
TURING_IN_GAGA(t(y0, y1, []), .(x0, x1)) → U5_GAGA(y0, y1, .(x0, x1), U1_ag(x0, x1, member_in_ag(x1)))
TURING_IN_GAGA(t(.(y0, y1), y2, y3), .(x0, x1)) → U7_GAGA(y0, y1, y2, y3, .(x0, x1), member_out_ag(x0, .(x0, x1)))
TURING_IN_GAGA(t(.(y0, y1), y2, y3), .(x0, x1)) → U7_GAGA(y0, y1, y2, y3, .(x0, x1), U1_ag(x0, x1, member_in_ag(x1)))
TURING_IN_GAGA(t([], y0, y1), .(x0, x1)) → U9_GAGA(y0, y1, .(x0, x1), member_out_ag(x0, .(x0, x1)))
TURING_IN_GAGA(t([], y0, y1), .(x0, x1)) → U9_GAGA(y0, y1, .(x0, x1), U1_ag(x0, x1, member_in_ag(x1)))
member_in_ag(.(H, L)) → member_out_ag(H, .(H, L))
member_in_ag(.(H, L)) → U1_ag(H, L, member_in_ag(L))
U1_ag(H, L, member_out_ag(X, L)) → member_out_ag(X, .(H, L))
member_in_ag(x0)
U1_ag(x0, x1, x2)
U3_GAGA(z0, z1, z2, z3, .(p(z1, x5), z5), member_out_ag(p(z1, x5), .(p(z1, x5), z5))) → TURING_IN_GAGA(t(.(x5, z0), z2, z3), .(p(z1, x5), z5))
U3_GAGA(z0, z1, z2, z3, .(z4, z5), member_out_ag(p(z1, x5), .(z4, z5))) → TURING_IN_GAGA(t(.(x5, z0), z2, z3), .(z4, z5))
U5_GAGA(X, Y, P, member_out_ag(p(Y, W), P)) → TURING_IN_GAGA(t(.(W, X), space, []), P)
U7_GAGA(X, L, Y, R, P, member_out_ag(p(Y, W), P)) → TURING_IN_GAGA(t(L, X, .(W, R)), P)
U9_GAGA(Y, R, P, member_out_ag(p(Y, W), P)) → TURING_IN_GAGA(t([], space, .(W, R)), P)
TURING_IN_GAGA(t(y0, y1, .(y2, y3)), .(x0, x1)) → U3_GAGA(y0, y1, y2, y3, .(x0, x1), member_out_ag(x0, .(x0, x1)))
TURING_IN_GAGA(t(y0, y1, .(y2, y3)), .(x0, x1)) → U3_GAGA(y0, y1, y2, y3, .(x0, x1), U1_ag(x0, x1, member_in_ag(x1)))
TURING_IN_GAGA(t(y0, y1, []), .(x0, x1)) → U5_GAGA(y0, y1, .(x0, x1), member_out_ag(x0, .(x0, x1)))
TURING_IN_GAGA(t(y0, y1, []), .(x0, x1)) → U5_GAGA(y0, y1, .(x0, x1), U1_ag(x0, x1, member_in_ag(x1)))
TURING_IN_GAGA(t(.(y0, y1), y2, y3), .(x0, x1)) → U7_GAGA(y0, y1, y2, y3, .(x0, x1), member_out_ag(x0, .(x0, x1)))
TURING_IN_GAGA(t(.(y0, y1), y2, y3), .(x0, x1)) → U7_GAGA(y0, y1, y2, y3, .(x0, x1), U1_ag(x0, x1, member_in_ag(x1)))
TURING_IN_GAGA(t([], y0, y1), .(x0, x1)) → U9_GAGA(y0, y1, .(x0, x1), member_out_ag(x0, .(x0, x1)))
TURING_IN_GAGA(t([], y0, y1), .(x0, x1)) → U9_GAGA(y0, y1, .(x0, x1), U1_ag(x0, x1, member_in_ag(x1)))
U3_GAGA(z0, z1, z2, z3, .(p(z1, x5), z5), member_out_ag(p(z1, x5), .(p(z1, x5), z5))) → TURING_IN_GAGA(t(.(x5, z0), z2, z3), .(p(z1, x5), z5))
U3_GAGA(z0, z1, z2, z3, .(z4, z5), member_out_ag(p(z1, x5), .(z4, z5))) → TURING_IN_GAGA(t(.(x5, z0), z2, z3), .(z4, z5))
member_in_ag(.(H, L)) → member_out_ag(H, .(H, L))
member_in_ag(.(H, L)) → U1_ag(H, L, member_in_ag(L))
U1_ag(H, L, member_out_ag(X, L)) → member_out_ag(X, .(H, L))
member_in_ag(x0)
U1_ag(x0, x1, x2)
U5_GAGA(z0, z1, .(p(z1, x3), z3), member_out_ag(p(z1, x3), .(p(z1, x3), z3))) → TURING_IN_GAGA(t(.(x3, z0), space, []), .(p(z1, x3), z3))
U5_GAGA(z0, z1, .(z2, z3), member_out_ag(p(z1, x3), .(z2, z3))) → TURING_IN_GAGA(t(.(x3, z0), space, []), .(z2, z3))
U7_GAGA(X, L, Y, R, P, member_out_ag(p(Y, W), P)) → TURING_IN_GAGA(t(L, X, .(W, R)), P)
U9_GAGA(Y, R, P, member_out_ag(p(Y, W), P)) → TURING_IN_GAGA(t([], space, .(W, R)), P)
TURING_IN_GAGA(t(y0, y1, .(y2, y3)), .(x0, x1)) → U3_GAGA(y0, y1, y2, y3, .(x0, x1), member_out_ag(x0, .(x0, x1)))
TURING_IN_GAGA(t(y0, y1, .(y2, y3)), .(x0, x1)) → U3_GAGA(y0, y1, y2, y3, .(x0, x1), U1_ag(x0, x1, member_in_ag(x1)))
TURING_IN_GAGA(t(y0, y1, []), .(x0, x1)) → U5_GAGA(y0, y1, .(x0, x1), member_out_ag(x0, .(x0, x1)))
TURING_IN_GAGA(t(y0, y1, []), .(x0, x1)) → U5_GAGA(y0, y1, .(x0, x1), U1_ag(x0, x1, member_in_ag(x1)))
TURING_IN_GAGA(t(.(y0, y1), y2, y3), .(x0, x1)) → U7_GAGA(y0, y1, y2, y3, .(x0, x1), member_out_ag(x0, .(x0, x1)))
TURING_IN_GAGA(t(.(y0, y1), y2, y3), .(x0, x1)) → U7_GAGA(y0, y1, y2, y3, .(x0, x1), U1_ag(x0, x1, member_in_ag(x1)))
TURING_IN_GAGA(t([], y0, y1), .(x0, x1)) → U9_GAGA(y0, y1, .(x0, x1), member_out_ag(x0, .(x0, x1)))
TURING_IN_GAGA(t([], y0, y1), .(x0, x1)) → U9_GAGA(y0, y1, .(x0, x1), U1_ag(x0, x1, member_in_ag(x1)))
U3_GAGA(z0, z1, z2, z3, .(p(z1, x5), z5), member_out_ag(p(z1, x5), .(p(z1, x5), z5))) → TURING_IN_GAGA(t(.(x5, z0), z2, z3), .(p(z1, x5), z5))
U3_GAGA(z0, z1, z2, z3, .(z4, z5), member_out_ag(p(z1, x5), .(z4, z5))) → TURING_IN_GAGA(t(.(x5, z0), z2, z3), .(z4, z5))
U5_GAGA(z0, z1, .(p(z1, x3), z3), member_out_ag(p(z1, x3), .(p(z1, x3), z3))) → TURING_IN_GAGA(t(.(x3, z0), space, []), .(p(z1, x3), z3))
U5_GAGA(z0, z1, .(z2, z3), member_out_ag(p(z1, x3), .(z2, z3))) → TURING_IN_GAGA(t(.(x3, z0), space, []), .(z2, z3))
member_in_ag(.(H, L)) → member_out_ag(H, .(H, L))
member_in_ag(.(H, L)) → U1_ag(H, L, member_in_ag(L))
U1_ag(H, L, member_out_ag(X, L)) → member_out_ag(X, .(H, L))
member_in_ag(x0)
U1_ag(x0, x1, x2)
U7_GAGA(z0, z1, z2, z3, .(p(z2, x5), z5), member_out_ag(p(z2, x5), .(p(z2, x5), z5))) → TURING_IN_GAGA(t(z1, z0, .(x5, z3)), .(p(z2, x5), z5))
U7_GAGA(z0, z1, z2, z3, .(z4, z5), member_out_ag(p(z2, x5), .(z4, z5))) → TURING_IN_GAGA(t(z1, z0, .(x5, z3)), .(z4, z5))
U9_GAGA(Y, R, P, member_out_ag(p(Y, W), P)) → TURING_IN_GAGA(t([], space, .(W, R)), P)
TURING_IN_GAGA(t(y0, y1, .(y2, y3)), .(x0, x1)) → U3_GAGA(y0, y1, y2, y3, .(x0, x1), member_out_ag(x0, .(x0, x1)))
TURING_IN_GAGA(t(y0, y1, .(y2, y3)), .(x0, x1)) → U3_GAGA(y0, y1, y2, y3, .(x0, x1), U1_ag(x0, x1, member_in_ag(x1)))
TURING_IN_GAGA(t(y0, y1, []), .(x0, x1)) → U5_GAGA(y0, y1, .(x0, x1), member_out_ag(x0, .(x0, x1)))
TURING_IN_GAGA(t(y0, y1, []), .(x0, x1)) → U5_GAGA(y0, y1, .(x0, x1), U1_ag(x0, x1, member_in_ag(x1)))
TURING_IN_GAGA(t(.(y0, y1), y2, y3), .(x0, x1)) → U7_GAGA(y0, y1, y2, y3, .(x0, x1), member_out_ag(x0, .(x0, x1)))
TURING_IN_GAGA(t(.(y0, y1), y2, y3), .(x0, x1)) → U7_GAGA(y0, y1, y2, y3, .(x0, x1), U1_ag(x0, x1, member_in_ag(x1)))
TURING_IN_GAGA(t([], y0, y1), .(x0, x1)) → U9_GAGA(y0, y1, .(x0, x1), member_out_ag(x0, .(x0, x1)))
TURING_IN_GAGA(t([], y0, y1), .(x0, x1)) → U9_GAGA(y0, y1, .(x0, x1), U1_ag(x0, x1, member_in_ag(x1)))
U3_GAGA(z0, z1, z2, z3, .(p(z1, x5), z5), member_out_ag(p(z1, x5), .(p(z1, x5), z5))) → TURING_IN_GAGA(t(.(x5, z0), z2, z3), .(p(z1, x5), z5))
U3_GAGA(z0, z1, z2, z3, .(z4, z5), member_out_ag(p(z1, x5), .(z4, z5))) → TURING_IN_GAGA(t(.(x5, z0), z2, z3), .(z4, z5))
U5_GAGA(z0, z1, .(p(z1, x3), z3), member_out_ag(p(z1, x3), .(p(z1, x3), z3))) → TURING_IN_GAGA(t(.(x3, z0), space, []), .(p(z1, x3), z3))
U5_GAGA(z0, z1, .(z2, z3), member_out_ag(p(z1, x3), .(z2, z3))) → TURING_IN_GAGA(t(.(x3, z0), space, []), .(z2, z3))
U7_GAGA(z0, z1, z2, z3, .(p(z2, x5), z5), member_out_ag(p(z2, x5), .(p(z2, x5), z5))) → TURING_IN_GAGA(t(z1, z0, .(x5, z3)), .(p(z2, x5), z5))
U7_GAGA(z0, z1, z2, z3, .(z4, z5), member_out_ag(p(z2, x5), .(z4, z5))) → TURING_IN_GAGA(t(z1, z0, .(x5, z3)), .(z4, z5))
member_in_ag(.(H, L)) → member_out_ag(H, .(H, L))
member_in_ag(.(H, L)) → U1_ag(H, L, member_in_ag(L))
U1_ag(H, L, member_out_ag(X, L)) → member_out_ag(X, .(H, L))
member_in_ag(x0)
U1_ag(x0, x1, x2)
U9_GAGA(z0, z1, .(p(z0, x3), z3), member_out_ag(p(z0, x3), .(p(z0, x3), z3))) → TURING_IN_GAGA(t([], space, .(x3, z1)), .(p(z0, x3), z3))
U9_GAGA(z0, z1, .(z2, z3), member_out_ag(p(z0, x3), .(z2, z3))) → TURING_IN_GAGA(t([], space, .(x3, z1)), .(z2, z3))
TURING_IN_GAGA(t(y0, y1, .(y2, y3)), .(x0, x1)) → U3_GAGA(y0, y1, y2, y3, .(x0, x1), member_out_ag(x0, .(x0, x1)))
TURING_IN_GAGA(t(y0, y1, .(y2, y3)), .(x0, x1)) → U3_GAGA(y0, y1, y2, y3, .(x0, x1), U1_ag(x0, x1, member_in_ag(x1)))
TURING_IN_GAGA(t(y0, y1, []), .(x0, x1)) → U5_GAGA(y0, y1, .(x0, x1), member_out_ag(x0, .(x0, x1)))
TURING_IN_GAGA(t(y0, y1, []), .(x0, x1)) → U5_GAGA(y0, y1, .(x0, x1), U1_ag(x0, x1, member_in_ag(x1)))
TURING_IN_GAGA(t(.(y0, y1), y2, y3), .(x0, x1)) → U7_GAGA(y0, y1, y2, y3, .(x0, x1), member_out_ag(x0, .(x0, x1)))
TURING_IN_GAGA(t(.(y0, y1), y2, y3), .(x0, x1)) → U7_GAGA(y0, y1, y2, y3, .(x0, x1), U1_ag(x0, x1, member_in_ag(x1)))
TURING_IN_GAGA(t([], y0, y1), .(x0, x1)) → U9_GAGA(y0, y1, .(x0, x1), member_out_ag(x0, .(x0, x1)))
TURING_IN_GAGA(t([], y0, y1), .(x0, x1)) → U9_GAGA(y0, y1, .(x0, x1), U1_ag(x0, x1, member_in_ag(x1)))
U3_GAGA(z0, z1, z2, z3, .(p(z1, x5), z5), member_out_ag(p(z1, x5), .(p(z1, x5), z5))) → TURING_IN_GAGA(t(.(x5, z0), z2, z3), .(p(z1, x5), z5))
U3_GAGA(z0, z1, z2, z3, .(z4, z5), member_out_ag(p(z1, x5), .(z4, z5))) → TURING_IN_GAGA(t(.(x5, z0), z2, z3), .(z4, z5))
U5_GAGA(z0, z1, .(p(z1, x3), z3), member_out_ag(p(z1, x3), .(p(z1, x3), z3))) → TURING_IN_GAGA(t(.(x3, z0), space, []), .(p(z1, x3), z3))
U5_GAGA(z0, z1, .(z2, z3), member_out_ag(p(z1, x3), .(z2, z3))) → TURING_IN_GAGA(t(.(x3, z0), space, []), .(z2, z3))
U7_GAGA(z0, z1, z2, z3, .(p(z2, x5), z5), member_out_ag(p(z2, x5), .(p(z2, x5), z5))) → TURING_IN_GAGA(t(z1, z0, .(x5, z3)), .(p(z2, x5), z5))
U7_GAGA(z0, z1, z2, z3, .(z4, z5), member_out_ag(p(z2, x5), .(z4, z5))) → TURING_IN_GAGA(t(z1, z0, .(x5, z3)), .(z4, z5))
U9_GAGA(z0, z1, .(p(z0, x3), z3), member_out_ag(p(z0, x3), .(p(z0, x3), z3))) → TURING_IN_GAGA(t([], space, .(x3, z1)), .(p(z0, x3), z3))
U9_GAGA(z0, z1, .(z2, z3), member_out_ag(p(z0, x3), .(z2, z3))) → TURING_IN_GAGA(t([], space, .(x3, z1)), .(z2, z3))
member_in_ag(.(H, L)) → member_out_ag(H, .(H, L))
member_in_ag(.(H, L)) → U1_ag(H, L, member_in_ag(L))
U1_ag(H, L, member_out_ag(X, L)) → member_out_ag(X, .(H, L))
member_in_ag(x0)
U1_ag(x0, x1, x2)
TURING_IN_GAGA(t(.(z4, z0), z2, []), .(p(z1, z4), z5)) → U5_GAGA(.(z4, z0), z2, .(p(z1, z4), z5), member_out_ag(p(z1, z4), .(p(z1, z4), z5)))
TURING_IN_GAGA(t(.(z6, z0), z2, []), .(z4, z5)) → U5_GAGA(.(z6, z0), z2, .(z4, z5), member_out_ag(z4, .(z4, z5)))
TURING_IN_GAGA(t(.(z2, z0), space, []), .(p(z1, z2), z3)) → U5_GAGA(.(z2, z0), space, .(p(z1, z2), z3), member_out_ag(p(z1, z2), .(p(z1, z2), z3)))
TURING_IN_GAGA(t(.(z4, z0), space, []), .(z2, z3)) → U5_GAGA(.(z4, z0), space, .(z2, z3), member_out_ag(z2, .(z2, z3)))
TURING_IN_GAGA(t(y0, y1, .(y2, y3)), .(x0, x1)) → U3_GAGA(y0, y1, y2, y3, .(x0, x1), member_out_ag(x0, .(x0, x1)))
TURING_IN_GAGA(t(y0, y1, .(y2, y3)), .(x0, x1)) → U3_GAGA(y0, y1, y2, y3, .(x0, x1), U1_ag(x0, x1, member_in_ag(x1)))
TURING_IN_GAGA(t(y0, y1, []), .(x0, x1)) → U5_GAGA(y0, y1, .(x0, x1), U1_ag(x0, x1, member_in_ag(x1)))
TURING_IN_GAGA(t(.(y0, y1), y2, y3), .(x0, x1)) → U7_GAGA(y0, y1, y2, y3, .(x0, x1), member_out_ag(x0, .(x0, x1)))
TURING_IN_GAGA(t(.(y0, y1), y2, y3), .(x0, x1)) → U7_GAGA(y0, y1, y2, y3, .(x0, x1), U1_ag(x0, x1, member_in_ag(x1)))
TURING_IN_GAGA(t([], y0, y1), .(x0, x1)) → U9_GAGA(y0, y1, .(x0, x1), member_out_ag(x0, .(x0, x1)))
TURING_IN_GAGA(t([], y0, y1), .(x0, x1)) → U9_GAGA(y0, y1, .(x0, x1), U1_ag(x0, x1, member_in_ag(x1)))
U3_GAGA(z0, z1, z2, z3, .(p(z1, x5), z5), member_out_ag(p(z1, x5), .(p(z1, x5), z5))) → TURING_IN_GAGA(t(.(x5, z0), z2, z3), .(p(z1, x5), z5))
U3_GAGA(z0, z1, z2, z3, .(z4, z5), member_out_ag(p(z1, x5), .(z4, z5))) → TURING_IN_GAGA(t(.(x5, z0), z2, z3), .(z4, z5))
U5_GAGA(z0, z1, .(p(z1, x3), z3), member_out_ag(p(z1, x3), .(p(z1, x3), z3))) → TURING_IN_GAGA(t(.(x3, z0), space, []), .(p(z1, x3), z3))
U5_GAGA(z0, z1, .(z2, z3), member_out_ag(p(z1, x3), .(z2, z3))) → TURING_IN_GAGA(t(.(x3, z0), space, []), .(z2, z3))
U7_GAGA(z0, z1, z2, z3, .(p(z2, x5), z5), member_out_ag(p(z2, x5), .(p(z2, x5), z5))) → TURING_IN_GAGA(t(z1, z0, .(x5, z3)), .(p(z2, x5), z5))
U7_GAGA(z0, z1, z2, z3, .(z4, z5), member_out_ag(p(z2, x5), .(z4, z5))) → TURING_IN_GAGA(t(z1, z0, .(x5, z3)), .(z4, z5))
U9_GAGA(z0, z1, .(p(z0, x3), z3), member_out_ag(p(z0, x3), .(p(z0, x3), z3))) → TURING_IN_GAGA(t([], space, .(x3, z1)), .(p(z0, x3), z3))
U9_GAGA(z0, z1, .(z2, z3), member_out_ag(p(z0, x3), .(z2, z3))) → TURING_IN_GAGA(t([], space, .(x3, z1)), .(z2, z3))
TURING_IN_GAGA(t(.(z4, z0), z2, []), .(p(z1, z4), z5)) → U5_GAGA(.(z4, z0), z2, .(p(z1, z4), z5), member_out_ag(p(z1, z4), .(p(z1, z4), z5)))
TURING_IN_GAGA(t(.(z6, z0), z2, []), .(z4, z5)) → U5_GAGA(.(z6, z0), z2, .(z4, z5), member_out_ag(z4, .(z4, z5)))
TURING_IN_GAGA(t(.(z2, z0), space, []), .(p(z1, z2), z3)) → U5_GAGA(.(z2, z0), space, .(p(z1, z2), z3), member_out_ag(p(z1, z2), .(p(z1, z2), z3)))
TURING_IN_GAGA(t(.(z4, z0), space, []), .(z2, z3)) → U5_GAGA(.(z4, z0), space, .(z2, z3), member_out_ag(z2, .(z2, z3)))
member_in_ag(.(H, L)) → member_out_ag(H, .(H, L))
member_in_ag(.(H, L)) → U1_ag(H, L, member_in_ag(L))
U1_ag(H, L, member_out_ag(X, L)) → member_out_ag(X, .(H, L))
member_in_ag(x0)
U1_ag(x0, x1, x2)
TURING_IN_GAGA(t(.(z4, z0), z2, []), .(p(z1, z4), z5)) → U5_GAGA(.(z4, z0), z2, .(p(z1, z4), z5), U1_ag(p(z1, z4), z5, member_in_ag(z5)))
TURING_IN_GAGA(t(.(z6, z0), z2, []), .(z4, z5)) → U5_GAGA(.(z6, z0), z2, .(z4, z5), U1_ag(z4, z5, member_in_ag(z5)))
TURING_IN_GAGA(t(.(z2, z0), space, []), .(p(z1, z2), z3)) → U5_GAGA(.(z2, z0), space, .(p(z1, z2), z3), U1_ag(p(z1, z2), z3, member_in_ag(z3)))
TURING_IN_GAGA(t(.(z4, z0), space, []), .(z2, z3)) → U5_GAGA(.(z4, z0), space, .(z2, z3), U1_ag(z2, z3, member_in_ag(z3)))
TURING_IN_GAGA(t(y0, y1, .(y2, y3)), .(x0, x1)) → U3_GAGA(y0, y1, y2, y3, .(x0, x1), member_out_ag(x0, .(x0, x1)))
TURING_IN_GAGA(t(y0, y1, .(y2, y3)), .(x0, x1)) → U3_GAGA(y0, y1, y2, y3, .(x0, x1), U1_ag(x0, x1, member_in_ag(x1)))
TURING_IN_GAGA(t(.(y0, y1), y2, y3), .(x0, x1)) → U7_GAGA(y0, y1, y2, y3, .(x0, x1), member_out_ag(x0, .(x0, x1)))
TURING_IN_GAGA(t(.(y0, y1), y2, y3), .(x0, x1)) → U7_GAGA(y0, y1, y2, y3, .(x0, x1), U1_ag(x0, x1, member_in_ag(x1)))
TURING_IN_GAGA(t([], y0, y1), .(x0, x1)) → U9_GAGA(y0, y1, .(x0, x1), member_out_ag(x0, .(x0, x1)))
TURING_IN_GAGA(t([], y0, y1), .(x0, x1)) → U9_GAGA(y0, y1, .(x0, x1), U1_ag(x0, x1, member_in_ag(x1)))
U3_GAGA(z0, z1, z2, z3, .(p(z1, x5), z5), member_out_ag(p(z1, x5), .(p(z1, x5), z5))) → TURING_IN_GAGA(t(.(x5, z0), z2, z3), .(p(z1, x5), z5))
U3_GAGA(z0, z1, z2, z3, .(z4, z5), member_out_ag(p(z1, x5), .(z4, z5))) → TURING_IN_GAGA(t(.(x5, z0), z2, z3), .(z4, z5))
U5_GAGA(z0, z1, .(p(z1, x3), z3), member_out_ag(p(z1, x3), .(p(z1, x3), z3))) → TURING_IN_GAGA(t(.(x3, z0), space, []), .(p(z1, x3), z3))
U5_GAGA(z0, z1, .(z2, z3), member_out_ag(p(z1, x3), .(z2, z3))) → TURING_IN_GAGA(t(.(x3, z0), space, []), .(z2, z3))
U7_GAGA(z0, z1, z2, z3, .(p(z2, x5), z5), member_out_ag(p(z2, x5), .(p(z2, x5), z5))) → TURING_IN_GAGA(t(z1, z0, .(x5, z3)), .(p(z2, x5), z5))
U7_GAGA(z0, z1, z2, z3, .(z4, z5), member_out_ag(p(z2, x5), .(z4, z5))) → TURING_IN_GAGA(t(z1, z0, .(x5, z3)), .(z4, z5))
U9_GAGA(z0, z1, .(p(z0, x3), z3), member_out_ag(p(z0, x3), .(p(z0, x3), z3))) → TURING_IN_GAGA(t([], space, .(x3, z1)), .(p(z0, x3), z3))
U9_GAGA(z0, z1, .(z2, z3), member_out_ag(p(z0, x3), .(z2, z3))) → TURING_IN_GAGA(t([], space, .(x3, z1)), .(z2, z3))
TURING_IN_GAGA(t(.(z4, z0), z2, []), .(p(z1, z4), z5)) → U5_GAGA(.(z4, z0), z2, .(p(z1, z4), z5), member_out_ag(p(z1, z4), .(p(z1, z4), z5)))
TURING_IN_GAGA(t(.(z6, z0), z2, []), .(z4, z5)) → U5_GAGA(.(z6, z0), z2, .(z4, z5), member_out_ag(z4, .(z4, z5)))
TURING_IN_GAGA(t(.(z2, z0), space, []), .(p(z1, z2), z3)) → U5_GAGA(.(z2, z0), space, .(p(z1, z2), z3), member_out_ag(p(z1, z2), .(p(z1, z2), z3)))
TURING_IN_GAGA(t(.(z4, z0), space, []), .(z2, z3)) → U5_GAGA(.(z4, z0), space, .(z2, z3), member_out_ag(z2, .(z2, z3)))
TURING_IN_GAGA(t(.(z4, z0), z2, []), .(p(z1, z4), z5)) → U5_GAGA(.(z4, z0), z2, .(p(z1, z4), z5), U1_ag(p(z1, z4), z5, member_in_ag(z5)))
TURING_IN_GAGA(t(.(z6, z0), z2, []), .(z4, z5)) → U5_GAGA(.(z6, z0), z2, .(z4, z5), U1_ag(z4, z5, member_in_ag(z5)))
TURING_IN_GAGA(t(.(z2, z0), space, []), .(p(z1, z2), z3)) → U5_GAGA(.(z2, z0), space, .(p(z1, z2), z3), U1_ag(p(z1, z2), z3, member_in_ag(z3)))
TURING_IN_GAGA(t(.(z4, z0), space, []), .(z2, z3)) → U5_GAGA(.(z4, z0), space, .(z2, z3), U1_ag(z2, z3, member_in_ag(z3)))
member_in_ag(.(H, L)) → member_out_ag(H, .(H, L))
member_in_ag(.(H, L)) → U1_ag(H, L, member_in_ag(L))
U1_ag(H, L, member_out_ag(X, L)) → member_out_ag(X, .(H, L))
member_in_ag(x0)
U1_ag(x0, x1, x2)
TURING_IN_GAGA(t([], z0, .(z4, z3)), .(p(z2, z4), z5)) → U9_GAGA(z0, .(z4, z3), .(p(z2, z4), z5), member_out_ag(p(z2, z4), .(p(z2, z4), z5)))
TURING_IN_GAGA(t([], z0, .(z6, z3)), .(z4, z5)) → U9_GAGA(z0, .(z6, z3), .(z4, z5), member_out_ag(z4, .(z4, z5)))
TURING_IN_GAGA(t([], space, .(z2, z1)), .(p(z0, z2), z3)) → U9_GAGA(space, .(z2, z1), .(p(z0, z2), z3), member_out_ag(p(z0, z2), .(p(z0, z2), z3)))
TURING_IN_GAGA(t([], space, .(z4, z1)), .(z2, z3)) → U9_GAGA(space, .(z4, z1), .(z2, z3), member_out_ag(z2, .(z2, z3)))
TURING_IN_GAGA(t(y0, y1, .(y2, y3)), .(x0, x1)) → U3_GAGA(y0, y1, y2, y3, .(x0, x1), member_out_ag(x0, .(x0, x1)))
TURING_IN_GAGA(t(y0, y1, .(y2, y3)), .(x0, x1)) → U3_GAGA(y0, y1, y2, y3, .(x0, x1), U1_ag(x0, x1, member_in_ag(x1)))
TURING_IN_GAGA(t(.(y0, y1), y2, y3), .(x0, x1)) → U7_GAGA(y0, y1, y2, y3, .(x0, x1), member_out_ag(x0, .(x0, x1)))
TURING_IN_GAGA(t(.(y0, y1), y2, y3), .(x0, x1)) → U7_GAGA(y0, y1, y2, y3, .(x0, x1), U1_ag(x0, x1, member_in_ag(x1)))
TURING_IN_GAGA(t([], y0, y1), .(x0, x1)) → U9_GAGA(y0, y1, .(x0, x1), U1_ag(x0, x1, member_in_ag(x1)))
U3_GAGA(z0, z1, z2, z3, .(p(z1, x5), z5), member_out_ag(p(z1, x5), .(p(z1, x5), z5))) → TURING_IN_GAGA(t(.(x5, z0), z2, z3), .(p(z1, x5), z5))
U3_GAGA(z0, z1, z2, z3, .(z4, z5), member_out_ag(p(z1, x5), .(z4, z5))) → TURING_IN_GAGA(t(.(x5, z0), z2, z3), .(z4, z5))
U5_GAGA(z0, z1, .(p(z1, x3), z3), member_out_ag(p(z1, x3), .(p(z1, x3), z3))) → TURING_IN_GAGA(t(.(x3, z0), space, []), .(p(z1, x3), z3))
U5_GAGA(z0, z1, .(z2, z3), member_out_ag(p(z1, x3), .(z2, z3))) → TURING_IN_GAGA(t(.(x3, z0), space, []), .(z2, z3))
U7_GAGA(z0, z1, z2, z3, .(p(z2, x5), z5), member_out_ag(p(z2, x5), .(p(z2, x5), z5))) → TURING_IN_GAGA(t(z1, z0, .(x5, z3)), .(p(z2, x5), z5))
U7_GAGA(z0, z1, z2, z3, .(z4, z5), member_out_ag(p(z2, x5), .(z4, z5))) → TURING_IN_GAGA(t(z1, z0, .(x5, z3)), .(z4, z5))
U9_GAGA(z0, z1, .(p(z0, x3), z3), member_out_ag(p(z0, x3), .(p(z0, x3), z3))) → TURING_IN_GAGA(t([], space, .(x3, z1)), .(p(z0, x3), z3))
U9_GAGA(z0, z1, .(z2, z3), member_out_ag(p(z0, x3), .(z2, z3))) → TURING_IN_GAGA(t([], space, .(x3, z1)), .(z2, z3))
TURING_IN_GAGA(t(.(z4, z0), z2, []), .(p(z1, z4), z5)) → U5_GAGA(.(z4, z0), z2, .(p(z1, z4), z5), member_out_ag(p(z1, z4), .(p(z1, z4), z5)))
TURING_IN_GAGA(t(.(z6, z0), z2, []), .(z4, z5)) → U5_GAGA(.(z6, z0), z2, .(z4, z5), member_out_ag(z4, .(z4, z5)))
TURING_IN_GAGA(t(.(z2, z0), space, []), .(p(z1, z2), z3)) → U5_GAGA(.(z2, z0), space, .(p(z1, z2), z3), member_out_ag(p(z1, z2), .(p(z1, z2), z3)))
TURING_IN_GAGA(t(.(z4, z0), space, []), .(z2, z3)) → U5_GAGA(.(z4, z0), space, .(z2, z3), member_out_ag(z2, .(z2, z3)))
TURING_IN_GAGA(t(.(z4, z0), z2, []), .(p(z1, z4), z5)) → U5_GAGA(.(z4, z0), z2, .(p(z1, z4), z5), U1_ag(p(z1, z4), z5, member_in_ag(z5)))
TURING_IN_GAGA(t(.(z6, z0), z2, []), .(z4, z5)) → U5_GAGA(.(z6, z0), z2, .(z4, z5), U1_ag(z4, z5, member_in_ag(z5)))
TURING_IN_GAGA(t(.(z2, z0), space, []), .(p(z1, z2), z3)) → U5_GAGA(.(z2, z0), space, .(p(z1, z2), z3), U1_ag(p(z1, z2), z3, member_in_ag(z3)))
TURING_IN_GAGA(t(.(z4, z0), space, []), .(z2, z3)) → U5_GAGA(.(z4, z0), space, .(z2, z3), U1_ag(z2, z3, member_in_ag(z3)))
TURING_IN_GAGA(t([], z0, .(z4, z3)), .(p(z2, z4), z5)) → U9_GAGA(z0, .(z4, z3), .(p(z2, z4), z5), member_out_ag(p(z2, z4), .(p(z2, z4), z5)))
TURING_IN_GAGA(t([], z0, .(z6, z3)), .(z4, z5)) → U9_GAGA(z0, .(z6, z3), .(z4, z5), member_out_ag(z4, .(z4, z5)))
TURING_IN_GAGA(t([], space, .(z2, z1)), .(p(z0, z2), z3)) → U9_GAGA(space, .(z2, z1), .(p(z0, z2), z3), member_out_ag(p(z0, z2), .(p(z0, z2), z3)))
TURING_IN_GAGA(t([], space, .(z4, z1)), .(z2, z3)) → U9_GAGA(space, .(z4, z1), .(z2, z3), member_out_ag(z2, .(z2, z3)))
member_in_ag(.(H, L)) → member_out_ag(H, .(H, L))
member_in_ag(.(H, L)) → U1_ag(H, L, member_in_ag(L))
U1_ag(H, L, member_out_ag(X, L)) → member_out_ag(X, .(H, L))
member_in_ag(x0)
U1_ag(x0, x1, x2)
TURING_IN_GAGA(t([], z0, .(z4, z3)), .(p(z2, z4), z5)) → U9_GAGA(z0, .(z4, z3), .(p(z2, z4), z5), U1_ag(p(z2, z4), z5, member_in_ag(z5)))
TURING_IN_GAGA(t([], z0, .(z6, z3)), .(z4, z5)) → U9_GAGA(z0, .(z6, z3), .(z4, z5), U1_ag(z4, z5, member_in_ag(z5)))
TURING_IN_GAGA(t([], space, .(z2, z1)), .(p(z0, z2), z3)) → U9_GAGA(space, .(z2, z1), .(p(z0, z2), z3), U1_ag(p(z0, z2), z3, member_in_ag(z3)))
TURING_IN_GAGA(t([], space, .(z4, z1)), .(z2, z3)) → U9_GAGA(space, .(z4, z1), .(z2, z3), U1_ag(z2, z3, member_in_ag(z3)))
TURING_IN_GAGA(t(y0, y1, .(y2, y3)), .(x0, x1)) → U3_GAGA(y0, y1, y2, y3, .(x0, x1), member_out_ag(x0, .(x0, x1)))
TURING_IN_GAGA(t(y0, y1, .(y2, y3)), .(x0, x1)) → U3_GAGA(y0, y1, y2, y3, .(x0, x1), U1_ag(x0, x1, member_in_ag(x1)))
TURING_IN_GAGA(t(.(y0, y1), y2, y3), .(x0, x1)) → U7_GAGA(y0, y1, y2, y3, .(x0, x1), member_out_ag(x0, .(x0, x1)))
TURING_IN_GAGA(t(.(y0, y1), y2, y3), .(x0, x1)) → U7_GAGA(y0, y1, y2, y3, .(x0, x1), U1_ag(x0, x1, member_in_ag(x1)))
U3_GAGA(z0, z1, z2, z3, .(p(z1, x5), z5), member_out_ag(p(z1, x5), .(p(z1, x5), z5))) → TURING_IN_GAGA(t(.(x5, z0), z2, z3), .(p(z1, x5), z5))
U3_GAGA(z0, z1, z2, z3, .(z4, z5), member_out_ag(p(z1, x5), .(z4, z5))) → TURING_IN_GAGA(t(.(x5, z0), z2, z3), .(z4, z5))
U5_GAGA(z0, z1, .(p(z1, x3), z3), member_out_ag(p(z1, x3), .(p(z1, x3), z3))) → TURING_IN_GAGA(t(.(x3, z0), space, []), .(p(z1, x3), z3))
U5_GAGA(z0, z1, .(z2, z3), member_out_ag(p(z1, x3), .(z2, z3))) → TURING_IN_GAGA(t(.(x3, z0), space, []), .(z2, z3))
U7_GAGA(z0, z1, z2, z3, .(p(z2, x5), z5), member_out_ag(p(z2, x5), .(p(z2, x5), z5))) → TURING_IN_GAGA(t(z1, z0, .(x5, z3)), .(p(z2, x5), z5))
U7_GAGA(z0, z1, z2, z3, .(z4, z5), member_out_ag(p(z2, x5), .(z4, z5))) → TURING_IN_GAGA(t(z1, z0, .(x5, z3)), .(z4, z5))
U9_GAGA(z0, z1, .(p(z0, x3), z3), member_out_ag(p(z0, x3), .(p(z0, x3), z3))) → TURING_IN_GAGA(t([], space, .(x3, z1)), .(p(z0, x3), z3))
U9_GAGA(z0, z1, .(z2, z3), member_out_ag(p(z0, x3), .(z2, z3))) → TURING_IN_GAGA(t([], space, .(x3, z1)), .(z2, z3))
TURING_IN_GAGA(t(.(z4, z0), z2, []), .(p(z1, z4), z5)) → U5_GAGA(.(z4, z0), z2, .(p(z1, z4), z5), member_out_ag(p(z1, z4), .(p(z1, z4), z5)))
TURING_IN_GAGA(t(.(z6, z0), z2, []), .(z4, z5)) → U5_GAGA(.(z6, z0), z2, .(z4, z5), member_out_ag(z4, .(z4, z5)))
TURING_IN_GAGA(t(.(z2, z0), space, []), .(p(z1, z2), z3)) → U5_GAGA(.(z2, z0), space, .(p(z1, z2), z3), member_out_ag(p(z1, z2), .(p(z1, z2), z3)))
TURING_IN_GAGA(t(.(z4, z0), space, []), .(z2, z3)) → U5_GAGA(.(z4, z0), space, .(z2, z3), member_out_ag(z2, .(z2, z3)))
TURING_IN_GAGA(t(.(z4, z0), z2, []), .(p(z1, z4), z5)) → U5_GAGA(.(z4, z0), z2, .(p(z1, z4), z5), U1_ag(p(z1, z4), z5, member_in_ag(z5)))
TURING_IN_GAGA(t(.(z6, z0), z2, []), .(z4, z5)) → U5_GAGA(.(z6, z0), z2, .(z4, z5), U1_ag(z4, z5, member_in_ag(z5)))
TURING_IN_GAGA(t(.(z2, z0), space, []), .(p(z1, z2), z3)) → U5_GAGA(.(z2, z0), space, .(p(z1, z2), z3), U1_ag(p(z1, z2), z3, member_in_ag(z3)))
TURING_IN_GAGA(t(.(z4, z0), space, []), .(z2, z3)) → U5_GAGA(.(z4, z0), space, .(z2, z3), U1_ag(z2, z3, member_in_ag(z3)))
TURING_IN_GAGA(t([], z0, .(z4, z3)), .(p(z2, z4), z5)) → U9_GAGA(z0, .(z4, z3), .(p(z2, z4), z5), member_out_ag(p(z2, z4), .(p(z2, z4), z5)))
TURING_IN_GAGA(t([], z0, .(z6, z3)), .(z4, z5)) → U9_GAGA(z0, .(z6, z3), .(z4, z5), member_out_ag(z4, .(z4, z5)))
TURING_IN_GAGA(t([], space, .(z2, z1)), .(p(z0, z2), z3)) → U9_GAGA(space, .(z2, z1), .(p(z0, z2), z3), member_out_ag(p(z0, z2), .(p(z0, z2), z3)))
TURING_IN_GAGA(t([], space, .(z4, z1)), .(z2, z3)) → U9_GAGA(space, .(z4, z1), .(z2, z3), member_out_ag(z2, .(z2, z3)))
TURING_IN_GAGA(t([], z0, .(z4, z3)), .(p(z2, z4), z5)) → U9_GAGA(z0, .(z4, z3), .(p(z2, z4), z5), U1_ag(p(z2, z4), z5, member_in_ag(z5)))
TURING_IN_GAGA(t([], z0, .(z6, z3)), .(z4, z5)) → U9_GAGA(z0, .(z6, z3), .(z4, z5), U1_ag(z4, z5, member_in_ag(z5)))
TURING_IN_GAGA(t([], space, .(z2, z1)), .(p(z0, z2), z3)) → U9_GAGA(space, .(z2, z1), .(p(z0, z2), z3), U1_ag(p(z0, z2), z3, member_in_ag(z3)))
TURING_IN_GAGA(t([], space, .(z4, z1)), .(z2, z3)) → U9_GAGA(space, .(z4, z1), .(z2, z3), U1_ag(z2, z3, member_in_ag(z3)))
member_in_ag(.(H, L)) → member_out_ag(H, .(H, L))
member_in_ag(.(H, L)) → U1_ag(H, L, member_in_ag(L))
U1_ag(H, L, member_out_ag(X, L)) → member_out_ag(X, .(H, L))
member_in_ag(x0)
U1_ag(x0, x1, x2)
U5_GAGA(.(z0, z1), z2, .(p(z2, z0), z4), member_out_ag(p(z2, z0), .(p(z2, z0), z4))) → TURING_IN_GAGA(t(.(z0, .(z0, z1)), space, []), .(p(z2, z0), z4))
U5_GAGA(.(z0, z1), z2, .(p(z2, x2), z4), member_out_ag(p(z2, x2), .(p(z2, x2), z4))) → TURING_IN_GAGA(t(.(x2, .(z0, z1)), space, []), .(p(z2, x2), z4))
U5_GAGA(.(z0, z1), space, .(p(space, z0), z3), member_out_ag(p(space, z0), .(p(space, z0), z3))) → TURING_IN_GAGA(t(.(z0, .(z0, z1)), space, []), .(p(space, z0), z3))
U5_GAGA(.(z0, z1), space, .(p(space, x2), z3), member_out_ag(p(space, x2), .(p(space, x2), z3))) → TURING_IN_GAGA(t(.(x2, .(z0, z1)), space, []), .(p(space, x2), z3))
TURING_IN_GAGA(t(y0, y1, .(y2, y3)), .(x0, x1)) → U3_GAGA(y0, y1, y2, y3, .(x0, x1), member_out_ag(x0, .(x0, x1)))
TURING_IN_GAGA(t(y0, y1, .(y2, y3)), .(x0, x1)) → U3_GAGA(y0, y1, y2, y3, .(x0, x1), U1_ag(x0, x1, member_in_ag(x1)))
TURING_IN_GAGA(t(.(y0, y1), y2, y3), .(x0, x1)) → U7_GAGA(y0, y1, y2, y3, .(x0, x1), member_out_ag(x0, .(x0, x1)))
TURING_IN_GAGA(t(.(y0, y1), y2, y3), .(x0, x1)) → U7_GAGA(y0, y1, y2, y3, .(x0, x1), U1_ag(x0, x1, member_in_ag(x1)))
U3_GAGA(z0, z1, z2, z3, .(p(z1, x5), z5), member_out_ag(p(z1, x5), .(p(z1, x5), z5))) → TURING_IN_GAGA(t(.(x5, z0), z2, z3), .(p(z1, x5), z5))
U3_GAGA(z0, z1, z2, z3, .(z4, z5), member_out_ag(p(z1, x5), .(z4, z5))) → TURING_IN_GAGA(t(.(x5, z0), z2, z3), .(z4, z5))
U5_GAGA(z0, z1, .(z2, z3), member_out_ag(p(z1, x3), .(z2, z3))) → TURING_IN_GAGA(t(.(x3, z0), space, []), .(z2, z3))
U7_GAGA(z0, z1, z2, z3, .(p(z2, x5), z5), member_out_ag(p(z2, x5), .(p(z2, x5), z5))) → TURING_IN_GAGA(t(z1, z0, .(x5, z3)), .(p(z2, x5), z5))
U7_GAGA(z0, z1, z2, z3, .(z4, z5), member_out_ag(p(z2, x5), .(z4, z5))) → TURING_IN_GAGA(t(z1, z0, .(x5, z3)), .(z4, z5))
U9_GAGA(z0, z1, .(p(z0, x3), z3), member_out_ag(p(z0, x3), .(p(z0, x3), z3))) → TURING_IN_GAGA(t([], space, .(x3, z1)), .(p(z0, x3), z3))
U9_GAGA(z0, z1, .(z2, z3), member_out_ag(p(z0, x3), .(z2, z3))) → TURING_IN_GAGA(t([], space, .(x3, z1)), .(z2, z3))
TURING_IN_GAGA(t(.(z4, z0), z2, []), .(p(z1, z4), z5)) → U5_GAGA(.(z4, z0), z2, .(p(z1, z4), z5), member_out_ag(p(z1, z4), .(p(z1, z4), z5)))
TURING_IN_GAGA(t(.(z6, z0), z2, []), .(z4, z5)) → U5_GAGA(.(z6, z0), z2, .(z4, z5), member_out_ag(z4, .(z4, z5)))
TURING_IN_GAGA(t(.(z2, z0), space, []), .(p(z1, z2), z3)) → U5_GAGA(.(z2, z0), space, .(p(z1, z2), z3), member_out_ag(p(z1, z2), .(p(z1, z2), z3)))
TURING_IN_GAGA(t(.(z4, z0), space, []), .(z2, z3)) → U5_GAGA(.(z4, z0), space, .(z2, z3), member_out_ag(z2, .(z2, z3)))
TURING_IN_GAGA(t(.(z4, z0), z2, []), .(p(z1, z4), z5)) → U5_GAGA(.(z4, z0), z2, .(p(z1, z4), z5), U1_ag(p(z1, z4), z5, member_in_ag(z5)))
TURING_IN_GAGA(t(.(z6, z0), z2, []), .(z4, z5)) → U5_GAGA(.(z6, z0), z2, .(z4, z5), U1_ag(z4, z5, member_in_ag(z5)))
TURING_IN_GAGA(t(.(z2, z0), space, []), .(p(z1, z2), z3)) → U5_GAGA(.(z2, z0), space, .(p(z1, z2), z3), U1_ag(p(z1, z2), z3, member_in_ag(z3)))
TURING_IN_GAGA(t(.(z4, z0), space, []), .(z2, z3)) → U5_GAGA(.(z4, z0), space, .(z2, z3), U1_ag(z2, z3, member_in_ag(z3)))
TURING_IN_GAGA(t([], z0, .(z4, z3)), .(p(z2, z4), z5)) → U9_GAGA(z0, .(z4, z3), .(p(z2, z4), z5), member_out_ag(p(z2, z4), .(p(z2, z4), z5)))
TURING_IN_GAGA(t([], z0, .(z6, z3)), .(z4, z5)) → U9_GAGA(z0, .(z6, z3), .(z4, z5), member_out_ag(z4, .(z4, z5)))
TURING_IN_GAGA(t([], space, .(z2, z1)), .(p(z0, z2), z3)) → U9_GAGA(space, .(z2, z1), .(p(z0, z2), z3), member_out_ag(p(z0, z2), .(p(z0, z2), z3)))
TURING_IN_GAGA(t([], space, .(z4, z1)), .(z2, z3)) → U9_GAGA(space, .(z4, z1), .(z2, z3), member_out_ag(z2, .(z2, z3)))
TURING_IN_GAGA(t([], z0, .(z4, z3)), .(p(z2, z4), z5)) → U9_GAGA(z0, .(z4, z3), .(p(z2, z4), z5), U1_ag(p(z2, z4), z5, member_in_ag(z5)))
TURING_IN_GAGA(t([], z0, .(z6, z3)), .(z4, z5)) → U9_GAGA(z0, .(z6, z3), .(z4, z5), U1_ag(z4, z5, member_in_ag(z5)))
TURING_IN_GAGA(t([], space, .(z2, z1)), .(p(z0, z2), z3)) → U9_GAGA(space, .(z2, z1), .(p(z0, z2), z3), U1_ag(p(z0, z2), z3, member_in_ag(z3)))
TURING_IN_GAGA(t([], space, .(z4, z1)), .(z2, z3)) → U9_GAGA(space, .(z4, z1), .(z2, z3), U1_ag(z2, z3, member_in_ag(z3)))
U5_GAGA(.(z0, z1), z2, .(p(z2, z0), z4), member_out_ag(p(z2, z0), .(p(z2, z0), z4))) → TURING_IN_GAGA(t(.(z0, .(z0, z1)), space, []), .(p(z2, z0), z4))
U5_GAGA(.(z0, z1), z2, .(p(z2, x2), z4), member_out_ag(p(z2, x2), .(p(z2, x2), z4))) → TURING_IN_GAGA(t(.(x2, .(z0, z1)), space, []), .(p(z2, x2), z4))
U5_GAGA(.(z0, z1), space, .(p(space, z0), z3), member_out_ag(p(space, z0), .(p(space, z0), z3))) → TURING_IN_GAGA(t(.(z0, .(z0, z1)), space, []), .(p(space, z0), z3))
U5_GAGA(.(z0, z1), space, .(p(space, x2), z3), member_out_ag(p(space, x2), .(p(space, x2), z3))) → TURING_IN_GAGA(t(.(x2, .(z0, z1)), space, []), .(p(space, x2), z3))
member_in_ag(.(H, L)) → member_out_ag(H, .(H, L))
member_in_ag(.(H, L)) → U1_ag(H, L, member_in_ag(L))
U1_ag(H, L, member_out_ag(X, L)) → member_out_ag(X, .(H, L))
member_in_ag(x0)
U1_ag(x0, x1, x2)
U5_GAGA(.(z0, z1), z2, .(p(z2, z0), z4), member_out_ag(p(z2, z0), .(p(z2, z0), z4))) → TURING_IN_GAGA(t(.(z0, .(z0, z1)), space, []), .(p(z2, z0), z4))
U5_GAGA(.(z0, z1), z2, .(p(z2, x4), z4), member_out_ag(p(z2, x4), .(p(z2, x4), z4))) → TURING_IN_GAGA(t(.(x4, .(z0, z1)), space, []), .(p(z2, x4), z4))
U5_GAGA(.(z0, z1), space, .(p(space, z0), z3), member_out_ag(p(space, z0), .(p(space, z0), z3))) → TURING_IN_GAGA(t(.(z0, .(z0, z1)), space, []), .(p(space, z0), z3))
U5_GAGA(.(z0, z1), space, .(p(space, x4), z3), member_out_ag(p(space, x4), .(p(space, x4), z3))) → TURING_IN_GAGA(t(.(x4, .(z0, z1)), space, []), .(p(space, x4), z3))
U5_GAGA(.(z0, z1), z2, .(p(z3, z0), z4), member_out_ag(p(z2, x4), .(p(z3, z0), z4))) → TURING_IN_GAGA(t(.(x4, .(z0, z1)), space, []), .(p(z3, z0), z4))
U5_GAGA(.(z0, z1), z2, .(z3, z4), member_out_ag(p(z2, x4), .(z3, z4))) → TURING_IN_GAGA(t(.(x4, .(z0, z1)), space, []), .(z3, z4))
U5_GAGA(.(z0, z1), space, .(p(z2, z0), z3), member_out_ag(p(space, x4), .(p(z2, z0), z3))) → TURING_IN_GAGA(t(.(x4, .(z0, z1)), space, []), .(p(z2, z0), z3))
U5_GAGA(.(z0, z1), space, .(z2, z3), member_out_ag(p(space, x4), .(z2, z3))) → TURING_IN_GAGA(t(.(x4, .(z0, z1)), space, []), .(z2, z3))
TURING_IN_GAGA(t(y0, y1, .(y2, y3)), .(x0, x1)) → U3_GAGA(y0, y1, y2, y3, .(x0, x1), member_out_ag(x0, .(x0, x1)))
TURING_IN_GAGA(t(y0, y1, .(y2, y3)), .(x0, x1)) → U3_GAGA(y0, y1, y2, y3, .(x0, x1), U1_ag(x0, x1, member_in_ag(x1)))
TURING_IN_GAGA(t(.(y0, y1), y2, y3), .(x0, x1)) → U7_GAGA(y0, y1, y2, y3, .(x0, x1), member_out_ag(x0, .(x0, x1)))
TURING_IN_GAGA(t(.(y0, y1), y2, y3), .(x0, x1)) → U7_GAGA(y0, y1, y2, y3, .(x0, x1), U1_ag(x0, x1, member_in_ag(x1)))
U3_GAGA(z0, z1, z2, z3, .(p(z1, x5), z5), member_out_ag(p(z1, x5), .(p(z1, x5), z5))) → TURING_IN_GAGA(t(.(x5, z0), z2, z3), .(p(z1, x5), z5))
U3_GAGA(z0, z1, z2, z3, .(z4, z5), member_out_ag(p(z1, x5), .(z4, z5))) → TURING_IN_GAGA(t(.(x5, z0), z2, z3), .(z4, z5))
U7_GAGA(z0, z1, z2, z3, .(p(z2, x5), z5), member_out_ag(p(z2, x5), .(p(z2, x5), z5))) → TURING_IN_GAGA(t(z1, z0, .(x5, z3)), .(p(z2, x5), z5))
U7_GAGA(z0, z1, z2, z3, .(z4, z5), member_out_ag(p(z2, x5), .(z4, z5))) → TURING_IN_GAGA(t(z1, z0, .(x5, z3)), .(z4, z5))
U9_GAGA(z0, z1, .(p(z0, x3), z3), member_out_ag(p(z0, x3), .(p(z0, x3), z3))) → TURING_IN_GAGA(t([], space, .(x3, z1)), .(p(z0, x3), z3))
U9_GAGA(z0, z1, .(z2, z3), member_out_ag(p(z0, x3), .(z2, z3))) → TURING_IN_GAGA(t([], space, .(x3, z1)), .(z2, z3))
TURING_IN_GAGA(t(.(z4, z0), z2, []), .(p(z1, z4), z5)) → U5_GAGA(.(z4, z0), z2, .(p(z1, z4), z5), member_out_ag(p(z1, z4), .(p(z1, z4), z5)))
TURING_IN_GAGA(t(.(z6, z0), z2, []), .(z4, z5)) → U5_GAGA(.(z6, z0), z2, .(z4, z5), member_out_ag(z4, .(z4, z5)))
TURING_IN_GAGA(t(.(z2, z0), space, []), .(p(z1, z2), z3)) → U5_GAGA(.(z2, z0), space, .(p(z1, z2), z3), member_out_ag(p(z1, z2), .(p(z1, z2), z3)))
TURING_IN_GAGA(t(.(z4, z0), space, []), .(z2, z3)) → U5_GAGA(.(z4, z0), space, .(z2, z3), member_out_ag(z2, .(z2, z3)))
TURING_IN_GAGA(t(.(z4, z0), z2, []), .(p(z1, z4), z5)) → U5_GAGA(.(z4, z0), z2, .(p(z1, z4), z5), U1_ag(p(z1, z4), z5, member_in_ag(z5)))
TURING_IN_GAGA(t(.(z6, z0), z2, []), .(z4, z5)) → U5_GAGA(.(z6, z0), z2, .(z4, z5), U1_ag(z4, z5, member_in_ag(z5)))
TURING_IN_GAGA(t(.(z2, z0), space, []), .(p(z1, z2), z3)) → U5_GAGA(.(z2, z0), space, .(p(z1, z2), z3), U1_ag(p(z1, z2), z3, member_in_ag(z3)))
TURING_IN_GAGA(t(.(z4, z0), space, []), .(z2, z3)) → U5_GAGA(.(z4, z0), space, .(z2, z3), U1_ag(z2, z3, member_in_ag(z3)))
TURING_IN_GAGA(t([], z0, .(z4, z3)), .(p(z2, z4), z5)) → U9_GAGA(z0, .(z4, z3), .(p(z2, z4), z5), member_out_ag(p(z2, z4), .(p(z2, z4), z5)))
TURING_IN_GAGA(t([], z0, .(z6, z3)), .(z4, z5)) → U9_GAGA(z0, .(z6, z3), .(z4, z5), member_out_ag(z4, .(z4, z5)))
TURING_IN_GAGA(t([], space, .(z2, z1)), .(p(z0, z2), z3)) → U9_GAGA(space, .(z2, z1), .(p(z0, z2), z3), member_out_ag(p(z0, z2), .(p(z0, z2), z3)))
TURING_IN_GAGA(t([], space, .(z4, z1)), .(z2, z3)) → U9_GAGA(space, .(z4, z1), .(z2, z3), member_out_ag(z2, .(z2, z3)))
TURING_IN_GAGA(t([], z0, .(z4, z3)), .(p(z2, z4), z5)) → U9_GAGA(z0, .(z4, z3), .(p(z2, z4), z5), U1_ag(p(z2, z4), z5, member_in_ag(z5)))
TURING_IN_GAGA(t([], z0, .(z6, z3)), .(z4, z5)) → U9_GAGA(z0, .(z6, z3), .(z4, z5), U1_ag(z4, z5, member_in_ag(z5)))
TURING_IN_GAGA(t([], space, .(z2, z1)), .(p(z0, z2), z3)) → U9_GAGA(space, .(z2, z1), .(p(z0, z2), z3), U1_ag(p(z0, z2), z3, member_in_ag(z3)))
TURING_IN_GAGA(t([], space, .(z4, z1)), .(z2, z3)) → U9_GAGA(space, .(z4, z1), .(z2, z3), U1_ag(z2, z3, member_in_ag(z3)))
U5_GAGA(.(z0, z1), z2, .(p(z2, z0), z4), member_out_ag(p(z2, z0), .(p(z2, z0), z4))) → TURING_IN_GAGA(t(.(z0, .(z0, z1)), space, []), .(p(z2, z0), z4))
U5_GAGA(.(z0, z1), z2, .(p(z2, x2), z4), member_out_ag(p(z2, x2), .(p(z2, x2), z4))) → TURING_IN_GAGA(t(.(x2, .(z0, z1)), space, []), .(p(z2, x2), z4))
U5_GAGA(.(z0, z1), space, .(p(space, z0), z3), member_out_ag(p(space, z0), .(p(space, z0), z3))) → TURING_IN_GAGA(t(.(z0, .(z0, z1)), space, []), .(p(space, z0), z3))
U5_GAGA(.(z0, z1), space, .(p(space, x2), z3), member_out_ag(p(space, x2), .(p(space, x2), z3))) → TURING_IN_GAGA(t(.(x2, .(z0, z1)), space, []), .(p(space, x2), z3))
U5_GAGA(.(z0, z1), z2, .(p(z3, z0), z4), member_out_ag(p(z2, x4), .(p(z3, z0), z4))) → TURING_IN_GAGA(t(.(x4, .(z0, z1)), space, []), .(p(z3, z0), z4))
U5_GAGA(.(z0, z1), z2, .(z3, z4), member_out_ag(p(z2, x4), .(z3, z4))) → TURING_IN_GAGA(t(.(x4, .(z0, z1)), space, []), .(z3, z4))
U5_GAGA(.(z0, z1), space, .(p(z2, z0), z3), member_out_ag(p(space, x4), .(p(z2, z0), z3))) → TURING_IN_GAGA(t(.(x4, .(z0, z1)), space, []), .(p(z2, z0), z3))
U5_GAGA(.(z0, z1), space, .(z2, z3), member_out_ag(p(space, x4), .(z2, z3))) → TURING_IN_GAGA(t(.(x4, .(z0, z1)), space, []), .(z2, z3))
member_in_ag(.(H, L)) → member_out_ag(H, .(H, L))
member_in_ag(.(H, L)) → U1_ag(H, L, member_in_ag(L))
U1_ag(H, L, member_out_ag(X, L)) → member_out_ag(X, .(H, L))
member_in_ag(x0)
U1_ag(x0, x1, x2)
U9_GAGA(z0, .(z1, z2), .(p(z0, z1), z4), member_out_ag(p(z0, z1), .(p(z0, z1), z4))) → TURING_IN_GAGA(t([], space, .(z1, .(z1, z2))), .(p(z0, z1), z4))
U9_GAGA(z0, .(z1, z2), .(p(z0, x2), z4), member_out_ag(p(z0, x2), .(p(z0, x2), z4))) → TURING_IN_GAGA(t([], space, .(x2, .(z1, z2))), .(p(z0, x2), z4))
U9_GAGA(space, .(z0, z1), .(p(space, z0), z3), member_out_ag(p(space, z0), .(p(space, z0), z3))) → TURING_IN_GAGA(t([], space, .(z0, .(z0, z1))), .(p(space, z0), z3))
U9_GAGA(space, .(z0, z1), .(p(space, x2), z3), member_out_ag(p(space, x2), .(p(space, x2), z3))) → TURING_IN_GAGA(t([], space, .(x2, .(z0, z1))), .(p(space, x2), z3))
TURING_IN_GAGA(t(y0, y1, .(y2, y3)), .(x0, x1)) → U3_GAGA(y0, y1, y2, y3, .(x0, x1), member_out_ag(x0, .(x0, x1)))
TURING_IN_GAGA(t(y0, y1, .(y2, y3)), .(x0, x1)) → U3_GAGA(y0, y1, y2, y3, .(x0, x1), U1_ag(x0, x1, member_in_ag(x1)))
TURING_IN_GAGA(t(.(y0, y1), y2, y3), .(x0, x1)) → U7_GAGA(y0, y1, y2, y3, .(x0, x1), member_out_ag(x0, .(x0, x1)))
TURING_IN_GAGA(t(.(y0, y1), y2, y3), .(x0, x1)) → U7_GAGA(y0, y1, y2, y3, .(x0, x1), U1_ag(x0, x1, member_in_ag(x1)))
U3_GAGA(z0, z1, z2, z3, .(p(z1, x5), z5), member_out_ag(p(z1, x5), .(p(z1, x5), z5))) → TURING_IN_GAGA(t(.(x5, z0), z2, z3), .(p(z1, x5), z5))
U3_GAGA(z0, z1, z2, z3, .(z4, z5), member_out_ag(p(z1, x5), .(z4, z5))) → TURING_IN_GAGA(t(.(x5, z0), z2, z3), .(z4, z5))
U7_GAGA(z0, z1, z2, z3, .(p(z2, x5), z5), member_out_ag(p(z2, x5), .(p(z2, x5), z5))) → TURING_IN_GAGA(t(z1, z0, .(x5, z3)), .(p(z2, x5), z5))
U7_GAGA(z0, z1, z2, z3, .(z4, z5), member_out_ag(p(z2, x5), .(z4, z5))) → TURING_IN_GAGA(t(z1, z0, .(x5, z3)), .(z4, z5))
U9_GAGA(z0, z1, .(z2, z3), member_out_ag(p(z0, x3), .(z2, z3))) → TURING_IN_GAGA(t([], space, .(x3, z1)), .(z2, z3))
TURING_IN_GAGA(t(.(z4, z0), z2, []), .(p(z1, z4), z5)) → U5_GAGA(.(z4, z0), z2, .(p(z1, z4), z5), member_out_ag(p(z1, z4), .(p(z1, z4), z5)))
TURING_IN_GAGA(t(.(z6, z0), z2, []), .(z4, z5)) → U5_GAGA(.(z6, z0), z2, .(z4, z5), member_out_ag(z4, .(z4, z5)))
TURING_IN_GAGA(t(.(z2, z0), space, []), .(p(z1, z2), z3)) → U5_GAGA(.(z2, z0), space, .(p(z1, z2), z3), member_out_ag(p(z1, z2), .(p(z1, z2), z3)))
TURING_IN_GAGA(t(.(z4, z0), space, []), .(z2, z3)) → U5_GAGA(.(z4, z0), space, .(z2, z3), member_out_ag(z2, .(z2, z3)))
TURING_IN_GAGA(t(.(z4, z0), z2, []), .(p(z1, z4), z5)) → U5_GAGA(.(z4, z0), z2, .(p(z1, z4), z5), U1_ag(p(z1, z4), z5, member_in_ag(z5)))
TURING_IN_GAGA(t(.(z6, z0), z2, []), .(z4, z5)) → U5_GAGA(.(z6, z0), z2, .(z4, z5), U1_ag(z4, z5, member_in_ag(z5)))
TURING_IN_GAGA(t(.(z2, z0), space, []), .(p(z1, z2), z3)) → U5_GAGA(.(z2, z0), space, .(p(z1, z2), z3), U1_ag(p(z1, z2), z3, member_in_ag(z3)))
TURING_IN_GAGA(t(.(z4, z0), space, []), .(z2, z3)) → U5_GAGA(.(z4, z0), space, .(z2, z3), U1_ag(z2, z3, member_in_ag(z3)))
TURING_IN_GAGA(t([], z0, .(z4, z3)), .(p(z2, z4), z5)) → U9_GAGA(z0, .(z4, z3), .(p(z2, z4), z5), member_out_ag(p(z2, z4), .(p(z2, z4), z5)))
TURING_IN_GAGA(t([], z0, .(z6, z3)), .(z4, z5)) → U9_GAGA(z0, .(z6, z3), .(z4, z5), member_out_ag(z4, .(z4, z5)))
TURING_IN_GAGA(t([], space, .(z2, z1)), .(p(z0, z2), z3)) → U9_GAGA(space, .(z2, z1), .(p(z0, z2), z3), member_out_ag(p(z0, z2), .(p(z0, z2), z3)))
TURING_IN_GAGA(t([], space, .(z4, z1)), .(z2, z3)) → U9_GAGA(space, .(z4, z1), .(z2, z3), member_out_ag(z2, .(z2, z3)))
TURING_IN_GAGA(t([], z0, .(z4, z3)), .(p(z2, z4), z5)) → U9_GAGA(z0, .(z4, z3), .(p(z2, z4), z5), U1_ag(p(z2, z4), z5, member_in_ag(z5)))
TURING_IN_GAGA(t([], z0, .(z6, z3)), .(z4, z5)) → U9_GAGA(z0, .(z6, z3), .(z4, z5), U1_ag(z4, z5, member_in_ag(z5)))
TURING_IN_GAGA(t([], space, .(z2, z1)), .(p(z0, z2), z3)) → U9_GAGA(space, .(z2, z1), .(p(z0, z2), z3), U1_ag(p(z0, z2), z3, member_in_ag(z3)))
TURING_IN_GAGA(t([], space, .(z4, z1)), .(z2, z3)) → U9_GAGA(space, .(z4, z1), .(z2, z3), U1_ag(z2, z3, member_in_ag(z3)))
U5_GAGA(.(z0, z1), z2, .(p(z2, z0), z4), member_out_ag(p(z2, z0), .(p(z2, z0), z4))) → TURING_IN_GAGA(t(.(z0, .(z0, z1)), space, []), .(p(z2, z0), z4))
U5_GAGA(.(z0, z1), z2, .(p(z2, x2), z4), member_out_ag(p(z2, x2), .(p(z2, x2), z4))) → TURING_IN_GAGA(t(.(x2, .(z0, z1)), space, []), .(p(z2, x2), z4))
U5_GAGA(.(z0, z1), space, .(p(space, z0), z3), member_out_ag(p(space, z0), .(p(space, z0), z3))) → TURING_IN_GAGA(t(.(z0, .(z0, z1)), space, []), .(p(space, z0), z3))
U5_GAGA(.(z0, z1), space, .(p(space, x2), z3), member_out_ag(p(space, x2), .(p(space, x2), z3))) → TURING_IN_GAGA(t(.(x2, .(z0, z1)), space, []), .(p(space, x2), z3))
U5_GAGA(.(z0, z1), z2, .(p(z3, z0), z4), member_out_ag(p(z2, x4), .(p(z3, z0), z4))) → TURING_IN_GAGA(t(.(x4, .(z0, z1)), space, []), .(p(z3, z0), z4))
U5_GAGA(.(z0, z1), z2, .(z3, z4), member_out_ag(p(z2, x4), .(z3, z4))) → TURING_IN_GAGA(t(.(x4, .(z0, z1)), space, []), .(z3, z4))
U5_GAGA(.(z0, z1), space, .(p(z2, z0), z3), member_out_ag(p(space, x4), .(p(z2, z0), z3))) → TURING_IN_GAGA(t(.(x4, .(z0, z1)), space, []), .(p(z2, z0), z3))
U5_GAGA(.(z0, z1), space, .(z2, z3), member_out_ag(p(space, x4), .(z2, z3))) → TURING_IN_GAGA(t(.(x4, .(z0, z1)), space, []), .(z2, z3))
U9_GAGA(z0, .(z1, z2), .(p(z0, z1), z4), member_out_ag(p(z0, z1), .(p(z0, z1), z4))) → TURING_IN_GAGA(t([], space, .(z1, .(z1, z2))), .(p(z0, z1), z4))
U9_GAGA(z0, .(z1, z2), .(p(z0, x2), z4), member_out_ag(p(z0, x2), .(p(z0, x2), z4))) → TURING_IN_GAGA(t([], space, .(x2, .(z1, z2))), .(p(z0, x2), z4))
U9_GAGA(space, .(z0, z1), .(p(space, z0), z3), member_out_ag(p(space, z0), .(p(space, z0), z3))) → TURING_IN_GAGA(t([], space, .(z0, .(z0, z1))), .(p(space, z0), z3))
U9_GAGA(space, .(z0, z1), .(p(space, x2), z3), member_out_ag(p(space, x2), .(p(space, x2), z3))) → TURING_IN_GAGA(t([], space, .(x2, .(z0, z1))), .(p(space, x2), z3))
member_in_ag(.(H, L)) → member_out_ag(H, .(H, L))
member_in_ag(.(H, L)) → U1_ag(H, L, member_in_ag(L))
U1_ag(H, L, member_out_ag(X, L)) → member_out_ag(X, .(H, L))
member_in_ag(x0)
U1_ag(x0, x1, x2)
U9_GAGA(z0, .(z1, z2), .(p(z0, z1), z4), member_out_ag(p(z0, z1), .(p(z0, z1), z4))) → TURING_IN_GAGA(t([], space, .(z1, .(z1, z2))), .(p(z0, z1), z4))
U9_GAGA(z0, .(z1, z2), .(p(z0, x4), z4), member_out_ag(p(z0, x4), .(p(z0, x4), z4))) → TURING_IN_GAGA(t([], space, .(x4, .(z1, z2))), .(p(z0, x4), z4))
U9_GAGA(space, .(z0, z1), .(p(space, z0), z3), member_out_ag(p(space, z0), .(p(space, z0), z3))) → TURING_IN_GAGA(t([], space, .(z0, .(z0, z1))), .(p(space, z0), z3))
U9_GAGA(space, .(z0, z1), .(p(space, x4), z3), member_out_ag(p(space, x4), .(p(space, x4), z3))) → TURING_IN_GAGA(t([], space, .(x4, .(z0, z1))), .(p(space, x4), z3))
U9_GAGA(z0, .(z1, z2), .(p(z3, z1), z4), member_out_ag(p(z0, x4), .(p(z3, z1), z4))) → TURING_IN_GAGA(t([], space, .(x4, .(z1, z2))), .(p(z3, z1), z4))
U9_GAGA(z0, .(z1, z2), .(z3, z4), member_out_ag(p(z0, x4), .(z3, z4))) → TURING_IN_GAGA(t([], space, .(x4, .(z1, z2))), .(z3, z4))
U9_GAGA(space, .(z0, z1), .(p(z2, z0), z3), member_out_ag(p(space, x4), .(p(z2, z0), z3))) → TURING_IN_GAGA(t([], space, .(x4, .(z0, z1))), .(p(z2, z0), z3))
U9_GAGA(space, .(z0, z1), .(z2, z3), member_out_ag(p(space, x4), .(z2, z3))) → TURING_IN_GAGA(t([], space, .(x4, .(z0, z1))), .(z2, z3))
TURING_IN_GAGA(t(y0, y1, .(y2, y3)), .(x0, x1)) → U3_GAGA(y0, y1, y2, y3, .(x0, x1), member_out_ag(x0, .(x0, x1)))
TURING_IN_GAGA(t(y0, y1, .(y2, y3)), .(x0, x1)) → U3_GAGA(y0, y1, y2, y3, .(x0, x1), U1_ag(x0, x1, member_in_ag(x1)))
TURING_IN_GAGA(t(.(y0, y1), y2, y3), .(x0, x1)) → U7_GAGA(y0, y1, y2, y3, .(x0, x1), member_out_ag(x0, .(x0, x1)))
TURING_IN_GAGA(t(.(y0, y1), y2, y3), .(x0, x1)) → U7_GAGA(y0, y1, y2, y3, .(x0, x1), U1_ag(x0, x1, member_in_ag(x1)))
U3_GAGA(z0, z1, z2, z3, .(p(z1, x5), z5), member_out_ag(p(z1, x5), .(p(z1, x5), z5))) → TURING_IN_GAGA(t(.(x5, z0), z2, z3), .(p(z1, x5), z5))
U3_GAGA(z0, z1, z2, z3, .(z4, z5), member_out_ag(p(z1, x5), .(z4, z5))) → TURING_IN_GAGA(t(.(x5, z0), z2, z3), .(z4, z5))
U7_GAGA(z0, z1, z2, z3, .(p(z2, x5), z5), member_out_ag(p(z2, x5), .(p(z2, x5), z5))) → TURING_IN_GAGA(t(z1, z0, .(x5, z3)), .(p(z2, x5), z5))
U7_GAGA(z0, z1, z2, z3, .(z4, z5), member_out_ag(p(z2, x5), .(z4, z5))) → TURING_IN_GAGA(t(z1, z0, .(x5, z3)), .(z4, z5))
TURING_IN_GAGA(t(.(z4, z0), z2, []), .(p(z1, z4), z5)) → U5_GAGA(.(z4, z0), z2, .(p(z1, z4), z5), member_out_ag(p(z1, z4), .(p(z1, z4), z5)))
TURING_IN_GAGA(t(.(z6, z0), z2, []), .(z4, z5)) → U5_GAGA(.(z6, z0), z2, .(z4, z5), member_out_ag(z4, .(z4, z5)))
TURING_IN_GAGA(t(.(z2, z0), space, []), .(p(z1, z2), z3)) → U5_GAGA(.(z2, z0), space, .(p(z1, z2), z3), member_out_ag(p(z1, z2), .(p(z1, z2), z3)))
TURING_IN_GAGA(t(.(z4, z0), space, []), .(z2, z3)) → U5_GAGA(.(z4, z0), space, .(z2, z3), member_out_ag(z2, .(z2, z3)))
TURING_IN_GAGA(t(.(z4, z0), z2, []), .(p(z1, z4), z5)) → U5_GAGA(.(z4, z0), z2, .(p(z1, z4), z5), U1_ag(p(z1, z4), z5, member_in_ag(z5)))
TURING_IN_GAGA(t(.(z6, z0), z2, []), .(z4, z5)) → U5_GAGA(.(z6, z0), z2, .(z4, z5), U1_ag(z4, z5, member_in_ag(z5)))
TURING_IN_GAGA(t(.(z2, z0), space, []), .(p(z1, z2), z3)) → U5_GAGA(.(z2, z0), space, .(p(z1, z2), z3), U1_ag(p(z1, z2), z3, member_in_ag(z3)))
TURING_IN_GAGA(t(.(z4, z0), space, []), .(z2, z3)) → U5_GAGA(.(z4, z0), space, .(z2, z3), U1_ag(z2, z3, member_in_ag(z3)))
TURING_IN_GAGA(t([], z0, .(z4, z3)), .(p(z2, z4), z5)) → U9_GAGA(z0, .(z4, z3), .(p(z2, z4), z5), member_out_ag(p(z2, z4), .(p(z2, z4), z5)))
TURING_IN_GAGA(t([], z0, .(z6, z3)), .(z4, z5)) → U9_GAGA(z0, .(z6, z3), .(z4, z5), member_out_ag(z4, .(z4, z5)))
TURING_IN_GAGA(t([], space, .(z2, z1)), .(p(z0, z2), z3)) → U9_GAGA(space, .(z2, z1), .(p(z0, z2), z3), member_out_ag(p(z0, z2), .(p(z0, z2), z3)))
TURING_IN_GAGA(t([], space, .(z4, z1)), .(z2, z3)) → U9_GAGA(space, .(z4, z1), .(z2, z3), member_out_ag(z2, .(z2, z3)))
TURING_IN_GAGA(t([], z0, .(z4, z3)), .(p(z2, z4), z5)) → U9_GAGA(z0, .(z4, z3), .(p(z2, z4), z5), U1_ag(p(z2, z4), z5, member_in_ag(z5)))
TURING_IN_GAGA(t([], z0, .(z6, z3)), .(z4, z5)) → U9_GAGA(z0, .(z6, z3), .(z4, z5), U1_ag(z4, z5, member_in_ag(z5)))
TURING_IN_GAGA(t([], space, .(z2, z1)), .(p(z0, z2), z3)) → U9_GAGA(space, .(z2, z1), .(p(z0, z2), z3), U1_ag(p(z0, z2), z3, member_in_ag(z3)))
TURING_IN_GAGA(t([], space, .(z4, z1)), .(z2, z3)) → U9_GAGA(space, .(z4, z1), .(z2, z3), U1_ag(z2, z3, member_in_ag(z3)))
U5_GAGA(.(z0, z1), z2, .(p(z2, z0), z4), member_out_ag(p(z2, z0), .(p(z2, z0), z4))) → TURING_IN_GAGA(t(.(z0, .(z0, z1)), space, []), .(p(z2, z0), z4))
U5_GAGA(.(z0, z1), z2, .(p(z2, x2), z4), member_out_ag(p(z2, x2), .(p(z2, x2), z4))) → TURING_IN_GAGA(t(.(x2, .(z0, z1)), space, []), .(p(z2, x2), z4))
U5_GAGA(.(z0, z1), space, .(p(space, z0), z3), member_out_ag(p(space, z0), .(p(space, z0), z3))) → TURING_IN_GAGA(t(.(z0, .(z0, z1)), space, []), .(p(space, z0), z3))
U5_GAGA(.(z0, z1), space, .(p(space, x2), z3), member_out_ag(p(space, x2), .(p(space, x2), z3))) → TURING_IN_GAGA(t(.(x2, .(z0, z1)), space, []), .(p(space, x2), z3))
U5_GAGA(.(z0, z1), z2, .(p(z3, z0), z4), member_out_ag(p(z2, x4), .(p(z3, z0), z4))) → TURING_IN_GAGA(t(.(x4, .(z0, z1)), space, []), .(p(z3, z0), z4))
U5_GAGA(.(z0, z1), z2, .(z3, z4), member_out_ag(p(z2, x4), .(z3, z4))) → TURING_IN_GAGA(t(.(x4, .(z0, z1)), space, []), .(z3, z4))
U5_GAGA(.(z0, z1), space, .(p(z2, z0), z3), member_out_ag(p(space, x4), .(p(z2, z0), z3))) → TURING_IN_GAGA(t(.(x4, .(z0, z1)), space, []), .(p(z2, z0), z3))
U5_GAGA(.(z0, z1), space, .(z2, z3), member_out_ag(p(space, x4), .(z2, z3))) → TURING_IN_GAGA(t(.(x4, .(z0, z1)), space, []), .(z2, z3))
U9_GAGA(z0, .(z1, z2), .(p(z0, z1), z4), member_out_ag(p(z0, z1), .(p(z0, z1), z4))) → TURING_IN_GAGA(t([], space, .(z1, .(z1, z2))), .(p(z0, z1), z4))
U9_GAGA(z0, .(z1, z2), .(p(z0, x2), z4), member_out_ag(p(z0, x2), .(p(z0, x2), z4))) → TURING_IN_GAGA(t([], space, .(x2, .(z1, z2))), .(p(z0, x2), z4))
U9_GAGA(space, .(z0, z1), .(p(space, z0), z3), member_out_ag(p(space, z0), .(p(space, z0), z3))) → TURING_IN_GAGA(t([], space, .(z0, .(z0, z1))), .(p(space, z0), z3))
U9_GAGA(space, .(z0, z1), .(p(space, x2), z3), member_out_ag(p(space, x2), .(p(space, x2), z3))) → TURING_IN_GAGA(t([], space, .(x2, .(z0, z1))), .(p(space, x2), z3))
U9_GAGA(z0, .(z1, z2), .(p(z3, z1), z4), member_out_ag(p(z0, x4), .(p(z3, z1), z4))) → TURING_IN_GAGA(t([], space, .(x4, .(z1, z2))), .(p(z3, z1), z4))
U9_GAGA(z0, .(z1, z2), .(z3, z4), member_out_ag(p(z0, x4), .(z3, z4))) → TURING_IN_GAGA(t([], space, .(x4, .(z1, z2))), .(z3, z4))
U9_GAGA(space, .(z0, z1), .(p(z2, z0), z3), member_out_ag(p(space, x4), .(p(z2, z0), z3))) → TURING_IN_GAGA(t([], space, .(x4, .(z0, z1))), .(p(z2, z0), z3))
U9_GAGA(space, .(z0, z1), .(z2, z3), member_out_ag(p(space, x4), .(z2, z3))) → TURING_IN_GAGA(t([], space, .(x4, .(z0, z1))), .(z2, z3))
member_in_ag(.(H, L)) → member_out_ag(H, .(H, L))
member_in_ag(.(H, L)) → U1_ag(H, L, member_in_ag(L))
U1_ag(H, L, member_out_ag(X, L)) → member_out_ag(X, .(H, L))
member_in_ag(x0)
U1_ag(x0, x1, x2)
TURING_IN_GAGA(t(x0, x1, .(x2, x3)), .(p(y_4, y_5), x5)) → U3_GAGA(x0, x1, x2, x3, .(p(y_4, y_5), x5), member_out_ag(p(y_4, y_5), .(p(y_4, y_5), x5)))
TURING_IN_GAGA(t(y0, y1, .(y2, y3)), .(x0, x1)) → U3_GAGA(y0, y1, y2, y3, .(x0, x1), U1_ag(x0, x1, member_in_ag(x1)))
TURING_IN_GAGA(t(.(y0, y1), y2, y3), .(x0, x1)) → U7_GAGA(y0, y1, y2, y3, .(x0, x1), member_out_ag(x0, .(x0, x1)))
TURING_IN_GAGA(t(.(y0, y1), y2, y3), .(x0, x1)) → U7_GAGA(y0, y1, y2, y3, .(x0, x1), U1_ag(x0, x1, member_in_ag(x1)))
U3_GAGA(z0, z1, z2, z3, .(p(z1, x5), z5), member_out_ag(p(z1, x5), .(p(z1, x5), z5))) → TURING_IN_GAGA(t(.(x5, z0), z2, z3), .(p(z1, x5), z5))
U3_GAGA(z0, z1, z2, z3, .(z4, z5), member_out_ag(p(z1, x5), .(z4, z5))) → TURING_IN_GAGA(t(.(x5, z0), z2, z3), .(z4, z5))
U7_GAGA(z0, z1, z2, z3, .(p(z2, x5), z5), member_out_ag(p(z2, x5), .(p(z2, x5), z5))) → TURING_IN_GAGA(t(z1, z0, .(x5, z3)), .(p(z2, x5), z5))
U7_GAGA(z0, z1, z2, z3, .(z4, z5), member_out_ag(p(z2, x5), .(z4, z5))) → TURING_IN_GAGA(t(z1, z0, .(x5, z3)), .(z4, z5))
TURING_IN_GAGA(t(.(z4, z0), z2, []), .(p(z1, z4), z5)) → U5_GAGA(.(z4, z0), z2, .(p(z1, z4), z5), member_out_ag(p(z1, z4), .(p(z1, z4), z5)))
TURING_IN_GAGA(t(.(z6, z0), z2, []), .(z4, z5)) → U5_GAGA(.(z6, z0), z2, .(z4, z5), member_out_ag(z4, .(z4, z5)))
TURING_IN_GAGA(t(.(z2, z0), space, []), .(p(z1, z2), z3)) → U5_GAGA(.(z2, z0), space, .(p(z1, z2), z3), member_out_ag(p(z1, z2), .(p(z1, z2), z3)))
TURING_IN_GAGA(t(.(z4, z0), space, []), .(z2, z3)) → U5_GAGA(.(z4, z0), space, .(z2, z3), member_out_ag(z2, .(z2, z3)))
TURING_IN_GAGA(t(.(z4, z0), z2, []), .(p(z1, z4), z5)) → U5_GAGA(.(z4, z0), z2, .(p(z1, z4), z5), U1_ag(p(z1, z4), z5, member_in_ag(z5)))
TURING_IN_GAGA(t(.(z6, z0), z2, []), .(z4, z5)) → U5_GAGA(.(z6, z0), z2, .(z4, z5), U1_ag(z4, z5, member_in_ag(z5)))
TURING_IN_GAGA(t(.(z2, z0), space, []), .(p(z1, z2), z3)) → U5_GAGA(.(z2, z0), space, .(p(z1, z2), z3), U1_ag(p(z1, z2), z3, member_in_ag(z3)))
TURING_IN_GAGA(t(.(z4, z0), space, []), .(z2, z3)) → U5_GAGA(.(z4, z0), space, .(z2, z3), U1_ag(z2, z3, member_in_ag(z3)))
TURING_IN_GAGA(t([], z0, .(z4, z3)), .(p(z2, z4), z5)) → U9_GAGA(z0, .(z4, z3), .(p(z2, z4), z5), member_out_ag(p(z2, z4), .(p(z2, z4), z5)))
TURING_IN_GAGA(t([], z0, .(z6, z3)), .(z4, z5)) → U9_GAGA(z0, .(z6, z3), .(z4, z5), member_out_ag(z4, .(z4, z5)))
TURING_IN_GAGA(t([], space, .(z2, z1)), .(p(z0, z2), z3)) → U9_GAGA(space, .(z2, z1), .(p(z0, z2), z3), member_out_ag(p(z0, z2), .(p(z0, z2), z3)))
TURING_IN_GAGA(t([], space, .(z4, z1)), .(z2, z3)) → U9_GAGA(space, .(z4, z1), .(z2, z3), member_out_ag(z2, .(z2, z3)))
TURING_IN_GAGA(t([], z0, .(z4, z3)), .(p(z2, z4), z5)) → U9_GAGA(z0, .(z4, z3), .(p(z2, z4), z5), U1_ag(p(z2, z4), z5, member_in_ag(z5)))
TURING_IN_GAGA(t([], z0, .(z6, z3)), .(z4, z5)) → U9_GAGA(z0, .(z6, z3), .(z4, z5), U1_ag(z4, z5, member_in_ag(z5)))
TURING_IN_GAGA(t([], space, .(z2, z1)), .(p(z0, z2), z3)) → U9_GAGA(space, .(z2, z1), .(p(z0, z2), z3), U1_ag(p(z0, z2), z3, member_in_ag(z3)))
TURING_IN_GAGA(t([], space, .(z4, z1)), .(z2, z3)) → U9_GAGA(space, .(z4, z1), .(z2, z3), U1_ag(z2, z3, member_in_ag(z3)))
U5_GAGA(.(z0, z1), z2, .(p(z2, z0), z4), member_out_ag(p(z2, z0), .(p(z2, z0), z4))) → TURING_IN_GAGA(t(.(z0, .(z0, z1)), space, []), .(p(z2, z0), z4))
U5_GAGA(.(z0, z1), z2, .(p(z2, x2), z4), member_out_ag(p(z2, x2), .(p(z2, x2), z4))) → TURING_IN_GAGA(t(.(x2, .(z0, z1)), space, []), .(p(z2, x2), z4))
U5_GAGA(.(z0, z1), space, .(p(space, z0), z3), member_out_ag(p(space, z0), .(p(space, z0), z3))) → TURING_IN_GAGA(t(.(z0, .(z0, z1)), space, []), .(p(space, z0), z3))
U5_GAGA(.(z0, z1), space, .(p(space, x2), z3), member_out_ag(p(space, x2), .(p(space, x2), z3))) → TURING_IN_GAGA(t(.(x2, .(z0, z1)), space, []), .(p(space, x2), z3))
U5_GAGA(.(z0, z1), z2, .(p(z3, z0), z4), member_out_ag(p(z2, x4), .(p(z3, z0), z4))) → TURING_IN_GAGA(t(.(x4, .(z0, z1)), space, []), .(p(z3, z0), z4))
U5_GAGA(.(z0, z1), z2, .(z3, z4), member_out_ag(p(z2, x4), .(z3, z4))) → TURING_IN_GAGA(t(.(x4, .(z0, z1)), space, []), .(z3, z4))
U5_GAGA(.(z0, z1), space, .(p(z2, z0), z3), member_out_ag(p(space, x4), .(p(z2, z0), z3))) → TURING_IN_GAGA(t(.(x4, .(z0, z1)), space, []), .(p(z2, z0), z3))
U5_GAGA(.(z0, z1), space, .(z2, z3), member_out_ag(p(space, x4), .(z2, z3))) → TURING_IN_GAGA(t(.(x4, .(z0, z1)), space, []), .(z2, z3))
U9_GAGA(z0, .(z1, z2), .(p(z0, z1), z4), member_out_ag(p(z0, z1), .(p(z0, z1), z4))) → TURING_IN_GAGA(t([], space, .(z1, .(z1, z2))), .(p(z0, z1), z4))
U9_GAGA(z0, .(z1, z2), .(p(z0, x2), z4), member_out_ag(p(z0, x2), .(p(z0, x2), z4))) → TURING_IN_GAGA(t([], space, .(x2, .(z1, z2))), .(p(z0, x2), z4))
U9_GAGA(space, .(z0, z1), .(p(space, z0), z3), member_out_ag(p(space, z0), .(p(space, z0), z3))) → TURING_IN_GAGA(t([], space, .(z0, .(z0, z1))), .(p(space, z0), z3))
U9_GAGA(space, .(z0, z1), .(p(space, x2), z3), member_out_ag(p(space, x2), .(p(space, x2), z3))) → TURING_IN_GAGA(t([], space, .(x2, .(z0, z1))), .(p(space, x2), z3))
U9_GAGA(z0, .(z1, z2), .(p(z3, z1), z4), member_out_ag(p(z0, x4), .(p(z3, z1), z4))) → TURING_IN_GAGA(t([], space, .(x4, .(z1, z2))), .(p(z3, z1), z4))
U9_GAGA(z0, .(z1, z2), .(z3, z4), member_out_ag(p(z0, x4), .(z3, z4))) → TURING_IN_GAGA(t([], space, .(x4, .(z1, z2))), .(z3, z4))
U9_GAGA(space, .(z0, z1), .(p(z2, z0), z3), member_out_ag(p(space, x4), .(p(z2, z0), z3))) → TURING_IN_GAGA(t([], space, .(x4, .(z0, z1))), .(p(z2, z0), z3))
U9_GAGA(space, .(z0, z1), .(z2, z3), member_out_ag(p(space, x4), .(z2, z3))) → TURING_IN_GAGA(t([], space, .(x4, .(z0, z1))), .(z2, z3))
TURING_IN_GAGA(t(x0, x1, .(x2, x3)), .(p(y_4, y_5), x5)) → U3_GAGA(x0, x1, x2, x3, .(p(y_4, y_5), x5), member_out_ag(p(y_4, y_5), .(p(y_4, y_5), x5)))
member_in_ag(.(H, L)) → member_out_ag(H, .(H, L))
member_in_ag(.(H, L)) → U1_ag(H, L, member_in_ag(L))
U1_ag(H, L, member_out_ag(X, L)) → member_out_ag(X, .(H, L))
member_in_ag(x0)
U1_ag(x0, x1, x2)
TURING_IN_GAGA(t(.(x0, x1), x2, x3), .(p(y_4, y_5), x5)) → U7_GAGA(x0, x1, x2, x3, .(p(y_4, y_5), x5), member_out_ag(p(y_4, y_5), .(p(y_4, y_5), x5)))
TURING_IN_GAGA(t(y0, y1, .(y2, y3)), .(x0, x1)) → U3_GAGA(y0, y1, y2, y3, .(x0, x1), U1_ag(x0, x1, member_in_ag(x1)))
TURING_IN_GAGA(t(.(y0, y1), y2, y3), .(x0, x1)) → U7_GAGA(y0, y1, y2, y3, .(x0, x1), U1_ag(x0, x1, member_in_ag(x1)))
U3_GAGA(z0, z1, z2, z3, .(p(z1, x5), z5), member_out_ag(p(z1, x5), .(p(z1, x5), z5))) → TURING_IN_GAGA(t(.(x5, z0), z2, z3), .(p(z1, x5), z5))
U3_GAGA(z0, z1, z2, z3, .(z4, z5), member_out_ag(p(z1, x5), .(z4, z5))) → TURING_IN_GAGA(t(.(x5, z0), z2, z3), .(z4, z5))
U7_GAGA(z0, z1, z2, z3, .(p(z2, x5), z5), member_out_ag(p(z2, x5), .(p(z2, x5), z5))) → TURING_IN_GAGA(t(z1, z0, .(x5, z3)), .(p(z2, x5), z5))
U7_GAGA(z0, z1, z2, z3, .(z4, z5), member_out_ag(p(z2, x5), .(z4, z5))) → TURING_IN_GAGA(t(z1, z0, .(x5, z3)), .(z4, z5))
TURING_IN_GAGA(t(.(z4, z0), z2, []), .(p(z1, z4), z5)) → U5_GAGA(.(z4, z0), z2, .(p(z1, z4), z5), member_out_ag(p(z1, z4), .(p(z1, z4), z5)))
TURING_IN_GAGA(t(.(z6, z0), z2, []), .(z4, z5)) → U5_GAGA(.(z6, z0), z2, .(z4, z5), member_out_ag(z4, .(z4, z5)))
TURING_IN_GAGA(t(.(z2, z0), space, []), .(p(z1, z2), z3)) → U5_GAGA(.(z2, z0), space, .(p(z1, z2), z3), member_out_ag(p(z1, z2), .(p(z1, z2), z3)))
TURING_IN_GAGA(t(.(z4, z0), space, []), .(z2, z3)) → U5_GAGA(.(z4, z0), space, .(z2, z3), member_out_ag(z2, .(z2, z3)))
TURING_IN_GAGA(t(.(z4, z0), z2, []), .(p(z1, z4), z5)) → U5_GAGA(.(z4, z0), z2, .(p(z1, z4), z5), U1_ag(p(z1, z4), z5, member_in_ag(z5)))
TURING_IN_GAGA(t(.(z6, z0), z2, []), .(z4, z5)) → U5_GAGA(.(z6, z0), z2, .(z4, z5), U1_ag(z4, z5, member_in_ag(z5)))
TURING_IN_GAGA(t(.(z2, z0), space, []), .(p(z1, z2), z3)) → U5_GAGA(.(z2, z0), space, .(p(z1, z2), z3), U1_ag(p(z1, z2), z3, member_in_ag(z3)))
TURING_IN_GAGA(t(.(z4, z0), space, []), .(z2, z3)) → U5_GAGA(.(z4, z0), space, .(z2, z3), U1_ag(z2, z3, member_in_ag(z3)))
TURING_IN_GAGA(t([], z0, .(z4, z3)), .(p(z2, z4), z5)) → U9_GAGA(z0, .(z4, z3), .(p(z2, z4), z5), member_out_ag(p(z2, z4), .(p(z2, z4), z5)))
TURING_IN_GAGA(t([], z0, .(z6, z3)), .(z4, z5)) → U9_GAGA(z0, .(z6, z3), .(z4, z5), member_out_ag(z4, .(z4, z5)))
TURING_IN_GAGA(t([], space, .(z2, z1)), .(p(z0, z2), z3)) → U9_GAGA(space, .(z2, z1), .(p(z0, z2), z3), member_out_ag(p(z0, z2), .(p(z0, z2), z3)))
TURING_IN_GAGA(t([], space, .(z4, z1)), .(z2, z3)) → U9_GAGA(space, .(z4, z1), .(z2, z3), member_out_ag(z2, .(z2, z3)))
TURING_IN_GAGA(t([], z0, .(z4, z3)), .(p(z2, z4), z5)) → U9_GAGA(z0, .(z4, z3), .(p(z2, z4), z5), U1_ag(p(z2, z4), z5, member_in_ag(z5)))
TURING_IN_GAGA(t([], z0, .(z6, z3)), .(z4, z5)) → U9_GAGA(z0, .(z6, z3), .(z4, z5), U1_ag(z4, z5, member_in_ag(z5)))
TURING_IN_GAGA(t([], space, .(z2, z1)), .(p(z0, z2), z3)) → U9_GAGA(space, .(z2, z1), .(p(z0, z2), z3), U1_ag(p(z0, z2), z3, member_in_ag(z3)))
TURING_IN_GAGA(t([], space, .(z4, z1)), .(z2, z3)) → U9_GAGA(space, .(z4, z1), .(z2, z3), U1_ag(z2, z3, member_in_ag(z3)))
U5_GAGA(.(z0, z1), z2, .(p(z2, z0), z4), member_out_ag(p(z2, z0), .(p(z2, z0), z4))) → TURING_IN_GAGA(t(.(z0, .(z0, z1)), space, []), .(p(z2, z0), z4))
U5_GAGA(.(z0, z1), z2, .(p(z2, x2), z4), member_out_ag(p(z2, x2), .(p(z2, x2), z4))) → TURING_IN_GAGA(t(.(x2, .(z0, z1)), space, []), .(p(z2, x2), z4))
U5_GAGA(.(z0, z1), space, .(p(space, z0), z3), member_out_ag(p(space, z0), .(p(space, z0), z3))) → TURING_IN_GAGA(t(.(z0, .(z0, z1)), space, []), .(p(space, z0), z3))
U5_GAGA(.(z0, z1), space, .(p(space, x2), z3), member_out_ag(p(space, x2), .(p(space, x2), z3))) → TURING_IN_GAGA(t(.(x2, .(z0, z1)), space, []), .(p(space, x2), z3))
U5_GAGA(.(z0, z1), z2, .(p(z3, z0), z4), member_out_ag(p(z2, x4), .(p(z3, z0), z4))) → TURING_IN_GAGA(t(.(x4, .(z0, z1)), space, []), .(p(z3, z0), z4))
U5_GAGA(.(z0, z1), z2, .(z3, z4), member_out_ag(p(z2, x4), .(z3, z4))) → TURING_IN_GAGA(t(.(x4, .(z0, z1)), space, []), .(z3, z4))
U5_GAGA(.(z0, z1), space, .(p(z2, z0), z3), member_out_ag(p(space, x4), .(p(z2, z0), z3))) → TURING_IN_GAGA(t(.(x4, .(z0, z1)), space, []), .(p(z2, z0), z3))
U5_GAGA(.(z0, z1), space, .(z2, z3), member_out_ag(p(space, x4), .(z2, z3))) → TURING_IN_GAGA(t(.(x4, .(z0, z1)), space, []), .(z2, z3))
U9_GAGA(z0, .(z1, z2), .(p(z0, z1), z4), member_out_ag(p(z0, z1), .(p(z0, z1), z4))) → TURING_IN_GAGA(t([], space, .(z1, .(z1, z2))), .(p(z0, z1), z4))
U9_GAGA(z0, .(z1, z2), .(p(z0, x2), z4), member_out_ag(p(z0, x2), .(p(z0, x2), z4))) → TURING_IN_GAGA(t([], space, .(x2, .(z1, z2))), .(p(z0, x2), z4))
U9_GAGA(space, .(z0, z1), .(p(space, z0), z3), member_out_ag(p(space, z0), .(p(space, z0), z3))) → TURING_IN_GAGA(t([], space, .(z0, .(z0, z1))), .(p(space, z0), z3))
U9_GAGA(space, .(z0, z1), .(p(space, x2), z3), member_out_ag(p(space, x2), .(p(space, x2), z3))) → TURING_IN_GAGA(t([], space, .(x2, .(z0, z1))), .(p(space, x2), z3))
U9_GAGA(z0, .(z1, z2), .(p(z3, z1), z4), member_out_ag(p(z0, x4), .(p(z3, z1), z4))) → TURING_IN_GAGA(t([], space, .(x4, .(z1, z2))), .(p(z3, z1), z4))
U9_GAGA(z0, .(z1, z2), .(z3, z4), member_out_ag(p(z0, x4), .(z3, z4))) → TURING_IN_GAGA(t([], space, .(x4, .(z1, z2))), .(z3, z4))
U9_GAGA(space, .(z0, z1), .(p(z2, z0), z3), member_out_ag(p(space, x4), .(p(z2, z0), z3))) → TURING_IN_GAGA(t([], space, .(x4, .(z0, z1))), .(p(z2, z0), z3))
U9_GAGA(space, .(z0, z1), .(z2, z3), member_out_ag(p(space, x4), .(z2, z3))) → TURING_IN_GAGA(t([], space, .(x4, .(z0, z1))), .(z2, z3))
TURING_IN_GAGA(t(x0, x1, .(x2, x3)), .(p(y_4, y_5), x5)) → U3_GAGA(x0, x1, x2, x3, .(p(y_4, y_5), x5), member_out_ag(p(y_4, y_5), .(p(y_4, y_5), x5)))
TURING_IN_GAGA(t(.(x0, x1), x2, x3), .(p(y_4, y_5), x5)) → U7_GAGA(x0, x1, x2, x3, .(p(y_4, y_5), x5), member_out_ag(p(y_4, y_5), .(p(y_4, y_5), x5)))
member_in_ag(.(H, L)) → member_out_ag(H, .(H, L))
member_in_ag(.(H, L)) → U1_ag(H, L, member_in_ag(L))
U1_ag(H, L, member_out_ag(X, L)) → member_out_ag(X, .(H, L))
member_in_ag(x0)
U1_ag(x0, x1, x2)
TURING_IN_GAGA(t(.(x0, x1), x2, []), .(p(y_3, y_4), x4)) → U5_GAGA(.(x0, x1), x2, .(p(y_3, y_4), x4), member_out_ag(p(y_3, y_4), .(p(y_3, y_4), x4)))
TURING_IN_GAGA(t(.(x0, x1), space, []), .(p(space, y_2), x4)) → U5_GAGA(.(x0, x1), space, .(p(space, y_2), x4), member_out_ag(p(space, y_2), .(p(space, y_2), x4)))
TURING_IN_GAGA(t(y0, y1, .(y2, y3)), .(x0, x1)) → U3_GAGA(y0, y1, y2, y3, .(x0, x1), U1_ag(x0, x1, member_in_ag(x1)))
TURING_IN_GAGA(t(.(y0, y1), y2, y3), .(x0, x1)) → U7_GAGA(y0, y1, y2, y3, .(x0, x1), U1_ag(x0, x1, member_in_ag(x1)))
U3_GAGA(z0, z1, z2, z3, .(p(z1, x5), z5), member_out_ag(p(z1, x5), .(p(z1, x5), z5))) → TURING_IN_GAGA(t(.(x5, z0), z2, z3), .(p(z1, x5), z5))
U3_GAGA(z0, z1, z2, z3, .(z4, z5), member_out_ag(p(z1, x5), .(z4, z5))) → TURING_IN_GAGA(t(.(x5, z0), z2, z3), .(z4, z5))
U7_GAGA(z0, z1, z2, z3, .(p(z2, x5), z5), member_out_ag(p(z2, x5), .(p(z2, x5), z5))) → TURING_IN_GAGA(t(z1, z0, .(x5, z3)), .(p(z2, x5), z5))
U7_GAGA(z0, z1, z2, z3, .(z4, z5), member_out_ag(p(z2, x5), .(z4, z5))) → TURING_IN_GAGA(t(z1, z0, .(x5, z3)), .(z4, z5))
TURING_IN_GAGA(t(.(z4, z0), z2, []), .(p(z1, z4), z5)) → U5_GAGA(.(z4, z0), z2, .(p(z1, z4), z5), member_out_ag(p(z1, z4), .(p(z1, z4), z5)))
TURING_IN_GAGA(t(.(z2, z0), space, []), .(p(z1, z2), z3)) → U5_GAGA(.(z2, z0), space, .(p(z1, z2), z3), member_out_ag(p(z1, z2), .(p(z1, z2), z3)))
TURING_IN_GAGA(t(.(z4, z0), space, []), .(z2, z3)) → U5_GAGA(.(z4, z0), space, .(z2, z3), member_out_ag(z2, .(z2, z3)))
TURING_IN_GAGA(t(.(z4, z0), z2, []), .(p(z1, z4), z5)) → U5_GAGA(.(z4, z0), z2, .(p(z1, z4), z5), U1_ag(p(z1, z4), z5, member_in_ag(z5)))
TURING_IN_GAGA(t(.(z6, z0), z2, []), .(z4, z5)) → U5_GAGA(.(z6, z0), z2, .(z4, z5), U1_ag(z4, z5, member_in_ag(z5)))
TURING_IN_GAGA(t(.(z2, z0), space, []), .(p(z1, z2), z3)) → U5_GAGA(.(z2, z0), space, .(p(z1, z2), z3), U1_ag(p(z1, z2), z3, member_in_ag(z3)))
TURING_IN_GAGA(t(.(z4, z0), space, []), .(z2, z3)) → U5_GAGA(.(z4, z0), space, .(z2, z3), U1_ag(z2, z3, member_in_ag(z3)))
TURING_IN_GAGA(t([], z0, .(z4, z3)), .(p(z2, z4), z5)) → U9_GAGA(z0, .(z4, z3), .(p(z2, z4), z5), member_out_ag(p(z2, z4), .(p(z2, z4), z5)))
TURING_IN_GAGA(t([], z0, .(z6, z3)), .(z4, z5)) → U9_GAGA(z0, .(z6, z3), .(z4, z5), member_out_ag(z4, .(z4, z5)))
TURING_IN_GAGA(t([], space, .(z2, z1)), .(p(z0, z2), z3)) → U9_GAGA(space, .(z2, z1), .(p(z0, z2), z3), member_out_ag(p(z0, z2), .(p(z0, z2), z3)))
TURING_IN_GAGA(t([], space, .(z4, z1)), .(z2, z3)) → U9_GAGA(space, .(z4, z1), .(z2, z3), member_out_ag(z2, .(z2, z3)))
TURING_IN_GAGA(t([], z0, .(z4, z3)), .(p(z2, z4), z5)) → U9_GAGA(z0, .(z4, z3), .(p(z2, z4), z5), U1_ag(p(z2, z4), z5, member_in_ag(z5)))
TURING_IN_GAGA(t([], z0, .(z6, z3)), .(z4, z5)) → U9_GAGA(z0, .(z6, z3), .(z4, z5), U1_ag(z4, z5, member_in_ag(z5)))
TURING_IN_GAGA(t([], space, .(z2, z1)), .(p(z0, z2), z3)) → U9_GAGA(space, .(z2, z1), .(p(z0, z2), z3), U1_ag(p(z0, z2), z3, member_in_ag(z3)))
TURING_IN_GAGA(t([], space, .(z4, z1)), .(z2, z3)) → U9_GAGA(space, .(z4, z1), .(z2, z3), U1_ag(z2, z3, member_in_ag(z3)))
U5_GAGA(.(z0, z1), z2, .(p(z2, z0), z4), member_out_ag(p(z2, z0), .(p(z2, z0), z4))) → TURING_IN_GAGA(t(.(z0, .(z0, z1)), space, []), .(p(z2, z0), z4))
U5_GAGA(.(z0, z1), z2, .(p(z2, x2), z4), member_out_ag(p(z2, x2), .(p(z2, x2), z4))) → TURING_IN_GAGA(t(.(x2, .(z0, z1)), space, []), .(p(z2, x2), z4))
U5_GAGA(.(z0, z1), space, .(p(space, z0), z3), member_out_ag(p(space, z0), .(p(space, z0), z3))) → TURING_IN_GAGA(t(.(z0, .(z0, z1)), space, []), .(p(space, z0), z3))
U5_GAGA(.(z0, z1), space, .(p(space, x2), z3), member_out_ag(p(space, x2), .(p(space, x2), z3))) → TURING_IN_GAGA(t(.(x2, .(z0, z1)), space, []), .(p(space, x2), z3))
U5_GAGA(.(z0, z1), z2, .(p(z3, z0), z4), member_out_ag(p(z2, x4), .(p(z3, z0), z4))) → TURING_IN_GAGA(t(.(x4, .(z0, z1)), space, []), .(p(z3, z0), z4))
U5_GAGA(.(z0, z1), z2, .(z3, z4), member_out_ag(p(z2, x4), .(z3, z4))) → TURING_IN_GAGA(t(.(x4, .(z0, z1)), space, []), .(z3, z4))
U5_GAGA(.(z0, z1), space, .(p(z2, z0), z3), member_out_ag(p(space, x4), .(p(z2, z0), z3))) → TURING_IN_GAGA(t(.(x4, .(z0, z1)), space, []), .(p(z2, z0), z3))
U5_GAGA(.(z0, z1), space, .(z2, z3), member_out_ag(p(space, x4), .(z2, z3))) → TURING_IN_GAGA(t(.(x4, .(z0, z1)), space, []), .(z2, z3))
U9_GAGA(z0, .(z1, z2), .(p(z0, z1), z4), member_out_ag(p(z0, z1), .(p(z0, z1), z4))) → TURING_IN_GAGA(t([], space, .(z1, .(z1, z2))), .(p(z0, z1), z4))
U9_GAGA(z0, .(z1, z2), .(p(z0, x2), z4), member_out_ag(p(z0, x2), .(p(z0, x2), z4))) → TURING_IN_GAGA(t([], space, .(x2, .(z1, z2))), .(p(z0, x2), z4))
U9_GAGA(space, .(z0, z1), .(p(space, z0), z3), member_out_ag(p(space, z0), .(p(space, z0), z3))) → TURING_IN_GAGA(t([], space, .(z0, .(z0, z1))), .(p(space, z0), z3))
U9_GAGA(space, .(z0, z1), .(p(space, x2), z3), member_out_ag(p(space, x2), .(p(space, x2), z3))) → TURING_IN_GAGA(t([], space, .(x2, .(z0, z1))), .(p(space, x2), z3))
U9_GAGA(z0, .(z1, z2), .(p(z3, z1), z4), member_out_ag(p(z0, x4), .(p(z3, z1), z4))) → TURING_IN_GAGA(t([], space, .(x4, .(z1, z2))), .(p(z3, z1), z4))
U9_GAGA(z0, .(z1, z2), .(z3, z4), member_out_ag(p(z0, x4), .(z3, z4))) → TURING_IN_GAGA(t([], space, .(x4, .(z1, z2))), .(z3, z4))
U9_GAGA(space, .(z0, z1), .(p(z2, z0), z3), member_out_ag(p(space, x4), .(p(z2, z0), z3))) → TURING_IN_GAGA(t([], space, .(x4, .(z0, z1))), .(p(z2, z0), z3))
U9_GAGA(space, .(z0, z1), .(z2, z3), member_out_ag(p(space, x4), .(z2, z3))) → TURING_IN_GAGA(t([], space, .(x4, .(z0, z1))), .(z2, z3))
TURING_IN_GAGA(t(x0, x1, .(x2, x3)), .(p(y_4, y_5), x5)) → U3_GAGA(x0, x1, x2, x3, .(p(y_4, y_5), x5), member_out_ag(p(y_4, y_5), .(p(y_4, y_5), x5)))
TURING_IN_GAGA(t(.(x0, x1), x2, x3), .(p(y_4, y_5), x5)) → U7_GAGA(x0, x1, x2, x3, .(p(y_4, y_5), x5), member_out_ag(p(y_4, y_5), .(p(y_4, y_5), x5)))
TURING_IN_GAGA(t(.(x0, x1), x2, []), .(p(y_3, y_4), x4)) → U5_GAGA(.(x0, x1), x2, .(p(y_3, y_4), x4), member_out_ag(p(y_3, y_4), .(p(y_3, y_4), x4)))
TURING_IN_GAGA(t(.(x0, x1), space, []), .(p(space, y_2), x4)) → U5_GAGA(.(x0, x1), space, .(p(space, y_2), x4), member_out_ag(p(space, y_2), .(p(space, y_2), x4)))
member_in_ag(.(H, L)) → member_out_ag(H, .(H, L))
member_in_ag(.(H, L)) → U1_ag(H, L, member_in_ag(L))
U1_ag(H, L, member_out_ag(X, L)) → member_out_ag(X, .(H, L))
member_in_ag(x0)
U1_ag(x0, x1, x2)
TURING_IN_GAGA(t(.(x0, x1), space, []), .(p(y_3, y_4), x3)) → U5_GAGA(.(x0, x1), space, .(p(y_3, y_4), x3), member_out_ag(p(y_3, y_4), .(p(y_3, y_4), x3)))
TURING_IN_GAGA(t(.(x0, x1), space, []), .(p(space, y_2), x3)) → U5_GAGA(.(x0, x1), space, .(p(space, y_2), x3), member_out_ag(p(space, y_2), .(p(space, y_2), x3)))
TURING_IN_GAGA(t(y0, y1, .(y2, y3)), .(x0, x1)) → U3_GAGA(y0, y1, y2, y3, .(x0, x1), U1_ag(x0, x1, member_in_ag(x1)))
TURING_IN_GAGA(t(.(y0, y1), y2, y3), .(x0, x1)) → U7_GAGA(y0, y1, y2, y3, .(x0, x1), U1_ag(x0, x1, member_in_ag(x1)))
U3_GAGA(z0, z1, z2, z3, .(p(z1, x5), z5), member_out_ag(p(z1, x5), .(p(z1, x5), z5))) → TURING_IN_GAGA(t(.(x5, z0), z2, z3), .(p(z1, x5), z5))
U3_GAGA(z0, z1, z2, z3, .(z4, z5), member_out_ag(p(z1, x5), .(z4, z5))) → TURING_IN_GAGA(t(.(x5, z0), z2, z3), .(z4, z5))
U7_GAGA(z0, z1, z2, z3, .(p(z2, x5), z5), member_out_ag(p(z2, x5), .(p(z2, x5), z5))) → TURING_IN_GAGA(t(z1, z0, .(x5, z3)), .(p(z2, x5), z5))
U7_GAGA(z0, z1, z2, z3, .(z4, z5), member_out_ag(p(z2, x5), .(z4, z5))) → TURING_IN_GAGA(t(z1, z0, .(x5, z3)), .(z4, z5))
TURING_IN_GAGA(t(.(z4, z0), z2, []), .(p(z1, z4), z5)) → U5_GAGA(.(z4, z0), z2, .(p(z1, z4), z5), member_out_ag(p(z1, z4), .(p(z1, z4), z5)))
TURING_IN_GAGA(t(.(z2, z0), space, []), .(p(z1, z2), z3)) → U5_GAGA(.(z2, z0), space, .(p(z1, z2), z3), member_out_ag(p(z1, z2), .(p(z1, z2), z3)))
TURING_IN_GAGA(t(.(z4, z0), z2, []), .(p(z1, z4), z5)) → U5_GAGA(.(z4, z0), z2, .(p(z1, z4), z5), U1_ag(p(z1, z4), z5, member_in_ag(z5)))
TURING_IN_GAGA(t(.(z6, z0), z2, []), .(z4, z5)) → U5_GAGA(.(z6, z0), z2, .(z4, z5), U1_ag(z4, z5, member_in_ag(z5)))
TURING_IN_GAGA(t(.(z2, z0), space, []), .(p(z1, z2), z3)) → U5_GAGA(.(z2, z0), space, .(p(z1, z2), z3), U1_ag(p(z1, z2), z3, member_in_ag(z3)))
TURING_IN_GAGA(t(.(z4, z0), space, []), .(z2, z3)) → U5_GAGA(.(z4, z0), space, .(z2, z3), U1_ag(z2, z3, member_in_ag(z3)))
TURING_IN_GAGA(t([], z0, .(z4, z3)), .(p(z2, z4), z5)) → U9_GAGA(z0, .(z4, z3), .(p(z2, z4), z5), member_out_ag(p(z2, z4), .(p(z2, z4), z5)))
TURING_IN_GAGA(t([], z0, .(z6, z3)), .(z4, z5)) → U9_GAGA(z0, .(z6, z3), .(z4, z5), member_out_ag(z4, .(z4, z5)))
TURING_IN_GAGA(t([], space, .(z2, z1)), .(p(z0, z2), z3)) → U9_GAGA(space, .(z2, z1), .(p(z0, z2), z3), member_out_ag(p(z0, z2), .(p(z0, z2), z3)))
TURING_IN_GAGA(t([], space, .(z4, z1)), .(z2, z3)) → U9_GAGA(space, .(z4, z1), .(z2, z3), member_out_ag(z2, .(z2, z3)))
TURING_IN_GAGA(t([], z0, .(z4, z3)), .(p(z2, z4), z5)) → U9_GAGA(z0, .(z4, z3), .(p(z2, z4), z5), U1_ag(p(z2, z4), z5, member_in_ag(z5)))
TURING_IN_GAGA(t([], z0, .(z6, z3)), .(z4, z5)) → U9_GAGA(z0, .(z6, z3), .(z4, z5), U1_ag(z4, z5, member_in_ag(z5)))
TURING_IN_GAGA(t([], space, .(z2, z1)), .(p(z0, z2), z3)) → U9_GAGA(space, .(z2, z1), .(p(z0, z2), z3), U1_ag(p(z0, z2), z3, member_in_ag(z3)))
TURING_IN_GAGA(t([], space, .(z4, z1)), .(z2, z3)) → U9_GAGA(space, .(z4, z1), .(z2, z3), U1_ag(z2, z3, member_in_ag(z3)))
U5_GAGA(.(z0, z1), z2, .(p(z2, z0), z4), member_out_ag(p(z2, z0), .(p(z2, z0), z4))) → TURING_IN_GAGA(t(.(z0, .(z0, z1)), space, []), .(p(z2, z0), z4))
U5_GAGA(.(z0, z1), z2, .(p(z2, x2), z4), member_out_ag(p(z2, x2), .(p(z2, x2), z4))) → TURING_IN_GAGA(t(.(x2, .(z0, z1)), space, []), .(p(z2, x2), z4))
U5_GAGA(.(z0, z1), space, .(p(space, z0), z3), member_out_ag(p(space, z0), .(p(space, z0), z3))) → TURING_IN_GAGA(t(.(z0, .(z0, z1)), space, []), .(p(space, z0), z3))
U5_GAGA(.(z0, z1), space, .(p(space, x2), z3), member_out_ag(p(space, x2), .(p(space, x2), z3))) → TURING_IN_GAGA(t(.(x2, .(z0, z1)), space, []), .(p(space, x2), z3))
U5_GAGA(.(z0, z1), z2, .(p(z3, z0), z4), member_out_ag(p(z2, x4), .(p(z3, z0), z4))) → TURING_IN_GAGA(t(.(x4, .(z0, z1)), space, []), .(p(z3, z0), z4))
U5_GAGA(.(z0, z1), z2, .(z3, z4), member_out_ag(p(z2, x4), .(z3, z4))) → TURING_IN_GAGA(t(.(x4, .(z0, z1)), space, []), .(z3, z4))
U5_GAGA(.(z0, z1), space, .(p(z2, z0), z3), member_out_ag(p(space, x4), .(p(z2, z0), z3))) → TURING_IN_GAGA(t(.(x4, .(z0, z1)), space, []), .(p(z2, z0), z3))
U5_GAGA(.(z0, z1), space, .(z2, z3), member_out_ag(p(space, x4), .(z2, z3))) → TURING_IN_GAGA(t(.(x4, .(z0, z1)), space, []), .(z2, z3))
U9_GAGA(z0, .(z1, z2), .(p(z0, z1), z4), member_out_ag(p(z0, z1), .(p(z0, z1), z4))) → TURING_IN_GAGA(t([], space, .(z1, .(z1, z2))), .(p(z0, z1), z4))
U9_GAGA(z0, .(z1, z2), .(p(z0, x2), z4), member_out_ag(p(z0, x2), .(p(z0, x2), z4))) → TURING_IN_GAGA(t([], space, .(x2, .(z1, z2))), .(p(z0, x2), z4))
U9_GAGA(space, .(z0, z1), .(p(space, z0), z3), member_out_ag(p(space, z0), .(p(space, z0), z3))) → TURING_IN_GAGA(t([], space, .(z0, .(z0, z1))), .(p(space, z0), z3))
U9_GAGA(space, .(z0, z1), .(p(space, x2), z3), member_out_ag(p(space, x2), .(p(space, x2), z3))) → TURING_IN_GAGA(t([], space, .(x2, .(z0, z1))), .(p(space, x2), z3))
U9_GAGA(z0, .(z1, z2), .(p(z3, z1), z4), member_out_ag(p(z0, x4), .(p(z3, z1), z4))) → TURING_IN_GAGA(t([], space, .(x4, .(z1, z2))), .(p(z3, z1), z4))
U9_GAGA(z0, .(z1, z2), .(z3, z4), member_out_ag(p(z0, x4), .(z3, z4))) → TURING_IN_GAGA(t([], space, .(x4, .(z1, z2))), .(z3, z4))
U9_GAGA(space, .(z0, z1), .(p(z2, z0), z3), member_out_ag(p(space, x4), .(p(z2, z0), z3))) → TURING_IN_GAGA(t([], space, .(x4, .(z0, z1))), .(p(z2, z0), z3))
U9_GAGA(space, .(z0, z1), .(z2, z3), member_out_ag(p(space, x4), .(z2, z3))) → TURING_IN_GAGA(t([], space, .(x4, .(z0, z1))), .(z2, z3))
TURING_IN_GAGA(t(x0, x1, .(x2, x3)), .(p(y_4, y_5), x5)) → U3_GAGA(x0, x1, x2, x3, .(p(y_4, y_5), x5), member_out_ag(p(y_4, y_5), .(p(y_4, y_5), x5)))
TURING_IN_GAGA(t(.(x0, x1), x2, x3), .(p(y_4, y_5), x5)) → U7_GAGA(x0, x1, x2, x3, .(p(y_4, y_5), x5), member_out_ag(p(y_4, y_5), .(p(y_4, y_5), x5)))
TURING_IN_GAGA(t(.(x0, x1), x2, []), .(p(y_3, y_4), x4)) → U5_GAGA(.(x0, x1), x2, .(p(y_3, y_4), x4), member_out_ag(p(y_3, y_4), .(p(y_3, y_4), x4)))
TURING_IN_GAGA(t(.(x0, x1), space, []), .(p(space, y_2), x4)) → U5_GAGA(.(x0, x1), space, .(p(space, y_2), x4), member_out_ag(p(space, y_2), .(p(space, y_2), x4)))
TURING_IN_GAGA(t(.(x0, x1), space, []), .(p(y_3, y_4), x3)) → U5_GAGA(.(x0, x1), space, .(p(y_3, y_4), x3), member_out_ag(p(y_3, y_4), .(p(y_3, y_4), x3)))
member_in_ag(.(H, L)) → member_out_ag(H, .(H, L))
member_in_ag(.(H, L)) → U1_ag(H, L, member_in_ag(L))
U1_ag(H, L, member_out_ag(X, L)) → member_out_ag(X, .(H, L))
member_in_ag(x0)
U1_ag(x0, x1, x2)
TURING_IN_GAGA(t([], x0, .(x1, x2)), .(p(y_3, y_4), x4)) → U9_GAGA(x0, .(x1, x2), .(p(y_3, y_4), x4), member_out_ag(p(y_3, y_4), .(p(y_3, y_4), x4)))
TURING_IN_GAGA(t([], space, .(x1, x2)), .(p(space, y_2), x4)) → U9_GAGA(space, .(x1, x2), .(p(space, y_2), x4), member_out_ag(p(space, y_2), .(p(space, y_2), x4)))
TURING_IN_GAGA(t(y0, y1, .(y2, y3)), .(x0, x1)) → U3_GAGA(y0, y1, y2, y3, .(x0, x1), U1_ag(x0, x1, member_in_ag(x1)))
TURING_IN_GAGA(t(.(y0, y1), y2, y3), .(x0, x1)) → U7_GAGA(y0, y1, y2, y3, .(x0, x1), U1_ag(x0, x1, member_in_ag(x1)))
U3_GAGA(z0, z1, z2, z3, .(p(z1, x5), z5), member_out_ag(p(z1, x5), .(p(z1, x5), z5))) → TURING_IN_GAGA(t(.(x5, z0), z2, z3), .(p(z1, x5), z5))
U3_GAGA(z0, z1, z2, z3, .(z4, z5), member_out_ag(p(z1, x5), .(z4, z5))) → TURING_IN_GAGA(t(.(x5, z0), z2, z3), .(z4, z5))
U7_GAGA(z0, z1, z2, z3, .(p(z2, x5), z5), member_out_ag(p(z2, x5), .(p(z2, x5), z5))) → TURING_IN_GAGA(t(z1, z0, .(x5, z3)), .(p(z2, x5), z5))
U7_GAGA(z0, z1, z2, z3, .(z4, z5), member_out_ag(p(z2, x5), .(z4, z5))) → TURING_IN_GAGA(t(z1, z0, .(x5, z3)), .(z4, z5))
TURING_IN_GAGA(t(.(z4, z0), z2, []), .(p(z1, z4), z5)) → U5_GAGA(.(z4, z0), z2, .(p(z1, z4), z5), member_out_ag(p(z1, z4), .(p(z1, z4), z5)))
TURING_IN_GAGA(t(.(z2, z0), space, []), .(p(z1, z2), z3)) → U5_GAGA(.(z2, z0), space, .(p(z1, z2), z3), member_out_ag(p(z1, z2), .(p(z1, z2), z3)))
TURING_IN_GAGA(t(.(z4, z0), z2, []), .(p(z1, z4), z5)) → U5_GAGA(.(z4, z0), z2, .(p(z1, z4), z5), U1_ag(p(z1, z4), z5, member_in_ag(z5)))
TURING_IN_GAGA(t(.(z6, z0), z2, []), .(z4, z5)) → U5_GAGA(.(z6, z0), z2, .(z4, z5), U1_ag(z4, z5, member_in_ag(z5)))
TURING_IN_GAGA(t(.(z2, z0), space, []), .(p(z1, z2), z3)) → U5_GAGA(.(z2, z0), space, .(p(z1, z2), z3), U1_ag(p(z1, z2), z3, member_in_ag(z3)))
TURING_IN_GAGA(t(.(z4, z0), space, []), .(z2, z3)) → U5_GAGA(.(z4, z0), space, .(z2, z3), U1_ag(z2, z3, member_in_ag(z3)))
TURING_IN_GAGA(t([], z0, .(z4, z3)), .(p(z2, z4), z5)) → U9_GAGA(z0, .(z4, z3), .(p(z2, z4), z5), member_out_ag(p(z2, z4), .(p(z2, z4), z5)))
TURING_IN_GAGA(t([], space, .(z2, z1)), .(p(z0, z2), z3)) → U9_GAGA(space, .(z2, z1), .(p(z0, z2), z3), member_out_ag(p(z0, z2), .(p(z0, z2), z3)))
TURING_IN_GAGA(t([], space, .(z4, z1)), .(z2, z3)) → U9_GAGA(space, .(z4, z1), .(z2, z3), member_out_ag(z2, .(z2, z3)))
TURING_IN_GAGA(t([], z0, .(z4, z3)), .(p(z2, z4), z5)) → U9_GAGA(z0, .(z4, z3), .(p(z2, z4), z5), U1_ag(p(z2, z4), z5, member_in_ag(z5)))
TURING_IN_GAGA(t([], z0, .(z6, z3)), .(z4, z5)) → U9_GAGA(z0, .(z6, z3), .(z4, z5), U1_ag(z4, z5, member_in_ag(z5)))
TURING_IN_GAGA(t([], space, .(z2, z1)), .(p(z0, z2), z3)) → U9_GAGA(space, .(z2, z1), .(p(z0, z2), z3), U1_ag(p(z0, z2), z3, member_in_ag(z3)))
TURING_IN_GAGA(t([], space, .(z4, z1)), .(z2, z3)) → U9_GAGA(space, .(z4, z1), .(z2, z3), U1_ag(z2, z3, member_in_ag(z3)))
U5_GAGA(.(z0, z1), z2, .(p(z2, z0), z4), member_out_ag(p(z2, z0), .(p(z2, z0), z4))) → TURING_IN_GAGA(t(.(z0, .(z0, z1)), space, []), .(p(z2, z0), z4))
U5_GAGA(.(z0, z1), z2, .(p(z2, x2), z4), member_out_ag(p(z2, x2), .(p(z2, x2), z4))) → TURING_IN_GAGA(t(.(x2, .(z0, z1)), space, []), .(p(z2, x2), z4))
U5_GAGA(.(z0, z1), space, .(p(space, z0), z3), member_out_ag(p(space, z0), .(p(space, z0), z3))) → TURING_IN_GAGA(t(.(z0, .(z0, z1)), space, []), .(p(space, z0), z3))
U5_GAGA(.(z0, z1), space, .(p(space, x2), z3), member_out_ag(p(space, x2), .(p(space, x2), z3))) → TURING_IN_GAGA(t(.(x2, .(z0, z1)), space, []), .(p(space, x2), z3))
U5_GAGA(.(z0, z1), z2, .(p(z3, z0), z4), member_out_ag(p(z2, x4), .(p(z3, z0), z4))) → TURING_IN_GAGA(t(.(x4, .(z0, z1)), space, []), .(p(z3, z0), z4))
U5_GAGA(.(z0, z1), z2, .(z3, z4), member_out_ag(p(z2, x4), .(z3, z4))) → TURING_IN_GAGA(t(.(x4, .(z0, z1)), space, []), .(z3, z4))
U5_GAGA(.(z0, z1), space, .(p(z2, z0), z3), member_out_ag(p(space, x4), .(p(z2, z0), z3))) → TURING_IN_GAGA(t(.(x4, .(z0, z1)), space, []), .(p(z2, z0), z3))
U5_GAGA(.(z0, z1), space, .(z2, z3), member_out_ag(p(space, x4), .(z2, z3))) → TURING_IN_GAGA(t(.(x4, .(z0, z1)), space, []), .(z2, z3))
U9_GAGA(z0, .(z1, z2), .(p(z0, z1), z4), member_out_ag(p(z0, z1), .(p(z0, z1), z4))) → TURING_IN_GAGA(t([], space, .(z1, .(z1, z2))), .(p(z0, z1), z4))
U9_GAGA(z0, .(z1, z2), .(p(z0, x2), z4), member_out_ag(p(z0, x2), .(p(z0, x2), z4))) → TURING_IN_GAGA(t([], space, .(x2, .(z1, z2))), .(p(z0, x2), z4))
U9_GAGA(space, .(z0, z1), .(p(space, z0), z3), member_out_ag(p(space, z0), .(p(space, z0), z3))) → TURING_IN_GAGA(t([], space, .(z0, .(z0, z1))), .(p(space, z0), z3))
U9_GAGA(space, .(z0, z1), .(p(space, x2), z3), member_out_ag(p(space, x2), .(p(space, x2), z3))) → TURING_IN_GAGA(t([], space, .(x2, .(z0, z1))), .(p(space, x2), z3))
U9_GAGA(z0, .(z1, z2), .(p(z3, z1), z4), member_out_ag(p(z0, x4), .(p(z3, z1), z4))) → TURING_IN_GAGA(t([], space, .(x4, .(z1, z2))), .(p(z3, z1), z4))
U9_GAGA(z0, .(z1, z2), .(z3, z4), member_out_ag(p(z0, x4), .(z3, z4))) → TURING_IN_GAGA(t([], space, .(x4, .(z1, z2))), .(z3, z4))
U9_GAGA(space, .(z0, z1), .(p(z2, z0), z3), member_out_ag(p(space, x4), .(p(z2, z0), z3))) → TURING_IN_GAGA(t([], space, .(x4, .(z0, z1))), .(p(z2, z0), z3))
U9_GAGA(space, .(z0, z1), .(z2, z3), member_out_ag(p(space, x4), .(z2, z3))) → TURING_IN_GAGA(t([], space, .(x4, .(z0, z1))), .(z2, z3))
TURING_IN_GAGA(t(x0, x1, .(x2, x3)), .(p(y_4, y_5), x5)) → U3_GAGA(x0, x1, x2, x3, .(p(y_4, y_5), x5), member_out_ag(p(y_4, y_5), .(p(y_4, y_5), x5)))
TURING_IN_GAGA(t(.(x0, x1), x2, x3), .(p(y_4, y_5), x5)) → U7_GAGA(x0, x1, x2, x3, .(p(y_4, y_5), x5), member_out_ag(p(y_4, y_5), .(p(y_4, y_5), x5)))
TURING_IN_GAGA(t(.(x0, x1), x2, []), .(p(y_3, y_4), x4)) → U5_GAGA(.(x0, x1), x2, .(p(y_3, y_4), x4), member_out_ag(p(y_3, y_4), .(p(y_3, y_4), x4)))
TURING_IN_GAGA(t(.(x0, x1), space, []), .(p(space, y_2), x4)) → U5_GAGA(.(x0, x1), space, .(p(space, y_2), x4), member_out_ag(p(space, y_2), .(p(space, y_2), x4)))
TURING_IN_GAGA(t(.(x0, x1), space, []), .(p(y_3, y_4), x3)) → U5_GAGA(.(x0, x1), space, .(p(y_3, y_4), x3), member_out_ag(p(y_3, y_4), .(p(y_3, y_4), x3)))
TURING_IN_GAGA(t([], x0, .(x1, x2)), .(p(y_3, y_4), x4)) → U9_GAGA(x0, .(x1, x2), .(p(y_3, y_4), x4), member_out_ag(p(y_3, y_4), .(p(y_3, y_4), x4)))
TURING_IN_GAGA(t([], space, .(x1, x2)), .(p(space, y_2), x4)) → U9_GAGA(space, .(x1, x2), .(p(space, y_2), x4), member_out_ag(p(space, y_2), .(p(space, y_2), x4)))
member_in_ag(.(H, L)) → member_out_ag(H, .(H, L))
member_in_ag(.(H, L)) → U1_ag(H, L, member_in_ag(L))
U1_ag(H, L, member_out_ag(X, L)) → member_out_ag(X, .(H, L))
member_in_ag(x0)
U1_ag(x0, x1, x2)
TURING_IN_GAGA(t([], space, .(x0, x1)), .(p(y_3, y_4), x3)) → U9_GAGA(space, .(x0, x1), .(p(y_3, y_4), x3), member_out_ag(p(y_3, y_4), .(p(y_3, y_4), x3)))
TURING_IN_GAGA(t([], space, .(x0, x1)), .(p(space, y_2), x3)) → U9_GAGA(space, .(x0, x1), .(p(space, y_2), x3), member_out_ag(p(space, y_2), .(p(space, y_2), x3)))
TURING_IN_GAGA(t(y0, y1, .(y2, y3)), .(x0, x1)) → U3_GAGA(y0, y1, y2, y3, .(x0, x1), U1_ag(x0, x1, member_in_ag(x1)))
TURING_IN_GAGA(t(.(y0, y1), y2, y3), .(x0, x1)) → U7_GAGA(y0, y1, y2, y3, .(x0, x1), U1_ag(x0, x1, member_in_ag(x1)))
U3_GAGA(z0, z1, z2, z3, .(p(z1, x5), z5), member_out_ag(p(z1, x5), .(p(z1, x5), z5))) → TURING_IN_GAGA(t(.(x5, z0), z2, z3), .(p(z1, x5), z5))
U3_GAGA(z0, z1, z2, z3, .(z4, z5), member_out_ag(p(z1, x5), .(z4, z5))) → TURING_IN_GAGA(t(.(x5, z0), z2, z3), .(z4, z5))
U7_GAGA(z0, z1, z2, z3, .(p(z2, x5), z5), member_out_ag(p(z2, x5), .(p(z2, x5), z5))) → TURING_IN_GAGA(t(z1, z0, .(x5, z3)), .(p(z2, x5), z5))
U7_GAGA(z0, z1, z2, z3, .(z4, z5), member_out_ag(p(z2, x5), .(z4, z5))) → TURING_IN_GAGA(t(z1, z0, .(x5, z3)), .(z4, z5))
TURING_IN_GAGA(t(.(z4, z0), z2, []), .(p(z1, z4), z5)) → U5_GAGA(.(z4, z0), z2, .(p(z1, z4), z5), member_out_ag(p(z1, z4), .(p(z1, z4), z5)))
TURING_IN_GAGA(t(.(z2, z0), space, []), .(p(z1, z2), z3)) → U5_GAGA(.(z2, z0), space, .(p(z1, z2), z3), member_out_ag(p(z1, z2), .(p(z1, z2), z3)))
TURING_IN_GAGA(t(.(z4, z0), z2, []), .(p(z1, z4), z5)) → U5_GAGA(.(z4, z0), z2, .(p(z1, z4), z5), U1_ag(p(z1, z4), z5, member_in_ag(z5)))
TURING_IN_GAGA(t(.(z6, z0), z2, []), .(z4, z5)) → U5_GAGA(.(z6, z0), z2, .(z4, z5), U1_ag(z4, z5, member_in_ag(z5)))
TURING_IN_GAGA(t(.(z2, z0), space, []), .(p(z1, z2), z3)) → U5_GAGA(.(z2, z0), space, .(p(z1, z2), z3), U1_ag(p(z1, z2), z3, member_in_ag(z3)))
TURING_IN_GAGA(t(.(z4, z0), space, []), .(z2, z3)) → U5_GAGA(.(z4, z0), space, .(z2, z3), U1_ag(z2, z3, member_in_ag(z3)))
TURING_IN_GAGA(t([], z0, .(z4, z3)), .(p(z2, z4), z5)) → U9_GAGA(z0, .(z4, z3), .(p(z2, z4), z5), member_out_ag(p(z2, z4), .(p(z2, z4), z5)))
TURING_IN_GAGA(t([], space, .(z2, z1)), .(p(z0, z2), z3)) → U9_GAGA(space, .(z2, z1), .(p(z0, z2), z3), member_out_ag(p(z0, z2), .(p(z0, z2), z3)))
TURING_IN_GAGA(t([], z0, .(z4, z3)), .(p(z2, z4), z5)) → U9_GAGA(z0, .(z4, z3), .(p(z2, z4), z5), U1_ag(p(z2, z4), z5, member_in_ag(z5)))
TURING_IN_GAGA(t([], z0, .(z6, z3)), .(z4, z5)) → U9_GAGA(z0, .(z6, z3), .(z4, z5), U1_ag(z4, z5, member_in_ag(z5)))
TURING_IN_GAGA(t([], space, .(z2, z1)), .(p(z0, z2), z3)) → U9_GAGA(space, .(z2, z1), .(p(z0, z2), z3), U1_ag(p(z0, z2), z3, member_in_ag(z3)))
TURING_IN_GAGA(t([], space, .(z4, z1)), .(z2, z3)) → U9_GAGA(space, .(z4, z1), .(z2, z3), U1_ag(z2, z3, member_in_ag(z3)))
U5_GAGA(.(z0, z1), z2, .(p(z2, z0), z4), member_out_ag(p(z2, z0), .(p(z2, z0), z4))) → TURING_IN_GAGA(t(.(z0, .(z0, z1)), space, []), .(p(z2, z0), z4))
U5_GAGA(.(z0, z1), z2, .(p(z2, x2), z4), member_out_ag(p(z2, x2), .(p(z2, x2), z4))) → TURING_IN_GAGA(t(.(x2, .(z0, z1)), space, []), .(p(z2, x2), z4))
U5_GAGA(.(z0, z1), space, .(p(space, z0), z3), member_out_ag(p(space, z0), .(p(space, z0), z3))) → TURING_IN_GAGA(t(.(z0, .(z0, z1)), space, []), .(p(space, z0), z3))
U5_GAGA(.(z0, z1), space, .(p(space, x2), z3), member_out_ag(p(space, x2), .(p(space, x2), z3))) → TURING_IN_GAGA(t(.(x2, .(z0, z1)), space, []), .(p(space, x2), z3))
U5_GAGA(.(z0, z1), z2, .(p(z3, z0), z4), member_out_ag(p(z2, x4), .(p(z3, z0), z4))) → TURING_IN_GAGA(t(.(x4, .(z0, z1)), space, []), .(p(z3, z0), z4))
U5_GAGA(.(z0, z1), z2, .(z3, z4), member_out_ag(p(z2, x4), .(z3, z4))) → TURING_IN_GAGA(t(.(x4, .(z0, z1)), space, []), .(z3, z4))
U5_GAGA(.(z0, z1), space, .(p(z2, z0), z3), member_out_ag(p(space, x4), .(p(z2, z0), z3))) → TURING_IN_GAGA(t(.(x4, .(z0, z1)), space, []), .(p(z2, z0), z3))
U5_GAGA(.(z0, z1), space, .(z2, z3), member_out_ag(p(space, x4), .(z2, z3))) → TURING_IN_GAGA(t(.(x4, .(z0, z1)), space, []), .(z2, z3))
U9_GAGA(z0, .(z1, z2), .(p(z0, z1), z4), member_out_ag(p(z0, z1), .(p(z0, z1), z4))) → TURING_IN_GAGA(t([], space, .(z1, .(z1, z2))), .(p(z0, z1), z4))
U9_GAGA(z0, .(z1, z2), .(p(z0, x2), z4), member_out_ag(p(z0, x2), .(p(z0, x2), z4))) → TURING_IN_GAGA(t([], space, .(x2, .(z1, z2))), .(p(z0, x2), z4))
U9_GAGA(space, .(z0, z1), .(p(space, z0), z3), member_out_ag(p(space, z0), .(p(space, z0), z3))) → TURING_IN_GAGA(t([], space, .(z0, .(z0, z1))), .(p(space, z0), z3))
U9_GAGA(space, .(z0, z1), .(p(space, x2), z3), member_out_ag(p(space, x2), .(p(space, x2), z3))) → TURING_IN_GAGA(t([], space, .(x2, .(z0, z1))), .(p(space, x2), z3))
U9_GAGA(z0, .(z1, z2), .(p(z3, z1), z4), member_out_ag(p(z0, x4), .(p(z3, z1), z4))) → TURING_IN_GAGA(t([], space, .(x4, .(z1, z2))), .(p(z3, z1), z4))
U9_GAGA(z0, .(z1, z2), .(z3, z4), member_out_ag(p(z0, x4), .(z3, z4))) → TURING_IN_GAGA(t([], space, .(x4, .(z1, z2))), .(z3, z4))
U9_GAGA(space, .(z0, z1), .(p(z2, z0), z3), member_out_ag(p(space, x4), .(p(z2, z0), z3))) → TURING_IN_GAGA(t([], space, .(x4, .(z0, z1))), .(p(z2, z0), z3))
U9_GAGA(space, .(z0, z1), .(z2, z3), member_out_ag(p(space, x4), .(z2, z3))) → TURING_IN_GAGA(t([], space, .(x4, .(z0, z1))), .(z2, z3))
TURING_IN_GAGA(t(x0, x1, .(x2, x3)), .(p(y_4, y_5), x5)) → U3_GAGA(x0, x1, x2, x3, .(p(y_4, y_5), x5), member_out_ag(p(y_4, y_5), .(p(y_4, y_5), x5)))
TURING_IN_GAGA(t(.(x0, x1), x2, x3), .(p(y_4, y_5), x5)) → U7_GAGA(x0, x1, x2, x3, .(p(y_4, y_5), x5), member_out_ag(p(y_4, y_5), .(p(y_4, y_5), x5)))
TURING_IN_GAGA(t(.(x0, x1), x2, []), .(p(y_3, y_4), x4)) → U5_GAGA(.(x0, x1), x2, .(p(y_3, y_4), x4), member_out_ag(p(y_3, y_4), .(p(y_3, y_4), x4)))
TURING_IN_GAGA(t(.(x0, x1), space, []), .(p(space, y_2), x4)) → U5_GAGA(.(x0, x1), space, .(p(space, y_2), x4), member_out_ag(p(space, y_2), .(p(space, y_2), x4)))
TURING_IN_GAGA(t(.(x0, x1), space, []), .(p(y_3, y_4), x3)) → U5_GAGA(.(x0, x1), space, .(p(y_3, y_4), x3), member_out_ag(p(y_3, y_4), .(p(y_3, y_4), x3)))
TURING_IN_GAGA(t([], x0, .(x1, x2)), .(p(y_3, y_4), x4)) → U9_GAGA(x0, .(x1, x2), .(p(y_3, y_4), x4), member_out_ag(p(y_3, y_4), .(p(y_3, y_4), x4)))
TURING_IN_GAGA(t([], space, .(x1, x2)), .(p(space, y_2), x4)) → U9_GAGA(space, .(x1, x2), .(p(space, y_2), x4), member_out_ag(p(space, y_2), .(p(space, y_2), x4)))
TURING_IN_GAGA(t([], space, .(x0, x1)), .(p(y_3, y_4), x3)) → U9_GAGA(space, .(x0, x1), .(p(y_3, y_4), x3), member_out_ag(p(y_3, y_4), .(p(y_3, y_4), x3)))
member_in_ag(.(H, L)) → member_out_ag(H, .(H, L))
member_in_ag(.(H, L)) → U1_ag(H, L, member_in_ag(L))
U1_ag(H, L, member_out_ag(X, L)) → member_out_ag(X, .(H, L))
member_in_ag(x0)
U1_ag(x0, x1, x2)
turing_in_ggga(t(X, Y, Z), S, P, t(X, Y, Z)) → U2_ggga(X, Y, Z, S, P, member_in_ag(p(S, Y, halt, W, D), P))
member_in_ag(H, .(H, L)) → member_out_ag(H, .(H, L))
member_in_ag(X, .(H, L)) → U1_ag(X, H, L, member_in_ag(X, L))
U1_ag(X, H, L, member_out_ag(X, L)) → member_out_ag(X, .(H, L))
U2_ggga(X, Y, Z, S, P, member_out_ag(p(S, Y, halt, W, D), P)) → turing_out_ggga(t(X, Y, Z), S, P, t(X, Y, Z))
turing_in_ggga(t(X, Y, .(R, L)), S, P, T) → U3_ggga(X, Y, R, L, S, P, T, member_in_ag(p(S, Y, S1, W, r), P))
U3_ggga(X, Y, R, L, S, P, T, member_out_ag(p(S, Y, S1, W, r), P)) → U4_ggga(X, Y, R, L, S, P, T, turing_in_gaga(t(.(W, X), R, L), S1, P, T))
turing_in_gaga(t(X, Y, Z), S, P, t(X, Y, Z)) → U2_gaga(X, Y, Z, S, P, member_in_ag(p(S, Y, halt, W, D), P))
U2_gaga(X, Y, Z, S, P, member_out_ag(p(S, Y, halt, W, D), P)) → turing_out_gaga(t(X, Y, Z), S, P, t(X, Y, Z))
turing_in_gaga(t(X, Y, .(R, L)), S, P, T) → U3_gaga(X, Y, R, L, S, P, T, member_in_ag(p(S, Y, S1, W, r), P))
U3_gaga(X, Y, R, L, S, P, T, member_out_ag(p(S, Y, S1, W, r), P)) → U4_gaga(X, Y, R, L, S, P, T, turing_in_gaga(t(.(W, X), R, L), S1, P, T))
turing_in_gaga(t(X, Y, []), S, P, T) → U5_gaga(X, Y, S, P, T, member_in_ag(p(S, Y, S1, W, r), P))
U5_gaga(X, Y, S, P, T, member_out_ag(p(S, Y, S1, W, r), P)) → U6_gaga(X, Y, S, P, T, turing_in_gaga(t(.(W, X), space, []), S1, P, T))
turing_in_gaga(t(.(X, L), Y, R), S, P, T) → U7_gaga(X, L, Y, R, S, P, T, member_in_ag(p(S, Y, S1, W, l), P))
U7_gaga(X, L, Y, R, S, P, T, member_out_ag(p(S, Y, S1, W, l), P)) → U8_gaga(X, L, Y, R, S, P, T, turing_in_gaga(t(L, X, .(W, R)), S1, P, T))
turing_in_gaga(t([], Y, R), S, P, T) → U9_gaga(Y, R, S, P, T, member_in_ag(p(S, Y, S1, W, l), P))
U9_gaga(Y, R, S, P, T, member_out_ag(p(S, Y, S1, W, l), P)) → U10_gaga(Y, R, S, P, T, turing_in_gaga(t([], space, .(W, R)), S1, P, T))
U10_gaga(Y, R, S, P, T, turing_out_gaga(t([], space, .(W, R)), S1, P, T)) → turing_out_gaga(t([], Y, R), S, P, T)
U8_gaga(X, L, Y, R, S, P, T, turing_out_gaga(t(L, X, .(W, R)), S1, P, T)) → turing_out_gaga(t(.(X, L), Y, R), S, P, T)
U6_gaga(X, Y, S, P, T, turing_out_gaga(t(.(W, X), space, []), S1, P, T)) → turing_out_gaga(t(X, Y, []), S, P, T)
U4_gaga(X, Y, R, L, S, P, T, turing_out_gaga(t(.(W, X), R, L), S1, P, T)) → turing_out_gaga(t(X, Y, .(R, L)), S, P, T)
U4_ggga(X, Y, R, L, S, P, T, turing_out_gaga(t(.(W, X), R, L), S1, P, T)) → turing_out_ggga(t(X, Y, .(R, L)), S, P, T)
turing_in_ggga(t(X, Y, []), S, P, T) → U5_ggga(X, Y, S, P, T, member_in_ag(p(S, Y, S1, W, r), P))
U5_ggga(X, Y, S, P, T, member_out_ag(p(S, Y, S1, W, r), P)) → U6_ggga(X, Y, S, P, T, turing_in_gaga(t(.(W, X), space, []), S1, P, T))
U6_ggga(X, Y, S, P, T, turing_out_gaga(t(.(W, X), space, []), S1, P, T)) → turing_out_ggga(t(X, Y, []), S, P, T)
turing_in_ggga(t(.(X, L), Y, R), S, P, T) → U7_ggga(X, L, Y, R, S, P, T, member_in_ag(p(S, Y, S1, W, l), P))
U7_ggga(X, L, Y, R, S, P, T, member_out_ag(p(S, Y, S1, W, l), P)) → U8_ggga(X, L, Y, R, S, P, T, turing_in_gaga(t(L, X, .(W, R)), S1, P, T))
U8_ggga(X, L, Y, R, S, P, T, turing_out_gaga(t(L, X, .(W, R)), S1, P, T)) → turing_out_ggga(t(.(X, L), Y, R), S, P, T)
turing_in_ggga(t([], Y, R), S, P, T) → U9_ggga(Y, R, S, P, T, member_in_ag(p(S, Y, S1, W, l), P))
U9_ggga(Y, R, S, P, T, member_out_ag(p(S, Y, S1, W, l), P)) → U10_ggga(Y, R, S, P, T, turing_in_gaga(t([], space, .(W, R)), S1, P, T))
U10_ggga(Y, R, S, P, T, turing_out_gaga(t([], space, .(W, R)), S1, P, T)) → turing_out_ggga(t([], Y, R), S, P, T)
Infinitary Constructor Rewriting Termination of PiTRS implies Termination of Prolog
turing_in_ggga(t(X, Y, Z), S, P, t(X, Y, Z)) → U2_ggga(X, Y, Z, S, P, member_in_ag(p(S, Y, halt, W, D), P))
member_in_ag(H, .(H, L)) → member_out_ag(H, .(H, L))
member_in_ag(X, .(H, L)) → U1_ag(X, H, L, member_in_ag(X, L))
U1_ag(X, H, L, member_out_ag(X, L)) → member_out_ag(X, .(H, L))
U2_ggga(X, Y, Z, S, P, member_out_ag(p(S, Y, halt, W, D), P)) → turing_out_ggga(t(X, Y, Z), S, P, t(X, Y, Z))
turing_in_ggga(t(X, Y, .(R, L)), S, P, T) → U3_ggga(X, Y, R, L, S, P, T, member_in_ag(p(S, Y, S1, W, r), P))
U3_ggga(X, Y, R, L, S, P, T, member_out_ag(p(S, Y, S1, W, r), P)) → U4_ggga(X, Y, R, L, S, P, T, turing_in_gaga(t(.(W, X), R, L), S1, P, T))
turing_in_gaga(t(X, Y, Z), S, P, t(X, Y, Z)) → U2_gaga(X, Y, Z, S, P, member_in_ag(p(S, Y, halt, W, D), P))
U2_gaga(X, Y, Z, S, P, member_out_ag(p(S, Y, halt, W, D), P)) → turing_out_gaga(t(X, Y, Z), S, P, t(X, Y, Z))
turing_in_gaga(t(X, Y, .(R, L)), S, P, T) → U3_gaga(X, Y, R, L, S, P, T, member_in_ag(p(S, Y, S1, W, r), P))
U3_gaga(X, Y, R, L, S, P, T, member_out_ag(p(S, Y, S1, W, r), P)) → U4_gaga(X, Y, R, L, S, P, T, turing_in_gaga(t(.(W, X), R, L), S1, P, T))
turing_in_gaga(t(X, Y, []), S, P, T) → U5_gaga(X, Y, S, P, T, member_in_ag(p(S, Y, S1, W, r), P))
U5_gaga(X, Y, S, P, T, member_out_ag(p(S, Y, S1, W, r), P)) → U6_gaga(X, Y, S, P, T, turing_in_gaga(t(.(W, X), space, []), S1, P, T))
turing_in_gaga(t(.(X, L), Y, R), S, P, T) → U7_gaga(X, L, Y, R, S, P, T, member_in_ag(p(S, Y, S1, W, l), P))
U7_gaga(X, L, Y, R, S, P, T, member_out_ag(p(S, Y, S1, W, l), P)) → U8_gaga(X, L, Y, R, S, P, T, turing_in_gaga(t(L, X, .(W, R)), S1, P, T))
turing_in_gaga(t([], Y, R), S, P, T) → U9_gaga(Y, R, S, P, T, member_in_ag(p(S, Y, S1, W, l), P))
U9_gaga(Y, R, S, P, T, member_out_ag(p(S, Y, S1, W, l), P)) → U10_gaga(Y, R, S, P, T, turing_in_gaga(t([], space, .(W, R)), S1, P, T))
U10_gaga(Y, R, S, P, T, turing_out_gaga(t([], space, .(W, R)), S1, P, T)) → turing_out_gaga(t([], Y, R), S, P, T)
U8_gaga(X, L, Y, R, S, P, T, turing_out_gaga(t(L, X, .(W, R)), S1, P, T)) → turing_out_gaga(t(.(X, L), Y, R), S, P, T)
U6_gaga(X, Y, S, P, T, turing_out_gaga(t(.(W, X), space, []), S1, P, T)) → turing_out_gaga(t(X, Y, []), S, P, T)
U4_gaga(X, Y, R, L, S, P, T, turing_out_gaga(t(.(W, X), R, L), S1, P, T)) → turing_out_gaga(t(X, Y, .(R, L)), S, P, T)
U4_ggga(X, Y, R, L, S, P, T, turing_out_gaga(t(.(W, X), R, L), S1, P, T)) → turing_out_ggga(t(X, Y, .(R, L)), S, P, T)
turing_in_ggga(t(X, Y, []), S, P, T) → U5_ggga(X, Y, S, P, T, member_in_ag(p(S, Y, S1, W, r), P))
U5_ggga(X, Y, S, P, T, member_out_ag(p(S, Y, S1, W, r), P)) → U6_ggga(X, Y, S, P, T, turing_in_gaga(t(.(W, X), space, []), S1, P, T))
U6_ggga(X, Y, S, P, T, turing_out_gaga(t(.(W, X), space, []), S1, P, T)) → turing_out_ggga(t(X, Y, []), S, P, T)
turing_in_ggga(t(.(X, L), Y, R), S, P, T) → U7_ggga(X, L, Y, R, S, P, T, member_in_ag(p(S, Y, S1, W, l), P))
U7_ggga(X, L, Y, R, S, P, T, member_out_ag(p(S, Y, S1, W, l), P)) → U8_ggga(X, L, Y, R, S, P, T, turing_in_gaga(t(L, X, .(W, R)), S1, P, T))
U8_ggga(X, L, Y, R, S, P, T, turing_out_gaga(t(L, X, .(W, R)), S1, P, T)) → turing_out_ggga(t(.(X, L), Y, R), S, P, T)
turing_in_ggga(t([], Y, R), S, P, T) → U9_ggga(Y, R, S, P, T, member_in_ag(p(S, Y, S1, W, l), P))
U9_ggga(Y, R, S, P, T, member_out_ag(p(S, Y, S1, W, l), P)) → U10_ggga(Y, R, S, P, T, turing_in_gaga(t([], space, .(W, R)), S1, P, T))
U10_ggga(Y, R, S, P, T, turing_out_gaga(t([], space, .(W, R)), S1, P, T)) → turing_out_ggga(t([], Y, R), S, P, T)
TURING_IN_GGGA(t(X, Y, Z), S, P, t(X, Y, Z)) → U2_GGGA(X, Y, Z, S, P, member_in_ag(p(S, Y, halt, W, D), P))
TURING_IN_GGGA(t(X, Y, Z), S, P, t(X, Y, Z)) → MEMBER_IN_AG(p(S, Y, halt, W, D), P)
MEMBER_IN_AG(X, .(H, L)) → U1_AG(X, H, L, member_in_ag(X, L))
MEMBER_IN_AG(X, .(H, L)) → MEMBER_IN_AG(X, L)
TURING_IN_GGGA(t(X, Y, .(R, L)), S, P, T) → U3_GGGA(X, Y, R, L, S, P, T, member_in_ag(p(S, Y, S1, W, r), P))
TURING_IN_GGGA(t(X, Y, .(R, L)), S, P, T) → MEMBER_IN_AG(p(S, Y, S1, W, r), P)
U3_GGGA(X, Y, R, L, S, P, T, member_out_ag(p(S, Y, S1, W, r), P)) → U4_GGGA(X, Y, R, L, S, P, T, turing_in_gaga(t(.(W, X), R, L), S1, P, T))
U3_GGGA(X, Y, R, L, S, P, T, member_out_ag(p(S, Y, S1, W, r), P)) → TURING_IN_GAGA(t(.(W, X), R, L), S1, P, T)
TURING_IN_GAGA(t(X, Y, Z), S, P, t(X, Y, Z)) → U2_GAGA(X, Y, Z, S, P, member_in_ag(p(S, Y, halt, W, D), P))
TURING_IN_GAGA(t(X, Y, Z), S, P, t(X, Y, Z)) → MEMBER_IN_AG(p(S, Y, halt, W, D), P)
TURING_IN_GAGA(t(X, Y, .(R, L)), S, P, T) → U3_GAGA(X, Y, R, L, S, P, T, member_in_ag(p(S, Y, S1, W, r), P))
TURING_IN_GAGA(t(X, Y, .(R, L)), S, P, T) → MEMBER_IN_AG(p(S, Y, S1, W, r), P)
U3_GAGA(X, Y, R, L, S, P, T, member_out_ag(p(S, Y, S1, W, r), P)) → U4_GAGA(X, Y, R, L, S, P, T, turing_in_gaga(t(.(W, X), R, L), S1, P, T))
U3_GAGA(X, Y, R, L, S, P, T, member_out_ag(p(S, Y, S1, W, r), P)) → TURING_IN_GAGA(t(.(W, X), R, L), S1, P, T)
TURING_IN_GAGA(t(X, Y, []), S, P, T) → U5_GAGA(X, Y, S, P, T, member_in_ag(p(S, Y, S1, W, r), P))
TURING_IN_GAGA(t(X, Y, []), S, P, T) → MEMBER_IN_AG(p(S, Y, S1, W, r), P)
U5_GAGA(X, Y, S, P, T, member_out_ag(p(S, Y, S1, W, r), P)) → U6_GAGA(X, Y, S, P, T, turing_in_gaga(t(.(W, X), space, []), S1, P, T))
U5_GAGA(X, Y, S, P, T, member_out_ag(p(S, Y, S1, W, r), P)) → TURING_IN_GAGA(t(.(W, X), space, []), S1, P, T)
TURING_IN_GAGA(t(.(X, L), Y, R), S, P, T) → U7_GAGA(X, L, Y, R, S, P, T, member_in_ag(p(S, Y, S1, W, l), P))
TURING_IN_GAGA(t(.(X, L), Y, R), S, P, T) → MEMBER_IN_AG(p(S, Y, S1, W, l), P)
U7_GAGA(X, L, Y, R, S, P, T, member_out_ag(p(S, Y, S1, W, l), P)) → U8_GAGA(X, L, Y, R, S, P, T, turing_in_gaga(t(L, X, .(W, R)), S1, P, T))
U7_GAGA(X, L, Y, R, S, P, T, member_out_ag(p(S, Y, S1, W, l), P)) → TURING_IN_GAGA(t(L, X, .(W, R)), S1, P, T)
TURING_IN_GAGA(t([], Y, R), S, P, T) → U9_GAGA(Y, R, S, P, T, member_in_ag(p(S, Y, S1, W, l), P))
TURING_IN_GAGA(t([], Y, R), S, P, T) → MEMBER_IN_AG(p(S, Y, S1, W, l), P)
U9_GAGA(Y, R, S, P, T, member_out_ag(p(S, Y, S1, W, l), P)) → U10_GAGA(Y, R, S, P, T, turing_in_gaga(t([], space, .(W, R)), S1, P, T))
U9_GAGA(Y, R, S, P, T, member_out_ag(p(S, Y, S1, W, l), P)) → TURING_IN_GAGA(t([], space, .(W, R)), S1, P, T)
TURING_IN_GGGA(t(X, Y, []), S, P, T) → U5_GGGA(X, Y, S, P, T, member_in_ag(p(S, Y, S1, W, r), P))
TURING_IN_GGGA(t(X, Y, []), S, P, T) → MEMBER_IN_AG(p(S, Y, S1, W, r), P)
U5_GGGA(X, Y, S, P, T, member_out_ag(p(S, Y, S1, W, r), P)) → U6_GGGA(X, Y, S, P, T, turing_in_gaga(t(.(W, X), space, []), S1, P, T))
U5_GGGA(X, Y, S, P, T, member_out_ag(p(S, Y, S1, W, r), P)) → TURING_IN_GAGA(t(.(W, X), space, []), S1, P, T)
TURING_IN_GGGA(t(.(X, L), Y, R), S, P, T) → U7_GGGA(X, L, Y, R, S, P, T, member_in_ag(p(S, Y, S1, W, l), P))
TURING_IN_GGGA(t(.(X, L), Y, R), S, P, T) → MEMBER_IN_AG(p(S, Y, S1, W, l), P)
U7_GGGA(X, L, Y, R, S, P, T, member_out_ag(p(S, Y, S1, W, l), P)) → U8_GGGA(X, L, Y, R, S, P, T, turing_in_gaga(t(L, X, .(W, R)), S1, P, T))
U7_GGGA(X, L, Y, R, S, P, T, member_out_ag(p(S, Y, S1, W, l), P)) → TURING_IN_GAGA(t(L, X, .(W, R)), S1, P, T)
TURING_IN_GGGA(t([], Y, R), S, P, T) → U9_GGGA(Y, R, S, P, T, member_in_ag(p(S, Y, S1, W, l), P))
TURING_IN_GGGA(t([], Y, R), S, P, T) → MEMBER_IN_AG(p(S, Y, S1, W, l), P)
U9_GGGA(Y, R, S, P, T, member_out_ag(p(S, Y, S1, W, l), P)) → U10_GGGA(Y, R, S, P, T, turing_in_gaga(t([], space, .(W, R)), S1, P, T))
U9_GGGA(Y, R, S, P, T, member_out_ag(p(S, Y, S1, W, l), P)) → TURING_IN_GAGA(t([], space, .(W, R)), S1, P, T)
turing_in_ggga(t(X, Y, Z), S, P, t(X, Y, Z)) → U2_ggga(X, Y, Z, S, P, member_in_ag(p(S, Y, halt, W, D), P))
member_in_ag(H, .(H, L)) → member_out_ag(H, .(H, L))
member_in_ag(X, .(H, L)) → U1_ag(X, H, L, member_in_ag(X, L))
U1_ag(X, H, L, member_out_ag(X, L)) → member_out_ag(X, .(H, L))
U2_ggga(X, Y, Z, S, P, member_out_ag(p(S, Y, halt, W, D), P)) → turing_out_ggga(t(X, Y, Z), S, P, t(X, Y, Z))
turing_in_ggga(t(X, Y, .(R, L)), S, P, T) → U3_ggga(X, Y, R, L, S, P, T, member_in_ag(p(S, Y, S1, W, r), P))
U3_ggga(X, Y, R, L, S, P, T, member_out_ag(p(S, Y, S1, W, r), P)) → U4_ggga(X, Y, R, L, S, P, T, turing_in_gaga(t(.(W, X), R, L), S1, P, T))
turing_in_gaga(t(X, Y, Z), S, P, t(X, Y, Z)) → U2_gaga(X, Y, Z, S, P, member_in_ag(p(S, Y, halt, W, D), P))
U2_gaga(X, Y, Z, S, P, member_out_ag(p(S, Y, halt, W, D), P)) → turing_out_gaga(t(X, Y, Z), S, P, t(X, Y, Z))
turing_in_gaga(t(X, Y, .(R, L)), S, P, T) → U3_gaga(X, Y, R, L, S, P, T, member_in_ag(p(S, Y, S1, W, r), P))
U3_gaga(X, Y, R, L, S, P, T, member_out_ag(p(S, Y, S1, W, r), P)) → U4_gaga(X, Y, R, L, S, P, T, turing_in_gaga(t(.(W, X), R, L), S1, P, T))
turing_in_gaga(t(X, Y, []), S, P, T) → U5_gaga(X, Y, S, P, T, member_in_ag(p(S, Y, S1, W, r), P))
U5_gaga(X, Y, S, P, T, member_out_ag(p(S, Y, S1, W, r), P)) → U6_gaga(X, Y, S, P, T, turing_in_gaga(t(.(W, X), space, []), S1, P, T))
turing_in_gaga(t(.(X, L), Y, R), S, P, T) → U7_gaga(X, L, Y, R, S, P, T, member_in_ag(p(S, Y, S1, W, l), P))
U7_gaga(X, L, Y, R, S, P, T, member_out_ag(p(S, Y, S1, W, l), P)) → U8_gaga(X, L, Y, R, S, P, T, turing_in_gaga(t(L, X, .(W, R)), S1, P, T))
turing_in_gaga(t([], Y, R), S, P, T) → U9_gaga(Y, R, S, P, T, member_in_ag(p(S, Y, S1, W, l), P))
U9_gaga(Y, R, S, P, T, member_out_ag(p(S, Y, S1, W, l), P)) → U10_gaga(Y, R, S, P, T, turing_in_gaga(t([], space, .(W, R)), S1, P, T))
U10_gaga(Y, R, S, P, T, turing_out_gaga(t([], space, .(W, R)), S1, P, T)) → turing_out_gaga(t([], Y, R), S, P, T)
U8_gaga(X, L, Y, R, S, P, T, turing_out_gaga(t(L, X, .(W, R)), S1, P, T)) → turing_out_gaga(t(.(X, L), Y, R), S, P, T)
U6_gaga(X, Y, S, P, T, turing_out_gaga(t(.(W, X), space, []), S1, P, T)) → turing_out_gaga(t(X, Y, []), S, P, T)
U4_gaga(X, Y, R, L, S, P, T, turing_out_gaga(t(.(W, X), R, L), S1, P, T)) → turing_out_gaga(t(X, Y, .(R, L)), S, P, T)
U4_ggga(X, Y, R, L, S, P, T, turing_out_gaga(t(.(W, X), R, L), S1, P, T)) → turing_out_ggga(t(X, Y, .(R, L)), S, P, T)
turing_in_ggga(t(X, Y, []), S, P, T) → U5_ggga(X, Y, S, P, T, member_in_ag(p(S, Y, S1, W, r), P))
U5_ggga(X, Y, S, P, T, member_out_ag(p(S, Y, S1, W, r), P)) → U6_ggga(X, Y, S, P, T, turing_in_gaga(t(.(W, X), space, []), S1, P, T))
U6_ggga(X, Y, S, P, T, turing_out_gaga(t(.(W, X), space, []), S1, P, T)) → turing_out_ggga(t(X, Y, []), S, P, T)
turing_in_ggga(t(.(X, L), Y, R), S, P, T) → U7_ggga(X, L, Y, R, S, P, T, member_in_ag(p(S, Y, S1, W, l), P))
U7_ggga(X, L, Y, R, S, P, T, member_out_ag(p(S, Y, S1, W, l), P)) → U8_ggga(X, L, Y, R, S, P, T, turing_in_gaga(t(L, X, .(W, R)), S1, P, T))
U8_ggga(X, L, Y, R, S, P, T, turing_out_gaga(t(L, X, .(W, R)), S1, P, T)) → turing_out_ggga(t(.(X, L), Y, R), S, P, T)
turing_in_ggga(t([], Y, R), S, P, T) → U9_ggga(Y, R, S, P, T, member_in_ag(p(S, Y, S1, W, l), P))
U9_ggga(Y, R, S, P, T, member_out_ag(p(S, Y, S1, W, l), P)) → U10_ggga(Y, R, S, P, T, turing_in_gaga(t([], space, .(W, R)), S1, P, T))
U10_ggga(Y, R, S, P, T, turing_out_gaga(t([], space, .(W, R)), S1, P, T)) → turing_out_ggga(t([], Y, R), S, P, T)
TURING_IN_GGGA(t(X, Y, Z), S, P, t(X, Y, Z)) → U2_GGGA(X, Y, Z, S, P, member_in_ag(p(S, Y, halt, W, D), P))
TURING_IN_GGGA(t(X, Y, Z), S, P, t(X, Y, Z)) → MEMBER_IN_AG(p(S, Y, halt, W, D), P)
MEMBER_IN_AG(X, .(H, L)) → U1_AG(X, H, L, member_in_ag(X, L))
MEMBER_IN_AG(X, .(H, L)) → MEMBER_IN_AG(X, L)
TURING_IN_GGGA(t(X, Y, .(R, L)), S, P, T) → U3_GGGA(X, Y, R, L, S, P, T, member_in_ag(p(S, Y, S1, W, r), P))
TURING_IN_GGGA(t(X, Y, .(R, L)), S, P, T) → MEMBER_IN_AG(p(S, Y, S1, W, r), P)
U3_GGGA(X, Y, R, L, S, P, T, member_out_ag(p(S, Y, S1, W, r), P)) → U4_GGGA(X, Y, R, L, S, P, T, turing_in_gaga(t(.(W, X), R, L), S1, P, T))
U3_GGGA(X, Y, R, L, S, P, T, member_out_ag(p(S, Y, S1, W, r), P)) → TURING_IN_GAGA(t(.(W, X), R, L), S1, P, T)
TURING_IN_GAGA(t(X, Y, Z), S, P, t(X, Y, Z)) → U2_GAGA(X, Y, Z, S, P, member_in_ag(p(S, Y, halt, W, D), P))
TURING_IN_GAGA(t(X, Y, Z), S, P, t(X, Y, Z)) → MEMBER_IN_AG(p(S, Y, halt, W, D), P)
TURING_IN_GAGA(t(X, Y, .(R, L)), S, P, T) → U3_GAGA(X, Y, R, L, S, P, T, member_in_ag(p(S, Y, S1, W, r), P))
TURING_IN_GAGA(t(X, Y, .(R, L)), S, P, T) → MEMBER_IN_AG(p(S, Y, S1, W, r), P)
U3_GAGA(X, Y, R, L, S, P, T, member_out_ag(p(S, Y, S1, W, r), P)) → U4_GAGA(X, Y, R, L, S, P, T, turing_in_gaga(t(.(W, X), R, L), S1, P, T))
U3_GAGA(X, Y, R, L, S, P, T, member_out_ag(p(S, Y, S1, W, r), P)) → TURING_IN_GAGA(t(.(W, X), R, L), S1, P, T)
TURING_IN_GAGA(t(X, Y, []), S, P, T) → U5_GAGA(X, Y, S, P, T, member_in_ag(p(S, Y, S1, W, r), P))
TURING_IN_GAGA(t(X, Y, []), S, P, T) → MEMBER_IN_AG(p(S, Y, S1, W, r), P)
U5_GAGA(X, Y, S, P, T, member_out_ag(p(S, Y, S1, W, r), P)) → U6_GAGA(X, Y, S, P, T, turing_in_gaga(t(.(W, X), space, []), S1, P, T))
U5_GAGA(X, Y, S, P, T, member_out_ag(p(S, Y, S1, W, r), P)) → TURING_IN_GAGA(t(.(W, X), space, []), S1, P, T)
TURING_IN_GAGA(t(.(X, L), Y, R), S, P, T) → U7_GAGA(X, L, Y, R, S, P, T, member_in_ag(p(S, Y, S1, W, l), P))
TURING_IN_GAGA(t(.(X, L), Y, R), S, P, T) → MEMBER_IN_AG(p(S, Y, S1, W, l), P)
U7_GAGA(X, L, Y, R, S, P, T, member_out_ag(p(S, Y, S1, W, l), P)) → U8_GAGA(X, L, Y, R, S, P, T, turing_in_gaga(t(L, X, .(W, R)), S1, P, T))
U7_GAGA(X, L, Y, R, S, P, T, member_out_ag(p(S, Y, S1, W, l), P)) → TURING_IN_GAGA(t(L, X, .(W, R)), S1, P, T)
TURING_IN_GAGA(t([], Y, R), S, P, T) → U9_GAGA(Y, R, S, P, T, member_in_ag(p(S, Y, S1, W, l), P))
TURING_IN_GAGA(t([], Y, R), S, P, T) → MEMBER_IN_AG(p(S, Y, S1, W, l), P)
U9_GAGA(Y, R, S, P, T, member_out_ag(p(S, Y, S1, W, l), P)) → U10_GAGA(Y, R, S, P, T, turing_in_gaga(t([], space, .(W, R)), S1, P, T))
U9_GAGA(Y, R, S, P, T, member_out_ag(p(S, Y, S1, W, l), P)) → TURING_IN_GAGA(t([], space, .(W, R)), S1, P, T)
TURING_IN_GGGA(t(X, Y, []), S, P, T) → U5_GGGA(X, Y, S, P, T, member_in_ag(p(S, Y, S1, W, r), P))
TURING_IN_GGGA(t(X, Y, []), S, P, T) → MEMBER_IN_AG(p(S, Y, S1, W, r), P)
U5_GGGA(X, Y, S, P, T, member_out_ag(p(S, Y, S1, W, r), P)) → U6_GGGA(X, Y, S, P, T, turing_in_gaga(t(.(W, X), space, []), S1, P, T))
U5_GGGA(X, Y, S, P, T, member_out_ag(p(S, Y, S1, W, r), P)) → TURING_IN_GAGA(t(.(W, X), space, []), S1, P, T)
TURING_IN_GGGA(t(.(X, L), Y, R), S, P, T) → U7_GGGA(X, L, Y, R, S, P, T, member_in_ag(p(S, Y, S1, W, l), P))
TURING_IN_GGGA(t(.(X, L), Y, R), S, P, T) → MEMBER_IN_AG(p(S, Y, S1, W, l), P)
U7_GGGA(X, L, Y, R, S, P, T, member_out_ag(p(S, Y, S1, W, l), P)) → U8_GGGA(X, L, Y, R, S, P, T, turing_in_gaga(t(L, X, .(W, R)), S1, P, T))
U7_GGGA(X, L, Y, R, S, P, T, member_out_ag(p(S, Y, S1, W, l), P)) → TURING_IN_GAGA(t(L, X, .(W, R)), S1, P, T)
TURING_IN_GGGA(t([], Y, R), S, P, T) → U9_GGGA(Y, R, S, P, T, member_in_ag(p(S, Y, S1, W, l), P))
TURING_IN_GGGA(t([], Y, R), S, P, T) → MEMBER_IN_AG(p(S, Y, S1, W, l), P)
U9_GGGA(Y, R, S, P, T, member_out_ag(p(S, Y, S1, W, l), P)) → U10_GGGA(Y, R, S, P, T, turing_in_gaga(t([], space, .(W, R)), S1, P, T))
U9_GGGA(Y, R, S, P, T, member_out_ag(p(S, Y, S1, W, l), P)) → TURING_IN_GAGA(t([], space, .(W, R)), S1, P, T)
turing_in_ggga(t(X, Y, Z), S, P, t(X, Y, Z)) → U2_ggga(X, Y, Z, S, P, member_in_ag(p(S, Y, halt, W, D), P))
member_in_ag(H, .(H, L)) → member_out_ag(H, .(H, L))
member_in_ag(X, .(H, L)) → U1_ag(X, H, L, member_in_ag(X, L))
U1_ag(X, H, L, member_out_ag(X, L)) → member_out_ag(X, .(H, L))
U2_ggga(X, Y, Z, S, P, member_out_ag(p(S, Y, halt, W, D), P)) → turing_out_ggga(t(X, Y, Z), S, P, t(X, Y, Z))
turing_in_ggga(t(X, Y, .(R, L)), S, P, T) → U3_ggga(X, Y, R, L, S, P, T, member_in_ag(p(S, Y, S1, W, r), P))
U3_ggga(X, Y, R, L, S, P, T, member_out_ag(p(S, Y, S1, W, r), P)) → U4_ggga(X, Y, R, L, S, P, T, turing_in_gaga(t(.(W, X), R, L), S1, P, T))
turing_in_gaga(t(X, Y, Z), S, P, t(X, Y, Z)) → U2_gaga(X, Y, Z, S, P, member_in_ag(p(S, Y, halt, W, D), P))
U2_gaga(X, Y, Z, S, P, member_out_ag(p(S, Y, halt, W, D), P)) → turing_out_gaga(t(X, Y, Z), S, P, t(X, Y, Z))
turing_in_gaga(t(X, Y, .(R, L)), S, P, T) → U3_gaga(X, Y, R, L, S, P, T, member_in_ag(p(S, Y, S1, W, r), P))
U3_gaga(X, Y, R, L, S, P, T, member_out_ag(p(S, Y, S1, W, r), P)) → U4_gaga(X, Y, R, L, S, P, T, turing_in_gaga(t(.(W, X), R, L), S1, P, T))
turing_in_gaga(t(X, Y, []), S, P, T) → U5_gaga(X, Y, S, P, T, member_in_ag(p(S, Y, S1, W, r), P))
U5_gaga(X, Y, S, P, T, member_out_ag(p(S, Y, S1, W, r), P)) → U6_gaga(X, Y, S, P, T, turing_in_gaga(t(.(W, X), space, []), S1, P, T))
turing_in_gaga(t(.(X, L), Y, R), S, P, T) → U7_gaga(X, L, Y, R, S, P, T, member_in_ag(p(S, Y, S1, W, l), P))
U7_gaga(X, L, Y, R, S, P, T, member_out_ag(p(S, Y, S1, W, l), P)) → U8_gaga(X, L, Y, R, S, P, T, turing_in_gaga(t(L, X, .(W, R)), S1, P, T))
turing_in_gaga(t([], Y, R), S, P, T) → U9_gaga(Y, R, S, P, T, member_in_ag(p(S, Y, S1, W, l), P))
U9_gaga(Y, R, S, P, T, member_out_ag(p(S, Y, S1, W, l), P)) → U10_gaga(Y, R, S, P, T, turing_in_gaga(t([], space, .(W, R)), S1, P, T))
U10_gaga(Y, R, S, P, T, turing_out_gaga(t([], space, .(W, R)), S1, P, T)) → turing_out_gaga(t([], Y, R), S, P, T)
U8_gaga(X, L, Y, R, S, P, T, turing_out_gaga(t(L, X, .(W, R)), S1, P, T)) → turing_out_gaga(t(.(X, L), Y, R), S, P, T)
U6_gaga(X, Y, S, P, T, turing_out_gaga(t(.(W, X), space, []), S1, P, T)) → turing_out_gaga(t(X, Y, []), S, P, T)
U4_gaga(X, Y, R, L, S, P, T, turing_out_gaga(t(.(W, X), R, L), S1, P, T)) → turing_out_gaga(t(X, Y, .(R, L)), S, P, T)
U4_ggga(X, Y, R, L, S, P, T, turing_out_gaga(t(.(W, X), R, L), S1, P, T)) → turing_out_ggga(t(X, Y, .(R, L)), S, P, T)
turing_in_ggga(t(X, Y, []), S, P, T) → U5_ggga(X, Y, S, P, T, member_in_ag(p(S, Y, S1, W, r), P))
U5_ggga(X, Y, S, P, T, member_out_ag(p(S, Y, S1, W, r), P)) → U6_ggga(X, Y, S, P, T, turing_in_gaga(t(.(W, X), space, []), S1, P, T))
U6_ggga(X, Y, S, P, T, turing_out_gaga(t(.(W, X), space, []), S1, P, T)) → turing_out_ggga(t(X, Y, []), S, P, T)
turing_in_ggga(t(.(X, L), Y, R), S, P, T) → U7_ggga(X, L, Y, R, S, P, T, member_in_ag(p(S, Y, S1, W, l), P))
U7_ggga(X, L, Y, R, S, P, T, member_out_ag(p(S, Y, S1, W, l), P)) → U8_ggga(X, L, Y, R, S, P, T, turing_in_gaga(t(L, X, .(W, R)), S1, P, T))
U8_ggga(X, L, Y, R, S, P, T, turing_out_gaga(t(L, X, .(W, R)), S1, P, T)) → turing_out_ggga(t(.(X, L), Y, R), S, P, T)
turing_in_ggga(t([], Y, R), S, P, T) → U9_ggga(Y, R, S, P, T, member_in_ag(p(S, Y, S1, W, l), P))
U9_ggga(Y, R, S, P, T, member_out_ag(p(S, Y, S1, W, l), P)) → U10_ggga(Y, R, S, P, T, turing_in_gaga(t([], space, .(W, R)), S1, P, T))
U10_ggga(Y, R, S, P, T, turing_out_gaga(t([], space, .(W, R)), S1, P, T)) → turing_out_ggga(t([], Y, R), S, P, T)
MEMBER_IN_AG(X, .(H, L)) → MEMBER_IN_AG(X, L)
turing_in_ggga(t(X, Y, Z), S, P, t(X, Y, Z)) → U2_ggga(X, Y, Z, S, P, member_in_ag(p(S, Y, halt, W, D), P))
member_in_ag(H, .(H, L)) → member_out_ag(H, .(H, L))
member_in_ag(X, .(H, L)) → U1_ag(X, H, L, member_in_ag(X, L))
U1_ag(X, H, L, member_out_ag(X, L)) → member_out_ag(X, .(H, L))
U2_ggga(X, Y, Z, S, P, member_out_ag(p(S, Y, halt, W, D), P)) → turing_out_ggga(t(X, Y, Z), S, P, t(X, Y, Z))
turing_in_ggga(t(X, Y, .(R, L)), S, P, T) → U3_ggga(X, Y, R, L, S, P, T, member_in_ag(p(S, Y, S1, W, r), P))
U3_ggga(X, Y, R, L, S, P, T, member_out_ag(p(S, Y, S1, W, r), P)) → U4_ggga(X, Y, R, L, S, P, T, turing_in_gaga(t(.(W, X), R, L), S1, P, T))
turing_in_gaga(t(X, Y, Z), S, P, t(X, Y, Z)) → U2_gaga(X, Y, Z, S, P, member_in_ag(p(S, Y, halt, W, D), P))
U2_gaga(X, Y, Z, S, P, member_out_ag(p(S, Y, halt, W, D), P)) → turing_out_gaga(t(X, Y, Z), S, P, t(X, Y, Z))
turing_in_gaga(t(X, Y, .(R, L)), S, P, T) → U3_gaga(X, Y, R, L, S, P, T, member_in_ag(p(S, Y, S1, W, r), P))
U3_gaga(X, Y, R, L, S, P, T, member_out_ag(p(S, Y, S1, W, r), P)) → U4_gaga(X, Y, R, L, S, P, T, turing_in_gaga(t(.(W, X), R, L), S1, P, T))
turing_in_gaga(t(X, Y, []), S, P, T) → U5_gaga(X, Y, S, P, T, member_in_ag(p(S, Y, S1, W, r), P))
U5_gaga(X, Y, S, P, T, member_out_ag(p(S, Y, S1, W, r), P)) → U6_gaga(X, Y, S, P, T, turing_in_gaga(t(.(W, X), space, []), S1, P, T))
turing_in_gaga(t(.(X, L), Y, R), S, P, T) → U7_gaga(X, L, Y, R, S, P, T, member_in_ag(p(S, Y, S1, W, l), P))
U7_gaga(X, L, Y, R, S, P, T, member_out_ag(p(S, Y, S1, W, l), P)) → U8_gaga(X, L, Y, R, S, P, T, turing_in_gaga(t(L, X, .(W, R)), S1, P, T))
turing_in_gaga(t([], Y, R), S, P, T) → U9_gaga(Y, R, S, P, T, member_in_ag(p(S, Y, S1, W, l), P))
U9_gaga(Y, R, S, P, T, member_out_ag(p(S, Y, S1, W, l), P)) → U10_gaga(Y, R, S, P, T, turing_in_gaga(t([], space, .(W, R)), S1, P, T))
U10_gaga(Y, R, S, P, T, turing_out_gaga(t([], space, .(W, R)), S1, P, T)) → turing_out_gaga(t([], Y, R), S, P, T)
U8_gaga(X, L, Y, R, S, P, T, turing_out_gaga(t(L, X, .(W, R)), S1, P, T)) → turing_out_gaga(t(.(X, L), Y, R), S, P, T)
U6_gaga(X, Y, S, P, T, turing_out_gaga(t(.(W, X), space, []), S1, P, T)) → turing_out_gaga(t(X, Y, []), S, P, T)
U4_gaga(X, Y, R, L, S, P, T, turing_out_gaga(t(.(W, X), R, L), S1, P, T)) → turing_out_gaga(t(X, Y, .(R, L)), S, P, T)
U4_ggga(X, Y, R, L, S, P, T, turing_out_gaga(t(.(W, X), R, L), S1, P, T)) → turing_out_ggga(t(X, Y, .(R, L)), S, P, T)
turing_in_ggga(t(X, Y, []), S, P, T) → U5_ggga(X, Y, S, P, T, member_in_ag(p(S, Y, S1, W, r), P))
U5_ggga(X, Y, S, P, T, member_out_ag(p(S, Y, S1, W, r), P)) → U6_ggga(X, Y, S, P, T, turing_in_gaga(t(.(W, X), space, []), S1, P, T))
U6_ggga(X, Y, S, P, T, turing_out_gaga(t(.(W, X), space, []), S1, P, T)) → turing_out_ggga(t(X, Y, []), S, P, T)
turing_in_ggga(t(.(X, L), Y, R), S, P, T) → U7_ggga(X, L, Y, R, S, P, T, member_in_ag(p(S, Y, S1, W, l), P))
U7_ggga(X, L, Y, R, S, P, T, member_out_ag(p(S, Y, S1, W, l), P)) → U8_ggga(X, L, Y, R, S, P, T, turing_in_gaga(t(L, X, .(W, R)), S1, P, T))
U8_ggga(X, L, Y, R, S, P, T, turing_out_gaga(t(L, X, .(W, R)), S1, P, T)) → turing_out_ggga(t(.(X, L), Y, R), S, P, T)
turing_in_ggga(t([], Y, R), S, P, T) → U9_ggga(Y, R, S, P, T, member_in_ag(p(S, Y, S1, W, l), P))
U9_ggga(Y, R, S, P, T, member_out_ag(p(S, Y, S1, W, l), P)) → U10_ggga(Y, R, S, P, T, turing_in_gaga(t([], space, .(W, R)), S1, P, T))
U10_ggga(Y, R, S, P, T, turing_out_gaga(t([], space, .(W, R)), S1, P, T)) → turing_out_ggga(t([], Y, R), S, P, T)
MEMBER_IN_AG(X, .(H, L)) → MEMBER_IN_AG(X, L)
MEMBER_IN_AG(.(H, L)) → MEMBER_IN_AG(L)
From the DPs we obtained the following set of size-change graphs:
TURING_IN_GAGA(t(X, Y, .(R, L)), S, P, T) → U3_GAGA(X, Y, R, L, S, P, T, member_in_ag(p(S, Y, S1, W, r), P))
U3_GAGA(X, Y, R, L, S, P, T, member_out_ag(p(S, Y, S1, W, r), P)) → TURING_IN_GAGA(t(.(W, X), R, L), S1, P, T)
TURING_IN_GAGA(t(X, Y, []), S, P, T) → U5_GAGA(X, Y, S, P, T, member_in_ag(p(S, Y, S1, W, r), P))
U5_GAGA(X, Y, S, P, T, member_out_ag(p(S, Y, S1, W, r), P)) → TURING_IN_GAGA(t(.(W, X), space, []), S1, P, T)
TURING_IN_GAGA(t(.(X, L), Y, R), S, P, T) → U7_GAGA(X, L, Y, R, S, P, T, member_in_ag(p(S, Y, S1, W, l), P))
U7_GAGA(X, L, Y, R, S, P, T, member_out_ag(p(S, Y, S1, W, l), P)) → TURING_IN_GAGA(t(L, X, .(W, R)), S1, P, T)
TURING_IN_GAGA(t([], Y, R), S, P, T) → U9_GAGA(Y, R, S, P, T, member_in_ag(p(S, Y, S1, W, l), P))
U9_GAGA(Y, R, S, P, T, member_out_ag(p(S, Y, S1, W, l), P)) → TURING_IN_GAGA(t([], space, .(W, R)), S1, P, T)
turing_in_ggga(t(X, Y, Z), S, P, t(X, Y, Z)) → U2_ggga(X, Y, Z, S, P, member_in_ag(p(S, Y, halt, W, D), P))
member_in_ag(H, .(H, L)) → member_out_ag(H, .(H, L))
member_in_ag(X, .(H, L)) → U1_ag(X, H, L, member_in_ag(X, L))
U1_ag(X, H, L, member_out_ag(X, L)) → member_out_ag(X, .(H, L))
U2_ggga(X, Y, Z, S, P, member_out_ag(p(S, Y, halt, W, D), P)) → turing_out_ggga(t(X, Y, Z), S, P, t(X, Y, Z))
turing_in_ggga(t(X, Y, .(R, L)), S, P, T) → U3_ggga(X, Y, R, L, S, P, T, member_in_ag(p(S, Y, S1, W, r), P))
U3_ggga(X, Y, R, L, S, P, T, member_out_ag(p(S, Y, S1, W, r), P)) → U4_ggga(X, Y, R, L, S, P, T, turing_in_gaga(t(.(W, X), R, L), S1, P, T))
turing_in_gaga(t(X, Y, Z), S, P, t(X, Y, Z)) → U2_gaga(X, Y, Z, S, P, member_in_ag(p(S, Y, halt, W, D), P))
U2_gaga(X, Y, Z, S, P, member_out_ag(p(S, Y, halt, W, D), P)) → turing_out_gaga(t(X, Y, Z), S, P, t(X, Y, Z))
turing_in_gaga(t(X, Y, .(R, L)), S, P, T) → U3_gaga(X, Y, R, L, S, P, T, member_in_ag(p(S, Y, S1, W, r), P))
U3_gaga(X, Y, R, L, S, P, T, member_out_ag(p(S, Y, S1, W, r), P)) → U4_gaga(X, Y, R, L, S, P, T, turing_in_gaga(t(.(W, X), R, L), S1, P, T))
turing_in_gaga(t(X, Y, []), S, P, T) → U5_gaga(X, Y, S, P, T, member_in_ag(p(S, Y, S1, W, r), P))
U5_gaga(X, Y, S, P, T, member_out_ag(p(S, Y, S1, W, r), P)) → U6_gaga(X, Y, S, P, T, turing_in_gaga(t(.(W, X), space, []), S1, P, T))
turing_in_gaga(t(.(X, L), Y, R), S, P, T) → U7_gaga(X, L, Y, R, S, P, T, member_in_ag(p(S, Y, S1, W, l), P))
U7_gaga(X, L, Y, R, S, P, T, member_out_ag(p(S, Y, S1, W, l), P)) → U8_gaga(X, L, Y, R, S, P, T, turing_in_gaga(t(L, X, .(W, R)), S1, P, T))
turing_in_gaga(t([], Y, R), S, P, T) → U9_gaga(Y, R, S, P, T, member_in_ag(p(S, Y, S1, W, l), P))
U9_gaga(Y, R, S, P, T, member_out_ag(p(S, Y, S1, W, l), P)) → U10_gaga(Y, R, S, P, T, turing_in_gaga(t([], space, .(W, R)), S1, P, T))
U10_gaga(Y, R, S, P, T, turing_out_gaga(t([], space, .(W, R)), S1, P, T)) → turing_out_gaga(t([], Y, R), S, P, T)
U8_gaga(X, L, Y, R, S, P, T, turing_out_gaga(t(L, X, .(W, R)), S1, P, T)) → turing_out_gaga(t(.(X, L), Y, R), S, P, T)
U6_gaga(X, Y, S, P, T, turing_out_gaga(t(.(W, X), space, []), S1, P, T)) → turing_out_gaga(t(X, Y, []), S, P, T)
U4_gaga(X, Y, R, L, S, P, T, turing_out_gaga(t(.(W, X), R, L), S1, P, T)) → turing_out_gaga(t(X, Y, .(R, L)), S, P, T)
U4_ggga(X, Y, R, L, S, P, T, turing_out_gaga(t(.(W, X), R, L), S1, P, T)) → turing_out_ggga(t(X, Y, .(R, L)), S, P, T)
turing_in_ggga(t(X, Y, []), S, P, T) → U5_ggga(X, Y, S, P, T, member_in_ag(p(S, Y, S1, W, r), P))
U5_ggga(X, Y, S, P, T, member_out_ag(p(S, Y, S1, W, r), P)) → U6_ggga(X, Y, S, P, T, turing_in_gaga(t(.(W, X), space, []), S1, P, T))
U6_ggga(X, Y, S, P, T, turing_out_gaga(t(.(W, X), space, []), S1, P, T)) → turing_out_ggga(t(X, Y, []), S, P, T)
turing_in_ggga(t(.(X, L), Y, R), S, P, T) → U7_ggga(X, L, Y, R, S, P, T, member_in_ag(p(S, Y, S1, W, l), P))
U7_ggga(X, L, Y, R, S, P, T, member_out_ag(p(S, Y, S1, W, l), P)) → U8_ggga(X, L, Y, R, S, P, T, turing_in_gaga(t(L, X, .(W, R)), S1, P, T))
U8_ggga(X, L, Y, R, S, P, T, turing_out_gaga(t(L, X, .(W, R)), S1, P, T)) → turing_out_ggga(t(.(X, L), Y, R), S, P, T)
turing_in_ggga(t([], Y, R), S, P, T) → U9_ggga(Y, R, S, P, T, member_in_ag(p(S, Y, S1, W, l), P))
U9_ggga(Y, R, S, P, T, member_out_ag(p(S, Y, S1, W, l), P)) → U10_ggga(Y, R, S, P, T, turing_in_gaga(t([], space, .(W, R)), S1, P, T))
U10_ggga(Y, R, S, P, T, turing_out_gaga(t([], space, .(W, R)), S1, P, T)) → turing_out_ggga(t([], Y, R), S, P, T)
TURING_IN_GAGA(t(X, Y, .(R, L)), S, P, T) → U3_GAGA(X, Y, R, L, S, P, T, member_in_ag(p(S, Y, S1, W, r), P))
U3_GAGA(X, Y, R, L, S, P, T, member_out_ag(p(S, Y, S1, W, r), P)) → TURING_IN_GAGA(t(.(W, X), R, L), S1, P, T)
TURING_IN_GAGA(t(X, Y, []), S, P, T) → U5_GAGA(X, Y, S, P, T, member_in_ag(p(S, Y, S1, W, r), P))
U5_GAGA(X, Y, S, P, T, member_out_ag(p(S, Y, S1, W, r), P)) → TURING_IN_GAGA(t(.(W, X), space, []), S1, P, T)
TURING_IN_GAGA(t(.(X, L), Y, R), S, P, T) → U7_GAGA(X, L, Y, R, S, P, T, member_in_ag(p(S, Y, S1, W, l), P))
U7_GAGA(X, L, Y, R, S, P, T, member_out_ag(p(S, Y, S1, W, l), P)) → TURING_IN_GAGA(t(L, X, .(W, R)), S1, P, T)
TURING_IN_GAGA(t([], Y, R), S, P, T) → U9_GAGA(Y, R, S, P, T, member_in_ag(p(S, Y, S1, W, l), P))
U9_GAGA(Y, R, S, P, T, member_out_ag(p(S, Y, S1, W, l), P)) → TURING_IN_GAGA(t([], space, .(W, R)), S1, P, T)
member_in_ag(H, .(H, L)) → member_out_ag(H, .(H, L))
member_in_ag(X, .(H, L)) → U1_ag(X, H, L, member_in_ag(X, L))
U1_ag(X, H, L, member_out_ag(X, L)) → member_out_ag(X, .(H, L))
TURING_IN_GAGA(t(X, Y, .(R, L)), P) → U3_GAGA(X, R, L, P, member_in_ag(P))
U3_GAGA(X, R, L, P, member_out_ag(p(Y, W))) → TURING_IN_GAGA(t(.(W, X), R, L), P)
TURING_IN_GAGA(t(X, Y, []), P) → U5_GAGA(X, P, member_in_ag(P))
U5_GAGA(X, P, member_out_ag(p(Y, W))) → TURING_IN_GAGA(t(.(W, X), space, []), P)
TURING_IN_GAGA(t(.(X, L), Y, R), P) → U7_GAGA(X, L, R, P, member_in_ag(P))
U7_GAGA(X, L, R, P, member_out_ag(p(Y, W))) → TURING_IN_GAGA(t(L, X, .(W, R)), P)
TURING_IN_GAGA(t([], Y, R), P) → U9_GAGA(R, P, member_in_ag(P))
U9_GAGA(R, P, member_out_ag(p(Y, W))) → TURING_IN_GAGA(t([], space, .(W, R)), P)
member_in_ag(.(H, L)) → member_out_ag(H)
member_in_ag(.(H, L)) → U1_ag(member_in_ag(L))
U1_ag(member_out_ag(X)) → member_out_ag(X)
member_in_ag(x0)
U1_ag(x0)
TURING_IN_GAGA(t(.(z5, z0), z1, []), z3) → U5_GAGA(.(z5, z0), z3, member_in_ag(z3))
TURING_IN_GAGA(t(.(z3, z0), space, []), z1) → U5_GAGA(.(z3, z0), z1, member_in_ag(z1))
TURING_IN_GAGA(t(X, Y, .(R, L)), P) → U3_GAGA(X, R, L, P, member_in_ag(P))
U3_GAGA(X, R, L, P, member_out_ag(p(Y, W))) → TURING_IN_GAGA(t(.(W, X), R, L), P)
U5_GAGA(X, P, member_out_ag(p(Y, W))) → TURING_IN_GAGA(t(.(W, X), space, []), P)
TURING_IN_GAGA(t(.(X, L), Y, R), P) → U7_GAGA(X, L, R, P, member_in_ag(P))
U7_GAGA(X, L, R, P, member_out_ag(p(Y, W))) → TURING_IN_GAGA(t(L, X, .(W, R)), P)
TURING_IN_GAGA(t([], Y, R), P) → U9_GAGA(R, P, member_in_ag(P))
U9_GAGA(R, P, member_out_ag(p(Y, W))) → TURING_IN_GAGA(t([], space, .(W, R)), P)
TURING_IN_GAGA(t(.(z5, z0), z1, []), z3) → U5_GAGA(.(z5, z0), z3, member_in_ag(z3))
TURING_IN_GAGA(t(.(z3, z0), space, []), z1) → U5_GAGA(.(z3, z0), z1, member_in_ag(z1))
member_in_ag(.(H, L)) → member_out_ag(H)
member_in_ag(.(H, L)) → U1_ag(member_in_ag(L))
U1_ag(member_out_ag(X)) → member_out_ag(X)
member_in_ag(x0)
U1_ag(x0)
TURING_IN_GAGA(t(y0, y1, .(y2, y3)), .(x0, x1)) → U3_GAGA(y0, y2, y3, .(x0, x1), member_out_ag(x0))
TURING_IN_GAGA(t(y0, y1, .(y2, y3)), .(x0, x1)) → U3_GAGA(y0, y2, y3, .(x0, x1), U1_ag(member_in_ag(x1)))
U3_GAGA(X, R, L, P, member_out_ag(p(Y, W))) → TURING_IN_GAGA(t(.(W, X), R, L), P)
TURING_IN_GAGA(t(X, Y, []), P) → U5_GAGA(X, P, member_in_ag(P))
U5_GAGA(X, P, member_out_ag(p(Y, W))) → TURING_IN_GAGA(t(.(W, X), space, []), P)
TURING_IN_GAGA(t(.(X, L), Y, R), P) → U7_GAGA(X, L, R, P, member_in_ag(P))
U7_GAGA(X, L, R, P, member_out_ag(p(Y, W))) → TURING_IN_GAGA(t(L, X, .(W, R)), P)
TURING_IN_GAGA(t([], Y, R), P) → U9_GAGA(R, P, member_in_ag(P))
U9_GAGA(R, P, member_out_ag(p(Y, W))) → TURING_IN_GAGA(t([], space, .(W, R)), P)
TURING_IN_GAGA(t(y0, y1, .(y2, y3)), .(x0, x1)) → U3_GAGA(y0, y2, y3, .(x0, x1), member_out_ag(x0))
TURING_IN_GAGA(t(y0, y1, .(y2, y3)), .(x0, x1)) → U3_GAGA(y0, y2, y3, .(x0, x1), U1_ag(member_in_ag(x1)))
member_in_ag(.(H, L)) → member_out_ag(H)
member_in_ag(.(H, L)) → U1_ag(member_in_ag(L))
U1_ag(member_out_ag(X)) → member_out_ag(X)
member_in_ag(x0)
U1_ag(x0)
TURING_IN_GAGA(t(y0, y1, []), .(x0, x1)) → U5_GAGA(y0, .(x0, x1), member_out_ag(x0))
TURING_IN_GAGA(t(y0, y1, []), .(x0, x1)) → U5_GAGA(y0, .(x0, x1), U1_ag(member_in_ag(x1)))
U3_GAGA(X, R, L, P, member_out_ag(p(Y, W))) → TURING_IN_GAGA(t(.(W, X), R, L), P)
U5_GAGA(X, P, member_out_ag(p(Y, W))) → TURING_IN_GAGA(t(.(W, X), space, []), P)
TURING_IN_GAGA(t(.(X, L), Y, R), P) → U7_GAGA(X, L, R, P, member_in_ag(P))
U7_GAGA(X, L, R, P, member_out_ag(p(Y, W))) → TURING_IN_GAGA(t(L, X, .(W, R)), P)
TURING_IN_GAGA(t([], Y, R), P) → U9_GAGA(R, P, member_in_ag(P))
U9_GAGA(R, P, member_out_ag(p(Y, W))) → TURING_IN_GAGA(t([], space, .(W, R)), P)
TURING_IN_GAGA(t(y0, y1, .(y2, y3)), .(x0, x1)) → U3_GAGA(y0, y2, y3, .(x0, x1), member_out_ag(x0))
TURING_IN_GAGA(t(y0, y1, .(y2, y3)), .(x0, x1)) → U3_GAGA(y0, y2, y3, .(x0, x1), U1_ag(member_in_ag(x1)))
TURING_IN_GAGA(t(y0, y1, []), .(x0, x1)) → U5_GAGA(y0, .(x0, x1), member_out_ag(x0))
TURING_IN_GAGA(t(y0, y1, []), .(x0, x1)) → U5_GAGA(y0, .(x0, x1), U1_ag(member_in_ag(x1)))
member_in_ag(.(H, L)) → member_out_ag(H)
member_in_ag(.(H, L)) → U1_ag(member_in_ag(L))
U1_ag(member_out_ag(X)) → member_out_ag(X)
member_in_ag(x0)
U1_ag(x0)
TURING_IN_GAGA(t(.(y0, y1), y2, y3), .(x0, x1)) → U7_GAGA(y0, y1, y3, .(x0, x1), member_out_ag(x0))
TURING_IN_GAGA(t(.(y0, y1), y2, y3), .(x0, x1)) → U7_GAGA(y0, y1, y3, .(x0, x1), U1_ag(member_in_ag(x1)))
U3_GAGA(X, R, L, P, member_out_ag(p(Y, W))) → TURING_IN_GAGA(t(.(W, X), R, L), P)
U5_GAGA(X, P, member_out_ag(p(Y, W))) → TURING_IN_GAGA(t(.(W, X), space, []), P)
U7_GAGA(X, L, R, P, member_out_ag(p(Y, W))) → TURING_IN_GAGA(t(L, X, .(W, R)), P)
TURING_IN_GAGA(t([], Y, R), P) → U9_GAGA(R, P, member_in_ag(P))
U9_GAGA(R, P, member_out_ag(p(Y, W))) → TURING_IN_GAGA(t([], space, .(W, R)), P)
TURING_IN_GAGA(t(y0, y1, .(y2, y3)), .(x0, x1)) → U3_GAGA(y0, y2, y3, .(x0, x1), member_out_ag(x0))
TURING_IN_GAGA(t(y0, y1, .(y2, y3)), .(x0, x1)) → U3_GAGA(y0, y2, y3, .(x0, x1), U1_ag(member_in_ag(x1)))
TURING_IN_GAGA(t(y0, y1, []), .(x0, x1)) → U5_GAGA(y0, .(x0, x1), member_out_ag(x0))
TURING_IN_GAGA(t(y0, y1, []), .(x0, x1)) → U5_GAGA(y0, .(x0, x1), U1_ag(member_in_ag(x1)))
TURING_IN_GAGA(t(.(y0, y1), y2, y3), .(x0, x1)) → U7_GAGA(y0, y1, y3, .(x0, x1), member_out_ag(x0))
TURING_IN_GAGA(t(.(y0, y1), y2, y3), .(x0, x1)) → U7_GAGA(y0, y1, y3, .(x0, x1), U1_ag(member_in_ag(x1)))
member_in_ag(.(H, L)) → member_out_ag(H)
member_in_ag(.(H, L)) → U1_ag(member_in_ag(L))
U1_ag(member_out_ag(X)) → member_out_ag(X)
member_in_ag(x0)
U1_ag(x0)
TURING_IN_GAGA(t([], y0, y1), .(x0, x1)) → U9_GAGA(y1, .(x0, x1), member_out_ag(x0))
TURING_IN_GAGA(t([], y0, y1), .(x0, x1)) → U9_GAGA(y1, .(x0, x1), U1_ag(member_in_ag(x1)))
U3_GAGA(X, R, L, P, member_out_ag(p(Y, W))) → TURING_IN_GAGA(t(.(W, X), R, L), P)
U5_GAGA(X, P, member_out_ag(p(Y, W))) → TURING_IN_GAGA(t(.(W, X), space, []), P)
U7_GAGA(X, L, R, P, member_out_ag(p(Y, W))) → TURING_IN_GAGA(t(L, X, .(W, R)), P)
U9_GAGA(R, P, member_out_ag(p(Y, W))) → TURING_IN_GAGA(t([], space, .(W, R)), P)
TURING_IN_GAGA(t(y0, y1, .(y2, y3)), .(x0, x1)) → U3_GAGA(y0, y2, y3, .(x0, x1), member_out_ag(x0))
TURING_IN_GAGA(t(y0, y1, .(y2, y3)), .(x0, x1)) → U3_GAGA(y0, y2, y3, .(x0, x1), U1_ag(member_in_ag(x1)))
TURING_IN_GAGA(t(y0, y1, []), .(x0, x1)) → U5_GAGA(y0, .(x0, x1), member_out_ag(x0))
TURING_IN_GAGA(t(y0, y1, []), .(x0, x1)) → U5_GAGA(y0, .(x0, x1), U1_ag(member_in_ag(x1)))
TURING_IN_GAGA(t(.(y0, y1), y2, y3), .(x0, x1)) → U7_GAGA(y0, y1, y3, .(x0, x1), member_out_ag(x0))
TURING_IN_GAGA(t(.(y0, y1), y2, y3), .(x0, x1)) → U7_GAGA(y0, y1, y3, .(x0, x1), U1_ag(member_in_ag(x1)))
TURING_IN_GAGA(t([], y0, y1), .(x0, x1)) → U9_GAGA(y1, .(x0, x1), member_out_ag(x0))
TURING_IN_GAGA(t([], y0, y1), .(x0, x1)) → U9_GAGA(y1, .(x0, x1), U1_ag(member_in_ag(x1)))
member_in_ag(.(H, L)) → member_out_ag(H)
member_in_ag(.(H, L)) → U1_ag(member_in_ag(L))
U1_ag(member_out_ag(X)) → member_out_ag(X)
member_in_ag(x0)
U1_ag(x0)
U3_GAGA(z0, z2, z3, .(p(x4, x5), z5), member_out_ag(p(x4, x5))) → TURING_IN_GAGA(t(.(x5, z0), z2, z3), .(p(x4, x5), z5))
U3_GAGA(z0, z2, z3, .(z4, z5), member_out_ag(p(x4, x5))) → TURING_IN_GAGA(t(.(x5, z0), z2, z3), .(z4, z5))
U5_GAGA(X, P, member_out_ag(p(Y, W))) → TURING_IN_GAGA(t(.(W, X), space, []), P)
U7_GAGA(X, L, R, P, member_out_ag(p(Y, W))) → TURING_IN_GAGA(t(L, X, .(W, R)), P)
U9_GAGA(R, P, member_out_ag(p(Y, W))) → TURING_IN_GAGA(t([], space, .(W, R)), P)
TURING_IN_GAGA(t(y0, y1, .(y2, y3)), .(x0, x1)) → U3_GAGA(y0, y2, y3, .(x0, x1), member_out_ag(x0))
TURING_IN_GAGA(t(y0, y1, .(y2, y3)), .(x0, x1)) → U3_GAGA(y0, y2, y3, .(x0, x1), U1_ag(member_in_ag(x1)))
TURING_IN_GAGA(t(y0, y1, []), .(x0, x1)) → U5_GAGA(y0, .(x0, x1), member_out_ag(x0))
TURING_IN_GAGA(t(y0, y1, []), .(x0, x1)) → U5_GAGA(y0, .(x0, x1), U1_ag(member_in_ag(x1)))
TURING_IN_GAGA(t(.(y0, y1), y2, y3), .(x0, x1)) → U7_GAGA(y0, y1, y3, .(x0, x1), member_out_ag(x0))
TURING_IN_GAGA(t(.(y0, y1), y2, y3), .(x0, x1)) → U7_GAGA(y0, y1, y3, .(x0, x1), U1_ag(member_in_ag(x1)))
TURING_IN_GAGA(t([], y0, y1), .(x0, x1)) → U9_GAGA(y1, .(x0, x1), member_out_ag(x0))
TURING_IN_GAGA(t([], y0, y1), .(x0, x1)) → U9_GAGA(y1, .(x0, x1), U1_ag(member_in_ag(x1)))
U3_GAGA(z0, z2, z3, .(p(x4, x5), z5), member_out_ag(p(x4, x5))) → TURING_IN_GAGA(t(.(x5, z0), z2, z3), .(p(x4, x5), z5))
U3_GAGA(z0, z2, z3, .(z4, z5), member_out_ag(p(x4, x5))) → TURING_IN_GAGA(t(.(x5, z0), z2, z3), .(z4, z5))
member_in_ag(.(H, L)) → member_out_ag(H)
member_in_ag(.(H, L)) → U1_ag(member_in_ag(L))
U1_ag(member_out_ag(X)) → member_out_ag(X)
member_in_ag(x0)
U1_ag(x0)
U5_GAGA(z0, .(p(x2, x3), z3), member_out_ag(p(x2, x3))) → TURING_IN_GAGA(t(.(x3, z0), space, []), .(p(x2, x3), z3))
U5_GAGA(z0, .(z2, z3), member_out_ag(p(x2, x3))) → TURING_IN_GAGA(t(.(x3, z0), space, []), .(z2, z3))
U7_GAGA(X, L, R, P, member_out_ag(p(Y, W))) → TURING_IN_GAGA(t(L, X, .(W, R)), P)
U9_GAGA(R, P, member_out_ag(p(Y, W))) → TURING_IN_GAGA(t([], space, .(W, R)), P)
TURING_IN_GAGA(t(y0, y1, .(y2, y3)), .(x0, x1)) → U3_GAGA(y0, y2, y3, .(x0, x1), member_out_ag(x0))
TURING_IN_GAGA(t(y0, y1, .(y2, y3)), .(x0, x1)) → U3_GAGA(y0, y2, y3, .(x0, x1), U1_ag(member_in_ag(x1)))
TURING_IN_GAGA(t(y0, y1, []), .(x0, x1)) → U5_GAGA(y0, .(x0, x1), member_out_ag(x0))
TURING_IN_GAGA(t(y0, y1, []), .(x0, x1)) → U5_GAGA(y0, .(x0, x1), U1_ag(member_in_ag(x1)))
TURING_IN_GAGA(t(.(y0, y1), y2, y3), .(x0, x1)) → U7_GAGA(y0, y1, y3, .(x0, x1), member_out_ag(x0))
TURING_IN_GAGA(t(.(y0, y1), y2, y3), .(x0, x1)) → U7_GAGA(y0, y1, y3, .(x0, x1), U1_ag(member_in_ag(x1)))
TURING_IN_GAGA(t([], y0, y1), .(x0, x1)) → U9_GAGA(y1, .(x0, x1), member_out_ag(x0))
TURING_IN_GAGA(t([], y0, y1), .(x0, x1)) → U9_GAGA(y1, .(x0, x1), U1_ag(member_in_ag(x1)))
U3_GAGA(z0, z2, z3, .(p(x4, x5), z5), member_out_ag(p(x4, x5))) → TURING_IN_GAGA(t(.(x5, z0), z2, z3), .(p(x4, x5), z5))
U3_GAGA(z0, z2, z3, .(z4, z5), member_out_ag(p(x4, x5))) → TURING_IN_GAGA(t(.(x5, z0), z2, z3), .(z4, z5))
U5_GAGA(z0, .(p(x2, x3), z3), member_out_ag(p(x2, x3))) → TURING_IN_GAGA(t(.(x3, z0), space, []), .(p(x2, x3), z3))
U5_GAGA(z0, .(z2, z3), member_out_ag(p(x2, x3))) → TURING_IN_GAGA(t(.(x3, z0), space, []), .(z2, z3))
member_in_ag(.(H, L)) → member_out_ag(H)
member_in_ag(.(H, L)) → U1_ag(member_in_ag(L))
U1_ag(member_out_ag(X)) → member_out_ag(X)
member_in_ag(x0)
U1_ag(x0)
U7_GAGA(z0, z1, z3, .(p(x4, x5), z5), member_out_ag(p(x4, x5))) → TURING_IN_GAGA(t(z1, z0, .(x5, z3)), .(p(x4, x5), z5))
U7_GAGA(z0, z1, z3, .(z4, z5), member_out_ag(p(x4, x5))) → TURING_IN_GAGA(t(z1, z0, .(x5, z3)), .(z4, z5))
U9_GAGA(R, P, member_out_ag(p(Y, W))) → TURING_IN_GAGA(t([], space, .(W, R)), P)
TURING_IN_GAGA(t(y0, y1, .(y2, y3)), .(x0, x1)) → U3_GAGA(y0, y2, y3, .(x0, x1), member_out_ag(x0))
TURING_IN_GAGA(t(y0, y1, .(y2, y3)), .(x0, x1)) → U3_GAGA(y0, y2, y3, .(x0, x1), U1_ag(member_in_ag(x1)))
TURING_IN_GAGA(t(y0, y1, []), .(x0, x1)) → U5_GAGA(y0, .(x0, x1), member_out_ag(x0))
TURING_IN_GAGA(t(y0, y1, []), .(x0, x1)) → U5_GAGA(y0, .(x0, x1), U1_ag(member_in_ag(x1)))
TURING_IN_GAGA(t(.(y0, y1), y2, y3), .(x0, x1)) → U7_GAGA(y0, y1, y3, .(x0, x1), member_out_ag(x0))
TURING_IN_GAGA(t(.(y0, y1), y2, y3), .(x0, x1)) → U7_GAGA(y0, y1, y3, .(x0, x1), U1_ag(member_in_ag(x1)))
TURING_IN_GAGA(t([], y0, y1), .(x0, x1)) → U9_GAGA(y1, .(x0, x1), member_out_ag(x0))
TURING_IN_GAGA(t([], y0, y1), .(x0, x1)) → U9_GAGA(y1, .(x0, x1), U1_ag(member_in_ag(x1)))
U3_GAGA(z0, z2, z3, .(p(x4, x5), z5), member_out_ag(p(x4, x5))) → TURING_IN_GAGA(t(.(x5, z0), z2, z3), .(p(x4, x5), z5))
U3_GAGA(z0, z2, z3, .(z4, z5), member_out_ag(p(x4, x5))) → TURING_IN_GAGA(t(.(x5, z0), z2, z3), .(z4, z5))
U5_GAGA(z0, .(p(x2, x3), z3), member_out_ag(p(x2, x3))) → TURING_IN_GAGA(t(.(x3, z0), space, []), .(p(x2, x3), z3))
U5_GAGA(z0, .(z2, z3), member_out_ag(p(x2, x3))) → TURING_IN_GAGA(t(.(x3, z0), space, []), .(z2, z3))
U7_GAGA(z0, z1, z3, .(p(x4, x5), z5), member_out_ag(p(x4, x5))) → TURING_IN_GAGA(t(z1, z0, .(x5, z3)), .(p(x4, x5), z5))
U7_GAGA(z0, z1, z3, .(z4, z5), member_out_ag(p(x4, x5))) → TURING_IN_GAGA(t(z1, z0, .(x5, z3)), .(z4, z5))
member_in_ag(.(H, L)) → member_out_ag(H)
member_in_ag(.(H, L)) → U1_ag(member_in_ag(L))
U1_ag(member_out_ag(X)) → member_out_ag(X)
member_in_ag(x0)
U1_ag(x0)
U9_GAGA(z1, .(p(x2, x3), z3), member_out_ag(p(x2, x3))) → TURING_IN_GAGA(t([], space, .(x3, z1)), .(p(x2, x3), z3))
U9_GAGA(z1, .(z2, z3), member_out_ag(p(x2, x3))) → TURING_IN_GAGA(t([], space, .(x3, z1)), .(z2, z3))
TURING_IN_GAGA(t(y0, y1, .(y2, y3)), .(x0, x1)) → U3_GAGA(y0, y2, y3, .(x0, x1), member_out_ag(x0))
TURING_IN_GAGA(t(y0, y1, .(y2, y3)), .(x0, x1)) → U3_GAGA(y0, y2, y3, .(x0, x1), U1_ag(member_in_ag(x1)))
TURING_IN_GAGA(t(y0, y1, []), .(x0, x1)) → U5_GAGA(y0, .(x0, x1), member_out_ag(x0))
TURING_IN_GAGA(t(y0, y1, []), .(x0, x1)) → U5_GAGA(y0, .(x0, x1), U1_ag(member_in_ag(x1)))
TURING_IN_GAGA(t(.(y0, y1), y2, y3), .(x0, x1)) → U7_GAGA(y0, y1, y3, .(x0, x1), member_out_ag(x0))
TURING_IN_GAGA(t(.(y0, y1), y2, y3), .(x0, x1)) → U7_GAGA(y0, y1, y3, .(x0, x1), U1_ag(member_in_ag(x1)))
TURING_IN_GAGA(t([], y0, y1), .(x0, x1)) → U9_GAGA(y1, .(x0, x1), member_out_ag(x0))
TURING_IN_GAGA(t([], y0, y1), .(x0, x1)) → U9_GAGA(y1, .(x0, x1), U1_ag(member_in_ag(x1)))
U3_GAGA(z0, z2, z3, .(p(x4, x5), z5), member_out_ag(p(x4, x5))) → TURING_IN_GAGA(t(.(x5, z0), z2, z3), .(p(x4, x5), z5))
U3_GAGA(z0, z2, z3, .(z4, z5), member_out_ag(p(x4, x5))) → TURING_IN_GAGA(t(.(x5, z0), z2, z3), .(z4, z5))
U5_GAGA(z0, .(p(x2, x3), z3), member_out_ag(p(x2, x3))) → TURING_IN_GAGA(t(.(x3, z0), space, []), .(p(x2, x3), z3))
U5_GAGA(z0, .(z2, z3), member_out_ag(p(x2, x3))) → TURING_IN_GAGA(t(.(x3, z0), space, []), .(z2, z3))
U7_GAGA(z0, z1, z3, .(p(x4, x5), z5), member_out_ag(p(x4, x5))) → TURING_IN_GAGA(t(z1, z0, .(x5, z3)), .(p(x4, x5), z5))
U7_GAGA(z0, z1, z3, .(z4, z5), member_out_ag(p(x4, x5))) → TURING_IN_GAGA(t(z1, z0, .(x5, z3)), .(z4, z5))
U9_GAGA(z1, .(p(x2, x3), z3), member_out_ag(p(x2, x3))) → TURING_IN_GAGA(t([], space, .(x3, z1)), .(p(x2, x3), z3))
U9_GAGA(z1, .(z2, z3), member_out_ag(p(x2, x3))) → TURING_IN_GAGA(t([], space, .(x3, z1)), .(z2, z3))
member_in_ag(.(H, L)) → member_out_ag(H)
member_in_ag(.(H, L)) → U1_ag(member_in_ag(L))
U1_ag(member_out_ag(X)) → member_out_ag(X)
member_in_ag(x0)
U1_ag(x0)
TURING_IN_GAGA(t(.(z4, z0), z1, []), .(p(z3, z4), z5)) → U5_GAGA(.(z4, z0), .(p(z3, z4), z5), member_out_ag(p(z3, z4)))
TURING_IN_GAGA(t(.(z6, z0), z1, []), .(z3, z4)) → U5_GAGA(.(z6, z0), .(z3, z4), member_out_ag(z3))
TURING_IN_GAGA(t(.(z2, z0), space, []), .(p(z1, z2), z3)) → U5_GAGA(.(z2, z0), .(p(z1, z2), z3), member_out_ag(p(z1, z2)))
TURING_IN_GAGA(t(.(z4, z0), space, []), .(z1, z2)) → U5_GAGA(.(z4, z0), .(z1, z2), member_out_ag(z1))
TURING_IN_GAGA(t(y0, y1, .(y2, y3)), .(x0, x1)) → U3_GAGA(y0, y2, y3, .(x0, x1), member_out_ag(x0))
TURING_IN_GAGA(t(y0, y1, .(y2, y3)), .(x0, x1)) → U3_GAGA(y0, y2, y3, .(x0, x1), U1_ag(member_in_ag(x1)))
TURING_IN_GAGA(t(y0, y1, []), .(x0, x1)) → U5_GAGA(y0, .(x0, x1), U1_ag(member_in_ag(x1)))
TURING_IN_GAGA(t(.(y0, y1), y2, y3), .(x0, x1)) → U7_GAGA(y0, y1, y3, .(x0, x1), member_out_ag(x0))
TURING_IN_GAGA(t(.(y0, y1), y2, y3), .(x0, x1)) → U7_GAGA(y0, y1, y3, .(x0, x1), U1_ag(member_in_ag(x1)))
TURING_IN_GAGA(t([], y0, y1), .(x0, x1)) → U9_GAGA(y1, .(x0, x1), member_out_ag(x0))
TURING_IN_GAGA(t([], y0, y1), .(x0, x1)) → U9_GAGA(y1, .(x0, x1), U1_ag(member_in_ag(x1)))
U3_GAGA(z0, z2, z3, .(p(x4, x5), z5), member_out_ag(p(x4, x5))) → TURING_IN_GAGA(t(.(x5, z0), z2, z3), .(p(x4, x5), z5))
U3_GAGA(z0, z2, z3, .(z4, z5), member_out_ag(p(x4, x5))) → TURING_IN_GAGA(t(.(x5, z0), z2, z3), .(z4, z5))
U5_GAGA(z0, .(p(x2, x3), z3), member_out_ag(p(x2, x3))) → TURING_IN_GAGA(t(.(x3, z0), space, []), .(p(x2, x3), z3))
U5_GAGA(z0, .(z2, z3), member_out_ag(p(x2, x3))) → TURING_IN_GAGA(t(.(x3, z0), space, []), .(z2, z3))
U7_GAGA(z0, z1, z3, .(p(x4, x5), z5), member_out_ag(p(x4, x5))) → TURING_IN_GAGA(t(z1, z0, .(x5, z3)), .(p(x4, x5), z5))
U7_GAGA(z0, z1, z3, .(z4, z5), member_out_ag(p(x4, x5))) → TURING_IN_GAGA(t(z1, z0, .(x5, z3)), .(z4, z5))
U9_GAGA(z1, .(p(x2, x3), z3), member_out_ag(p(x2, x3))) → TURING_IN_GAGA(t([], space, .(x3, z1)), .(p(x2, x3), z3))
U9_GAGA(z1, .(z2, z3), member_out_ag(p(x2, x3))) → TURING_IN_GAGA(t([], space, .(x3, z1)), .(z2, z3))
TURING_IN_GAGA(t(.(z4, z0), z1, []), .(p(z3, z4), z5)) → U5_GAGA(.(z4, z0), .(p(z3, z4), z5), member_out_ag(p(z3, z4)))
TURING_IN_GAGA(t(.(z6, z0), z1, []), .(z3, z4)) → U5_GAGA(.(z6, z0), .(z3, z4), member_out_ag(z3))
TURING_IN_GAGA(t(.(z2, z0), space, []), .(p(z1, z2), z3)) → U5_GAGA(.(z2, z0), .(p(z1, z2), z3), member_out_ag(p(z1, z2)))
TURING_IN_GAGA(t(.(z4, z0), space, []), .(z1, z2)) → U5_GAGA(.(z4, z0), .(z1, z2), member_out_ag(z1))
member_in_ag(.(H, L)) → member_out_ag(H)
member_in_ag(.(H, L)) → U1_ag(member_in_ag(L))
U1_ag(member_out_ag(X)) → member_out_ag(X)
member_in_ag(x0)
U1_ag(x0)
TURING_IN_GAGA(t(.(z4, z0), z1, []), .(p(z3, z4), z5)) → U5_GAGA(.(z4, z0), .(p(z3, z4), z5), U1_ag(member_in_ag(z5)))
TURING_IN_GAGA(t(.(z6, z0), z1, []), .(z3, z4)) → U5_GAGA(.(z6, z0), .(z3, z4), U1_ag(member_in_ag(z4)))
TURING_IN_GAGA(t(.(z2, z0), space, []), .(p(z1, z2), z3)) → U5_GAGA(.(z2, z0), .(p(z1, z2), z3), U1_ag(member_in_ag(z3)))
TURING_IN_GAGA(t(.(z4, z0), space, []), .(z1, z2)) → U5_GAGA(.(z4, z0), .(z1, z2), U1_ag(member_in_ag(z2)))
TURING_IN_GAGA(t(y0, y1, .(y2, y3)), .(x0, x1)) → U3_GAGA(y0, y2, y3, .(x0, x1), member_out_ag(x0))
TURING_IN_GAGA(t(y0, y1, .(y2, y3)), .(x0, x1)) → U3_GAGA(y0, y2, y3, .(x0, x1), U1_ag(member_in_ag(x1)))
TURING_IN_GAGA(t(.(y0, y1), y2, y3), .(x0, x1)) → U7_GAGA(y0, y1, y3, .(x0, x1), member_out_ag(x0))
TURING_IN_GAGA(t(.(y0, y1), y2, y3), .(x0, x1)) → U7_GAGA(y0, y1, y3, .(x0, x1), U1_ag(member_in_ag(x1)))
TURING_IN_GAGA(t([], y0, y1), .(x0, x1)) → U9_GAGA(y1, .(x0, x1), member_out_ag(x0))
TURING_IN_GAGA(t([], y0, y1), .(x0, x1)) → U9_GAGA(y1, .(x0, x1), U1_ag(member_in_ag(x1)))
U3_GAGA(z0, z2, z3, .(p(x4, x5), z5), member_out_ag(p(x4, x5))) → TURING_IN_GAGA(t(.(x5, z0), z2, z3), .(p(x4, x5), z5))
U3_GAGA(z0, z2, z3, .(z4, z5), member_out_ag(p(x4, x5))) → TURING_IN_GAGA(t(.(x5, z0), z2, z3), .(z4, z5))
U5_GAGA(z0, .(p(x2, x3), z3), member_out_ag(p(x2, x3))) → TURING_IN_GAGA(t(.(x3, z0), space, []), .(p(x2, x3), z3))
U5_GAGA(z0, .(z2, z3), member_out_ag(p(x2, x3))) → TURING_IN_GAGA(t(.(x3, z0), space, []), .(z2, z3))
U7_GAGA(z0, z1, z3, .(p(x4, x5), z5), member_out_ag(p(x4, x5))) → TURING_IN_GAGA(t(z1, z0, .(x5, z3)), .(p(x4, x5), z5))
U7_GAGA(z0, z1, z3, .(z4, z5), member_out_ag(p(x4, x5))) → TURING_IN_GAGA(t(z1, z0, .(x5, z3)), .(z4, z5))
U9_GAGA(z1, .(p(x2, x3), z3), member_out_ag(p(x2, x3))) → TURING_IN_GAGA(t([], space, .(x3, z1)), .(p(x2, x3), z3))
U9_GAGA(z1, .(z2, z3), member_out_ag(p(x2, x3))) → TURING_IN_GAGA(t([], space, .(x3, z1)), .(z2, z3))
TURING_IN_GAGA(t(.(z4, z0), z1, []), .(p(z3, z4), z5)) → U5_GAGA(.(z4, z0), .(p(z3, z4), z5), member_out_ag(p(z3, z4)))
TURING_IN_GAGA(t(.(z6, z0), z1, []), .(z3, z4)) → U5_GAGA(.(z6, z0), .(z3, z4), member_out_ag(z3))
TURING_IN_GAGA(t(.(z2, z0), space, []), .(p(z1, z2), z3)) → U5_GAGA(.(z2, z0), .(p(z1, z2), z3), member_out_ag(p(z1, z2)))
TURING_IN_GAGA(t(.(z4, z0), space, []), .(z1, z2)) → U5_GAGA(.(z4, z0), .(z1, z2), member_out_ag(z1))
TURING_IN_GAGA(t(.(z4, z0), z1, []), .(p(z3, z4), z5)) → U5_GAGA(.(z4, z0), .(p(z3, z4), z5), U1_ag(member_in_ag(z5)))
TURING_IN_GAGA(t(.(z6, z0), z1, []), .(z3, z4)) → U5_GAGA(.(z6, z0), .(z3, z4), U1_ag(member_in_ag(z4)))
TURING_IN_GAGA(t(.(z2, z0), space, []), .(p(z1, z2), z3)) → U5_GAGA(.(z2, z0), .(p(z1, z2), z3), U1_ag(member_in_ag(z3)))
TURING_IN_GAGA(t(.(z4, z0), space, []), .(z1, z2)) → U5_GAGA(.(z4, z0), .(z1, z2), U1_ag(member_in_ag(z2)))
member_in_ag(.(H, L)) → member_out_ag(H)
member_in_ag(.(H, L)) → U1_ag(member_in_ag(L))
U1_ag(member_out_ag(X)) → member_out_ag(X)
member_in_ag(x0)
U1_ag(x0)
TURING_IN_GAGA(t([], z0, .(z4, z2)), .(p(z3, z4), z5)) → U9_GAGA(.(z4, z2), .(p(z3, z4), z5), member_out_ag(p(z3, z4)))
TURING_IN_GAGA(t([], z0, .(z6, z2)), .(z3, z4)) → U9_GAGA(.(z6, z2), .(z3, z4), member_out_ag(z3))
TURING_IN_GAGA(t([], space, .(z2, z0)), .(p(z1, z2), z3)) → U9_GAGA(.(z2, z0), .(p(z1, z2), z3), member_out_ag(p(z1, z2)))
TURING_IN_GAGA(t([], space, .(z4, z0)), .(z1, z2)) → U9_GAGA(.(z4, z0), .(z1, z2), member_out_ag(z1))
TURING_IN_GAGA(t(y0, y1, .(y2, y3)), .(x0, x1)) → U3_GAGA(y0, y2, y3, .(x0, x1), member_out_ag(x0))
TURING_IN_GAGA(t(y0, y1, .(y2, y3)), .(x0, x1)) → U3_GAGA(y0, y2, y3, .(x0, x1), U1_ag(member_in_ag(x1)))
TURING_IN_GAGA(t(.(y0, y1), y2, y3), .(x0, x1)) → U7_GAGA(y0, y1, y3, .(x0, x1), member_out_ag(x0))
TURING_IN_GAGA(t(.(y0, y1), y2, y3), .(x0, x1)) → U7_GAGA(y0, y1, y3, .(x0, x1), U1_ag(member_in_ag(x1)))
TURING_IN_GAGA(t([], y0, y1), .(x0, x1)) → U9_GAGA(y1, .(x0, x1), U1_ag(member_in_ag(x1)))
U3_GAGA(z0, z2, z3, .(p(x4, x5), z5), member_out_ag(p(x4, x5))) → TURING_IN_GAGA(t(.(x5, z0), z2, z3), .(p(x4, x5), z5))
U3_GAGA(z0, z2, z3, .(z4, z5), member_out_ag(p(x4, x5))) → TURING_IN_GAGA(t(.(x5, z0), z2, z3), .(z4, z5))
U5_GAGA(z0, .(p(x2, x3), z3), member_out_ag(p(x2, x3))) → TURING_IN_GAGA(t(.(x3, z0), space, []), .(p(x2, x3), z3))
U5_GAGA(z0, .(z2, z3), member_out_ag(p(x2, x3))) → TURING_IN_GAGA(t(.(x3, z0), space, []), .(z2, z3))
U7_GAGA(z0, z1, z3, .(p(x4, x5), z5), member_out_ag(p(x4, x5))) → TURING_IN_GAGA(t(z1, z0, .(x5, z3)), .(p(x4, x5), z5))
U7_GAGA(z0, z1, z3, .(z4, z5), member_out_ag(p(x4, x5))) → TURING_IN_GAGA(t(z1, z0, .(x5, z3)), .(z4, z5))
U9_GAGA(z1, .(p(x2, x3), z3), member_out_ag(p(x2, x3))) → TURING_IN_GAGA(t([], space, .(x3, z1)), .(p(x2, x3), z3))
U9_GAGA(z1, .(z2, z3), member_out_ag(p(x2, x3))) → TURING_IN_GAGA(t([], space, .(x3, z1)), .(z2, z3))
TURING_IN_GAGA(t(.(z4, z0), z1, []), .(p(z3, z4), z5)) → U5_GAGA(.(z4, z0), .(p(z3, z4), z5), member_out_ag(p(z3, z4)))
TURING_IN_GAGA(t(.(z6, z0), z1, []), .(z3, z4)) → U5_GAGA(.(z6, z0), .(z3, z4), member_out_ag(z3))
TURING_IN_GAGA(t(.(z2, z0), space, []), .(p(z1, z2), z3)) → U5_GAGA(.(z2, z0), .(p(z1, z2), z3), member_out_ag(p(z1, z2)))
TURING_IN_GAGA(t(.(z4, z0), space, []), .(z1, z2)) → U5_GAGA(.(z4, z0), .(z1, z2), member_out_ag(z1))
TURING_IN_GAGA(t(.(z4, z0), z1, []), .(p(z3, z4), z5)) → U5_GAGA(.(z4, z0), .(p(z3, z4), z5), U1_ag(member_in_ag(z5)))
TURING_IN_GAGA(t(.(z6, z0), z1, []), .(z3, z4)) → U5_GAGA(.(z6, z0), .(z3, z4), U1_ag(member_in_ag(z4)))
TURING_IN_GAGA(t(.(z2, z0), space, []), .(p(z1, z2), z3)) → U5_GAGA(.(z2, z0), .(p(z1, z2), z3), U1_ag(member_in_ag(z3)))
TURING_IN_GAGA(t(.(z4, z0), space, []), .(z1, z2)) → U5_GAGA(.(z4, z0), .(z1, z2), U1_ag(member_in_ag(z2)))
TURING_IN_GAGA(t([], z0, .(z4, z2)), .(p(z3, z4), z5)) → U9_GAGA(.(z4, z2), .(p(z3, z4), z5), member_out_ag(p(z3, z4)))
TURING_IN_GAGA(t([], z0, .(z6, z2)), .(z3, z4)) → U9_GAGA(.(z6, z2), .(z3, z4), member_out_ag(z3))
TURING_IN_GAGA(t([], space, .(z2, z0)), .(p(z1, z2), z3)) → U9_GAGA(.(z2, z0), .(p(z1, z2), z3), member_out_ag(p(z1, z2)))
TURING_IN_GAGA(t([], space, .(z4, z0)), .(z1, z2)) → U9_GAGA(.(z4, z0), .(z1, z2), member_out_ag(z1))
member_in_ag(.(H, L)) → member_out_ag(H)
member_in_ag(.(H, L)) → U1_ag(member_in_ag(L))
U1_ag(member_out_ag(X)) → member_out_ag(X)
member_in_ag(x0)
U1_ag(x0)
TURING_IN_GAGA(t([], z0, .(z4, z2)), .(p(z3, z4), z5)) → U9_GAGA(.(z4, z2), .(p(z3, z4), z5), U1_ag(member_in_ag(z5)))
TURING_IN_GAGA(t([], z0, .(z6, z2)), .(z3, z4)) → U9_GAGA(.(z6, z2), .(z3, z4), U1_ag(member_in_ag(z4)))
TURING_IN_GAGA(t([], space, .(z2, z0)), .(p(z1, z2), z3)) → U9_GAGA(.(z2, z0), .(p(z1, z2), z3), U1_ag(member_in_ag(z3)))
TURING_IN_GAGA(t([], space, .(z4, z0)), .(z1, z2)) → U9_GAGA(.(z4, z0), .(z1, z2), U1_ag(member_in_ag(z2)))
TURING_IN_GAGA(t(y0, y1, .(y2, y3)), .(x0, x1)) → U3_GAGA(y0, y2, y3, .(x0, x1), member_out_ag(x0))
TURING_IN_GAGA(t(y0, y1, .(y2, y3)), .(x0, x1)) → U3_GAGA(y0, y2, y3, .(x0, x1), U1_ag(member_in_ag(x1)))
TURING_IN_GAGA(t(.(y0, y1), y2, y3), .(x0, x1)) → U7_GAGA(y0, y1, y3, .(x0, x1), member_out_ag(x0))
TURING_IN_GAGA(t(.(y0, y1), y2, y3), .(x0, x1)) → U7_GAGA(y0, y1, y3, .(x0, x1), U1_ag(member_in_ag(x1)))
U3_GAGA(z0, z2, z3, .(p(x4, x5), z5), member_out_ag(p(x4, x5))) → TURING_IN_GAGA(t(.(x5, z0), z2, z3), .(p(x4, x5), z5))
U3_GAGA(z0, z2, z3, .(z4, z5), member_out_ag(p(x4, x5))) → TURING_IN_GAGA(t(.(x5, z0), z2, z3), .(z4, z5))
U5_GAGA(z0, .(p(x2, x3), z3), member_out_ag(p(x2, x3))) → TURING_IN_GAGA(t(.(x3, z0), space, []), .(p(x2, x3), z3))
U5_GAGA(z0, .(z2, z3), member_out_ag(p(x2, x3))) → TURING_IN_GAGA(t(.(x3, z0), space, []), .(z2, z3))
U7_GAGA(z0, z1, z3, .(p(x4, x5), z5), member_out_ag(p(x4, x5))) → TURING_IN_GAGA(t(z1, z0, .(x5, z3)), .(p(x4, x5), z5))
U7_GAGA(z0, z1, z3, .(z4, z5), member_out_ag(p(x4, x5))) → TURING_IN_GAGA(t(z1, z0, .(x5, z3)), .(z4, z5))
U9_GAGA(z1, .(p(x2, x3), z3), member_out_ag(p(x2, x3))) → TURING_IN_GAGA(t([], space, .(x3, z1)), .(p(x2, x3), z3))
U9_GAGA(z1, .(z2, z3), member_out_ag(p(x2, x3))) → TURING_IN_GAGA(t([], space, .(x3, z1)), .(z2, z3))
TURING_IN_GAGA(t(.(z4, z0), z1, []), .(p(z3, z4), z5)) → U5_GAGA(.(z4, z0), .(p(z3, z4), z5), member_out_ag(p(z3, z4)))
TURING_IN_GAGA(t(.(z6, z0), z1, []), .(z3, z4)) → U5_GAGA(.(z6, z0), .(z3, z4), member_out_ag(z3))
TURING_IN_GAGA(t(.(z2, z0), space, []), .(p(z1, z2), z3)) → U5_GAGA(.(z2, z0), .(p(z1, z2), z3), member_out_ag(p(z1, z2)))
TURING_IN_GAGA(t(.(z4, z0), space, []), .(z1, z2)) → U5_GAGA(.(z4, z0), .(z1, z2), member_out_ag(z1))
TURING_IN_GAGA(t(.(z4, z0), z1, []), .(p(z3, z4), z5)) → U5_GAGA(.(z4, z0), .(p(z3, z4), z5), U1_ag(member_in_ag(z5)))
TURING_IN_GAGA(t(.(z6, z0), z1, []), .(z3, z4)) → U5_GAGA(.(z6, z0), .(z3, z4), U1_ag(member_in_ag(z4)))
TURING_IN_GAGA(t(.(z2, z0), space, []), .(p(z1, z2), z3)) → U5_GAGA(.(z2, z0), .(p(z1, z2), z3), U1_ag(member_in_ag(z3)))
TURING_IN_GAGA(t(.(z4, z0), space, []), .(z1, z2)) → U5_GAGA(.(z4, z0), .(z1, z2), U1_ag(member_in_ag(z2)))
TURING_IN_GAGA(t([], z0, .(z4, z2)), .(p(z3, z4), z5)) → U9_GAGA(.(z4, z2), .(p(z3, z4), z5), member_out_ag(p(z3, z4)))
TURING_IN_GAGA(t([], z0, .(z6, z2)), .(z3, z4)) → U9_GAGA(.(z6, z2), .(z3, z4), member_out_ag(z3))
TURING_IN_GAGA(t([], space, .(z2, z0)), .(p(z1, z2), z3)) → U9_GAGA(.(z2, z0), .(p(z1, z2), z3), member_out_ag(p(z1, z2)))
TURING_IN_GAGA(t([], space, .(z4, z0)), .(z1, z2)) → U9_GAGA(.(z4, z0), .(z1, z2), member_out_ag(z1))
TURING_IN_GAGA(t([], z0, .(z4, z2)), .(p(z3, z4), z5)) → U9_GAGA(.(z4, z2), .(p(z3, z4), z5), U1_ag(member_in_ag(z5)))
TURING_IN_GAGA(t([], z0, .(z6, z2)), .(z3, z4)) → U9_GAGA(.(z6, z2), .(z3, z4), U1_ag(member_in_ag(z4)))
TURING_IN_GAGA(t([], space, .(z2, z0)), .(p(z1, z2), z3)) → U9_GAGA(.(z2, z0), .(p(z1, z2), z3), U1_ag(member_in_ag(z3)))
TURING_IN_GAGA(t([], space, .(z4, z0)), .(z1, z2)) → U9_GAGA(.(z4, z0), .(z1, z2), U1_ag(member_in_ag(z2)))
member_in_ag(.(H, L)) → member_out_ag(H)
member_in_ag(.(H, L)) → U1_ag(member_in_ag(L))
U1_ag(member_out_ag(X)) → member_out_ag(X)
member_in_ag(x0)
U1_ag(x0)
U5_GAGA(.(z0, z1), .(p(z3, z0), z4), member_out_ag(p(z3, z0))) → TURING_IN_GAGA(t(.(z0, .(z0, z1)), space, []), .(p(z3, z0), z4))
U5_GAGA(.(z0, z1), .(p(x1, x2), z4), member_out_ag(p(x1, x2))) → TURING_IN_GAGA(t(.(x2, .(z0, z1)), space, []), .(p(x1, x2), z4))
TURING_IN_GAGA(t(y0, y1, .(y2, y3)), .(x0, x1)) → U3_GAGA(y0, y2, y3, .(x0, x1), member_out_ag(x0))
TURING_IN_GAGA(t(y0, y1, .(y2, y3)), .(x0, x1)) → U3_GAGA(y0, y2, y3, .(x0, x1), U1_ag(member_in_ag(x1)))
TURING_IN_GAGA(t(.(y0, y1), y2, y3), .(x0, x1)) → U7_GAGA(y0, y1, y3, .(x0, x1), member_out_ag(x0))
TURING_IN_GAGA(t(.(y0, y1), y2, y3), .(x0, x1)) → U7_GAGA(y0, y1, y3, .(x0, x1), U1_ag(member_in_ag(x1)))
U3_GAGA(z0, z2, z3, .(p(x4, x5), z5), member_out_ag(p(x4, x5))) → TURING_IN_GAGA(t(.(x5, z0), z2, z3), .(p(x4, x5), z5))
U3_GAGA(z0, z2, z3, .(z4, z5), member_out_ag(p(x4, x5))) → TURING_IN_GAGA(t(.(x5, z0), z2, z3), .(z4, z5))
U5_GAGA(z0, .(z2, z3), member_out_ag(p(x2, x3))) → TURING_IN_GAGA(t(.(x3, z0), space, []), .(z2, z3))
U7_GAGA(z0, z1, z3, .(p(x4, x5), z5), member_out_ag(p(x4, x5))) → TURING_IN_GAGA(t(z1, z0, .(x5, z3)), .(p(x4, x5), z5))
U7_GAGA(z0, z1, z3, .(z4, z5), member_out_ag(p(x4, x5))) → TURING_IN_GAGA(t(z1, z0, .(x5, z3)), .(z4, z5))
U9_GAGA(z1, .(p(x2, x3), z3), member_out_ag(p(x2, x3))) → TURING_IN_GAGA(t([], space, .(x3, z1)), .(p(x2, x3), z3))
U9_GAGA(z1, .(z2, z3), member_out_ag(p(x2, x3))) → TURING_IN_GAGA(t([], space, .(x3, z1)), .(z2, z3))
TURING_IN_GAGA(t(.(z4, z0), z1, []), .(p(z3, z4), z5)) → U5_GAGA(.(z4, z0), .(p(z3, z4), z5), member_out_ag(p(z3, z4)))
TURING_IN_GAGA(t(.(z6, z0), z1, []), .(z3, z4)) → U5_GAGA(.(z6, z0), .(z3, z4), member_out_ag(z3))
TURING_IN_GAGA(t(.(z2, z0), space, []), .(p(z1, z2), z3)) → U5_GAGA(.(z2, z0), .(p(z1, z2), z3), member_out_ag(p(z1, z2)))
TURING_IN_GAGA(t(.(z4, z0), space, []), .(z1, z2)) → U5_GAGA(.(z4, z0), .(z1, z2), member_out_ag(z1))
TURING_IN_GAGA(t(.(z4, z0), z1, []), .(p(z3, z4), z5)) → U5_GAGA(.(z4, z0), .(p(z3, z4), z5), U1_ag(member_in_ag(z5)))
TURING_IN_GAGA(t(.(z6, z0), z1, []), .(z3, z4)) → U5_GAGA(.(z6, z0), .(z3, z4), U1_ag(member_in_ag(z4)))
TURING_IN_GAGA(t(.(z2, z0), space, []), .(p(z1, z2), z3)) → U5_GAGA(.(z2, z0), .(p(z1, z2), z3), U1_ag(member_in_ag(z3)))
TURING_IN_GAGA(t(.(z4, z0), space, []), .(z1, z2)) → U5_GAGA(.(z4, z0), .(z1, z2), U1_ag(member_in_ag(z2)))
TURING_IN_GAGA(t([], z0, .(z4, z2)), .(p(z3, z4), z5)) → U9_GAGA(.(z4, z2), .(p(z3, z4), z5), member_out_ag(p(z3, z4)))
TURING_IN_GAGA(t([], z0, .(z6, z2)), .(z3, z4)) → U9_GAGA(.(z6, z2), .(z3, z4), member_out_ag(z3))
TURING_IN_GAGA(t([], space, .(z2, z0)), .(p(z1, z2), z3)) → U9_GAGA(.(z2, z0), .(p(z1, z2), z3), member_out_ag(p(z1, z2)))
TURING_IN_GAGA(t([], space, .(z4, z0)), .(z1, z2)) → U9_GAGA(.(z4, z0), .(z1, z2), member_out_ag(z1))
TURING_IN_GAGA(t([], z0, .(z4, z2)), .(p(z3, z4), z5)) → U9_GAGA(.(z4, z2), .(p(z3, z4), z5), U1_ag(member_in_ag(z5)))
TURING_IN_GAGA(t([], z0, .(z6, z2)), .(z3, z4)) → U9_GAGA(.(z6, z2), .(z3, z4), U1_ag(member_in_ag(z4)))
TURING_IN_GAGA(t([], space, .(z2, z0)), .(p(z1, z2), z3)) → U9_GAGA(.(z2, z0), .(p(z1, z2), z3), U1_ag(member_in_ag(z3)))
TURING_IN_GAGA(t([], space, .(z4, z0)), .(z1, z2)) → U9_GAGA(.(z4, z0), .(z1, z2), U1_ag(member_in_ag(z2)))
U5_GAGA(.(z0, z1), .(p(z3, z0), z4), member_out_ag(p(z3, z0))) → TURING_IN_GAGA(t(.(z0, .(z0, z1)), space, []), .(p(z3, z0), z4))
U5_GAGA(.(z0, z1), .(p(x1, x2), z4), member_out_ag(p(x1, x2))) → TURING_IN_GAGA(t(.(x2, .(z0, z1)), space, []), .(p(x1, x2), z4))
member_in_ag(.(H, L)) → member_out_ag(H)
member_in_ag(.(H, L)) → U1_ag(member_in_ag(L))
U1_ag(member_out_ag(X)) → member_out_ag(X)
member_in_ag(x0)
U1_ag(x0)
U5_GAGA(.(z0, z1), .(p(z3, z0), z4), member_out_ag(p(z3, z0))) → TURING_IN_GAGA(t(.(z0, .(z0, z1)), space, []), .(p(z3, z0), z4))
U5_GAGA(.(z0, z1), .(p(x3, x4), z4), member_out_ag(p(x3, x4))) → TURING_IN_GAGA(t(.(x4, .(z0, z1)), space, []), .(p(x3, x4), z4))
U5_GAGA(.(z0, z1), .(p(z3, z0), z4), member_out_ag(p(x3, x4))) → TURING_IN_GAGA(t(.(x4, .(z0, z1)), space, []), .(p(z3, z0), z4))
U5_GAGA(.(z0, z1), .(z3, z4), member_out_ag(p(x3, x4))) → TURING_IN_GAGA(t(.(x4, .(z0, z1)), space, []), .(z3, z4))
TURING_IN_GAGA(t(y0, y1, .(y2, y3)), .(x0, x1)) → U3_GAGA(y0, y2, y3, .(x0, x1), member_out_ag(x0))
TURING_IN_GAGA(t(y0, y1, .(y2, y3)), .(x0, x1)) → U3_GAGA(y0, y2, y3, .(x0, x1), U1_ag(member_in_ag(x1)))
TURING_IN_GAGA(t(.(y0, y1), y2, y3), .(x0, x1)) → U7_GAGA(y0, y1, y3, .(x0, x1), member_out_ag(x0))
TURING_IN_GAGA(t(.(y0, y1), y2, y3), .(x0, x1)) → U7_GAGA(y0, y1, y3, .(x0, x1), U1_ag(member_in_ag(x1)))
U3_GAGA(z0, z2, z3, .(p(x4, x5), z5), member_out_ag(p(x4, x5))) → TURING_IN_GAGA(t(.(x5, z0), z2, z3), .(p(x4, x5), z5))
U3_GAGA(z0, z2, z3, .(z4, z5), member_out_ag(p(x4, x5))) → TURING_IN_GAGA(t(.(x5, z0), z2, z3), .(z4, z5))
U7_GAGA(z0, z1, z3, .(p(x4, x5), z5), member_out_ag(p(x4, x5))) → TURING_IN_GAGA(t(z1, z0, .(x5, z3)), .(p(x4, x5), z5))
U7_GAGA(z0, z1, z3, .(z4, z5), member_out_ag(p(x4, x5))) → TURING_IN_GAGA(t(z1, z0, .(x5, z3)), .(z4, z5))
U9_GAGA(z1, .(p(x2, x3), z3), member_out_ag(p(x2, x3))) → TURING_IN_GAGA(t([], space, .(x3, z1)), .(p(x2, x3), z3))
U9_GAGA(z1, .(z2, z3), member_out_ag(p(x2, x3))) → TURING_IN_GAGA(t([], space, .(x3, z1)), .(z2, z3))
TURING_IN_GAGA(t(.(z4, z0), z1, []), .(p(z3, z4), z5)) → U5_GAGA(.(z4, z0), .(p(z3, z4), z5), member_out_ag(p(z3, z4)))
TURING_IN_GAGA(t(.(z6, z0), z1, []), .(z3, z4)) → U5_GAGA(.(z6, z0), .(z3, z4), member_out_ag(z3))
TURING_IN_GAGA(t(.(z2, z0), space, []), .(p(z1, z2), z3)) → U5_GAGA(.(z2, z0), .(p(z1, z2), z3), member_out_ag(p(z1, z2)))
TURING_IN_GAGA(t(.(z4, z0), space, []), .(z1, z2)) → U5_GAGA(.(z4, z0), .(z1, z2), member_out_ag(z1))
TURING_IN_GAGA(t(.(z4, z0), z1, []), .(p(z3, z4), z5)) → U5_GAGA(.(z4, z0), .(p(z3, z4), z5), U1_ag(member_in_ag(z5)))
TURING_IN_GAGA(t(.(z6, z0), z1, []), .(z3, z4)) → U5_GAGA(.(z6, z0), .(z3, z4), U1_ag(member_in_ag(z4)))
TURING_IN_GAGA(t(.(z2, z0), space, []), .(p(z1, z2), z3)) → U5_GAGA(.(z2, z0), .(p(z1, z2), z3), U1_ag(member_in_ag(z3)))
TURING_IN_GAGA(t(.(z4, z0), space, []), .(z1, z2)) → U5_GAGA(.(z4, z0), .(z1, z2), U1_ag(member_in_ag(z2)))
TURING_IN_GAGA(t([], z0, .(z4, z2)), .(p(z3, z4), z5)) → U9_GAGA(.(z4, z2), .(p(z3, z4), z5), member_out_ag(p(z3, z4)))
TURING_IN_GAGA(t([], z0, .(z6, z2)), .(z3, z4)) → U9_GAGA(.(z6, z2), .(z3, z4), member_out_ag(z3))
TURING_IN_GAGA(t([], space, .(z2, z0)), .(p(z1, z2), z3)) → U9_GAGA(.(z2, z0), .(p(z1, z2), z3), member_out_ag(p(z1, z2)))
TURING_IN_GAGA(t([], space, .(z4, z0)), .(z1, z2)) → U9_GAGA(.(z4, z0), .(z1, z2), member_out_ag(z1))
TURING_IN_GAGA(t([], z0, .(z4, z2)), .(p(z3, z4), z5)) → U9_GAGA(.(z4, z2), .(p(z3, z4), z5), U1_ag(member_in_ag(z5)))
TURING_IN_GAGA(t([], z0, .(z6, z2)), .(z3, z4)) → U9_GAGA(.(z6, z2), .(z3, z4), U1_ag(member_in_ag(z4)))
TURING_IN_GAGA(t([], space, .(z2, z0)), .(p(z1, z2), z3)) → U9_GAGA(.(z2, z0), .(p(z1, z2), z3), U1_ag(member_in_ag(z3)))
TURING_IN_GAGA(t([], space, .(z4, z0)), .(z1, z2)) → U9_GAGA(.(z4, z0), .(z1, z2), U1_ag(member_in_ag(z2)))
U5_GAGA(.(z0, z1), .(p(z3, z0), z4), member_out_ag(p(z3, z0))) → TURING_IN_GAGA(t(.(z0, .(z0, z1)), space, []), .(p(z3, z0), z4))
U5_GAGA(.(z0, z1), .(p(x1, x2), z4), member_out_ag(p(x1, x2))) → TURING_IN_GAGA(t(.(x2, .(z0, z1)), space, []), .(p(x1, x2), z4))
U5_GAGA(.(z0, z1), .(p(z3, z0), z4), member_out_ag(p(x3, x4))) → TURING_IN_GAGA(t(.(x4, .(z0, z1)), space, []), .(p(z3, z0), z4))
U5_GAGA(.(z0, z1), .(z3, z4), member_out_ag(p(x3, x4))) → TURING_IN_GAGA(t(.(x4, .(z0, z1)), space, []), .(z3, z4))
member_in_ag(.(H, L)) → member_out_ag(H)
member_in_ag(.(H, L)) → U1_ag(member_in_ag(L))
U1_ag(member_out_ag(X)) → member_out_ag(X)
member_in_ag(x0)
U1_ag(x0)
U9_GAGA(.(z1, z2), .(p(z3, z1), z4), member_out_ag(p(z3, z1))) → TURING_IN_GAGA(t([], space, .(z1, .(z1, z2))), .(p(z3, z1), z4))
U9_GAGA(.(z1, z2), .(p(x1, x2), z4), member_out_ag(p(x1, x2))) → TURING_IN_GAGA(t([], space, .(x2, .(z1, z2))), .(p(x1, x2), z4))
TURING_IN_GAGA(t(y0, y1, .(y2, y3)), .(x0, x1)) → U3_GAGA(y0, y2, y3, .(x0, x1), member_out_ag(x0))
TURING_IN_GAGA(t(y0, y1, .(y2, y3)), .(x0, x1)) → U3_GAGA(y0, y2, y3, .(x0, x1), U1_ag(member_in_ag(x1)))
TURING_IN_GAGA(t(.(y0, y1), y2, y3), .(x0, x1)) → U7_GAGA(y0, y1, y3, .(x0, x1), member_out_ag(x0))
TURING_IN_GAGA(t(.(y0, y1), y2, y3), .(x0, x1)) → U7_GAGA(y0, y1, y3, .(x0, x1), U1_ag(member_in_ag(x1)))
U3_GAGA(z0, z2, z3, .(p(x4, x5), z5), member_out_ag(p(x4, x5))) → TURING_IN_GAGA(t(.(x5, z0), z2, z3), .(p(x4, x5), z5))
U3_GAGA(z0, z2, z3, .(z4, z5), member_out_ag(p(x4, x5))) → TURING_IN_GAGA(t(.(x5, z0), z2, z3), .(z4, z5))
U7_GAGA(z0, z1, z3, .(p(x4, x5), z5), member_out_ag(p(x4, x5))) → TURING_IN_GAGA(t(z1, z0, .(x5, z3)), .(p(x4, x5), z5))
U7_GAGA(z0, z1, z3, .(z4, z5), member_out_ag(p(x4, x5))) → TURING_IN_GAGA(t(z1, z0, .(x5, z3)), .(z4, z5))
U9_GAGA(z1, .(z2, z3), member_out_ag(p(x2, x3))) → TURING_IN_GAGA(t([], space, .(x3, z1)), .(z2, z3))
TURING_IN_GAGA(t(.(z4, z0), z1, []), .(p(z3, z4), z5)) → U5_GAGA(.(z4, z0), .(p(z3, z4), z5), member_out_ag(p(z3, z4)))
TURING_IN_GAGA(t(.(z6, z0), z1, []), .(z3, z4)) → U5_GAGA(.(z6, z0), .(z3, z4), member_out_ag(z3))
TURING_IN_GAGA(t(.(z2, z0), space, []), .(p(z1, z2), z3)) → U5_GAGA(.(z2, z0), .(p(z1, z2), z3), member_out_ag(p(z1, z2)))
TURING_IN_GAGA(t(.(z4, z0), space, []), .(z1, z2)) → U5_GAGA(.(z4, z0), .(z1, z2), member_out_ag(z1))
TURING_IN_GAGA(t(.(z4, z0), z1, []), .(p(z3, z4), z5)) → U5_GAGA(.(z4, z0), .(p(z3, z4), z5), U1_ag(member_in_ag(z5)))
TURING_IN_GAGA(t(.(z6, z0), z1, []), .(z3, z4)) → U5_GAGA(.(z6, z0), .(z3, z4), U1_ag(member_in_ag(z4)))
TURING_IN_GAGA(t(.(z2, z0), space, []), .(p(z1, z2), z3)) → U5_GAGA(.(z2, z0), .(p(z1, z2), z3), U1_ag(member_in_ag(z3)))
TURING_IN_GAGA(t(.(z4, z0), space, []), .(z1, z2)) → U5_GAGA(.(z4, z0), .(z1, z2), U1_ag(member_in_ag(z2)))
TURING_IN_GAGA(t([], z0, .(z4, z2)), .(p(z3, z4), z5)) → U9_GAGA(.(z4, z2), .(p(z3, z4), z5), member_out_ag(p(z3, z4)))
TURING_IN_GAGA(t([], z0, .(z6, z2)), .(z3, z4)) → U9_GAGA(.(z6, z2), .(z3, z4), member_out_ag(z3))
TURING_IN_GAGA(t([], space, .(z2, z0)), .(p(z1, z2), z3)) → U9_GAGA(.(z2, z0), .(p(z1, z2), z3), member_out_ag(p(z1, z2)))
TURING_IN_GAGA(t([], space, .(z4, z0)), .(z1, z2)) → U9_GAGA(.(z4, z0), .(z1, z2), member_out_ag(z1))
TURING_IN_GAGA(t([], z0, .(z4, z2)), .(p(z3, z4), z5)) → U9_GAGA(.(z4, z2), .(p(z3, z4), z5), U1_ag(member_in_ag(z5)))
TURING_IN_GAGA(t([], z0, .(z6, z2)), .(z3, z4)) → U9_GAGA(.(z6, z2), .(z3, z4), U1_ag(member_in_ag(z4)))
TURING_IN_GAGA(t([], space, .(z2, z0)), .(p(z1, z2), z3)) → U9_GAGA(.(z2, z0), .(p(z1, z2), z3), U1_ag(member_in_ag(z3)))
TURING_IN_GAGA(t([], space, .(z4, z0)), .(z1, z2)) → U9_GAGA(.(z4, z0), .(z1, z2), U1_ag(member_in_ag(z2)))
U5_GAGA(.(z0, z1), .(p(z3, z0), z4), member_out_ag(p(z3, z0))) → TURING_IN_GAGA(t(.(z0, .(z0, z1)), space, []), .(p(z3, z0), z4))
U5_GAGA(.(z0, z1), .(p(x1, x2), z4), member_out_ag(p(x1, x2))) → TURING_IN_GAGA(t(.(x2, .(z0, z1)), space, []), .(p(x1, x2), z4))
U5_GAGA(.(z0, z1), .(p(z3, z0), z4), member_out_ag(p(x3, x4))) → TURING_IN_GAGA(t(.(x4, .(z0, z1)), space, []), .(p(z3, z0), z4))
U5_GAGA(.(z0, z1), .(z3, z4), member_out_ag(p(x3, x4))) → TURING_IN_GAGA(t(.(x4, .(z0, z1)), space, []), .(z3, z4))
U9_GAGA(.(z1, z2), .(p(z3, z1), z4), member_out_ag(p(z3, z1))) → TURING_IN_GAGA(t([], space, .(z1, .(z1, z2))), .(p(z3, z1), z4))
U9_GAGA(.(z1, z2), .(p(x1, x2), z4), member_out_ag(p(x1, x2))) → TURING_IN_GAGA(t([], space, .(x2, .(z1, z2))), .(p(x1, x2), z4))
member_in_ag(.(H, L)) → member_out_ag(H)
member_in_ag(.(H, L)) → U1_ag(member_in_ag(L))
U1_ag(member_out_ag(X)) → member_out_ag(X)
member_in_ag(x0)
U1_ag(x0)
U9_GAGA(.(z1, z2), .(p(z3, z1), z4), member_out_ag(p(z3, z1))) → TURING_IN_GAGA(t([], space, .(z1, .(z1, z2))), .(p(z3, z1), z4))
U9_GAGA(.(z1, z2), .(p(x3, x4), z4), member_out_ag(p(x3, x4))) → TURING_IN_GAGA(t([], space, .(x4, .(z1, z2))), .(p(x3, x4), z4))
U9_GAGA(.(z1, z2), .(p(z3, z1), z4), member_out_ag(p(x3, x4))) → TURING_IN_GAGA(t([], space, .(x4, .(z1, z2))), .(p(z3, z1), z4))
U9_GAGA(.(z1, z2), .(z3, z4), member_out_ag(p(x3, x4))) → TURING_IN_GAGA(t([], space, .(x4, .(z1, z2))), .(z3, z4))
TURING_IN_GAGA(t(y0, y1, .(y2, y3)), .(x0, x1)) → U3_GAGA(y0, y2, y3, .(x0, x1), member_out_ag(x0))
TURING_IN_GAGA(t(y0, y1, .(y2, y3)), .(x0, x1)) → U3_GAGA(y0, y2, y3, .(x0, x1), U1_ag(member_in_ag(x1)))
TURING_IN_GAGA(t(.(y0, y1), y2, y3), .(x0, x1)) → U7_GAGA(y0, y1, y3, .(x0, x1), member_out_ag(x0))
TURING_IN_GAGA(t(.(y0, y1), y2, y3), .(x0, x1)) → U7_GAGA(y0, y1, y3, .(x0, x1), U1_ag(member_in_ag(x1)))
U3_GAGA(z0, z2, z3, .(p(x4, x5), z5), member_out_ag(p(x4, x5))) → TURING_IN_GAGA(t(.(x5, z0), z2, z3), .(p(x4, x5), z5))
U3_GAGA(z0, z2, z3, .(z4, z5), member_out_ag(p(x4, x5))) → TURING_IN_GAGA(t(.(x5, z0), z2, z3), .(z4, z5))
U7_GAGA(z0, z1, z3, .(p(x4, x5), z5), member_out_ag(p(x4, x5))) → TURING_IN_GAGA(t(z1, z0, .(x5, z3)), .(p(x4, x5), z5))
U7_GAGA(z0, z1, z3, .(z4, z5), member_out_ag(p(x4, x5))) → TURING_IN_GAGA(t(z1, z0, .(x5, z3)), .(z4, z5))
TURING_IN_GAGA(t(.(z4, z0), z1, []), .(p(z3, z4), z5)) → U5_GAGA(.(z4, z0), .(p(z3, z4), z5), member_out_ag(p(z3, z4)))
TURING_IN_GAGA(t(.(z6, z0), z1, []), .(z3, z4)) → U5_GAGA(.(z6, z0), .(z3, z4), member_out_ag(z3))
TURING_IN_GAGA(t(.(z2, z0), space, []), .(p(z1, z2), z3)) → U5_GAGA(.(z2, z0), .(p(z1, z2), z3), member_out_ag(p(z1, z2)))
TURING_IN_GAGA(t(.(z4, z0), space, []), .(z1, z2)) → U5_GAGA(.(z4, z0), .(z1, z2), member_out_ag(z1))
TURING_IN_GAGA(t(.(z4, z0), z1, []), .(p(z3, z4), z5)) → U5_GAGA(.(z4, z0), .(p(z3, z4), z5), U1_ag(member_in_ag(z5)))
TURING_IN_GAGA(t(.(z6, z0), z1, []), .(z3, z4)) → U5_GAGA(.(z6, z0), .(z3, z4), U1_ag(member_in_ag(z4)))
TURING_IN_GAGA(t(.(z2, z0), space, []), .(p(z1, z2), z3)) → U5_GAGA(.(z2, z0), .(p(z1, z2), z3), U1_ag(member_in_ag(z3)))
TURING_IN_GAGA(t(.(z4, z0), space, []), .(z1, z2)) → U5_GAGA(.(z4, z0), .(z1, z2), U1_ag(member_in_ag(z2)))
TURING_IN_GAGA(t([], z0, .(z4, z2)), .(p(z3, z4), z5)) → U9_GAGA(.(z4, z2), .(p(z3, z4), z5), member_out_ag(p(z3, z4)))
TURING_IN_GAGA(t([], z0, .(z6, z2)), .(z3, z4)) → U9_GAGA(.(z6, z2), .(z3, z4), member_out_ag(z3))
TURING_IN_GAGA(t([], space, .(z2, z0)), .(p(z1, z2), z3)) → U9_GAGA(.(z2, z0), .(p(z1, z2), z3), member_out_ag(p(z1, z2)))
TURING_IN_GAGA(t([], space, .(z4, z0)), .(z1, z2)) → U9_GAGA(.(z4, z0), .(z1, z2), member_out_ag(z1))
TURING_IN_GAGA(t([], z0, .(z4, z2)), .(p(z3, z4), z5)) → U9_GAGA(.(z4, z2), .(p(z3, z4), z5), U1_ag(member_in_ag(z5)))
TURING_IN_GAGA(t([], z0, .(z6, z2)), .(z3, z4)) → U9_GAGA(.(z6, z2), .(z3, z4), U1_ag(member_in_ag(z4)))
TURING_IN_GAGA(t([], space, .(z2, z0)), .(p(z1, z2), z3)) → U9_GAGA(.(z2, z0), .(p(z1, z2), z3), U1_ag(member_in_ag(z3)))
TURING_IN_GAGA(t([], space, .(z4, z0)), .(z1, z2)) → U9_GAGA(.(z4, z0), .(z1, z2), U1_ag(member_in_ag(z2)))
U5_GAGA(.(z0, z1), .(p(z3, z0), z4), member_out_ag(p(z3, z0))) → TURING_IN_GAGA(t(.(z0, .(z0, z1)), space, []), .(p(z3, z0), z4))
U5_GAGA(.(z0, z1), .(p(x1, x2), z4), member_out_ag(p(x1, x2))) → TURING_IN_GAGA(t(.(x2, .(z0, z1)), space, []), .(p(x1, x2), z4))
U5_GAGA(.(z0, z1), .(p(z3, z0), z4), member_out_ag(p(x3, x4))) → TURING_IN_GAGA(t(.(x4, .(z0, z1)), space, []), .(p(z3, z0), z4))
U5_GAGA(.(z0, z1), .(z3, z4), member_out_ag(p(x3, x4))) → TURING_IN_GAGA(t(.(x4, .(z0, z1)), space, []), .(z3, z4))
U9_GAGA(.(z1, z2), .(p(z3, z1), z4), member_out_ag(p(z3, z1))) → TURING_IN_GAGA(t([], space, .(z1, .(z1, z2))), .(p(z3, z1), z4))
U9_GAGA(.(z1, z2), .(p(x1, x2), z4), member_out_ag(p(x1, x2))) → TURING_IN_GAGA(t([], space, .(x2, .(z1, z2))), .(p(x1, x2), z4))
U9_GAGA(.(z1, z2), .(p(z3, z1), z4), member_out_ag(p(x3, x4))) → TURING_IN_GAGA(t([], space, .(x4, .(z1, z2))), .(p(z3, z1), z4))
U9_GAGA(.(z1, z2), .(z3, z4), member_out_ag(p(x3, x4))) → TURING_IN_GAGA(t([], space, .(x4, .(z1, z2))), .(z3, z4))
member_in_ag(.(H, L)) → member_out_ag(H)
member_in_ag(.(H, L)) → U1_ag(member_in_ag(L))
U1_ag(member_out_ag(X)) → member_out_ag(X)
member_in_ag(x0)
U1_ag(x0)
TURING_IN_GAGA(t(x0, x1, .(x2, x3)), .(p(y_3, y_4), x5)) → U3_GAGA(x0, x2, x3, .(p(y_3, y_4), x5), member_out_ag(p(y_3, y_4)))
TURING_IN_GAGA(t(y0, y1, .(y2, y3)), .(x0, x1)) → U3_GAGA(y0, y2, y3, .(x0, x1), U1_ag(member_in_ag(x1)))
TURING_IN_GAGA(t(.(y0, y1), y2, y3), .(x0, x1)) → U7_GAGA(y0, y1, y3, .(x0, x1), member_out_ag(x0))
TURING_IN_GAGA(t(.(y0, y1), y2, y3), .(x0, x1)) → U7_GAGA(y0, y1, y3, .(x0, x1), U1_ag(member_in_ag(x1)))
U3_GAGA(z0, z2, z3, .(p(x4, x5), z5), member_out_ag(p(x4, x5))) → TURING_IN_GAGA(t(.(x5, z0), z2, z3), .(p(x4, x5), z5))
U3_GAGA(z0, z2, z3, .(z4, z5), member_out_ag(p(x4, x5))) → TURING_IN_GAGA(t(.(x5, z0), z2, z3), .(z4, z5))
U7_GAGA(z0, z1, z3, .(p(x4, x5), z5), member_out_ag(p(x4, x5))) → TURING_IN_GAGA(t(z1, z0, .(x5, z3)), .(p(x4, x5), z5))
U7_GAGA(z0, z1, z3, .(z4, z5), member_out_ag(p(x4, x5))) → TURING_IN_GAGA(t(z1, z0, .(x5, z3)), .(z4, z5))
TURING_IN_GAGA(t(.(z4, z0), z1, []), .(p(z3, z4), z5)) → U5_GAGA(.(z4, z0), .(p(z3, z4), z5), member_out_ag(p(z3, z4)))
TURING_IN_GAGA(t(.(z6, z0), z1, []), .(z3, z4)) → U5_GAGA(.(z6, z0), .(z3, z4), member_out_ag(z3))
TURING_IN_GAGA(t(.(z2, z0), space, []), .(p(z1, z2), z3)) → U5_GAGA(.(z2, z0), .(p(z1, z2), z3), member_out_ag(p(z1, z2)))
TURING_IN_GAGA(t(.(z4, z0), space, []), .(z1, z2)) → U5_GAGA(.(z4, z0), .(z1, z2), member_out_ag(z1))
TURING_IN_GAGA(t(.(z4, z0), z1, []), .(p(z3, z4), z5)) → U5_GAGA(.(z4, z0), .(p(z3, z4), z5), U1_ag(member_in_ag(z5)))
TURING_IN_GAGA(t(.(z6, z0), z1, []), .(z3, z4)) → U5_GAGA(.(z6, z0), .(z3, z4), U1_ag(member_in_ag(z4)))
TURING_IN_GAGA(t(.(z2, z0), space, []), .(p(z1, z2), z3)) → U5_GAGA(.(z2, z0), .(p(z1, z2), z3), U1_ag(member_in_ag(z3)))
TURING_IN_GAGA(t(.(z4, z0), space, []), .(z1, z2)) → U5_GAGA(.(z4, z0), .(z1, z2), U1_ag(member_in_ag(z2)))
TURING_IN_GAGA(t([], z0, .(z4, z2)), .(p(z3, z4), z5)) → U9_GAGA(.(z4, z2), .(p(z3, z4), z5), member_out_ag(p(z3, z4)))
TURING_IN_GAGA(t([], z0, .(z6, z2)), .(z3, z4)) → U9_GAGA(.(z6, z2), .(z3, z4), member_out_ag(z3))
TURING_IN_GAGA(t([], space, .(z2, z0)), .(p(z1, z2), z3)) → U9_GAGA(.(z2, z0), .(p(z1, z2), z3), member_out_ag(p(z1, z2)))
TURING_IN_GAGA(t([], space, .(z4, z0)), .(z1, z2)) → U9_GAGA(.(z4, z0), .(z1, z2), member_out_ag(z1))
TURING_IN_GAGA(t([], z0, .(z4, z2)), .(p(z3, z4), z5)) → U9_GAGA(.(z4, z2), .(p(z3, z4), z5), U1_ag(member_in_ag(z5)))
TURING_IN_GAGA(t([], z0, .(z6, z2)), .(z3, z4)) → U9_GAGA(.(z6, z2), .(z3, z4), U1_ag(member_in_ag(z4)))
TURING_IN_GAGA(t([], space, .(z2, z0)), .(p(z1, z2), z3)) → U9_GAGA(.(z2, z0), .(p(z1, z2), z3), U1_ag(member_in_ag(z3)))
TURING_IN_GAGA(t([], space, .(z4, z0)), .(z1, z2)) → U9_GAGA(.(z4, z0), .(z1, z2), U1_ag(member_in_ag(z2)))
U5_GAGA(.(z0, z1), .(p(z3, z0), z4), member_out_ag(p(z3, z0))) → TURING_IN_GAGA(t(.(z0, .(z0, z1)), space, []), .(p(z3, z0), z4))
U5_GAGA(.(z0, z1), .(p(x1, x2), z4), member_out_ag(p(x1, x2))) → TURING_IN_GAGA(t(.(x2, .(z0, z1)), space, []), .(p(x1, x2), z4))
U5_GAGA(.(z0, z1), .(p(z3, z0), z4), member_out_ag(p(x3, x4))) → TURING_IN_GAGA(t(.(x4, .(z0, z1)), space, []), .(p(z3, z0), z4))
U5_GAGA(.(z0, z1), .(z3, z4), member_out_ag(p(x3, x4))) → TURING_IN_GAGA(t(.(x4, .(z0, z1)), space, []), .(z3, z4))
U9_GAGA(.(z1, z2), .(p(z3, z1), z4), member_out_ag(p(z3, z1))) → TURING_IN_GAGA(t([], space, .(z1, .(z1, z2))), .(p(z3, z1), z4))
U9_GAGA(.(z1, z2), .(p(x1, x2), z4), member_out_ag(p(x1, x2))) → TURING_IN_GAGA(t([], space, .(x2, .(z1, z2))), .(p(x1, x2), z4))
U9_GAGA(.(z1, z2), .(p(z3, z1), z4), member_out_ag(p(x3, x4))) → TURING_IN_GAGA(t([], space, .(x4, .(z1, z2))), .(p(z3, z1), z4))
U9_GAGA(.(z1, z2), .(z3, z4), member_out_ag(p(x3, x4))) → TURING_IN_GAGA(t([], space, .(x4, .(z1, z2))), .(z3, z4))
TURING_IN_GAGA(t(x0, x1, .(x2, x3)), .(p(y_3, y_4), x5)) → U3_GAGA(x0, x2, x3, .(p(y_3, y_4), x5), member_out_ag(p(y_3, y_4)))
member_in_ag(.(H, L)) → member_out_ag(H)
member_in_ag(.(H, L)) → U1_ag(member_in_ag(L))
U1_ag(member_out_ag(X)) → member_out_ag(X)
member_in_ag(x0)
U1_ag(x0)
TURING_IN_GAGA(t(.(x0, x1), x2, x3), .(p(y_3, y_4), x5)) → U7_GAGA(x0, x1, x3, .(p(y_3, y_4), x5), member_out_ag(p(y_3, y_4)))
TURING_IN_GAGA(t(y0, y1, .(y2, y3)), .(x0, x1)) → U3_GAGA(y0, y2, y3, .(x0, x1), U1_ag(member_in_ag(x1)))
TURING_IN_GAGA(t(.(y0, y1), y2, y3), .(x0, x1)) → U7_GAGA(y0, y1, y3, .(x0, x1), U1_ag(member_in_ag(x1)))
U3_GAGA(z0, z2, z3, .(p(x4, x5), z5), member_out_ag(p(x4, x5))) → TURING_IN_GAGA(t(.(x5, z0), z2, z3), .(p(x4, x5), z5))
U3_GAGA(z0, z2, z3, .(z4, z5), member_out_ag(p(x4, x5))) → TURING_IN_GAGA(t(.(x5, z0), z2, z3), .(z4, z5))
U7_GAGA(z0, z1, z3, .(p(x4, x5), z5), member_out_ag(p(x4, x5))) → TURING_IN_GAGA(t(z1, z0, .(x5, z3)), .(p(x4, x5), z5))
U7_GAGA(z0, z1, z3, .(z4, z5), member_out_ag(p(x4, x5))) → TURING_IN_GAGA(t(z1, z0, .(x5, z3)), .(z4, z5))
TURING_IN_GAGA(t(.(z4, z0), z1, []), .(p(z3, z4), z5)) → U5_GAGA(.(z4, z0), .(p(z3, z4), z5), member_out_ag(p(z3, z4)))
TURING_IN_GAGA(t(.(z6, z0), z1, []), .(z3, z4)) → U5_GAGA(.(z6, z0), .(z3, z4), member_out_ag(z3))
TURING_IN_GAGA(t(.(z2, z0), space, []), .(p(z1, z2), z3)) → U5_GAGA(.(z2, z0), .(p(z1, z2), z3), member_out_ag(p(z1, z2)))
TURING_IN_GAGA(t(.(z4, z0), space, []), .(z1, z2)) → U5_GAGA(.(z4, z0), .(z1, z2), member_out_ag(z1))
TURING_IN_GAGA(t(.(z4, z0), z1, []), .(p(z3, z4), z5)) → U5_GAGA(.(z4, z0), .(p(z3, z4), z5), U1_ag(member_in_ag(z5)))
TURING_IN_GAGA(t(.(z6, z0), z1, []), .(z3, z4)) → U5_GAGA(.(z6, z0), .(z3, z4), U1_ag(member_in_ag(z4)))
TURING_IN_GAGA(t(.(z2, z0), space, []), .(p(z1, z2), z3)) → U5_GAGA(.(z2, z0), .(p(z1, z2), z3), U1_ag(member_in_ag(z3)))
TURING_IN_GAGA(t(.(z4, z0), space, []), .(z1, z2)) → U5_GAGA(.(z4, z0), .(z1, z2), U1_ag(member_in_ag(z2)))
TURING_IN_GAGA(t([], z0, .(z4, z2)), .(p(z3, z4), z5)) → U9_GAGA(.(z4, z2), .(p(z3, z4), z5), member_out_ag(p(z3, z4)))
TURING_IN_GAGA(t([], z0, .(z6, z2)), .(z3, z4)) → U9_GAGA(.(z6, z2), .(z3, z4), member_out_ag(z3))
TURING_IN_GAGA(t([], space, .(z2, z0)), .(p(z1, z2), z3)) → U9_GAGA(.(z2, z0), .(p(z1, z2), z3), member_out_ag(p(z1, z2)))
TURING_IN_GAGA(t([], space, .(z4, z0)), .(z1, z2)) → U9_GAGA(.(z4, z0), .(z1, z2), member_out_ag(z1))
TURING_IN_GAGA(t([], z0, .(z4, z2)), .(p(z3, z4), z5)) → U9_GAGA(.(z4, z2), .(p(z3, z4), z5), U1_ag(member_in_ag(z5)))
TURING_IN_GAGA(t([], z0, .(z6, z2)), .(z3, z4)) → U9_GAGA(.(z6, z2), .(z3, z4), U1_ag(member_in_ag(z4)))
TURING_IN_GAGA(t([], space, .(z2, z0)), .(p(z1, z2), z3)) → U9_GAGA(.(z2, z0), .(p(z1, z2), z3), U1_ag(member_in_ag(z3)))
TURING_IN_GAGA(t([], space, .(z4, z0)), .(z1, z2)) → U9_GAGA(.(z4, z0), .(z1, z2), U1_ag(member_in_ag(z2)))
U5_GAGA(.(z0, z1), .(p(z3, z0), z4), member_out_ag(p(z3, z0))) → TURING_IN_GAGA(t(.(z0, .(z0, z1)), space, []), .(p(z3, z0), z4))
U5_GAGA(.(z0, z1), .(p(x1, x2), z4), member_out_ag(p(x1, x2))) → TURING_IN_GAGA(t(.(x2, .(z0, z1)), space, []), .(p(x1, x2), z4))
U5_GAGA(.(z0, z1), .(p(z3, z0), z4), member_out_ag(p(x3, x4))) → TURING_IN_GAGA(t(.(x4, .(z0, z1)), space, []), .(p(z3, z0), z4))
U5_GAGA(.(z0, z1), .(z3, z4), member_out_ag(p(x3, x4))) → TURING_IN_GAGA(t(.(x4, .(z0, z1)), space, []), .(z3, z4))
U9_GAGA(.(z1, z2), .(p(z3, z1), z4), member_out_ag(p(z3, z1))) → TURING_IN_GAGA(t([], space, .(z1, .(z1, z2))), .(p(z3, z1), z4))
U9_GAGA(.(z1, z2), .(p(x1, x2), z4), member_out_ag(p(x1, x2))) → TURING_IN_GAGA(t([], space, .(x2, .(z1, z2))), .(p(x1, x2), z4))
U9_GAGA(.(z1, z2), .(p(z3, z1), z4), member_out_ag(p(x3, x4))) → TURING_IN_GAGA(t([], space, .(x4, .(z1, z2))), .(p(z3, z1), z4))
U9_GAGA(.(z1, z2), .(z3, z4), member_out_ag(p(x3, x4))) → TURING_IN_GAGA(t([], space, .(x4, .(z1, z2))), .(z3, z4))
TURING_IN_GAGA(t(x0, x1, .(x2, x3)), .(p(y_3, y_4), x5)) → U3_GAGA(x0, x2, x3, .(p(y_3, y_4), x5), member_out_ag(p(y_3, y_4)))
TURING_IN_GAGA(t(.(x0, x1), x2, x3), .(p(y_3, y_4), x5)) → U7_GAGA(x0, x1, x3, .(p(y_3, y_4), x5), member_out_ag(p(y_3, y_4)))
member_in_ag(.(H, L)) → member_out_ag(H)
member_in_ag(.(H, L)) → U1_ag(member_in_ag(L))
U1_ag(member_out_ag(X)) → member_out_ag(X)
member_in_ag(x0)
U1_ag(x0)
TURING_IN_GAGA(t(.(x0, x1), x2, []), .(p(y_2, y_3), x4)) → U5_GAGA(.(x0, x1), .(p(y_2, y_3), x4), member_out_ag(p(y_2, y_3)))
TURING_IN_GAGA(t(y0, y1, .(y2, y3)), .(x0, x1)) → U3_GAGA(y0, y2, y3, .(x0, x1), U1_ag(member_in_ag(x1)))
TURING_IN_GAGA(t(.(y0, y1), y2, y3), .(x0, x1)) → U7_GAGA(y0, y1, y3, .(x0, x1), U1_ag(member_in_ag(x1)))
U3_GAGA(z0, z2, z3, .(p(x4, x5), z5), member_out_ag(p(x4, x5))) → TURING_IN_GAGA(t(.(x5, z0), z2, z3), .(p(x4, x5), z5))
U3_GAGA(z0, z2, z3, .(z4, z5), member_out_ag(p(x4, x5))) → TURING_IN_GAGA(t(.(x5, z0), z2, z3), .(z4, z5))
U7_GAGA(z0, z1, z3, .(p(x4, x5), z5), member_out_ag(p(x4, x5))) → TURING_IN_GAGA(t(z1, z0, .(x5, z3)), .(p(x4, x5), z5))
U7_GAGA(z0, z1, z3, .(z4, z5), member_out_ag(p(x4, x5))) → TURING_IN_GAGA(t(z1, z0, .(x5, z3)), .(z4, z5))
TURING_IN_GAGA(t(.(z4, z0), z1, []), .(p(z3, z4), z5)) → U5_GAGA(.(z4, z0), .(p(z3, z4), z5), member_out_ag(p(z3, z4)))
TURING_IN_GAGA(t(.(z2, z0), space, []), .(p(z1, z2), z3)) → U5_GAGA(.(z2, z0), .(p(z1, z2), z3), member_out_ag(p(z1, z2)))
TURING_IN_GAGA(t(.(z4, z0), space, []), .(z1, z2)) → U5_GAGA(.(z4, z0), .(z1, z2), member_out_ag(z1))
TURING_IN_GAGA(t(.(z4, z0), z1, []), .(p(z3, z4), z5)) → U5_GAGA(.(z4, z0), .(p(z3, z4), z5), U1_ag(member_in_ag(z5)))
TURING_IN_GAGA(t(.(z6, z0), z1, []), .(z3, z4)) → U5_GAGA(.(z6, z0), .(z3, z4), U1_ag(member_in_ag(z4)))
TURING_IN_GAGA(t(.(z2, z0), space, []), .(p(z1, z2), z3)) → U5_GAGA(.(z2, z0), .(p(z1, z2), z3), U1_ag(member_in_ag(z3)))
TURING_IN_GAGA(t(.(z4, z0), space, []), .(z1, z2)) → U5_GAGA(.(z4, z0), .(z1, z2), U1_ag(member_in_ag(z2)))
TURING_IN_GAGA(t([], z0, .(z4, z2)), .(p(z3, z4), z5)) → U9_GAGA(.(z4, z2), .(p(z3, z4), z5), member_out_ag(p(z3, z4)))
TURING_IN_GAGA(t([], z0, .(z6, z2)), .(z3, z4)) → U9_GAGA(.(z6, z2), .(z3, z4), member_out_ag(z3))
TURING_IN_GAGA(t([], space, .(z2, z0)), .(p(z1, z2), z3)) → U9_GAGA(.(z2, z0), .(p(z1, z2), z3), member_out_ag(p(z1, z2)))
TURING_IN_GAGA(t([], space, .(z4, z0)), .(z1, z2)) → U9_GAGA(.(z4, z0), .(z1, z2), member_out_ag(z1))
TURING_IN_GAGA(t([], z0, .(z4, z2)), .(p(z3, z4), z5)) → U9_GAGA(.(z4, z2), .(p(z3, z4), z5), U1_ag(member_in_ag(z5)))
TURING_IN_GAGA(t([], z0, .(z6, z2)), .(z3, z4)) → U9_GAGA(.(z6, z2), .(z3, z4), U1_ag(member_in_ag(z4)))
TURING_IN_GAGA(t([], space, .(z2, z0)), .(p(z1, z2), z3)) → U9_GAGA(.(z2, z0), .(p(z1, z2), z3), U1_ag(member_in_ag(z3)))
TURING_IN_GAGA(t([], space, .(z4, z0)), .(z1, z2)) → U9_GAGA(.(z4, z0), .(z1, z2), U1_ag(member_in_ag(z2)))
U5_GAGA(.(z0, z1), .(p(z3, z0), z4), member_out_ag(p(z3, z0))) → TURING_IN_GAGA(t(.(z0, .(z0, z1)), space, []), .(p(z3, z0), z4))
U5_GAGA(.(z0, z1), .(p(x1, x2), z4), member_out_ag(p(x1, x2))) → TURING_IN_GAGA(t(.(x2, .(z0, z1)), space, []), .(p(x1, x2), z4))
U5_GAGA(.(z0, z1), .(p(z3, z0), z4), member_out_ag(p(x3, x4))) → TURING_IN_GAGA(t(.(x4, .(z0, z1)), space, []), .(p(z3, z0), z4))
U5_GAGA(.(z0, z1), .(z3, z4), member_out_ag(p(x3, x4))) → TURING_IN_GAGA(t(.(x4, .(z0, z1)), space, []), .(z3, z4))
U9_GAGA(.(z1, z2), .(p(z3, z1), z4), member_out_ag(p(z3, z1))) → TURING_IN_GAGA(t([], space, .(z1, .(z1, z2))), .(p(z3, z1), z4))
U9_GAGA(.(z1, z2), .(p(x1, x2), z4), member_out_ag(p(x1, x2))) → TURING_IN_GAGA(t([], space, .(x2, .(z1, z2))), .(p(x1, x2), z4))
U9_GAGA(.(z1, z2), .(p(z3, z1), z4), member_out_ag(p(x3, x4))) → TURING_IN_GAGA(t([], space, .(x4, .(z1, z2))), .(p(z3, z1), z4))
U9_GAGA(.(z1, z2), .(z3, z4), member_out_ag(p(x3, x4))) → TURING_IN_GAGA(t([], space, .(x4, .(z1, z2))), .(z3, z4))
TURING_IN_GAGA(t(x0, x1, .(x2, x3)), .(p(y_3, y_4), x5)) → U3_GAGA(x0, x2, x3, .(p(y_3, y_4), x5), member_out_ag(p(y_3, y_4)))
TURING_IN_GAGA(t(.(x0, x1), x2, x3), .(p(y_3, y_4), x5)) → U7_GAGA(x0, x1, x3, .(p(y_3, y_4), x5), member_out_ag(p(y_3, y_4)))
TURING_IN_GAGA(t(.(x0, x1), x2, []), .(p(y_2, y_3), x4)) → U5_GAGA(.(x0, x1), .(p(y_2, y_3), x4), member_out_ag(p(y_2, y_3)))
member_in_ag(.(H, L)) → member_out_ag(H)
member_in_ag(.(H, L)) → U1_ag(member_in_ag(L))
U1_ag(member_out_ag(X)) → member_out_ag(X)
member_in_ag(x0)
U1_ag(x0)
TURING_IN_GAGA(t(.(x0, x1), space, []), .(p(y_2, y_3), x3)) → U5_GAGA(.(x0, x1), .(p(y_2, y_3), x3), member_out_ag(p(y_2, y_3)))
TURING_IN_GAGA(t(y0, y1, .(y2, y3)), .(x0, x1)) → U3_GAGA(y0, y2, y3, .(x0, x1), U1_ag(member_in_ag(x1)))
TURING_IN_GAGA(t(.(y0, y1), y2, y3), .(x0, x1)) → U7_GAGA(y0, y1, y3, .(x0, x1), U1_ag(member_in_ag(x1)))
U3_GAGA(z0, z2, z3, .(p(x4, x5), z5), member_out_ag(p(x4, x5))) → TURING_IN_GAGA(t(.(x5, z0), z2, z3), .(p(x4, x5), z5))
U3_GAGA(z0, z2, z3, .(z4, z5), member_out_ag(p(x4, x5))) → TURING_IN_GAGA(t(.(x5, z0), z2, z3), .(z4, z5))
U7_GAGA(z0, z1, z3, .(p(x4, x5), z5), member_out_ag(p(x4, x5))) → TURING_IN_GAGA(t(z1, z0, .(x5, z3)), .(p(x4, x5), z5))
U7_GAGA(z0, z1, z3, .(z4, z5), member_out_ag(p(x4, x5))) → TURING_IN_GAGA(t(z1, z0, .(x5, z3)), .(z4, z5))
TURING_IN_GAGA(t(.(z4, z0), z1, []), .(p(z3, z4), z5)) → U5_GAGA(.(z4, z0), .(p(z3, z4), z5), member_out_ag(p(z3, z4)))
TURING_IN_GAGA(t(.(z2, z0), space, []), .(p(z1, z2), z3)) → U5_GAGA(.(z2, z0), .(p(z1, z2), z3), member_out_ag(p(z1, z2)))
TURING_IN_GAGA(t(.(z4, z0), z1, []), .(p(z3, z4), z5)) → U5_GAGA(.(z4, z0), .(p(z3, z4), z5), U1_ag(member_in_ag(z5)))
TURING_IN_GAGA(t(.(z6, z0), z1, []), .(z3, z4)) → U5_GAGA(.(z6, z0), .(z3, z4), U1_ag(member_in_ag(z4)))
TURING_IN_GAGA(t(.(z2, z0), space, []), .(p(z1, z2), z3)) → U5_GAGA(.(z2, z0), .(p(z1, z2), z3), U1_ag(member_in_ag(z3)))
TURING_IN_GAGA(t(.(z4, z0), space, []), .(z1, z2)) → U5_GAGA(.(z4, z0), .(z1, z2), U1_ag(member_in_ag(z2)))
TURING_IN_GAGA(t([], z0, .(z4, z2)), .(p(z3, z4), z5)) → U9_GAGA(.(z4, z2), .(p(z3, z4), z5), member_out_ag(p(z3, z4)))
TURING_IN_GAGA(t([], z0, .(z6, z2)), .(z3, z4)) → U9_GAGA(.(z6, z2), .(z3, z4), member_out_ag(z3))
TURING_IN_GAGA(t([], space, .(z2, z0)), .(p(z1, z2), z3)) → U9_GAGA(.(z2, z0), .(p(z1, z2), z3), member_out_ag(p(z1, z2)))
TURING_IN_GAGA(t([], space, .(z4, z0)), .(z1, z2)) → U9_GAGA(.(z4, z0), .(z1, z2), member_out_ag(z1))
TURING_IN_GAGA(t([], z0, .(z4, z2)), .(p(z3, z4), z5)) → U9_GAGA(.(z4, z2), .(p(z3, z4), z5), U1_ag(member_in_ag(z5)))
TURING_IN_GAGA(t([], z0, .(z6, z2)), .(z3, z4)) → U9_GAGA(.(z6, z2), .(z3, z4), U1_ag(member_in_ag(z4)))
TURING_IN_GAGA(t([], space, .(z2, z0)), .(p(z1, z2), z3)) → U9_GAGA(.(z2, z0), .(p(z1, z2), z3), U1_ag(member_in_ag(z3)))
TURING_IN_GAGA(t([], space, .(z4, z0)), .(z1, z2)) → U9_GAGA(.(z4, z0), .(z1, z2), U1_ag(member_in_ag(z2)))
U5_GAGA(.(z0, z1), .(p(z3, z0), z4), member_out_ag(p(z3, z0))) → TURING_IN_GAGA(t(.(z0, .(z0, z1)), space, []), .(p(z3, z0), z4))
U5_GAGA(.(z0, z1), .(p(x1, x2), z4), member_out_ag(p(x1, x2))) → TURING_IN_GAGA(t(.(x2, .(z0, z1)), space, []), .(p(x1, x2), z4))
U5_GAGA(.(z0, z1), .(p(z3, z0), z4), member_out_ag(p(x3, x4))) → TURING_IN_GAGA(t(.(x4, .(z0, z1)), space, []), .(p(z3, z0), z4))
U5_GAGA(.(z0, z1), .(z3, z4), member_out_ag(p(x3, x4))) → TURING_IN_GAGA(t(.(x4, .(z0, z1)), space, []), .(z3, z4))
U9_GAGA(.(z1, z2), .(p(z3, z1), z4), member_out_ag(p(z3, z1))) → TURING_IN_GAGA(t([], space, .(z1, .(z1, z2))), .(p(z3, z1), z4))
U9_GAGA(.(z1, z2), .(p(x1, x2), z4), member_out_ag(p(x1, x2))) → TURING_IN_GAGA(t([], space, .(x2, .(z1, z2))), .(p(x1, x2), z4))
U9_GAGA(.(z1, z2), .(p(z3, z1), z4), member_out_ag(p(x3, x4))) → TURING_IN_GAGA(t([], space, .(x4, .(z1, z2))), .(p(z3, z1), z4))
U9_GAGA(.(z1, z2), .(z3, z4), member_out_ag(p(x3, x4))) → TURING_IN_GAGA(t([], space, .(x4, .(z1, z2))), .(z3, z4))
TURING_IN_GAGA(t(x0, x1, .(x2, x3)), .(p(y_3, y_4), x5)) → U3_GAGA(x0, x2, x3, .(p(y_3, y_4), x5), member_out_ag(p(y_3, y_4)))
TURING_IN_GAGA(t(.(x0, x1), x2, x3), .(p(y_3, y_4), x5)) → U7_GAGA(x0, x1, x3, .(p(y_3, y_4), x5), member_out_ag(p(y_3, y_4)))
TURING_IN_GAGA(t(.(x0, x1), x2, []), .(p(y_2, y_3), x4)) → U5_GAGA(.(x0, x1), .(p(y_2, y_3), x4), member_out_ag(p(y_2, y_3)))
TURING_IN_GAGA(t(.(x0, x1), space, []), .(p(y_2, y_3), x3)) → U5_GAGA(.(x0, x1), .(p(y_2, y_3), x3), member_out_ag(p(y_2, y_3)))
member_in_ag(.(H, L)) → member_out_ag(H)
member_in_ag(.(H, L)) → U1_ag(member_in_ag(L))
U1_ag(member_out_ag(X)) → member_out_ag(X)
member_in_ag(x0)
U1_ag(x0)
TURING_IN_GAGA(t([], x0, .(x1, x2)), .(p(y_2, y_3), x4)) → U9_GAGA(.(x1, x2), .(p(y_2, y_3), x4), member_out_ag(p(y_2, y_3)))
TURING_IN_GAGA(t(y0, y1, .(y2, y3)), .(x0, x1)) → U3_GAGA(y0, y2, y3, .(x0, x1), U1_ag(member_in_ag(x1)))
TURING_IN_GAGA(t(.(y0, y1), y2, y3), .(x0, x1)) → U7_GAGA(y0, y1, y3, .(x0, x1), U1_ag(member_in_ag(x1)))
U3_GAGA(z0, z2, z3, .(p(x4, x5), z5), member_out_ag(p(x4, x5))) → TURING_IN_GAGA(t(.(x5, z0), z2, z3), .(p(x4, x5), z5))
U3_GAGA(z0, z2, z3, .(z4, z5), member_out_ag(p(x4, x5))) → TURING_IN_GAGA(t(.(x5, z0), z2, z3), .(z4, z5))
U7_GAGA(z0, z1, z3, .(p(x4, x5), z5), member_out_ag(p(x4, x5))) → TURING_IN_GAGA(t(z1, z0, .(x5, z3)), .(p(x4, x5), z5))
U7_GAGA(z0, z1, z3, .(z4, z5), member_out_ag(p(x4, x5))) → TURING_IN_GAGA(t(z1, z0, .(x5, z3)), .(z4, z5))
TURING_IN_GAGA(t(.(z4, z0), z1, []), .(p(z3, z4), z5)) → U5_GAGA(.(z4, z0), .(p(z3, z4), z5), member_out_ag(p(z3, z4)))
TURING_IN_GAGA(t(.(z2, z0), space, []), .(p(z1, z2), z3)) → U5_GAGA(.(z2, z0), .(p(z1, z2), z3), member_out_ag(p(z1, z2)))
TURING_IN_GAGA(t(.(z4, z0), z1, []), .(p(z3, z4), z5)) → U5_GAGA(.(z4, z0), .(p(z3, z4), z5), U1_ag(member_in_ag(z5)))
TURING_IN_GAGA(t(.(z6, z0), z1, []), .(z3, z4)) → U5_GAGA(.(z6, z0), .(z3, z4), U1_ag(member_in_ag(z4)))
TURING_IN_GAGA(t(.(z2, z0), space, []), .(p(z1, z2), z3)) → U5_GAGA(.(z2, z0), .(p(z1, z2), z3), U1_ag(member_in_ag(z3)))
TURING_IN_GAGA(t(.(z4, z0), space, []), .(z1, z2)) → U5_GAGA(.(z4, z0), .(z1, z2), U1_ag(member_in_ag(z2)))
TURING_IN_GAGA(t([], z0, .(z4, z2)), .(p(z3, z4), z5)) → U9_GAGA(.(z4, z2), .(p(z3, z4), z5), member_out_ag(p(z3, z4)))
TURING_IN_GAGA(t([], space, .(z2, z0)), .(p(z1, z2), z3)) → U9_GAGA(.(z2, z0), .(p(z1, z2), z3), member_out_ag(p(z1, z2)))
TURING_IN_GAGA(t([], space, .(z4, z0)), .(z1, z2)) → U9_GAGA(.(z4, z0), .(z1, z2), member_out_ag(z1))
TURING_IN_GAGA(t([], z0, .(z4, z2)), .(p(z3, z4), z5)) → U9_GAGA(.(z4, z2), .(p(z3, z4), z5), U1_ag(member_in_ag(z5)))
TURING_IN_GAGA(t([], z0, .(z6, z2)), .(z3, z4)) → U9_GAGA(.(z6, z2), .(z3, z4), U1_ag(member_in_ag(z4)))
TURING_IN_GAGA(t([], space, .(z2, z0)), .(p(z1, z2), z3)) → U9_GAGA(.(z2, z0), .(p(z1, z2), z3), U1_ag(member_in_ag(z3)))
TURING_IN_GAGA(t([], space, .(z4, z0)), .(z1, z2)) → U9_GAGA(.(z4, z0), .(z1, z2), U1_ag(member_in_ag(z2)))
U5_GAGA(.(z0, z1), .(p(z3, z0), z4), member_out_ag(p(z3, z0))) → TURING_IN_GAGA(t(.(z0, .(z0, z1)), space, []), .(p(z3, z0), z4))
U5_GAGA(.(z0, z1), .(p(x1, x2), z4), member_out_ag(p(x1, x2))) → TURING_IN_GAGA(t(.(x2, .(z0, z1)), space, []), .(p(x1, x2), z4))
U5_GAGA(.(z0, z1), .(p(z3, z0), z4), member_out_ag(p(x3, x4))) → TURING_IN_GAGA(t(.(x4, .(z0, z1)), space, []), .(p(z3, z0), z4))
U5_GAGA(.(z0, z1), .(z3, z4), member_out_ag(p(x3, x4))) → TURING_IN_GAGA(t(.(x4, .(z0, z1)), space, []), .(z3, z4))
U9_GAGA(.(z1, z2), .(p(z3, z1), z4), member_out_ag(p(z3, z1))) → TURING_IN_GAGA(t([], space, .(z1, .(z1, z2))), .(p(z3, z1), z4))
U9_GAGA(.(z1, z2), .(p(x1, x2), z4), member_out_ag(p(x1, x2))) → TURING_IN_GAGA(t([], space, .(x2, .(z1, z2))), .(p(x1, x2), z4))
U9_GAGA(.(z1, z2), .(p(z3, z1), z4), member_out_ag(p(x3, x4))) → TURING_IN_GAGA(t([], space, .(x4, .(z1, z2))), .(p(z3, z1), z4))
U9_GAGA(.(z1, z2), .(z3, z4), member_out_ag(p(x3, x4))) → TURING_IN_GAGA(t([], space, .(x4, .(z1, z2))), .(z3, z4))
TURING_IN_GAGA(t(x0, x1, .(x2, x3)), .(p(y_3, y_4), x5)) → U3_GAGA(x0, x2, x3, .(p(y_3, y_4), x5), member_out_ag(p(y_3, y_4)))
TURING_IN_GAGA(t(.(x0, x1), x2, x3), .(p(y_3, y_4), x5)) → U7_GAGA(x0, x1, x3, .(p(y_3, y_4), x5), member_out_ag(p(y_3, y_4)))
TURING_IN_GAGA(t(.(x0, x1), x2, []), .(p(y_2, y_3), x4)) → U5_GAGA(.(x0, x1), .(p(y_2, y_3), x4), member_out_ag(p(y_2, y_3)))
TURING_IN_GAGA(t(.(x0, x1), space, []), .(p(y_2, y_3), x3)) → U5_GAGA(.(x0, x1), .(p(y_2, y_3), x3), member_out_ag(p(y_2, y_3)))
TURING_IN_GAGA(t([], x0, .(x1, x2)), .(p(y_2, y_3), x4)) → U9_GAGA(.(x1, x2), .(p(y_2, y_3), x4), member_out_ag(p(y_2, y_3)))
member_in_ag(.(H, L)) → member_out_ag(H)
member_in_ag(.(H, L)) → U1_ag(member_in_ag(L))
U1_ag(member_out_ag(X)) → member_out_ag(X)
member_in_ag(x0)
U1_ag(x0)
TURING_IN_GAGA(t([], space, .(x0, x1)), .(p(y_2, y_3), x3)) → U9_GAGA(.(x0, x1), .(p(y_2, y_3), x3), member_out_ag(p(y_2, y_3)))
TURING_IN_GAGA(t(y0, y1, .(y2, y3)), .(x0, x1)) → U3_GAGA(y0, y2, y3, .(x0, x1), U1_ag(member_in_ag(x1)))
TURING_IN_GAGA(t(.(y0, y1), y2, y3), .(x0, x1)) → U7_GAGA(y0, y1, y3, .(x0, x1), U1_ag(member_in_ag(x1)))
U3_GAGA(z0, z2, z3, .(p(x4, x5), z5), member_out_ag(p(x4, x5))) → TURING_IN_GAGA(t(.(x5, z0), z2, z3), .(p(x4, x5), z5))
U3_GAGA(z0, z2, z3, .(z4, z5), member_out_ag(p(x4, x5))) → TURING_IN_GAGA(t(.(x5, z0), z2, z3), .(z4, z5))
U7_GAGA(z0, z1, z3, .(p(x4, x5), z5), member_out_ag(p(x4, x5))) → TURING_IN_GAGA(t(z1, z0, .(x5, z3)), .(p(x4, x5), z5))
U7_GAGA(z0, z1, z3, .(z4, z5), member_out_ag(p(x4, x5))) → TURING_IN_GAGA(t(z1, z0, .(x5, z3)), .(z4, z5))
TURING_IN_GAGA(t(.(z4, z0), z1, []), .(p(z3, z4), z5)) → U5_GAGA(.(z4, z0), .(p(z3, z4), z5), member_out_ag(p(z3, z4)))
TURING_IN_GAGA(t(.(z2, z0), space, []), .(p(z1, z2), z3)) → U5_GAGA(.(z2, z0), .(p(z1, z2), z3), member_out_ag(p(z1, z2)))
TURING_IN_GAGA(t(.(z4, z0), z1, []), .(p(z3, z4), z5)) → U5_GAGA(.(z4, z0), .(p(z3, z4), z5), U1_ag(member_in_ag(z5)))
TURING_IN_GAGA(t(.(z6, z0), z1, []), .(z3, z4)) → U5_GAGA(.(z6, z0), .(z3, z4), U1_ag(member_in_ag(z4)))
TURING_IN_GAGA(t(.(z2, z0), space, []), .(p(z1, z2), z3)) → U5_GAGA(.(z2, z0), .(p(z1, z2), z3), U1_ag(member_in_ag(z3)))
TURING_IN_GAGA(t(.(z4, z0), space, []), .(z1, z2)) → U5_GAGA(.(z4, z0), .(z1, z2), U1_ag(member_in_ag(z2)))
TURING_IN_GAGA(t([], z0, .(z4, z2)), .(p(z3, z4), z5)) → U9_GAGA(.(z4, z2), .(p(z3, z4), z5), member_out_ag(p(z3, z4)))
TURING_IN_GAGA(t([], space, .(z2, z0)), .(p(z1, z2), z3)) → U9_GAGA(.(z2, z0), .(p(z1, z2), z3), member_out_ag(p(z1, z2)))
TURING_IN_GAGA(t([], z0, .(z4, z2)), .(p(z3, z4), z5)) → U9_GAGA(.(z4, z2), .(p(z3, z4), z5), U1_ag(member_in_ag(z5)))
TURING_IN_GAGA(t([], z0, .(z6, z2)), .(z3, z4)) → U9_GAGA(.(z6, z2), .(z3, z4), U1_ag(member_in_ag(z4)))
TURING_IN_GAGA(t([], space, .(z2, z0)), .(p(z1, z2), z3)) → U9_GAGA(.(z2, z0), .(p(z1, z2), z3), U1_ag(member_in_ag(z3)))
TURING_IN_GAGA(t([], space, .(z4, z0)), .(z1, z2)) → U9_GAGA(.(z4, z0), .(z1, z2), U1_ag(member_in_ag(z2)))
U5_GAGA(.(z0, z1), .(p(z3, z0), z4), member_out_ag(p(z3, z0))) → TURING_IN_GAGA(t(.(z0, .(z0, z1)), space, []), .(p(z3, z0), z4))
U5_GAGA(.(z0, z1), .(p(x1, x2), z4), member_out_ag(p(x1, x2))) → TURING_IN_GAGA(t(.(x2, .(z0, z1)), space, []), .(p(x1, x2), z4))
U5_GAGA(.(z0, z1), .(p(z3, z0), z4), member_out_ag(p(x3, x4))) → TURING_IN_GAGA(t(.(x4, .(z0, z1)), space, []), .(p(z3, z0), z4))
U5_GAGA(.(z0, z1), .(z3, z4), member_out_ag(p(x3, x4))) → TURING_IN_GAGA(t(.(x4, .(z0, z1)), space, []), .(z3, z4))
U9_GAGA(.(z1, z2), .(p(z3, z1), z4), member_out_ag(p(z3, z1))) → TURING_IN_GAGA(t([], space, .(z1, .(z1, z2))), .(p(z3, z1), z4))
U9_GAGA(.(z1, z2), .(p(x1, x2), z4), member_out_ag(p(x1, x2))) → TURING_IN_GAGA(t([], space, .(x2, .(z1, z2))), .(p(x1, x2), z4))
U9_GAGA(.(z1, z2), .(p(z3, z1), z4), member_out_ag(p(x3, x4))) → TURING_IN_GAGA(t([], space, .(x4, .(z1, z2))), .(p(z3, z1), z4))
U9_GAGA(.(z1, z2), .(z3, z4), member_out_ag(p(x3, x4))) → TURING_IN_GAGA(t([], space, .(x4, .(z1, z2))), .(z3, z4))
TURING_IN_GAGA(t(x0, x1, .(x2, x3)), .(p(y_3, y_4), x5)) → U3_GAGA(x0, x2, x3, .(p(y_3, y_4), x5), member_out_ag(p(y_3, y_4)))
TURING_IN_GAGA(t(.(x0, x1), x2, x3), .(p(y_3, y_4), x5)) → U7_GAGA(x0, x1, x3, .(p(y_3, y_4), x5), member_out_ag(p(y_3, y_4)))
TURING_IN_GAGA(t(.(x0, x1), x2, []), .(p(y_2, y_3), x4)) → U5_GAGA(.(x0, x1), .(p(y_2, y_3), x4), member_out_ag(p(y_2, y_3)))
TURING_IN_GAGA(t(.(x0, x1), space, []), .(p(y_2, y_3), x3)) → U5_GAGA(.(x0, x1), .(p(y_2, y_3), x3), member_out_ag(p(y_2, y_3)))
TURING_IN_GAGA(t([], x0, .(x1, x2)), .(p(y_2, y_3), x4)) → U9_GAGA(.(x1, x2), .(p(y_2, y_3), x4), member_out_ag(p(y_2, y_3)))
TURING_IN_GAGA(t([], space, .(x0, x1)), .(p(y_2, y_3), x3)) → U9_GAGA(.(x0, x1), .(p(y_2, y_3), x3), member_out_ag(p(y_2, y_3)))
member_in_ag(.(H, L)) → member_out_ag(H)
member_in_ag(.(H, L)) → U1_ag(member_in_ag(L))
U1_ag(member_out_ag(X)) → member_out_ag(X)
member_in_ag(x0)
U1_ag(x0)