computing the real solutions of polynomial systems with ...mmorenom/publications/... · computing...

23
Computing the real solutions of polynomial systems with the RegularChains library in Maple Presented by Marc Moreno Maza 1 joint work with Changbo Chen 1 , James H. Davenport 2 , Fran¸cois Lemaire 3 , Bican Xia 4 , Rong Xiao 1 Yuzhen Xie 1 1 University of Western Ontario 2 University of Bath (England) 3 Universit´ e de Lille 1 (France) 4 Peking University (China) ISSAC 2011 Software Presentation San Jose CA, June 9, 2011 (CDMMXX) RealTriangularize ISSAC 2011 1 / 17

Upload: others

Post on 30-Jun-2020

2 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Computing the real solutions of polynomial systems with ...mmorenom/Publications/... · Computing the real solutions of polynomial systems with the RegularChains library in Maple

Computing the real solutions of polynomial systemswith the RegularChains library in Maple

Presented by Marc Moreno Maza1

joint work withChangbo Chen1, James H. Davenport2, Francois Lemaire3,

Bican Xia4, Rong Xiao1 Yuzhen Xie1

1University of Western Ontario

2University of Bath (England)

3Universite de Lille 1 (France)

4Peking University (China)

ISSAC 2011 Software PresentationSan Jose CA, June 9, 2011

(CDMMXX) RealTriangularize ISSAC 2011 1 / 17

Page 2: Computing the real solutions of polynomial systems with ...mmorenom/Publications/... · Computing the real solutions of polynomial systems with the RegularChains library in Maple

Plan

1 Overview

2 Solver verification

3 Branch cut analysis

4 Biochemical network analysis

5 Reachibility problem for hybrid systems

(CDMMXX) RealTriangularize ISSAC 2011 2 / 17

Page 3: Computing the real solutions of polynomial systems with ...mmorenom/Publications/... · Computing the real solutions of polynomial systems with the RegularChains library in Maple

Overview

Plan

1 Overview

2 Solver verification

3 Branch cut analysis

4 Biochemical network analysis

5 Reachibility problem for hybrid systems

(CDMMXX) RealTriangularize ISSAC 2011 3 / 17

Page 4: Computing the real solutions of polynomial systems with ...mmorenom/Publications/... · Computing the real solutions of polynomial systems with the RegularChains library in Maple

Overview

The RegularChains library in Maple

Design goals

Solving polynomial systems over Q and Fp, including parametricsystems and semi-algebraic systems.

Offering tools to manipulate their solutions.

Organized around the concept of a regular chain, accommodating alltypes of solving and providing space-and-time efficiency.

Features

Use of types for algebraic structures: polynomial ring,regular chain, constructible set, quantifier free formula,regular semi algebraic system.

Top level commands: PolynomialRing, Triangularize,RealTriangularize SamplePoints, . . .

Tool kits: ConstructibleSetTools, ParametricSystemTools,FastArithmeticTools, SemiAlgebraicSetTools, . . .

(CDMMXX) RealTriangularize ISSAC 2011 4 / 17

Page 5: Computing the real solutions of polynomial systems with ...mmorenom/Publications/... · Computing the real solutions of polynomial systems with the RegularChains library in Maple

Overview

The RegularChains library in Maple

Design goals

Solving polynomial systems over Q and Fp, including parametricsystems and semi-algebraic systems.

Offering tools to manipulate their solutions.

Organized around the concept of a regular chain, accommodating alltypes of solving and providing space-and-time efficiency.

Features

Use of types for algebraic structures: polynomial ring,regular chain, constructible set, quantifier free formula,regular semi algebraic system.

Top level commands: PolynomialRing, Triangularize,RealTriangularize SamplePoints, . . .

Tool kits: ConstructibleSetTools, ParametricSystemTools,FastArithmeticTools, SemiAlgebraicSetTools, . . .

(CDMMXX) RealTriangularize ISSAC 2011 4 / 17

Page 6: Computing the real solutions of polynomial systems with ...mmorenom/Publications/... · Computing the real solutions of polynomial systems with the RegularChains library in Maple

Overview

Solving for the real solutions of polynomial systems

Classical tools

Isolating the real solutions of zero-dimensional polynomial systems:SemiAlgebraicSetTools:-RealRootIsolate

Real root classification of parametric polynomial systems:ParametricSystemTools:-RealRootClassification

Cylindrical algebraic decomposition of polynomial systems:SemiAlgebraicSetTools:-CylindricalAlgebraicDecompose

New tools

Triangular decomposition of semi-algebraic systems:RealTriangularize

Sampling all connected components of a semi-algebraic system:SamplePoints

Set-theoretical operations on semi-algebraic sets:SemiAlgebraicSetTools:-Difference

(CDMMXX) RealTriangularize ISSAC 2011 5 / 17

Page 7: Computing the real solutions of polynomial systems with ...mmorenom/Publications/... · Computing the real solutions of polynomial systems with the RegularChains library in Maple

Overview

Solving for the real solutions of polynomial systems

Classical tools

Isolating the real solutions of zero-dimensional polynomial systems:SemiAlgebraicSetTools:-RealRootIsolate

Real root classification of parametric polynomial systems:ParametricSystemTools:-RealRootClassification

Cylindrical algebraic decomposition of polynomial systems:SemiAlgebraicSetTools:-CylindricalAlgebraicDecompose

New tools

Triangular decomposition of semi-algebraic systems:RealTriangularize

Sampling all connected components of a semi-algebraic system:SamplePoints

Set-theoretical operations on semi-algebraic sets:SemiAlgebraicSetTools:-Difference

(CDMMXX) RealTriangularize ISSAC 2011 5 / 17

Page 8: Computing the real solutions of polynomial systems with ...mmorenom/Publications/... · Computing the real solutions of polynomial systems with the RegularChains library in Maple

Overview

Regular semi-algebraic system

Notation

Let T ⊂ Q[x1 < . . . < xn] be a regular chain withy := {mvar(t) | t ∈ T} and u := x \ y = u1, . . . , ud .

Let P be a finite set of polynomials, s.t. every f ∈ P is regularmodulo sat(T ).

Let Q be a quantifier-free formula of Q[u].

Definition

We say that R := [Q,T ,P>] is a regular semi-algebraic system if:

(i) Q defines a non-empty open semi-algebra ic set S in Rd ,

(ii) the regular system [T ,P] specializes well at every point u of S

(iii) at each point u of S , the specialized system [T (u),P(u)>] has atleast one real solution.

ZR(R) = {(u, y) | Q(u), t(u, y) = 0, p(u, y) > 0, ∀(t, p) ∈ T × P}.(CDMMXX) RealTriangularize ISSAC 2011 6 / 17

Page 9: Computing the real solutions of polynomial systems with ...mmorenom/Publications/... · Computing the real solutions of polynomial systems with the RegularChains library in Maple

Overview

Regular semi-algebraic system

Notation

Let T ⊂ Q[x1 < . . . < xn] be a regular chain withy := {mvar(t) | t ∈ T} and u := x \ y = u1, . . . , ud .

Let P be a finite set of polynomials, s.t. every f ∈ P is regularmodulo sat(T ).

Let Q be a quantifier-free formula of Q[u].

Definition

We say that R := [Q,T ,P>] is a regular semi-algebraic system if:

(i) Q defines a non-empty open semi-algebra ic set S in Rd ,

(ii) the regular system [T ,P] specializes well at every point u of S

(iii) at each point u of S , the specialized system [T (u),P(u)>] has atleast one real solution.

ZR(R) = {(u, y) | Q(u), t(u, y) = 0, p(u, y) > 0, ∀(t, p) ∈ T × P}.(CDMMXX) RealTriangularize ISSAC 2011 6 / 17

Page 10: Computing the real solutions of polynomial systems with ...mmorenom/Publications/... · Computing the real solutions of polynomial systems with the RegularChains library in Maple

Overview

Example

The system [Q,T ,P>], where

Q := a > 0, T :=

{y2 − a = 0x = 0

, P> := {y > 0}

is a regular semi-algebraic system.

(CDMMXX) RealTriangularize ISSAC 2011 7 / 17

Page 11: Computing the real solutions of polynomial systems with ...mmorenom/Publications/... · Computing the real solutions of polynomial systems with the RegularChains library in Maple

Overview

RealTriangularize applied to the Eve surface (1/2)

(CDMMXX) RealTriangularize ISSAC 2011 8 / 17

Page 12: Computing the real solutions of polynomial systems with ...mmorenom/Publications/... · Computing the real solutions of polynomial systems with the RegularChains library in Maple

Overview

RealTriangularize applied to the Eve surface (2/2)

(CDMMXX) RealTriangularize ISSAC 2011 9 / 17

Page 13: Computing the real solutions of polynomial systems with ...mmorenom/Publications/... · Computing the real solutions of polynomial systems with the RegularChains library in Maple

Solver verification

Plan

1 Overview

2 Solver verification

3 Branch cut analysis

4 Biochemical network analysis

5 Reachibility problem for hybrid systems

(CDMMXX) RealTriangularize ISSAC 2011 10 / 17

Page 14: Computing the real solutions of polynomial systems with ...mmorenom/Publications/... · Computing the real solutions of polynomial systems with the RegularChains library in Maple

Solver verification

Are these two different output equivalent?

Given a triangle with edge lengths a, b, c(denoting the respective edges a, b, c too)the following two conditions S1, S2 are bothcharacterizing the fact that the external bi-sector of the angle of a, c intersects with bon the other side of a than the triangle:

S1 = a > 0 ∧ b > 0 ∧ c > 0 ∧ a < b + c ∧ b < a + c ∧ c < a + b ∧(b2 + a2 − c2 ≤ 0

)∨(c(b2 + a2 − c2)2 < ab2(2ac − (c2 + a2 − b2))

),

S2 = a > 0∧b > 0∧ c > 0∧ a < b+ c ∧b < a+ c ∧ c < a+b∧ c− a > 0.

(CDMMXX) RealTriangularize ISSAC 2011 11 / 17

Page 15: Computing the real solutions of polynomial systems with ...mmorenom/Publications/... · Computing the real solutions of polynomial systems with the RegularChains library in Maple

Branch cut analysis

Plan

1 Overview

2 Solver verification

3 Branch cut analysis

4 Biochemical network analysis

5 Reachibility problem for hybrid systems

(CDMMXX) RealTriangularize ISSAC 2011 12 / 17

Page 16: Computing the real solutions of polynomial systems with ...mmorenom/Publications/... · Computing the real solutions of polynomial systems with the RegularChains library in Maple

Branch cut analysis

Is this simplification correct?

The original problem

The branch cut of√z is conventionally:

{z ∈ C | <(z) < 0 ∧ =(z) = 0}.

Do the following equations hold for all z ∈ C:

√z − 1

√z + 1 =

√z2 − 1 and

√1− z

√1 + z =

√1− z2.

Turning the question to sampling

The branch cuts of each formula is a semi-algebraic system S given asthe disjunction of 3 others S1, S2, S3 (one per

√).

Consider CAD-cells C1, . . . ,Ce , forming an intersection-free basisrefining the connected components of S1, S2, S3.

By virtue of the Modromy Theorem, it is sufficient to check whetherthe formula holds at a sample point of each of C1, . . . ,Ce .

(CDMMXX) RealTriangularize ISSAC 2011 13 / 17

Page 17: Computing the real solutions of polynomial systems with ...mmorenom/Publications/... · Computing the real solutions of polynomial systems with the RegularChains library in Maple

Branch cut analysis

Is this simplification correct?

The original problem

The branch cut of√z is conventionally:

{z ∈ C | <(z) < 0 ∧ =(z) = 0}.

Do the following equations hold for all z ∈ C:

√z − 1

√z + 1 =

√z2 − 1 and

√1− z

√1 + z =

√1− z2.

Turning the question to sampling

The branch cuts of each formula is a semi-algebraic system S given asthe disjunction of 3 others S1, S2, S3 (one per

√).

Consider CAD-cells C1, . . . ,Ce , forming an intersection-free basisrefining the connected components of S1, S2, S3.

By virtue of the Modromy Theorem, it is sufficient to check whetherthe formula holds at a sample point of each of C1, . . . ,Ce .

(CDMMXX) RealTriangularize ISSAC 2011 13 / 17

Page 18: Computing the real solutions of polynomial systems with ...mmorenom/Publications/... · Computing the real solutions of polynomial systems with the RegularChains library in Maple

Biochemical network analysis

Plan

1 Overview

2 Solver verification

3 Branch cut analysis

4 Biochemical network analysis

5 Reachibility problem for hybrid systems

(CDMMXX) RealTriangularize ISSAC 2011 14 / 17

Page 19: Computing the real solutions of polynomial systems with ...mmorenom/Publications/... · Computing the real solutions of polynomial systems with the RegularChains library in Maple

Biochemical network analysis

Is there a unique positive equilibrium?

Allosteric enzym

E + Sk1−⇀↽−k2

C

E + Ck3−⇀↽−k4

F

12C − 1

2E + S − 1

2C0 + 1

2E0 − S0 = 0

12C + 1

2E + F − 1

2C0 − 1

2E0 − F0 = 0

k1 ES − k2 C − k3 EC + k4 F = 0−2 k3 EC + 2 k4 F = 0

E , S,C ,F ,E0, S0,C0,F0, k1, k2, k3, k4 > 0.

Cascad of polymerisation

P1 + P1k2−−⇀↽−−k−

2

P2

P1 + P2k3−−⇀↽−−k−

3

P3

...

P1 + Pn−1kn−−⇀↽−−k−n

Pn

Each system is viewed as parametric in the initial concentrations andkinetic velocities.

We show that, generically, there is a unique positive equilibrium.

(CDMMXX) RealTriangularize ISSAC 2011 15 / 17

Page 20: Computing the real solutions of polynomial systems with ...mmorenom/Publications/... · Computing the real solutions of polynomial systems with the RegularChains library in Maple

Biochemical network analysis

Is there a unique positive equilibrium?

Allosteric enzym

E + Sk1−⇀↽−k2

C

E + Ck3−⇀↽−k4

F

12C − 1

2E + S − 1

2C0 + 1

2E0 − S0 = 0

12C + 1

2E + F − 1

2C0 − 1

2E0 − F0 = 0

k1 ES − k2 C − k3 EC + k4 F = 0−2 k3 EC + 2 k4 F = 0

E , S,C ,F ,E0, S0,C0,F0, k1, k2, k3, k4 > 0.

Cascad of polymerisation

P1 + P1k2−−⇀↽−−k−

2

P2

P1 + P2k3−−⇀↽−−k−

3

P3

...

P1 + Pn−1kn−−⇀↽−−k−n

Pn

Each system is viewed as parametric in the initial concentrations andkinetic velocities.

We show that, generically, there is a unique positive equilibrium.

(CDMMXX) RealTriangularize ISSAC 2011 15 / 17

Page 21: Computing the real solutions of polynomial systems with ...mmorenom/Publications/... · Computing the real solutions of polynomial systems with the RegularChains library in Maple

Reachibility problem for hybrid systems

Plan

1 Overview

2 Solver verification

3 Branch cut analysis

4 Biochemical network analysis

5 Reachibility problem for hybrid systems

(CDMMXX) RealTriangularize ISSAC 2011 16 / 17

Page 22: Computing the real solutions of polynomial systems with ...mmorenom/Publications/... · Computing the real solutions of polynomial systems with the RegularChains library in Maple

Reachibility problem for hybrid systems

Which states can be reached from the intial one?

Hybrid systems with linear control

Given A ∈ Rn×n,B ∈ Rn×m consider ξ = Aξ + Bu where ξ(t) ∈ Rn

is the state of the system at time t and u : R→ Rm is a piecewisecontinuous function which is called the control input.

With x = ξ(0) and a control input u, we have:

ξ(t) = Φ(x , u, t) = eAtx +∫ t

0 eA(t−τ)Bu(τ)dτ.

Question: Given x = ξ(0), which values ξ(t) can the reached?

The (Lafferriere et al. 2001) example

Φ(x1, x2, u, t) =(x1e

2t + 23u(−e2t + e

12t), x2e

−t + 12u(et − e−t)

).

Let z = e12t , the problem reduces to compute the (y1, y2) such that:

∃u∃z(0 ≤ u ∧ z ≥ 1 ∧ p1 = 0 ∧ p2 = 0) wherep1 = y1 − 2

3u(−z4 + z) and p2 = y2z2 − 1

2u(z4 − 1).(CDMMXX) RealTriangularize ISSAC 2011 17 / 17

Page 23: Computing the real solutions of polynomial systems with ...mmorenom/Publications/... · Computing the real solutions of polynomial systems with the RegularChains library in Maple

Reachibility problem for hybrid systems

Which states can be reached from the intial one?

Hybrid systems with linear control

Given A ∈ Rn×n,B ∈ Rn×m consider ξ = Aξ + Bu where ξ(t) ∈ Rn

is the state of the system at time t and u : R→ Rm is a piecewisecontinuous function which is called the control input.

With x = ξ(0) and a control input u, we have:

ξ(t) = Φ(x , u, t) = eAtx +∫ t

0 eA(t−τ)Bu(τ)dτ.

Question: Given x = ξ(0), which values ξ(t) can the reached?

The (Lafferriere et al. 2001) example

Φ(x1, x2, u, t) =(x1e

2t + 23u(−e2t + e

12t), x2e

−t + 12u(et − e−t)

).

Let z = e12t , the problem reduces to compute the (y1, y2) such that:

∃u∃z(0 ≤ u ∧ z ≥ 1 ∧ p1 = 0 ∧ p2 = 0) wherep1 = y1 − 2

3u(−z4 + z) and p2 = y2z2 − 1

2u(z4 − 1).(CDMMXX) RealTriangularize ISSAC 2011 17 / 17