In this chapter, we’ll dive deeper into mathematical proofs to get us prepared for applying them to prove software correctness within Dafny.
We will start with the most basic concept: substitution. It lies at the core of mathematics and, as such, plays an important role in mathematical proofs. Substitution consists of a systematic replacement of the appearances of a symbol with a certain value, and it can be applied in a variety of contexts involving formal systems.
Definition 1 In an expression ...