英文: Dafny function-by-method fails to prove correct post-conditions 问题 我的代码只包含function子句,但我需要遍历一些集合。...
Dafny的按方法进行的函数无法证明正确的后置条件。
英文: Dafny function-by-method fails to prove correct post-conditions 问题 My codes only contains functi...
多个减少的行数(这是一个错误吗?)
英文: multiple decreases lines (is this a bug?) 问题 "我用Dafny玩了一下,并做了Leino的书中的练习。练习3.5要求添加一个decreas...
这个不变量是否正确?
英文: Is this invariant correct? 问题 我试图迭代计算一个自然数序列的最大元素,但在循环不变式中出现错误。 有人能告诉我正确的代码循环不变式是什么吗? 这是代码: ```d...
使用递归函数证明迭代算法(Dafny)
英文: Proving an iterative algorithm with recursive functions (Dafny) 问题 我有这个算法,用于计算给定整数数组中唯一数字的乘积: me...
Iterative algorithm and functional code (Dafny) = 迭代算法和功能性代码(Dafny)
英文: Iterative algorithm and functional code (Dafny) 问题 Here's the translation of the code portions y...
IsPerfectSquare(Dafny)
英文: IsPerfectSquare (Dafny) 问题 I have this IsPerfectSquare predicate that is used in post/pre condit...
Dafny 在与不成立的 assume 一起使用时验证一个 assert。
英文: Dafny verifies an assert when used with an assume which does not hold 问题 I used assume and asser...
如何在子集类型证明子句中提供非空类型(参数)的任意值?
英文: How to provide an arbitrary value of a non-empty type (parameter) in a subset type witness claus...
如何导出在Dafny中打开的模块的成员?
英文: How to export members of opened module in Dafny? 问题 I can't get the following example to pass re...