https://9dok.net/document/zwv9lg6v-modularterminationproofsofrecursivejavabytecodeprogramsbytermrewriting-dfkhq.html