Thomas Powell - Proofs as stateful programs: A first-order logic with abstract Hoare triples, and an interpretation into an imperative language

lmcs:10776 - Logical Methods in Computer Science, January 26, 2024, Volume 20, Issue 1 - https://doi.org/10.46298/lmcs-20(1:7)2024
Proofs as stateful programs: A first-order logic with abstract Hoare triples, and an interpretation into an imperative languageArticle

Authors: Thomas Powell

    We introduce an extension of first-order logic that comes equipped with additional predicates for reasoning about an abstract state. Sequents in the logic comprise a main formula together with pre- and postconditions in the style of Hoare logic, and the axioms and rules of the logic ensure that the assertions about the state compose in the correct way. The main result of the paper is a realizability interpretation of our logic that extracts programs into a mixed functional/imperative language. All programs expressible in this language act on the state in a sequential manner, and we make this intuition precise by interpreting them in a semantic metatheory using the state monad. Our basic framework is very general, and our intention is that it can be instantiated and extended in a variety of different ways. We outline in detail one such extension: A monadic version of Heyting arithmetic with a wellfounded while rule, and conclude by outlining several other directions for future work.


    Volume: Volume 20, Issue 1
    Published on: January 26, 2024
    Accepted on: November 23, 2023
    Submitted on: January 5, 2023
    Keywords: Computer Science - Logic in Computer Science,Mathematics - Logic

    Consultation statistics

    This page has been seen 766 times.
    This article's PDF has been downloaded 497 times.