CADiZ

Reference manual / Z-related commands / Decision procedure commands / heuristic solution


The heuristic solution command is applicable to universal and existential quantification predicates to which the heuristic decision command is also applicable. For an existential quantification that is true, heuristic solution reveals a solution. For a universal quantification that is false, heuristic solution reveals a counter-example. It effectively uses a quantification tac command to reveal the solutions.

In the cases where there is no solution or counter-example, heuristic solution reports ``Nothing changed''.

Tactic example

"heuristic solution" "number" p1 p2

This example applies the heuristic decision command to predicates p1 and p2, using the number in the string literal to seed a random number generator to ensure repeatable behaviour.

"heuristic solution" p1 p2

This example applies the heuristic decision command to predicates p1 and p2, using a random seed.


IT 3-Apr-2000