0 Prolog
↳1 PrologToPrologProblemTransformerProof (⇐)
↳2 Prolog
↳3 PrologToPiTRSProof (⇐)
↳4 PiTRS
↳5 DependencyPairsProof (⇔)
↳6 PiDP
↳7 DependencyGraphProof (⇔)
↳8 PiDP
↳9 UsableRulesProof (⇔)
↳10 PiDP
↳11 PiDPToQDPProof (⇐)
↳12 QDP
↳13 NonTerminationProof (⇔)
↳14 NO
↳15 PrologToPiTRSProof (⇐)
↳16 PiTRS
↳17 DependencyPairsProof (⇔)
↳18 PiDP
↳19 DependencyGraphProof (⇔)
↳20 PiDP
↳21 UsableRulesProof (⇔)
↳22 PiDP
↳23 PiDPToQDPProof (⇐)
↳24 QDP
↳25 NonTerminationProof (⇔)
↳26 NO
g1_in_a(T4) → U2_a(T4, app_18_in_aaa(X27, X54, X7))
app_18_in_aaa(X134, X148, .(.(a, []), .(.(X134, []), .(.(X148, .(c, [])), .([], []))))) → app_18_out_aaa(X134, X148, .(.(a, []), .(.(X134, []), .(.(X148, .(c, [])), .([], [])))))
U2_a(T4, app_18_out_aaa(X27, X54, X7)) → g1_out_a(T4)
g1_in_a([]) → U3_a(app_18_in_aaa(X27, X54, .([], T15)))
U3_a(app_18_out_aaa(X27, X54, .([], T15))) → g1_out_a([])
g1_in_a(.(T36, .(T36, []))) → U4_a(T36, app_18_in_aaa(X27, X54, .(.(T36, []), T15)))
U4_a(T36, app_18_out_aaa(X27, X54, .(.(T36, []), T15))) → g1_out_a(.(T36, .(T36, [])))
g1_in_a(.(T65, .(T66, .(T65, .(T66, []))))) → U5_a(T65, T66, app_18_in_aaa(X27, X54, .(.(T65, .(T66, [])), T15)))
U5_a(T65, T66, app_18_out_aaa(X27, X54, .(.(T65, .(T66, [])), T15))) → g1_out_a(.(T65, .(T66, .(T65, .(T66, [])))))
g1_in_a(.(T105, .(T106, .(T107, .(T105, .(T106, .(T107, []))))))) → U6_a(T105, T106, T107, app_18_in_aaa(X27, X54, .(.(T105, .(T106, .(T107, []))), T15)))
U6_a(T105, T106, T107, app_18_out_aaa(X27, X54, .(.(T105, .(T106, .(T107, []))), T15))) → g1_out_a(.(T105, .(T106, .(T107, .(T105, .(T106, .(T107, [])))))))
g1_in_a(.(T156, .(T157, .(T158, .(T159, .(T156, .(T157, .(T158, .(T159, []))))))))) → U7_a(T156, T157, T158, T159, app_18_in_aaa(X27, X54, .(.(T156, .(T157, .(T158, .(T159, [])))), T15)))
U7_a(T156, T157, T158, T159, app_18_out_aaa(X27, X54, .(.(T156, .(T157, .(T158, .(T159, [])))), T15))) → g1_out_a(.(T156, .(T157, .(T158, .(T159, .(T156, .(T157, .(T158, .(T159, [])))))))))
g1_in_a(.(T218, .(T219, .(T220, .(T221, .(T222, .(T218, .(T219, .(T220, .(T221, .(T222, []))))))))))) → U8_a(T218, T219, T220, T221, T222, app_18_in_aaa(X27, X54, .(.(T218, .(T219, .(T220, .(T221, .(T222, []))))), T15)))
U8_a(T218, T219, T220, T221, T222, app_18_out_aaa(X27, X54, .(.(T218, .(T219, .(T220, .(T221, .(T222, []))))), T15))) → g1_out_a(.(T218, .(T219, .(T220, .(T221, .(T222, .(T218, .(T219, .(T220, .(T221, .(T222, [])))))))))))
g1_in_a(.(T291, .(T292, .(T293, .(T294, .(T295, .(T296, .(T291, .(T292, .(T293, .(T294, .(T295, .(T296, []))))))))))))) → U9_a(T291, T292, T293, T294, T295, T296, app_18_in_aaa(X27, X54, .(.(T291, .(T292, .(T293, .(T294, .(T295, .(T296, [])))))), T15)))
U9_a(T291, T292, T293, T294, T295, T296, app_18_out_aaa(X27, X54, .(.(T291, .(T292, .(T293, .(T294, .(T295, .(T296, [])))))), T15))) → g1_out_a(.(T291, .(T292, .(T293, .(T294, .(T295, .(T296, .(T291, .(T292, .(T293, .(T294, .(T295, .(T296, [])))))))))))))
g1_in_a(.(T375, .(T376, .(T377, .(T378, .(T379, .(T380, .(T381, .(T375, .(T376, .(T377, .(T378, .(T379, .(T380, .(T381, []))))))))))))))) → U10_a(T375, T376, T377, T378, T379, T380, T381, app_18_in_aaa(X27, X54, .(.(T375, .(T376, .(T377, .(T378, .(T379, .(T380, .(T381, []))))))), T15)))
U10_a(T375, T376, T377, T378, T379, T380, T381, app_18_out_aaa(X27, X54, .(.(T375, .(T376, .(T377, .(T378, .(T379, .(T380, .(T381, []))))))), T15))) → g1_out_a(.(T375, .(T376, .(T377, .(T378, .(T379, .(T380, .(T381, .(T375, .(T376, .(T377, .(T378, .(T379, .(T380, .(T381, [])))))))))))))))
g1_in_a(.(T414, .(T415, .(T416, .(T417, .(T418, .(T419, .(T420, .(T421, T413))))))))) → U11_a(T414, T415, T416, T417, T418, T419, T420, T421, T413, app_18_in_aaa(X27, X54, .(.(T414, .(T415, .(T416, .(T417, .(T418, .(T419, .(T420, .(T421, T412)))))))), T15)))
U11_a(T414, T415, T416, T417, T418, T419, T420, T421, T413, app_18_out_aaa(X27, X54, .(.(T414, .(T415, .(T416, .(T417, .(T418, .(T419, .(T420, .(T421, T412)))))))), T15))) → U12_a(T414, T415, T416, T417, T418, T419, T420, T421, T413, app_289_in_aaaa(T412, T414, .(T415, .(T416, .(T417, .(T418, .(T419, .(T420, .(T421, T412))))))), T413))
app_289_in_aaaa([], T451, T452, .(T451, T452)) → app_289_out_aaaa([], T451, T452, .(T451, T452))
app_289_in_aaaa(.(T463, T468), T470, T471, .(T463, T469)) → U1_aaaa(T463, T468, T470, T471, T469, app_289_in_aaaa(T468, T470, T471, T469))
U1_aaaa(T463, T468, T470, T471, T469, app_289_out_aaaa(T468, T470, T471, T469)) → app_289_out_aaaa(.(T463, T468), T470, T471, .(T463, T469))
U12_a(T414, T415, T416, T417, T418, T419, T420, T421, T413, app_289_out_aaaa(T412, T414, .(T415, .(T416, .(T417, .(T418, .(T419, .(T420, .(T421, T412))))))), T413)) → g1_out_a(.(T414, .(T415, .(T416, .(T417, .(T418, .(T419, .(T420, .(T421, T413)))))))))
Infinitary Constructor Rewriting Termination of PiTRS implies Termination of Prolog
g1_in_a(T4) → U2_a(T4, app_18_in_aaa(X27, X54, X7))
app_18_in_aaa(X134, X148, .(.(a, []), .(.(X134, []), .(.(X148, .(c, [])), .([], []))))) → app_18_out_aaa(X134, X148, .(.(a, []), .(.(X134, []), .(.(X148, .(c, [])), .([], [])))))
U2_a(T4, app_18_out_aaa(X27, X54, X7)) → g1_out_a(T4)
g1_in_a([]) → U3_a(app_18_in_aaa(X27, X54, .([], T15)))
U3_a(app_18_out_aaa(X27, X54, .([], T15))) → g1_out_a([])
g1_in_a(.(T36, .(T36, []))) → U4_a(T36, app_18_in_aaa(X27, X54, .(.(T36, []), T15)))
U4_a(T36, app_18_out_aaa(X27, X54, .(.(T36, []), T15))) → g1_out_a(.(T36, .(T36, [])))
g1_in_a(.(T65, .(T66, .(T65, .(T66, []))))) → U5_a(T65, T66, app_18_in_aaa(X27, X54, .(.(T65, .(T66, [])), T15)))
U5_a(T65, T66, app_18_out_aaa(X27, X54, .(.(T65, .(T66, [])), T15))) → g1_out_a(.(T65, .(T66, .(T65, .(T66, [])))))
g1_in_a(.(T105, .(T106, .(T107, .(T105, .(T106, .(T107, []))))))) → U6_a(T105, T106, T107, app_18_in_aaa(X27, X54, .(.(T105, .(T106, .(T107, []))), T15)))
U6_a(T105, T106, T107, app_18_out_aaa(X27, X54, .(.(T105, .(T106, .(T107, []))), T15))) → g1_out_a(.(T105, .(T106, .(T107, .(T105, .(T106, .(T107, [])))))))
g1_in_a(.(T156, .(T157, .(T158, .(T159, .(T156, .(T157, .(T158, .(T159, []))))))))) → U7_a(T156, T157, T158, T159, app_18_in_aaa(X27, X54, .(.(T156, .(T157, .(T158, .(T159, [])))), T15)))
U7_a(T156, T157, T158, T159, app_18_out_aaa(X27, X54, .(.(T156, .(T157, .(T158, .(T159, [])))), T15))) → g1_out_a(.(T156, .(T157, .(T158, .(T159, .(T156, .(T157, .(T158, .(T159, [])))))))))
g1_in_a(.(T218, .(T219, .(T220, .(T221, .(T222, .(T218, .(T219, .(T220, .(T221, .(T222, []))))))))))) → U8_a(T218, T219, T220, T221, T222, app_18_in_aaa(X27, X54, .(.(T218, .(T219, .(T220, .(T221, .(T222, []))))), T15)))
U8_a(T218, T219, T220, T221, T222, app_18_out_aaa(X27, X54, .(.(T218, .(T219, .(T220, .(T221, .(T222, []))))), T15))) → g1_out_a(.(T218, .(T219, .(T220, .(T221, .(T222, .(T218, .(T219, .(T220, .(T221, .(T222, [])))))))))))
g1_in_a(.(T291, .(T292, .(T293, .(T294, .(T295, .(T296, .(T291, .(T292, .(T293, .(T294, .(T295, .(T296, []))))))))))))) → U9_a(T291, T292, T293, T294, T295, T296, app_18_in_aaa(X27, X54, .(.(T291, .(T292, .(T293, .(T294, .(T295, .(T296, [])))))), T15)))
U9_a(T291, T292, T293, T294, T295, T296, app_18_out_aaa(X27, X54, .(.(T291, .(T292, .(T293, .(T294, .(T295, .(T296, [])))))), T15))) → g1_out_a(.(T291, .(T292, .(T293, .(T294, .(T295, .(T296, .(T291, .(T292, .(T293, .(T294, .(T295, .(T296, [])))))))))))))
g1_in_a(.(T375, .(T376, .(T377, .(T378, .(T379, .(T380, .(T381, .(T375, .(T376, .(T377, .(T378, .(T379, .(T380, .(T381, []))))))))))))))) → U10_a(T375, T376, T377, T378, T379, T380, T381, app_18_in_aaa(X27, X54, .(.(T375, .(T376, .(T377, .(T378, .(T379, .(T380, .(T381, []))))))), T15)))
U10_a(T375, T376, T377, T378, T379, T380, T381, app_18_out_aaa(X27, X54, .(.(T375, .(T376, .(T377, .(T378, .(T379, .(T380, .(T381, []))))))), T15))) → g1_out_a(.(T375, .(T376, .(T377, .(T378, .(T379, .(T380, .(T381, .(T375, .(T376, .(T377, .(T378, .(T379, .(T380, .(T381, [])))))))))))))))
g1_in_a(.(T414, .(T415, .(T416, .(T417, .(T418, .(T419, .(T420, .(T421, T413))))))))) → U11_a(T414, T415, T416, T417, T418, T419, T420, T421, T413, app_18_in_aaa(X27, X54, .(.(T414, .(T415, .(T416, .(T417, .(T418, .(T419, .(T420, .(T421, T412)))))))), T15)))
U11_a(T414, T415, T416, T417, T418, T419, T420, T421, T413, app_18_out_aaa(X27, X54, .(.(T414, .(T415, .(T416, .(T417, .(T418, .(T419, .(T420, .(T421, T412)))))))), T15))) → U12_a(T414, T415, T416, T417, T418, T419, T420, T421, T413, app_289_in_aaaa(T412, T414, .(T415, .(T416, .(T417, .(T418, .(T419, .(T420, .(T421, T412))))))), T413))
app_289_in_aaaa([], T451, T452, .(T451, T452)) → app_289_out_aaaa([], T451, T452, .(T451, T452))
app_289_in_aaaa(.(T463, T468), T470, T471, .(T463, T469)) → U1_aaaa(T463, T468, T470, T471, T469, app_289_in_aaaa(T468, T470, T471, T469))
U1_aaaa(T463, T468, T470, T471, T469, app_289_out_aaaa(T468, T470, T471, T469)) → app_289_out_aaaa(.(T463, T468), T470, T471, .(T463, T469))
U12_a(T414, T415, T416, T417, T418, T419, T420, T421, T413, app_289_out_aaaa(T412, T414, .(T415, .(T416, .(T417, .(T418, .(T419, .(T420, .(T421, T412))))))), T413)) → g1_out_a(.(T414, .(T415, .(T416, .(T417, .(T418, .(T419, .(T420, .(T421, T413)))))))))
G1_IN_A(T4) → U2_A(T4, app_18_in_aaa(X27, X54, X7))
G1_IN_A(T4) → APP_18_IN_AAA(X27, X54, X7)
G1_IN_A([]) → U3_A(app_18_in_aaa(X27, X54, .([], T15)))
G1_IN_A([]) → APP_18_IN_AAA(X27, X54, .([], T15))
G1_IN_A(.(T36, .(T36, []))) → U4_A(T36, app_18_in_aaa(X27, X54, .(.(T36, []), T15)))
G1_IN_A(.(T36, .(T36, []))) → APP_18_IN_AAA(X27, X54, .(.(T36, []), T15))
G1_IN_A(.(T65, .(T66, .(T65, .(T66, []))))) → U5_A(T65, T66, app_18_in_aaa(X27, X54, .(.(T65, .(T66, [])), T15)))
G1_IN_A(.(T65, .(T66, .(T65, .(T66, []))))) → APP_18_IN_AAA(X27, X54, .(.(T65, .(T66, [])), T15))
G1_IN_A(.(T105, .(T106, .(T107, .(T105, .(T106, .(T107, []))))))) → U6_A(T105, T106, T107, app_18_in_aaa(X27, X54, .(.(T105, .(T106, .(T107, []))), T15)))
G1_IN_A(.(T105, .(T106, .(T107, .(T105, .(T106, .(T107, []))))))) → APP_18_IN_AAA(X27, X54, .(.(T105, .(T106, .(T107, []))), T15))
G1_IN_A(.(T156, .(T157, .(T158, .(T159, .(T156, .(T157, .(T158, .(T159, []))))))))) → U7_A(T156, T157, T158, T159, app_18_in_aaa(X27, X54, .(.(T156, .(T157, .(T158, .(T159, [])))), T15)))
G1_IN_A(.(T156, .(T157, .(T158, .(T159, .(T156, .(T157, .(T158, .(T159, []))))))))) → APP_18_IN_AAA(X27, X54, .(.(T156, .(T157, .(T158, .(T159, [])))), T15))
G1_IN_A(.(T218, .(T219, .(T220, .(T221, .(T222, .(T218, .(T219, .(T220, .(T221, .(T222, []))))))))))) → U8_A(T218, T219, T220, T221, T222, app_18_in_aaa(X27, X54, .(.(T218, .(T219, .(T220, .(T221, .(T222, []))))), T15)))
G1_IN_A(.(T218, .(T219, .(T220, .(T221, .(T222, .(T218, .(T219, .(T220, .(T221, .(T222, []))))))))))) → APP_18_IN_AAA(X27, X54, .(.(T218, .(T219, .(T220, .(T221, .(T222, []))))), T15))
G1_IN_A(.(T291, .(T292, .(T293, .(T294, .(T295, .(T296, .(T291, .(T292, .(T293, .(T294, .(T295, .(T296, []))))))))))))) → U9_A(T291, T292, T293, T294, T295, T296, app_18_in_aaa(X27, X54, .(.(T291, .(T292, .(T293, .(T294, .(T295, .(T296, [])))))), T15)))
G1_IN_A(.(T291, .(T292, .(T293, .(T294, .(T295, .(T296, .(T291, .(T292, .(T293, .(T294, .(T295, .(T296, []))))))))))))) → APP_18_IN_AAA(X27, X54, .(.(T291, .(T292, .(T293, .(T294, .(T295, .(T296, [])))))), T15))
G1_IN_A(.(T375, .(T376, .(T377, .(T378, .(T379, .(T380, .(T381, .(T375, .(T376, .(T377, .(T378, .(T379, .(T380, .(T381, []))))))))))))))) → U10_A(T375, T376, T377, T378, T379, T380, T381, app_18_in_aaa(X27, X54, .(.(T375, .(T376, .(T377, .(T378, .(T379, .(T380, .(T381, []))))))), T15)))
G1_IN_A(.(T375, .(T376, .(T377, .(T378, .(T379, .(T380, .(T381, .(T375, .(T376, .(T377, .(T378, .(T379, .(T380, .(T381, []))))))))))))))) → APP_18_IN_AAA(X27, X54, .(.(T375, .(T376, .(T377, .(T378, .(T379, .(T380, .(T381, []))))))), T15))
G1_IN_A(.(T414, .(T415, .(T416, .(T417, .(T418, .(T419, .(T420, .(T421, T413))))))))) → U11_A(T414, T415, T416, T417, T418, T419, T420, T421, T413, app_18_in_aaa(X27, X54, .(.(T414, .(T415, .(T416, .(T417, .(T418, .(T419, .(T420, .(T421, T412)))))))), T15)))
G1_IN_A(.(T414, .(T415, .(T416, .(T417, .(T418, .(T419, .(T420, .(T421, T413))))))))) → APP_18_IN_AAA(X27, X54, .(.(T414, .(T415, .(T416, .(T417, .(T418, .(T419, .(T420, .(T421, T412)))))))), T15))
U11_A(T414, T415, T416, T417, T418, T419, T420, T421, T413, app_18_out_aaa(X27, X54, .(.(T414, .(T415, .(T416, .(T417, .(T418, .(T419, .(T420, .(T421, T412)))))))), T15))) → U12_A(T414, T415, T416, T417, T418, T419, T420, T421, T413, app_289_in_aaaa(T412, T414, .(T415, .(T416, .(T417, .(T418, .(T419, .(T420, .(T421, T412))))))), T413))
U11_A(T414, T415, T416, T417, T418, T419, T420, T421, T413, app_18_out_aaa(X27, X54, .(.(T414, .(T415, .(T416, .(T417, .(T418, .(T419, .(T420, .(T421, T412)))))))), T15))) → APP_289_IN_AAAA(T412, T414, .(T415, .(T416, .(T417, .(T418, .(T419, .(T420, .(T421, T412))))))), T413)
APP_289_IN_AAAA(.(T463, T468), T470, T471, .(T463, T469)) → U1_AAAA(T463, T468, T470, T471, T469, app_289_in_aaaa(T468, T470, T471, T469))
APP_289_IN_AAAA(.(T463, T468), T470, T471, .(T463, T469)) → APP_289_IN_AAAA(T468, T470, T471, T469)
g1_in_a(T4) → U2_a(T4, app_18_in_aaa(X27, X54, X7))
app_18_in_aaa(X134, X148, .(.(a, []), .(.(X134, []), .(.(X148, .(c, [])), .([], []))))) → app_18_out_aaa(X134, X148, .(.(a, []), .(.(X134, []), .(.(X148, .(c, [])), .([], [])))))
U2_a(T4, app_18_out_aaa(X27, X54, X7)) → g1_out_a(T4)
g1_in_a([]) → U3_a(app_18_in_aaa(X27, X54, .([], T15)))
U3_a(app_18_out_aaa(X27, X54, .([], T15))) → g1_out_a([])
g1_in_a(.(T36, .(T36, []))) → U4_a(T36, app_18_in_aaa(X27, X54, .(.(T36, []), T15)))
U4_a(T36, app_18_out_aaa(X27, X54, .(.(T36, []), T15))) → g1_out_a(.(T36, .(T36, [])))
g1_in_a(.(T65, .(T66, .(T65, .(T66, []))))) → U5_a(T65, T66, app_18_in_aaa(X27, X54, .(.(T65, .(T66, [])), T15)))
U5_a(T65, T66, app_18_out_aaa(X27, X54, .(.(T65, .(T66, [])), T15))) → g1_out_a(.(T65, .(T66, .(T65, .(T66, [])))))
g1_in_a(.(T105, .(T106, .(T107, .(T105, .(T106, .(T107, []))))))) → U6_a(T105, T106, T107, app_18_in_aaa(X27, X54, .(.(T105, .(T106, .(T107, []))), T15)))
U6_a(T105, T106, T107, app_18_out_aaa(X27, X54, .(.(T105, .(T106, .(T107, []))), T15))) → g1_out_a(.(T105, .(T106, .(T107, .(T105, .(T106, .(T107, [])))))))
g1_in_a(.(T156, .(T157, .(T158, .(T159, .(T156, .(T157, .(T158, .(T159, []))))))))) → U7_a(T156, T157, T158, T159, app_18_in_aaa(X27, X54, .(.(T156, .(T157, .(T158, .(T159, [])))), T15)))
U7_a(T156, T157, T158, T159, app_18_out_aaa(X27, X54, .(.(T156, .(T157, .(T158, .(T159, [])))), T15))) → g1_out_a(.(T156, .(T157, .(T158, .(T159, .(T156, .(T157, .(T158, .(T159, [])))))))))
g1_in_a(.(T218, .(T219, .(T220, .(T221, .(T222, .(T218, .(T219, .(T220, .(T221, .(T222, []))))))))))) → U8_a(T218, T219, T220, T221, T222, app_18_in_aaa(X27, X54, .(.(T218, .(T219, .(T220, .(T221, .(T222, []))))), T15)))
U8_a(T218, T219, T220, T221, T222, app_18_out_aaa(X27, X54, .(.(T218, .(T219, .(T220, .(T221, .(T222, []))))), T15))) → g1_out_a(.(T218, .(T219, .(T220, .(T221, .(T222, .(T218, .(T219, .(T220, .(T221, .(T222, [])))))))))))
g1_in_a(.(T291, .(T292, .(T293, .(T294, .(T295, .(T296, .(T291, .(T292, .(T293, .(T294, .(T295, .(T296, []))))))))))))) → U9_a(T291, T292, T293, T294, T295, T296, app_18_in_aaa(X27, X54, .(.(T291, .(T292, .(T293, .(T294, .(T295, .(T296, [])))))), T15)))
U9_a(T291, T292, T293, T294, T295, T296, app_18_out_aaa(X27, X54, .(.(T291, .(T292, .(T293, .(T294, .(T295, .(T296, [])))))), T15))) → g1_out_a(.(T291, .(T292, .(T293, .(T294, .(T295, .(T296, .(T291, .(T292, .(T293, .(T294, .(T295, .(T296, [])))))))))))))
g1_in_a(.(T375, .(T376, .(T377, .(T378, .(T379, .(T380, .(T381, .(T375, .(T376, .(T377, .(T378, .(T379, .(T380, .(T381, []))))))))))))))) → U10_a(T375, T376, T377, T378, T379, T380, T381, app_18_in_aaa(X27, X54, .(.(T375, .(T376, .(T377, .(T378, .(T379, .(T380, .(T381, []))))))), T15)))
U10_a(T375, T376, T377, T378, T379, T380, T381, app_18_out_aaa(X27, X54, .(.(T375, .(T376, .(T377, .(T378, .(T379, .(T380, .(T381, []))))))), T15))) → g1_out_a(.(T375, .(T376, .(T377, .(T378, .(T379, .(T380, .(T381, .(T375, .(T376, .(T377, .(T378, .(T379, .(T380, .(T381, [])))))))))))))))
g1_in_a(.(T414, .(T415, .(T416, .(T417, .(T418, .(T419, .(T420, .(T421, T413))))))))) → U11_a(T414, T415, T416, T417, T418, T419, T420, T421, T413, app_18_in_aaa(X27, X54, .(.(T414, .(T415, .(T416, .(T417, .(T418, .(T419, .(T420, .(T421, T412)))))))), T15)))
U11_a(T414, T415, T416, T417, T418, T419, T420, T421, T413, app_18_out_aaa(X27, X54, .(.(T414, .(T415, .(T416, .(T417, .(T418, .(T419, .(T420, .(T421, T412)))))))), T15))) → U12_a(T414, T415, T416, T417, T418, T419, T420, T421, T413, app_289_in_aaaa(T412, T414, .(T415, .(T416, .(T417, .(T418, .(T419, .(T420, .(T421, T412))))))), T413))
app_289_in_aaaa([], T451, T452, .(T451, T452)) → app_289_out_aaaa([], T451, T452, .(T451, T452))
app_289_in_aaaa(.(T463, T468), T470, T471, .(T463, T469)) → U1_aaaa(T463, T468, T470, T471, T469, app_289_in_aaaa(T468, T470, T471, T469))
U1_aaaa(T463, T468, T470, T471, T469, app_289_out_aaaa(T468, T470, T471, T469)) → app_289_out_aaaa(.(T463, T468), T470, T471, .(T463, T469))
U12_a(T414, T415, T416, T417, T418, T419, T420, T421, T413, app_289_out_aaaa(T412, T414, .(T415, .(T416, .(T417, .(T418, .(T419, .(T420, .(T421, T412))))))), T413)) → g1_out_a(.(T414, .(T415, .(T416, .(T417, .(T418, .(T419, .(T420, .(T421, T413)))))))))
G1_IN_A(T4) → U2_A(T4, app_18_in_aaa(X27, X54, X7))
G1_IN_A(T4) → APP_18_IN_AAA(X27, X54, X7)
G1_IN_A([]) → U3_A(app_18_in_aaa(X27, X54, .([], T15)))
G1_IN_A([]) → APP_18_IN_AAA(X27, X54, .([], T15))
G1_IN_A(.(T36, .(T36, []))) → U4_A(T36, app_18_in_aaa(X27, X54, .(.(T36, []), T15)))
G1_IN_A(.(T36, .(T36, []))) → APP_18_IN_AAA(X27, X54, .(.(T36, []), T15))
G1_IN_A(.(T65, .(T66, .(T65, .(T66, []))))) → U5_A(T65, T66, app_18_in_aaa(X27, X54, .(.(T65, .(T66, [])), T15)))
G1_IN_A(.(T65, .(T66, .(T65, .(T66, []))))) → APP_18_IN_AAA(X27, X54, .(.(T65, .(T66, [])), T15))
G1_IN_A(.(T105, .(T106, .(T107, .(T105, .(T106, .(T107, []))))))) → U6_A(T105, T106, T107, app_18_in_aaa(X27, X54, .(.(T105, .(T106, .(T107, []))), T15)))
G1_IN_A(.(T105, .(T106, .(T107, .(T105, .(T106, .(T107, []))))))) → APP_18_IN_AAA(X27, X54, .(.(T105, .(T106, .(T107, []))), T15))
G1_IN_A(.(T156, .(T157, .(T158, .(T159, .(T156, .(T157, .(T158, .(T159, []))))))))) → U7_A(T156, T157, T158, T159, app_18_in_aaa(X27, X54, .(.(T156, .(T157, .(T158, .(T159, [])))), T15)))
G1_IN_A(.(T156, .(T157, .(T158, .(T159, .(T156, .(T157, .(T158, .(T159, []))))))))) → APP_18_IN_AAA(X27, X54, .(.(T156, .(T157, .(T158, .(T159, [])))), T15))
G1_IN_A(.(T218, .(T219, .(T220, .(T221, .(T222, .(T218, .(T219, .(T220, .(T221, .(T222, []))))))))))) → U8_A(T218, T219, T220, T221, T222, app_18_in_aaa(X27, X54, .(.(T218, .(T219, .(T220, .(T221, .(T222, []))))), T15)))
G1_IN_A(.(T218, .(T219, .(T220, .(T221, .(T222, .(T218, .(T219, .(T220, .(T221, .(T222, []))))))))))) → APP_18_IN_AAA(X27, X54, .(.(T218, .(T219, .(T220, .(T221, .(T222, []))))), T15))
G1_IN_A(.(T291, .(T292, .(T293, .(T294, .(T295, .(T296, .(T291, .(T292, .(T293, .(T294, .(T295, .(T296, []))))))))))))) → U9_A(T291, T292, T293, T294, T295, T296, app_18_in_aaa(X27, X54, .(.(T291, .(T292, .(T293, .(T294, .(T295, .(T296, [])))))), T15)))
G1_IN_A(.(T291, .(T292, .(T293, .(T294, .(T295, .(T296, .(T291, .(T292, .(T293, .(T294, .(T295, .(T296, []))))))))))))) → APP_18_IN_AAA(X27, X54, .(.(T291, .(T292, .(T293, .(T294, .(T295, .(T296, [])))))), T15))
G1_IN_A(.(T375, .(T376, .(T377, .(T378, .(T379, .(T380, .(T381, .(T375, .(T376, .(T377, .(T378, .(T379, .(T380, .(T381, []))))))))))))))) → U10_A(T375, T376, T377, T378, T379, T380, T381, app_18_in_aaa(X27, X54, .(.(T375, .(T376, .(T377, .(T378, .(T379, .(T380, .(T381, []))))))), T15)))
G1_IN_A(.(T375, .(T376, .(T377, .(T378, .(T379, .(T380, .(T381, .(T375, .(T376, .(T377, .(T378, .(T379, .(T380, .(T381, []))))))))))))))) → APP_18_IN_AAA(X27, X54, .(.(T375, .(T376, .(T377, .(T378, .(T379, .(T380, .(T381, []))))))), T15))
G1_IN_A(.(T414, .(T415, .(T416, .(T417, .(T418, .(T419, .(T420, .(T421, T413))))))))) → U11_A(T414, T415, T416, T417, T418, T419, T420, T421, T413, app_18_in_aaa(X27, X54, .(.(T414, .(T415, .(T416, .(T417, .(T418, .(T419, .(T420, .(T421, T412)))))))), T15)))
G1_IN_A(.(T414, .(T415, .(T416, .(T417, .(T418, .(T419, .(T420, .(T421, T413))))))))) → APP_18_IN_AAA(X27, X54, .(.(T414, .(T415, .(T416, .(T417, .(T418, .(T419, .(T420, .(T421, T412)))))))), T15))
U11_A(T414, T415, T416, T417, T418, T419, T420, T421, T413, app_18_out_aaa(X27, X54, .(.(T414, .(T415, .(T416, .(T417, .(T418, .(T419, .(T420, .(T421, T412)))))))), T15))) → U12_A(T414, T415, T416, T417, T418, T419, T420, T421, T413, app_289_in_aaaa(T412, T414, .(T415, .(T416, .(T417, .(T418, .(T419, .(T420, .(T421, T412))))))), T413))
U11_A(T414, T415, T416, T417, T418, T419, T420, T421, T413, app_18_out_aaa(X27, X54, .(.(T414, .(T415, .(T416, .(T417, .(T418, .(T419, .(T420, .(T421, T412)))))))), T15))) → APP_289_IN_AAAA(T412, T414, .(T415, .(T416, .(T417, .(T418, .(T419, .(T420, .(T421, T412))))))), T413)
APP_289_IN_AAAA(.(T463, T468), T470, T471, .(T463, T469)) → U1_AAAA(T463, T468, T470, T471, T469, app_289_in_aaaa(T468, T470, T471, T469))
APP_289_IN_AAAA(.(T463, T468), T470, T471, .(T463, T469)) → APP_289_IN_AAAA(T468, T470, T471, T469)
g1_in_a(T4) → U2_a(T4, app_18_in_aaa(X27, X54, X7))
app_18_in_aaa(X134, X148, .(.(a, []), .(.(X134, []), .(.(X148, .(c, [])), .([], []))))) → app_18_out_aaa(X134, X148, .(.(a, []), .(.(X134, []), .(.(X148, .(c, [])), .([], [])))))
U2_a(T4, app_18_out_aaa(X27, X54, X7)) → g1_out_a(T4)
g1_in_a([]) → U3_a(app_18_in_aaa(X27, X54, .([], T15)))
U3_a(app_18_out_aaa(X27, X54, .([], T15))) → g1_out_a([])
g1_in_a(.(T36, .(T36, []))) → U4_a(T36, app_18_in_aaa(X27, X54, .(.(T36, []), T15)))
U4_a(T36, app_18_out_aaa(X27, X54, .(.(T36, []), T15))) → g1_out_a(.(T36, .(T36, [])))
g1_in_a(.(T65, .(T66, .(T65, .(T66, []))))) → U5_a(T65, T66, app_18_in_aaa(X27, X54, .(.(T65, .(T66, [])), T15)))
U5_a(T65, T66, app_18_out_aaa(X27, X54, .(.(T65, .(T66, [])), T15))) → g1_out_a(.(T65, .(T66, .(T65, .(T66, [])))))
g1_in_a(.(T105, .(T106, .(T107, .(T105, .(T106, .(T107, []))))))) → U6_a(T105, T106, T107, app_18_in_aaa(X27, X54, .(.(T105, .(T106, .(T107, []))), T15)))
U6_a(T105, T106, T107, app_18_out_aaa(X27, X54, .(.(T105, .(T106, .(T107, []))), T15))) → g1_out_a(.(T105, .(T106, .(T107, .(T105, .(T106, .(T107, [])))))))
g1_in_a(.(T156, .(T157, .(T158, .(T159, .(T156, .(T157, .(T158, .(T159, []))))))))) → U7_a(T156, T157, T158, T159, app_18_in_aaa(X27, X54, .(.(T156, .(T157, .(T158, .(T159, [])))), T15)))
U7_a(T156, T157, T158, T159, app_18_out_aaa(X27, X54, .(.(T156, .(T157, .(T158, .(T159, [])))), T15))) → g1_out_a(.(T156, .(T157, .(T158, .(T159, .(T156, .(T157, .(T158, .(T159, [])))))))))
g1_in_a(.(T218, .(T219, .(T220, .(T221, .(T222, .(T218, .(T219, .(T220, .(T221, .(T222, []))))))))))) → U8_a(T218, T219, T220, T221, T222, app_18_in_aaa(X27, X54, .(.(T218, .(T219, .(T220, .(T221, .(T222, []))))), T15)))
U8_a(T218, T219, T220, T221, T222, app_18_out_aaa(X27, X54, .(.(T218, .(T219, .(T220, .(T221, .(T222, []))))), T15))) → g1_out_a(.(T218, .(T219, .(T220, .(T221, .(T222, .(T218, .(T219, .(T220, .(T221, .(T222, [])))))))))))
g1_in_a(.(T291, .(T292, .(T293, .(T294, .(T295, .(T296, .(T291, .(T292, .(T293, .(T294, .(T295, .(T296, []))))))))))))) → U9_a(T291, T292, T293, T294, T295, T296, app_18_in_aaa(X27, X54, .(.(T291, .(T292, .(T293, .(T294, .(T295, .(T296, [])))))), T15)))
U9_a(T291, T292, T293, T294, T295, T296, app_18_out_aaa(X27, X54, .(.(T291, .(T292, .(T293, .(T294, .(T295, .(T296, [])))))), T15))) → g1_out_a(.(T291, .(T292, .(T293, .(T294, .(T295, .(T296, .(T291, .(T292, .(T293, .(T294, .(T295, .(T296, [])))))))))))))
g1_in_a(.(T375, .(T376, .(T377, .(T378, .(T379, .(T380, .(T381, .(T375, .(T376, .(T377, .(T378, .(T379, .(T380, .(T381, []))))))))))))))) → U10_a(T375, T376, T377, T378, T379, T380, T381, app_18_in_aaa(X27, X54, .(.(T375, .(T376, .(T377, .(T378, .(T379, .(T380, .(T381, []))))))), T15)))
U10_a(T375, T376, T377, T378, T379, T380, T381, app_18_out_aaa(X27, X54, .(.(T375, .(T376, .(T377, .(T378, .(T379, .(T380, .(T381, []))))))), T15))) → g1_out_a(.(T375, .(T376, .(T377, .(T378, .(T379, .(T380, .(T381, .(T375, .(T376, .(T377, .(T378, .(T379, .(T380, .(T381, [])))))))))))))))
g1_in_a(.(T414, .(T415, .(T416, .(T417, .(T418, .(T419, .(T420, .(T421, T413))))))))) → U11_a(T414, T415, T416, T417, T418, T419, T420, T421, T413, app_18_in_aaa(X27, X54, .(.(T414, .(T415, .(T416, .(T417, .(T418, .(T419, .(T420, .(T421, T412)))))))), T15)))
U11_a(T414, T415, T416, T417, T418, T419, T420, T421, T413, app_18_out_aaa(X27, X54, .(.(T414, .(T415, .(T416, .(T417, .(T418, .(T419, .(T420, .(T421, T412)))))))), T15))) → U12_a(T414, T415, T416, T417, T418, T419, T420, T421, T413, app_289_in_aaaa(T412, T414, .(T415, .(T416, .(T417, .(T418, .(T419, .(T420, .(T421, T412))))))), T413))
app_289_in_aaaa([], T451, T452, .(T451, T452)) → app_289_out_aaaa([], T451, T452, .(T451, T452))
app_289_in_aaaa(.(T463, T468), T470, T471, .(T463, T469)) → U1_aaaa(T463, T468, T470, T471, T469, app_289_in_aaaa(T468, T470, T471, T469))
U1_aaaa(T463, T468, T470, T471, T469, app_289_out_aaaa(T468, T470, T471, T469)) → app_289_out_aaaa(.(T463, T468), T470, T471, .(T463, T469))
U12_a(T414, T415, T416, T417, T418, T419, T420, T421, T413, app_289_out_aaaa(T412, T414, .(T415, .(T416, .(T417, .(T418, .(T419, .(T420, .(T421, T412))))))), T413)) → g1_out_a(.(T414, .(T415, .(T416, .(T417, .(T418, .(T419, .(T420, .(T421, T413)))))))))
APP_289_IN_AAAA(.(T463, T468), T470, T471, .(T463, T469)) → APP_289_IN_AAAA(T468, T470, T471, T469)
g1_in_a(T4) → U2_a(T4, app_18_in_aaa(X27, X54, X7))
app_18_in_aaa(X134, X148, .(.(a, []), .(.(X134, []), .(.(X148, .(c, [])), .([], []))))) → app_18_out_aaa(X134, X148, .(.(a, []), .(.(X134, []), .(.(X148, .(c, [])), .([], [])))))
U2_a(T4, app_18_out_aaa(X27, X54, X7)) → g1_out_a(T4)
g1_in_a([]) → U3_a(app_18_in_aaa(X27, X54, .([], T15)))
U3_a(app_18_out_aaa(X27, X54, .([], T15))) → g1_out_a([])
g1_in_a(.(T36, .(T36, []))) → U4_a(T36, app_18_in_aaa(X27, X54, .(.(T36, []), T15)))
U4_a(T36, app_18_out_aaa(X27, X54, .(.(T36, []), T15))) → g1_out_a(.(T36, .(T36, [])))
g1_in_a(.(T65, .(T66, .(T65, .(T66, []))))) → U5_a(T65, T66, app_18_in_aaa(X27, X54, .(.(T65, .(T66, [])), T15)))
U5_a(T65, T66, app_18_out_aaa(X27, X54, .(.(T65, .(T66, [])), T15))) → g1_out_a(.(T65, .(T66, .(T65, .(T66, [])))))
g1_in_a(.(T105, .(T106, .(T107, .(T105, .(T106, .(T107, []))))))) → U6_a(T105, T106, T107, app_18_in_aaa(X27, X54, .(.(T105, .(T106, .(T107, []))), T15)))
U6_a(T105, T106, T107, app_18_out_aaa(X27, X54, .(.(T105, .(T106, .(T107, []))), T15))) → g1_out_a(.(T105, .(T106, .(T107, .(T105, .(T106, .(T107, [])))))))
g1_in_a(.(T156, .(T157, .(T158, .(T159, .(T156, .(T157, .(T158, .(T159, []))))))))) → U7_a(T156, T157, T158, T159, app_18_in_aaa(X27, X54, .(.(T156, .(T157, .(T158, .(T159, [])))), T15)))
U7_a(T156, T157, T158, T159, app_18_out_aaa(X27, X54, .(.(T156, .(T157, .(T158, .(T159, [])))), T15))) → g1_out_a(.(T156, .(T157, .(T158, .(T159, .(T156, .(T157, .(T158, .(T159, [])))))))))
g1_in_a(.(T218, .(T219, .(T220, .(T221, .(T222, .(T218, .(T219, .(T220, .(T221, .(T222, []))))))))))) → U8_a(T218, T219, T220, T221, T222, app_18_in_aaa(X27, X54, .(.(T218, .(T219, .(T220, .(T221, .(T222, []))))), T15)))
U8_a(T218, T219, T220, T221, T222, app_18_out_aaa(X27, X54, .(.(T218, .(T219, .(T220, .(T221, .(T222, []))))), T15))) → g1_out_a(.(T218, .(T219, .(T220, .(T221, .(T222, .(T218, .(T219, .(T220, .(T221, .(T222, [])))))))))))
g1_in_a(.(T291, .(T292, .(T293, .(T294, .(T295, .(T296, .(T291, .(T292, .(T293, .(T294, .(T295, .(T296, []))))))))))))) → U9_a(T291, T292, T293, T294, T295, T296, app_18_in_aaa(X27, X54, .(.(T291, .(T292, .(T293, .(T294, .(T295, .(T296, [])))))), T15)))
U9_a(T291, T292, T293, T294, T295, T296, app_18_out_aaa(X27, X54, .(.(T291, .(T292, .(T293, .(T294, .(T295, .(T296, [])))))), T15))) → g1_out_a(.(T291, .(T292, .(T293, .(T294, .(T295, .(T296, .(T291, .(T292, .(T293, .(T294, .(T295, .(T296, [])))))))))))))
g1_in_a(.(T375, .(T376, .(T377, .(T378, .(T379, .(T380, .(T381, .(T375, .(T376, .(T377, .(T378, .(T379, .(T380, .(T381, []))))))))))))))) → U10_a(T375, T376, T377, T378, T379, T380, T381, app_18_in_aaa(X27, X54, .(.(T375, .(T376, .(T377, .(T378, .(T379, .(T380, .(T381, []))))))), T15)))
U10_a(T375, T376, T377, T378, T379, T380, T381, app_18_out_aaa(X27, X54, .(.(T375, .(T376, .(T377, .(T378, .(T379, .(T380, .(T381, []))))))), T15))) → g1_out_a(.(T375, .(T376, .(T377, .(T378, .(T379, .(T380, .(T381, .(T375, .(T376, .(T377, .(T378, .(T379, .(T380, .(T381, [])))))))))))))))
g1_in_a(.(T414, .(T415, .(T416, .(T417, .(T418, .(T419, .(T420, .(T421, T413))))))))) → U11_a(T414, T415, T416, T417, T418, T419, T420, T421, T413, app_18_in_aaa(X27, X54, .(.(T414, .(T415, .(T416, .(T417, .(T418, .(T419, .(T420, .(T421, T412)))))))), T15)))
U11_a(T414, T415, T416, T417, T418, T419, T420, T421, T413, app_18_out_aaa(X27, X54, .(.(T414, .(T415, .(T416, .(T417, .(T418, .(T419, .(T420, .(T421, T412)))))))), T15))) → U12_a(T414, T415, T416, T417, T418, T419, T420, T421, T413, app_289_in_aaaa(T412, T414, .(T415, .(T416, .(T417, .(T418, .(T419, .(T420, .(T421, T412))))))), T413))
app_289_in_aaaa([], T451, T452, .(T451, T452)) → app_289_out_aaaa([], T451, T452, .(T451, T452))
app_289_in_aaaa(.(T463, T468), T470, T471, .(T463, T469)) → U1_aaaa(T463, T468, T470, T471, T469, app_289_in_aaaa(T468, T470, T471, T469))
U1_aaaa(T463, T468, T470, T471, T469, app_289_out_aaaa(T468, T470, T471, T469)) → app_289_out_aaaa(.(T463, T468), T470, T471, .(T463, T469))
U12_a(T414, T415, T416, T417, T418, T419, T420, T421, T413, app_289_out_aaaa(T412, T414, .(T415, .(T416, .(T417, .(T418, .(T419, .(T420, .(T421, T412))))))), T413)) → g1_out_a(.(T414, .(T415, .(T416, .(T417, .(T418, .(T419, .(T420, .(T421, T413)))))))))
APP_289_IN_AAAA(.(T463, T468), T470, T471, .(T463, T469)) → APP_289_IN_AAAA(T468, T470, T471, T469)
APP_289_IN_AAAA → APP_289_IN_AAAA
g1_in_a(T4) → U2_a(T4, app_18_in_aaa(X27, X54, X7))
app_18_in_aaa(X134, X148, .(.(a, []), .(.(X134, []), .(.(X148, .(c, [])), .([], []))))) → app_18_out_aaa(X134, X148, .(.(a, []), .(.(X134, []), .(.(X148, .(c, [])), .([], [])))))
U2_a(T4, app_18_out_aaa(X27, X54, X7)) → g1_out_a(T4)
g1_in_a([]) → U3_a(app_18_in_aaa(X27, X54, .([], T15)))
U3_a(app_18_out_aaa(X27, X54, .([], T15))) → g1_out_a([])
g1_in_a(.(T36, .(T36, []))) → U4_a(T36, app_18_in_aaa(X27, X54, .(.(T36, []), T15)))
U4_a(T36, app_18_out_aaa(X27, X54, .(.(T36, []), T15))) → g1_out_a(.(T36, .(T36, [])))
g1_in_a(.(T65, .(T66, .(T65, .(T66, []))))) → U5_a(T65, T66, app_18_in_aaa(X27, X54, .(.(T65, .(T66, [])), T15)))
U5_a(T65, T66, app_18_out_aaa(X27, X54, .(.(T65, .(T66, [])), T15))) → g1_out_a(.(T65, .(T66, .(T65, .(T66, [])))))
g1_in_a(.(T105, .(T106, .(T107, .(T105, .(T106, .(T107, []))))))) → U6_a(T105, T106, T107, app_18_in_aaa(X27, X54, .(.(T105, .(T106, .(T107, []))), T15)))
U6_a(T105, T106, T107, app_18_out_aaa(X27, X54, .(.(T105, .(T106, .(T107, []))), T15))) → g1_out_a(.(T105, .(T106, .(T107, .(T105, .(T106, .(T107, [])))))))
g1_in_a(.(T156, .(T157, .(T158, .(T159, .(T156, .(T157, .(T158, .(T159, []))))))))) → U7_a(T156, T157, T158, T159, app_18_in_aaa(X27, X54, .(.(T156, .(T157, .(T158, .(T159, [])))), T15)))
U7_a(T156, T157, T158, T159, app_18_out_aaa(X27, X54, .(.(T156, .(T157, .(T158, .(T159, [])))), T15))) → g1_out_a(.(T156, .(T157, .(T158, .(T159, .(T156, .(T157, .(T158, .(T159, [])))))))))
g1_in_a(.(T218, .(T219, .(T220, .(T221, .(T222, .(T218, .(T219, .(T220, .(T221, .(T222, []))))))))))) → U8_a(T218, T219, T220, T221, T222, app_18_in_aaa(X27, X54, .(.(T218, .(T219, .(T220, .(T221, .(T222, []))))), T15)))
U8_a(T218, T219, T220, T221, T222, app_18_out_aaa(X27, X54, .(.(T218, .(T219, .(T220, .(T221, .(T222, []))))), T15))) → g1_out_a(.(T218, .(T219, .(T220, .(T221, .(T222, .(T218, .(T219, .(T220, .(T221, .(T222, [])))))))))))
g1_in_a(.(T291, .(T292, .(T293, .(T294, .(T295, .(T296, .(T291, .(T292, .(T293, .(T294, .(T295, .(T296, []))))))))))))) → U9_a(T291, T292, T293, T294, T295, T296, app_18_in_aaa(X27, X54, .(.(T291, .(T292, .(T293, .(T294, .(T295, .(T296, [])))))), T15)))
U9_a(T291, T292, T293, T294, T295, T296, app_18_out_aaa(X27, X54, .(.(T291, .(T292, .(T293, .(T294, .(T295, .(T296, [])))))), T15))) → g1_out_a(.(T291, .(T292, .(T293, .(T294, .(T295, .(T296, .(T291, .(T292, .(T293, .(T294, .(T295, .(T296, [])))))))))))))
g1_in_a(.(T375, .(T376, .(T377, .(T378, .(T379, .(T380, .(T381, .(T375, .(T376, .(T377, .(T378, .(T379, .(T380, .(T381, []))))))))))))))) → U10_a(T375, T376, T377, T378, T379, T380, T381, app_18_in_aaa(X27, X54, .(.(T375, .(T376, .(T377, .(T378, .(T379, .(T380, .(T381, []))))))), T15)))
U10_a(T375, T376, T377, T378, T379, T380, T381, app_18_out_aaa(X27, X54, .(.(T375, .(T376, .(T377, .(T378, .(T379, .(T380, .(T381, []))))))), T15))) → g1_out_a(.(T375, .(T376, .(T377, .(T378, .(T379, .(T380, .(T381, .(T375, .(T376, .(T377, .(T378, .(T379, .(T380, .(T381, [])))))))))))))))
g1_in_a(.(T414, .(T415, .(T416, .(T417, .(T418, .(T419, .(T420, .(T421, T413))))))))) → U11_a(T414, T415, T416, T417, T418, T419, T420, T421, T413, app_18_in_aaa(X27, X54, .(.(T414, .(T415, .(T416, .(T417, .(T418, .(T419, .(T420, .(T421, T412)))))))), T15)))
U11_a(T414, T415, T416, T417, T418, T419, T420, T421, T413, app_18_out_aaa(X27, X54, .(.(T414, .(T415, .(T416, .(T417, .(T418, .(T419, .(T420, .(T421, T412)))))))), T15))) → U12_a(T414, T415, T416, T417, T418, T419, T420, T421, T413, app_289_in_aaaa(T412, T414, .(T415, .(T416, .(T417, .(T418, .(T419, .(T420, .(T421, T412))))))), T413))
app_289_in_aaaa([], T451, T452, .(T451, T452)) → app_289_out_aaaa([], T451, T452, .(T451, T452))
app_289_in_aaaa(.(T463, T468), T470, T471, .(T463, T469)) → U1_aaaa(T463, T468, T470, T471, T469, app_289_in_aaaa(T468, T470, T471, T469))
U1_aaaa(T463, T468, T470, T471, T469, app_289_out_aaaa(T468, T470, T471, T469)) → app_289_out_aaaa(.(T463, T468), T470, T471, .(T463, T469))
U12_a(T414, T415, T416, T417, T418, T419, T420, T421, T413, app_289_out_aaaa(T412, T414, .(T415, .(T416, .(T417, .(T418, .(T419, .(T420, .(T421, T412))))))), T413)) → g1_out_a(.(T414, .(T415, .(T416, .(T417, .(T418, .(T419, .(T420, .(T421, T413)))))))))
Infinitary Constructor Rewriting Termination of PiTRS implies Termination of Prolog
g1_in_a(T4) → U2_a(T4, app_18_in_aaa(X27, X54, X7))
app_18_in_aaa(X134, X148, .(.(a, []), .(.(X134, []), .(.(X148, .(c, [])), .([], []))))) → app_18_out_aaa(X134, X148, .(.(a, []), .(.(X134, []), .(.(X148, .(c, [])), .([], [])))))
U2_a(T4, app_18_out_aaa(X27, X54, X7)) → g1_out_a(T4)
g1_in_a([]) → U3_a(app_18_in_aaa(X27, X54, .([], T15)))
U3_a(app_18_out_aaa(X27, X54, .([], T15))) → g1_out_a([])
g1_in_a(.(T36, .(T36, []))) → U4_a(T36, app_18_in_aaa(X27, X54, .(.(T36, []), T15)))
U4_a(T36, app_18_out_aaa(X27, X54, .(.(T36, []), T15))) → g1_out_a(.(T36, .(T36, [])))
g1_in_a(.(T65, .(T66, .(T65, .(T66, []))))) → U5_a(T65, T66, app_18_in_aaa(X27, X54, .(.(T65, .(T66, [])), T15)))
U5_a(T65, T66, app_18_out_aaa(X27, X54, .(.(T65, .(T66, [])), T15))) → g1_out_a(.(T65, .(T66, .(T65, .(T66, [])))))
g1_in_a(.(T105, .(T106, .(T107, .(T105, .(T106, .(T107, []))))))) → U6_a(T105, T106, T107, app_18_in_aaa(X27, X54, .(.(T105, .(T106, .(T107, []))), T15)))
U6_a(T105, T106, T107, app_18_out_aaa(X27, X54, .(.(T105, .(T106, .(T107, []))), T15))) → g1_out_a(.(T105, .(T106, .(T107, .(T105, .(T106, .(T107, [])))))))
g1_in_a(.(T156, .(T157, .(T158, .(T159, .(T156, .(T157, .(T158, .(T159, []))))))))) → U7_a(T156, T157, T158, T159, app_18_in_aaa(X27, X54, .(.(T156, .(T157, .(T158, .(T159, [])))), T15)))
U7_a(T156, T157, T158, T159, app_18_out_aaa(X27, X54, .(.(T156, .(T157, .(T158, .(T159, [])))), T15))) → g1_out_a(.(T156, .(T157, .(T158, .(T159, .(T156, .(T157, .(T158, .(T159, [])))))))))
g1_in_a(.(T218, .(T219, .(T220, .(T221, .(T222, .(T218, .(T219, .(T220, .(T221, .(T222, []))))))))))) → U8_a(T218, T219, T220, T221, T222, app_18_in_aaa(X27, X54, .(.(T218, .(T219, .(T220, .(T221, .(T222, []))))), T15)))
U8_a(T218, T219, T220, T221, T222, app_18_out_aaa(X27, X54, .(.(T218, .(T219, .(T220, .(T221, .(T222, []))))), T15))) → g1_out_a(.(T218, .(T219, .(T220, .(T221, .(T222, .(T218, .(T219, .(T220, .(T221, .(T222, [])))))))))))
g1_in_a(.(T291, .(T292, .(T293, .(T294, .(T295, .(T296, .(T291, .(T292, .(T293, .(T294, .(T295, .(T296, []))))))))))))) → U9_a(T291, T292, T293, T294, T295, T296, app_18_in_aaa(X27, X54, .(.(T291, .(T292, .(T293, .(T294, .(T295, .(T296, [])))))), T15)))
U9_a(T291, T292, T293, T294, T295, T296, app_18_out_aaa(X27, X54, .(.(T291, .(T292, .(T293, .(T294, .(T295, .(T296, [])))))), T15))) → g1_out_a(.(T291, .(T292, .(T293, .(T294, .(T295, .(T296, .(T291, .(T292, .(T293, .(T294, .(T295, .(T296, [])))))))))))))
g1_in_a(.(T375, .(T376, .(T377, .(T378, .(T379, .(T380, .(T381, .(T375, .(T376, .(T377, .(T378, .(T379, .(T380, .(T381, []))))))))))))))) → U10_a(T375, T376, T377, T378, T379, T380, T381, app_18_in_aaa(X27, X54, .(.(T375, .(T376, .(T377, .(T378, .(T379, .(T380, .(T381, []))))))), T15)))
U10_a(T375, T376, T377, T378, T379, T380, T381, app_18_out_aaa(X27, X54, .(.(T375, .(T376, .(T377, .(T378, .(T379, .(T380, .(T381, []))))))), T15))) → g1_out_a(.(T375, .(T376, .(T377, .(T378, .(T379, .(T380, .(T381, .(T375, .(T376, .(T377, .(T378, .(T379, .(T380, .(T381, [])))))))))))))))
g1_in_a(.(T414, .(T415, .(T416, .(T417, .(T418, .(T419, .(T420, .(T421, T413))))))))) → U11_a(T414, T415, T416, T417, T418, T419, T420, T421, T413, app_18_in_aaa(X27, X54, .(.(T414, .(T415, .(T416, .(T417, .(T418, .(T419, .(T420, .(T421, T412)))))))), T15)))
U11_a(T414, T415, T416, T417, T418, T419, T420, T421, T413, app_18_out_aaa(X27, X54, .(.(T414, .(T415, .(T416, .(T417, .(T418, .(T419, .(T420, .(T421, T412)))))))), T15))) → U12_a(T414, T415, T416, T417, T418, T419, T420, T421, T413, app_289_in_aaaa(T412, T414, .(T415, .(T416, .(T417, .(T418, .(T419, .(T420, .(T421, T412))))))), T413))
app_289_in_aaaa([], T451, T452, .(T451, T452)) → app_289_out_aaaa([], T451, T452, .(T451, T452))
app_289_in_aaaa(.(T463, T468), T470, T471, .(T463, T469)) → U1_aaaa(T463, T468, T470, T471, T469, app_289_in_aaaa(T468, T470, T471, T469))
U1_aaaa(T463, T468, T470, T471, T469, app_289_out_aaaa(T468, T470, T471, T469)) → app_289_out_aaaa(.(T463, T468), T470, T471, .(T463, T469))
U12_a(T414, T415, T416, T417, T418, T419, T420, T421, T413, app_289_out_aaaa(T412, T414, .(T415, .(T416, .(T417, .(T418, .(T419, .(T420, .(T421, T412))))))), T413)) → g1_out_a(.(T414, .(T415, .(T416, .(T417, .(T418, .(T419, .(T420, .(T421, T413)))))))))
G1_IN_A(T4) → U2_A(T4, app_18_in_aaa(X27, X54, X7))
G1_IN_A(T4) → APP_18_IN_AAA(X27, X54, X7)
G1_IN_A([]) → U3_A(app_18_in_aaa(X27, X54, .([], T15)))
G1_IN_A([]) → APP_18_IN_AAA(X27, X54, .([], T15))
G1_IN_A(.(T36, .(T36, []))) → U4_A(T36, app_18_in_aaa(X27, X54, .(.(T36, []), T15)))
G1_IN_A(.(T36, .(T36, []))) → APP_18_IN_AAA(X27, X54, .(.(T36, []), T15))
G1_IN_A(.(T65, .(T66, .(T65, .(T66, []))))) → U5_A(T65, T66, app_18_in_aaa(X27, X54, .(.(T65, .(T66, [])), T15)))
G1_IN_A(.(T65, .(T66, .(T65, .(T66, []))))) → APP_18_IN_AAA(X27, X54, .(.(T65, .(T66, [])), T15))
G1_IN_A(.(T105, .(T106, .(T107, .(T105, .(T106, .(T107, []))))))) → U6_A(T105, T106, T107, app_18_in_aaa(X27, X54, .(.(T105, .(T106, .(T107, []))), T15)))
G1_IN_A(.(T105, .(T106, .(T107, .(T105, .(T106, .(T107, []))))))) → APP_18_IN_AAA(X27, X54, .(.(T105, .(T106, .(T107, []))), T15))
G1_IN_A(.(T156, .(T157, .(T158, .(T159, .(T156, .(T157, .(T158, .(T159, []))))))))) → U7_A(T156, T157, T158, T159, app_18_in_aaa(X27, X54, .(.(T156, .(T157, .(T158, .(T159, [])))), T15)))
G1_IN_A(.(T156, .(T157, .(T158, .(T159, .(T156, .(T157, .(T158, .(T159, []))))))))) → APP_18_IN_AAA(X27, X54, .(.(T156, .(T157, .(T158, .(T159, [])))), T15))
G1_IN_A(.(T218, .(T219, .(T220, .(T221, .(T222, .(T218, .(T219, .(T220, .(T221, .(T222, []))))))))))) → U8_A(T218, T219, T220, T221, T222, app_18_in_aaa(X27, X54, .(.(T218, .(T219, .(T220, .(T221, .(T222, []))))), T15)))
G1_IN_A(.(T218, .(T219, .(T220, .(T221, .(T222, .(T218, .(T219, .(T220, .(T221, .(T222, []))))))))))) → APP_18_IN_AAA(X27, X54, .(.(T218, .(T219, .(T220, .(T221, .(T222, []))))), T15))
G1_IN_A(.(T291, .(T292, .(T293, .(T294, .(T295, .(T296, .(T291, .(T292, .(T293, .(T294, .(T295, .(T296, []))))))))))))) → U9_A(T291, T292, T293, T294, T295, T296, app_18_in_aaa(X27, X54, .(.(T291, .(T292, .(T293, .(T294, .(T295, .(T296, [])))))), T15)))
G1_IN_A(.(T291, .(T292, .(T293, .(T294, .(T295, .(T296, .(T291, .(T292, .(T293, .(T294, .(T295, .(T296, []))))))))))))) → APP_18_IN_AAA(X27, X54, .(.(T291, .(T292, .(T293, .(T294, .(T295, .(T296, [])))))), T15))
G1_IN_A(.(T375, .(T376, .(T377, .(T378, .(T379, .(T380, .(T381, .(T375, .(T376, .(T377, .(T378, .(T379, .(T380, .(T381, []))))))))))))))) → U10_A(T375, T376, T377, T378, T379, T380, T381, app_18_in_aaa(X27, X54, .(.(T375, .(T376, .(T377, .(T378, .(T379, .(T380, .(T381, []))))))), T15)))
G1_IN_A(.(T375, .(T376, .(T377, .(T378, .(T379, .(T380, .(T381, .(T375, .(T376, .(T377, .(T378, .(T379, .(T380, .(T381, []))))))))))))))) → APP_18_IN_AAA(X27, X54, .(.(T375, .(T376, .(T377, .(T378, .(T379, .(T380, .(T381, []))))))), T15))
G1_IN_A(.(T414, .(T415, .(T416, .(T417, .(T418, .(T419, .(T420, .(T421, T413))))))))) → U11_A(T414, T415, T416, T417, T418, T419, T420, T421, T413, app_18_in_aaa(X27, X54, .(.(T414, .(T415, .(T416, .(T417, .(T418, .(T419, .(T420, .(T421, T412)))))))), T15)))
G1_IN_A(.(T414, .(T415, .(T416, .(T417, .(T418, .(T419, .(T420, .(T421, T413))))))))) → APP_18_IN_AAA(X27, X54, .(.(T414, .(T415, .(T416, .(T417, .(T418, .(T419, .(T420, .(T421, T412)))))))), T15))
U11_A(T414, T415, T416, T417, T418, T419, T420, T421, T413, app_18_out_aaa(X27, X54, .(.(T414, .(T415, .(T416, .(T417, .(T418, .(T419, .(T420, .(T421, T412)))))))), T15))) → U12_A(T414, T415, T416, T417, T418, T419, T420, T421, T413, app_289_in_aaaa(T412, T414, .(T415, .(T416, .(T417, .(T418, .(T419, .(T420, .(T421, T412))))))), T413))
U11_A(T414, T415, T416, T417, T418, T419, T420, T421, T413, app_18_out_aaa(X27, X54, .(.(T414, .(T415, .(T416, .(T417, .(T418, .(T419, .(T420, .(T421, T412)))))))), T15))) → APP_289_IN_AAAA(T412, T414, .(T415, .(T416, .(T417, .(T418, .(T419, .(T420, .(T421, T412))))))), T413)
APP_289_IN_AAAA(.(T463, T468), T470, T471, .(T463, T469)) → U1_AAAA(T463, T468, T470, T471, T469, app_289_in_aaaa(T468, T470, T471, T469))
APP_289_IN_AAAA(.(T463, T468), T470, T471, .(T463, T469)) → APP_289_IN_AAAA(T468, T470, T471, T469)
g1_in_a(T4) → U2_a(T4, app_18_in_aaa(X27, X54, X7))
app_18_in_aaa(X134, X148, .(.(a, []), .(.(X134, []), .(.(X148, .(c, [])), .([], []))))) → app_18_out_aaa(X134, X148, .(.(a, []), .(.(X134, []), .(.(X148, .(c, [])), .([], [])))))
U2_a(T4, app_18_out_aaa(X27, X54, X7)) → g1_out_a(T4)
g1_in_a([]) → U3_a(app_18_in_aaa(X27, X54, .([], T15)))
U3_a(app_18_out_aaa(X27, X54, .([], T15))) → g1_out_a([])
g1_in_a(.(T36, .(T36, []))) → U4_a(T36, app_18_in_aaa(X27, X54, .(.(T36, []), T15)))
U4_a(T36, app_18_out_aaa(X27, X54, .(.(T36, []), T15))) → g1_out_a(.(T36, .(T36, [])))
g1_in_a(.(T65, .(T66, .(T65, .(T66, []))))) → U5_a(T65, T66, app_18_in_aaa(X27, X54, .(.(T65, .(T66, [])), T15)))
U5_a(T65, T66, app_18_out_aaa(X27, X54, .(.(T65, .(T66, [])), T15))) → g1_out_a(.(T65, .(T66, .(T65, .(T66, [])))))
g1_in_a(.(T105, .(T106, .(T107, .(T105, .(T106, .(T107, []))))))) → U6_a(T105, T106, T107, app_18_in_aaa(X27, X54, .(.(T105, .(T106, .(T107, []))), T15)))
U6_a(T105, T106, T107, app_18_out_aaa(X27, X54, .(.(T105, .(T106, .(T107, []))), T15))) → g1_out_a(.(T105, .(T106, .(T107, .(T105, .(T106, .(T107, [])))))))
g1_in_a(.(T156, .(T157, .(T158, .(T159, .(T156, .(T157, .(T158, .(T159, []))))))))) → U7_a(T156, T157, T158, T159, app_18_in_aaa(X27, X54, .(.(T156, .(T157, .(T158, .(T159, [])))), T15)))
U7_a(T156, T157, T158, T159, app_18_out_aaa(X27, X54, .(.(T156, .(T157, .(T158, .(T159, [])))), T15))) → g1_out_a(.(T156, .(T157, .(T158, .(T159, .(T156, .(T157, .(T158, .(T159, [])))))))))
g1_in_a(.(T218, .(T219, .(T220, .(T221, .(T222, .(T218, .(T219, .(T220, .(T221, .(T222, []))))))))))) → U8_a(T218, T219, T220, T221, T222, app_18_in_aaa(X27, X54, .(.(T218, .(T219, .(T220, .(T221, .(T222, []))))), T15)))
U8_a(T218, T219, T220, T221, T222, app_18_out_aaa(X27, X54, .(.(T218, .(T219, .(T220, .(T221, .(T222, []))))), T15))) → g1_out_a(.(T218, .(T219, .(T220, .(T221, .(T222, .(T218, .(T219, .(T220, .(T221, .(T222, [])))))))))))
g1_in_a(.(T291, .(T292, .(T293, .(T294, .(T295, .(T296, .(T291, .(T292, .(T293, .(T294, .(T295, .(T296, []))))))))))))) → U9_a(T291, T292, T293, T294, T295, T296, app_18_in_aaa(X27, X54, .(.(T291, .(T292, .(T293, .(T294, .(T295, .(T296, [])))))), T15)))
U9_a(T291, T292, T293, T294, T295, T296, app_18_out_aaa(X27, X54, .(.(T291, .(T292, .(T293, .(T294, .(T295, .(T296, [])))))), T15))) → g1_out_a(.(T291, .(T292, .(T293, .(T294, .(T295, .(T296, .(T291, .(T292, .(T293, .(T294, .(T295, .(T296, [])))))))))))))
g1_in_a(.(T375, .(T376, .(T377, .(T378, .(T379, .(T380, .(T381, .(T375, .(T376, .(T377, .(T378, .(T379, .(T380, .(T381, []))))))))))))))) → U10_a(T375, T376, T377, T378, T379, T380, T381, app_18_in_aaa(X27, X54, .(.(T375, .(T376, .(T377, .(T378, .(T379, .(T380, .(T381, []))))))), T15)))
U10_a(T375, T376, T377, T378, T379, T380, T381, app_18_out_aaa(X27, X54, .(.(T375, .(T376, .(T377, .(T378, .(T379, .(T380, .(T381, []))))))), T15))) → g1_out_a(.(T375, .(T376, .(T377, .(T378, .(T379, .(T380, .(T381, .(T375, .(T376, .(T377, .(T378, .(T379, .(T380, .(T381, [])))))))))))))))
g1_in_a(.(T414, .(T415, .(T416, .(T417, .(T418, .(T419, .(T420, .(T421, T413))))))))) → U11_a(T414, T415, T416, T417, T418, T419, T420, T421, T413, app_18_in_aaa(X27, X54, .(.(T414, .(T415, .(T416, .(T417, .(T418, .(T419, .(T420, .(T421, T412)))))))), T15)))
U11_a(T414, T415, T416, T417, T418, T419, T420, T421, T413, app_18_out_aaa(X27, X54, .(.(T414, .(T415, .(T416, .(T417, .(T418, .(T419, .(T420, .(T421, T412)))))))), T15))) → U12_a(T414, T415, T416, T417, T418, T419, T420, T421, T413, app_289_in_aaaa(T412, T414, .(T415, .(T416, .(T417, .(T418, .(T419, .(T420, .(T421, T412))))))), T413))
app_289_in_aaaa([], T451, T452, .(T451, T452)) → app_289_out_aaaa([], T451, T452, .(T451, T452))
app_289_in_aaaa(.(T463, T468), T470, T471, .(T463, T469)) → U1_aaaa(T463, T468, T470, T471, T469, app_289_in_aaaa(T468, T470, T471, T469))
U1_aaaa(T463, T468, T470, T471, T469, app_289_out_aaaa(T468, T470, T471, T469)) → app_289_out_aaaa(.(T463, T468), T470, T471, .(T463, T469))
U12_a(T414, T415, T416, T417, T418, T419, T420, T421, T413, app_289_out_aaaa(T412, T414, .(T415, .(T416, .(T417, .(T418, .(T419, .(T420, .(T421, T412))))))), T413)) → g1_out_a(.(T414, .(T415, .(T416, .(T417, .(T418, .(T419, .(T420, .(T421, T413)))))))))
G1_IN_A(T4) → U2_A(T4, app_18_in_aaa(X27, X54, X7))
G1_IN_A(T4) → APP_18_IN_AAA(X27, X54, X7)
G1_IN_A([]) → U3_A(app_18_in_aaa(X27, X54, .([], T15)))
G1_IN_A([]) → APP_18_IN_AAA(X27, X54, .([], T15))
G1_IN_A(.(T36, .(T36, []))) → U4_A(T36, app_18_in_aaa(X27, X54, .(.(T36, []), T15)))
G1_IN_A(.(T36, .(T36, []))) → APP_18_IN_AAA(X27, X54, .(.(T36, []), T15))
G1_IN_A(.(T65, .(T66, .(T65, .(T66, []))))) → U5_A(T65, T66, app_18_in_aaa(X27, X54, .(.(T65, .(T66, [])), T15)))
G1_IN_A(.(T65, .(T66, .(T65, .(T66, []))))) → APP_18_IN_AAA(X27, X54, .(.(T65, .(T66, [])), T15))
G1_IN_A(.(T105, .(T106, .(T107, .(T105, .(T106, .(T107, []))))))) → U6_A(T105, T106, T107, app_18_in_aaa(X27, X54, .(.(T105, .(T106, .(T107, []))), T15)))
G1_IN_A(.(T105, .(T106, .(T107, .(T105, .(T106, .(T107, []))))))) → APP_18_IN_AAA(X27, X54, .(.(T105, .(T106, .(T107, []))), T15))
G1_IN_A(.(T156, .(T157, .(T158, .(T159, .(T156, .(T157, .(T158, .(T159, []))))))))) → U7_A(T156, T157, T158, T159, app_18_in_aaa(X27, X54, .(.(T156, .(T157, .(T158, .(T159, [])))), T15)))
G1_IN_A(.(T156, .(T157, .(T158, .(T159, .(T156, .(T157, .(T158, .(T159, []))))))))) → APP_18_IN_AAA(X27, X54, .(.(T156, .(T157, .(T158, .(T159, [])))), T15))
G1_IN_A(.(T218, .(T219, .(T220, .(T221, .(T222, .(T218, .(T219, .(T220, .(T221, .(T222, []))))))))))) → U8_A(T218, T219, T220, T221, T222, app_18_in_aaa(X27, X54, .(.(T218, .(T219, .(T220, .(T221, .(T222, []))))), T15)))
G1_IN_A(.(T218, .(T219, .(T220, .(T221, .(T222, .(T218, .(T219, .(T220, .(T221, .(T222, []))))))))))) → APP_18_IN_AAA(X27, X54, .(.(T218, .(T219, .(T220, .(T221, .(T222, []))))), T15))
G1_IN_A(.(T291, .(T292, .(T293, .(T294, .(T295, .(T296, .(T291, .(T292, .(T293, .(T294, .(T295, .(T296, []))))))))))))) → U9_A(T291, T292, T293, T294, T295, T296, app_18_in_aaa(X27, X54, .(.(T291, .(T292, .(T293, .(T294, .(T295, .(T296, [])))))), T15)))
G1_IN_A(.(T291, .(T292, .(T293, .(T294, .(T295, .(T296, .(T291, .(T292, .(T293, .(T294, .(T295, .(T296, []))))))))))))) → APP_18_IN_AAA(X27, X54, .(.(T291, .(T292, .(T293, .(T294, .(T295, .(T296, [])))))), T15))
G1_IN_A(.(T375, .(T376, .(T377, .(T378, .(T379, .(T380, .(T381, .(T375, .(T376, .(T377, .(T378, .(T379, .(T380, .(T381, []))))))))))))))) → U10_A(T375, T376, T377, T378, T379, T380, T381, app_18_in_aaa(X27, X54, .(.(T375, .(T376, .(T377, .(T378, .(T379, .(T380, .(T381, []))))))), T15)))
G1_IN_A(.(T375, .(T376, .(T377, .(T378, .(T379, .(T380, .(T381, .(T375, .(T376, .(T377, .(T378, .(T379, .(T380, .(T381, []))))))))))))))) → APP_18_IN_AAA(X27, X54, .(.(T375, .(T376, .(T377, .(T378, .(T379, .(T380, .(T381, []))))))), T15))
G1_IN_A(.(T414, .(T415, .(T416, .(T417, .(T418, .(T419, .(T420, .(T421, T413))))))))) → U11_A(T414, T415, T416, T417, T418, T419, T420, T421, T413, app_18_in_aaa(X27, X54, .(.(T414, .(T415, .(T416, .(T417, .(T418, .(T419, .(T420, .(T421, T412)))))))), T15)))
G1_IN_A(.(T414, .(T415, .(T416, .(T417, .(T418, .(T419, .(T420, .(T421, T413))))))))) → APP_18_IN_AAA(X27, X54, .(.(T414, .(T415, .(T416, .(T417, .(T418, .(T419, .(T420, .(T421, T412)))))))), T15))
U11_A(T414, T415, T416, T417, T418, T419, T420, T421, T413, app_18_out_aaa(X27, X54, .(.(T414, .(T415, .(T416, .(T417, .(T418, .(T419, .(T420, .(T421, T412)))))))), T15))) → U12_A(T414, T415, T416, T417, T418, T419, T420, T421, T413, app_289_in_aaaa(T412, T414, .(T415, .(T416, .(T417, .(T418, .(T419, .(T420, .(T421, T412))))))), T413))
U11_A(T414, T415, T416, T417, T418, T419, T420, T421, T413, app_18_out_aaa(X27, X54, .(.(T414, .(T415, .(T416, .(T417, .(T418, .(T419, .(T420, .(T421, T412)))))))), T15))) → APP_289_IN_AAAA(T412, T414, .(T415, .(T416, .(T417, .(T418, .(T419, .(T420, .(T421, T412))))))), T413)
APP_289_IN_AAAA(.(T463, T468), T470, T471, .(T463, T469)) → U1_AAAA(T463, T468, T470, T471, T469, app_289_in_aaaa(T468, T470, T471, T469))
APP_289_IN_AAAA(.(T463, T468), T470, T471, .(T463, T469)) → APP_289_IN_AAAA(T468, T470, T471, T469)
g1_in_a(T4) → U2_a(T4, app_18_in_aaa(X27, X54, X7))
app_18_in_aaa(X134, X148, .(.(a, []), .(.(X134, []), .(.(X148, .(c, [])), .([], []))))) → app_18_out_aaa(X134, X148, .(.(a, []), .(.(X134, []), .(.(X148, .(c, [])), .([], [])))))
U2_a(T4, app_18_out_aaa(X27, X54, X7)) → g1_out_a(T4)
g1_in_a([]) → U3_a(app_18_in_aaa(X27, X54, .([], T15)))
U3_a(app_18_out_aaa(X27, X54, .([], T15))) → g1_out_a([])
g1_in_a(.(T36, .(T36, []))) → U4_a(T36, app_18_in_aaa(X27, X54, .(.(T36, []), T15)))
U4_a(T36, app_18_out_aaa(X27, X54, .(.(T36, []), T15))) → g1_out_a(.(T36, .(T36, [])))
g1_in_a(.(T65, .(T66, .(T65, .(T66, []))))) → U5_a(T65, T66, app_18_in_aaa(X27, X54, .(.(T65, .(T66, [])), T15)))
U5_a(T65, T66, app_18_out_aaa(X27, X54, .(.(T65, .(T66, [])), T15))) → g1_out_a(.(T65, .(T66, .(T65, .(T66, [])))))
g1_in_a(.(T105, .(T106, .(T107, .(T105, .(T106, .(T107, []))))))) → U6_a(T105, T106, T107, app_18_in_aaa(X27, X54, .(.(T105, .(T106, .(T107, []))), T15)))
U6_a(T105, T106, T107, app_18_out_aaa(X27, X54, .(.(T105, .(T106, .(T107, []))), T15))) → g1_out_a(.(T105, .(T106, .(T107, .(T105, .(T106, .(T107, [])))))))
g1_in_a(.(T156, .(T157, .(T158, .(T159, .(T156, .(T157, .(T158, .(T159, []))))))))) → U7_a(T156, T157, T158, T159, app_18_in_aaa(X27, X54, .(.(T156, .(T157, .(T158, .(T159, [])))), T15)))
U7_a(T156, T157, T158, T159, app_18_out_aaa(X27, X54, .(.(T156, .(T157, .(T158, .(T159, [])))), T15))) → g1_out_a(.(T156, .(T157, .(T158, .(T159, .(T156, .(T157, .(T158, .(T159, [])))))))))
g1_in_a(.(T218, .(T219, .(T220, .(T221, .(T222, .(T218, .(T219, .(T220, .(T221, .(T222, []))))))))))) → U8_a(T218, T219, T220, T221, T222, app_18_in_aaa(X27, X54, .(.(T218, .(T219, .(T220, .(T221, .(T222, []))))), T15)))
U8_a(T218, T219, T220, T221, T222, app_18_out_aaa(X27, X54, .(.(T218, .(T219, .(T220, .(T221, .(T222, []))))), T15))) → g1_out_a(.(T218, .(T219, .(T220, .(T221, .(T222, .(T218, .(T219, .(T220, .(T221, .(T222, [])))))))))))
g1_in_a(.(T291, .(T292, .(T293, .(T294, .(T295, .(T296, .(T291, .(T292, .(T293, .(T294, .(T295, .(T296, []))))))))))))) → U9_a(T291, T292, T293, T294, T295, T296, app_18_in_aaa(X27, X54, .(.(T291, .(T292, .(T293, .(T294, .(T295, .(T296, [])))))), T15)))
U9_a(T291, T292, T293, T294, T295, T296, app_18_out_aaa(X27, X54, .(.(T291, .(T292, .(T293, .(T294, .(T295, .(T296, [])))))), T15))) → g1_out_a(.(T291, .(T292, .(T293, .(T294, .(T295, .(T296, .(T291, .(T292, .(T293, .(T294, .(T295, .(T296, [])))))))))))))
g1_in_a(.(T375, .(T376, .(T377, .(T378, .(T379, .(T380, .(T381, .(T375, .(T376, .(T377, .(T378, .(T379, .(T380, .(T381, []))))))))))))))) → U10_a(T375, T376, T377, T378, T379, T380, T381, app_18_in_aaa(X27, X54, .(.(T375, .(T376, .(T377, .(T378, .(T379, .(T380, .(T381, []))))))), T15)))
U10_a(T375, T376, T377, T378, T379, T380, T381, app_18_out_aaa(X27, X54, .(.(T375, .(T376, .(T377, .(T378, .(T379, .(T380, .(T381, []))))))), T15))) → g1_out_a(.(T375, .(T376, .(T377, .(T378, .(T379, .(T380, .(T381, .(T375, .(T376, .(T377, .(T378, .(T379, .(T380, .(T381, [])))))))))))))))
g1_in_a(.(T414, .(T415, .(T416, .(T417, .(T418, .(T419, .(T420, .(T421, T413))))))))) → U11_a(T414, T415, T416, T417, T418, T419, T420, T421, T413, app_18_in_aaa(X27, X54, .(.(T414, .(T415, .(T416, .(T417, .(T418, .(T419, .(T420, .(T421, T412)))))))), T15)))
U11_a(T414, T415, T416, T417, T418, T419, T420, T421, T413, app_18_out_aaa(X27, X54, .(.(T414, .(T415, .(T416, .(T417, .(T418, .(T419, .(T420, .(T421, T412)))))))), T15))) → U12_a(T414, T415, T416, T417, T418, T419, T420, T421, T413, app_289_in_aaaa(T412, T414, .(T415, .(T416, .(T417, .(T418, .(T419, .(T420, .(T421, T412))))))), T413))
app_289_in_aaaa([], T451, T452, .(T451, T452)) → app_289_out_aaaa([], T451, T452, .(T451, T452))
app_289_in_aaaa(.(T463, T468), T470, T471, .(T463, T469)) → U1_aaaa(T463, T468, T470, T471, T469, app_289_in_aaaa(T468, T470, T471, T469))
U1_aaaa(T463, T468, T470, T471, T469, app_289_out_aaaa(T468, T470, T471, T469)) → app_289_out_aaaa(.(T463, T468), T470, T471, .(T463, T469))
U12_a(T414, T415, T416, T417, T418, T419, T420, T421, T413, app_289_out_aaaa(T412, T414, .(T415, .(T416, .(T417, .(T418, .(T419, .(T420, .(T421, T412))))))), T413)) → g1_out_a(.(T414, .(T415, .(T416, .(T417, .(T418, .(T419, .(T420, .(T421, T413)))))))))
APP_289_IN_AAAA(.(T463, T468), T470, T471, .(T463, T469)) → APP_289_IN_AAAA(T468, T470, T471, T469)
g1_in_a(T4) → U2_a(T4, app_18_in_aaa(X27, X54, X7))
app_18_in_aaa(X134, X148, .(.(a, []), .(.(X134, []), .(.(X148, .(c, [])), .([], []))))) → app_18_out_aaa(X134, X148, .(.(a, []), .(.(X134, []), .(.(X148, .(c, [])), .([], [])))))
U2_a(T4, app_18_out_aaa(X27, X54, X7)) → g1_out_a(T4)
g1_in_a([]) → U3_a(app_18_in_aaa(X27, X54, .([], T15)))
U3_a(app_18_out_aaa(X27, X54, .([], T15))) → g1_out_a([])
g1_in_a(.(T36, .(T36, []))) → U4_a(T36, app_18_in_aaa(X27, X54, .(.(T36, []), T15)))
U4_a(T36, app_18_out_aaa(X27, X54, .(.(T36, []), T15))) → g1_out_a(.(T36, .(T36, [])))
g1_in_a(.(T65, .(T66, .(T65, .(T66, []))))) → U5_a(T65, T66, app_18_in_aaa(X27, X54, .(.(T65, .(T66, [])), T15)))
U5_a(T65, T66, app_18_out_aaa(X27, X54, .(.(T65, .(T66, [])), T15))) → g1_out_a(.(T65, .(T66, .(T65, .(T66, [])))))
g1_in_a(.(T105, .(T106, .(T107, .(T105, .(T106, .(T107, []))))))) → U6_a(T105, T106, T107, app_18_in_aaa(X27, X54, .(.(T105, .(T106, .(T107, []))), T15)))
U6_a(T105, T106, T107, app_18_out_aaa(X27, X54, .(.(T105, .(T106, .(T107, []))), T15))) → g1_out_a(.(T105, .(T106, .(T107, .(T105, .(T106, .(T107, [])))))))
g1_in_a(.(T156, .(T157, .(T158, .(T159, .(T156, .(T157, .(T158, .(T159, []))))))))) → U7_a(T156, T157, T158, T159, app_18_in_aaa(X27, X54, .(.(T156, .(T157, .(T158, .(T159, [])))), T15)))
U7_a(T156, T157, T158, T159, app_18_out_aaa(X27, X54, .(.(T156, .(T157, .(T158, .(T159, [])))), T15))) → g1_out_a(.(T156, .(T157, .(T158, .(T159, .(T156, .(T157, .(T158, .(T159, [])))))))))
g1_in_a(.(T218, .(T219, .(T220, .(T221, .(T222, .(T218, .(T219, .(T220, .(T221, .(T222, []))))))))))) → U8_a(T218, T219, T220, T221, T222, app_18_in_aaa(X27, X54, .(.(T218, .(T219, .(T220, .(T221, .(T222, []))))), T15)))
U8_a(T218, T219, T220, T221, T222, app_18_out_aaa(X27, X54, .(.(T218, .(T219, .(T220, .(T221, .(T222, []))))), T15))) → g1_out_a(.(T218, .(T219, .(T220, .(T221, .(T222, .(T218, .(T219, .(T220, .(T221, .(T222, [])))))))))))
g1_in_a(.(T291, .(T292, .(T293, .(T294, .(T295, .(T296, .(T291, .(T292, .(T293, .(T294, .(T295, .(T296, []))))))))))))) → U9_a(T291, T292, T293, T294, T295, T296, app_18_in_aaa(X27, X54, .(.(T291, .(T292, .(T293, .(T294, .(T295, .(T296, [])))))), T15)))
U9_a(T291, T292, T293, T294, T295, T296, app_18_out_aaa(X27, X54, .(.(T291, .(T292, .(T293, .(T294, .(T295, .(T296, [])))))), T15))) → g1_out_a(.(T291, .(T292, .(T293, .(T294, .(T295, .(T296, .(T291, .(T292, .(T293, .(T294, .(T295, .(T296, [])))))))))))))
g1_in_a(.(T375, .(T376, .(T377, .(T378, .(T379, .(T380, .(T381, .(T375, .(T376, .(T377, .(T378, .(T379, .(T380, .(T381, []))))))))))))))) → U10_a(T375, T376, T377, T378, T379, T380, T381, app_18_in_aaa(X27, X54, .(.(T375, .(T376, .(T377, .(T378, .(T379, .(T380, .(T381, []))))))), T15)))
U10_a(T375, T376, T377, T378, T379, T380, T381, app_18_out_aaa(X27, X54, .(.(T375, .(T376, .(T377, .(T378, .(T379, .(T380, .(T381, []))))))), T15))) → g1_out_a(.(T375, .(T376, .(T377, .(T378, .(T379, .(T380, .(T381, .(T375, .(T376, .(T377, .(T378, .(T379, .(T380, .(T381, [])))))))))))))))
g1_in_a(.(T414, .(T415, .(T416, .(T417, .(T418, .(T419, .(T420, .(T421, T413))))))))) → U11_a(T414, T415, T416, T417, T418, T419, T420, T421, T413, app_18_in_aaa(X27, X54, .(.(T414, .(T415, .(T416, .(T417, .(T418, .(T419, .(T420, .(T421, T412)))))))), T15)))
U11_a(T414, T415, T416, T417, T418, T419, T420, T421, T413, app_18_out_aaa(X27, X54, .(.(T414, .(T415, .(T416, .(T417, .(T418, .(T419, .(T420, .(T421, T412)))))))), T15))) → U12_a(T414, T415, T416, T417, T418, T419, T420, T421, T413, app_289_in_aaaa(T412, T414, .(T415, .(T416, .(T417, .(T418, .(T419, .(T420, .(T421, T412))))))), T413))
app_289_in_aaaa([], T451, T452, .(T451, T452)) → app_289_out_aaaa([], T451, T452, .(T451, T452))
app_289_in_aaaa(.(T463, T468), T470, T471, .(T463, T469)) → U1_aaaa(T463, T468, T470, T471, T469, app_289_in_aaaa(T468, T470, T471, T469))
U1_aaaa(T463, T468, T470, T471, T469, app_289_out_aaaa(T468, T470, T471, T469)) → app_289_out_aaaa(.(T463, T468), T470, T471, .(T463, T469))
U12_a(T414, T415, T416, T417, T418, T419, T420, T421, T413, app_289_out_aaaa(T412, T414, .(T415, .(T416, .(T417, .(T418, .(T419, .(T420, .(T421, T412))))))), T413)) → g1_out_a(.(T414, .(T415, .(T416, .(T417, .(T418, .(T419, .(T420, .(T421, T413)))))))))
APP_289_IN_AAAA(.(T463, T468), T470, T471, .(T463, T469)) → APP_289_IN_AAAA(T468, T470, T471, T469)
APP_289_IN_AAAA → APP_289_IN_AAAA