We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The axiom axiom_seq_add_index2 is unsound:
axiom_seq_add_index2
verus/source/pervasive/seq.rs
Lines 352 to 357 in 214c3d8
Here's a proof of false:
use vstd::prelude::*; verus! { proof fn seq_bad() ensures false { let s1: Seq<int> = seq![1]; let s1_2: Seq<int> = seq![1, 2]; let s2: Seq<int> = seq![]; assert(s1.add(s2)[0] == s2[-1]); assert(s1_2.add(s2)[1] == s2[-1]); } fn main() {} }
The lemma becomes true if the precondition is changed to 0 <= s1.len() <= i.
0 <= s1.len() <= i
The text was updated successfully, but these errors were encountered:
Fix Seq add axiom #990
bf057b6
Oops. That's a good motivation for #988 .
Sorry, something went wrong.
Fixed by bf057b6
Chris-Hawblitzel
No branches or pull requests
The axiom
axiom_seq_add_index2
is unsound:verus/source/pervasive/seq.rs
Lines 352 to 357 in 214c3d8
Here's a proof of false:
The lemma becomes true if the precondition is changed to
0 <= s1.len() <= i
.The text was updated successfully, but these errors were encountered: