Dafny proves false using some complicated loop invariants #6158
Labels
during 3: execution of incorrect program
An bug in the verifier that allows Dafny to run a program that does not correctly implement its spec
kind: bug
Crashes, unsoundness, incorrect output, etc. If possible, add a `part:` label
Dafny version
both 4.10.0 and nightly-2025-03-17-2473d8d
Code to produce this issue
Command to run and resulting output
Both
dafny verify
anddafny run -t py
claim that the program verifies without any errors.What happened?
I was trying to formally verify Fenwick trees and somehow managed to write some weird and complicated loop invariants that cause Dafny to get very confused and prove false, which should not happen.
Even
dafny verify --analyze-proofs main.dfy
doesn't produce errors and only produces a bunch of warnings:What type of operating system are you experiencing the problem on?
Linux
The text was updated successfully, but these errors were encountered: