【发布时间】:2013-09-25 18:48:43
【问题描述】:
如何对合金中的模算子建模?
我想用合金来证明任何 4 的倍数都可以被 2 整除....
这是我的代码..
//proof that 4n is divisible by 2
module I4nDivisibleby2
sig num {}
fact {
all n:num|n%4=0
}
assert even {
all n : num | n%2 = 0
}
check even for 1
这不会编译
【问题讨论】:
标签: alloy