News
Re-Exam RegistrationWritten on 07.03.25 by Andrea Lattuada Dear Students, if you intend to take the Re-Exam, please register on HISPOS (unless you are unable to, in case you are an Erasmus or freemover exchange student) by the deadline. If you are an Erasmus or freemover exchange student who cannot register for the re-exam through HISPOS and you intend to… Read more Dear Students, if you intend to take the Re-Exam, please register on HISPOS (unless you are unable to, in case you are an Erasmus or freemover exchange student) by the deadline. If you are an Erasmus or freemover exchange student who cannot register for the re-exam through HISPOS and you intend to take the Re-Exam, please register on CMS by the deadline (one week before the exam). |
Exam results are outWritten on 05.03.25 by Andrea Lattuada Dear all, if you took the end-of-term exam last week you should now have received your grade and a supplementary email with the score breakdown (project score, and a point breakdown per sub-problem). Please make sure to register if you would like to attend the exam inspection tomorrow in E1 5… Read more Dear all, if you took the end-of-term exam last week you should now have received your grade and a supplementary email with the score breakdown (project score, and a point breakdown per sub-problem). Please make sure to register if you would like to attend the exam inspection tomorrow in E1 5 (MPI-SWS) 029 (the course lecture room) on Thursday March 6th from 16:00 till 17:00. If you would like to attend the inspection but it is not possible for you at the scheduled time, please register, and then reach out separately to andrea@mpi-sws.org, and cc dreyer@mpi-sws.org. |
Exam inspection main timeWritten on 04.03.25 by Andrea Lattuada Dear Students, a correction on the exam inspection time: you will be able to inspect the exams in E1 5 (MPI-SWS) 029 (the course lecture room) on Thursday March 6th from 16:00 till 17:00. Again, the results will be available tomorrow morning. |
Exam results and exam inspectionWritten on 04.03.25 by Andrea Lattuada Dear Students, we will publish the exam results by tomorrow (Wednesday 5) morning. You will be able to inspect the exams in E1 5 (MPI-SWS) 029 (the course lecture room) on Thursday March 6th from 15:30 till 16:30. Once you have seen your result, please register for inspection using the "Registration"… Read more Dear Students, we will publish the exam results by tomorrow (Wednesday 5) morning. You will be able to inspect the exams in E1 5 (MPI-SWS) 029 (the course lecture room) on Thursday March 6th from 15:30 till 16:30. Once you have seen your result, please register for inspection using the "Registration" here on CMS. If you would like to attend the inspection but it is not possible for you at the scheduled time, please register, and then reach out separately to andrea@mpi-sws.org. |
Updated exam appendix previewWritten on 25.02.25 by Andrea Lattuada Dear Students, in "Materials" you can find the updated Appendix that will be part of your handout at the exam. There may still be small changes to the appendix you will find in the exam booklet. Dear Students, in "Materials" you can find the updated Appendix that will be part of your handout at the exam. There may still be small changes to the appendix you will find in the exam booklet. |
Project 2 results, Exam appendix previewWritten on 14.02.25 by Andrea Lattuada Dear Students, you should have received emails with your results for Project 2. The score is out of 20 points: 10 points is the minimum score to pass. Additionally, in "Materials" you can find the Appendix that will be part of your handout at the exam. I may still add material to the appendix: if… Read more Dear Students, you should have received emails with your results for Project 2. The score is out of 20 points: 10 points is the minimum score to pass. Additionally, in "Materials" you can find the Appendix that will be part of your handout at the exam. I may still add material to the appendix: if that happens, I will let you know. For Project 2, the maximum scores for each graded section are as follows (your score for each is in [[x]] in the feedback) high level spec: |
Erasmus / freemover exchange student registration, HISPOS registrationWritten on 11.02.25 by Andrea Lattuada Dear Students, if you are an Erasmus or freemover exchange student that cannot register for the exam through HISPOS you should have just received an email from me with further instructions. If you are one such student and have not received a direct email about exam registration, you need to reach out… Read more Dear Students, if you are an Erasmus or freemover exchange student that cannot register for the exam through HISPOS you should have just received an email from me with further instructions. If you are one such student and have not received a direct email about exam registration, you need to reach out by the end of this week to ensure you are properly registered for the exam. Additionally, a number of students who would be admitted to the exam based on the homework exercises and Project 1 have not yet registered on HISPOS: I recommend you do so now. Once I publish the result of Project 2 (at the end of this week), I will inform any student who is registered but no longer fulfills the exam admission requirements, so you can de-register by the deadline. |
Project 2: `noop_preserves_spec_view`, Project 1 resultsWritten on 05.02.25 by Andrea Lattuada Dear Students, please note that the proof function `noop_preserves_spec_view` uses the term `noop` to indicate that the distributed system state does not change, and this use of the term is unrelated to a `NoOp` step. This is also indicated by the function's pre- and post-conditions and by the comment… Read more Dear Students, please note that the proof function `noop_preserves_spec_view` uses the term `noop` to indicate that the distributed system state does not change, and this use of the term is unrelated to a `NoOp` step. This is also indicated by the function's pre- and post-conditions and by the comment on the function. In the meantime, you should have received emails with your results on Project 1. The score is out of 20 points: 10 points is the minimum score to pass. Everyone who's submitted has passed, well done! The maximum scores for each graded sections are as follows (your score for each is in [[x]] in the feedback):
|
Project 2 deadline extension, general project 1 feedbackWritten on 04.02.25 by Andrea Lattuada Dear Students, we will be releasing the scores for Project 1 soon (we are currently double-checking the scores). One common mistake that I found across a number of submissions is including the enabling condition that a host does not have the lock in the transition that accepts a grant message (and… Read more Dear Students, we will be releasing the scores for Project 1 soon (we are currently double-checking the scores). One common mistake that I found across a number of submissions is including the enabling condition that a host does not have the lock in the transition that accepts a grant message (and thus lets that host acquire the lock): this enabling condition (often expressed something like `&&& !s1.has_lock` was not mentioned in the English-language specification, and it's a property that could (and likely should) be part of the invariant (or implied by the invariant), but does not belong in the step, as it's implied by the admissible behaviors, but it's not part of the protocol design per-se. As this information might be helpful for Project 2 and because we have canceled the Chapter 8 exercise, we will extend the Project 2 deadline till Thursday February 6th at 23:59. |
Live exercises todayWritten on 31.01.25 by Andrea Lattuada Dear Students, today we'll cover some advanced topics and we'll let you try them out in class, so if you can, please bring a laptop with you (I realize this is very last minute, for which I apologize, we'll have an alternative for those of you that don't have a laptop with you). You'll be able to find… Read more Dear Students, today we'll cover some advanced topics and we'll let you try them out in class, so if you can, please bring a laptop with you (I realize this is very last minute, for which I apologize, we'll have an alternative for those of you that don't have a laptop with you). You'll be able to find the handouts for today under "Materials" in the next few minutes. |
Please register for office hours if you need further help with Project 02Written on 30.01.25 by Andrea Lattuada Dear Students, I have opened a new registration for office hours from Project 02: please register if you need to. By default we'll assign times starting at 13:00 tomorrow (January 30th). I'll email you with a slot when you register, and you can let me know if it doesn't work for you, and we'll find… Read more Dear Students, I have opened a new registration for office hours from Project 02: please register if you need to. By default we'll assign times starting at 13:00 tomorrow (January 30th). I'll email you with a slot when you register, and you can let me know if it doesn't work for you, and we'll find another time. |
Stray paragraph in the proof tooling description in the Project 2 handoutWritten on 29.01.25 by Andrea Lattuada Dear Students, I was made aware that there is a stray paragraph in the handout for Project 2, in the section on proof tooling. This paragraph escaped my proof reading, but should have been removed. The following paragraph does not apply to the Verus version of the course (the one you're taking) and… Read more Dear Students, I was made aware that there is a stray paragraph in the handout for Project 2, in the section on proof tooling. This paragraph escaped my proof reading, but should have been removed. The following paragraph does not apply to the Verus version of the course (the one you're taking) and you can safely ignore it: Dafny's internal map axioms can get pretty timeout-y in this situation. The second thing this gift provides is some judicious automation control: some {:opaque}d boundaries and "accessor" lemmas you can use to interact with the {:opaque}d definitions without revealing them in your own proofs. You don't need to reveal anything we've opaqued here, nor do you want to, so you can avoid timeouts traps. My apologies for the oversight. |
Exercise chapter 7 due soon; no regular tutorial this week; register for office hoursWritten on 27.01.25 by Andrea Lattuada Dear Students, don't forget that you need to pass 7 out of 8 chapters of exercises to be admitted to the exam, and note that Chapter 7 is due soon, on January 28th. If you haven't started on it, note that submitting a compliant exercise is sufficient to pass, even if it doesn't verify. This is also a… Read more Dear Students, don't forget that you need to pass 7 out of 8 chapters of exercises to be admitted to the exam, and note that Chapter 7 is due soon, on January 28th. If you haven't started on it, note that submitting a compliant exercise is sufficient to pass, even if it doesn't verify. This is also a reminder that the tutorial this week is canceled, and registration for office hours for project 2 are open: please register for them under "registrations" (we can accommodate times other than the tutorial session). Do not wait until the last minute, as I cannot guarantee that I'll be able to provide office hours slots next week. |
Please register for office hours for Project 2 by the end-of-the-day today (Jan 27)Written on 27.01.25 (last change on 27.01.25) by Andrea Lattuada Dear Students, there won't be a regular tutorial this week (on January 29th). You can register for office hours for Project 2 in "Registrations". By default you'll be assigned a slot during the tutorial time on Wednesday (which is otherwise canceled). You can attend either in person (in my office, E 1… Read more Dear Students, there won't be a regular tutorial this week (on January 29th). You can register for office hours for Project 2 in "Registrations". By default you'll be assigned a slot during the tutorial time on Wednesday (which is otherwise canceled). You can attend either in person (in my office, E 1 5, 448) or on Zoom (meeting details sent separately). Make sure you have submitted the current version of your project code before registering for office hours - once you register you'll receive an individual email with a time assignment. |
Questions on Project 2? Submit them by tomorrow. Registrations for office hours still openWritten on 22.01.25 (last change on 25.01.25) by Andrea Lattuada Dear Students, if you have questions regarding Project 2, please compile them in a txt or pdf file and submit them by tomorrow January 23rd at 18:00 via the "Project 02: Sharded Key-Value Store" submissions. Please keep these as short as possible, and note there won't be individual answers to these,… Read more Dear Students, if you have questions regarding Project 2, please compile them in a txt or pdf file and submit them by tomorrow January 23rd at 18:00 via the "Project 02: Sharded Key-Value Store" submissions. Please keep these as short as possible, and note there won't be individual answers to these, but I will go over them and discuss them on Friday (to the extent possible). And, as mentioned before, if you need individual help, please register for office hours under "Registrations": I will only accept registrations for office hours from students who have submitted the current version of their attempt to the "Project 02" submission. |
No tutorial this week; please register for office hoursWritten on 20.01.25 (last change on 20.01.25) by Andrea Lattuada Dear Students, there will not be a tutorial on Wednesday (January 22nd) this week. If you need help with the project, I will be offering office hours sessions between the end of this week and beginning of next week. Please register your interest in the "Registration" that I opened ("Project 02 -… Read more Dear Students, there will not be a tutorial on Wednesday (January 22nd) this week. If you need help with the project, I will be offering office hours sessions between the end of this week and beginning of next week. Please register your interest in the "Registration" that I opened ("Project 02 - Office Hours - 01"). |
Exercise chapter 6 due soonWritten on 17.01.25 by Andrea Lattuada Dear Students, don't forget that you need to pass 7 out of 8 chapters of exercises to be admitted to the exam, and note that Chapter 6 is due soon, on January 21st. If you haven't started on it, note that solving exercise01 is sufficient to pass, which should be fairly straightforward. I recommend not… Read more Dear Students, don't forget that you need to pass 7 out of 8 chapters of exercises to be admitted to the exam, and note that Chapter 6 is due soon, on January 21st. If you haven't started on it, note that solving exercise01 is sufficient to pass, which should be fairly straightforward. I recommend not waiting till the last day to submit, as usual, in case there are issues with your submission. |
Chapter 07 released tomorrow, due on January 28thWritten on 15.01.25 by Andrea Lattuada Dear Students, as mentioned in class, tomorrow we will release the handout for Chapter 07. The submission is due on January 28th.
Dear Students, as mentioned in class, tomorrow we will release the handout for Chapter 07. The submission is due on January 28th.
|
Compatibility with older glibc (ie older Linux distros)Written on 13.01.25 by Andrea Lattuada Dear Students, it came to my knowledge that the new version of Verus that was published last week did not work with older versions of glibc (ie a number of slightly older Linux distributions were affected). I published a new version that should restore the same level of support as before. If you’re on… Read more Dear Students, it came to my knowledge that the new version of Verus that was published last week did not work with older versions of glibc (ie a number of slightly older Linux distributions were affected). I published a new version that should restore the same level of support as before. If you’re on Linux, and you have had issues with the new Verus version, you can download the new version (from the Verus setup page on CMS). If the version you’re using works for you, you don’t need to do anything. There should be no change in which code verifies between the two versions. My apologies for the inconvenience if you were affected. |
Project 1 Office Hours RegistrationWritten on 08.01.25 (last change on 08.01.25) by Andrea Lattuada Dear Students, if you want to discuss Project 1 in an office-hours setting, please register for it using the "Registration" in CMS that I just opened (and that remains open until tomorrow evening). Based on registrations there I will schedule office-hours meetings on Friday January 10th and Monday… Read more Dear Students, if you want to discuss Project 1 in an office-hours setting, please register for it using the "Registration" in CMS that I just opened (and that remains open until tomorrow evening). Based on registrations there I will schedule office-hours meetings on Friday January 10th and Monday January 13th. |
Clarification on the English-language description of Project 01Written on 07.01.25 by Andrea Lattuada Dear all, I would like to make a small clarification to the English-language description in the handout of Project 1. To guard against duplicate messages, the nodes associate a… Read more Dear all, I would like to make a small clarification to the English-language description in the handout of Project 1. To guard against duplicate messages, the nodes associate a monotonically increasing epoch number with the lock. Initially, node 0 (if present) holds the lock and its epoch number is 1, while all other nodes with an epoch of 0 (and not holding the lock). A node that holds the lock can “grant” it to another node by sending them a “Grant” message which has an epoch number that is greater than the node's epoch number. A node that receives such a message will become the new holder and will set its epoch number to the message’s epoch number. A node should reject (i.e. not receive) lock "Grant" messages with epochs lower or equal to their current epoch, as these are stale (duplicates). --- Additionally, please note that I believe it is very unlikely that a safety property that is expressed concisely will also be inductive by itself for this protocol. If you did not need any additional conjuncts in your `inv` in addition to `safe` I would strongly recommend carefully inspecting your protocol definition and safety property. All of this will also be discussed during the tutorial tomorrow. |
Homework Virtual Office Hours TodayWritten on 07.01.25 by Andrea Lattuada Dear Students, if you need help with one of the exercises, or have questions regarding the project, please send me an email (andrea@mpi-sws.org) to book a time between 11:00 and 16:30 today. I will acknowledge the time (if available, or suggest a different time) and then we will meet in this Zoom… Read more Dear Students, if you need help with one of the exercises, or have questions regarding the project, please send me an email (andrea@mpi-sws.org) to book a time between 11:00 and 16:30 today. I will acknowledge the time (if available, or suggest a different time) and then we will meet in this Zoom room: https://eu02web.zoom-x.de/j/61362418777?pwd=L6hG2gnXZIyaiZbuE26MKQEbnrOhL9.1 If you've already sent me an email, you will get a response in the next hour or so. Please also let me know if you need help but today does not work for you. |
Chapter 4, exercise 1 and 3 individual feedback availableWritten on 01.01.25 (last change on 08.01.25) by Andrea Lattuada Dear Students, just a quick note that I have made available the individual feedback for Chapter 4 for students that submitted by December 20th. Please make sure to download it by Friday January 3rd, as I will start running the auto-grader again on Saturday January 4th, which (due to a limitation in… Read more Dear Students, just a quick note that I have made available the individual feedback for Chapter 4 for students that submitted by December 20th. Please make sure to download it by Friday January 3rd, as I will start running the auto-grader again on Saturday January 4th, which (due to a limitation in how the feedback is uploaded and updated) will overwrite the manual feedback. If you are unable to download the feedback by then, you will be able to request it directly via mail from me afterwards. |
Chapter 3, exercise 3 feedback publishedWritten on 29.12.24 (last change on 08.01.25) by Andrea Lattuada Dear all, just a quick note that I have updated the chapter 3 feedback with individual feedback for exercise 3, in addition to exercise 2. I recommend having a look, as it may be helpful for the project. Please send me an email if you have any questions. |
Project 1 PatchWritten on 29.12.24 (last change on 08.01.25) by Andrea Lattuada Dear Students, apologies for a second email in one day. The first few submissions for project 01 have made me notice that, while the project file is correct, it allows for certain kinds of unfortunate typos that may make your proof meaningless. I cannot guard against the majority of them, obviously… Read more Dear Students, apologies for a second email in one day. The first few submissions for project 01 have made me notice that, while the project file is correct, it allows for certain kinds of unfortunate typos that may make your proof meaningless. I cannot guard against the majority of them, obviously (you are in charge of being careful in writing your specification and safety property, as we discussed at length), but in an attempt to better evaluate your skills in the project I have added a If you have already submitted, I have applied the patch to your code and re-submitted for you: you can download the updated code from your personal status page. If you have not submitted you have two options: (a) recommended, especially if you've only done a little bit of work: re-download the handout and copy over your solution within the grading markers, (b) use the write up at https://cms.sic.saarland/sysverification2425/contents/view/6 to apply the change to exercise01.rs (note that you will need to do this carefully, to make sure that your code will pass the auto-grader check for changes outside the grading markers) Sorry for the inconvenience, and hope this helps. |
Project 01 clarification (only change code within the /*{*/ and /*}*/ markers!)Written on 29.12.24 (last change on 08.01.25) by Andrea Lattuada Dear Students, one quick clarification. As for all the other exercises you are still only allowed to change code within the Dear Students, one quick clarification. As for all the other exercises you are still only allowed to change code within the |
Score for chapter 5Written on 27.12.24 (last change on 08.01.25) by Andrea Lattuada Dear Students, a quick heads up on how chapter 5 is scored (due to its unusual requirement that the minimum score to pass is 0/1 as long as you do submit `extercise04.rs` to the Chapter 04, 05 submission): in the Tests/Exam view for Chapter 5 you will see that you will receive 1 point if you have… Read more Dear Students, a quick heads up on how chapter 5 is scored (due to its unusual requirement that the minimum score to pass is 0/1 as long as you do submit `extercise04.rs` to the Chapter 04, 05 submission): in the Tests/Exam view for Chapter 5 you will see that you will receive 1 point if you have submitted `exercise04.rs`, and 2 points if it passes the auto-grader: I have set the pass score on CMS to 1/2 points, which you will get if you have at least submitted `exercise04.rs`. During the non-teaching period I will only update the scores occasionally, so if you have recently submitted chapter 5, it may be that the point(s) have not been awarded yet. Let me know if something is unclear, or if you have any questions. |
Project 01 Released. Deadline 14.01.2025, 23:59.Written on 26.12.24 (last change on 08.01.25) by Andrea Lattuada Dear Students, I have released the handout for the distributed lock server project. The project is due at 23:59 on Tuesday 14.01.2025. I will not be running the auto-grader on the project, as there is no automatic feedback in addition to successful verification. Read the handout carefully, and refer… Read more Dear Students, I have released the handout for the distributed lock server project. The project is due at 23:59 on Tuesday 14.01.2025. I will not be running the auto-grader on the project, as there is no automatic feedback in addition to successful verification. Read the handout carefully, and refer to the last part of the lecture of December 20th: both contain information on what is expected of you for the project, and how it will be graded (remember that a passing score is required for admission to the exam, and the score for this project will account for 25% of how your performance in the course will be graded). The project will be scored according to the following criteria:
You will not get a passing score for the project if you just submit the handout file unchanged (even if it verifies). You will get a higher score if you submit a project that does not verify but has correct, well-written transitions, an accurate and concise safety property, and at least an attempt to identify the inductive invariant and to write the safety proof. A proof that works for only some of the cases (e.g. some of the host steps) is better than an empty proof, or no invariant. If you have any questions please reach out. As you work through the project, I strongly recommend you frequently submit your partial work, as that will allow me to give guidance or spot potential common misunderstanding earlier rather than later. I will only evaluate the last submission. |
Chapter 5 handout released, and Chapter 5 informationWritten on 22.12.24 (last change on 08.01.25) by Andrea Lattuada Dear Students, I have released the handout for chapter 5, which consists of a single file, Dear Students, I have released the handout for chapter 5, which consists of a single file, |
Chapter 3, exercise 2 feedback publishedWritten on 20.12.24 (last change on 08.01.25) by Andrea Lattuada Dear all, just a quick note that I have updated the chapter 3 feedback with individual feedback for exercise 2. Individual feedback for chapter 3, exercise 3 will be published in the next couple of days. Please send me an email if you have any questions. |
Chapter 4 PatchWritten on 18.12.24 (last change on 08.01.25) by Andrea Lattuada Dear Students, there is a small issue in Dear Students, there is a small issue in If you have already submitted, I have applied the patch to your code and re-submitted for you: you can download the updated code from your personal status page. If you have not submitted you have two options: (a) recommended, especially if you've only done a little bit of work: re-download the handout and copy over your solution within the grading markers, (b) use the write up at https://cms.sic.saarland/sysverification2425/5/Chapter_4_Patch to apply the change to exercise01.rs (note that you will need to do this carefully, to make sure that your code will pass the auto-grader check for changes outside the grading markers) Sorry for the inconvenience. I will also soon update the |
Chapter 4 Handout ReleasedWritten on 14.12.24 (last change on 08.01.25) by Andrea Lattuada Dear Students, the handout for chapter 4 has been released. It includes exercise01.rs, exercise02.rs, and exercise03.rs. Dear Students, the handout for chapter 4 has been released. It includes exercise01.rs, exercise02.rs, and exercise03.rs. You need 2/3 points to pass Chapter 4. We'll communicate the pass threshold for Chapter 5 when we release it. While the deadline for both Chapter 4 and Chapter 5 is January 7th 2025, as noted in the lecture: if you submit your solution to Chapter 4 by the end-of-day on December 20th I will give you feedback on it. This feedback can be quite useful for the first graded project, which will be released on December 21st. |
Office Hours Wednesday December 11 from 9:00 till 14:00Written on 10.12.24 (last change on 08.01.25) by Andrea Lattuada Dear Students, tomorrow I will be holding a virtual office hours session for the Chapter 3 exercises from 9:00 till 14:00. You can either walk into my office in E1 5 (SWS) 448, or join the following Zoom meeting: Dear Students, tomorrow I will be holding a virtual office hours session for the Chapter 3 exercises from 9:00 till 14:00. You can either walk into my office in E1 5 (SWS) 448, or join the following Zoom meeting: There may be a wait, if multiple people join the Zoom meeting or show up at the same time. My apologies in advance. If you need help and cannot make it to the office hours tomorrow, please email me: andrea@mpi-sws.org |
Chapter 2 deadline extended to Wednesday December 4thWritten on 02.12.24 (last change on 08.01.25) by Andrea Lattuada Dear Students, due to the (albeit brief) downtime of CMS, I'll extend the deadline for Chapter 2 to the end of the day on Wednesday. |
If you still need help with Chapter 2 exercises, please continue to submit questionsWritten on 29.11.24 (last change on 08.01.25) by Andrea Lattuada Dear Students, if you've previously submitted questions on chapter 2 exercises, I should have by now either addressed the question during the tutorial or lecture, or have given you a personal answer as "feedback" to the submission: if that's not the case, please submit again. I have re-opened the… Read more Dear Students, if you've previously submitted questions on chapter 2 exercises, I should have by now either addressed the question during the tutorial or lecture, or have given you a personal answer as "feedback" to the submission: if that's not the case, please submit again. I have re-opened the "Chapter 02: Basics and Specification - Questions" Submission (you can reach it from your "Personal Status" page, like a regular exercise submissions) for you to submit questions on the Chapter 2 exercises. You can upload a txt, rtf, pdf, Word, or zip file (containing multiple of the file types I listed; if you submit something else I can't guarantee I'll be able to open it): you can only submit one file, so if you have multiple questions, add them all to one file / zip file. I will run the auto-grader every day from now till the deadline, for you to have more opportunities to test your code against the auto-grader. If you haven't submitted yet, you should do so by the end of the day today, as you only have four more rounds of feedback until the deadline. If you only have a partial solution, submit anyway, to get at least some feedback from the autograder.
|
Submit your questions on Chapter 2 exercises by tomorrow at 12:00Written on 28.11.24 (last change on 08.01.25) by Andrea Lattuada Dear Students, I have re-opened the "Chapter 02: Basics and Specification - Questions" Submission (you can reach it from your "Personal Status" page, like a regular exercise submissions) for you to submit questions on the Chapter 2 exercises. You can upload a txt, rtf, pdf, Word, or zip file… Read more Dear Students, I have re-opened the "Chapter 02: Basics and Specification - Questions" Submission (you can reach it from your "Personal Status" page, like a regular exercise submissions) for you to submit questions on the Chapter 2 exercises. You can upload a txt, rtf, pdf, Word, or zip file (containing multiple of the file types I listed; if you submit something else I can't guarantee I'll be able to open it): you can only submit one file, so if you have multiple questions, add them all to one file / zip file. If you've already submitted, I have made a copy of all the questions and (hopefully) answered them all during the exercise session yesterday (the recording is available): if you've already submitted and have further questions, feel free to replace your submission with further questions (they're timestamped, so I'll know that you have additional questions, but note that if you then replace the submission again, I'll only see the latest version). If you submit a question, please make sure you have also submitted at least a partial solution to the exercise itself (the "Chapter 02: Basics and Specification" submission), so I can reference your code if needed. For questions I receive by the end of the day today, I'll give an answer or hint at the start of tomorrow's lecture. |
Submit your questions on Chapter 2 exercises by tomorrow at 12:00Written on 26.11.24 (last change on 08.01.25) by Andrea Lattuada Dear Students, I have opened another Submission (you can reach it from your "Personal Status" page, like a regular exercise submissions) for you to submit questions on the Chapter 2 exercises (it's called "Chapter 02: Basics and Specification - Questions"). You can upload a txt, rtf, pdf, or Word… Read more Dear Students, I have opened another Submission (you can reach it from your "Personal Status" page, like a regular exercise submissions) for you to submit questions on the Chapter 2 exercises (it's called "Chapter 02: Basics and Specification - Questions"). You can upload a txt, rtf, pdf, or Word file: you can only submit one file, I believe, so if you have multiple questions, add them all to one file. If you're finding some of the exercises challenging, please let me know through that channel, so I can try and adjust tomorrow's tutorial based on the feedback. Make sure you don't submit questions to the main "Chapter 02: Basics and Specification" submission, as that would score you zero points for Chapter 02, while "Chapter 02: Basics and Specification - Questions" is obviously not graded. |
Chapter 1 exercises due on Friday evening. Please reach out directly if there are issues.Written on 18.11.24 (last change on 08.01.25) by Andrea Lattuada Dear Students, This is a gentle reminder that the Chapter 01 exercises are due on Friday November 22nd at 23:59. A few notes and reminders:
Dear Students, This is a gentle reminder that the Chapter 01 exercises are due on Friday November 22nd at 23:59. A few notes and reminders:
See you on Wednesday in E1 5 029. |
Lecture on November 8th canceled. First set of graded exercises will be released on Friday.Written on 07.11.24 (last change on 08.01.25) by Andrea Lattuada Dear Students, I am currently traveling for a conference and due to a flight delay I will not be able to make it back to Saarbrücken by Friday morning, so the in-person lecture is canceled this week. We will nonetheless release the first set of graded exercises on Friday, and you will have two weeks… Read more Dear Students, I am currently traveling for a conference and due to a flight delay I will not be able to make it back to Saarbrücken by Friday morning, so the in-person lecture is canceled this week. We will nonetheless release the first set of graded exercises on Friday, and you will have two weeks to complete them. I have already covered the lecture material necessary to complete these exercises but I will record and publish a brief introduction to the exercises with a refresher and some hints. You will also be able to ask questions at the tutorial next week. See you on Wednesday! |
Tutorial on October 30th will take place in E1 5 002. No lecture on Friday, no tutorial next week.Written on 30.10.24 (last change on 08.01.25) by Andrea Lattuada The tutorial today (October 30th) will take place in E1 5 002, the same room as the first two lectures, at 16:10. This is for this week only. We'll move to E1 5 029 for both lectures and tutorials starting next week. Also note that there (obviously) won't be a lecture this Friday (November 1st),… Read more The tutorial today (October 30th) will take place in E1 5 002, the same room as the first two lectures, at 16:10. This is for this week only. We'll move to E1 5 029 for both lectures and tutorials starting next week. Also note that there (obviously) won't be a lecture this Friday (November 1st), and there won't be a tutorial next week (on Wednesday November 6th). After today's tutorial, the next session will be the lecture on Friday November 8th at 10:15 in E1 5 029. |
Let us know which hardware/software configuration you're running by Monday 28th.Written on 25.10.24 (last change on 08.01.25) by Andrea Lattuada At the tutorial next week we will provide instructions to set up Verus. To make sure that we can support your hardware/software configuration, please fill in the two polls on discourse here: https://sysverification.sic.saarland/t/what-configuration-are-you-running/ by the evening of Monday 28th (October 2024). |
Tutorials will be on Wednesdays at 16:10 (till 17:00). First tutorial on Wednesday October 30th.Written on 22.10.24 (last change on 08.01.25) by Andrea Lattuada Dear all, based on the preferences you entered, we've scheduled the tutorial on Wednesdays at 16:10-17:00. The first tutorial will be next week, on October 30th. As a reminder, the tutorials will be recorded, but we strongly recommend in-person attendance, as they will be interactive and give you the… Read more Dear all, based on the preferences you entered, we've scheduled the tutorial on Wednesdays at 16:10-17:00. The first tutorial will be next week, on October 30th. As a reminder, the tutorials will be recorded, but we strongly recommend in-person attendance, as they will be interactive and give you the opportunity to ask questions about the material, take home exercises, and projects. Thank you all for entering your preferences. |
The lectures and tutorials for this course will be recorded, but we recommend attending in person,
as the lectures and tutorials are designed to be interactive.
You will submit graded exercises and projects online, no attendance is needed to submit these.
➡️ Lecture Recordings, Slides, and other material
➡️ Setting up Verus, documentation, and how to submit take-home exercises
Systems Software underpins our modern computing infrastructure, both in datacenters, and on personal devices. When it fails or misbehaves because of bugs, they can lose or leak your data, make online services unavailable for a long period of time, and -- if you are a developer -- cost your company its reputation and revenue. For example, a corruption in a filesystem, or storage system may make you lose your e-mail, messages, photos, or banking information.
Regular testing can be insufficient for complex (often distributed) systems, which is why you keep hearing about software failures in online services. In this course, you will learn how to formally verify the correctness of these programs, so that we can have near certainty that the software we deploy is bug-free. You will learn how to model the expected behavior of a system, -- for example, how a distributed storage system (like Amazon's S3) is nothing else than a very simple map from keys to values from the perspective of its clients. You will then learn how to write Rust code for and such a system and formally prove, at compile time, that this implementation matches the simple key-value abstract model, i.e. that the program code is correct, without however having to run it or any tests.
We'll use the Rust-based Verus verification framework. Verus is being developed primarily at MPI-SWS, CMU, Microsoft, and is used for cutting edge research at MPI-SWS, MIT, CMU, UIUC (and more), and in industry: for example, Microsoft is developing a storage system verified with Verus, and Amazon is evaluating Verus to verify some of their systems. On the Verus website you can find a list of research papers and projects using Verus.
You will learn the necessary Rust and Verus syntax, and the formal verification principles we will use to write a systems' specification, and to prove the correctness of the implementation. Verus is a modern semi-automated tool that leverages SMT (satisfiability modulo theories) solvers to automatically handle many of the trivial and not-so-trivial steps of the proofs: you will learn how to write the rest of the proof as assertions written in Rust. At the end you will be able to design, implement, and prove correct a small but complex system, such as a distributed, sharded hash table.
Prerequisites. Programming experience, preferably in a Systems language (like C/C++). Knowing Rust is not a prerequisite. A background in formal methods and/or logic is helpful, but not required.
Course Structure (Weekly)
- 1.5-hour lecture: Fridays 10:15-11:45 in E1 5 029
More info on how to find the rooms. - 1 hour tutorial and exercise discussion: Wednesdays 16:10-17:00 in E1 5 029 (starting October 30th)
- take home exercises (graded)
Evaluation
- need to pass 7 out of 8 of take home exercise chapters to register for the exam
- students get feedback on submissions, and can resubmit take home exercises
- note that "Chapter 00: Submitting" is not part of the graded take home exercises and was simply a test of the ability of Student to submit through CMS
- 2 graded projects, done individually (25% + 25%)
- need to pass (50% score) both project to register for the exam
- exam (50%) (with a re-exam)
- you will need to pass 7 out of 8 of the take home exercises, and score at least 50% in both projects to register for the exam (and re-exam)
Exam Dates
- End of Term: February 26, 9:30-12:00 in E1 3 hall 002.
- Re-Exam: March 18th, 9:30-12:00 in E1 3 hall 002.
(The actual duration may be a bit shorter than the full 2.5 hours slots.)
Projects
- (mid-term) design and verify a distributed lock service
- (final, in parallel to lectures on advanced topics) design and verify a sharded key-value store
Project 1 was scored according to the following criteria:
- Adherence to the English-language specification of the state, steps, and safety property;
- Understandability of the state machine state and steps (prefer enum/structs; use comments where necessary, but not in excess!);
- Identification of inductive invariants, and completeness of the safety proof.
You will not get a passing score for the project if you just submit the handout file unchanged (even if it verifies). You will get a higher score if you submit a project that does not verify but has correct, well-written transitions, an accurate and concise safety property, and at least an attempt to identify the inductive invariant and to write the safety proof. A proof that works for only some of the cases (e.g. some of the host steps) is better than an empty proof, or no invariant.
Project 2 was scored according to the following criteria:
- Adherence to the English-language specification of the state and steps, for both the specification and the distributed protocol (host steps);
- Understandability of the state machines' state and steps (prefer enum/structs; use comments where necessary, but not in excess!);
- Identification of interpretation functions, refinement invariant, and completeness of the refinement proof.
Course Development
The concept and part of this course (with exercises in Dafny, instead of Verus) have initially been developed by Manos Kapritsos, University of Michigan, Jon Howell, VMware Research, with later contributions by Tej Chajed, University of Wisconsin-Madison, Andrea Lattuada (the instructor), and Travis Hance, MPI-SWS.
Schedule (tentative)
- 2024-10-18: Intro
- 2024-10-25: Verus Mechanics (datatypes, predicates, assertions)
- 2024-11-15: Specification and state machines
- 2024-11-22: State machines and behaviors
- 2024-11-29: Proving properties and inductive invariants
- 2024-12-06: Leader election demo
- 2024-12-13: Modeling distributed and asynchronous systems
- 2024-12-20: Refinement Introduction + Project 1 assignment
- 2025-01-10: Refinement: Application correspondence, Reduction (Part 1)
- 2025-01-17: Reduction (Part 2) + Project 2 assignment
(no tutorial on 2025-01-22)
- 2025-01-24: Advanced Techniques + Project 2 Open Office Hours
(no tutorial on 2025-01-29 -- office hours instead)
- 2025-01-31: Advanced Techniques, Research
- 2025-02-07: Recap (Optional)
Take-home exercises and project rules
- Exercises and projects are individual
- Okay to clarify problem or discuss Verus syntax
- on Discourse, in person
- It is not okay to discuss solutions
- Do not publish your exercise solutions anywhere
- You may not use /* */ comments
- You must leave the existing /* */ comments in place
- You may only change text between /*{*/ and /*}*/
- You are not allowed to add axioms (I have not taught you how to do this)
- You are not allowed to use assume(_); or admit(); in the code you submit
- You are not allowed to use `#[verifier::external_body]` in the code you submit (unless it's already present in the assignment)
- Do not rename the files
Verus logo CC-BY Verus Contributors, Rust logo CC-BY Rust Foundation