100 likes | 231 Views
This lecture by K. Rustan M. Leino at the Marktoberdorf Summer School 2011 explores the development of automatic program verification using Dafny and Isar. Key concepts include lemmas, ghost methods, and proof assertions, showcased through practical examples such as the FindZero demo and structured exercises. The lecture emphasizes the integration of theoretical verification methods with hands-on coding experiences, fostering a deeper understanding of software reliability. Resources and links for further learning are also provided.
E N D
Using and Building an Automatic Program Verifier K. Rustan M. Leino Research in Software Engineering (RiSE) Microsoft Research, Redmond Lecture 2 Marktoberdorf Summer School 2011 Bayrischzell, BY, Germany 6 August 2011
Isar and Dafny lemma name: P proof hence Q by sledgehammer hence R bysimp thus S by grind end
Isar and Dafny lemma name: P proof assert Q by sledgehammer assert R bysimp assert S by grind end
Isar and Dafny ghost method name() ensures P { assert Q by sledgehammer assert R bysimp assert S by grind }
Isar and Dafny ghost method name() ensures P { assert Q bydafny assert R bydafny assert S bydafny }
Isar and Dafny ghost method name() ensures P; { assert Q; assert R; assert S; }
Ghost variables, ghost code demo FindZero continued
Object structures demo List
Exercises • List • http://rise4fun.com/Dafny/MbH • RockBand • http://rise4fun.com/Dafny/wjD
Links • Dafny • research.microsoft.com/dafny • rise4fun • rise4fun.com • Verification Corner • research.microsoft.com/verificationcorner