Satisfiability of Short Circuit Logic
Sander in 't Veld

TL;DR
This paper explores the satisfiability problem in Short Circuit Logic, providing formal definitions, proving equivalences, and implementing algorithms to improve understanding and efficiency in programming language semantics.
Contribution
It introduces formal models for satisfiability in Short Circuit Logic, proving their equivalence and offering an implementation, advancing theoretical understanding of short-circuit evaluation.
Findings
Satisfiability and path-satisfiability are equivalent.
Three types of valuation paths correspond to five valuation algebras.
Side-effects influence truth values but do not affect satisfiability analysis.
Abstract
The logical connectives typically found in programming languages are similar to their mathematical counterparts, yet different due to their short-circuit behaviour -- when evaluating them, the second argument is only evaluated if the first argument is not sufficient to determine the result. Combined with the possibility of side-effects, this creates a different type of logic called Short Circuit Logic. A greater theoretical understanding of this logic can lead to more efficient programming and faster program execution. In this thesis, formula satisfiability in the context of Short Circuit Logic is discussed. A formal definition of evaluation based on valuation algebras is presented, alongside an alternative definition based on valuation paths. The accompanying satisfiability and `path-satisfiability' are then proven to be equivalent, and an implementation of path-satisfiability is…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
Taxonomy
TopicsFormal Methods in Verification · Logic, programming, and type systems · Software Testing and Debugging Techniques
