Introducing Software Verification with Dafny Language: Proving Program Correctness

  • 1h 21m
  • Boro Sitnikovski
  • Apress
  • 2022

Get introduced to software verification and proving correctness using the Microsoft Research-backed programming language, Dafny. While some other books on this topic are quite mathematically rigorous, this book will use as little mathematical symbols and rigor as possible, and explain every concept using plain English. It's the perfect primer for software programmers and developers with C# and other programming language skills.

Writing correct software can be hard, so you'll learn the concept of computation and software verification. Then, apply these concepts and techniques to confidently write bug-free code that is easy to understand. Source code will be available throughout the book and freely available via GitHub.

After reading and using this book you'll be able write correct, big free software source code applicable no matter which platform and programming language you use.

You will:

  • Discover the Microsoft Research-backed Dafny programming language
  • Explore Hoare logic, imperative and functional programs
  • Work with pre- and post-conditions
  • Use data types, pattern matching, and classes
  • Dive into verification examples for potential re-use for your own projects

About the Author

Boro Sitnikovski has over ten years of experience working professionally as a software engineer. He started programming with assembly on an Intel x86 at the age of ten. While in high school, he won several prizes in competitive programming, varying from 4th, 3rd, and 1st place. He is an informatics graduate - his bachelor’s thesis was titled “Programming in Haskell using algebraic data structures”, and his master’s thesis was titled “Formal verification of Instruction Sets in Virtual Machines”. He has also published a few papers on software verification. Other research interests of his include programming languages, mathematics, logic, algorithms, and writing correct software. He is a strong believer in the open-source philosophy and contributes to various open-source projects. In his spare time, he enjoys some time off with his family.

In this Book

  • Preface
  • Languages and Systems
  • Our First Program
  • Logic
  • Computation
  • Mathematical Foundations
  • Proofs
  • Specifications
  • Mathematical Induction
  • Verification Exercises
  • Implementing a Formal System
  • Appendix A—Gödel’s Theorems
  • Conclusion
  • Bibliography