TY - GEN
T1 - Lessons of Formal Program Design in Dafny
AU - Ettinger, Ran
N1 - Publisher Copyright:
© 2021, Springer Nature Switzerland AG.
PY - 2021/1/1
Y1 - 2021/1/1
N2 - Building on the long tradition of program derivation, whereby starting from a formal specification and progressing in small steps of refinement we end-up with correct executable code, this paper presents an approach for teaching that craft using the language and verifier Dafny. Some lessons from the first six years of teaching this material to final-year CS and SE undergraduate students are reported, with emphasis on the merits (and challenges) of using Dafny during live interactive sessions in the classroom.
AB - Building on the long tradition of program derivation, whereby starting from a formal specification and progressing in small steps of refinement we end-up with correct executable code, this paper presents an approach for teaching that craft using the language and verifier Dafny. Some lessons from the first six years of teaching this material to final-year CS and SE undergraduate students are reported, with emphasis on the merits (and challenges) of using Dafny during live interactive sessions in the classroom.
KW - Auto-active verification
KW - Insertion sort
KW - Refinement laws
KW - Specification statement
UR - http://www.scopus.com/inward/record.url?scp=85121690285&partnerID=8YFLogxK
U2 - 10.1007/978-3-030-91550-6_7
DO - 10.1007/978-3-030-91550-6_7
M3 - Conference contribution
AN - SCOPUS:85121690285
SN - 9783030915490
T3 - Lecture Notes in Computer Science (including subseries Lecture Notes in Artificial Intelligence and Lecture Notes in Bioinformatics)
SP - 84
EP - 100
BT - Formal Methods Teaching - 4th International Workshop and Tutorial, FMTea 2021, Proceedings
A2 - Ferreira, João F.
A2 - Mendes, Alexandra
A2 - Menghi, Claudio
PB - Springer Science and Business Media Deutschland GmbH
T2 - 4th International Workshop and Tutorial, FMTea 2021, held as part of the 4th World Congress on Formal Methods, FM 2021
Y2 - 21 November 2021 through 21 November 2021
ER -