finding positive instances of parametric polynomials
play

Finding positive instances of parametric polynomials Salvador Lucas - PowerPoint PPT Presentation

Finding positive instances of parametric polynomials Salvador Lucas Departamento de Sistemas Inform aticos y Computaci on (DSIC) Universidad Polit ecnica de Valencia, Spain 1 Salvador Lucas MAP10 Finding positive instances of


  1. Finding positive instances of parametric polynomials Salvador Lucas Departamento de Sistemas Inform´ aticos y Computaci´ on (DSIC) Universidad Polit´ ecnica de Valencia, Spain 1 Salvador Lucas – MAP’10 Finding positive instances of parametric polynomials

  2. Motivation: automatic proofs of termination 2 Salvador Lucas – MAP’10 Finding positive instances of parametric polynomials

  3. Motivation: automatic proofs of termination Example Consider the following Term Rewriting System (TRS) R (cf. [Der95]): fact (0) → s (0) fact ( s ( x )) → s ( x ) × fact ( p ( s ( x )))) 0 × y → 0 s ( x ) × y → ( x × y ) + y x + 0 → x x + s ( y ) → s ( x + y ) p ( s ( x )) → x together with the following dependency pairs [AG00] associated to R : s ( x ) × ♯ fact ( p ( s ( x )))) FACT ( s ( x )) FACT ( s ( x )) FACT ( p ( s ( x ))) → → s ( x ) × ♯ y x × ♯ y FACT ( s ( x )) P ( s ( x )) → → s ( x ) × ♯ y ( x × y ) + ♯ y x + ♯ s ( y ) x + ♯ y → → During the proof of termination, we have to show that p ( s ( x )) � x and FACT ( s ( x )) ❂ FACT ( p ( s ( x ))) for some (appropriate) quasi-ordering � and well-founded ordering ❂ (on terms). 3 Salvador Lucas – MAP’10 Finding positive instances of parametric polynomials

  4. Motivation: automatic proofs of termination A fruitful approach: polynomial interpretations , where the k -ary symbols f are given polynomial functions [ f ] : A k → A (for some numeric domain A ) which are defined by some polynomial [ f ] ∈ R [ X 1 , . . . , X k ]. Terms are interpreted inductively . Example The following polynomial interpretation (where A = [0 , + ∞ )) 1 2 x + 1 [ p ]( x ) = 2 x [ s ]( x ) = [ FACT ]( x ) = 2 x 2 can be used to prove the previous constraints ( for all x ∈ A ): x + 1 [ p ( s ( x ))] = ≥ x = [ x ] 4 2 x + 3 [ FACT ( s ( x ))] = 4 x + 1 = [ FACT ( p ( s ( x )))] > 4 4 Salvador Lucas – MAP’10 Finding positive instances of parametric polynomials

  5. Motivation: automatic proofs of termination Relevant issues 1 The shape of the polynomials in the interpretation. Linear polynomials lead to linear constraints (easy to check), but polynomials of bigger degree are often required in practice. 5 Salvador Lucas – MAP’10 Finding positive instances of parametric polynomials

  6. Motivation: automatic proofs of termination Relevant issues 1 The shape of the polynomials in the interpretation. Linear polynomials lead to linear constraints (easy to check), but polynomials of bigger degree are often required in practice. 2 We can obtain arbitrary polynomials P s , t = [ s ] − [ t ] when dealing with constraints s � t or s ❂ t as P s , t ≥ 0 and P s , t > 0 (for variables ranging in A ), respectively. 5 Salvador Lucas – MAP’10 Finding positive instances of parametric polynomials

  7. Motivation: automatic proofs of termination Relevant issues 1 The shape of the polynomials in the interpretation. Linear polynomials lead to linear constraints (easy to check), but polynomials of bigger degree are often required in practice. 2 We can obtain arbitrary polynomials P s , t = [ s ] − [ t ] when dealing with constraints s � t or s ❂ t as P s , t ≥ 0 and P s , t > 0 (for variables ranging in A ), respectively. 3 We face the problem of testing (semidefinite) positiveness of arbitrary polynomials (on a restricted domain A ). 5 Salvador Lucas – MAP’10 Finding positive instances of parametric polynomials

  8. Motivation: automatic proofs of termination Relevant issues 1 The shape of the polynomials in the interpretation. Linear polynomials lead to linear constraints (easy to check), but polynomials of bigger degree are often required in practice. 2 We can obtain arbitrary polynomials P s , t = [ s ] − [ t ] when dealing with constraints s � t or s ❂ t as P s , t ≥ 0 and P s , t > 0 (for variables ranging in A ), respectively. 3 We face the problem of testing (semidefinite) positiveness of arbitrary polynomials (on a restricted domain A ). 4 We have to generate the interpretations. In practice, we use parametric polynomials whose coefficients are parameters . 5 Salvador Lucas – MAP’10 Finding positive instances of parametric polynomials

  9. Motivation: automatic proofs of termination Relevant issues 1 The shape of the polynomials in the interpretation. Linear polynomials lead to linear constraints (easy to check), but polynomials of bigger degree are often required in practice. 2 We can obtain arbitrary polynomials P s , t = [ s ] − [ t ] when dealing with constraints s � t or s ❂ t as P s , t ≥ 0 and P s , t > 0 (for variables ranging in A ), respectively. 3 We face the problem of testing (semidefinite) positiveness of arbitrary polynomials (on a restricted domain A ). 4 We have to generate the interpretations. In practice, we use parametric polynomials whose coefficients are parameters . 5 Time is important: all should be done within a fraction of second . 5 Salvador Lucas – MAP’10 Finding positive instances of parametric polynomials

  10. Motivation: automatic proofs of termination Relevant issues 1 The shape of the polynomials in the interpretation. Linear polynomials lead to linear constraints (easy to check), but polynomials of bigger degree are often required in practice. 2 We can obtain arbitrary polynomials P s , t = [ s ] − [ t ] when dealing with constraints s � t or s ❂ t as P s , t ≥ 0 and P s , t > 0 (for variables ranging in A ), respectively. 3 We face the problem of testing (semidefinite) positiveness of arbitrary polynomials (on a restricted domain A ). 4 We have to generate the interpretations. In practice, we use parametric polynomials whose coefficients are parameters . 5 Time is important: all should be done within a fraction of second . 6 We have to provide certificates of the proofs. The users should be able to check the proofs either by hand or by using automatic tools (based on theorem provers like Coq or Isabelle ). 5 Salvador Lucas – MAP’10 Finding positive instances of parametric polynomials

  11. Motivation: automatic proofs of termination Some history 1 In his IPL’79 paper, Dershowitz pointed out that the use of Tarski’s results would ’circumvent’ the practical difficulties of solving polynomial interpretations over the naturals (after Matjasevich). 6 Salvador Lucas – MAP’10 Finding positive instances of parametric polynomials

  12. Motivation: automatic proofs of termination Some history 1 In his IPL’79 paper, Dershowitz pointed out that the use of Tarski’s results would ’circumvent’ the practical difficulties of solving polynomial interpretations over the naturals (after Matjasevich). 2 Giesl, in his RTA’95 paper, says the following 6 Salvador Lucas – MAP’10 Finding positive instances of parametric polynomials

  13. Motivation: automatic proofs of termination Some history 1 In his IPL’79 paper, Dershowitz pointed out that the use of Tarski’s results would ’circumvent’ the practical difficulties of solving polynomial interpretations over the naturals (after Matjasevich). 2 Giesl, in his RTA’95 paper, says the following 3 Since 2005 [Luc05], polynomials over the reals are really used (and useful) in proofs of termination. But we can hardly say that the specific theory of the area is used in the implementations. 6 Salvador Lucas – MAP’10 Finding positive instances of parametric polynomials

  14. Motivation: automatic proofs of termination Definition (Parametric polynomial interpretation) Let F be a signature. A parametric polynomial interpretation for F is a pair A = ( A , F A ) where A is a numeric domain and F A consists of parametric polynomials , i.e., for all k -ary symbols f ∈ F , ⌊ f ⌋ is a polynomial ⌊ f ⌋ ∈ Z [ C 1 , . . . , C M f , X 1 , . . . , X k ]. Here, C 1 , . . . , C M f are variables, often called parameters , and X 1 , . . . , X k are the usual domain variables. State-of-the-art 1 Tests of (semidefinite) positiveness proceed as follows: 1 P ∈ Z [ C 1 , . . . , C M ][ X 1 , . . . , X n ] is PSD on [0 , + ∞ ) n if all coefficients in P are non-negative. 2 P ∈ Z [ C 1 , . . . , C M ][ X 1 , . . . , X n ] is PD on [0 , + ∞ ) n if all coefficients in P are non-negative and the constant coefficient is positive. 2 Dealing with parametric polynomials, polynomial constraints are translated into constraint solving problems by using this rule 7 Salvador Lucas – MAP’10 Finding positive instances of parametric polynomials

  15. Summary Our goal: 1 Review the existing literature about testing P(S)Dness of polynomials and devise how to apply it in our setting. 2 We contribute with a new technique . 8 Salvador Lucas – MAP’10 Finding positive instances of parametric polynomials

  16. Summary Our goal: 1 Review the existing literature about testing P(S)Dness of polynomials and devise how to apply it in our setting. 2 We contribute with a new technique . Summary: 1 A parametric vector basis for positive polynomials in one variable 2 Correctness and completeness 3 Cost analysis 4 Related work 5 Conclusions 8 Salvador Lucas – MAP’10 Finding positive instances of parametric polynomials

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