Propositional logic with short-circuit evaluation: a non-commutative and a commutative variant

10/04/2018
by   Jan A. Bergstra, et al.
0

Short-circuit evaluation denotes the semantics of propositional connectives in which the second argument is evaluated only if the first argument does not suffice to determine the value of the expression. Short-circuit evaluation is widely used in programming, with sequential conjunction and disjunction as primitive connectives. We study the question which logical laws axiomatize short-circuit evaluation under the following assumptions: compound statements are evaluated from left to right, each atom (propositional variable) evaluates to either true or false, and atomic evaluations can cause a side effect. The answer to this question depends on the kind of atomic side effects that can occur and leads to different "short-circuit logics". The basic case is FSCL (free short-circuit logic), which characterizes the setting in which each atomic evaluation can cause a side effect. We recall some main results and then relate FSCL to MSCL (memorizing short-circuit logic), where in the evaluation of a compound statement, the first evaluation result of each atom is memorized. MSCL can be seen as a sequential variant of propositional logic: atomic evaluations cannot cause a side effect and the sequential connectives are not commutative. Then we relate MSCL to SSCL (static short-circuit logic), the variant of propositional logic that prescribes short-circuit evaluation with commutative sequential connectives. We present evaluation trees as an intuitive semantics for short-circuit evaluation, and simple equational axiomatizations for the short-circuit logics mentioned that use negation and the sequential connectives only.

READ FULL TEXT

page 1

page 2

page 3

page 4

research
03/17/2022

Non-commutative propositional logic with short-circuited biconditional and NAND

Short-circuit evaluation denotes the semantics of propositional connecti...
research
04/28/2023

Conditional logic as a short-circuit logic

Both two-valued and three-valued conditional logic (CL), defined by Guzm...
research
03/17/2023

On decidable extensions of Propositional Dynamic Logic with Converse

We describe a family of decidable propositional dynamic logics, where at...
research
08/29/2019

The naturality of natural deduction (II). Some remarks on atomic polymorphism

In this paper (which is a prosecution of "The naturality of natural dedu...
research
02/06/2017

Exploring the bidimensional space: A dynamic logic point of view

We present a family of logics for reasoning about agents' positions and ...
research
04/19/2015

Gradual Classical Logic for Attributed Objects - Extended in Re-Presentation

Our understanding about things is conceptual. By stating that we reason ...
research
01/24/2010

A Decidable Class of Nested Iterated Schemata (extended version)

Many problems can be specified by patterns of propositional formulae dep...

Please sign up or login with your details

Forgot password? Click here to reset