Abstract
This paper presents LP (and its successor LP*), a system designed to learn symbolic equation-solving strategies by observing worked examples. Unlike previous systems that focused on rote rule application, LP utilizes meta-level inference and flexible planning schemas to understand the strategic purpose behind mathematical transformations. By representing equations through "Characteristic Tuples" and recording the preconditions and postconditions of operations, the system can generalize from a single example to solve problems significantly more complex than those it was trained on.
Introduction
In the early 1980s, symbolic AI was highly effective at solving equations using hard-coded heuristics, but the acquisition of these strategies remained a manual, labor-intensive process. While early machine learning systems could learn to replace numbers with variables, they lacked a fundamental understanding of strategy—the knowledge of when and why a specific transformation should be applied.
Bernard Silver’s work on LP addresses this gap by treating equation solving as a planning problem. Built on top of the existing PRESS (PRoblem SolvEing System) solver, LP learns to bridge the divide between simple rule-following and high-level strategic planning in the domain of transcendental, non-differential equations.
The Problem: Strategic Intent in Mathematics
The primary challenge in automated equation solving is not just knowing that a rule is valid (e.g., that $\sin(A) + \sin(B)$ can be rewritten), but knowing if that rule helps reach the solution. Previous systems often relied on exhaustive search or rigid scripts. Silver sought to create a program that could identify the "strategic purpose" of a step—for instance, recognizing that a specific identity is used specifically to reduce the number of occurrences of an unknown variable.
Methodology
LP’s learning architecture consists of several interconnected components that allow it to analyze, generalize, and execute mathematical plans.
Meta-Level Description: Characteristic Tuples (CT)
To move beyond surface-level syntax, LP describes equations using a "meta-level" representation called a Characteristic Tuple (CT). This tuple records essential features of the equation, such as:
- The number of occurrences of the unknown variable.
- The types of functions involved (e.g., trigonometric, exponential).
- The dominant mathematical operator.
By focusing on the CT rather than the specific variables or constants, LP can recognize structural similarities between seemingly different problems.
Step Justification and Rule Conjecturing
When presented with a worked example, LP examines consecutive lines to determine which high-level "method" (operator) was applied. If the system encounters a step it does not recognize, it enters a "Rule Conjecturing" phase. It identifies the difference between the two lines, removes common terms, and equates the remainders. To ensure mathematical correctness, the system currently relies on a human user to provide the general algebraic form of the conjectured rule, preventing incorrect over-generalization.
Schemas as Flexible Plans
Once a problem is analyzed, the sequence of methods is stored as a schema. Unlike a rigid macro, a schema in LP acts as a flexible plan. It records the "major effects" (postconditions) each step is intended to achieve.
During execution on a new problem, LP does not blindly follow the schema. If a specific method fails to apply, the system searches for an alternative method that achieves the same major effect. This allows the system to adapt to variations in equation structure that were not present in the original training example.
Key Insights: Learning from a Single Trial
A significant contribution of this work is the ability to extract generalizable strategies from a single example. By leveraging concepts from AI planning—specifically preconditions and postconditions—LP identifies the "purpose" of a step by looking at what it enables for future steps. If a rewrite rule does not solve the equation directly but makes a powerful method like "Collection" (reducing the number of variable occurrences) applicable, LP marks that reduction as the rule's primary strategic purpose.
Results and Evaluation
LP was evaluated using specific worked examples of symbolic equations, primarily in the trigonometric domain. The most notable result was the system's ability to solve problems structurally more complex than its training data.
In one instance, after being shown a 7-line solution for a two-term equation (Equation V), LP successfully generated a 14-step solution for a three-term equation (Equation VI). This demonstrated that the schema-based approach allowed the program to treat the learned technique as a modular sub-problem within a larger, more complex task, mimicking the way a human student applies known techniques to novel challenges.
Limitations and Future Directions
Despite its successes, LP has notable limitations:
- Human-in-the-loop: The system cannot yet autonomously generalize complex algebraic identities without human verification.
- Search Space Complexity: In mathematics, meeting a method's preconditions does not always guarantee success, making the search space more difficult to manage than in classic STRIPS-style planning.
- Domain Expansion: The author suggests that this planning-centric approach is highly applicable to other symbolic domains, most notably symbolic integration, where the difficulty lies in choosing the correct transformation rather than the calculation itself.
Conclusion
LP represents a foundational step in combining symbolic reasoning with machine learning. By focusing on meta-level inference and the strategic intent of mathematical operations, Silver demonstrated that AI systems could move beyond rote memorization toward a more sophisticated, plan-based understanding of problem-solving.
Summary updated