Making Conjectures About Maple Functions Simon Colton Universities of Edinburgh & York.

Slides:



Advertisements
Similar presentations
Artificial Intelligence 9. Resolution Theorem Proving
Advertisements

With examples from Number Theory
Discrete Math Methods of proof 1.
Introduction to Proofs
Automated Exploration of Bioinformatics Spaces Simon Colton Computational Bioinformatics Laboratory.
Integrating Bayesian Networks and Simpson’s Paradox in Data Mining Alex Freitas University of Kent Ken McGarry University of Sunderland.
CMSC 250 Discrete Structures Number Theory. 20 June 2007Number Theory2 Exactly one car in the plant has color H( a ) := “ a has color”  x  Cars –H(
Proofs, Recursion and Analysis of Algorithms Mathematical Structures for Computer Science Chapter 2.1 Copyright © 2006 W.H. Freeman & Co.MSCS SlidesProofs,
THE TRANSITION FROM ARITHMETIC TO ALGEBRA: WHAT WE KNOW AND WHAT WE DO NOT KNOW (Some ways of asking questions about this transition)‏
Automated Puzzle Generation Simon Colton Universities of Edinburgh and York.
ELEMENTARY NUMBER THEORY AND METHODS OF PROOF
Automated Theory Formation for Tutoring Tasks in Pure Mathematics Simon Colton, Roy McCasland, Alan Bundy, Toby Walsh.
ILP for Mathematical Discovery Simon Colton & Stephen Muggleton Computational Bioinformatics Laboratory Imperial College.
Creative Logic Programming Simon Colton Computational Bioinformatics Laboratory Imperial College London.
The HOMER System for Discovery in Number Theory Simon Colton Imperial College, London.
Methods of Proof & Proof Strategies
Lakatos-style Methods in Automated Reasoning Alison Pease University of Edinburgh Simon Colton Imperial College, London.
Postulates and Paragraph Proofs
Automated Theory Formation: First Steps in Bioinformatics Simon Colton Computational Bioinformatics Laboratory.
The TM System for Repairing Non-Theorems Alison Pease – University of Edinburgh Simon Colton – Imperial College, London.
Mathematics – A new Domain for Datamining? Simon Colton Universities of Edinburgh & York United.
Reading and Writing Mathematical Proofs
Discrete Mathematics, Part II CSE 2353 Fall 2007 Margaret H. Dunham Department of Computer Science and Engineering Southern Methodist University Some slides.
Stochastic Algorithms Some of the fastest known algorithms for certain tasks rely on chance Stochastic/Randomized Algorithms Two common variations – Monte.
Automated Theory Formation in Bioinformatics Simon Colton Computational Bioinformatics Lab Imperial College, London.
Automated Reasoning for Classifying Finite Algebras Simon Colton Computational Bioinformatics Laboratory Imperial College, London.
Chapter 1-4: Properties Commutative Property: the order in which you add or multiply numbers does not change the sum or product Ex = * 8.
MATH 224 – Discrete Mathematics
CSE 311: Foundations of Computing Fall 2013 Lecture 8: More Proofs.
Chapter 1 Introduction. Goals Why the choice of algorithms is so critical when dealing with large inputs Basic mathematical background Review of Recursion.
1 Inference Rules and Proofs (Z); Program Specification and Verification Inference Rules and Proofs (Z); Program Specification and Verification.
Descriptive ILP for Mathematical Discovery Simon Colton Computational Bioinformatics Lab Department of Computing Imperial College, London.
Introduction to Geometric Proof Logical Reasoning and Conditional Statements.
A Theory of Theory Formation Simon Colton Universities of Edinburgh and York.
1 Sections 1.5 & 3.1 Methods of Proof / Proof Strategy.
1 Proof Strategies CS/APMA 202 Rosen section 3.1 Aaron Bloomfield.
Theorems and conjectures
Edinburgh and Calculemus Simon Colton Universities of Edinburgh and York.
1.1 Introduction to Inductive and Deductive Reasoning
INDUCTIVE REASONING AND CONJECTURE. DEFINITIONS Conjecture: a best guess based on known information. Inductive Reasoning: using specific examples to arrive.
The HR Program for Theorem Generation Simon Colton Mathematical Reasoning Group University of Edinburgh.
A Theory of Theory Formation Simon Colton Universities of Edinburgh and York.
Logical Reasoning:Proof Prove the theorem using the basic axioms of algebra.
Copyright © Zeph Grunschlag, Induction Zeph Grunschlag.
Automated Reasoning Early AI explored how to automated several reasoning tasks – these were solved by what we might call weak problem solving methods as.
Automated Discovery in Pure Mathematics Simon Colton Universities of Edinburgh and York.
The Homer System Simon Colton – Imperial College, London Sophie Huczynska – University of Edinburgh.
Artificial Intelligence 7. Making Deductive Inferences Course V231 Department of Computing Imperial College, London Jeremy Gow.
Year 9 Proof Dr J Frost Last modified: 19 th February 2015 Objectives: Understand what is meant by a proof, and examples.
Automatic Generation of First Order Theorems Simon Colton Universities of Edinburgh and York Funded by EPSRC grant GR/M98012 and the Calculemus Network.
Megan FrantzOkemos High School Math Instructor.  Use inductive reasoning to identify patterns and make conjectures.  Determine if a conjecture is true.
CS104:Discrete Structures Chapter 2: Proof Techniques.
Automated Theorem Discovery Simon Colton Universities of Edinburgh and York.
Calculation Invention and Deduction Dr. Simon Colton Imperial College London (Formerly at Edinburgh) YVR in Karlsruhe & Saarbrucken.
Machine Creativity Edinburgh Simon Colton Universities of Edinburgh and York.
2.5 Postulates and Proofs GEOMETRY. Postulate (axiom)- a statement that is accepted as true without proof 2.1: Through any two points, there is exactly.
1 Formal Proofs. 2 Deductive Proofs From the given statement(s) to a conclusion statement (what we want to prove) Logical progression by direct implications.
2.1 Using Inductive Reasoning to Make Conjectures.
Using Inductive Reasoning to Make Conjectures Geometry Farris 2015.
Activity 1-12 : Multiple-free sets
Discovery Systems Author: Kenneth W. Hasse Jr. Presenter: Peter Yoon.
ESFOR Panel Application Developers’ Wish Lists for Automated Theorem Provers.
Week 1 Real Numbers and Their Properties (Section 1.6, 1.7, 1.8)
1.2 Reasoning Mathematically Two Types of Reasoning Remember to Silence Your Cell Phone and Put It in Your Bag!
Chapter 1 Logic and Proof.
Reasoning and Proof Unit 2.
Chapter 4 (Part 1): Induction & Recursion
Applied Discrete Mathematics Week 9: Integer Properties
1.1 Introduction to Inductive and Deductive Reasoning
Agenda Proofs (Konsep Pembuktian) Direct Proofs & Counterexamples
Presentation transcript:

Making Conjectures About Maple Functions Simon Colton Universities of Edinburgh & York

Computation, Invention & Deduction Perform calculations (CAS) Find conjectures (ML) Prove theorems (ATP) Paul Zeitz, Hungarian maths contest –k = n(n+1)(n+2)(n+3), k is never a square –“Plug and chug” with n=1, n=2, n=3, n=4, …. –Gives: 24, 120, 360, 840, …. –Always square minus 1

General Approach Ideal world: –ATP proves a theorem found by ML about CAS functions Problem with this: –CAS functions are too complex for ATP Positive spin: ATP proves from 1 st principles –Proven conjectures are likely to be less interesting –Use ATP to discard dull results –Find conjectures, not theorems for CAS user

Systems Used Maple –Well known CAS system HR –Not so well known ATF system (ML) Otter –Well known ATP system Domain –Number theory

The HR System – Concepts Automated theory formation –Invent concepts, make conjecture, prove theorems –Disprove non-theorems and present results Concept formation via 10 production rules –Builds new concepts from old ones –Example on next slide Heuristic search –Interestingness measures (e.g., complexity) –Limits on the concepts formed (e.g., arity, comp)

Concept Formation [a] exists b (sigma(a)=b & isprime(b)) [a] : isprime(a)[a,b] : sigma(a)=b [a,b] : sigma(a)=b & isprime(b) compose exists (Complexity = 4)

The HR System - Conjectures HR Makes conjectures empirically –Two concepts are equivalence –A concept is inconsistent with the axioms –Examples of one concept all examples of another Extracts simpler concepts from these –A & B & C D & E –A & B & C => D, D & E => A, etc. Finds prime implicates: A & B => D Also makes applicability conjectures –tau(x) = x only true (empirically) for x = 1 and x = 2

Presentation of Results HR has some limited theorem proving –To discard the very dull conjectures: –f(a) & g(a)  g(a) & f(a), f(a)=b & f(a)=c [b  c] –But we didn’t want to re-invent the wheel HR can re-write definitions –  b (tau(a)=b & isprime(b)) becomes isprime(tau(a)) HR can also sort the conjectures (interestingness) –Applicability = number of entities with non-empty examples Conjs about primes score 10/30 for applic (10 primes between 1 & 30) –Surprisingness (see next slide)

Measuring Surprisingness Surprisingness = 6

HR Using Maple User chooses the Maple functions of interest HR calls Maple to supply initial data –User specifies initial input, say, numbers 1 to 10 –E.g., tau(10) = 4, sigma(6) = 12, etc. HR also calls Maple during theory formation –HR invents concept: tau(sigma(n)) –Needs value for: tau(sigma(10)) = tau(18) = 6 –Also to find counterexamples to conjectures Integration via files (sorry Jürgen, MWeb soon)

HR Using Otter Problem with HR – too many conjectures (thesis:6%) Normally HR supplies Otter with only: –Axioms of domain and the conjecture statement Problematic example –All a (a=1 or a=2 => tau(a) = a) –True but dull –HR supplies tau(1) = 1 and tau(2) = 2 to Otter User can identify “axioms” to give to Otter –E.g., isprime(a)  tau(a) = 2 User specifies which conjs to add as axioms –HR re-proves (and discards) many previous results

Experiment Aims: –(i) show HR works with Maple –(ii) Show pruning of conjectures works Three Maple functions chosen: –tau(n), sigma(n), isprime(n) HR given number 1 only, but access to 2-30 Breadth first search ran to completion –Complexity limit of 6 and some arity constraints Then the user steps in –To specify obvious results to add as axioms Any proven results ignored

Results 378 theory formation steps, approx. 2 mins HR called Maple 120 times –E.g., for 195 = sigma(72) = sigma(sigma(30)) –Numbers 2, 3, 4, 5, 6, 9 and 16 introduced Produced 137 implicate conjectures –43 already proven by Otter (goodbye) –E.g: all a ((sigma(a)=1 & sigma(1)=a) => (a=1)) We looked through the remaining 94 –Added 9 from the first 10 (ordered by complex.) –E.g: [3] all a ((isprime(a)) => (tau(a)=2)) –Added another 3 which were “instantiations” After re-proving 94 became just 22

Results Continued We ordered the 22 by (applic + surp)/2 Top one was: –isprime(sigma(a)) => isprime(tau(a)) –So interesting, we proved it (generalised) –Then we added it as an “axiom” Reduced the results down to just 10: tau(tau(a))=a => tau(sigma(sigma(a)))=sigma(a) tau(tau(a))=a => tau(sigma(a))=a [should’ve gone] Are these results interesting ???

Conclusions Aims: –HR works with Maple  No problem with the interface –HR uses Otter to prune dull conjectures  137 => 94 => 82 => 22 => 17 => 16 => 10 Bonus: interesting conjecture(s) Question: is this of use to CAS users?

Further Work Improved pruning of conjectures –Use Otter’s Knuth Bendix completion (McCasland) –HR now has skolemised rep n (discards exists conjs) Get ATF embedded in CAS (any offers?) Apply HR to more discovery tasks –Roy McCasland and Zariski spaces Last line of my thesis: “… if this technology can be embedded into computer algebra systems, we believe theory formation programs will one day be important tools for mathematicians.”

Acknowledgments This work has been supported by –EPSRC grant GR/M98012 –EU IHP grant: Calculemus HPRN-CT This work inspired by collaboration with: –Jacques Calmet and Clemens Ballarin –Calculemus YVR at Karlsruhe