valid¶
assert and check¶
In Alloy, fact is the premises, assert is the conclusion and check is to check the validity between the premises and the conclusion.
If the fact is false, check would always return valid. It will show,
No counterexample found. Assertion may be valid.
fact { 1 = 2 } assert any_assertion { 1 = 2 1 != 2 } check any_assertion
all¶
all a : A | =>