pith. sign in

Short-circuit logic

2 Pith papers cite this work. Polarity classification is still indexing.

2 Pith papers citing it
abstract

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. In programming, short-circuit evaluation is widely used, with sequential conjunction and disjunction as primitive connectives. A short-circuit logic is a variant of propositional logic (PL) that can be defined with help of Hoare's conditional, a ternary connective comparable to if-then-else, and that implies all identities that follow from four basic axioms for the conditional and can be expressed in PL (e.g., axioms for associativity of conjunction and double negation shift). In the absence of side effects, short-circuit evaluation characterizes PL. However, short-circuit evaluation admits the possibility to model side effects and gives rise to various different short-circuit logics. The first extreme case is FSCL (free short-circuit logic), which characterizes the setting in which evaluation of each atom (propositional variable) can yield a side effect. The other extreme case is MSCL (memorizing short-circuit logic), the most identifying variant we distinguish below PL. In MSCL, only a very restricted type of side effects can be modelled, while sequential conjunction is non-commutative. We provide axiomatizations for FSCL and MSCL. Extending MSCL with one simple axiom yields SSCL (static short-circuit logic, or sequential PL), for which we also provide a completeness result. We briefly discuss two variants in between FSCL and MSCL, among which a logic that admits contraction of atoms and of their negations.

fields

cs.LO 2

years

2025 1 2024 1

verdicts

UNVERDICTED 2

representative citing papers

Fully Evaluated Left-Sequential Logics

cs.LO · 2024-03-21 · unverdicted · novelty 6.0

Defines four FEL variants with evaluation-tree semantics and complete axiomatizations, plus three-valued extensions where the strongest matches Bochvar's strict logic.

Fracterm Calculus for Partial Meadows

cs.LO · 2025-02-19 · unverdicted · novelty 5.0

Axioms for fracterm calculus of partial meadows are given with an interpretation into bot-enlargements establishing semi-computability of the logic and that such enlargements yield common meadows.

citing papers explorer

Showing 2 of 2 citing papers.

  • Fully Evaluated Left-Sequential Logics cs.LO · 2024-03-21 · unverdicted · none · ref 4 · internal anchor

    Defines four FEL variants with evaluation-tree semantics and complete axiomatizations, plus three-valued extensions where the strongest matches Bochvar's strict logic.

  • Fracterm Calculus for Partial Meadows cs.LO · 2025-02-19 · unverdicted · none · ref 7 · internal anchor

    Axioms for fracterm calculus of partial meadows are given with an interpretation into bot-enlargements establishing semi-computability of the logic and that such enlargements yield common meadows.