On 11 November at 10:00 in Metaforum 11/12, Bartjan Henkemans will defend his thesis titled “Automating Automated Reasoning”. A summary of his work is given below.
In formal methods courses, students need plenty of practice material and personalised feedback. Providing both is time-consuming, especially in growing classrooms. Existing exercise generators either generalise from a base problem or randomly generate exercises and then filter them (rejection sampling). The former allows little variation, while the latter lets teachers specify exact steps but becomes too slow as exercises grow. Existing feedback tools for Automated Reasoning courses evaluate the correctness of the entire solution and do not allow students to proceed after a mistake.
In this thesis, we present a framework based on bounded model checking to generate exercises from a solution, allowing teachers to create exercises that admit a specific solution. While this model applies to algorithms whose command pre- and post-conditions are expressible as propositional formulae, we test it on the Davis-Putnam, DPLL, and CDCL algorithms. We evaluate this model with a SAT solver: a satisfying assignment yields an exercise, and an unsatisfiable model proves that no exercises with those bounds and solution exist. We benchmark it against rejection sampling across a range of exercises. Furthermore, we present a feedback-generation framework that, rather than judging a solution solely on correctness, splits judgment into applicability, correct application, and order conformance for each step, allowing for more precise feedback. In addition, our framework allows us to continue verification after a student makes a mistake. We implement both in a tool called Klausel, a tool for students and teachers.
Benchmarking shows that for smaller exercises, rejection sampling remains viable, but from five to eight variables onwards, our model outperforms rejection sampling. For 16-20 variables, our model derived an exercise 80% of the time for Davis-Putnam versus 19% for sampling, and nearly all DPLL and CDCL traces versus 5%.
