Skip to main content
QUICK REVIEW

[Paper Review] Theorem and Algorithm Checking for Courses on Logic and Formal Methods

Wolfgang Schreiner|arXiv (Cornell University)|Apr 1, 2019
Formal Methods in VerificationComputer Science3 citations
TL;DR

This paper presents RISCAL, a formal modeling language that enables automatic theorem and algorithm checking by executing finite instances of infinite model classes. It enhances logic and formal methods education through automated verification, visualization, and web-based exercises, demonstrating improved student engagement and faster, higher-quality formal specification development in pilot courses.

ABSTRACT

The RISC Algorithm Language (RISCAL) is a language for the formal modeling of theories and algorithms. A RISCAL specification describes an infinite class of models each of which has finite size; this allows to fully automatically check in such a model the validity of all theorems and the correctness of all algorithms. RISCAL thus enables us to quickly verify/falsify the specific truth of propositions in sample instances of a model class before attempting to prove their general truth in the whole class: the first can be achieved in a fully automatic way while the second typically requires our assistance. RISCAL has been mainly developed for educational purposes. To this end this paper reports on some new enhancements of the tool: the automatic generation of checkable verification conditions from algorithms, the visualization of the execution of procedures and the evaluation of formulas illustrating the computation of their results, and the generation of Web-based student exercises and assignments from RISCAL specifications. Furthermore, we report on our first experience with RISCAL in the teaching of courses on logic and formal methods and on further plans to use this tool to enhance formal education.

Motivation & Objective

  • To address the challenge of teaching logic and formal methods, where students struggle to grasp the meaning of formal formulas and the consequences of subtle logical differences.
  • To overcome limitations of traditional automated provers and model checkers in educational settings, which often lack full decidability or intuitive feedback.
  • To develop a tool that combines full logical expressiveness with automatic, executable model checking to support student learning through immediate feedback.
  • To create a scalable, web-based framework for generating interactive exercises and assignments from formal RISCAL specifications.
  • To empirically evaluate the educational impact of RISCAL in formal methods and logic courses, with a focus on student performance and engagement.

Proposed method

  • RISCAL specifies formal theories and algorithms using full first-order predicate logic over bounded, finite types (e.g., integers in [N,M], arrays of length N), forming an infinite class of finite models.
  • Each RISCAL model instance is executed to automatically check the validity of theorems and correctness of algorithms via full, decidable model checking.
  • The tool generates checkable verification conditions from algorithms, visualizes procedure execution step-by-step, and evaluates formulas to illustrate results.
  • RISCAL supports the automatic generation of web-based student exercises, including informal problem descriptions, code skeletons, hidden formal specifications (pre/post-conditions), and a 'run all inputs' button for self-checking.
  • The system enables automatic grading of student submissions based on formal contracts, extending traditional autograders with logic-based execution.
  • Educational deployment includes pilot use in graduate and undergraduate courses, with qualitative and anecdotal evidence collected on student usage and performance.

Experimental results

Research questions

  • RQ1Can RISCAL’s model checking approach improve students’ understanding of formal logic and algorithm correctness through immediate, executable feedback?
  • RQ2How does the use of RISCAL in formal methods education affect student engagement and performance compared to traditional methods?
  • RQ3To what extent do students use RISCAL for self-checking, and does this correlate with improved assignment outcomes?
  • RQ4What are the practical challenges in integrating RISCAL into formal education, particularly in avoiding selection bias and ethical concerns in controlled evaluation?
  • RQ5Can RISCAL-based web exercises support scalable, automated, and formal grading of student implementations?

Key findings

  • Students using RISCAL reported higher interest in logic and formal methods, with the software frequently cited as a key factor in increasing motivation.
  • A strong correlation was observed between RISCAL usage and improved performance in classroom exercises, though it remains unclear whether the software caused the improvement or was used primarily by stronger students.
  • Students with poor performance in traditional assignments generally did not use RISCAL, suggesting a potential gap in early adoption among struggling learners.
  • The tool enabled faster and higher-quality formal specification and verification work compared to prior proof-based tools, with students reporting enjoyment due to immediate feedback.
  • Preliminary deployment in graduate and undergraduate courses confirmed RISCAL’s stability and usability, with students overcoming technical barriers easily.
  • The authors conclude that RISCAL has the potential to significantly enhance formal education, but systematic, statistically sound evaluation is needed to confirm its educational impact.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.