About 50 results
Open links in new tab
  1. Closures - Verus Tutorial and Reference

    Closures In the previous chapter, we saw how to pass functions as values, which we did by referencing function items by name. However, it is more common in Rust to creating functions using closures. …

  2. Higher-order executable functions - Verus Tutorial and Reference

    Higher-order executable functions Here we discuss the use of higher order functions via closures and other function types in Rust.

  3. Spec closures - Verus Tutorial and Reference

    Spec Closures Verus supports anonymous functions (known as “closures” in Rust) in ghost code. For example, the following code from earlier in this chapter uses an anonymous function |i: int| 10 * i to …

  4. Documentation with Rustdoc - Verus Tutorial and Reference

    8. Spec closures Tutorial: Understanding the prover Developing proofs 9.1. Using assert and assume 9.2. Devising loop invariants 9.3. Proving absence of overflow Quantifiers 10.1. forall and triggers …

  5. Specification code, proof code, executable code - Verus Tutorial and ...

    Closures 18. Ghost and tracked variables 19. Strings 20. Macros Unsafe code & complex ownership 21.1. Cells / interior mutability 21.2. Pointers 21.3. Concurrency Verifying a container library: Binary …

  6. vstd - Rust - GitHub Pages

    Provides specifications for spec closures as relations. resource rwlock seq seq_lib set set_lib shared simple_ pptr slice std_ specs string thread tokens utf8 Definitions for UTF-8 encoding and decoding …

  7. Putting it all together - Verus Tutorial and Reference

    8. Spec closures Tutorial: Understanding the prover Developing proofs 9.1. Using assert and assume 9.2. Devising loop invariants 9.3. Proving absence of overflow Quantifiers 10.1. forall and triggers …

  8. Mutable references - Verus Tutorial and Reference

    8. Spec closures 9. Quantifiers 9.1. forall and triggers 9.2. Multiple variables, multiple triggers, matching loops 9.3. exists and choose 9.4. Proofs about forall and exists 9.5. Example: binary search 9.6. …

  9. Iterators - Verus Tutorial and Reference

    Executable libraries: Vec 8. Spec closures Quantifiers 9.1. forall and triggers 9.2. Multiple variables, multiple triggers, matching loops 9.3. exists and choose 9.4. Proofs about forall and exists 9.5. …

  10. Integers and nonlinear arithmetic - Verus Tutorial and Reference

    8. Spec closures 9. Quantifiers 9.1. forall and triggers 9.2. Multiple variables, multiple triggers, matching loops 9.3. exists and choose 9.4. Proofs about forall and exists 9.5. Example: binary search 9.6. …

  11. Ghost Erasure - Verus Tutorial and Reference

    8. Spec closures Tutorial: Understanding the prover Developing proofs 9.1. Using assert and assume 9.2. Devising loop invariants 9.3. Proving absence of overflow Quantifiers 10.1. forall and triggers …