In this chapter, we will provide exercises that can be used to both test your skills and further show what can be proven with Dafny, on the more practical side. For each of the exercises, we will provide its corresponding solution.
8.1 An Odd Implementation
Exercise 1 Write a predicate OddPred that takes a nat and returns true if the number is odd, and false otherwise. Test your ...