A loop or a recursive function terminates if every execution reaches its end after finitely many steps. A variant is a function from the states of the loop (or the arguments of the function) to a set with a well-founded order that strictly decreases at each iteration (or at each recursive call). A loop with a variant terminates: otherwise the values of the variant would form an infinite descending chain.
Computer Science · Glossário
O que é Termination, variant?
Também chamado de: termination · variant (termination)