Skip to main content
QUICK REVIEW

[Paper Review] Polarities & Focussing: a journey from Realisability to Automated Reasoning

Stéphane Graham-Lengrand|arXiv (Cornell University)|Dec 17, 2014
Logic, programming, and type systemsComputer Science6 citations
TL;DR

This dissertation presents a unified framework linking polarities and focusing in classical logic to bridge proof theory, realizability semantics, and automated reasoning. It introduces a proof-search engine, Psyche, based on focused sequent calculi that enables trustworthy, modular integration of advanced reasoning techniques in theorem proving and SMT solving via a constraint-propagation architecture grounded in semi-lattices and meta-variable dependencies.

ABSTRACT

This dissertation explores the roles of polarities and focussing in various aspects of Computational Logic.These concepts play a key role in the the interpretation of proofs as programs, a.k.a. the Curry-Howard correspondence, in the context of classical logic. Arising from linear logic, they allow the construction of meaningful semantics for cut-elimination in classical logic, some of which relate to the Call-by-Name and Call-by-Value disciplines of functional programming. The first part of this dissertation provides an introduction to these interpretations, highlighting the roles of polarities and focussing. For instance: proofs of positive formulae provide structured data, while proofs of negative formulae consume such data; focussing allows the description of the interaction between the two kinds of proofs as pure pattern-matching. This idea is pushed further in the second part of this dissertation, and connected to realisability semantics, where the structured data is interpreted algebraically, and the consumption of such data is modelled with the use of an orthogonality relation. Most of this part has been proved in the Coq proof assistant.Polarities and focussing were also introduced with applications to logic programming in mind, where computation is proof-search. In the third part of this dissertation, we push this idea further by exploring the roles that these concepts can play in other applications of proof-search, such as theorem proving and more particularly automated reasoning. We use these concepts to describe the main algorithm of SAT-solvers and SMT-solvers: DPLL. We then describe the implementation of a proof-search engine called Psyche. Its architecture, based on the concept of focussing, offers a platform where smart techniques from automated reasoning (or a user interface) can safely and trustworthily be implemented via the use of an API.

Motivation & Objective

  • To establish a conceptual and formal bridge between polarities and focusing in classical logic and their roles in proof-as-program, realizability, and automated reasoning.
  • To develop a modular, trustworthy proof-search engine (Psyche) based on focused sequent calculi for use in automated theorem proving and SMT solving.
  • To formalize the integration of constraint propagation and dependency management in proof-search, especially in the context of first-order logic with theories.
  • To explore how focussed proof systems can model and implement core algorithms of SAT/SMT solvers, such as DPLL and its extensions.
  • To provide a foundation for integrating advanced reasoning techniques—like triggers and theory instantiation—within a logically principled framework using focused calculi.

Proposed method

  • Employing focused sequent calculi (LKp) to structure proof search, distinguishing positive (data-producing) and negative (data-consuming) formulae via polarity.
  • Using the Curry-Howard correspondence to interpret proofs as programs, with focussing modeling pure pattern-matching between data and consumers.
  • Formalizing realizability semantics via orthogonality relations, interpreting structured data algebraically and consumption via duality.
  • Designing the Psyche proof-search engine with a focussed architecture that supports modular constraint handling and dependency tracking.
  • Implementing constraint propagation using semi-lattices to model constraint meets (σ ∧ σ′), enabling early pruning and persistent data structures.
  • Extending the framework to support quantifiers and theories via meta-variables and constraint systems, with modularity for different constraint types (e.g., arithmetic, equality).

Experimental results

Research questions

  • RQ1How can polarities and focusing provide a unified semantic and algorithmic foundation for classical logic proofs, from realizability to automated reasoning?
  • RQ2In what way can focussed sequent calculi model the core mechanisms of DPLL and DPLL(T) solvers, such as unit propagation and theory instantiation?
  • RQ3How can proof-search engines like Psyche safely and modularly integrate advanced reasoning techniques via an API built on focussed proof systems?
  • RQ4What algebraic structure (e.g., semi-lattices) best captures the behavior of constraint propagation in proof-search with meta-variables?
  • RQ5Can focussed proof systems formally capture SMT-solving strategies such as trigger-based instantiation and theory-specific reasoning?

Key findings

  • The framework successfully models the interaction between data production (positive formulae) and consumption (negative formulae) via focussing, with proofs resembling pure pattern-matching.
  • Psyche 2.0’s architecture supports modular constraint handling, with constraint propagation via semi-lattices enabling early detection of inconsistent branches.
  • The use of dependency tracking via allowed free variables (dual to Skolemization) enables safe and extensible instantiation in the presence of meta-variables.
  • The formalization of DPLL and DPLL(T) as proof-search in LKp(T) with quantifiers and meta-variables provides a logical foundation for SMT solver components.
  • Trigger-based instantiation in SMT solvers can be modeled as a focussed proof system where the trigger predicate is treated as positive, requiring immediate proof before exploring the main formula.
  • The abstract framework of LAF (Focused Sequent Calculi) is shown to be suitable for modeling equality and other theories, suggesting broad applicability beyond first-order logic.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.