Update error message for invariant checking
ci/woodpecker/push/build Pipeline was successful Details

This commit is contained in:
Nicolas Méric 2022-12-09 16:11:57 +01:00
parent 37d7ed7d17
commit 0b2d28b547
1 changed files with 3 additions and 1 deletions

View File

@ -1622,7 +1622,9 @@ fun check_invariants thy oid =
(* If Goal.prove does not fail, then the evaluation is considered True,
else an error is triggered by Goal.prove *)
in @{term True} end)
else ISA_core.err ("Invariant " ^ inv_name ^ " violated." ) pos
else ISA_core.err ("Fail to check invariant "
^ inv_name
^ ". Try to activate invariants_checking_with_tactics.") pos
in (if evaluated_term = \<^term>\<open>True\<close>
then ((inv_name, pos), term)
else ISA_core.err ("Invariant " ^ inv_name ^ " violated") pos)