a formalization of metric spaces in hol light
play

A formalization of metric spaces in HOL Light Marco Maggesi DiMaI - - PowerPoint PPT Presentation

A formalization of metric spaces in HOL Light Marco Maggesi DiMaI - Universit` a degli Studi Firenze GnCS - Geometry and Computer Sciences 2017 Pescara (Italy), February 8-10, 2017 Background Geometry: Metric spaces are an indispensable


  1. A formalization of metric spaces in HOL Light Marco Maggesi DiMaI - Universit` a degli Studi Firenze GnCS - Geometry and Computer Sciences 2017 Pescara (Italy), February 8-10, 2017

  2. Background Geometry: ◮ Metric spaces are an indispensable tool in mathematics (geometry, analysis, algebra, . . . ). Computer Science: ◮ Computer can be useful for theorem proving : ◮ Discover new theorems ( automated theorem proving ); ◮ Check proofs ( computer checked mathematics ). This work: ◮ Implement metric spaces in the HOL Light theorem prover.

  3. The tool HOL Light theorem prover ◮ Interactive theorem prover. ◮ Simple foundation (typed lambda calculus, 10 rules, 3 axioms). ◮ Easy to program and extend (write your own tactics ). ◮ Remarkable standard library (real and complex analysis, linear algebra, topology and geometry, . . . ).

  4. This work Our main results: ◮ A definition of metric spaces (overcome technical issues related to the logical foundation). ◮ Computer verification of some classical results about (complete) metric spaces. ◮ Applications to Ordinary Differential Equations. ◮ ( Main topic of this talk ) Implementation of a decision procedure for the elementary theory of metric spaces .

  5. Comparison with other work (in HOL) ◮ Euclidean Spaces in HOL Light [Harrison 2005] ◮ decision procedure ( NORM_ARITH ) ◮ only euclidean metric ◮ Metric spaces in Isabelle/HOL [Immler and H¨ olzl 2012] ◮ Isar proof language (more readable) ◮ Total metric spaces ◮ axiomatic classes ◮ adequate for most applications ◮ some limitations in expressivity spaces (e.g., L p spaces) ◮ no specialized decision procedure ◮ Metric spaces in HOL Light (this work) ◮ Partial Metric spaces ◮ can reason subspaces and families of metric spaces ◮ Decision procedure METRIC_ARITH

  6. Elementary theory of Metric spaces Structure Carrier: M the domain (the set of points) Distance: d : M × M − → R Axioms Non-negativity: d ( x , y ) ≥ 0 Indiscernibility: d ( x , y ) = 0 if and only if x = y Symmetry: d ( x , y ) = d ( y , x ) Triangle inequality: d ( x , z ) ≤ d ( x , y ) + d ( y , z )

  7. Esempi di spazi metrici ◮ Standard metric of R n : � ( x 1 − y 1 ) 2 + · · · + ( x n − y n ) 2 d ( x , y ) = ◮ L ∞ metric on R n : � � d ∞ ( x , y ) = max | x 1 − y 1 | , . . . , | x n − y n | ◮ Manhattan metric ( L 1 metric) on R n : d 1 ( x , y ) = | x 1 − y 1 | + · · · + | x n − y n | ◮ Metric of a normed vector space: d ( u , v ) = || u − v || ◮ L ∞ metric on the space of continuous functions on [0 , 1] � | f ( x ) − g ( x ) | : 0 ≤ x ≤ 1 � d ∞ ( f , g ) = max

  8. Complete metric spaces Cauchy sequences: The distance between its terms becomes arbitrary small after a certain index. Easy result: Every convergent sequence is a Cauchy sequence. Definition: A metric space is complete if the converse it is also true. Some results proved: ◮ Baire category theorem. ◮ Banach fixed-point theorem. ◮ Proof of completeness of some notable spaces ( R n , bounded functions, continuous bounded functions).

  9. Example: the Banach Fixed Point Theorem Theorem (Banach) Every contraction f : M → M on a non empty complete metric space M has an unique fixed-point. Formal statement in HOL Light: ⊢ ∀ m f k. ¬ (mspace m = ∅ ) ∧ mcomplete m ∧ ( ∀ x. x ∈ mspace m = ⇒ f x ∈ mspace m) ∧ k < &1 ∧ ( ∀ x y. x ∈ mspace m ∧ y ∈ mspace m ⇒ mdist m (f x,f y) ≤ k * mdist m (x,y)) = = ⇒ ( ∃ ! x. x ∈ mspace m ∧ f x = x)

  10. Example: the Banach Fixed Point Theorem Theorem (Banach) Every contraction f : M → M on a non empty complete metric space M has an unique fixed-point. Formal statement in HOL Light: ⊢ ∀ M f k . ¬ ( M = ∅ ) ∧ complete M ∧ ( ∀ x . x ∈ M = ⇒ f ( x ) ∈ M ) ∧ k < 1 ∧ ( ∀ x y . x ∈ M ∧ y ∈ M ⇒ d ( f ( x ) , f ( y )) ≤ k d ( x , y )) = = ⇒ ( ∃ ! x . x ∈ M ∧ f ( x ) = x )

  11. Example: Continuous bounded functions One key example is the space of continuous bounded functions with L ∞ -metric. For f , g : X − → M bounded functions define d ∞ ( f , g ) = sup d M ( f ( x ) , g ( x )) . x ∈ X If M is complete, the function space is complete: ⊢ ∀ top m. mcomplete m = ⇒ mcomplete (cfunspace top m) We will use this fact in the proof of the Picard-Lindel¨ of theorem.

  12. A decision procedure for metric space We implemented a decision procedure METRIC_ARITH for general metric spaces (similar to Harrison’s NORM_ARITH ). Based on a work of Solovay, Arthan and Harrison [2012]. Can automatically prove basic facts like “triangle law” lemmas. Can handle a wider range of quantifiers (basically a ∀∃ fragment of the theory).

  13. A decision procedure for metric space (Example) Given B 1 , B 2 two intersecting open balls of radius r , s respectively, the diameter of their union B 1 ∪ B 2 is less than 2( r + s ). r s p x y q ∀ M x y r s. ¬ (DISJOINT ( B (x,r)) ( B (y,s))) ⇒ ∀ p q. p ∈ B (x,r) ∪ B (y,s) ∧ = q ∈ B (x,r) ∪ B (y,s) = ⇒ d (p,q) < 2 (r + s)

  14. Undecidability of the theory of metric spaces The elementary theory of metric spaces is undecidable ◮ Early result due to Bondi [1973]. ◮ A simple proof [Kutz 2003] can be obtained by considering metric spaces associated to graph and reducing the problem to the undecidability about problems on binary relations Problem Find a decidable class of valid formulas in the language of the metric spaces.

  15. Decidable fragments ∀∃ and ∃∀ Definition ◮ A formula φ is ∀∃ if ◮ is in prenex form ◮ no universal quantifier occurs in the scope of an existential one. ◮ In short: φ ≡ ∀ ¯ x . ∃ ¯ y . ψ ◮ ∃∀ formulas are defined similarly: φ ≡ ∃ ¯ x . ∀ ¯ y . ψ

  16. Theorem (Bernays-Sch¨ onfinkel) (1) The class of valid ∀∃ sentences without function symbols is decidable. (2) The class of satisfiable ∃∀ sentences without function symbols is decidable. This results can extended to important cases where function symbols occur. Theorem (Tarski) The theory of real closed fields is decidable. Putting the two results together we can obtain a decidability result for metric spaces.

  17. ∀∃ p and ∃∀ p sentences Definition ◮ A sentence in the language of metric spaces φ is ∀∃ p if 1. is in prenex form; 2. no universal quantifier over points is in the scope of an existential quantifier (of any sort); ◮ ∃∀ p sentences are defined analogously. Remark Since universal quantifiers commute up to logical equivalence, any ∀∃ p sentence φ can be assumed to be of the form φ ≡ ∀ x 1 , . . . , x n . ∃ ¯ y / Q¯ z . ψ

  18. � � Idea The validity of an ∀∃ p formula in the language of metric spaces can be reduced to the validity of a formula of real closed fields trough the following three steps: Finite Real Metric (1) (2) (3) � ( R n , d ∞ ) metric closed spaces spaces fields

  19. Theorem (Step 1: Reduction to finite metric spaces) Given an ∀∃ p sentence in the language of metric spaces φ ≡ ∀ x 1 , . . . , x n . ∃ ¯ y / Q¯ z . ψ TFAE: (1) φ is valid in all (non empty) metric spaces; (2) φ is valid in all finite metric spaces with no more than max { n , 1 } points. ⇒ (2). Proof (1) = Trivial. Proof (2) = ⇒ (1). Let φ be valid in all (non empty) finite metric spaces with at most n points. Given n points x 1 , . . . , x n , the formula ρ : ≡ ∃ ¯ y / Q¯ z . ψ is valid on the metric space S := { x 1 , . . . , x n } ⊆ M . Then φ is valid on M .

  20. Construction (Step 2: from finite metric spaces to R n ∞ ) Le ( M , d ) be a finite metric space with n points p 1 , . . . , p n . Consider R n ∞ = ( R n , d ∞ ), where d ∞ ( x , y ) = max {| x 1 − y 1 | , . . . , | x n − y n |} Then the application f M : M → R n given by f M ( p ) = ( d ( p , p 1 ) , . . . , d ( p , p n )) is an isometric embedding.

  21. Theorem The class of logically valid ∀∃ p sentences in the language of metric space is decidable. Proof: Taking the negation we look for a decision procedure for the satisfiability of ∃∀ p sentences. Let φ ≡ ∃ x 1 , . . . , x n . ∀ ¯ y / Q¯ z . ψ . Thanks to previous theorem, φ is satisfiable iff exists an interpretation of x 1 , . . . , x n in a metric space M with at most max( n , 1) points satisfying ∀ ¯ y / Q¯ z . ψ . By replacing every subformula of φ of the form ∀ y . ψ with the conjunction ψ [ x 1 / y ] ∧ · · · ∧ ψ [ x n / y ] we obtain a sentence which is equisatisfiable with φ without universal quantifiers over points. Therefore, we can assume that φ has the form ∃ x 1 . . . x n . ψ where only quantifiers over scalars occurs in φ . To be continued . . .

  22. Proof (second part) By using f : M → R n ∞ , we have that φ is satisfiable iff it is so on R n ∞ = ( R n , d ∞ ). Let x ij , 1 ≤ i , j ≤ n be new scalar variables ( f M ( x i ) = ( x i 1 , . . . , x in ) and ψ ′ the formula obtained by replacing in ψ ◮ every subterm of the form x s = x t with x s 1 = x t 1 ∧ · · · ∧ x sn = x tn and ◮ every subterm of the form d ( x s , x t ) with d ∞ ( f M ( x s ) , f M ( x t )) = max {| x s 1 − x t 1 | , . . . , | x sn − x tn |} ∃ x 1 . . . x n . ψ is satisfiable iff φ ′ : ≡ ∃ x 11 , x 12 . . . x nn . ψ ′ is satisfiable. Now, φ ′ is a formula without variables on points, the we can apply a decision procedure for real closed fields. QED

Download Presentation
Download Policy: The content available on the website is offered to you 'AS IS' for your personal information and use only. It cannot be commercialized, licensed, or distributed on other websites without prior consent from the author. To download a presentation, simply click this link. If you encounter any difficulties during the download process, it's possible that the publisher has removed the file from their server.

Recommend


More recommend