← Latest papers
🔢 mathematics

Sharing in Natural-Deduction Proof Graphs: Canonical Folds and the Complexity of Assumption Renaming

This paper investigates the trade-off between sharing subderivations and managing assumption discharge in natural-deduction proof graphs, demonstrating that while optimal sharing is efficiently computable for fixed identifiers or single-level discharge, the problem of renaming bound identifiers to maximize sharing becomes NP-complete for depth-two discharge, with no polynomial-time approximation scheme available.

Original author: Khanh Pham

Published 2026-11-24
📖 6 min read🧠 Deep dive

Original author: Khanh Pham

Original paper licensed under CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). ✨ This is an AI-generated explanation of the paper below. It is not written or endorsed by the author. For technical accuracy, refer to the original paper. Read full disclaimer

In the world of automated reasoning, computers are increasingly asked to do more than just solve problems; they are asked to produce the proofs that show why those solutions are correct. These proofs are massive, complex documents that can grow to hundreds of gigabytes in size, far too large to be stored as simple, linear lists of steps. To manage this, scientists store these proofs as interconnected networks, where a single piece of reasoning that is needed in many different places is written down only once and then referenced from multiple angles. This method, known as sharing, saves enormous amounts of space. However, a unique difficulty arises when these proofs involve assumptions—temporary ideas that are introduced to help build an argument and then discarded once they have served their purpose. In a standard proof, the name given to such an assumption is like a local label; it only matters within the specific section where it is used. But when you try to compress a proof by merging identical sections, the choice of these labels becomes critical. If two sections look the same but use different names for their temporary assumptions, a computer cannot see that they are actually the same, and it misses the chance to save space.

This is the central puzzle tackled by Khanh Pham in a recent study on how to optimally compress these logical proofs. The research focuses on a specific type of proof structure where every step carries a record of the assumptions currently in play. The author investigated whether it is possible to automatically rename these temporary assumptions to make the proof as small as possible. The findings reveal a sharp divide in difficulty depending on the complexity of the proof. For simpler proofs where assumptions are discarded in a straightforward, single-layer fashion, the computer can find the best way to rename them quickly and efficiently, resulting in the smallest possible version of the proof. However, the situation changes drastically when the proof involves two layers of nested assumptions. In these cases, deciding the best way to rename the assumptions to achieve maximum compression becomes a problem of extreme difficulty. The study proves that for these more complex structures, finding the optimal renaming is computationally intractable, meaning no efficient algorithm exists to solve it, and even finding a solution that is close to the best possible is likely impossible.

The paper introduces a new way of looking at these proofs, treating them as graphs where every node is a specific judgment that includes both a formula and the list of assumptions it depends on. This approach allows the system to check if a proof is valid by looking only at the immediate connections between steps, rather than having to trace long paths through the entire document. When the names of the assumptions are fixed, the problem of finding the smallest version of the proof is well-understood and solvable. The researchers showed that the best way to compress such a proof is to identify and merge any parts that are structurally identical, a process that can be done very quickly. This is similar to how a computer might compress a file by finding repeated patterns, but here the patterns are logical arguments rather than strings of text. The study confirms that for proofs with fixed names, this compression is not only possible but canonical, meaning there is one unique, smallest version that can be reached.

The real challenge emerges when the system is allowed to change the names of the discarded assumptions to create more opportunities for merging. The author demonstrates that while this flexibility can lead to significantly smaller proofs, the cost of finding that perfect arrangement is high. In proofs where assumptions are discharged in a single step, the optimal renaming is still easy to find. But once the proof structure allows for two levels of nested assumptions, the problem shifts into a realm of extreme complexity. The research proves that determining whether a proof can be compressed to a certain size by renaming assumptions is a problem that belongs to a class of tasks known to be NP-complete. This means that as the size of the proof grows, the time required to find the best solution grows exponentially, making it practically impossible for large proofs. Furthermore, the study shows that even trying to find a solution that is merely "good enough" is not feasible, as no efficient method exists to approximate the optimal result.

The paper also compares this method of proof compression with other existing techniques. Some older methods merge proof steps based solely on the formulas they contain, ignoring the specific assumptions attached to them. While this can sometimes produce a smaller graph, it often sacrifices the ability to check the proof's validity locally. The new approach, which keeps the assumption context attached to every step, ensures that validity can be checked at every single point without needing to look at the whole picture. The study finds that for certain types of proofs, the method that keeps the context attached can require exponentially more nodes than the method that ignores it, highlighting a fundamental trade-off between the compactness of the proof and the ease with which it can be verified. This trade-off is not just a theoretical curiosity; it has practical implications for how proof assistants and automated reasoning tools are designed and how they store the massive logical structures they generate.

To ensure the theoretical results were sound, the author implemented the concepts in a computer program and tested them on various small examples. These tests confirmed that the rules for merging proofs work as predicted and that the counting formulas used to estimate the size of the compressed proofs are accurate. The experiments validated that the difficulty of the renaming problem is real and that the sharp boundary between easy and hard cases exists exactly where the theory predicts. The study concludes that while we can efficiently compress proofs with simple assumption structures, the presence of nested assumptions creates a barrier that cannot be easily overcome. This suggests that future systems for handling large-scale logical proofs will need to either accept larger file sizes for complex arguments or find new ways to structure proofs that avoid these deep layers of nested assumptions. The work provides a clear map of where the limits of proof compression lie, distinguishing between what is computationally easy and what is fundamentally hard in the realm of logical reasoning.

Drowning in papers in your field?

Get daily digests of the most novel papers matching your research keywords — with technical summaries, in your language.

Try Digest →