20 likes | 164 Vues
This text explores the concept of correctness in relation to functions and their pre- and post-conditions. It discusses how specifications may contain errors and the implications of these errors on function calls. The piece offers insight into the conditions under which proofs of correctness can be established and illustrates the challenges that arise when specifications are flawed or ambiguous. The exploration also addresses the role of logical operators in determining the validity of certain assertions within formal verification contexts.
E N D
On the correctness of specs • Given a function and its pre- and post-conditions and , we say that f is correct wrt. , iff • How may the spec be wrong? • may be incorrect, i.e., • there may be , with ( or )and
What does this mean for calls to f? • How to we go about invocations of ? • So, if we need to prove , and then the ‘wrong’ are ‘good enough’ • If, instead, (or ), then we cannot prove