Automated theorem proving in algebra

Similar documents
Using automated reasoning in universal algebra: Several examples

Automated Theorem Proving in Quasigroup and Loop Theory

Self-distributive quasigroups and quandles

Commutator Theory for Loops

Commentationes Mathematicae Universitatis Carolinae

KEN KUNEN: ALGEBRAIST

A CLASS OF LOOPS CATEGORICALLY ISOMORPHIC TO UNIQUELY 2-DIVISIBLE BRUCK LOOPS

NILPOTENCY IN AUTOMORPHIC LOOPS OF PRIME POWER ORDER

HALF-ISOMORPHISMS OF MOUFANG LOOPS

Cheban loops. 1 Introduction

Self-distributive quasigroups and quandles II

The varieties of quasigroups of Bol Moufang type: An equational reasoning approach

Toward a new formalization of real numbers

THE VARIETIES OF QUASIGROUPS OF BOL-MOUFANG TYPE: AN EQUATIONAL REASONING APPROACH

Short Equational Bases for Ortholattices

ON VARIETIES OF LEFT DISTRIBUTIVE LEFT IDEMPOTENT GROUPOIDS

Quandles and universal algebra

Semigroup, monoid and group models of groupoid identities. 1. Introduction

A Complete Proof of the Robbins Conjecture

Generators of certain inner mapping groups

Classifying Bol-Moufang Quasigroups Under a Single Operation

Agent-Based HOL Reasoning 1

Automated Generation of Formal and Readable Proofs of Mathematical Theorems ongoing work

Conjugate Loops: An Introduction

Complete independence of an axiom system for central translations

On Middle Universal Weak and Cross Inverse Property Loops With Equal Length Of Inverse Cycles

Formalization of Mathematics: why Algebraic Topology?

Single Axioms for Boolean Algebra

NAPOLEON S QUASIGROUPS

On the algebraic structure of Dyson s Circular Ensembles. Jonathan D.H. SMITH. January 29, 2012

A guide to self-distributive quasigroups, or latin quandles. 1. Introduction

arxiv: v3 [math.gr] 23 Feb 2010

Dynamic Semantics. Dynamic Semantics. Operational Semantics Axiomatic Semantics Denotational Semantic. Operational Semantics

Automated and Human Proofs in General Mathematics: An Initial Comparison

First-Order Theorem Proving and Vampire

utomated Reasoning 2 What is automated reasoning? In one sense we'll interpret our title narrowly: we are interested in reasoning in logic and mathema

Computer Proof Assistants and Univalent Foundations of Mathematics

Machine Learning for Automated Theorem Proving

Combining Reasoning Systems for Mathematical Discovery

Loops of Bol-Moufang type with a subgroup of index two

LOOPS OF BOL-MOUFANG TYPE WITH A SUBGROUP OF INDEX TWO

Using Gentzen system techniques with existing automated theorem provers and rewriting tools

COMPUTING RELATIVELY LARGE ALGEBRAIC STRUCTURES BY AUTOMATED THEORY EXPLORATION

ABELIAN EXTENSIONS AND SOLVABLE LOOPS

An overview of automated reasoning

YET ANOTHER SINGLE LAW FOR LATTICES

Solving Quantified Verification Conditions using Satisfiability Modulo Theories

Enumeration of involutory latin quandles, Bruck loops and commutative automorphic loops of odd prime power order

QUADRATIC LEVEL QUASIGROUP EQUATIONS WITH FOUR VARIABLES I. Aleksandar Krapež

RIGHT PRODUCT QUASIGROUPS AND LOOPS

Interactive Theorem Proving in Industry

SUBDIRECTLY IRREDUCIBLE NON-IDEMPOTENT LEFT SYMMETRIC LEFT DISTRIBUTIVE GROUPOIDS

Formal Specification and Verification. Specifications

Free medial quandles

Formal methods in mathematics

COP4020 Programming Languages. Introduction to Axiomatic Semantics Prof. Robert van Engelen

Preprint MCS-P , Mathematics and Computer Science Division, Argonne National Laboratory, Argonne, Ill., November 1993.

SAT/SMT/AR Introduction and Applications

NICTA Advanced Course. Theorem Proving Principles, Techniques, Applications. Gerwin Klein Formal Methods

07 Practical Application of The Axiomatic Method

First-Order Theorem Proving and Vampire. Laura Kovács (Chalmers University of Technology) Andrei Voronkov (The University of Manchester)

Levi s Commutator Theorems for Cancellative Semigroups

THE STRUCTURE OF AUTOMORPHIC LOOPS

LEFT DISTRIBUTIVE LEFT QUASIGROUPS. PhD Thesis. Charles University in Prague. July 2004

Formalizing Mathematics

Computational Logic and the Quest for Greater Automation

On A Cryptographic Identity In Osborn Loops

Automated Reasoning and its Applications

System for Automated Deduction (SAD): a tool for proof verification

Propositional Logic: Syntax

Theorem Proving for Verification

Semantic Derivation Verification: Techniques and Implementation

Formal Verification of Mathematical Algorithms

A Pair of Smarandachely Isotopic Quasigroups and Loops of the Same Variety

LINEAR GROUPOIDS AND THE ASSOCIATED WREATH PRODUCTS

Last Time. Inference Rules

An Introduction to Proof Assistants

Numbers, proof and all that jazz.

CNS 188a Computation Theory and Neural Systems. Monday and Wednesday 1:30-3:00 Moore 080

Algebras inspired by the equivalential calculus

Automated Reasoning. Jeremy Youngquist. March 11, 2016

Quasigroups and Related Systems 14 (2006), Kenneth W. Johnson. Abstract. 1. Introduction

Logic. Propositional Logic: Syntax. Wffs

Realizations of Loops and Groups defined by short identities

CHAPTER 2 BOOLEAN ALGEBRA

The Shortest Single Axioms for Groups of Exponent 4. Kenneth Kunen 1. University of Wisconsin. Madison, WI 53706, U.S.A.

- Introduction to propositional, predicate and higher order logics

Boolean Algebra and Propositional Logic

Boolean Algebra and Propositional Logic

An holomorphic study of Smarandache automorphic and cross inverse property loops

Computer-Checked Meta-Logic

Octonions. Robert A. Wilson. 24/11/08, QMUL, Pure Mathematics Seminar

Validating QBF Invalidity in HOL4

Inductive Theorem Proving

Using Mathematica 3 to Understand the Computer Proof of the Robbins Conjecture. 1. The Robbins Conjecture A Brief History

Write your own Theorem Prover

Introduction to Kleene Algebras

A GRAPH-THEORETIC APPROACH TO QUASIGROUP CYCLE NUMBERS

Interactive Theorem Provers

Programming Languages and Compilers (CS 421)

Transcription:

Automated theorem proving in algebra David Stanovský Charles University in Prague Czech Republic stanovsk@karlin.mff.cuni.cz http://www.karlin.mff.cuni.cz/ stanovsk Beograd, November 2009 David Stanovský (Prague) ATP in algebra 1 / 18

Automated theorem proving INPUT: A finite set of first order formulas OUTPUT: Satisfiable / Unsatisfiable / I don t know (Timeout) What is it good for: proving theorems in mathematics David Stanovský (Prague) ATP in algebra 2 / 18

Automated theorem proving INPUT: A finite set of first order formulas OUTPUT: Satisfiable / Unsatisfiable / I don t know (Timeout) What is it good for: proving theorems in mathematics What is it really good for: formalized mathematics, proof verification proof assistants: Isabelle, HOL, Coq,... libraries in a formal language: Mizar,... reasoning over large knowledge bases (SUMO, Cyc,...) software verification (Spec#, ESC/Java,...) hardware verification (ACL2, PVS,...) etc. David Stanovský (Prague) ATP in algebra 2 / 18

Automated theorem proving INPUT: A finite set of first order formulas OUTPUT: Satisfiable / Unsatisfiable / I don t know (Timeout) Algorithms and implementations: Resolution calculus: Otter/Prover9, E, Spass, Vampire,... Equational reasoning based on Knuth-Bendix: Waldmeister Instantiation based reasoning: iprover, Darwin several experimental techniques Model building: Translation to SAT: Paradox, Mace4 David Stanovský (Prague) ATP in algebra 3 / 18

Automated theorem proving INPUT: A finite set of first order formulas OUTPUT: Satisfiable / Unsatisfiable / I don t know (Timeout) Algorithms and implementations: Resolution calculus: Otter/Prover9, E, Spass, Vampire,... Equational reasoning based on Knuth-Bendix: Waldmeister Instantiation based reasoning: iprover, Darwin several experimental techniques Model building: Translation to SAT: Paradox, Mace4 Benchmarks: http://www.tptp.org TPTP library CASC competition David Stanovský (Prague) ATP in algebra 3 / 18

Automated theorem proving in mathematics... not so useful, indeed: first order problems within a given theory usually doesn t prove anything nontrivial (particularly in set theory) David Stanovský (Prague) ATP in algebra 4 / 18

Automated theorem proving in mathematics... not so useful, indeed: first order problems within a given theory usually doesn t prove anything nontrivial (particularly in set theory)... sometimes may by useful: direct proofs of open problems (very rarely successful) proving tedious technical steps in classical proofs quick experimentation, checking out (often false) conjectures exhaustive search When ATP may outperform a mathematician: nonclassical strucures, complicated equations finding complicated syntactic proofs quick checking for (small) models... has been applied in: quasigroups and loops, algebraic logic,... David Stanovský (Prague) ATP in algebra 4 / 18

Automated theorem proving in mathematics Attempting a problem with ATP: 1 formalization in first order logic almost nothing formalizable directly sometimes a highly non-trivial task which formalization is optimal 2 finding a proof choice of prover parameter setting using advanced strategies (hints, semantic guidance,...) 3 reading and understanding the proof decode, simplify, structure,... automatizable? David Stanovský (Prague) ATP in algebra 5 / 18

Existence of a unit element: z x (x z = x & z x = x). In quasigroups: x (y/y) = x & (y/y) x = x, x (y\y) = x & (y\y) x = x. Which choice is the right one? David Stanovský (Prague) ATP in algebra 6 / 18

Distributive groupoids are symmetric-by-medial. On every idempotent distributive groupoid, there is a congruence α such that G/α is medial and all blocks are symmetric. In other words, in groupoids, x yz = xy xz, xy z = xz yz implies (xy zu) ((xy zu) (xz yu)) = xz yu (xy zu) (xz yu) = (xz yu) (xy zu) David Stanovský (Prague) ATP in algebra 7 / 18

Bruck loops with abelian inner mapping group are 2-nilpotent. cnf(1,axiom,mult(unit,a) = A). cnf(2,axiom,mult(a,unit) = A). cnf(3,axiom,mult(a,i(a)) = unit). cnf(4,axiom,mult(i(a),a) = unit). cnf(5,axiom,i(mult(a,b)) = mult(i(a),i(b))). cnf(6,axiom,mult(i(a),mult(a,b)) = B). cnf(7,axiom,rd(mult(a,b),b) = A). cnf(8,axiom,mult(rd(a,b),b) = A). cnf(9,axiom,mult(mult(a,mult(b,a)),c) = mult(a,mult(b,mult(a,c)))). cnf(10,axiom,mult(mult(a,b),c) = mult(mult(a,mult(b,c)),asoc(a,b,c))). cnf(11,axiom,op l(a,b,c) = mult(i(mult(c,b)),mult(c,mult(b,a)))). cnf(12,axiom,op r(a,b,c) = rd(mult(mult(a,b),c),mult(b,c))). cnf(13,axiom,op t(a,b) = mult(i(b),mult(a,b))). cnf(14,axiom,op r(op r(a,b,c),d,e) = op r(op r(a,d,e),b,c)). cnf(15,axiom,op l(op r(a,b,c),d,e) = op r(op l(a,d,e),b,c)). cnf(16,axiom,op l(op l(a,b,c),d,e) = op l(op l(a,d,e),b,c)). cnf(17,axiom,op t(op r(a,b,c),d) = op r(op t(a,d),b,c)). cnf(18,axiom,op t(op l(a,b,c),d) = op l(op t(a,d),b,c)). cnf(19,axiom,op t(op t(a,b),c) = op t(op t(a,c),b)). cnf(20,negated conjecture,asoc(asoc(a,b,c),d,e)!= unit). David Stanovský (Prague) ATP in algebra 8 / 18

Automated theorem proving in algebra Milestones: since early 1990 s: short axioms for various theories 1996, W. McCune: Robbins algebras are Boolean algebras 1996, K. Kunen: Moufang quasigroups are loops since early 2000 s: standard technique in loop theory (M. Kinyon, JD Phillips, P. Vojtěchovský) recently: algebraic logic David Stanovský (Prague) ATP in algebra 9 / 18

Robbins problem (Huntington, 1933) Short axioms for Boolean algebras: x + y = y + x, (x + y) + z = x + (y + z), (x + y) + (x + y ) = x. (Robbins, 1934) Shorter axioms, conjectured to axiomatize BA s: x + y = y + x, (x + y) + z = x + (y + z), ((x + y) + (x + y ) ) = x. (Winker, 1979) Sufficient to prove that Robbins ( A)( B) (A + B) = A Confirmed by EQP prover by McCune in 1996, reported in NY Times (!) David Stanovský (Prague) ATP in algebra 10 / 18

Single axioms (McCune, 1993) The shortest axiom for abelian groups: ((x y) z) (x z) = y (Kunen, 1992; McCune, 1993) Short single axioms for groups: 3 variables: ((z (x y) ) (z y )) (y y) = x 4 variables: y (z (((w w ) (x z) ) y)) = x (McCune, Padmanabhan, Veroff, 2002) A short axiom for lattices: (((y x) x) (((z (x x)) (u x)) v)) (((w x) (r x)) s) = x (McCune, Veroff, Fitelson, Harris, Feist, Wos, 2002) A shortest axiom for Boolean algebras in terms of Sheffer stroke: ((x y) z) (x ((x z) x)) = z David Stanovský (Prague) ATP in algebra 11 / 18

Moufang quasigroups Quasigroup = latin square = (G, ), all translations are permutations Loop = quasigroup with a unit = non-associative group x\(x y) = y, x (x\y) = y, (y/x) x = y, (y x)/x = y x 1 = 1 x = x Moufang identity (weak associativity): Is every Moufang quasigroup a loop? ((x y) x) z = x (y (x z)) Proved with McCune s Otter by Kenneth Kunen in 1996. David Stanovský (Prague) ATP in algebra 12 / 18

Results in quasigroup and loop theory To date: 28 papers assisted by ATP (Kinyon, Kunen, Phillips) Diassociative A-loops are Moufang diassociative = 2-generated subloops are groups A-loop = inner mappings are automorphisms by hand: in A-loops, diassociativity IP property (Kepka, Kinyon, Phillips) Every F-quasigroup is isotopic to a Moufang loop F-quasigroup = several identities isotopy to a Moufang loop = easily formalizable open problem #1 in Belousov s book original proof mostly by hand (only several lemmas by Prover9) Waldmeister can prove it in 40 minutes from scratch And much more... David Stanovský (Prague) ATP in algebra 13 / 18

QPTP = Quasigroup Problems for Theorem Provers (recently with JD Phillips) = a collection of results in loop theory obtained with assistance of ATP all 28 papers covered, about 100 problems selected (about 80% equational) both formal (TPTP) and informal (paper) description downloadable at www.karlin.mff.cuni.cz/~stanovsk/qptp a benchmark (selected provers from CASC): Waldmeister E, Gandalf, Prover9, Vampire Spass Read our paper! :-) David Stanovský (Prague) ATP in algebra 14 / 18

My results Linear theories of groupoids automated construction of free groupoids in 2-, 3- and 4-linear theories sizes 4, 21, 184 exhaustive search for about 2 months, followed by a classification theorem for *-linear theories done by hand Non-trivial equations for group conjugation Distributive groupoids are symmetric-by-medial: x yz = xy xz, xy z = xz yz (xy zu) ((xy zu) (xz yu)) = xz yu (xy zu) (xz yu) = (xz yu) (xy zu) Simplifying axioms of biquandles (with Phillips) loops with abelian inner mapping loops David Stanovský (Prague) ATP in algebra 15 / 18

Combining systems = future of ATP? (A random choice of recent projects I found interesting.) Search for isomorphism/isotopy invariants for loops Paradox: generates models HR: searchs for interesting formulas valid in a given model ATP s: prove that invariants cover all models of given size MPTP: automated reasoning in ZFC Problems for ATP s based on the Mizar library of formalized mathematics MPTP $100 challenge: automated proof of Bolzano-Weierstraß theorem (with hints) Malarea: machine learning in service of automated reasoning Reasoning in large theories (like ZFC with some math background) Problem: Which axioms are useful for given problem? Machine learning based on syntactical analysis of given conjectures. Relatively succesful on the MPTP challenge David Stanovský (Prague) ATP in algebra 16 / 18

Summary Automated theorem provers have helped some mathematicians. Maybe they can help you, too. David Stanovský (Prague) ATP in algebra 17 / 18

References http://www.prover9.org http://www.waldmeister.org http://www.tptp.org http://www.karlin.mff.cuni.cz/ stanovsk/qptp David Stanovský (Prague) ATP in algebra 18 / 18