A Hierarchy of Proof Rules for Checking Differential Invariance of - - PowerPoint PPT Presentation

a hierarchy of proof rules for checking differential
SMART_READER_LITE
LIVE PREVIEW

A Hierarchy of Proof Rules for Checking Differential Invariance of - - PowerPoint PPT Presentation

A Hierarchy of Proof Rules for Checking Differential Invariance of Algebraic Sets Khalil Ghorbal 1 Andrew Sogokon 2 e Platzer 1 Andr 1. Carnegie Mellon University 2. University of Edinburgh VMCAI, Mumbai, India January 13th, 2015 K.


slide-1
SLIDE 1

A Hierarchy of Proof Rules for Checking Differential Invariance of Algebraic Sets

Khalil Ghorbal1 Andrew Sogokon2 Andr´ e Platzer1

  • 1. Carnegie Mellon University
  • 2. University of Edinburgh

VMCAI, Mumbai, India January 13th, 2015

  • K. Ghorbal, A. Sogokon, A. Platzer

A Hierarchy of Proof Rules VMCAI 2015 1 / 24

slide-2
SLIDE 2

Introduction

Problem: Checking the Invariance of Algebraic Sets

x1 x2

Ordinary Differential Equation

˙ x ˙ y

  • =
  • y

−x + (1 − x2)y

  • = p

(Real) Algebraic Sets VR(h) = {(x, y) ∈ R | x2 + y2 − 1 = 0

  • h(x,y)=0

}

  • K. Ghorbal, A. Sogokon, A. Platzer

A Hierarchy of Proof Rules VMCAI 2015 2 / 24

slide-3
SLIDE 3

Introduction

Context

Motivations

  • Theorem Proving for Hybrid Systems
  • Stability and Safety Analysis of Dynamical Systems
  • Qualitative Analysis of Differential Equations

Current Status

  • Invariance of algebraic sets is decidable
  • A decision procedure exists
  • Many sufficient conditions are known
  • K. Ghorbal, A. Sogokon, A. Platzer

A Hierarchy of Proof Rules VMCAI 2015 3 / 24

slide-4
SLIDE 4

Introduction

Contributions

Hierarchy of the different proof rules

  • Compare the deductive power of 7 proof rules, 2 of which are novel
  • Subclasses of algebraic sets characterized by each proof rule

Assess the deductive power versus efficiency trade-off

  • Deductive power increase computational cost increase ?
  • What is the practical efficiency of those proof rules ?
  • K. Ghorbal, A. Sogokon, A. Platzer

A Hierarchy of Proof Rules VMCAI 2015 4 / 24

slide-5
SLIDE 5

Proof rules

Outline

1

Introduction

2

Proof rules

3

Deductive Hierarchy

4

Practical performance analysis

5

Square-free Reduction

6

Conclusion

  • K. Ghorbal, A. Sogokon, A. Platzer

A Hierarchy of Proof Rules VMCAI 2015 4 / 24

slide-6
SLIDE 6

Proof rules

Definitions

Gradient ∇h := ( ∂h ∂x1 , . . . , ∂h ∂xn ) Lie Derivation Dp(h) := dh(x(t)) dt = ∇h, p (˙ x = p) Singular Locus SL(h) := {x ∈ Rn | ∇h = 0} =

  • x ∈ Rn | ∂h

∂x1 = 0 ∧ · · · ∧ ∂h ∂xn = 0

  • h(x) = 0 (x ∈ VR(h)) is singular if x ∈ SL(h), regular otherwise.
  • K. Ghorbal, A. Sogokon, A. Platzer

A Hierarchy of Proof Rules VMCAI 2015 5 / 24

slide-7
SLIDE 7

Proof rules

Lie’s Criterion

[Platzer, ITP 2012]

Necessary and sufficient for smooth invariant manifolds (Lie, 1893). (Lie)h = 0 → (Dp(h) = 0 ∧ ∇h = 0) (h = 0) → [˙ x = p] (h = 0)

x1 x2

x1 x2

h = 0 non-smooth ✗ h = 0 smooth ✓

  • K. Ghorbal, A. Sogokon, A. Platzer

A Hierarchy of Proof Rules VMCAI 2015 6 / 24

slide-8
SLIDE 8

Proof rules

Extensions of Lie

Contribution

Handling certain singularities (points where ∇h = 0) No flow in the problem variables at singularities on the variety (Lie◦)h = 0 →

  • Dp(h) = 0 ∧
  • ∇h = 0 → p = 0
  • (h = 0) → [˙

x = p] (h = 0) Flow at singularities on the variety is directed into the variety (Lie∗)h = 0 →

  • Dp(h) = 0 ∧ (∇h = 0 → h(x + λp) = 0)
  • (h = 0) → [˙

x = p] (h = 0) .

  • K. Ghorbal, A. Sogokon, A. Platzer

A Hierarchy of Proof Rules VMCAI 2015 7 / 24

slide-9
SLIDE 9

Proof rules

Extensions of Lie

Contribution

Handling certain singularities (points where ∇h = 0) No flow in the problem variables at singularities on the variety (Lie◦)h = 0 →

  • Dp(h) = 0 ∧
  • ∇h = 0 → p = 0
  • (h = 0) → [˙

x = p] (h = 0) Flow at singularities on the variety is directed into the variety (Lie∗)h = 0 →

  • Dp(h) = 0 ∧ (∇h = 0 → h(x + λp) = 0)
  • (h = 0) → [˙

x = p] (h = 0) .

  • K. Ghorbal, A. Sogokon, A. Platzer

A Hierarchy of Proof Rules VMCAI 2015 7 / 24

slide-10
SLIDE 10

Proof rules

Extensions of Lie

Contribution

Handling certain singularities (points where ∇h = 0) No flow in the problem variables at singularities on the variety (Lie◦)h = 0 →

  • Dp(h) = 0 ∧
  • ∇h = 0 → p = 0
  • (h = 0) → [˙

x = p] (h = 0) Flow at singularities on the variety is directed into the variety (Lie∗)h = 0 →

  • Dp(h) = 0 ∧ (∇h = 0 → h(x + λp) = 0)
  • (h = 0) → [˙

x = p] (h = 0) .

  • K. Ghorbal, A. Sogokon, A. Platzer

A Hierarchy of Proof Rules VMCAI 2015 7 / 24

slide-11
SLIDE 11

Proof rules

Extensions of Lie: Lie◦

Contribution

Handling certain singularities (points where ∇h = 0)

x1 x2

Lie ✗ Lie◦ ✓ Lie∗ ✓

  • K. Ghorbal, A. Sogokon, A. Platzer

A Hierarchy of Proof Rules VMCAI 2015 8 / 24

slide-12
SLIDE 12

Proof rules

Extensions of Lie: Lie∗

Contribution

Handling certain singularities (points where ∇h = 0) Lie ✗ Lie◦ ✗ Lie∗ ✓

  • K. Ghorbal, A. Sogokon, A. Platzer

A Hierarchy of Proof Rules VMCAI 2015 9 / 24

slide-13
SLIDE 13

Proof rules

Differential Invariant (DI=)

[Platzer, J. Log. Comput. 2010]

Necessary and sufficient for conserved quantities (integrals of motion). (DI=) Dp(h) = 0 (h = 0) → [˙ x = p] (h = 0)

x1 x2 x1 x2

h conserved ✓ h not conserved ✗

  • K. Ghorbal, A. Sogokon, A. Platzer

A Hierarchy of Proof Rules VMCAI 2015 10 / 24

slide-14
SLIDE 14

Proof rules

Extensions of DI=

[Sankaranarayanan et al., FMSD 2008]

Continuous consecutions (C-c) and polynomial consecutions (P-c) are Darboux polynomials (Darboux, 1878). (C-c) ∃λ ∈ R, Dp(h) = λh (h = 0) → [˙ x = p] (h = 0), (P-c) ∃λ ∈ R[x], Dp(h) = λh (h = 0) → [˙ x = p] (h = 0) .

  • K. Ghorbal, A. Sogokon, A. Platzer

A Hierarchy of Proof Rules VMCAI 2015 11 / 24

slide-15
SLIDE 15

Proof rules

Extensions of DI=

[Sankaranarayanan et al., FMSD 2008] p = (3

  • x2

1 − 4

  • , −x2

2 + x1x2 + 3),

h = x4

2 + 2x1x3 2 + 6x2 2 + 2x1x2 + x2 1 + 3,

Dp(h) = (6x1 − 4x2)

  • λ

h x1 x2

DI= ✗ C-c ✗ P-c ✓

  • K. Ghorbal, A. Sogokon, A. Platzer

A Hierarchy of Proof Rules VMCAI 2015 12 / 24

slide-16
SLIDE 16

Proof rules

Differential Radical Invariants (DRI)

[G. et al., TACAS 2014, SAS 2014]

Necessary and sufficient for invariant varieties. (DRI)h = 0 → N−1

i=0 D(i) p (h) = 0

(h = 0) → [˙ x = p] (h = 0)

x1 x2 x1 x2

x1 x2

✓ ✓ ✓

  • K. Ghorbal, A. Sogokon, A. Platzer

A Hierarchy of Proof Rules VMCAI 2015 13 / 24

slide-17
SLIDE 17

Proof rules

How to compare these different proof rules ? {DI=, C-c, P-c, Lie, Lie◦, Lie∗, DRI}

For some classes of problems, the premises of the proof rules lead to decision procedures. Natural questions:

  • Given two decision procedures, which is more practical?
  • Are any of these proof rules redundant?

To answer these, we perform

  • Theoretical comparison
  • Empirical performance analysis
  • K. Ghorbal, A. Sogokon, A. Platzer

A Hierarchy of Proof Rules VMCAI 2015 14 / 24

slide-18
SLIDE 18

Proof rules

How to compare these different proof rules ? {DI=, C-c, P-c, Lie, Lie◦, Lie∗, DRI}

For some classes of problems, the premises of the proof rules lead to decision procedures. Natural questions:

  • Given two decision procedures, which is more practical?
  • Are any of these proof rules redundant?

To answer these, we perform

  • Theoretical comparison
  • Empirical performance analysis
  • K. Ghorbal, A. Sogokon, A. Platzer

A Hierarchy of Proof Rules VMCAI 2015 14 / 24

slide-19
SLIDE 19

Proof rules

How to compare these different proof rules ? {DI=, C-c, P-c, Lie, Lie◦, Lie∗, DRI}

For some classes of problems, the premises of the proof rules lead to decision procedures. Natural questions:

  • Given two decision procedures, which is more practical?
  • Are any of these proof rules redundant?

To answer these, we perform

  • Theoretical comparison
  • Empirical performance analysis
  • K. Ghorbal, A. Sogokon, A. Platzer

A Hierarchy of Proof Rules VMCAI 2015 14 / 24

slide-20
SLIDE 20

Proof rules

How to compare these different proof rules ? {DI=, C-c, P-c, Lie, Lie◦, Lie∗, DRI}

For some classes of problems, the premises of the proof rules lead to decision procedures. Natural questions:

  • Given two decision procedures, which is more practical?
  • Are any of these proof rules redundant?

To answer these, we perform

  • Theoretical comparison
  • Empirical performance analysis
  • K. Ghorbal, A. Sogokon, A. Platzer

A Hierarchy of Proof Rules VMCAI 2015 14 / 24

slide-21
SLIDE 21

Deductive Hierarchy

Outline

1

Introduction

2

Proof rules

3

Deductive Hierarchy

4

Practical performance analysis

5

Square-free Reduction

6

Conclusion

  • K. Ghorbal, A. Sogokon, A. Platzer

A Hierarchy of Proof Rules VMCAI 2015 14 / 24

slide-22
SLIDE 22

Deductive Hierarchy

Order Relation

(RA) A (h = 0) − → [˙ x = p](h = 0) (RB) B (h = 0) − → [˙ x = p](h = 0) Partial Order RA RB if and only if A = ⇒ B.

  • RA ∼ RB (RA RB and RA RB) Equivalence.
  • RA ≺ RB (RA RB and RA RB) Strict increase of deductive power
  • K. Ghorbal, A. Sogokon, A. Platzer

A Hierarchy of Proof Rules VMCAI 2015 15 / 24

slide-23
SLIDE 23

Deductive Hierarchy

Hasse Diagram: Deductive Hierarchy

DRI Lie∗ Lie◦ Lie P-c C-c DI=

  • K. Ghorbal, A. Sogokon, A. Platzer

A Hierarchy of Proof Rules VMCAI 2015 16 / 24

slide-24
SLIDE 24

Deductive Hierarchy

Hasse Diagram: Deductive Hierarchy

DRI Lie∗ Lie◦ Lie P-c C-c DI=

Darboux-based Lie-based

  • K. Ghorbal, A. Sogokon, A. Platzer

A Hierarchy of Proof Rules VMCAI 2015 16 / 24

slide-25
SLIDE 25

Practical performance analysis

Outline

1

Introduction

2

Proof rules

3

Deductive Hierarchy

4

Practical performance analysis

5

Square-free Reduction

6

Conclusion

  • K. Ghorbal, A. Sogokon, A. Platzer

A Hierarchy of Proof Rules VMCAI 2015 16 / 24

slide-26
SLIDE 26

Practical performance analysis

Smooth invariant manifolds (Lie vs DRI)

Lie and DRI decide invariance for smooth invariant manifolds. DRI Lie∗ Lie◦ Lie P-c C-c DI=

5 15 20 0.01 0.1 1 10 Number of problems solved Time (s) per problem

  • K. Ghorbal, A. Sogokon, A. Platzer

A Hierarchy of Proof Rules VMCAI 2015 17 / 24

slide-27
SLIDE 27

Practical performance analysis

Functional invariants (DI vs DRI)

DI= and DRI decide invariance of varieties of conserved quantities. DRI Lie∗ Lie◦ Lie P-c C-c DI=

5 10 15 0.01 0.1 1 10 Number of problems solved Time (s) per problem

  • K. Ghorbal, A. Sogokon, A. Platzer

A Hierarchy of Proof Rules VMCAI 2015 18 / 24

slide-28
SLIDE 28

Practical performance analysis

Singularities at Equilibria (Lie, Lie◦ & Lie∗ vs DRI)

Lie◦, Lie∗ and DRI decide invariance for varieties of with singularities that are equilibrium points. DRI Lie∗ Lie◦ Lie P-c C-c DI=

5 10 15 0.01 0.1 1 10 Number of problems solved Time (s) per problem

  • K. Ghorbal, A. Sogokon, A. Platzer

A Hierarchy of Proof Rules VMCAI 2015 19 / 24

slide-29
SLIDE 29

Practical performance analysis

Experimental Performance of All Proof Rules

10 20 30 40 50 60 70 0.01 0.1 1 10 Number of problems solved Time (s) per problem

  • K. Ghorbal, A. Sogokon, A. Platzer

A Hierarchy of Proof Rules VMCAI 2015 20 / 24

slide-30
SLIDE 30

Square-free Reduction

Outline

1

Introduction

2

Proof rules

3

Deductive Hierarchy

4

Practical performance analysis

5

Square-free Reduction

6

Conclusion

  • K. Ghorbal, A. Sogokon, A. Platzer

A Hierarchy of Proof Rules VMCAI 2015 20 / 24

slide-31
SLIDE 31

Square-free Reduction

Square-free Reduction

Square-free reduction of a polynomial h = hα1

1 hα2 2 · · · hαk k

Geometrically VR(h) ≡R VR(SF(h)).

  • SF automated pre-processing step in computer algebra systems
  • Is it a“good idea”to apply SF for invariance checking ?
  • K. Ghorbal, A. Sogokon, A. Platzer

A Hierarchy of Proof Rules VMCAI 2015 21 / 24

slide-32
SLIDE 32

Square-free Reduction

Square-free Reduction

Square-free reduction of a polynomial SF(h) = h✚

α1 1 h✚

α2 2 · · · h✚

αk k

Geometrically VR(h) ≡R VR(SF(h)).

  • SF automated pre-processing step in computer algebra systems
  • Is it a“good idea”to apply SF for invariance checking ?
  • K. Ghorbal, A. Sogokon, A. Platzer

A Hierarchy of Proof Rules VMCAI 2015 21 / 24

slide-33
SLIDE 33

Square-free Reduction

Square-free Reduction

DRI Lie∗ Lie◦ Lie P-c C-c DI=

  • K. Ghorbal, A. Sogokon, A. Platzer

A Hierarchy of Proof Rules VMCAI 2015 22 / 24

slide-34
SLIDE 34

Square-free Reduction

Square-free Reduction

DRI Lie∗ Lie◦ Lie P-c C-c DI=≺≻ SF DI= ≺≻ SF C-c

  • K. Ghorbal, A. Sogokon, A. Platzer

A Hierarchy of Proof Rules VMCAI 2015 22 / 24

slide-35
SLIDE 35

Square-free Reduction

Square-free Reduction

DRI Lie∗ Lie◦ Lie P-c C-c DI=≺≻ SF DI= ≺≻ SF C-c ∼ SF P-c

  • K. Ghorbal, A. Sogokon, A. Platzer

A Hierarchy of Proof Rules VMCAI 2015 22 / 24

slide-36
SLIDE 36

Square-free Reduction

Square-free Reduction

DRI Lie∗ Lie◦ Lie P-c C-c DI=≺≻ SF DI= ≺≻ SF C-c ∼ SF P-c SF Lie ≻ SF Lie◦ ≻ SF Lie∗ ≻

  • K. Ghorbal, A. Sogokon, A. Platzer

A Hierarchy of Proof Rules VMCAI 2015 22 / 24

slide-37
SLIDE 37

Square-free Reduction

Square-free Reduction

DRI Lie∗ Lie◦ Lie P-c C-c DI=≺≻ SF DI= ≺≻ SF C-c ∼ SF P-c ∼ SF DRI SF Lie ≻ SF Lie◦ ≻ SF Lie∗ ≻

  • K. Ghorbal, A. Sogokon, A. Platzer

A Hierarchy of Proof Rules VMCAI 2015 22 / 24

slide-38
SLIDE 38

Conclusion

Summary

  • The most deductively powerful rule DRI performs very well.
  • C-c and P-c are made redundant by DRI.
  • SF reduction is always of benefit to the Lie-based proof rules
  • SF with DI= and C-c yields new incomparable proof rules.
  • SF with P-c is as powerful as P-c alone.
  • SF may introduce a performance penalty for DRI.
  • K. Ghorbal, A. Sogokon, A. Platzer

A Hierarchy of Proof Rules VMCAI 2015 23 / 24

slide-39
SLIDE 39

Conclusion

Conclusions

DRI has good performance on average Apply DRI first with a time-out. Sufficient proof rules are useful Exploit the computational sweet spots of sufficient conditions

  • K. Ghorbal, A. Sogokon, A. Platzer

A Hierarchy of Proof Rules VMCAI 2015 24 / 24

slide-40
SLIDE 40

Conclusion

Thank you for attending !

  • K. Ghorbal, A. Sogokon, A. Platzer

A Hierarchy of Proof Rules VMCAI 2015 24 / 24