© The Author(s), under exclusive license to APress Media, LLC, part of Springer Nature 2022
B. SitnikovskiIntroducing Software Verification with Dafny Languagehttps://doi.org/10.1007/978-1-4842-7978-6_6

6. Specifications

Boro Sitnikovski1  
(1)
Skopje, North Macedonia
 

Specifications, as a special form of computation, allow us to be precise by verifying that some existing computation performs the desired result. In this chapter, we will cover the details behind specifications.

6.1 Hoare Logic

Definition 1Hoare logic is a formal system that allows to reason about the correctness of computer programs. The key feature of Hoare logic is the Hoare triple ...

Get Introducing Software Verification with Dafny Language: Proving Program Correctness now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.