---
title: "Discovery and Reasoning in Mathematics"
authors:
  - "Alan Bundy"
doi: ""
url: "https://ijcai.org/proceedings/1985/246"
pdf: "https://ijcai.org/proceedings/1985/0246.pdf"
venue: "Proceedings of the Ninth International Joint Conference on Artificial Intelligence"
year: 1985
pages: "1221-1229"
track: "General"
keywords:
---

# Discovery and Reasoning in Mathematics

Alan Bundy

*Proceedings of the Ninth International Joint Conference on Artificial Intelligence*, pages 1221-1229.

## Abstract

We discuss the automation of mathematical reasoning, s urveying the abilities displayed by human mathematicians and the computational techniques available for automating these abilities. We argue the importance of the simultaneaus study of tliese techniques, because problems inherent in one technique can often be solved if it is able to interact with others.

## Full text

## 1. Introducbon

A major goal of artificial intelligence is to automate reasoning. Salutions to this goal will have both technological applications, enabling us to build more powerful expert systems, and scientific ap­ plications, providing models to compare with human reasoning. Mathematics is an excellent domain for exploring the automation of reasoning because:

- (a) it provides a wide range of examples of reasoning, from the . simple and shallow to the complex and deep;
- (b) it is poss ible to detach this reasoning from other considerations, such as sen­ sory input of data; and ,
- (c) to of a first approximation, the problems knowledge representation have been
- solved.

Compare mathematics with other AI domains in which reasoning plays a part , e.g. natural language under­ standing or visual perception. In mathematics one is not bogged down with huge amounts of noisy data, nor concerned that what seems to be a difficult reasoning issue may evaparate if the knowledge representation were changed. One is free to con­ centrate on the reasoning problems and then make an attempt to translate any solution found to

other· domains.

In this paper I discuss the automation of math­ ematical reasoning, by which I mean any cognitive

activity that mathematicians engage in as math-

1 Thi s research was supported by SERC grant, nu11b·r GR/C/20826 .

## DISCOVERY AND REASONING IN HATHEHATICS 1

Alan Bundy

Oepar·tment of Artificial Intelligence, University of Edinburgh

ematicians. The main theme will be that math­ ematical reasoning consists of mor·e than just theorem proving, and that the simultaneaus automa­ tion of other reasoning processes, e.g. learning, simplifies the automation task. Each reasoning process outputs knowledge but also demands knowledge as input. If a computational technique for automating a particular reasoning p r ocess is studied in isolation then the provision of its input knowledge may prove a major barrier to automat ion. But the input knowledge of one technique is the output knowledge of another, so that the tech­ niques fit tagether in an intercommunicating net­ work. Some techniques for automated reasoning may involve search. In isolation the search involved may be computationally expensive. But one technique may be used to control the search of another, especially if the two techniques are co-routined or even merged into one. The power of a system in which the various techniques interact in well-crafted ways will be more than just the sum of the power of the par·ts.

I advocate the simultaneaus study of all the the processes of mathematical reasoning with particular emphasis on the possible interactions between the techniques that automate them.

## 2. Reasoning Abilities in Mathematics

What processes are involved in mathematical reasoning? In this section we discuss the various processes and the AI techniques that have been proposed to automate them. More details about these techniques can be found in [Chang l. Lee 73, Bundy 83].

The first problern we face is how to classify mathematical reasoning into different processes - what my psychology friends call defining the task ecology . Our starting point is a 'folk ecology' of reasoning processes, i.e. the terms used in pre­ scientific discussion of reasoning. We will call these mathematical abilities. With these abilities we must associate computational techniques which implement them. These techniques will form our scientific classification. But the association of abilities to techniques not a neat 1-1 mapping. We are likely to find many techniques to associate with each ability. Same abilities, e.g. learning, have so many diverse techniques associated with them that they seem highly unsuitable as scientific categories, whereas the techniques associated with some abi lities, e.g. theorem proving, all have a strong family resemblance. Some abilities require a com­ bination of techniques. Consider, for instance, anal­ ogy which requires separate techniques for finding and then using the analogy. Each of these techniques will techniques abilities. deduction require sub-techniques. Some of these may contribute to several different Consider, for instances, resolution-type techniques, which are ubiquitous.

We Iist below the mathematical abilities we will be considering under the heading of mathematical reasoning and mention some of the techniques which have been used to implement these abilities.

- Proving theorems: The ability that has received the most attention in the AI study of mathematical reasoning, almost to the exclusion of all others, has been theorem proving. Automated theorem proving has been an important subfield of AI throughout its history. The main techniques required to automate theorem proving are deduction which involves search control. Deduction traverses a search space of legal inference ·steps. Search control decides which of these steps to try.
- Formalizing Problems: However, math­ ematicians, especially applied math­ ematicians, spend a large part of their time translating informal problern state­ ments into mathematical formulae to which deduction, etc. may be applied. The initial stages of this translation in­ volve natural language understanding, visual perception, etc but these are not specifically mathematical techniques. Later stages involve the specifically math­ ematical technique of formula extraction from the internal meaning representation, which may itself involve deduction (see section 3.5).
- Learning: This term covers a multitude of processes, for instance, the learning of new mathematical theorems, the learning of new proof methods, the defining of new concepts, the conjecturing of results, etc. New theorems must be as­ similated into the theorem proving ability so that they may be used effectively in the future. The assimilation technique required will depend particularly on the search control technique being used, e.g. the new theorem will need to be Iabeiied so that it can be accessed when needed. Similarly, new proof methods must be in­ corporated into the current search con­ trol technique. This may involve a proof analysis technique to analyse new proofs and generalize them to extract control information, e.g. proof plans. Oefining new concepts can be done by indu.:tive inference from descriptions of examples and non-examples of the concept.2 Con­ jecturing of theorems can be done by considering the hypothesis of the conjec­ ture to be a concept to be defined

using the above techniques.

- Using Analogy: Mathematicians use analogy to suggest conjectures and new defini­ tions, and to guide proofs. All uses require analogical matehing techniques to find and apply the relationship between the target and the source of the analogy (see [Owen 85] for a survey). This is all that is required for suggesting conjec­ tures and definitions, but to use a source proof to control the search for a target proof a further proof plan ap­ plication technique is required.

This is by no means an exhaustive Iist; math­ ematicians also find counterexamples, write, publish and deliver papers, teach students, read textbooks, etc. Unfortunately, we have nothing to say about these other abilities, so they are omitted.

## 3. Mathematical Reasoning Techniques

In this section we classify and discuss some of . the techniques that have been developed for automating the mathematical abilities described in the last section. There is only space to discuss those we consider particularly promising. We group these techniques according to their computational purpose and mutual similarity, e.g. deduction, search control, inductive inference, etc. This provides a more scientific classification of math­ ematical reasoning processes than the Iist of math­ ematical abilities above. But even this classification is bound to be improved as we discover new tech­ niques and gain a better understanding of the ex­ isting techniques and their inter-relationships. It should therefore be regarded as both incomplete and highly preliminary.

## 3.1. Deduction

The most weil known deduction technique is r·esolution, [Robinson 65]. Resolution is a rule of inference for Predicate Calculus, that is, it is a rule for deducing new logical formulae from old. To prove that a conjecture is a theorem of a mathematical theory both the axioms of the theory and the negation of the conjecture are expressed as clauses (a normal form for Predicate Calculus formulae). Resolution takes a pair of clauses and makes subparts of each identical using a matehing technique called unification. The remaining parts are combined tagether to make a new clause. Resolu­ tion applied repeatedly to the initial clauses and to their successors defines a search space of clauses. This is searched for a contradiction. lf the search is successful then the conjecture is a theorem.

The representation of axioms and conjectures as logical formulae is given in the texts of math­ ematics and logic. It is in this sense that I

claimed that the knowledge representation problern was solved to a first approximation.

2 Not· that inductiv· inf·r·nc· 11 not th· nM ao toath­ ··atical induction I··· ··ction 3.2 b·lowl, which ie a d·ductiv· rul· of inf·r·nc·.

The resolution search space is guaranteed to con­ tain a contradiction if and only if the conjectur-e is indeed a theorem. The ' i f' part is called complete­ ness and the 'only if' part is called soundness. The snag is that if the conjecture is not a theorem then the search may never terminate. The number of new clauses generated rises exponentially, or worse, with the length of the proof. If the proof is non-trivial then either the storage capacity of the computer or the patience of the human operator is exhausted before the proof is found. This is an example of the phenomenon called the combinatorial explosion.

Various refinements of or alternatives to resolu­ tion have been designed and implemented, with the aim of improving on its space and/or time efficiency without losing completeness. One of the most powerful alternative deduction techniques is the Connection Calculus, [Bibel 82]. These improvements reduce the combinatorial explosion, however, but do not conquer· it.

There have also been attempts to avoid the com­ binatorial explosion by proposing radically new deductive techniques. This has sometimes ted to techniques which are efficient at proving restricted classes of theorems, e.g. rewrite rules [Huet &amp;. Oppen 80]. It has also led to the reinvention of the wheel some researchers have rejected the logical approach, only to reinvent it tagether with the attendant problems of incompleteness and/or combinatorial explosion.

Rather than reject logical deduction techniques it is necessary to augment them with heuristic tech­ niques to control the search for a proof, [Hayes 77]. Search control techniques developed have ranged from weak but generat purpose ones, e.g. evaluation functions based · on the complexity of the formulae, to powerful but special purpose ones, such as those described in the next section. For a survey see [Biedsoe 77].

## 3.2. Search Control

A number of powerful search control techniques have been developed by careful analysis of the proofs of human mathematicians to extract the un­ derlying control ideas and express them computa­ tionally.

The simplest technique, called heuristic ru/es, is to add these control ideas into the mathematical for­ mulae as preconditions for their application. For instance, the LEX program, [Mitchell et al 81] , uses rewrite rules to symbolically integrate algebraic terms, e.g the rule:

<!-- formula-not-decoded -->

is used to integrate by parts. which this rule successfully where u is a variable, x, and One class of terms integrates is those dv/dx is a constant multiple of a sine or cosine. This knowledge is represented in LEX preconditions to the above rule, i .e. search control by appending

<!-- formula-not-decoded -->

<!-- formula-not-decoded -->

where n is an integer and trig any trigonometric function

Note that this precondition is too general; trig includes tan, for which the rule does not work. We discuss this problern in section 3.3 below.

Note that these preconditions can get very com­ plicated since the same rule may be used success­ fully in a number of d i fferent circumstances and the precondit10n must be the disjunct of these crrcumstances. 3 Note also that the rule now con­ tains a mixture of factual and control knowledge. These complications can cause difficulties, e.g. in the automatic learning of such rules, so some researchers prefer to separate factual and control knowledge.

For instance, the Boyer/Moore Theorem Prover, [Boyer &amp;. Moore 79], represents its control knowledge as procedures for manipulating the math­ ematical formulae. This theorem prover exploits the relationship between recursion and mathematical in ­ duction to guide inductive proofs of the properties of Lisp functions. The recursive definitions of the Lisp functions are first used to symbolically evaluate the conjecture to be proved. This may fail because the conjecture contains arbitrary constants and the evaluation process requires lists with internal struc­ ture. This failure is used to guide the choice of induction scheme and variable, so that when symbolic evaluation is applied to the induction conclusion just enough structure will be available to enable the induction step to be performed. We will call this technique, recursion guidance.

Note that recursion guidance involves an analysis of the conjecture and its failed proof, and the choice of an appropriate proof technique on the basis of this analysis. This analysis uses meta­ concepts4 to describe the conjecture, its proof and the proof methods, e.g. the terms induction hypothesis, induction step, etc in the Boyer/Moore Theorem Prover or trigonometric function in LEX. These meta-concepts must be discovered by study of existing proofs, introspection, etc. It is in this sense that the knowledge representation problern is only solved to a first approximation, since the num­ ber of possible meta-concepts is open ended and the choice of appropriate ones determines the suc­ cess or failure of the technique.

30r an additional rul· uaed for each circu.atance.

4 Th· ter· · Mta Ia u .. d becauee the concepta in quut1on ducribe the repruentat1on of the problem, i ··· they are about it rather than of it.

This process of analysis and guidance using meta­ concepts is itself a reasoning process and can be conveniently represented as deduction - but deduc­ tion in a meta-theory, rather than the theory it­ self. Such a use of deduction to guide deduction is made explicit in the PRESS system, [Bundy ~ Wel­ nam 61], for solving equations. The PRESS meta­ concepts describe the equation to be solved, e.g. the number of unknowns, their distance apart, the kind of functions involved, etc, and they describe various methods of solving equations or of acnieving useful subgoals, e.g. reducing the number of un­ knowns, moving them closer together, making them occur within identical subterms, etc. Deduction with these meta-concepts induces an implicit, but highly controlled, search for the solution to an equation. We call this technique, meta-level in­ ference5 (see figure 3-1).

![Image](https://ijcai.org/proceedings/1985/fulltext/246/image_000000_1a6547215470b6d0076be6f0dec054685457b81138da7405b0aae91c0655860d.png)

These meta-concepts can also be used to express proof plans, e.g. the plan to move two unknowns closer together, then merge them and then isolate the remaining occurrence. This plan might be provided by the programmer or learnt by pr·oof analysis of a worked example (see section 3.3). Al­ ternatively the proof plan may be at the object­ level, e.g. the proof of an analogaus theorem, or a generalized proof, [Piummer ~ Bundy 84]. In each case it must tnen be applied by a proof plan application technique. This application might be Straightforward - the target proof exactly following the plan - or the plan may need to be relaxed or augmented at various points. A variety of tech­ niques have been suggested for realising such a flexible plan application technique (see, e.g. [Silver

64])

## 3.3. Proof Analysis

The process of constructing and augmenting powerful search control techniques, by adding meta­ knowledge gained from analysing proofs, can itself be automated. This analysis will depend crucially an the search control technique in question. For in­ stance, in tne case of the PRESS system, described in section 3.2. the solution to an equation must be analysed using tne meta-concepts of PRESS. For each step an account must be given of not only what algebraic identity was applied but also wny it was applied and how this reason fitted into the overall proof plan. For instance, sin u.cos u = 1 /2.sin 2u was applied to reduce the occurrences of u from 2 to 1 in order that that single occurrence could be isolated an tne left hand side of the equation. This kind of analysis is performed by the LP program, [Silver 64], which was able to learn new methods of equation solving and extend tne range of problems that PRESS could solve. The technique used by LP is called Precondition Analysis because it discovers new methods by considering how un­ explained steps establish the preconditions . of suc­ cessive steps.

5 tn centrast to the deduction of the ~quation aolution. which is called object-level inference.

In the case of the LFX program for symbolic integration (also described in section 3.:?) the tech­ nique of back propagation was developed to analyse successful solutions and extract the control infor­ mation. This technique was incorporated in the LEX2 program, [Mitchell et al 63]. In back propagation the successful sequence of rewrite rules was applied in reverse order to a generalized answer to see what constraints this would impose an the original problem. These constraints then became the ~recon­ ditions of the first rule of the sequence. For instance, given a successful integration of cos 7 (x), LEX2 used back propagation to discover that the same sequence of rules would have worked an any term of the form cos"(x). where n was an odd integer. The first rule of this sequence,

was then given the precondition, f=cos ~ odd(r). In forming this constraint, back propagation also defined the concept 'odd' as any number of tne form 2k+ 1, where k is an integer·.

Proof analysis can also be used to analyse faulty proofs and repair them. For instance, a classic faulty proof in the history of analysis is due to Cauchy, namely that a conver~ent serie.s of . con­ tinuous functrons rs contrnuous. Thrs proof can be analysed using deduction and the fault identified as a missing occurs check during unification (see section 3.1. This suggests an obvious patch, namely changing the order of quantifiers in the theorem statement, and this generates three new concepts and three new and correct theorems. One of these is the traditional replacement of convergence by uniform convergence; one is a trivial theorem whose conclusion is always true; and one is a new theorem involving the concept of equi-continuity. This reasoning process, which we will call argument removal, has been implemented in a program, SEIDEL, descr·ibed in [Bundy 65].

6 It would have been mor~ powerful to r~member the wholo sequence aa a proof plan and make the conatraints the preconditions of the plan rather than just its first atep.

7 See [Lakatoa 761 for a diacusaion of this proof and i ta hiotory.

For a survey of the use of proof anatysis for learning see [Boswell 85].

## 3.4. Inductive Inference

Inductive inference has received a tot of atten­ tion in the tearning literature, with a number of techniques being developed. For a survey see [Oietterich et al 82] and for an analytic com­ parison of some of these techniques see [Bundy et al 83]. They alt learn a concept from examples and, sometimes, non-examples of it. From examples of the concept the techniques might generali~e: replacing specific relations and terms with more generat ones. From non-examples of the concept the techniques might discriminate: pruning away rela­ tions and terms that are not an essential part of the concept.

This can be used for the learning of both new object-level (factual) and new meta-level (search control). For instance, Mitchell et al's LEX program, [Mitchell et al 81], used induction to learn the meta-level conditions for applying a particular strategy for integrating by parts. Given that the strategy worked correctly to integrale 3x.cos(x) and 5x.sin(xl. LEX generali:.::ed these terms to hypothesise that the strategy will work for terms of the form nx.trig(x), where n is any integer and trig any trigonomGtr·ic function.

Both the sub-techniques of generali:lation and dis­ crimination are crucially dependent on the descrip­ tion space. For instance, in LEX the description space contains concepts like 3, 5, n, cos, sin, trig, etc. The generalization of two concepts is the most specific concept in the description space which includes both of them, e.g. trig is the generali7.ation of cos and sin. However, if a term for 'sine or cosine' were added to the description space then it would replace trig as the generaliza­ tion of cos and sin. In fact, this is the concept required, as discussed in ·section 3.1. Without it, I.EX overgeneralises to trig.

## 3.5. Formula Extraction

A key technique in the mathematical formalisation of problems is the extraction of formulae from a meaning representation, e.g. the semantic represen­ tation of an English description of the problem. Formutae extraction techniques have received little at tention in AJ despite their importance in human mathematical reasoning. However, the MECHO program, [Bundy et al 79], contained a formuta ex­ traction technique called the Marp/es algorithm, for forming equations to describe mechanics problems.

The Marples algorithm is a kind of plan formation techr.ique. Equations are formed by instantiating physical laws, e.g. F=MA. With each taw is stored a Iist of the things it is about and a togicat descrip­ tion of how these things relate to the variables in the law. For instance, F=MA is about an object and a direction. The variable M is the mass of the object , A its acceleration in that direction, and F the sum of the forces acting in that direction. A taw and a situation are chosen after an anatysis of the unknowns and givens of the problem. The vari­ ables are then instantiated by inferring the togical description from the meaning of the English problern statement.

This inference process may use deduction and default reasoning to fill gaps between the state­ ment of the problern and the knowledge requirGd to instantiate the taw. MECHO used resolution guided by meta-level inference for the deduction and the closed world assumption for the default reasoning. Deduction was needed, for instance, to work out the contributions to the sum of forces from gravity, the tensions of strings, the reactions of contact surfaces, etc. Default reasoning was used, for instance, to assume that the only surfaces in contact were those mentioned in the problern statement.

## 4. The Interaction of Reasoning Techniques

The mathematical reasoning techniques outtined above can interact in a variety of . ways. For instance, successful deductions might provide the material for proof analysis and for analogy. Proof analysis may suggest proof plans to aid deduction. The desire to make a particutar theorem hold may trigger a process of proof analysis that Ieads to changes in definitions and axioms. Sometimes these interactions can be more intimate. Several deduction techniques may be co-routined or even merged so that each prunes the search space of the others. We discuss some of these possibilities in more detail betow.

## 4.1. The Interaction of Techniques in the PRESS Family

In my research group work has continued over a number of years on a famity of programs working on the common domain of symbolic equation solving.

- As described in [Bundy &amp;. Welham 81] and section 3.2 above, the PRESS program used the deduction technique of rewrite rules to generate solutions to equations. This deduction technique was guided by the search cantrot technique of meta­ level inference.
- The LP (Learning PRESS) program (see [Silver 84] and section 3.3) used the proof analysis technique of precondition analysis to extract and conjecture new methods of solving equations which were then used by PRESS.
- The IMPRESS (Inferring Meta-knowtedge about PRESS) program, [Sterling &amp;. Bundy 82], was a theorem proving program for proving properties of togic programs. It was used to prove properlies of the Prolog code of PRESS using a modified version of recursion guidance (see section 3.2). For instance, it proved the correct­ ness of some PRESS equation solving methods, i.e. that under appropriate preconditions the methods would achieve

their· goal.

- As described in [Bundy et a/ 79] and sec­ tion 3.5 above, the MECHO program solved mechanics problems stated in English by extracting and solving equations using the Marples algorithm. The equation solving part was done using PRESS as a sub­ progr·am.

Each of the above techniques is incomplete on its own. Meta-level inference requires a rich supply of meta-level concepts to analyse problems and bring to bear appropriate methods of solution. These meta-level concepts can be extracted from example solutions by precondition analysis. The new methods conjectured by precondition analysis can be shown to be correct using recursion guidance. The ex­ ample solutions required by preconditions can be supplied by deduction with a less constraining search control. The problems to be solved by deduction can be supplied by the Marples algorithm, but this technique requires deduction together with meta­ level inference to bridge gaps between the knowledge it requires and that provided in the problern statement. The interactions are summarised in table 4-1. 9

Table 4-1: The Interactions between the Techniques in the PRESS Family

| Technique              | Problem      | Solution                        |
|------------------------|--------------|---------------------------------|
| deduction              | search       | meta-level inference            |
|                        | problems     | Marples alg.                    |
| meta-level inference   | learnins     | pre-condition analysis          |
| pre-condition analysis | verification | deduction/ recursion guidance   |
|                        | e><amples    | deduction                       |
| Marples algorithm      | gap bridging | deduction/ meta-level inference |

## 4.2. The Interaction of Learning Techniques

In section 3.4 we described the importance of the description space in constraining the kinds of inductive inference that were possible, old concepts can only be generalized or specialized to new con­ cepts that are contained in the description space. In section 3.3 we described how the techniques of back propagation and argument removal could be used to define new concepts and thus extend the description space in a principled way by adding a needed concept, e.g. odd integer, uniform convergence.

8 Not all these interactions have been implemented.

But proof analysis techniques cannot merely replace inductive inference techniques as learning processes. Proof analysis techniques work only on single examples and this Iimits the amount of generalization that they can do unaided. For in­ stance, we saw that back propagation was able to generalize a particular problern from cos 7 x to cos"x, where n is an odd integer. 7 is generalized to n by considering the constraints forced by the par­ ticular sequence of rules used in the .successful solution. However, a similar sequence will also in­ tegrate terms of the form sin"x where n is an odd integer; a rule for cos needs to be replaced by a srmrlar rule for sin. To recognise this similarity and build a general proof plan for both cases requires inductive generalization, [Boswell 64]. Alternatively, one might use analogical matehing to recognise the similarity and a flexible proof plan application tech­ nique to apply the cos sequence to the sin pr·oblem. Note how back propagation narrows down the search which would otherwise be involved in finding an analogous solution, but then uses analogical matehing to further narrow its own search. Therefore, techniques of proof analysis, inductive inference analogical matehing and proof application need to work in concert to achieve maximum lear·ning power·.

## 4.3. The Merging of Oeduction Techniques

The resolution rule of inference (see section 3.1) is itself formed from the merging of two other rules of inference, namely modus ponens and sub­ stitution.

Modus Ponens: A, A-&gt;B 1- B where A and B are formulae,

Substitution: A(X) 1- A(T) wher·e A is a formula, X is a variable and T is a term

Note that the Substitution rule of inference has an infinite branching rate if the number of terms in the mathematical theory is infinite. Exhaustive search with such a rule would be totally impractical. In resolution, substitution is made subservient to an upgraded version of modus ponens and its behaviour ther·eby controlled.

The upgraded version of modus ponens is the cut r·ule.

Cut: A -&gt; B, B -&gt; C 1- A -&gt; C

Faced with formulae A -&gt; e· and B"" -&gt; c the resolution rule applies Substitutions to either for­ mula in an attempt to make the Bs identical so that cut can be applied. Unification (see section 3.1 l will find the most . general such substitution. IJp to renamrngs of varrables this substitution is unrque - a far cry from the infinite branching of undrrected substitution. Thus the merging of modus ponens and substitution controls the search implicit rn the later rule by making its application subservient to the former·.

Similar mergings of other deduction techniques have been suggested. For instance, some axioms have been built-in to the unification algorithm. In associative resolution, [Piotkin 72], the associative . axiom for a function, f, is deleted fr·om the set of axioms and built-in to the unification algorithm, i.e. it can be used in the attempt to match two expressions. This merging of unification and as­ sociativity has the effect of controlling the ap­ plications of associativity by making it subservient to uni fication. Other examples are higher order uni fication, [Huet 75], which builds the axioms and rules of Iambda calculus into the unification algo­ r ithm, and E-:- Resolut ion, [Morris 69], which builds the equality axioms into the unification algorithm.

The advantage of such mergings is not just in the shrinking of the search space; they can also assist the application of proof plans by bringing the key steps of a proof to the top of the search space. A proof plan may identify a part icular step as a key one, but it might take several minor steps to transform the problern into a state where this key step can be applied. For instance, the key step may be to resolve with a particular clause, but sever al applications of associativity may be required to allow the resolution to go through. These minor steps may create a combinatorial explosion of thei r own before the key step is reached. By making the minor steps subservient to the key one the key step can be applied first and the application of the minor ones can be controlled .

Herging may also be applicable to non-deduction techniques. For instance, g iven a problern to solve, an analogical mateher might be able to find a similar solved problern in order to use its solution as a proof plan. Sometimes a solved problern will match the given one in several different ways. Rather than work through each way in turn, the match may be left incomplete until further instan­ tion is requ ired to continue w ith the proof plan application. Thus the analogical matehing will be made subservient to the plan application technique and its search thus controlled .

## 4.4. Lenat 's AM Program

The AM program, [Lenat 8:?], is an interesting ex­ periment in the interaction of a number of tech­ niques for finding examples, defining concept, making conjectures, etc. These are set in a framewerk of heuristic rules controlled by heuristic search. An evaluation function is used to decide what concepts to define or find examples of, what conjectures to make. AM's performance is impres­ sive; starting with some simple set-theoretic con­ cepts, it defines some relatively comple&gt;&lt; and inter­ esting concepts, e.g. prime numbers, and makes some interesting conjectures, e.g. the prime unique factorization theorem. It also defines a Iot of uninteresting concepts and makes a Iot of silly con­ jectur·es.

AM has no theorem proving ability. Its definitions and conjectures are not motivated by problems it is trying to solve, faulty proofs it is trying to cor­ rect or successful solutions it is trying to generalise. Its sense of direction comes entirely from its evaluation function which is guided by the patterns, coincidences, etc that it notices in its example finding. It would be interesting to link AM's techniques to those outlined above to get a better directed process of mathematical discovery. This would involve separating the different tech­ niques used in AM and implementing a wider inter­ action of mathematical techniques. However, such a programme would not be easy. The techniques used by AM are not clearly explained, are embedded in complicated Lisp code, and are difficult to dis­ entangle from the heuristic rules.

## 5. The DReaM Programme

In this paper I have advocated the simultaneaus study of a number of different techniques for mathematical reasoning, especially how these tech­ niques may be fitted together. I believe that problems associated with the individual reasoning techniques can often be solved by combining them together, and I gave a number of examples of this phenomenon in section 4 above.

To realise these ideas I have instituted the DReaM (Discovery and Reasoning in Mathematics) Programme at the Department of Artificial Intelligence at Edin­ burgh University. This programme gives explicit recognition to an implicit programme of deveiOpment of mathematical reasoning programs over a period of several years. Figure 5-1 explains the relationship between the various programs built in our group during this period. Each node is a program and each arc represents some hi storical dependence of the earlier program upon the later one. PRESS, LP,

![Image](https://ijcai.org/proceedings/1985/fulltext/246/image_000001_8d47157ee410b55c196526073f0940ab821e412f89c2283a0df7cbc4fda6b531.png)

IMPRFSS and MECHO have been described above. MT will be described below. The remainder are outlined her·e.

- GRASS is a rewrite rule system for Grassman Geometry, modellad on PRESS and using symmetry to control the application of the rules, [Fearnley-Sander 85].
- ECO, [Uschold et al 84], and ASA, [O'Keefe 8:?] , are 'intelligent front ends' to

ecological modelling packagcs, respectively. and statistics

- RUT, [Piummer 84], is a rational reconstruction of Bledsoe's natural deduc­ tion theorem prover, [Biedsoe 77], and VOYEUR, [Piummer ~ Bundy 84], extends RUT with the gazing technique described below.

Our speci fic, short term objectives are to extend our existing reasoning techniques and invent new techniques in a variety of domains, and more Centrally to investigate the interaction of: deduc­ t ion, search control, proof analysis and inductive inference within a single reasoning system. The understanding gained from this investigation will be exhibited in a program for reasoning primarily in mathematics, but adaptable lwe hope) to other for·ms of problern domain.

The core of the system will be the MT program, [Wallen 83], which consists of two par·ts

- the object-language: a logic for express­ ing problems; and
- the meta-language: a logic for expressing proof plans.

MT uses a process of meta-level inference to analyse a conjecture, choose an appropriate proof plan and use it to guide the search for a pr·oof.

The object-level deduction technique is based on Bibel 's Connection Calculus, [Bibel 82]. The Connec­ tion Calculus is particularly suitable as a vehicle for proof plans as it does not demand that the conjec­ ture be put in a normal form and the proof is construc ted using a detailed analysis of the conjec­ ture. No new formulae need to be constructed dur·ing the proof. This makes it particularly easy to r elate the original analysis of the conjecture to the p r oof p lan and hence to the subsequent proof. We plan to design and implement several proof plans in the MT system. Heuristics developed from natural deduction proofs can be readily translated into the Connect ion Calculus. In particular, we will try to implement within MT one such technique, developed in the group, called gazing, [Piummer ~ Bundy 84]. Gazing is a heuristic technique for controlling the expansion of non-logical definitions and the use of previously proved theorems during a proof attempt.

We plan to add to MT a learning component based on precondition analysis and other analytic learning techniques. This will analyse proofs using the meta­ level concepts already embodied in the MT proof plans and use this analysis to modify the existing plans and/or build new plans. These plans will then be added to MT to improve its theorem proving ability.

## 6. Conclusion

The automation of mathematical reasoning involves not just techniques for deduction, but also techniques for search control, proof analysis, inductive inference, matching, formula extraction, etc. In this paper I have outlined some · of the most promising such techniques drawn from the work of my own gr·oup and from that of other·s.

have given examples of the interactions of these techniques and shown how these interactions can solve problems which can appear insuperable if a technique is studied in isolation. This constitutes a streng argument for the simultaneaus study of reasoning techniques; to see how the total can be more than the sum of the par·ts.

The DReaM project aims to conduct such a simul ­ taneaus study. Same of the preliminary results are reported above tagether with our plans to incor­ porate several techniques within a single system.

## Acknowledgements

I am grateful to Robin Boswell, Steve Owen, coln Wallen and Mike Uschold for assistance and/or· feedback on this paper·. Lin­ with

## References

1. Biedsoe 77
2. Boswell 84]
3. Bibel W. Automated Theorem Proving. Friedr. Vieweg ~ Sohn, Braunschweig/Wiesbaden , 1982.
4. Bledsoe, W.W. Non-Resolution theorem-prov ing. Artif"icial Intelligence 9(1) : 1-35, August, 1977.
5. Boswell R.A. Further Developments to an Algebra Learning Program -A Thesis Proposal. Warking Paper 174, Dept. of Ar•tifi - cial Intelligence, Edinburgh , Oe- tobet•, 1984.
6. Boswell R.A. An Analytic Survey of" Analytic Concept -Learning Programs.
7. Warking Paper, Oept. of Artificial Intell igence, Edinburgh, 1985. Forthcoming.
8. Bayer ~ Moore 79]
9. Boyer , R.S. and Moore J.S. A Computational Logic. Academic Press, 1979. ACM monograph ser•ies.
10. Bundy, A. The Computer Modelfing of" Mathemati- cal Reasoning. Academic Press , 1983.
11. Earl ier version available from Edin- burgh as Occasional Paper 24.
12. Bundy, A. Poof Analysis: A technique for Con- cept Formation. In Ross, P. (editor), Proceedings of AISB-85, pages 78-86. 1985. Also available as DAI Research Paper no. 198.
13. Bundy t. Welham 81
14. Bundy, A. and Welham, B. Using meta-level infGT"ence for Sßlec- tive application of multiple rewrite rules in algebraic manipulation. Artificial Intelligence 16(2): 189-212, 1981. Also available as DAI Research Paper 121.
15. Bundy et al 79]
16. Bundy, A., Byrd, L., Luger, G., Mellish, C., Milne, R. and Palme1•, M. Solving Mechanics Problems Using Meta-Level InferGnce.
17. In Buchanan, B.G. (editor). Proceedings of IJCAf-79, pages 1017-1027. International Joint Conference on Artificial Intelligence, 1979. Reprinted in "Expert Systems in the microelectronic age" ed. Michie, 0., Edinburgh University P1•ess, 1979. Also available from Edin- burgh as OAI Research Paper No. 112.
18. Bundy et al 83]
19. Bundy, A., Silver, B. and Plummer, 0. An Analytical Comparison of some Rule Learning Programs. In Third Annual Technical Conference of the British Computer Society's Expert Systems Specialist Group. British Computer Society, 1983. Earlier Version in Procs of ECAI-82. [Chang t. Lee 73
20. Chang C-L. and Lee R. C-T. Symbolic logic and mechanical theorem proving. Academic Press, 1973.
21. Oietterich et al 82] Oietteric.:h, T.G., London, R., Clarkson, K. and Oromey, G. Learning and Inductive Inference. In Cohen, P.R. and Feigenbaum, E.A. (editors), The Handbook of Artifi- cial Intelligence, Volume 3, chapter XIV. Pitman Books Ltd, 198?..
22. Fearnley-Sander 85]
23. Fearnley-Sander, 0.
24. Using and Computing Symmetry in Geometry Proof"s.
25. In Ross, P. (editor). Proceedings of AT<;B-85. 1985.
26. Hayes, P. In defence of logic . In Proceedings of IJCAI -77. InteT' - national Joint Confe1•ence on AT'- tif"icial Intelligence, 1977.
27. A. Bundy 1229
28. Huet, G. A Unification Algorithm f"or Lambda calculus. Theoretical Computer Science 1:27-57, 1975. [Huet t. Oppen 80] [l.akatos 7 6]
29. Huet, G. and Oppen , O.C. Equations and rewrite rules: a sur- vey. In Book, R. (editor), Formal languages: perspectives and open problems. Academic Press, 1980. Presented at the conf"erence on -formal languagß theory, Santa Barbara, 1979. Available from SRI International as technical report CSL -111.
30. Lakatos, I. Proofs and refutations: The logic of Mathematical discovery. Cambridge University Press, 1976.
31. Lenat D.B. AM: An Artificial Intelligence ap- proac.:h to discovery in Math- ematics as Heuristic Search. In Knowledge-based systems in artifi- cial intelligence. McGraw Hili, 198?.. Also available from Stanford as TechReport AlM 286.
32. Mitchell et al 81]
33. Mitchell, T.M., Utgoff, P. E., Nudel, B. and Banerji, R. Learning problem-solving heuristics through p1•actice. In Proceedings of IJCAI -8 1, pages 127-134. International Joint Con- ference on Artificial Intelligence, 1981. [Mitchell et al 83]
34. Morris 69]
35. O'Keefe 82]
36. Mitchell, T.M ., Utgoff, P. E. and Banerji, R. Learning by Experimentation: Ac- quiring and modifying PT' Oblem- solving heuristics . In Michalski, R.S, Ca1•bonell, J.F. and Mitchell, T.M. (editors), Machine Leaming, pages 163-190.
37. Morris, J.EI. E-Resolution: Extension of Resolution to inc.:lude the equality relation. In Walker, 0. and Norton, L.M. (editor), Proceedings of IJCAI-69, pages 287-294.
38. O' Keefe, R.A. Automated Statistkai Analysis. Warking Pape1• 104, Oept. of AT•tifi- cial Intelligence, Edinburgh, 198:?.
39. Owen, S.G. Analogy in Artificial Intel/igence -Thesis Proposal. [Piotkin 72]
40. Piummer 81,] Working Paper 176, Oept. of Artifi - cial Intelligence, Edinburgh , 1985.
41. Plotkin, G. Building-in equational theor•ies. In Michie , 0 and Meltzer, B (editors), Machine Intelligence 7, pages 73-90. Edinburgh University Press, 1972 .
42. Plummer, 0. RUT: Reconstr•ucted UT Theorem Pro ver. Warking Paper 165, Oept. of Artifi- cial Intelligence, Edinburgh, Sep- tember, 1984. [Piummer ~ Bundy 84]
43. Robinson 65]
44. Plummer, 0. and Bundy, A. Gazing: Identifying potentially useful inferences. Warking Paper 160, Oept. of Ar•tifi- cial Intelligence , Edinburgh , February, 1984 .
45. Robin son, J.A. A machine oriented logic based on the Resolution principle. J Assoc. Comput. Ma c h. 1 ?:23-41, 1965.
46. Silver, B. Precondition Analysis: Learning Control Information.
47. In Michalski, R.S., Carbonell, J.G. and Mitchell, T.M . (editorsl , Machine Learning 2 . Tioga Publishing Com- pany, 1984 . Forthcoming. Earlier version available from Edinburgh as Research Paper• 220. [Ster•li ng ~ Bundy 82
48. Sterling , L. and Bundy, A. Meta-level Inference and Progr•am Verification.
49. In Loveland, O.W. (editor), 6th Con- ference on Automated Deduction , pages 144-150. Springer• Verlag, 1982. Lecture Notes in Computer Science No. 138. Also available fr•om Ed inburgh as Research Paper 168.
50. Uschold et at 84]
51. Uschold, M., Harding, N., Muetzelfeldt, R. and Bundy, A. An Intelligent Front End for Ecologi- cal Modelling. In O' Shea, T. (editor), Proceedings of ECAI-84, pages 761-770. ECAI, 1984 . Available from Edinburgh as Research Paper 223.
52. Wallen, L.A. Towards the Provision of a Natur•at Mechanism for Expressing Domain- Specific Global Strategies in Generat Purpose Theorem-Provers. Research Paper 202 , Oept. of Artifi - cial Intelligence, Edinburgh, Sep - tember• , 1983.
