Fast polynomial reduction for generic bivariate ideals Joris van - - PowerPoint PPT Presentation

fast polynomial reduction for generic bivariate ideals
SMART_READER_LITE
LIVE PREVIEW

Fast polynomial reduction for generic bivariate ideals Joris van - - PowerPoint PPT Presentation

Fast polynomial reduction for generic bivariate ideals Joris van der Hoeven, Robin Larrieu Laboratoire dInformatique de lEcole Polytechnique (LIX) CARAMBA Seminar Nancy 23 / 05 / 2019 Joris van der Hoeven and Robin Larrieu Reduction


slide-1
SLIDE 1

Fast polynomial reduction for generic bivariate ideals

Joris van der Hoeven, Robin Larrieu

Laboratoire d’Informatique de l’Ecole Polytechnique (LIX)

CARAMBA Seminar – Nancy 23 / 05 / 2019

Joris van der Hoeven and Robin Larrieu Reduction for generic bivariate ideals 1 / 27

slide-2
SLIDE 2

Introduction

Let A, B be the ideal generated by A and B (A, B ∈ K[X, Y ]). Given P ∈ K[X, Y ], check if P ∈ A, B. (ideal membership test) Compute a normal form of ¯ P ∈ K[X, Y ]/A, B. (computation in the quotient algebra)

Joris van der Hoeven and Robin Larrieu Reduction for generic bivariate ideals 2 / 27

slide-3
SLIDE 3

Introduction

Let A, B be the ideal generated by A and B (A, B ∈ K[X, Y ]). Given P ∈ K[X, Y ], check if P ∈ A, B. (ideal membership test) Compute a normal form of ¯ P ∈ K[X, Y ]/A, B. (computation in the quotient algebra) Classical solution using Gr¨

  • bner bases.

Joris van der Hoeven and Robin Larrieu Reduction for generic bivariate ideals 2 / 27

slide-4
SLIDE 4

Introduction

Let A, B be the ideal generated by A and B (A, B ∈ K[X, Y ]). Given P ∈ K[X, Y ], check if P ∈ A, B. (ideal membership test) Compute a normal form of ¯ P ∈ K[X, Y ]/A, B. (computation in the quotient algebra) Classical solution using Gr¨

  • bner bases.

Fast Gr¨

  • bner basis algorithms rely on linear algebra (ex: F4,
  • F5. . . )

Can we do it with polynomial arithmetic?

Joris van der Hoeven and Robin Larrieu Reduction for generic bivariate ideals 2 / 27

slide-5
SLIDE 5

Introduction

Let A, B be the ideal generated by A and B (A, B ∈ K[X, Y ]). Given P ∈ K[X, Y ], check if P ∈ A, B. (ideal membership test) Compute a normal form of ¯ P ∈ K[X, Y ]/A, B. (computation in the quotient algebra) Classical solution using Gr¨

  • bner bases.

Fast Gr¨

  • bner basis algorithms rely on linear algebra (ex: F4,
  • F5. . . )

Can we do it with polynomial arithmetic?

Given a Gr¨

  • bner basis G, can we reduce P modulo G faster?

Joris van der Hoeven and Robin Larrieu Reduction for generic bivariate ideals 2 / 27

slide-6
SLIDE 6

Introduction

Let A, B be the ideal generated by A and B (A, B ∈ K[X, Y ]). Given P ∈ K[X, Y ], check if P ∈ A, B. (ideal membership test) Compute a normal form of ¯ P ∈ K[X, Y ]/A, B. (computation in the quotient algebra) Classical solution using Gr¨

  • bner bases.

Fast Gr¨

  • bner basis algorithms rely on linear algebra (ex: F4,
  • F5. . . )

Can we do it with polynomial arithmetic?

Given a Gr¨

  • bner basis G, can we reduce P modulo G faster?

Are these ideas useful to compute G faster?

Joris van der Hoeven and Robin Larrieu Reduction for generic bivariate ideals 2 / 27

slide-7
SLIDE 7

Introduction

Main result For generic ideals in two variables, reduction is possible with quasi-optimal complexity. If A,B are given in total degree and if we use the degree-lexicographic order, then the Gr¨

  • bner basis can also be

computed efficiently. References van der Hoeven, L. Fast reduction of bivariate polynomials with respect to sufficiently regular Gr¨

  • bner bases (ISSAC ’18).

van der Hoeven, L. Fast Gr¨

  • bner basis computation and

polynomial reduction for generic bivariate ideals (to appear in AAECC).

Joris van der Hoeven and Robin Larrieu Reduction for generic bivariate ideals 3 / 27

slide-8
SLIDE 8

Outline

1

Key ingredients Dichotomic selection strategy Truncated basis elements Rewriting the equation

2

Vanilla Gr¨

  • bner bases

Definition Terse representation Reduction algorithm

3

Case of the grevlex order Presentation of the setting Concise representation Reduction algorithm

Joris van der Hoeven and Robin Larrieu Reduction for generic bivariate ideals 4 / 27

slide-9
SLIDE 9

Key ingredients Vanilla Gr¨

  • bner bases

Case of the grevlex order Dichotomic selection strategy Truncated basis elements Rewriting the equation

Outline

1

Key ingredients Dichotomic selection strategy Truncated basis elements Rewriting the equation

2

Vanilla Gr¨

  • bner bases

3

Case of the grevlex order

Joris van der Hoeven and Robin Larrieu Reduction for generic bivariate ideals 5 / 27

slide-10
SLIDE 10

Key ingredients Vanilla Gr¨

  • bner bases

Case of the grevlex order Dichotomic selection strategy Truncated basis elements Rewriting the equation

Presentation of the problem

Y X

  • lead. monom. of G

K-basis of K[X, Y ]/I A, B: O(n2) coefficients K[X, Y ]/I: dimension O(n2) G: O(n3) coefficients (O(n2) for each Gi) Reduction using G needs at least O(n3) = ⇒ reduction with less information?

Joris van der Hoeven and Robin Larrieu Reduction for generic bivariate ideals 6 / 27

slide-11
SLIDE 11

Key ingredients Vanilla Gr¨

  • bner bases

Case of the grevlex order Dichotomic selection strategy Truncated basis elements Rewriting the equation

Presentation of the problem

Theorem (van der Hoeven – ACA 2015) The extended reduction of P modulo G can be computed in quasi-linear time for the size of the equation P =

  • i

QiGi + R

Joris van der Hoeven and Robin Larrieu Reduction for generic bivariate ideals 7 / 27

slide-12
SLIDE 12

Key ingredients Vanilla Gr¨

  • bner bases

Case of the grevlex order Dichotomic selection strategy Truncated basis elements Rewriting the equation

Presentation of the problem

Theorem (van der Hoeven – ACA 2015) The extended reduction of P modulo G can be computed in quasi-linear time for the size of the equation P =

  • i

QiGi + R But this equation has size Θ(n3) and we would like to achieve ˜ O(n2) complexity. . .

Joris van der Hoeven and Robin Larrieu Reduction for generic bivariate ideals 7 / 27

slide-13
SLIDE 13

Key ingredients Vanilla Gr¨

  • bner bases

Case of the grevlex order Dichotomic selection strategy Truncated basis elements Rewriting the equation

Presentation of the problem

Theorem (van der Hoeven – ACA 2015) The extended reduction of P modulo G can be computed in quasi-linear time for the size of the equation P =

  • i

QiGi + R But this equation has size Θ(n3) and we would like to achieve ˜ O(n2) complexity. . . = ⇒ Somehow reduce the size of the equation.

Joris van der Hoeven and Robin Larrieu Reduction for generic bivariate ideals 7 / 27

slide-14
SLIDE 14

Key ingredients Vanilla Gr¨

  • bner bases

Case of the grevlex order Dichotomic selection strategy Truncated basis elements Rewriting the equation

Dichotomic selection strategy

The extended reduction is not unique: several ways to reduce each term. The remainder is unique if G is a Gr¨

  • bner basis.

The quotients depend on a selection strategy.

Joris van der Hoeven and Robin Larrieu Reduction for generic bivariate ideals 8 / 27

slide-15
SLIDE 15

Key ingredients Vanilla Gr¨

  • bner bases

Case of the grevlex order Dichotomic selection strategy Truncated basis elements Rewriting the equation

Dichotomic selection strategy

The extended reduction is not unique: several ways to reduce each term. The remainder is unique if G is a Gr¨

  • bner basis.

The quotients depend on a selection strategy. n/2 quotients of degree d n/4 quotients of degree 2d n/8 quotients of degree 4d . . . = ⇒ The degree of the quotients is controlled.

Joris van der Hoeven and Robin Larrieu Reduction for generic bivariate ideals 8 / 27

slide-16
SLIDE 16

Key ingredients Vanilla Gr¨

  • bner bases

Case of the grevlex order Dichotomic selection strategy Truncated basis elements Rewriting the equation

Truncated basis elements

What is 125 231 546 432 quo 12 358 748 151 ?

Joris van der Hoeven and Robin Larrieu Reduction for generic bivariate ideals 9 / 27

slide-17
SLIDE 17

Key ingredients Vanilla Gr¨

  • bner bases

Case of the grevlex order Dichotomic selection strategy Truncated basis elements Rewriting the equation

Truncated basis elements

What is 125 231 546 432 quo 12 358 748 151 ? If we know the size of the quotient, then only a few head terms are relevant.

Joris van der Hoeven and Robin Larrieu Reduction for generic bivariate ideals 9 / 27

slide-18
SLIDE 18

Key ingredients Vanilla Gr¨

  • bner bases

Case of the grevlex order Dichotomic selection strategy Truncated basis elements Rewriting the equation

Truncated basis elements

What is 125 231 546 432 quo 12 358 748 151 ? If we know the size of the quotient, then only a few head terms are relevant. Q3 G3

Joris van der Hoeven and Robin Larrieu Reduction for generic bivariate ideals 9 / 27

slide-19
SLIDE 19

Key ingredients Vanilla Gr¨

  • bner bases

Case of the grevlex order Dichotomic selection strategy Truncated basis elements Rewriting the equation

Truncated basis elements

What is 125 231 546 432 quo 12 358 748 151 ? If we know the size of the quotient, then only a few head terms are relevant. Q3 G #

3

With the dichotomic selection strategy, G # := (G #

0 , . . . , G # n )

requires only ˜ O(n2) coefficients.

Joris van der Hoeven and Robin Larrieu Reduction for generic bivariate ideals 9 / 27

slide-20
SLIDE 20

Key ingredients Vanilla Gr¨

  • bner bases

Case of the grevlex order Dichotomic selection strategy Truncated basis elements Rewriting the equation

Rewriting the equation

P − QiGi ≈ P − QiG #

i

up to a certain precision. We need to increase this precision to continue the computation.

Joris van der Hoeven and Robin Larrieu Reduction for generic bivariate ideals 10 / 27

slide-21
SLIDE 21

Key ingredients Vanilla Gr¨

  • bner bases

Case of the grevlex order Dichotomic selection strategy Truncated basis elements Rewriting the equation

Rewriting the equation

P − QiGi ≈ P − QiG #

i

up to a certain precision. We need to increase this precision to continue the computation. Remark The Gr¨

  • bner basis is generated by A and B =

⇒ redundant information. There must be some relations between the Gi.

Joris van der Hoeven and Robin Larrieu Reduction for generic bivariate ideals 10 / 27

slide-22
SLIDE 22

Key ingredients Vanilla Gr¨

  • bner bases

Case of the grevlex order Dichotomic selection strategy Truncated basis elements Rewriting the equation

Rewriting the equation

P − QiGi ≈ P − QiG #

i

up to a certain precision. We need to increase this precision to continue the computation. Remark The Gr¨

  • bner basis is generated by A and B =

⇒ redundant information. There must be some relations between the Gi. Assume there is Ii ⊂ {0, . . . , n} \ {i} and (small) polynomials aj such that Gi =

j∈Ii ajGj.

Joris van der Hoeven and Robin Larrieu Reduction for generic bivariate ideals 10 / 27

slide-23
SLIDE 23

Key ingredients Vanilla Gr¨

  • bner bases

Case of the grevlex order Dichotomic selection strategy Truncated basis elements Rewriting the equation

Rewriting the equation

P − QiGi ≈ P − QiG #

i

up to a certain precision. We need to increase this precision to continue the computation. Remark The Gr¨

  • bner basis is generated by A and B =

⇒ redundant information. There must be some relations between the Gi. Assume there is Ii ⊂ {0, . . . , n} \ {i} and (small) polynomials aj such that Gi =

j∈Ii ajGj.

Assume also that for j ∈ Ii, G #

j

has higher precision than G #

i .

Joris van der Hoeven and Robin Larrieu Reduction for generic bivariate ideals 10 / 27

slide-24
SLIDE 24

Key ingredients Vanilla Gr¨

  • bner bases

Case of the grevlex order Dichotomic selection strategy Truncated basis elements Rewriting the equation

Rewriting the equation

P − QiGi ≈ P − QiG #

i

up to a certain precision. We need to increase this precision to continue the computation. Remark The Gr¨

  • bner basis is generated by A and B =

⇒ redundant information. There must be some relations between the Gi. Assume there is Ii ⊂ {0, . . . , n} \ {i} and (small) polynomials aj such that Gi =

j∈Ii ajGj.

Assume also that for j ∈ Ii, G #

j

has higher precision than G #

i .

Then replacing QiG #

i

by

j∈Ii QiajG # j

increases the precision.

Joris van der Hoeven and Robin Larrieu Reduction for generic bivariate ideals 10 / 27

slide-25
SLIDE 25

Key ingredients Vanilla Gr¨

  • bner bases

Case of the grevlex order Definition Terse representation Reduction algorithm

Outline

1

Key ingredients

2

Vanilla Gr¨

  • bner bases

Definition Terse representation Reduction algorithm

3

Case of the grevlex order

Joris van der Hoeven and Robin Larrieu Reduction for generic bivariate ideals 11 / 27

slide-26
SLIDE 26

Key ingredients Vanilla Gr¨

  • bner bases

Case of the grevlex order Definition Terse representation Reduction algorithm

Definition: Vanilla Gr¨

  • bner stairs

We consider the term orders ≺k (k ∈ N∗) as the weighted-degree lexicographic order with weights (X : 1, Y : k). Vanilla Gr¨

  • bner stairs

The monomials below the stairs are the minimal elements with respect to ≺k Example for k = 4 and an ideal I of degree D = 237

Joris van der Hoeven and Robin Larrieu Reduction for generic bivariate ideals 12 / 27

slide-27
SLIDE 27

Key ingredients Vanilla Gr¨

  • bner bases

Case of the grevlex order Definition Terse representation Reduction algorithm

Definition: Retractive property

Retractive property let I := {0, 1, n} . The retractive property means that for any i n we have a linear combination Gi =

  • j∈I

Ci,j Gj .

Joris van der Hoeven and Robin Larrieu Reduction for generic bivariate ideals 13 / 27

slide-28
SLIDE 28

Key ingredients Vanilla Gr¨

  • bner bases

Case of the grevlex order Definition Terse representation Reduction algorithm

Definition: Retractive property

Retractive property For ℓ ∈ N∗, let Iℓ := {0, 1, n} ∪ ℓN ∩ (0, n). The retractive property means that for any i, ℓ n we have a linear combination Gi =

  • j∈Iℓ

Ci,j,ℓGj with degk Ci,j,ℓ = O(kℓ).

Joris van der Hoeven and Robin Larrieu Reduction for generic bivariate ideals 13 / 27

slide-29
SLIDE 29

Key ingredients Vanilla Gr¨

  • bner bases

Case of the grevlex order Definition Terse representation Reduction algorithm

Definition: Retractive property

Retractive property For ℓ ∈ N∗, let Iℓ := {0, 1, n} ∪ ℓN ∩ (0, n). The retractive property means that for any i, ℓ n we have a linear combination Gi =

  • j∈Iℓ

Ci,j,ℓGj with degk Ci,j,ℓ = O(kℓ).

More precisely, degk Ci,j,ℓ < k(2ℓ − 1).

Joris van der Hoeven and Robin Larrieu Reduction for generic bivariate ideals 13 / 27

slide-30
SLIDE 30

Key ingredients Vanilla Gr¨

  • bner bases

Case of the grevlex order Definition Terse representation Reduction algorithm

Definition: Retractive property

Retractive property For ℓ ∈ N∗, let Iℓ := {0, 1, n} ∪ ℓN ∩ (0, n). The retractive property means that for any i, ℓ n we have a linear combination Gi =

  • j∈Iℓ

Ci,j,ℓGj with degk Ci,j,ℓ = O(kℓ).

More precisely, degk Ci,j,ℓ < k(2ℓ − 1).

A Gr¨

  • bner basis for the k-order is vanilla if it is a vanilla Gr¨
  • bner

stairs and has the retractive property. Conjecture: vanilla Gr¨

  • bner bases are generic

Experimentally, for generators chosen at random, and for various term orders, the Gr¨

  • bner basis is vanilla.

Joris van der Hoeven and Robin Larrieu Reduction for generic bivariate ideals 13 / 27

slide-31
SLIDE 31

Key ingredients Vanilla Gr¨

  • bner bases

Case of the grevlex order Definition Terse representation Reduction algorithm

Terse representation

Proposition With the dichotomic selection strategy and with pi = max(2l dividing i), we have degY Qi < pi and degX Qi < kpi so degk Qi < 2kpi. Terse representation Vanilla Gr¨

  • bner bases admit a terse representation constituted of:

G #

i

:= Gi for i ∈ {0, 1, n}. G #

i

is the truncation at precision 2kpi of Gi for 1 < i < n. the retraction coefficients Ci,j,ℓ for ℓ = 2, 4, . . . , j ∈ Iℓ, i a multiple of ℓ/2.

Joris van der Hoeven and Robin Larrieu Reduction for generic bivariate ideals 14 / 27

slide-32
SLIDE 32

Key ingredients Vanilla Gr¨

  • bner bases

Case of the grevlex order Definition Terse representation Reduction algorithm

Terse representation – Example

G0 G1 G2

+ the linear combination G2 = f2(Gi, i ∈ {0, 1, 4, 8, 11}) (5 polynomials of degree 27)

G3

+ the linear combination G3 = f3(Gi, i ∈ {0, 1, 2, 4, 6, 8, 10, 11}) (8 polynomials of degree 11)

G4

+ the linear combination G4 = f4(Gi, i ∈ {0, 1, 8, 11}) (4 polynomials of degree 59)

G5

+ the linear combination G5 = f5(Gi, i ∈ {0, 1, 2, 4, 6, 8, 10, 11}) (8 polynomials of degree 11)

G6

+ the linear combination G6 = f6(Gi, i ∈ {0, 1, 4, 8, 11}) (5 polynomials of degree 27)

G7

+ the linear combination G7 = f7(Gi, i ∈ {0, 1, 2, 4, 6, 8, 10, 11}) (8 polynomials of degree 11)

G8

+ the linear combination G8 = f8(Gi, i ∈ {0, 1, 11}) (3 polynomials of degree 123)

G9

+ the linear combination G9 = f9(Gi, i ∈ {0, 1, 2, 4, 6, 8, 10, 11}) (8 polynomials of degree 11)

G10

+ the linear combination G10 = f10(Gi, i ∈ {0, 1, 4, 8, 11}) (5 polynomials of degree 27)

G11

Joris van der Hoeven and Robin Larrieu Reduction for generic bivariate ideals 15 / 27

slide-33
SLIDE 33

Key ingredients Vanilla Gr¨

  • bner bases

Case of the grevlex order Definition Terse representation Reduction algorithm

Terse representation – Example

G # G #

1

G #

2

+ the linear combination G2 = f2(Gi, i ∈ {0, 1, 4, 8, 11}) (5 polynomials of degree 27)

G #

3

+ the linear combination G3 = f3(Gi, i ∈ {0, 1, 2, 4, 6, 8, 10, 11}) (8 polynomials of degree 11)

G #

4

+ the linear combination G4 = f4(Gi, i ∈ {0, 1, 8, 11}) (4 polynomials of degree 59)

G #

5

+ the linear combination G5 = f5(Gi, i ∈ {0, 1, 2, 4, 6, 8, 10, 11}) (8 polynomials of degree 11)

G #

6

+ the linear combination G6 = f6(Gi, i ∈ {0, 1, 4, 8, 11}) (5 polynomials of degree 27)

G #

7

+ the linear combination G7 = f7(Gi, i ∈ {0, 1, 2, 4, 6, 8, 10, 11}) (8 polynomials of degree 11)

G #

8

+ the linear combination G8 = f8(Gi, i ∈ {0, 1, 11}) (3 polynomials of degree 123)

G #

9

+ the linear combination G9 = f9(Gi, i ∈ {0, 1, 2, 4, 6, 8, 10, 11}) (8 polynomials of degree 11)

G #

10

+ the linear combination G10 = f10(Gi, i ∈ {0, 1, 4, 8, 11}) (5 polynomials of degree 27)

G #

11

Joris van der Hoeven and Robin Larrieu Reduction for generic bivariate ideals 15 / 27

slide-34
SLIDE 34

Key ingredients Vanilla Gr¨

  • bner bases

Case of the grevlex order Definition Terse representation Reduction algorithm

Reduction algorithm

Theorem Let P =

i QiG # i

+ ˜ R be an extended reduction of P w.r.t. G #. Then P =

i QiGi is in normal form with respect to G.

This is because the monomials in normal form are minimal w.r.t. ≺k.

Joris van der Hoeven and Robin Larrieu Reduction for generic bivariate ideals 16 / 27

slide-35
SLIDE 35

Key ingredients Vanilla Gr¨

  • bner bases

Case of the grevlex order Definition Terse representation Reduction algorithm

Reduction algorithm

Theorem Let P =

i QiG # i

+ ˜ R be an extended reduction of P w.r.t. G #. Then P =

i QiGi is in normal form with respect to G.

This is because the monomials in normal form are minimal w.r.t. ≺k. Algorithm Compute an extended reduction w.r.t. G #

Joris van der Hoeven and Robin Larrieu Reduction for generic bivariate ideals 16 / 27

slide-36
SLIDE 36

Key ingredients Vanilla Gr¨

  • bner bases

Case of the grevlex order Definition Terse representation Reduction algorithm

Reduction algorithm

Theorem Let P =

i QiG # i

+ ˜ R be an extended reduction of P w.r.t. G #. Then P =

i QiGi is in normal form with respect to G.

This is because the monomials in normal form are minimal w.r.t. ≺k. Algorithm Compute an extended reduction w.r.t. G # Use the retraction coefficients to find S0, S1, Sn such that

  • i QiGi = S0G0 + S1G1 + SnGn.

Joris van der Hoeven and Robin Larrieu Reduction for generic bivariate ideals 16 / 27

slide-37
SLIDE 37

Key ingredients Vanilla Gr¨

  • bner bases

Case of the grevlex order Definition Terse representation Reduction algorithm

Reduction algorithm

Theorem Let P =

i QiG # i

+ ˜ R be an extended reduction of P w.r.t. G #. Then P =

i QiGi is in normal form with respect to G.

This is because the monomials in normal form are minimal w.r.t. ≺k. Algorithm Compute an extended reduction w.r.t. G # Use the retraction coefficients to find S0, S1, Sn such that

  • i QiGi = S0G0 + S1G1 + SnGn.

Set R := P − S0G0 − S1G1 − SnGn.

Joris van der Hoeven and Robin Larrieu Reduction for generic bivariate ideals 16 / 27

slide-38
SLIDE 38

Key ingredients Vanilla Gr¨

  • bner bases

Case of the grevlex order Definition Terse representation Reduction algorithm

Applications

Multiplication in A := K[X, Y ]/I: Multiply-then-reduce in time ˜ O(n2). Change of basis: P ∈ A[4] P ∈ A[42] Perform a Gr¨

  • bner walk (log n steps in time ˜

O(n2) each). A[4] ← → A[8] ← → A[16] ← → A[32] ← → A[42] (assuming these terse representations have been precomputed).

Joris van der Hoeven and Robin Larrieu Reduction for generic bivariate ideals 17 / 27

slide-39
SLIDE 39

Key ingredients Vanilla Gr¨

  • bner bases

Case of the grevlex order Presentation of the setting Concise representation Reduction algorithm

Outline

1

Key ingredients

2

Vanilla Gr¨

  • bner bases

3

Case of the grevlex order Presentation of the setting Concise representation Reduction algorithm

Joris van der Hoeven and Robin Larrieu Reduction for generic bivariate ideals 18 / 27

slide-40
SLIDE 40

Key ingredients Vanilla Gr¨

  • bner bases

Case of the grevlex order Presentation of the setting Concise representation Reduction algorithm

Presentation of the setting

I = A, B with generic A, B ∈ K[X, Y ] given in total degree. Use the degree reverse lexicographic order to compute G. deg A = deg B = n (also works if deg B = m n). We want to reduce P with deg P = d.

Joris van der Hoeven and Robin Larrieu Reduction for generic bivariate ideals 19 / 27

slide-41
SLIDE 41

Key ingredients Vanilla Gr¨

  • bner bases

Case of the grevlex order Presentation of the setting Concise representation Reduction algorithm

Presentation of the setting

I = A, B with generic A, B ∈ K[X, Y ] given in total degree. Use the degree reverse lexicographic order to compute G. deg A = deg B = n (also works if deg B = m n). We want to reduce P with deg P = d. Remark In this case, G is not vanilla: the shape of the stairs do not match.

  • lead. monom. of G

vanilla stairs

Joris van der Hoeven and Robin Larrieu Reduction for generic bivariate ideals 19 / 27

slide-42
SLIDE 42

Key ingredients Vanilla Gr¨

  • bner bases

Case of the grevlex order Presentation of the setting Concise representation Reduction algorithm

Concise representation

Reduced Gr¨

  • bner basis:

G red

i+2 = Spol(G red i

, G red

i+1) rem G red 0 , . . . , G red i+1

Joris van der Hoeven and Robin Larrieu Reduction for generic bivariate ideals 20 / 27

slide-43
SLIDE 43

Key ingredients Vanilla Gr¨

  • bner bases

Case of the grevlex order Presentation of the setting Concise representation Reduction algorithm

Concise representation

Reduced Gr¨

  • bner basis:

G red

i+2 = Spol(G red i

, G red

i+1) rem G red 0 , . . . , G red i+1

Remark: Gi+2 = Spol(Gi, Gi+1) rem Gi, Gi+1 also gives a Gr¨

  • bner basis.

Joris van der Hoeven and Robin Larrieu Reduction for generic bivariate ideals 20 / 27

slide-44
SLIDE 44

Key ingredients Vanilla Gr¨

  • bner bases

Case of the grevlex order Presentation of the setting Concise representation Reduction algorithm

Concise representation

Reduced Gr¨

  • bner basis:

G red

i+2 = Spol(G red i

, G red

i+1) rem G red 0 , . . . , G red i+1

Remark: Gi+2 = Spol(Gi, Gi+1) rem Gi, Gi+1 also gives a Gr¨

  • bner basis.

Gi+1 Gi+2

  • = Mi
  • Gi

Gi+1

  • Joris van der Hoeven and Robin Larrieu

Reduction for generic bivariate ideals 20 / 27

slide-45
SLIDE 45

Key ingredients Vanilla Gr¨

  • bner bases

Case of the grevlex order Presentation of the setting Concise representation Reduction algorithm

Concise representation

Reduced Gr¨

  • bner basis:

G red

i+2 = Spol(G red i

, G red

i+1) rem G red 0 , . . . , G red i+1

Remark: Gi+2 = Spol(Gi, Gi+1) rem Gi, Gi+1 also gives a Gr¨

  • bner basis.
  • Gi+k

Gi+k+1

  • = Mi,k
  • Gi

Gi+1

  • Joris van der Hoeven and Robin Larrieu

Reduction for generic bivariate ideals 20 / 27

slide-46
SLIDE 46

Key ingredients Vanilla Gr¨

  • bner bases

Case of the grevlex order Presentation of the setting Concise representation Reduction algorithm

Concise representation

Reduced Gr¨

  • bner basis:

G red

i+2 = Spol(G red i

, G red

i+1) rem G red 0 , . . . , G red i+1

Remark: Gi+2 = Spol(Gi, Gi+1) rem Gi, Gi+1 also gives a Gr¨

  • bner basis.
  • Gi+k

Gi+k+1

  • = Mi,k
  • Gi

Gi+1

  • G0 ∼

= A, G1 ∼ = B and well-chosen Mi,k hold all information about G. Also, little information is required to compute the Mi,k.

Joris van der Hoeven and Robin Larrieu Reduction for generic bivariate ideals 20 / 27

slide-47
SLIDE 47

Key ingredients Vanilla Gr¨

  • bner bases

Case of the grevlex order Presentation of the setting Concise representation Reduction algorithm

Concise representation – Example

G red G red

1

G red

2

G red

3

G red

4

G red

5

G red

6

G red

7

G red

8

G red

9

G red

10

G red

11

Joris van der Hoeven and Robin Larrieu Reduction for generic bivariate ideals 21 / 27

slide-48
SLIDE 48

Key ingredients Vanilla Gr¨

  • bner bases

Case of the grevlex order Presentation of the setting Concise representation Reduction algorithm

Concise representation – Example

G0 G1 G2 G3 G4 G5 G6 G7 G8 G9 G10 G11

Joris van der Hoeven and Robin Larrieu Reduction for generic bivariate ideals 21 / 27

slide-49
SLIDE 49

Key ingredients Vanilla Gr¨

  • bner bases

Case of the grevlex order Presentation of the setting Concise representation Reduction algorithm

Concise representation – Example

G # G #

1

G #

2

G #

3

G #

4

G #

5

G #

6

G #

7

G #

8

G #

9

G #

10

G #

11

+ the matrix M0,2 + the matrix M0,4 + the matrix M4,2 + the matrix M0,8 + the matrix M8,2

Joris van der Hoeven and Robin Larrieu Reduction for generic bivariate ideals 21 / 27

slide-50
SLIDE 50

Key ingredients Vanilla Gr¨

  • bner bases

Case of the grevlex order Presentation of the setting Concise representation Reduction algorithm

Reduction algorithm

Reminder

monomials in normal form are NOT the minimal monomials

w.r.t. ≺ = ⇒ Cannot simply reduce w.r.t. G #.

Joris van der Hoeven and Robin Larrieu Reduction for generic bivariate ideals 22 / 27

slide-51
SLIDE 51

Key ingredients Vanilla Gr¨

  • bner bases

Case of the grevlex order Presentation of the setting Concise representation Reduction algorithm

Reduction algorithm

Reminder

monomials in normal form are NOT the minimal monomials

w.r.t. ≺ = ⇒ Cannot simply reduce w.r.t. G #. Must perform the substitutions on the fly during the computation Start reducing using G #

i .

Joris van der Hoeven and Robin Larrieu Reduction for generic bivariate ideals 22 / 27

slide-52
SLIDE 52

Key ingredients Vanilla Gr¨

  • bner bases

Case of the grevlex order Presentation of the setting Concise representation Reduction algorithm

Reduction algorithm

Reminder

monomials in normal form are NOT the minimal monomials

w.r.t. ≺ = ⇒ Cannot simply reduce w.r.t. G #. Must perform the substitutions on the fly during the computation Start reducing using G #

i .

The precision of G #

i

is chosen (by definition) sufficient to compute Qi.

Joris van der Hoeven and Robin Larrieu Reduction for generic bivariate ideals 22 / 27

slide-53
SLIDE 53

Key ingredients Vanilla Gr¨

  • bner bases

Case of the grevlex order Presentation of the setting Concise representation Reduction algorithm

Reduction algorithm

Reminder

monomials in normal form are NOT the minimal monomials

w.r.t. ≺ = ⇒ Cannot simply reduce w.r.t. G #. Must perform the substitutions on the fly during the computation Start reducing using G #

i .

The precision of G #

i

is chosen (by definition) sufficient to compute Qi. Once Qi is known, replace QiGi by SkGk + Sk+1Gk+1 to increase precision.

Joris van der Hoeven and Robin Larrieu Reduction for generic bivariate ideals 22 / 27

slide-54
SLIDE 54

Key ingredients Vanilla Gr¨

  • bner bases

Case of the grevlex order Presentation of the setting Concise representation Reduction algorithm

Reduction algorithm – Example

P = •X 12Y 11 + · · ·

Joris van der Hoeven and Robin Larrieu Reduction for generic bivariate ideals 23 / 27

slide-55
SLIDE 55

Key ingredients Vanilla Gr¨

  • bner bases

Case of the grevlex order Presentation of the setting Concise representation Reduction algorithm

Reduction algorithm – Example

P = •X 13Y 10 + · · ·

Joris van der Hoeven and Robin Larrieu Reduction for generic bivariate ideals 23 / 27

slide-56
SLIDE 56

Key ingredients Vanilla Gr¨

  • bner bases

Case of the grevlex order Presentation of the setting Concise representation Reduction algorithm

Reduction algorithm – Example

P = •X 14Y 9 + · · ·

Joris van der Hoeven and Robin Larrieu Reduction for generic bivariate ideals 23 / 27

slide-57
SLIDE 57

Key ingredients Vanilla Gr¨

  • bner bases

Case of the grevlex order Presentation of the setting Concise representation Reduction algorithm

Reduction algorithm – Example

P = •X 15Y 8 + · · ·

Joris van der Hoeven and Robin Larrieu Reduction for generic bivariate ideals 23 / 27

slide-58
SLIDE 58

Key ingredients Vanilla Gr¨

  • bner bases

Case of the grevlex order Presentation of the setting Concise representation Reduction algorithm

Reduction algorithm – Example

P = •X 16Y 7 + · · ·

Joris van der Hoeven and Robin Larrieu Reduction for generic bivariate ideals 23 / 27

slide-59
SLIDE 59

Key ingredients Vanilla Gr¨

  • bner bases

Case of the grevlex order Presentation of the setting Concise representation Reduction algorithm

Reduction algorithm – Example

P = •X 17Y 6 + · · ·

Joris van der Hoeven and Robin Larrieu Reduction for generic bivariate ideals 23 / 27

slide-60
SLIDE 60

Key ingredients Vanilla Gr¨

  • bner bases

Case of the grevlex order Presentation of the setting Concise representation Reduction algorithm

Reduction algorithm – Example

P = •X 18Y 5 + · · ·

Joris van der Hoeven and Robin Larrieu Reduction for generic bivariate ideals 23 / 27

slide-61
SLIDE 61

Key ingredients Vanilla Gr¨

  • bner bases

Case of the grevlex order Presentation of the setting Concise representation Reduction algorithm

Reduction algorithm – Example

P = •X 19Y 4 + · · ·

Joris van der Hoeven and Robin Larrieu Reduction for generic bivariate ideals 23 / 27

slide-62
SLIDE 62

Key ingredients Vanilla Gr¨

  • bner bases

Case of the grevlex order Presentation of the setting Concise representation Reduction algorithm

Reduction algorithm – Example

P = •X 20Y 3 + · · ·

Joris van der Hoeven and Robin Larrieu Reduction for generic bivariate ideals 23 / 27

slide-63
SLIDE 63

Key ingredients Vanilla Gr¨

  • bner bases

Case of the grevlex order Presentation of the setting Concise representation Reduction algorithm

Reduction algorithm – Example

P = •X 21Y 2 + · · ·

Joris van der Hoeven and Robin Larrieu Reduction for generic bivariate ideals 23 / 27

slide-64
SLIDE 64

Key ingredients Vanilla Gr¨

  • bner bases

Case of the grevlex order Presentation of the setting Concise representation Reduction algorithm

Reduction algorithm – Example

P = •X 22Y 1 + · · ·

Joris van der Hoeven and Robin Larrieu Reduction for generic bivariate ideals 23 / 27

slide-65
SLIDE 65

Key ingredients Vanilla Gr¨

  • bner bases

Case of the grevlex order Presentation of the setting Concise representation Reduction algorithm

Reduction algorithm – Example

P = •X 23Y 0 + · · ·

Joris van der Hoeven and Robin Larrieu Reduction for generic bivariate ideals 23 / 27

slide-66
SLIDE 66

Key ingredients Vanilla Gr¨

  • bner bases

Case of the grevlex order Presentation of the setting Concise representation Reduction algorithm

Reduction algorithm – Example

P = •Y 22 + · · ·

Joris van der Hoeven and Robin Larrieu Reduction for generic bivariate ideals 23 / 27

slide-67
SLIDE 67

Key ingredients Vanilla Gr¨

  • bner bases

Case of the grevlex order Presentation of the setting Concise representation Reduction algorithm

Reduction algorithm – Example

P = •Y 21 + · · ·

Joris van der Hoeven and Robin Larrieu Reduction for generic bivariate ideals 23 / 27

slide-68
SLIDE 68

Key ingredients Vanilla Gr¨

  • bner bases

Case of the grevlex order Presentation of the setting Concise representation Reduction algorithm

Reduction algorithm – Example

P = •Y 20 + · · ·

Joris van der Hoeven and Robin Larrieu Reduction for generic bivariate ideals 23 / 27

slide-69
SLIDE 69

Key ingredients Vanilla Gr¨

  • bner bases

Case of the grevlex order Presentation of the setting Concise representation Reduction algorithm

Reduction algorithm – Example

P = •Y 19 + · · · Q10G10 = S8G8 + S9G9

Joris van der Hoeven and Robin Larrieu Reduction for generic bivariate ideals 23 / 27

slide-70
SLIDE 70

Key ingredients Vanilla Gr¨

  • bner bases

Case of the grevlex order Presentation of the setting Concise representation Reduction algorithm

Reduction algorithm – Example

P = •Y 18 + · · · (Q9 + S9)G9 = S0G0 + S1G1

Joris van der Hoeven and Robin Larrieu Reduction for generic bivariate ideals 23 / 27

slide-71
SLIDE 71

Key ingredients Vanilla Gr¨

  • bner bases

Case of the grevlex order Presentation of the setting Concise representation Reduction algorithm

Reduction algorithm – Example

P = •Y 17 + · · ·

Joris van der Hoeven and Robin Larrieu Reduction for generic bivariate ideals 23 / 27

slide-72
SLIDE 72

Key ingredients Vanilla Gr¨

  • bner bases

Case of the grevlex order Presentation of the setting Concise representation Reduction algorithm

Reduction algorithm – Example

P = •Y 16 + · · ·

Joris van der Hoeven and Robin Larrieu Reduction for generic bivariate ideals 23 / 27

slide-73
SLIDE 73

Key ingredients Vanilla Gr¨

  • bner bases

Case of the grevlex order Presentation of the setting Concise representation Reduction algorithm

Reduction algorithm – Example

P = •Y 15 + · · ·

Joris van der Hoeven and Robin Larrieu Reduction for generic bivariate ideals 23 / 27

slide-74
SLIDE 74

Key ingredients Vanilla Gr¨

  • bner bases

Case of the grevlex order Presentation of the setting Concise representation Reduction algorithm

Reduction algorithm – Example

P = •Y 14 + · · ·

Joris van der Hoeven and Robin Larrieu Reduction for generic bivariate ideals 23 / 27

slide-75
SLIDE 75

Key ingredients Vanilla Gr¨

  • bner bases

Case of the grevlex order Presentation of the setting Concise representation Reduction algorithm

Reduction algorithm – Example

P = •Y 13 + · · ·

Joris van der Hoeven and Robin Larrieu Reduction for generic bivariate ideals 23 / 27

slide-76
SLIDE 76

Key ingredients Vanilla Gr¨

  • bner bases

Case of the grevlex order Presentation of the setting Concise representation Reduction algorithm

Reduction algorithm – Example

P = •Y 12 + · · ·

Joris van der Hoeven and Robin Larrieu Reduction for generic bivariate ideals 23 / 27

slide-77
SLIDE 77

Key ingredients Vanilla Gr¨

  • bner bases

Case of the grevlex order Presentation of the setting Concise representation Reduction algorithm

Reduction algorithm – Example

P = •Y 11 + · · ·

Joris van der Hoeven and Robin Larrieu Reduction for generic bivariate ideals 23 / 27

slide-78
SLIDE 78

Key ingredients Vanilla Gr¨

  • bner bases

Case of the grevlex order Presentation of the setting Concise representation Reduction algorithm

Reduction algorithm – Example

P = •Y 10 + · · ·

Joris van der Hoeven and Robin Larrieu Reduction for generic bivariate ideals 23 / 27

slide-79
SLIDE 79

Key ingredients Vanilla Gr¨

  • bner bases

Case of the grevlex order Presentation of the setting Concise representation Reduction algorithm

Reduction algorithm – Example

P = •Y 9 + · · ·

Joris van der Hoeven and Robin Larrieu Reduction for generic bivariate ideals 23 / 27

slide-80
SLIDE 80

Key ingredients Vanilla Gr¨

  • bner bases

Case of the grevlex order Presentation of the setting Concise representation Reduction algorithm

Reduction algorithm – Example

P = 0

Joris van der Hoeven and Robin Larrieu Reduction for generic bivariate ideals 23 / 27

slide-81
SLIDE 81

Key ingredients Vanilla Gr¨

  • bner bases

Case of the grevlex order Presentation of the setting Concise representation Reduction algorithm

Implementation

Proof-of-concept implementation in SageMath (https://www.lix.polytechnique.fr/~larrieu/)

Joris van der Hoeven and Robin Larrieu Reduction for generic bivariate ideals 24 / 27

slide-82
SLIDE 82

Key ingredients Vanilla Gr¨

  • bner bases

Case of the grevlex order Presentation of the setting Concise representation Reduction algorithm

Implementation

Proof-of-concept implementation in SageMath (https://www.lix.polytechnique.fr/~larrieu/) More serious implementation in Mathemagix (package larrix)

Joris van der Hoeven and Robin Larrieu Reduction for generic bivariate ideals 24 / 27

slide-83
SLIDE 83

Key ingredients Vanilla Gr¨

  • bner bases

Case of the grevlex order Presentation of the setting Concise representation Reduction algorithm

Implementation

Proof-of-concept implementation in SageMath (https://www.lix.polytechnique.fr/~larrieu/) More serious implementation in Mathemagix (package larrix) Actually achieves ˜ O(n2) complexity. 50 100 150 200 n √ time Concise repr. Reduction

Joris van der Hoeven and Robin Larrieu Reduction for generic bivariate ideals 24 / 27

slide-84
SLIDE 84

Key ingredients Vanilla Gr¨

  • bner bases

Case of the grevlex order Presentation of the setting Concise representation Reduction algorithm

Benchmarks

Outperforms state-of-the-art libraries 50 100 150 200 10 20 30 n time (s) FGb Sage/Singular Mathemagix

Joris van der Hoeven and Robin Larrieu Reduction for generic bivariate ideals 25 / 27

slide-85
SLIDE 85

Key ingredients Vanilla Gr¨

  • bner bases

Case of the grevlex order Presentation of the setting Concise representation Reduction algorithm

Benchmarks

Outperforms state-of-the-art libraries 50 100 150 200 10 20 30 n time (s) FGb Sage/Singular Mathemagix Note: those libraries support > 2 variables and non-generic settings while we do not.

Joris van der Hoeven and Robin Larrieu Reduction for generic bivariate ideals 25 / 27

slide-86
SLIDE 86

Key ingredients Vanilla Gr¨

  • bner bases

Case of the grevlex order Presentation of the setting Concise representation Reduction algorithm

Applications

Concise representation Structure of K[X, Y ]/A, B in time ˜ O(n2). Reduction Quasi-optimal ideal membership test P ∈? A, B. Quasi-optimal multiplication in K[X, Y ]/A, B. Compute the reduced Gr¨

  • bner basis in time ˜

O(n3). (In general, the concise representation is sufficient)

Joris van der Hoeven and Robin Larrieu Reduction for generic bivariate ideals 26 / 27

slide-87
SLIDE 87

Key ingredients Vanilla Gr¨

  • bner bases

Case of the grevlex order Presentation of the setting Concise representation Reduction algorithm

Applications

Concise representation Structure of K[X, Y ]/A, B in time ˜ O(n2). Reduction Quasi-optimal ideal membership test P ∈? A, B. Quasi-optimal multiplication in K[X, Y ]/A, B. Compute the reduced Gr¨

  • bner basis in time ˜

O(n3). (In general, the concise representation is sufficient) Other consequence The resultant of A and B can be computed in O(n2+ε) over Fq. See Fast computation of generic bivariate resultants (van der Hoeven and Lecerf)

Joris van der Hoeven and Robin Larrieu Reduction for generic bivariate ideals 26 / 27

slide-88
SLIDE 88

Conclusion

Vanilla Gr¨

  • bner bases

Assuming sufficient genericity: Can precompute a terse representation (space ˜

O(n2)).

Can reduce in time ˜ O(n2) using this representation. Grevlex order, generators given in total degree Assuming sufficient genericity: Can compute efficiently a concise representation (space ˜

O(n2)).

Can reduce in time ˜ O(n2) using this representation.

Joris van der Hoeven and Robin Larrieu Reduction for generic bivariate ideals 27 / 27

slide-89
SLIDE 89

Conclusion

Vanilla Gr¨

  • bner bases

Assuming sufficient genericity: Can precompute a terse representation (space ˜

O(n2)).

Can reduce in time ˜ O(n2) using this representation. Grevlex order, generators given in total degree Assuming sufficient genericity: Can compute efficiently a concise representation (space ˜

O(n2)).

Can reduce in time ˜ O(n2) using this representation. Generalization: Relax the genericity assumptions ? More than 2 variables ?

Joris van der Hoeven and Robin Larrieu Reduction for generic bivariate ideals 27 / 27

slide-90
SLIDE 90

Conclusion

Vanilla Gr¨

  • bner bases

Assuming sufficient genericity: Can precompute a terse representation (space ˜

O(n2)).

Can reduce in time ˜ O(n2) using this representation. Grevlex order, generators given in total degree Assuming sufficient genericity: Can compute efficiently a concise representation (space ˜

O(n2)).

Can reduce in time ˜ O(n2) using this representation. Generalization: Relax the genericity assumptions ? → seems feasible. More than 2 variables ? → not so clear.

Joris van der Hoeven and Robin Larrieu Reduction for generic bivariate ideals 27 / 27

slide-91
SLIDE 91

Conclusion

Vanilla Gr¨

  • bner bases

Assuming sufficient genericity: Can precompute a terse representation (space ˜

O(n2)).

Can reduce in time ˜ O(n2) using this representation. Grevlex order, generators given in total degree Assuming sufficient genericity: Can compute efficiently a concise representation (space ˜

O(n2)).

Can reduce in time ˜ O(n2) using this representation. Generalization: Relax the genericity assumptions ? → seems feasible. More than 2 variables ? → not so clear. Thank you for your attention

Joris van der Hoeven and Robin Larrieu Reduction for generic bivariate ideals 27 / 27