The PIE Environment
for First-Order-Based
Proving, Interpolating and
Eliminating
Overview
PIE is a Prolog-embedded environment for automated reasoning on the
basis of first-order logic. Its main focus is on formulas, as
constituents of complex formalizations that are structured through
formula macros, and as outputs of reasoning tasks such as second-order
quantifier elimination and Craig interpolation. It supports a workflow
based on documents that intersperse macro definitions, invocations
of reasoners, and LaTeX-formatted natural language text.
The system is written and embedded
in SWI-Prolog and provides,
essentially as a library of Prolog predicates, functionalities
like:
- Support for a Prolog-readable syntax
of first-order logic formulas.
- Formula pretty-printing in
Prolog syntax and in LaTeX.
- A versatile formula macro
processor.
- Support for processing
documents that intersperse formula macro
definitions, reasoner invocations and LaTeX-formatted natural
language text.
- Interfaces to external first-order
and propositional provers,
including Prover9/Mace4,
first-order provers supporting
the TPTP format such
as E, and SAT solvers
like MiniSat.
- The built-in Prolog-based
first-order theorem
prover CM.
- Implemented reasoning techniques that compute
formulas:
- Second-order quantifier
elimination on the basis of first-order logic.
- Computation of first-order Craig interpolants.
- Formula conversions for
use in preprocessing, inprocessing and output presentation
The system is described in more detail in the following papers:
-
Christoph Wernhard
In
Petra Hofstedt et al., editors,
Declarative Programming and Knowledge
Management (DECLARE 2019), Revised Selected Papers, volume 12057 of LNCS
(LNAI), pages 160-177.
Preprint:
https://arxiv.org/pdf/2002.10892.pdf
-
Christoph Wernhard
Availability
The PIE system is published as
free
software under GNU General Public
License.
Further Applications
- Synthesizing Answer Set Programs
Prototypical implementation of the approach described in Jan Heuer
and Christoph Wernhard: Synthesizing Strongly Equivalent Logic
Programs: Beth Definability for Answer Set Programs via Craig
Interpolation in First-Order Logic, 2024.
- CD
Tools
A Prolog library for experimenting with condensed
detachment. Includes the novel specialized provers SGCD and CCS.
- On
Circumscription by Walter Forkel
A new generalization of
parallel predicate circumscription, compared with original
parallel predicate circumscription and with domain
circumscription.
Contact: info@christophwernhard.com