TL;DR
This paper introduces a novel, non-canonical representation for propositional calculus formulas, moving away from traditional term-rewriting and production systems. By leveraging a flexible disjunctive normal form with a special "any" symbol, the authors present a method that efficiently handles complex logical problems, demonstrating its practical implementation in PASCAL.
What Problem Does This Paper Address?
Implementing propositional calculus on computers, despite its theoretical simplicity, presents significant practical challenges, especially when dealing with complex problems. Traditional methods like truth tables or canonical forms can lead to combinatorial explosions, making them computationally infeasible for many real-world applications. Boolean logic is increasingly vital in areas like constraint logic programming, highlighting the need for efficient and scalable computational structures for handling logical expressions. This paper aims to bridge this gap by proposing a representation that is both compact and flexible enough to overcome these combinatorial hurdles.
Methods
The core of the paper lies in its unique representation of propositional calculus. Instead of relying on standard term-rewriting or symbol-oriented approaches, the authors propose a non-canonical representation in disjunctive normal form. This representation introduces a special symbol, denoted by "*", which signifies "any" value (true or false) for a boolean variable. This "any" symbol allows for a more compact representation, especially for propositions that don't constrain all variables.
The system uses four symbols: E (empty/inconsistent), 0 (false), 1 (true), and * (any). These are internally represented by two-bit binary words. Crucially, set intersections in the symbolic representation correspond to bitwise "AND" operations on these binary words, and set unions correspond to concatenation of lists of words. This allows for efficient manipulation of logical expressions.
Key operations include:
- Negation: Handled by passing the negation through to the predicate letters.
- Conjunction (AND): Implemented as a bitwise AND of corresponding digits in the words representing terms.
- Disjunction (OR): Implemented by concatenating lists of words representing terms.
- Merging: A critical operation to manage the combinatorial explosion. This involves recognizing set inclusions (if x implies y, replace x V y with y) and removing duplicate terms. This merging process is described as essential for practical efficiency.
- Projection: A procedure to simplify expressions by considering only relevant variables, which can significantly speed up processing, especially with a large number of variables.
Datasets
Not discussed in the paper. The paper focuses on the representation and algorithm itself, with examples drawn from logic puzzles and theoretical scenarios rather than specific datasets.
Key Insights and Ideas
- The Power of "Any": The introduction of the "*" symbol is a game-changer. It allows for a much more concise representation of propositions where not all variables are constrained, directly addressing the combinatorial blow-up seen in other methods.
- Non-Canonical is Okay (and Beneficial): The paper argues that a non-canonical representation, while potentially leading to more terms initially, offers flexibility that overcomes combinatorial problems. The key is efficient merging and reduction.
- Bitwise Operations for Logic: The mapping of logical operations (AND, OR) to bitwise operations on internal representations is a clever engineering choice that enables efficient computation.
- Merging is Crucial: The paper emphasizes that without effective merging (especially set inclusion checks), the combinatorial issues would persist. This highlights the importance of algorithmic optimization beyond just the representation.
- Projection for Efficiency: The projection operator offers a way to prune the search space by focusing only on relevant variables, a valuable technique for large-scale logical reasoning.
Key Results
The paper reports that the implemented PASCAL system successfully solves problems described in the literature as "difficult." A specific example cited is the Lewis Carroll salt and mustard problem, which reportedly takes about 1.5 seconds on an Apollo 3550 workstation. This is contrasted with a potential generation of 35,000 clauses using a saturation method. The authors claim their approach is "sufficiently powerful to circumvent the combinatorial difficulties that beset many practical problems."
Limitations and Future Work
- Empirical Workability: The authors acknowledge that the workability of their methodology is primarily empirical, stemming from the observed efficiency rather than a formal proof of its superiority in all cases.
- NP-Completeness: They recognize that the general problem of propositional calculus is NP-complete, implying that complete mastery of all combinatorial difficulties is unlikely.
- Limited Exploration of Merging: While inclusion is highlighted as critical, other merging operations (like combining words differing in a single digit) are mentioned but not fully pursued due to potential complexity outweighing benefits.
- Future Work: The paper suggests that the bare skeleton of their approach, even without projections, is adequate for many practical problems. However, it also points to potential future work in exploring other merging operations and the application of projections to specific areas like "fields of production." The authors also note that the system evaluates expressions as logically valid, false, or satisfiable but not valid, avoiding the issue of negation as failure.
Summary updated