Skip to main navigation Skip to search Skip to main content

Implementing a 3-Valued Logic in Coq

  • Emer N Dhomhnaill
  • , Sharon Flynn

    Research output: Other contribution (Published) › Other contribution

    Abstract

    In the world of expressions, undefined values arise quite naturally. Simple examples are: the result of division by zero, or the integer square root of a negative number. When manipulating specifications in the form of mathematical expressions, possibly undefined expressions cannot be ignored. Rather, we choose to address the problem. This paper describes how the Coq theorem prover was used to implement a three-valued logic, where the three values are True, False and the undefined logical value ?. The threevalued logic is based on an extended propositional logic, which uses non-strict versions of the familiar operators, disjunction, conjunction and implication. The resulting implementation allowed us to prove some 60 theorems, and provides a solid basis for the implementation of a complete language of expressions with undefinedness.
    Original languageEnglish
    TypeTechnical Report
    Publication statusPublished - 2002

    Fingerprint

    Dive into the research topics of 'Implementing a 3-Valued Logic in Coq'. Together they form a unique fingerprint.

    Cite this