Hostname: page-component-77f85d65b8-v2srd Total loading time: 0 Render date: 2026-03-28T23:14:04.806Z Has data issue: false hasContentIssue false

A Novel Framework for Systematic Propositional Formula Simplification Based on Existential Graphs

Published online by Cambridge University Press:  13 June 2025

JORDINA FRANCÈS DE MAS
Affiliation:
School of Computer Science, University of St Andrews, St Andrews, Scotland, UK (e-mail: jfdm2@st-andrews.ac.uk)
JULIANA BOWLES
Affiliation:
School of Computer Science, University of St Andrews, St Andrews, Scotland, UK and Software Competence Centre Hagenberg (SCCH), Hagenberg, Austria (e-mail: jkfb@st-andrews.ac.uk)
Rights & Permissions [Opens in a new window]

Abstract

This paper presents a novel simplification calculus for propositional logic derived from Peirce’s existential graphs’ rules of inference and implication graphs. Our rules can be applied to propositional logic formulae in nested form, are equivalence-preserving, guarantee a monotonically decreasing number of variables, clauses and literals, and maximise the preservation of structural problem information. Our techniques can also be seen as higher-level SAT preprocessing, and we show how one of our rules (TWSR) generalises and streamlines most of the known equivalence-preserving SAT preprocessing methods. In addition, we propose a simplification procedure based on the systematic application of two of our rules (EPR and TWSR) which is solver-agnostic and can be used to simplify large Boolean satisfiability problems and propositional formulae in arbitrary form, and we provide a formal analysis of its algorithmic complexity in terms of space and time. Finally, we show how our rules can be further extended with a novel n-ary implication graph to capture all known equivalence-preserving preprocessing procedures.

Information

Type
Rapid Communication
Creative Commons
Creative Common License - CCCreative Common License - BY
This is an Open Access article, distributed under the terms of the Creative Commons Attribution licence (https://creativecommons.org/licenses/by/4.0/), which permits unrestricted re-use, distribution and reproduction, provided the original article is properly cited.
Copyright
© The Author(s), 2025. Published by Cambridge University Press
Figure 0

Fig. 1. Vampire proof of Peirce’s law, extracted from Reger (2016). The proof starts from the bottom, and the text within square brackets indicates the step order as well as the name of the transformation or inference rule applied.

Figure 1

Fig. 2. Examples of existential graphs representing different propositional logic formulae.

Figure 2

Fig. 3. BIG of $\varphi =(\overline {X}\lor Y)\land (\overline {Y}\lor Z)\land (\overline {Z}\lor U)\land (\overline {U}\lor V)\land (\overline {U}\lor Y)$.

Figure 3

Fig. 4. EG of $\varphi$ (left), where the EG-elements coloured in orange can be simplified by propagating their outermost instances, marked in blue, to obtain $\varphi '$ (right).

Figure 4

Fig. 5. EGs of $\varphi =(\overline {X}\lor \overline {Y}\lor \overline {A})\land \neg ((A\rightarrow B)\land (B\rightarrow A)\land (\overline {X}\lor \overline {Y}\lor \overline {B}))$ and its reduction to $\varphi '=(\overline {X}\lor \overline {Y}\lor \overline {A})$ with $[A]=\{A,\overline {B}\}$ after nestedly applying EPR and then deiteration.

Figure 5

Fig. 6. EGs of $\varphi =(\overline {X}\lor \overline {Y}\lor \overline {A})\land (A\rightarrow B)\land (B\rightarrow A)\land \neg ((C\rightarrow B)\land (B\rightarrow C)\land (\overline {X}\lor \overline {Y}\lor \overline {C}))$ and its reduction to $\varphi '=(\overline {X}\lor \overline {Y}\lor \overline {A})$ with $[A]=\{A,B,\overline {C}\}$ after nestedly applying EPR to the union of nested BIGs and then deiteration.

Figure 6

Fig. 7. EGs of $\varphi =(\overline {A}\lor B)\land (\overline {B}\lor C)\land \neg ((C\lor \overline {A})\land X\land Y)$ (left), and its equivalent reduction $\varphi '=\mathrm{TRR}(\varphi )=(\overline {A}\lor B)\land (\overline {B}\lor C)\land (\overline {X}\lor \overline {Y})$ (right).

Figure 7

Fig. 8. EGs showing the application of OSIR to $\varphi =(\overline {X}\lor \overline {Z})\land ((B\land \overline {C})\lor$$ (X\land Y\land \overline {A})\lor (A\land \overline {B})\lor (P\land A\land Q)\lor (C\land A))$ and the subsequent SWR application where the new singleton $\overline {A}$ is propagated to obtain the equivalent reduced formula $\varphi '=(\overline {X}\lor \overline {Z})\land ((B\land \overline {C})\lor (X\land Y)\lor A)$.

Figure 8

Fig. 9. EG of $\varphi =(A\rightarrow E)\land (B\rightarrow F)\land (C\rightarrow G)\land \neg ((\overline {A}\lor \overline {B}\lor G\lor \overline {H})\land$$ (\overline {A}\lor \overline {B}\lor \overline {C}\lor \overline {D})\land (\overline {E}\lor \overline {F}\lor \overline {G}))$ (left), where the literals satisfying TWSR’s definition conditions are highlighted in matching colours. The equivalent reduced formula resulting from applying TWSR is shown on the right-hand side.

Figure 9

Fig. 10. EGs of two applications of the TWSR, where colours highlight related literals (equal – in green – or in the same implication chain – in orange or blue).

Figure 10

Fig. 11. Proof of Peirce’s law, which states that $((P\rightarrow Q)\rightarrow P)\rightarrow P$, obtained from the systematic application of the EPR + TWSR procedure, which prioritises the propagation of the smallest outermost unprocessed clauses. The detected simplifications in each graph transformation are highlighted in orange. Recall that the automatic theorem prover Vampire required 7 steps and 3 flattening transformations (see Figure 1).

Figure 11

Fig. 12. EGs of $\mathrm{CNF}(\varphi )=(\overline {C}\lor A)\land (\overline {C}\lor B)\land (\overline {C}\lor D)\land (\overline {A}\lor \overline {B}\lor \overline {D})$ (left), its equivalent factorised form $\varphi =(\overline {C}\lor \neg (\overline {A}\lor \overline {B}\lor \overline {D}))\land (\overline {A}\lor \overline {B}\lor \overline {D})$ (middle), and its equivalent reduced form $\mathrm{TWSR}(\varphi )=\varphi '=\overline {C}\land (\overline {A}\lor \overline {B}\lor \overline {D})$ (right).