[HD] EECS3342 F26 - 2026-12-01 (Tuesday) - Lecture 22
Overview
Jackie Wang explains the EECS3342 final-exam preparation rules, then develops refinement M2 for a bridge-crossing system with mainland and island traffic lights. The lecture shows how M2 splits driver actions from computer-controlled light changes, assigns guards using variables A, B, C, MLTL, and ILTL, and uses invariant-preservation proof obligations to expose a flawed model; it also reviews inference rules and sets up proof and trace exercises for the next class.
Key takeaways
- The final-exam data sheet is limited to one side with roughly 10 pt or larger text, and students may include AI-generated or copied material, but Wang recommends creating it as a course-review exercise.
- M2 uses superposition to make both M1 variables A, B, C and new light variables MLTL, ILTL available when designing event guards.
- M2 separates concerns: driver events ML out and IL out check only for a green light, while MLTL green and ILTL green handle computer conditions such as A + B < D, C = 0, B > 0, and A = 0.
- The bridge model's safety goal is to prevent both traffic lights from being green at once; the initial guards do not fully guarantee this, so invariant proofs and traces help identify the flaw.
- For invariant preservation, event actions must be reflected in post-state expressions: ML out uses A′ = A + 1 and B′ = B when checking the resulting invariant.
- The final proof-rule set includes implication L, implication R, and a negation rule based on contraposition; implication L is modus ponens, while implication R moves an implication's antecedent into the hypotheses.
Chapters
- The final permits one-sided notes, with font no smaller than about 10 pt; Jackie Wang recommends distilling the course onto one side.
- Students may use AI, screenshots, handwritten notes, or collaborate on content, but preparing the sheet themselves can help consolidate course knowledge.
- Useful entries include inference rules, math-review theorems, definitions such as injective and surjective, and ASCII-to-Rodin notation correspondences.
- Wang plans to release the exam guide before Thursday or, at the latest, before the following Tuesday, with sample questions illustrating format.
- Review iPad notes alongside slides, then use each lecture digest, common errors, lab solutions, and the programming-test practice material.
- Lab 4 remains in progress and is due the following Wednesday, the study day; students can ask Wang for data-sheet feedback during office hours.
- M2 introduces MLTL and ILTL, the mainland and island traffic-light variables, while retaining the M1 variables A, B, and C through superposition.
- M2 is the concrete model and M1 is the abstract model in this refinement; these labels are relative to the refinement being discussed.
- The lecture roadmap covers event design, invariant preservation, an unprovable proof sequence, and how to diagnose the model.
- The example starts with both lights red, then MLTL green enables ML out and IL in for a car traveling from the mainland to the island.
- For the return trip, ILTL green turns on while MLTL returns to red, followed by IL out and ML in.
- The trace establishes the intended ordering of two new light-control events and four existing crossing events.
- ML out, IL out, IL in, and ML in are concrete events carried over from M1; MLTL green and ILTL green are new M2 events.
- A, B, and C represent computer or sensor state, such as car counts, and drivers do not directly inspect those values.
- M2 assigns drivers the simple task of obeying light colors and assigns the computer-controlled events responsibility for deciding when lights may change.
- For mainland-to-bridge movement, M1's ML out guard includes A + B < D and C = 0.
- M2 moves those capacity and occupancy conditions to MLTL green, while ML out checks only whether MLTL = green.
- In a superposition refinement, events can refer to both abstract variables A, B, C and concrete variables MLTL, ILTL; exam questions will specify whether superposition applies.
- ML out is enabled by MLTL = green, and IL out is enabled by ILTL = green, reflecting the driver's direct observation.
- The two crossing events must not be enabled simultaneously, so the intended safety condition is that MLTL and ILTL are not both green.
- The current model does not yet guarantee that safety condition, which motivates checking invariant-preservation proof obligations.
- MLTL green inherits the abstract ML out conditions A + B < D and C = 0, while ILTL green inherits the abstract IL out conditions B > 0 and A = 0.
- Each light-change event also checks that its own light is not already green, avoiding a redundant green-to-green transition.
- The design rationale requires the opposite light to be red before a light turns green, a condition the initial model does not fully enforce and that will be revisited.
- The invariant-preservation obligation for ML out combines its concrete guard, MLTL = green, with the invariant being preserved.
- The post-state version substitutes primed variables: the event action gives A′ = A + 1 and leaves B unchanged, so B′ = B.
- Wang recommends practicing the full proof-obligation sequence to understand how event actions and invariants become hypotheses and goals.
- Implication L captures modus ponens: from P and P implies Q as hypotheses, derive Q.
- Implication R turns a goal P implies Q into a proof with P as an added hypothesis and Q as the goal; this corresponds to shunting.
- The negation rule uses contraposition, relating not P implies Q to not Q implies P; Wang identifies these as the final three official inference rules for the exam.
- The proof walkthrough uses implication R to move ILTL = green from the goal into the hypotheses, then implication L to apply modus ponens.
- A conjunction in the goal is split into two subgoals; the resulting branches can be handled separately, with one part proving automatically.
- Before Thursday, students should trace the proof sequence and inspect a valid trace that exposes problematic behavior; Wang plans to use both exercises to revise M2.
Transcript excerpt
0:05 Okay. So just don't forget your lab number four is still ongoing. Uh you will be due um next Wednesday on the study day, okay? Just I'll remind you about the submission deadline. And let's talk about part of the importance background for your exam. So there will be a data sheet allowed. So this will be the description I simply just got from last year, but I think most likely the wording will be would be just the same. It doesn't hurt for you to get started right away. Whatever policy I talk about today, I'm not going to change it, okay? Just to be fair, okay? So you can definitely get started with preparing for your data sheets. It's going to be, guys, one-sided. I know you may feel the need to really put information on two sides. I would suggest one side. Take this uh it's more like a process of distilling your thoughts about what you
0:52 know about the course. Just put those thoughts which you don't kind of uh don't don't really feel like memorizing, you can put it on the sheets. I don't think you need more than one side, okay? Just do your best to really put into one side. And uh can you use AI to generate the data sheets for you? That's okay. However, I would say that way you might lose the opportunity to really distilling your thoughts into the data sheet. So I'll recommend uh try to do that by yourself. You can collaborate with your buddy, you know, to really look put different information on your each other's sheets and share the sheets, I mean different copies during the exam. That's no problem. If you really feel the need to use the different uh AI model to help you
This is the start of the transcript. Save this video free for the whole transcript, searchable and time-coded.
In this course
Related notes
Summary, takeaways, and chapters were generated by AI from the video's transcript and may contain errors. The video belongs to its creator, Jackie Wang.