{"title":"Non-commutative propositional logic with short-circuit evaluation","authors":"J. Bergstra, A. Ponse, Daan J. C. Staudt","doi":"10.1080/11663081.2021.2010954","DOIUrl":null,"url":null,"abstract":"Short-circuit evaluation denotes the semantics of propositional connectives in which the second argument is evaluated only if the first is insufficient to determine the value of the expression. Compound statements are evaluated from left to right. Short-circuit evaluation is widely used in programming, with negation and sequential conjunction and disjunction as primitives. We study the question of which laws axiomatise short-circuit evaluation. In MSCL (memorising short-circuit logic), atoms (propositional variables) evaluate to true or false, and in the evaluation of a compound statement, the first evaluation result of each atom is memorised. Hence, MSCL is 'Non-commutative propositional logic with short-circuit evaluation' and atomic evaluations cannot cause a side effect. Next, we consider the case that atoms can also evaluate to the truth value 'undefined'. For two- and three-valued MSCL, we present evaluation trees as an intuitive semantics and provide complete independent equational axiomatisations.","PeriodicalId":38573,"journal":{"name":"Journal of Applied Non-Classical Logics","volume":"65 1","pages":"234 - 278"},"PeriodicalIF":0.0000,"publicationDate":"2021-10-02","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"2","resultStr":null,"platform":"Semanticscholar","paperid":null,"PeriodicalName":"Journal of Applied Non-Classical Logics","FirstCategoryId":"1085","ListUrlMain":"https://doi.org/10.1080/11663081.2021.2010954","RegionNum":0,"RegionCategory":null,"ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"Q1","JCRName":"Arts and Humanities","Score":null,"Total":0}
引用次数: 2
Abstract
Short-circuit evaluation denotes the semantics of propositional connectives in which the second argument is evaluated only if the first is insufficient to determine the value of the expression. Compound statements are evaluated from left to right. Short-circuit evaluation is widely used in programming, with negation and sequential conjunction and disjunction as primitives. We study the question of which laws axiomatise short-circuit evaluation. In MSCL (memorising short-circuit logic), atoms (propositional variables) evaluate to true or false, and in the evaluation of a compound statement, the first evaluation result of each atom is memorised. Hence, MSCL is 'Non-commutative propositional logic with short-circuit evaluation' and atomic evaluations cannot cause a side effect. Next, we consider the case that atoms can also evaluate to the truth value 'undefined'. For two- and three-valued MSCL, we present evaluation trees as an intuitive semantics and provide complete independent equational axiomatisations.