Mechanical Theorem Proving in Tarskis Geometry. Julien Narboux - - PowerPoint PPT Presentation

mechanical theorem proving in tarski s geometry
SMART_READER_LITE
LIVE PREVIEW

Mechanical Theorem Proving in Tarskis Geometry. Julien Narboux - - PowerPoint PPT Presentation

Mechanical Theorem Proving in Tarskis Geometry. Julien Narboux under the supervision of Hugo Herbelin LIX, INRIA Futurs, Ecole Polytechnique 31/08/2006, Pontevedra, Spain Outline 1 Interactive proof / Automated theorem proving 2


slide-1
SLIDE 1

Mechanical Theorem Proving in Tarski’s Geometry.

Julien Narboux

under the supervision of Hugo Herbelin

LIX, INRIA Futurs, ´ Ecole Polytechnique

31/08/2006, Pontevedra, Spain

slide-2
SLIDE 2

Outline

1 Interactive proof / Automated theorem proving 2 Tarski’s axioms 3 Overview of the formalization 4 Degenerated cases 5 Comparison with related work

slide-3
SLIDE 3

Interactive proof

  • The proof assistants only check that the proof is correct.
slide-4
SLIDE 4

Interactive proof

  • The proof assistants only check that the proof is correct.
  • Any proof can be formalized.
slide-5
SLIDE 5

Interactive proof

  • The proof assistants only check that the proof is correct.
  • Any proof can be formalized.
  • The proofs generated are very reliable.
slide-6
SLIDE 6

Interactive proof

  • The proof assistants only check that the proof is correct.
  • Any proof can be formalized.
  • The proofs generated are very reliable.
  • But it is a tedious task !
slide-7
SLIDE 7

Interactive proof

  • The proof assistants only check that the proof is correct.
  • Any proof can be formalized.
  • The proofs generated are very reliable.
  • But it is a tedious task !
slide-8
SLIDE 8

Interactive proof

  • The proof assistants only check that the proof is correct.
  • Any proof can be formalized.
  • The proofs generated are very reliable.
  • But it is a tedious task !

Automated proof

  • The ATP generates the proof.
slide-9
SLIDE 9

Interactive proof

  • The proof assistants only check that the proof is correct.
  • Any proof can be formalized.
  • The proofs generated are very reliable.
  • But it is a tedious task !

Automated proof

  • The ATP generates the proof.
  • Not every theorem can be proved automatically.
slide-10
SLIDE 10

Interactive proof

  • The proof assistants only check that the proof is correct.
  • Any proof can be formalized.
  • The proofs generated are very reliable.
  • But it is a tedious task !

Automated proof

  • The ATP generates the proof.
  • Not every theorem can be proved automatically.
  • But in geometry there exists efficient methods.
slide-11
SLIDE 11

Interactive proof

  • The proof assistants only check that the proof is correct.
  • Any proof can be formalized.
  • The proofs generated are very reliable.
  • But it is a tedious task !

Automated proof

  • The ATP generates the proof.
  • Not every theorem can be proved automatically.
  • But in geometry there exists efficient methods.
slide-12
SLIDE 12

Interactive proof

  • The proof assistants only check that the proof is correct.
  • Any proof can be formalized.
  • The proofs generated are very reliable.
  • But it is a tedious task !

Automated proof

  • The ATP generates the proof.
  • Not every theorem can be proved automatically.
  • But in geometry there exists efficient methods.

My goal is to merge the two approaches.

slide-13
SLIDE 13

Related Work

Formalization of geometry

  • Gilles Khan (Coq) [Kah95]
slide-14
SLIDE 14

Related Work

Formalization of geometry

  • Gilles Khan (Coq) [Kah95]
  • Christophe Dehlinger, Jean-Fran¸

cois Dufourd and Pascal Schreck (Coq) [DDS00]

slide-15
SLIDE 15

Related Work

Formalization of geometry

  • Gilles Khan (Coq) [Kah95]
  • Christophe Dehlinger, Jean-Fran¸

cois Dufourd and Pascal Schreck (Coq) [DDS00]

  • Laura Meikle and Jacques Fleuriot (Isabelle) [MF03]
slide-16
SLIDE 16

Related Work

Formalization of geometry

  • Gilles Khan (Coq) [Kah95]
  • Christophe Dehlinger, Jean-Fran¸

cois Dufourd and Pascal Schreck (Coq) [DDS00]

  • Laura Meikle and Jacques Fleuriot (Isabelle) [MF03]
  • Fr´

ed´ erique Guilhot (Coq) [Gui05]

slide-17
SLIDE 17

Related Work

Formalization of geometry

  • Gilles Khan (Coq) [Kah95]
  • Christophe Dehlinger, Jean-Fran¸

cois Dufourd and Pascal Schreck (Coq) [DDS00]

  • Laura Meikle and Jacques Fleuriot (Isabelle) [MF03]
  • Fr´

ed´ erique Guilhot (Coq) [Gui05]

  • Julien Narboux (Coq) [Nar04]
slide-18
SLIDE 18

Related Work

Formalization of geometry

  • Gilles Khan (Coq) [Kah95]
  • Christophe Dehlinger, Jean-Fran¸

cois Dufourd and Pascal Schreck (Coq) [DDS00]

  • Laura Meikle and Jacques Fleuriot (Isabelle) [MF03]
  • Fr´

ed´ erique Guilhot (Coq) [Gui05]

  • Julien Narboux (Coq) [Nar04]
slide-19
SLIDE 19

Related Work

Formalization of geometry

  • Gilles Khan (Coq) [Kah95]
  • Christophe Dehlinger, Jean-Fran¸

cois Dufourd and Pascal Schreck (Coq) [DDS00]

  • Laura Meikle and Jacques Fleuriot (Isabelle) [MF03]
  • Fr´

ed´ erique Guilhot (Coq) [Gui05]

  • Julien Narboux (Coq) [Nar04]

Tarski’s axioms

  • Art Quaife (Otter)[Qua89]
slide-20
SLIDE 20

Motivations

  • We need foundations to combine the different formal

developments.

slide-21
SLIDE 21

Motivations

  • We need foundations to combine the different formal

developments. Why Tarski’s axioms ?

  • They are simple.
slide-22
SLIDE 22

Motivations

  • We need foundations to combine the different formal

developments. Why Tarski’s axioms ?

  • They are simple.
  • They have good meta-mathematical properties.
slide-23
SLIDE 23

Motivations

  • We need foundations to combine the different formal

developments. Why Tarski’s axioms ?

  • They are simple.
  • They have good meta-mathematical properties.
  • They can be generalized to different dimensions and

geometries.

slide-24
SLIDE 24

The Coq proof assistant

  • Interactive proof
  • But some automation is available
  • Intuitionist logic
  • Proofs are performed using tactics
slide-25
SLIDE 25

To trust proofs verified by Coq you need to trust:

  • The theory behind Coq
slide-26
SLIDE 26

To trust proofs verified by Coq you need to trust:

  • The theory behind Coq
  • The Coq kernel implementation
slide-27
SLIDE 27

To trust proofs verified by Coq you need to trust:

  • The theory behind Coq
  • The Coq kernel implementation
  • The Objective Caml compiler
slide-28
SLIDE 28

To trust proofs verified by Coq you need to trust:

  • The theory behind Coq
  • The Coq kernel implementation
  • The Objective Caml compiler
  • Your hardware
slide-29
SLIDE 29

To trust proofs verified by Coq you need to trust:

  • The theory behind Coq
  • The Coq kernel implementation
  • The Objective Caml compiler
  • Your hardware
  • Your axioms
slide-30
SLIDE 30

Tarski’s axioms

Points (no lines, no planes). Two predicates :

  • equidistance ≡
  • betweeness β
slide-31
SLIDE 31

Axioms

1 Reflexivity of equidistance

AB ≡ BA

2 Pseudo-transitivity of equidistance

AB ≡ PQ ∧ AB ≡ RS ⇒ PQ ≡ RS

3 Identity of equidistance

AB ≡ CC ⇒ A = B

slide-32
SLIDE 32

4 Segment construction

∃X, β Q A X ∧ AX ≡ BC

bQ bA b B b C b

X

slide-33
SLIDE 33

5 Five segments

A = B ∧ β A B C ∧ β A′ B′ C ′∧ ⇒ CD ≡ C ′D′ AB ≡ A′B′ ∧ BC ≡ B′C ′ ∧ AD ≡ A′D′ ∧ BD ≡ B′D′

b b b b

A B C D

b b b b

A’ B’ C’ D’

slide-34
SLIDE 34

51 Five segments (variant)

A = B ∧ B = C ∧ β A B C ∧ β A′ B′ C ′∧ ⇒ CD ≡ C ′D′ AB ≡ A′B′ ∧ BC ≡ B′C ′ ∧ AD ≡ A′D′ ∧ BD ≡ B′D′

slide-35
SLIDE 35

6 Identity of betweeness

β A B A ⇒ A = B

slide-36
SLIDE 36

7 Pasch (inner)

β A P C ∧ β B Q C ⇒ ∃X, β P X B ∧ β Q X A

71 Pasch (outer)

β A P C ∧ β Q C B ⇒ ∃X, β A X Q ∧ β B P X

72 Pasch (outer) (Variant)

β A P C ∧ β Q C B ⇒ ∃X, β A X Q ∧ β X P B

73 Pasch weak

β A T D ∧ β B D C ⇒ ∃X, Y , β A X B ∧ β A Y C ∧ β Y T X

slide-37
SLIDE 37

b

A

bB b

C

bQ b

P

b

X

b

A

b

B

b Q b

X

bC b

P Inner Outer

b

A

bB b

C

bD b

Y

b

X

bT

Weak

slide-38
SLIDE 38

8(2) Dimension, lower bound 2

∃ABC, ¬β A B C ∧ ¬β B C A ∧ ¬β C A B

8(n) Dimension, lower bound n

∃ABCP1P2 . . . Pn−1,

  • 1≤i<j<n pi = pj∧

n−1

i=2 AP1 ≡ APi ∧ BP1 ≡ BPi ∧ CP1 ≡ CPi∧

¬β A B C ∧ ¬β B C A ∧ ¬β C A B

slide-39
SLIDE 39

9(n) Dimension, upper bound n

  • 1≤i<j≤n pi = pj∧

n

i=2

AP1 ≡ APi∧ BP1 ≡ BPi∧ CP1 ≡ CPi ⇒ β A B C ∨ β B C A ∨ β C A B

slide-40
SLIDE 40

10 Euclid’s axiom

β A D T ∧ β B D C ∧ A = D ⇒ ∃X, Y β A B X ∧ β A C Y ∧ β X T Y

b

A

b

X

bY b

B

b

C

bD b

T

slide-41
SLIDE 41

11 Continuity

∃a, ∀xy, (x ∈ X ∧ y ∈ Y ⇒ β a x y) ⇒ ∃b, ∀xy, x ∈ X ∧ y ∈ Y ⇒ β x b y

Schema 11 Continuity (schema)

∃a, ∀xy, (α ∧ β ⇒ β a x y) ⇒ ∃b, ∀xy, α ∧ β ⇒ β x b y where α and β are first order formulas, such that a,b and y do not appear free in α and a,b and x do not appear free in β.

slide-42
SLIDE 42

12 Reflexivity of β

β A B B

14 Symmetry of β

β A B C ⇒ β C B A

13 Compatibility with equality of β

A = B ⇒ β A B A

19 Compatibility with equality of ≡

A = B ⇒ AC ≡ BC

slide-43
SLIDE 43

15 Transitivity (inner) of β

β A B D ∧ β B C D ⇒ β A B C

16 Transitivity (outer) of β

β A B C ∧ β B C D ∧ B = C ⇒ β A B D

b b b b

A B C D

slide-44
SLIDE 44

17 Pseudo-transitivity (inner) of β

β A B D ∧ β A C D ⇒ β A B C ∨ β A C B

18 Pseudo-transitivity (outer) of β

β A B C ∧ β A B D ∧ A = B ⇒ β A C D ∨ β A D C

b b b

× × A B C C D

b b b

× × A B C C D Axiom 17 Axiom 18

slide-45
SLIDE 45

20 Unicity of the triangle construction

AC ≡ AC ′ ∧ BC ≡ BC ′∧ β A D B ∧ β A D′ B ∧ β C D X∧ β C ′ D′ X ∧ D = X ∧ D′ = X ⇒ C = C ′

201 Unicity of the triangle construction (variant)

A = B∧ AC ≡ AC ′ ∧ BC ≡ BC ′∧ β B D C ′ ∧ (β A D C ∨ β A C D) ⇒ C = C ′

21 Existence of the triangle construction

AB ≡ A′B′ ⇒ ∃CX, AC ≡ A′C ′ ∧ BC ≡ B′C ′∧ β C X P ∧ (β A B X ∨ β B X A ∨ β X A B)

slide-46
SLIDE 46

History

1940 1951 1959 1965 1983 [Tar67] [Tar51] [Tar59] [Gup65] [SST83] 1 1 1 1 1 2 2 2 2 2 3 3 3 3 3 4 4 4 4 4 51 51 → 5 5 5 6 6 6 6 72 72 → 71 71 → 7 8(2) 8(2) 8(2) 8(2) 8(2) 91(2) 91(2) → 9(2) 9(2) 9(2) 10 10 → 101 101 → 10 11 11 11 11 11 12 12 13 14 14 15 15 15 15 16 16 17 17 18 18 18 19 20 → 201 21 21 20 18 12 10 10 + + + + + 1 schema 1 schema 1 schema 1 schema 1 schema

slide-47
SLIDE 47

Formalization

  • W. Schwabh¨

auser

  • W. Szmielew
  • A. Tarski

Metamathematische Methoden in der Geometrie Springer-Verlag 1983

slide-48
SLIDE 48

Overview I

About 200 lemmas and 6000 lines of proofs and definitions. The first chapter contains the axioms. The second chapter contains some basic properties of equidistance (noted Cong). The third chapter contains some basic properties of the betweeness predicate (noted Bet). In particular, it contains the proofs of the axioms 12, 14 and 16. The fourth chapters provides properties about Cong, Col and Bet. The fifth chapter contains the proof of the transitivity of Bet and the definition of a length comparison predicate. It contains the proof of the axioms 17 and 18. The sixth chapter defines the out predicate which says that a point is not on a line, it is used to prove transitivity properties for Col.

slide-49
SLIDE 49

Overview II

The seventh chapter defines the midpoint and the symmetric point and prove some properties. The eighth chapter contains the definition of the predicate “perpendicular”, and finally proves the existence of the midpoint.

slide-50
SLIDE 50

Two crucial lemmas

∀ABC, β A C B ∧ AC ≡ AB ⇒ C = B

b b b

A B C ∀ABDE, β A D B ∧ β A E B ∧ AD ≡ AE ⇒ D = E.

b b b b

A B D E

slide-51
SLIDE 51

About degenerated cases

  • α-conversion / binders ≡ degenerated cases / geometry
slide-52
SLIDE 52

About degenerated cases

  • α-conversion / binders ≡ degenerated cases / geometry
  • We need specialized tactics.
slide-53
SLIDE 53

About degenerated cases

  • α-conversion / binders ≡ degenerated cases / geometry
  • We need specialized tactics.
  • It is simple but effective !
slide-54
SLIDE 54

About degenerated cases

  • α-conversion / binders ≡ degenerated cases / geometry
  • We need specialized tactics.
  • It is simple but effective !
  • Still, the axiom system is important.
slide-55
SLIDE 55

Comparison with other formalizations

  • There are fewer degenerated cases than in Hilbert’s axiom

system.

slide-56
SLIDE 56

Comparison with other formalizations

  • There are fewer degenerated cases than in Hilbert’s axiom

system.

  • The axiom system is simpler.
slide-57
SLIDE 57

Comparison with other formalizations

  • There are fewer degenerated cases than in Hilbert’s axiom

system.

  • The axiom system is simpler.
  • It has good meta-mathematical properties.
slide-58
SLIDE 58

Comparison with other formalizations

  • There are fewer degenerated cases than in Hilbert’s axiom

system.

  • The axiom system is simpler.
  • It has good meta-mathematical properties.
  • Generalization to other dimensions is easy.
slide-59
SLIDE 59

Comparison with other formalizations

  • There are fewer degenerated cases than in Hilbert’s axiom

system.

  • The axiom system is simpler.
  • It has good meta-mathematical properties.
  • Generalization to other dimensions is easy.
  • Lemma scheduling is more complicated.
slide-60
SLIDE 60

Comparison with other formalizations

  • There are fewer degenerated cases than in Hilbert’s axiom

system.

  • The axiom system is simpler.
  • It has good meta-mathematical properties.
  • Generalization to other dimensions is easy.
  • Lemma scheduling is more complicated.
  • It is not well adapted to teaching.
slide-61
SLIDE 61

Comparison with ATP

  • We can not use a decision procedure specialized in geometry.
  • Problems which can be solved by at least one general purpose

ATP AND appear in my formalization have short proofs.

Examples

Lemma Coq proof Otter Vampire symmetry of betweeness 6 lines 0s 0s reflexivity of equidistance 2 lines 0s 0s transitivity of equidistance 2 lines 0s 0s existence of the midpoint 6000 lines timeout timeout

slide-62
SLIDE 62

Future work

  • The remaining chapters
slide-63
SLIDE 63

Future work

  • The remaining chapters
  • Hilbert’s axioms
slide-64
SLIDE 64

Future work

  • The remaining chapters
  • Hilbert’s axioms
  • The axioms of Axioms and Hulls
slide-65
SLIDE 65

Future work

  • The remaining chapters
  • Hilbert’s axioms
  • The axioms of Axioms and Hulls
  • Fr´

ed´ erique Guilhot’s axioms

slide-66
SLIDE 66

Future work

  • The remaining chapters
  • Hilbert’s axioms
  • The axioms of Axioms and Hulls
  • Fr´

ed´ erique Guilhot’s axioms

  • . . .
slide-67
SLIDE 67

Future work

  • The remaining chapters
  • Hilbert’s axioms
  • The axioms of Axioms and Hulls
  • Fr´

ed´ erique Guilhot’s axioms

  • . . .
  • A treaty about constructive geometry
slide-68
SLIDE 68

Future work

  • The remaining chapters
  • Hilbert’s axioms
  • The axioms of Axioms and Hulls
  • Fr´

ed´ erique Guilhot’s axioms

  • . . .
  • A treaty about constructive geometry
slide-69
SLIDE 69

Future work

  • The remaining chapters
  • Hilbert’s axioms
  • The axioms of Axioms and Hulls
  • Fr´

ed´ erique Guilhot’s axioms

  • . . .
  • A treaty about constructive geometry

http://www.lix.polytechnique.fr/Labo/Julien.Narboux/tarski.html

slide-70
SLIDE 70

Christophe Dehlinger, Jean-Fran¸ cois Dufourd, and Pascal Schreck. Higher-order intuitionistic formalization and proofs in Hilbert’s elementary geometry. In Automated Deduction in Geometry, pages 306–324, 2000. Fr´ ed´ erique Guilhot. Formalisation en coq et visualisation d’un cours de g´ eom´ etrie pour le lyc´ ee. Revue des Sciences et Technologies de l’Information, Technique et Science Informatiques, Langages applicatifs, 24:1113–1138, 2005. Lavoisier. Haragauri Narayan Gupta. Contributions to the axiomatic foundations of geometry. PhD thesis, University of California, Berkley, 1965.

slide-71
SLIDE 71

Gilles Kahn. Constructive geometry according to Jan von Plato. Coq contribution, 1995. Coq V5.10. Laura Meikle and Jacques Fleuriot. Formalizing Hilbert’s Grundlagen in Isabelle/Isar. In Theorem Proving in Higher Order Logics, pages 319–334, 2003. Julien Narboux. A decision procedure for geometry in Coq. In Slind Konrad, Bunker Annett, and Gopalakrishnan Ganesh, editors, Proceedings of TPHOLs’2004, volume 3223 of Lecture Notes in Computer Science. Springer-Verlag, 2004. Art Quaife. Automated development of tarski’s geometry. Journal of Automated Reasoning, 5(1):97–118, 1989.

slide-72
SLIDE 72

Wolfram Schwabh¨ auser, Wanda Szmielew, and Alfred Tarski. Metamathematische Methoden in der Geometrie. Springer-Verlag, Berlin, 1983. Alfred Tarski. A decision method for elementary algebra and geometry. University of California Press, 1951. Alfred Tarski. What is elementary geometry? In P. Suppes L. Henkin and A. Tarski, editors, The axiomatic Method, with special reference to Geometry and Physics, pages 16–29, Amsterdam, 1959. North-Holland. Alfred Tarski. The completeness of elementary algebra and geometry, 1967.

slide-73
SLIDE 73

An example.

Gupta

A = B ∧ β A B C ∧ β A B D ⇒ β A C D ∨ β A D C

b b b b b b b b

A B D C’ B’ B” C D’ E