The Importance of Being Zero T OM AS R ECIO , J. R AFAEL S ENDRA AND - - PowerPoint PPT Presentation

the importance of being zero
SMART_READER_LITE
LIVE PREVIEW

The Importance of Being Zero T OM AS R ECIO , J. R AFAEL S ENDRA AND - - PowerPoint PPT Presentation

S1 ISSAC18, July 16-19, 2018, New York, NY, USA. The Importance of Being Zero T OM AS R ECIO , J. R AFAEL S ENDRA AND C ARLOS V ILLARINO . P RESENTED BY : L AUREANO G ONZ ALEZ -V EGA . T HIS WORK IS PARTIALLY SUPPORTED BY THE RESEARCH


slide-1
SLIDE 1

S1 ISSAC’18, July 16-19, 2018, New York, NY, USA.

The Importance of Being Zero

TOM ´

AS RECIO, J. RAFAEL SENDRA AND CARLOS VILLARINO.

PRESENTED BY: LAUREANO GONZ ´

ALEZ-VEGA.

THIS WORK IS PARTIALLY SUPPORTED BY THE RESEARCH PROJECT MTM2017-88796-P (SPANISH MINISTERIO DE ECONOM´

IA Y COMPETITIVIDAD).

slide-2
SLIDE 2

S2 Introduction: The importance of Being Zero. This paper is related with the classical problem of determining if a polynomial (in our case, an ideal I) is or not the zero polynomial (or zero ideal).

  • Polynomial zero testing:

P (x) ∈ K[x] − → P (x) ≡ 0 ? deg(P (x)) ≤ d

  • by evaluation on a finite number of instances.

We assume that we only know some very limited data: number of variables and an upper bound for the geometric degree (in the sense of Heintz) gdeg(V(I)). And we want to accomplish the zero test just by means of an oracle that allows us to check, given a point in Kn, whether this point is or not in V(I).

slide-3
SLIDE 3

S3 Introduction: The Importance of Being Zero.

  • For checking if
  • x2 − 1

x3 1 x + 1

  • = x2 + x − 1
  • r equivalently cheking whether the polynomial P (x)

P (x) =

  • x2 − 1

x3 1 x + 1

  • − ( x2 + x − 1)

is zero, we evaluate on a finite number of instances,

  • Taking into account that the determinant is a polynomial of degree bounded by d = 3
  • We evaluate P (x) in d + 1 different point of K

– For x ∈ {0, 1, 2, 3}, P (x) = 0 and hence P (x) ≡ 0.

slide-4
SLIDE 4

S4 Introduction: The Importance of Being Zero. In this paper we extend this technique P (x) ∈ K[x] − → I ⊂ K[x1, . . . , xn] deg(P (x)) ≤ d − → gdeg(V(I)) d + 1 points − → Test set and focus our attention on these goals:

  • Goal I: zero testing of an ideal,
  • Goal II: zero testing elimination ideals,
  • Goal III: application of this technique to automated theorem proving.
slide-5
SLIDE 5

S5 Goal I: Zero Testing of an Ideal.

  • For a polynomial ideal I

– with coefficients in K (field alg. closed of characteristic zero), – in n-variables {x1, . . . , xn}, – gdeg(V(I)) ≤ d

  • we present an algorithm for deciding whether

I =< 0 > or I =< 0 >

  • r equivalently whether

V(I) = Kn or V(I) = Kn.

  • performing in a finite number of instances (Test Set!!)

whether a point is or not in V(I) (Oracle !!)

slide-6
SLIDE 6

S6 Goal II: Zero Testing Elimination Ideals.

  • For a polynomial ideal I ⊂ K[x1, . . . , xn] where

– gdeg(V(I)) ≤ d,

  • Let Ir = I ∩ K[x1, . . . , xr] be the r-elimination ideal of I.
  • We present an algorithm for deciding whether

Ir =< 0 > or Ir =< 0 > by instances (not directly using symbolic techniques). – We are developing the theoretical framework in this context. – We are applying this technique to automated reasoning for geometric statements. – Implementation in GeoGebra1 (in process....) by other people.

1E.g. ISSAC 2016 Software Demo Award: Development of automatic reasoning tools in GeoGebra. Miguel Ab´

anades, Francisco Botana, Zolt´ an Kov´ acs, Tom´ as Recio, Csilla S´

  • lyom-Gecse.
slide-7
SLIDE 7

S7 Goal III: Application of this Technique to Automated Theorem Proving.

  • Proving by instances.
  • Given a triangle abc and a point d on its circumcircle, the feet e, f, g of the perpendi-

culars from d to the lines bc, ab, and ac, respectively, are collinear.

c=(0,0) a=(1,0) b=(r,s) d=(m,n) f=(t,u) e=(v,w) g=(m,0)

Figure 1: Illustration of Simson’s Theorem

slide-8
SLIDE 8

S8 Goal I: Test Set. Definition 1 We recall that the geometric degree2 of an irreducible affine variety U ⊂ Kk is the number of intersections of U with a generic affine linear variety of codimension dim(U). When the variety is reducible, the degree is defined as the sum of the degrees of the irreducible components.

Figure 2: Illustration of geometric degree

2Heintz J. (1983). Definability and fast quantifier elimination in algebraically closed fields. Theoretical Computer Science, 24, pp. 239-277.

slide-9
SLIDE 9

S9 Goal I: Test Set. Definition 2 (TEST SET) A finite subset A ⊆ Kr is a TEST SET for the varieties of geometric degree less or equal than d with d > 0, (shortly a (d, r)-test set), if no proper variety W ⊂ Kr of gdeg(W) ≤ d contains A. Theorem 1 Let A ⊆ Kr and d ∈ Z>0. Then A is a (d, r)-test set if and only if no hypersurface of Kr, of geometric degree less or equal than d, contains A.

Figure 3: Illustration of test sets

slide-10
SLIDE 10

S10 Goal I: Supp(d,r). For d, r ∈ Z>0, we denote by Supp(d, r) = {(x1, . . . , xr) ⊆ Zr

≥0 | r

  • i=1

xi ≤ d} the set of exponents on the support of a generic polynomial of degree d in r variables.

  • Supp(2, 2) = {(0, 0), (0, 1), (1, 0), (1, 1), (0, 2), (2, 0)}.
  • Supp(2, 3) = {(0, 0, 0), (0, 0, 1), (0, 1, 0), (0, 1, 1), (1, 0, 0), (1, 0, 1), (1, 1, 0),

(1, 1, 1), (2, 0, 0), (0, 2, 0), (0, 0, 2)}

  • #(Supp(d, r)) =

d+r

r

  • .
slide-11
SLIDE 11

S11 Goal I: Supp(d,r). Theorem 2 Supp(d, r) is a (d, r)-test set of minimum cardinality.

Figure 4: Illustration of different supports

slide-12
SLIDE 12

S12 Goal I: Test Set. Theorem 3 Let A be a (d, r)-test set, and ϕ a bijective affine transformation of Kr. Then ϕ(A) is a (d, r)-test set. ϕ x y

  • =

1 −1 1 1 x y

  • +

1

1 2

slide-13
SLIDE 13

S13 Goal I: Disjuntive Test Set. In our context (Goals II and III) it is required to construct sets having stronger properties than that of being a test set, namely, such that any subset of cardinal greater than a fixed size is also a test set. Definition 3 Let d, r ∈ Z>0, and N = #(Supp(d, r)). We say that a finite set A, with #(A) ≥ N, is a (d, r)-disjunctive test set if any subset of A of cardinal N is a (d, r)-test set. The motivation of this notion is the following. Assume that A is disjunctive and #(A) ≥ 2N − 1 and B ⊆ A, then either B or A \ B is a (d, r)-test set. Indeed, if #(B) ≥ N, the statement holds by the definition of disjunctive test set. Else, #(A \ B) ≥ N, and thus A \ B is a (d, r)-test set.

slide-14
SLIDE 14

S14 Goal I: Disjuntive Test Set. Algorithm 1. Given d, r ∈ Z≥0, the algorithm derives a (d, r)-disjunctive test set of any given cardinal M ≥ N = #(Supp(d, r)).

  • 1. If M = N Return Supp(d, r).
  • 2. Set B = Supp(d, r).
  • 3. For i from 1 to M − N do

(a) For any subset C of B with #(C) = N − 1 determine the unique hypersurface HC of Kr of degree d. (b) Compute a point P ∈ Kr not in any of the hypersurfaces obtained in the previous step. (c) Set B = B ∪ {P }.

  • 4. Return B.

passing through C.

slide-15
SLIDE 15

S15 Goal I: Disjuntive Test Set. Example 1 (2, 2)-disjunctive test set of cardinal 7.

  • 1. Let us consider N = #(Supp(2, 2)) = 6 and let M = 7.
  • 2. Supp(2, 2) = {P1, P2, P3, P4, P5, P6} = {(0, 0), (1, 0), (2, 0), (0, 1), (1, 1), (0, 2)}.
  • 3. Let Hi be the unique conic passing through Supp(2, 2) \ {Pi}.

H1 = (x + y − 2)(x + y − 1) H2 = x(x + y − 2) H3 = x(x − 1) H4 = y(x + y − 2) H5 = xy H6 = y(y − 1)

  • 4. Then taking P /

∈ ∪V(Hi), for instance, P = (2/3, 2/3).

  • 5. Supp(2, 2) ∪ {P } is a (2, 2)-disjunctive test set of cardinal 7.
slide-16
SLIDE 16

S16 Goal II: Testing the Nullity of Elimination Ideals.

Figure 5: Illustration of the proyection.

If gdeg(V) = d then gdeg(Vr) ≤ d3 and gdeg(Vr\πr(V)) ≤ d4.

3Heintz J. (1983). Definability and fast quantifier elimination in algebraically closed fields. Theoretical Computer Science, 24, pp. 239-277. 4Personal communication by prof. Mart´

ın Sombra, ICREA Research Professor at Universitat de Barcelona, Spain.

slide-17
SLIDE 17

S17 Goal II: Testing the Nullity of Elimination Ideals.

Figure 6: Illustration of the proyection.

slide-18
SLIDE 18

S18 Goal II: Testing the Nullity of Elimination Ideals.

Figure 7: Illustration of the proyection.

slide-19
SLIDE 19

S19 Goal II: Testing the Nullity of Elimination Ideals. Algorithm 2. Given a bound d for the geometric degree of V, the algorithm decides whether the ideal Ir is zero or not.

  • 1. Set N = (d+r

r ).

  • 2. Apply Algorithm 1 to N and (d, r) to get a (d, r)–disjunctive test set of cardinality

2N − 1, say C.

  • 3. Using an oracle

, decompose C as C = A ∪ B, where for every P ∈ A it holds that P ∈ πr(V) and for every P ∈ B it holds that P ∈ πr(V)

  • 4. If #(A) ≥ N then Return Ir =< 0 > else Ir =< 0 >.
slide-20
SLIDE 20

S20 Goal II: Testing the Nullity of Elimination Ideals. Algorithm 2. Given a bound d for the geometric degree of V, the algorithm decides whether the ideal Ir is zero or not.

  • 1. Set N = (d+r

r ).

  • 2. Apply Alg. 1 to (d, r) to get a (d, r)–disjunctive test set C of cardinality 2N − 1.
  • One may have a pre-computed data basis C, for different values of d and r.
  • If not one may combine Alg. 1 and 2: whenever a point P ∈ C is computed, one

decides whether P belongs or not to πr(V). As soon as the cardinality of either A or B is greater or equal N, the process can be stopped....

  • A third option, probably the most efficient, is to compute T = Supp(d, r) and

to apply a random linear transformation to T (see Theorem 3) to get T ∗. In this situation, we check how many points in T ∗ can be lifted to V....

  • 3. Using an oracle

....

  • 4. If ...
slide-21
SLIDE 21

S21 Goal II: Testing the Nullity of Elimination Ideals. Algorithm 2. Given a bound d for the geometric degree of V, the algorithm decides whether the ideal Ir is zero or not.

  • 1. Set N = (d+r

r ).

  • 2. Apply Algorithm 1 to ...
  • 3. Using an oracle

, decompose C as C = A ∪ B, where for every P ∈ A it holds that P ∈ πr(V) and for every P ∈ B it holds that P ∈ πr(V)

  • This can be done, for example, by substituting the variables x1, . . . , xr by the cor-

responding coordinates of P in the generators of the ideal I to check afterwards whether the new variety in Kn−r is non-empty; this can be done by elimination theory techniques.

  • In the context of the applications of these ideas to automatic theorem proving,

the fiber of almost all points P is finite. Hence, the variety to be tested is zero-

  • dimensional. Thus, the decision is faster.
  • 4. If ...
slide-22
SLIDE 22

S22 Goal II: Testing the Nullity of Elimination Ideals. Example 2 Let I ⊂ C[x, y, z, w] the ideal defined by I =< −w2x2 + 2wx3 − 2x3z + 2x2y2 + 2x2yz + x2z2 − 2 xy2z −2 xyz2 + y4 + 2y3z + y2z2 + 2w2x − 2wx2 − w2, w2x2 − 2wx3 + 2x4 − 2x3z + 2x2y2 + 2x2yz + x2z2− 2xy2z − 2xyz2 + y4 + 2y3z + y2z2 − 2w2x + 2wx2 + w2 > .

  • One may check that V = V(I) ⊂ C4 has degree 4.
  • We consider the projection

π2 : V ⊂ C4 → C2; (x, y, z, w) → (x, y).

  • We want to check whether π2(V) = C2 or, equivalently, whether I∩C[x, y] =< 0 >.
slide-23
SLIDE 23

S23 Goal II: Testing the Nullity of Elimination Ideals. Algorithm 2.

  • 1. N = 15.
  • 2. Applying Algorithm 1 one get the following (4, 2)-disjoint test set of cardinality 29.

C = {(−18, 28), (−15, −30), (−6, −5), (−5, 28), (−2, −17), (−2, 29), (0, 0), (0, 1), (0, 2), (0, 3), (0, 4), (1, 0), (1, 1), (1, 2), (1, 3), (2, 0), (2, 1), (2, 2), (3, −13), (3, 0), (3, 1), (4, 0), (9, 6), (11, 15), (12, −12), (13, −22), (16, −23), (19, 28), (21, 25)}.

  • 3. Using an oracle

, decomposing C = A ∪ B, we get that #(A) = 24 and #(B) = 5. Indeed, B = {(1, 0), (1, 1), (1, 2), (1, 3), (2, 2)} ⊂ C2 \ π2(V).

  • 4. I ∩ K[x, y] =< 0 >.

disjuntive

slide-24
SLIDE 24

S24 Goal II: Testing the Nullity of Elimination Ideals. Example 3 We repeat the example but for the projection π2 : V ⊂ C4 → C2; (x, y, z, w) → (x, w). We want to check whether π2(V) = C2 or, equivalently, whether I ∩ C[x, w] =< 0 >. Algorithm 2.

  • 1. N = 15.
  • 2. C is as above,
  • 3. but now, it decomposes as C = A ∪ B with

#(A) = 1 and #(B) = 28, being A = {(0, 0)}.

  • 4. Thus, in this case

I ∩ C[x, w] =< 0 > .

slide-25
SLIDE 25

S25 Goal III: Application of this Technique to Automated Theorem Proving. Given a triangle abc and a point d on its circumcircle, the feet e, f, g of the perpendiculars from d to the lines bc, ab, and ac, respectively, are collinear.

c=(0,0) a=(1,0) b=(r,s) d=(m,n) f=(t,u) e=(v,w) g=(m,0)

Figure 8: Illustration of Simson’s Theorem

slide-26
SLIDE 26

S26 Goal III: Application of this Technique to Automated Theorem Proving.

  • Polynomials describing the hypotheses

h1 = s(t − 1) − u(r − 1) (f is on the line ab). h2 = (t − m)(r − 1) + s(u − n) (d f is perpendicular to ab). h3 = −rw + sv (e is on the line cb). h4 = r(m − v) + s(n − w) (de is perpendicular to cb). h5 = m2s − n2s + nr2 + ns2 + ms − nr (d is on the circumcircle). h6 = qs − 1 (abc does not degenerate as a triangle).

  • And the thesis

F = (w − u)(m − t) + u(v − t).

  • Therefore, we consider the ideal

I =< h1, ...h6, zF − 1 >⊂ C[r, s, m, n, q, z, t, u, v, w].

  • The theorem is generically true ⇔ I3 = I ∩ K[r, s, m] =< 0 > .
slide-27
SLIDE 27

S27 Goal III: Application of this Technique to Automated Theorem Proving. Example 4 Therefore, we consider the ideal I =< h1, ...h6, zF − 1 >⊂ C[r, s, m, n, q, z, t, u, v, w].

  • One may check that V = V(I) ⊂ C10 has degree d = 32.
  • We want to check whether I ∩ C[r, s, m] =< 0 >.
slide-28
SLIDE 28

S28 Goal III: Application of this Technique to Automated Theorem Proving. Algorithm 2.

  • 1. N = (32+3

3

) = 6545.

  • 2. We apply this step taking the support Supp(32, 3) and applying a random bijective

affine transformation and checking whether all elements are liftable. For the random affine transformation we have taken random integers in {−10..10}, and we have consider an upper triangular matrix. The precise transformation T is Y =   7 0 9 0 2 −3 0 0 6   X +   −5 9 6   .

  • 3. Using an oracle

, none element in T (Supp(32, 3)) can be lifted; i.e. #(A) = 0 and #(B) = 6545.

  • 4. I ∩ K[r, s, m] =< 0 > and hence the theorem is generically true.

The computations were performed with Maple 2017 on a PC with i7-5500U CPU 240GHz, and the 6545 lifting checks took 1.3 seconds.

slide-29
SLIDE 29

S29 ISSAC’18, July 16-19, 2018, New York, NY, USA.

THANK YOU VERY MUCH FOR YOUR ATTENTION !!! MUCHAS GRACIAS !!!