Information required to prove properties of such variables must be expressed explicitly in the loop invariant.
La información requerida para probar propiedades de estas variables debe estar expresada explícitamente en el invariante del bucle.
The above example also illustrates the use of an inductive loop invariant.
El ejemplo anterior ilustra también el uso de un invariante de lazo inductivo.
The loop invariant does not affect the meaning of the program and, in some sense, might be considered as unnecessary.
El invariante de lazo no afecta el significado del programa y, en algún sentido, podría ser considerado como innecesario.
In this case, the loop invariant states what is known about the elements of the items examined so far - namely, that none of them matches the given item.
En este caso, el invariante de lazo establece los que se sabe sobre los elementos del arreglo que ya han sido examinados - concretamente, que ninguno de ellos es igual al elemento buscado.
Likewise, the loop invariant and loop variant are given through the invariant and decreases clauses (respectively).
Así mismo, el invariante y el variante del bucle se dan con las cláusulas invariant y decreases (respectivamente).
In the example above, it would seem the loop invariant invariant i >= 0 is also required as variable i is mutated within the loop.
En el ejemplo anterior, podría parecer que el invariante de bucle invariant i >= 0 es necesario dado que i es alterada en el bucle.
In this case, the declaration prevents the need for an additional loop invariant of the form where i >= 0 which would otherwise be necessary.
En este caso, la declaración evita la necesidad de un invariante de lazo adicional de la forma where i >= 0 que de otra forma sería necesario.
However, the loop invariant is required to help the automated verifier using in the Whiley Compiler to prove this function meets its specification.
Aun así, el invariante de lazo es requerido para ayudar la verificación automatizada utilizada en el compilador de Whiley para probar que esta función cumple con su especificación.