Prcision p -adique Journes Nationales du Calcul Formel 2014 - - PowerPoint PPT Presentation

pr cision p adique
SMART_READER_LITE
LIVE PREVIEW

Prcision p -adique Journes Nationales du Calcul Formel 2014 - - PowerPoint PPT Presentation

Prcision p -adique Prcision p -adique Journes Nationales du Calcul Formel 2014 X.Caruso, P.Lairez, D.Roe, T.Vaccon University of Rennes I, TU Berlin, University of Calgary, University of Rennes I 6 novembre 2014 X.Caruso, P.Lairez, D.Roe,


slide-1
SLIDE 1

Précision p-adique

Précision p-adique

Journées Nationales du Calcul Formel 2014 X.Caruso, P.Lairez, D.Roe, T.Vaccon

University of Rennes I, TU Berlin, University of Calgary, University of Rennes I

6 novembre 2014

X.Caruso, P.Lairez, D.Roe, T.Vaccon Précision p-adique

slide-2
SLIDE 2

Précision p-adique Introduction : p-adic computation and precision

Motivation for p-adic algorithm

Why should one work with p-adic numbers ? Going from Fp to Zp and then back to Fp enables more computation ;

X.Caruso, P.Lairez, D.Roe, T.Vaccon Précision p-adique

slide-3
SLIDE 3

Précision p-adique Introduction : p-adic computation and precision

Motivation for p-adic algorithm

Why should one work with p-adic numbers ? Going from Fp to Zp and then back to Fp enables more computation ; Working in Qp instead of Q, one can handle more efficiently the coefficients growth ;

X.Caruso, P.Lairez, D.Roe, T.Vaccon Précision p-adique

slide-4
SLIDE 4

Précision p-adique Introduction : p-adic computation and precision

Motivation for p-adic algorithm

Why should one work with p-adic numbers ? Going from Fp to Zp and then back to Fp enables more computation ; Working in Qp instead of Q, one can handle more efficiently the coefficients growth ; Some questions or algorithms are p-adic by nature.

X.Caruso, P.Lairez, D.Roe, T.Vaccon Précision p-adique

slide-5
SLIDE 5

Précision p-adique Introduction : p-adic computation and precision

Motivation for p-adic algorithm

Why should one work with p-adic numbers ? Going from Fp to Zp and then back to Fp enables more computation ; Working in Qp instead of Q, one can handle more efficiently the coefficients growth ; Some questions or algorithms are p-adic by nature. Some examples of essentially p-adic algorithms Polynomial factorization with Hensel lemma ;

X.Caruso, P.Lairez, D.Roe, T.Vaccon Précision p-adique

slide-6
SLIDE 6

Précision p-adique Introduction : p-adic computation and precision

Motivation for p-adic algorithm

Why should one work with p-adic numbers ? Going from Fp to Zp and then back to Fp enables more computation ; Working in Qp instead of Q, one can handle more efficiently the coefficients growth ; Some questions or algorithms are p-adic by nature. Some examples of essentially p-adic algorithms Polynomial factorization with Hensel lemma ; Kedlaya’s counting-point algorithm on hyperelliptic curves with p-adic cohomology ;

X.Caruso, P.Lairez, D.Roe, T.Vaccon Précision p-adique

slide-7
SLIDE 7

Précision p-adique Introduction : p-adic computation and precision

1 p-adic precision

p-adic algorithms and step-by-step analysis The differential approach Improvements

2 Precision in practice

Linear Differential Equation (cf BGPS) About implementation Lifting method

X.Caruso, P.Lairez, D.Roe, T.Vaccon Précision p-adique

slide-8
SLIDE 8

Précision p-adique p-adic precision p-adic algorithms and step-by-step analysis

Table of contents

1 p-adic precision

p-adic algorithms and step-by-step analysis The differential approach Improvements

2 Precision in practice

Linear Differential Equation (cf BGPS) About implementation Lifting method

X.Caruso, P.Lairez, D.Roe, T.Vaccon Précision p-adique

slide-9
SLIDE 9

Précision p-adique p-adic precision p-adic algorithms and step-by-step analysis

Definition of the precision

Finite-precision p-adics Elements of Qp can be written +∞

i=−l aipi, with ai ∈ 0, p − 1, l ∈ Z

and p a prime number. While working with a computer, we usually only can consider the beginning of this power serie expansion: we only consider elements of the following form d−1

i=l aipi + O(pd) , with l ∈ Z.

X.Caruso, P.Lairez, D.Roe, T.Vaccon Précision p-adique

slide-10
SLIDE 10

Précision p-adique p-adic precision p-adic algorithms and step-by-step analysis

Definition of the precision

Finite-precision p-adics Elements of Qp can be written +∞

i=−l aipi, with ai ∈ 0, p − 1, l ∈ Z

and p a prime number. While working with a computer, we usually only can consider the beginning of this power serie expansion: we only consider elements of the following form d−1

i=l aipi + O(pd) , with l ∈ Z.

X.Caruso, P.Lairez, D.Roe, T.Vaccon Précision p-adique

slide-11
SLIDE 11

Précision p-adique p-adic precision p-adic algorithms and step-by-step analysis

Definition of the precision

Finite-precision p-adics Elements of Qp can be written +∞

i=−l aipi, with ai ∈ 0, p − 1, l ∈ Z

and p a prime number. While working with a computer, we usually only can consider the beginning of this power serie expansion: we only consider elements of the following form d−1

i=l aipi + O(pd) , with l ∈ Z.

Definition The order, or the absolute precision of d−1

i=k aipi + O(pd) is d.

X.Caruso, P.Lairez, D.Roe, T.Vaccon Précision p-adique

slide-12
SLIDE 12

Précision p-adique p-adic precision p-adic algorithms and step-by-step analysis

Definition of the precision

Finite-precision p-adics Elements of Qp can be written +∞

i=−l aipi, with ai ∈ 0, p − 1, l ∈ Z

and p a prime number. While working with a computer, we usually only can consider the beginning of this power serie expansion: we only consider elements of the following form d−1

i=l aipi + O(pd) , with l ∈ Z.

Definition The order, or the absolute precision of d−1

i=k aipi + O(pd) is d.

Example The order of 3 ∗ 7−1 + 4 ∗ 70 + 5 ∗ 71 + 6 ∗ 72 + O(73) is 3.

X.Caruso, P.Lairez, D.Roe, T.Vaccon Précision p-adique

slide-13
SLIDE 13

Précision p-adique p-adic precision p-adic algorithms and step-by-step analysis

p-adic precion vs real precision

The quintessential idea of the step-by-step analysis is the following : Proposition (p-adic errors don’t add) Indeed, (a + O(p k )) + (b + O(p k )) = a + b + O(p k ). That is to say, if a and b are known up to precision O(pk), then so is a + b.

slide-14
SLIDE 14

Précision p-adique p-adic precision p-adic algorithms and step-by-step analysis

p-adic precion vs real precision

The quintessential idea of the step-by-step analysis is the following : Proposition (p-adic errors don’t add) Indeed, (a + O(p k )) + (b + O(p k )) = a + b + O(p k ). That is to say, if a and b are known up to precision O(pk), then so is a + b.

slide-15
SLIDE 15

Précision p-adique p-adic precision p-adic algorithms and step-by-step analysis

p-adic precion vs real precision

The quintessential idea of the step-by-step analysis is the following : Proposition (p-adic errors don’t add) Indeed, (a + O(p k )) + (b + O(p k )) = a + b + O(p k ). That is to say, if a and b are known up to precision O(pk), then so is a + b. Remark It is quite the opposite to when dealing with real numbers, because of Round-off error : (1 + 5 ∗ 10−2) + (2 + 6 ∗ 10−2) = 3 + 1 ∗ 10−1 + 1 ∗ 10−2. That is to say, if a and b are known up to precision 10−n, then a + b is known up to 10(−n +1 ).

X.Caruso, P.Lairez, D.Roe, T.Vaccon Précision p-adique

slide-16
SLIDE 16

Précision p-adique p-adic precision p-adic algorithms and step-by-step analysis

p-adic precion vs real precision

The quintessential idea of the step-by-step analysis is the following : Proposition (p-adic errors don’t add) Indeed, (a + O(p k )) + (b + O(p k )) = a + b + O(p k ). That is to say, if a and b are known up to precision O(pk), then so is a + b. Remark It is quite the opposite to when dealing with real numbers, because of Round-off error : (1 + 5 ∗ 10−2) + (2 + 6 ∗ 10−2) = 3 + 1 ∗ 10−1 + 1 ∗ 10−2. That is to say, if a and b are known up to precision 10−n, then a + b is known up to 10(−n +1 ).

X.Caruso, P.Lairez, D.Roe, T.Vaccon Précision p-adique

slide-17
SLIDE 17

Précision p-adique p-adic precision p-adic algorithms and step-by-step analysis

Precision formulae

Proposition (addition) (x0 + O(pk0)) + (x1 + O(pk1)) = x0 + x1 + O(pmin(k0,k1))

X.Caruso, P.Lairez, D.Roe, T.Vaccon Précision p-adique

slide-18
SLIDE 18

Précision p-adique p-adic precision p-adic algorithms and step-by-step analysis

Precision formulae

Proposition (addition) (x0 + O(pk0)) + (x1 + O(pk1)) = x0 + x1 + O(pmin(k0,k1)) Proposition (multiplication) (x0 + O(pk0)) ∗ (x1 + O(pk1)) = x0 ∗ x1 + O(pmin(k0+vp(x1),k1+vp(x0)))

X.Caruso, P.Lairez, D.Roe, T.Vaccon Précision p-adique

slide-19
SLIDE 19

Précision p-adique p-adic precision p-adic algorithms and step-by-step analysis

Precision formulae

Proposition (addition) (x0 + O(pk0)) + (x1 + O(pk1)) = x0 + x1 + O(pmin(k0,k1)) Proposition (multiplication) (x0 + O(pk0)) ∗ (x1 + O(pk1)) = x0 ∗ x1 + O(pmin(k0+vp(x1),k1+vp(x0))) Proposition (division) xpa + O(pb) ypc + O(pd) = x ∗ y −1pa−c + O(pmin(d+a−2c,b−c)) In particular, 1 pcy + O(pd) = y −1p−c + O(pd−2c)

X.Caruso, P.Lairez, D.Roe, T.Vaccon Précision p-adique

slide-20
SLIDE 20

Précision p-adique p-adic precision p-adic algorithms and step-by-step analysis

Optimality

Step-by-step analysis is not optimal. Let f : Q2

p

→ Q2

p

(x, y) → (x + y, x − y).

slide-21
SLIDE 21

Précision p-adique p-adic precision p-adic algorithms and step-by-step analysis

Optimality

Step-by-step analysis is not optimal. Let f : Q2

p

→ Q2

p

(x, y) → (x + y, x − y). We would like to compute f ◦ f (x, y) with (x, y) = (1 + O(p10) , 1 + O(p)).

slide-22
SLIDE 22

Précision p-adique p-adic precision p-adic algorithms and step-by-step analysis

Optimality

Step-by-step analysis is not optimal. Let f : Q2

p

→ Q2

p

(x, y) → (x + y, x − y). We would like to compute f ◦ f (x, y) with (x, y) = (1 + O(p10) , 1 + O(p)). If we apply f two times, we get : f ◦ f (x, y) = (2 + O(p) , 2 + O(p)).

slide-23
SLIDE 23

Précision p-adique p-adic precision p-adic algorithms and step-by-step analysis

Optimality

Step-by-step analysis is not optimal. Let f : Q2

p

→ Q2

p

(x, y) → (x + y, x − y). We would like to compute f ◦ f (x, y) with (x, y) = (1 + O(p10) , 1 + O(p)). If we apply f two times, we get : f ◦ f (x, y) = (2 + O(p) , 2 + O(p)). If we remark that f ◦ f = 2Id, we get : f ◦ f (x, y) = (2 + O(p10) , 2 + O(p)).

X.Caruso, P.Lairez, D.Roe, T.Vaccon Précision p-adique

slide-24
SLIDE 24

Précision p-adique p-adic precision p-adic algorithms and step-by-step analysis

Optimality

Step-by-step analysis is not optimal. Let f : Q2

p

→ Q2

p

(x, y) → (x + y, x − y). We would like to compute f ◦ f (x, y) with (x, y) = (1 + O(p10) , 1 + O(p)). If we apply f two times, we get : f ◦ f (x, y) = (2 + O(p) , 2 + O(p)). If we remark that f ◦ f = 2Id, we get : f ◦ f (x, y) = (2 + O(p10) , 2 + O(p)).

X.Caruso, P.Lairez, D.Roe, T.Vaccon Précision p-adique

slide-25
SLIDE 25

Précision p-adique p-adic precision The differential approach

Table of contents

1 p-adic precision

p-adic algorithms and step-by-step analysis The differential approach Improvements

2 Precision in practice

Linear Differential Equation (cf BGPS) About implementation Lifting method

X.Caruso, P.Lairez, D.Roe, T.Vaccon Précision p-adique

slide-26
SLIDE 26

Précision p-adique p-adic precision The differential approach

The Main lemma of p-adic differential precision

Lemma Let f : Qn

p → Qm p be a differentiable mapping.

slide-27
SLIDE 27

Précision p-adique p-adic precision The differential approach

The Main lemma of p-adic differential precision

Lemma Let f : Qn

p → Qm p be a differentiable mapping.

Let x ∈ Qn

  • p. We assume that f ′(x) is surjective.
slide-28
SLIDE 28

Précision p-adique p-adic precision The differential approach

The Main lemma of p-adic differential precision

Lemma Let f : Qn

p → Qm p be a differentiable mapping.

Let x ∈ Qn

  • p. We assume that f ′(x) is surjective.

Then for any ball B = B(0, r) small enough, f (x + B) = f (x) + f ′(x) · B.

X.Caruso, P.Lairez, D.Roe, T.Vaccon Précision p-adique

slide-29
SLIDE 29

Précision p-adique p-adic precision The differential approach

The Main lemma of p-adic differential precision

Lemma Let f : Qn

p → Qm p be a differentiable mapping.

Let x ∈ Qn

  • p. We assume that f ′(x) is surjective.

Then for any ball B = B(0, r) small enough, f (x + B) = f (x) + f ′(x) · B.

X.Caruso, P.Lairez, D.Roe, T.Vaccon Précision p-adique

slide-30
SLIDE 30

Précision p-adique p-adic precision The differential approach

Geometrical meaning

Interpretation x B f (x)

X.Caruso, P.Lairez, D.Roe, T.Vaccon Précision p-adique

slide-31
SLIDE 31

Précision p-adique p-adic precision The differential approach

Geometrical meaning

Interpretation x B f (x) f ′(x)

X.Caruso, P.Lairez, D.Roe, T.Vaccon Précision p-adique

slide-32
SLIDE 32

Précision p-adique p-adic precision The differential approach

Geometrical meaning

Interpretation x B f (x) f ′(x) f ′(x) · B

X.Caruso, P.Lairez, D.Roe, T.Vaccon Précision p-adique

slide-33
SLIDE 33

Précision p-adique p-adic precision The differential approach

Geometrical meaning

Interpretation x x + B B f (x) f ′(x) f ′(x) · B

X.Caruso, P.Lairez, D.Roe, T.Vaccon Précision p-adique

slide-34
SLIDE 34

Précision p-adique p-adic precision The differential approach

Geometrical meaning

Interpretation x x + B f B f (x) f ′(x) f ′(x) · B

X.Caruso, P.Lairez, D.Roe, T.Vaccon Précision p-adique

slide-35
SLIDE 35

Précision p-adique p-adic precision The differential approach

Geometrical meaning

Interpretation x x + B f B f (x) f ′(x) f (x) + f ′(x) · B f ′(x) · B

X.Caruso, P.Lairez, D.Roe, T.Vaccon Précision p-adique

slide-36
SLIDE 36

Précision p-adique p-adic precision Improvements

Table of contents

1 p-adic precision

p-adic algorithms and step-by-step analysis The differential approach Improvements

2 Precision in practice

Linear Differential Equation (cf BGPS) About implementation Lifting method

X.Caruso, P.Lairez, D.Roe, T.Vaccon Précision p-adique

slide-37
SLIDE 37

Précision p-adique p-adic precision Improvements

Lattices

X.Caruso, P.Lairez, D.Roe, T.Vaccon Précision p-adique

slide-38
SLIDE 38

Précision p-adique p-adic precision Improvements

Lattices

Lemma Let f : Qn

p → Qm p be a differentiable mapping.

Let x ∈ Qn

  • p. We assume that f ′(x) is surjective.

Then for any ball B = B(0, r) small enough, f (x + B) = f (x) + f ′(x) · B.

X.Caruso, P.Lairez, D.Roe, T.Vaccon Précision p-adique

slide-39
SLIDE 39

Précision p-adique p-adic precision Improvements

Lattices

Lemma Let f : Qn

p → Qm p be a differentiable mapping.

Let x ∈ Qn

  • p. We assume that f ′(x) is surjective.

Then for any ball B = B(0, r) small enough, for any open lattice H ⊂ B f (x + H) = f (x) + f ′(x) · H.

X.Caruso, P.Lairez, D.Roe, T.Vaccon Précision p-adique

slide-40
SLIDE 40

Précision p-adique p-adic precision Improvements

Lattices

Lemma Let f : Qn

p → Qm p be a differentiable mapping.

Let x ∈ Qn

  • p. We assume that f ′(x) is surjective.

Then for any ball B = B(0, r) small enough, for any open lattice H ⊂ B f (x + H) = f (x) + f ′(x) · H. Remark This allows more models of precision, like (x, y) = (1 + O(p10), 1 + O(p)).

X.Caruso, P.Lairez, D.Roe, T.Vaccon Précision p-adique

slide-41
SLIDE 41

Précision p-adique p-adic precision Improvements

Lattices

Lemma Let f : Qn

p → Qm p be a differentiable mapping.

Let x ∈ Qn

  • p. We assume that f ′(x) is surjective.

Then for any ball B = B(0, r) small enough, for any open lattice H ⊂ B f (x + H) = f (x) + f ′(x) · H. Remark This allows more models of precision, like (x, y) = (1 + O(p10), 1 + O(p)). Remark Our framework can be extended to (complete) ultrametric K-vector spaces (e.g. Fp((X))n, Q((X))m).

X.Caruso, P.Lairez, D.Roe, T.Vaccon Précision p-adique

slide-42
SLIDE 42

Précision p-adique p-adic precision Improvements

Higher differentials

X.Caruso, P.Lairez, D.Roe, T.Vaccon Précision p-adique

slide-43
SLIDE 43

Précision p-adique p-adic precision Improvements

Higher differentials

What is small enough ? How can we determine when the lemma applies ?

X.Caruso, P.Lairez, D.Roe, T.Vaccon Précision p-adique

slide-44
SLIDE 44

Précision p-adique p-adic precision Improvements

Higher differentials

What is small enough ? How can we determine when the lemma applies ? When f is locally analytic, it essentially corresponds to

+∞

  • k=2

1 k!f (k)(x) · Hk ⊂ f ′(x) · H.

X.Caruso, P.Lairez, D.Roe, T.Vaccon Précision p-adique

slide-45
SLIDE 45

Précision p-adique p-adic precision Improvements

Higher differentials

What is small enough ? How can we determine when the lemma applies ? When f is locally analytic, it essentially corresponds to

+∞

  • k=2

1 k!f (k)(x) · Hk ⊂ f ′(x) · H. This can be determined with Newton-polygon techniques.

X.Caruso, P.Lairez, D.Roe, T.Vaccon Précision p-adique

slide-46
SLIDE 46

Précision p-adique p-adic precision Improvements

Some differentiable operations

Some more examples We can apply our method to:

X.Caruso, P.Lairez, D.Roe, T.Vaccon Précision p-adique

slide-47
SLIDE 47

Précision p-adique p-adic precision Improvements

Some differentiable operations

Some more examples We can apply our method to: On matrices: determinant, characteristic polynomial, LU factorization...

X.Caruso, P.Lairez, D.Roe, T.Vaccon Précision p-adique

slide-48
SLIDE 48

Précision p-adique p-adic precision Improvements

Some differentiable operations

Some more examples We can apply our method to: On matrices: determinant, characteristic polynomial, LU factorization... On Qp[X] : evaluation, interpolation, GCD, factorization...

X.Caruso, P.Lairez, D.Roe, T.Vaccon Précision p-adique

slide-49
SLIDE 49

Précision p-adique p-adic precision Improvements

Some differentiable operations

Some more examples We can apply our method to: On matrices: determinant, characteristic polynomial, LU factorization... On Qp[X] : evaluation, interpolation, GCD, factorization... On Qp[X1, . . . , Xn] : division, Gröbner bases.

X.Caruso, P.Lairez, D.Roe, T.Vaccon Précision p-adique

slide-50
SLIDE 50

Précision p-adique p-adic precision Improvements

Some differentiable operations

Some more examples We can apply our method to: On matrices: determinant, characteristic polynomial, LU factorization... On Qp[X] : evaluation, interpolation, GCD, factorization... On Qp[X1, . . . , Xn] : division, Gröbner bases.

X.Caruso, P.Lairez, D.Roe, T.Vaccon Précision p-adique

slide-51
SLIDE 51

Précision p-adique Precision in practice Linear Differential Equation (cf BGPS)

Table of contents

1 p-adic precision

p-adic algorithms and step-by-step analysis The differential approach Improvements

2 Precision in practice

Linear Differential Equation (cf BGPS) About implementation Lifting method

X.Caruso, P.Lairez, D.Roe, T.Vaccon Précision p-adique

slide-52
SLIDE 52

Précision p-adique Precision in practice Linear Differential Equation (cf BGPS)

Newton series

Definition Let P ∈ k[X], P =

i(X − αi) (over k). The Newton series of P is

fP =

  • n

(

  • i

αn

i )tn = −(P∗)′

P∗ , with P∗ the reciprocal polynomial of P.

X.Caruso, P.Lairez, D.Roe, T.Vaccon Précision p-adique

slide-53
SLIDE 53

Précision p-adique Precision in practice Linear Differential Equation (cf BGPS)

Newton series

Definition Let P ∈ k[X], P =

i(X − αi) (over k). The Newton series of P is

fP =

  • n

(

  • i

αn

i )tn = −(P∗)′

P∗ , with P∗ the reciprocal polynomial of P. Remark When char(k) = 0, by Newton’s identities, we can recover P from fP.

X.Caruso, P.Lairez, D.Roe, T.Vaccon Précision p-adique

slide-54
SLIDE 54

Précision p-adique Precision in practice Linear Differential Equation (cf BGPS)

Computation over Newton series

Proposition Let P × Q =

i(X − αi) j(X − βj) and P ⊗ Q = i,j(X − αiβj).

X.Caruso, P.Lairez, D.Roe, T.Vaccon Précision p-adique

slide-55
SLIDE 55

Précision p-adique Precision in practice Linear Differential Equation (cf BGPS)

Computation over Newton series

Proposition Let P × Q =

i(X − αi) j(X − βj) and P ⊗ Q = i,j(X − αiβj).

Then fP×Q = fP + fQ

X.Caruso, P.Lairez, D.Roe, T.Vaccon Précision p-adique

slide-56
SLIDE 56

Précision p-adique Precision in practice Linear Differential Equation (cf BGPS)

Computation over Newton series

Proposition Let P × Q =

i(X − αi) j(X − βj) and P ⊗ Q = i,j(X − αiβj).

Then fP×Q = fP + fQ and fP⊗Q is obtained by the product coefficient by coefficient of fP and fQ.

X.Caruso, P.Lairez, D.Roe, T.Vaccon Précision p-adique

slide-57
SLIDE 57

Précision p-adique Precision in practice Linear Differential Equation (cf BGPS)

Computation over Newton series

Proposition Let P × Q =

i(X − αi) j(X − βj) and P ⊗ Q = i,j(X − αiβj).

Then fP×Q = fP + fQ and fP⊗Q is obtained by the product coefficient by coefficient of fP and fQ. Remark How to do that on Z/pZ ?

X.Caruso, P.Lairez, D.Roe, T.Vaccon Précision p-adique

slide-58
SLIDE 58

Précision p-adique Precision in practice Linear Differential Equation (cf BGPS)

Computation over Newton series

Proposition Let P × Q =

i(X − αi) j(X − βj) and P ⊗ Q = i,j(X − αiβj).

Then fP×Q = fP + fQ and fP⊗Q is obtained by the product coefficient by coefficient of fP and fQ. Remark How to do that on Z/pZ ? We can lift Z/pZ to Zp, and reduce mod p afterwards.

X.Caruso, P.Lairez, D.Roe, T.Vaccon Précision p-adique

slide-59
SLIDE 59

Précision p-adique Precision in practice Linear Differential Equation (cf BGPS)

Idea of the algorithm

Proposition (How to recover P with fP) We notice that (P∗)′ = −fP ∗ P∗,

X.Caruso, P.Lairez, D.Roe, T.Vaccon Précision p-adique

slide-60
SLIDE 60

Précision p-adique Precision in practice Linear Differential Equation (cf BGPS)

Idea of the algorithm

Proposition (How to recover P with fP) We notice that (P∗)′ = −fP ∗ P∗, Therefore y ′ = a(x) ∗ y, with a(x) = −fP and y = P∗.

X.Caruso, P.Lairez, D.Roe, T.Vaccon Précision p-adique

slide-61
SLIDE 61

Précision p-adique Precision in practice Linear Differential Equation (cf BGPS)

Idea of the algorithm

Proposition (How to recover P with fP) We notice that (P∗)′ = −fP ∗ P∗, Therefore y ′ = a(x) ∗ y, with a(x) = −fP and y = P∗. Thus, we can recover P with fP by solving a linear differential equation (in Zp[[x]]).

X.Caruso, P.Lairez, D.Roe, T.Vaccon Précision p-adique

slide-62
SLIDE 62

Précision p-adique Precision in practice Linear Differential Equation (cf BGPS)

Computation of the differential

Theorem The loss in precision to recover the n-th coefficient of P with fP is in O( logp(n) ).

X.Caruso, P.Lairez, D.Roe, T.Vaccon Précision p-adique

slide-63
SLIDE 63

Précision p-adique Precision in practice Linear Differential Equation (cf BGPS)

Computation of the differential

Theorem The loss in precision to recover the n-th coefficient of P with fP is in O( logp(n) ). Proof. We differentiate the mapping sending a to the solution of y ′ = a(t)y. y0 corresponds to P∗, and a to −fP, in Zp[[x]]

X.Caruso, P.Lairez, D.Roe, T.Vaccon Précision p-adique

slide-64
SLIDE 64

Précision p-adique Precision in practice Linear Differential Equation (cf BGPS)

Computation of the differential

Theorem The loss in precision to recover the n-th coefficient of P with fP is in O( logp(n) ). Proof. We differentiate the mapping sending a to the solution of y ′ = a(t)y. (y0 + δy)′ = (a + δa)(y0 + δy)

X.Caruso, P.Lairez, D.Roe, T.Vaccon Précision p-adique

slide-65
SLIDE 65

Précision p-adique Precision in practice Linear Differential Equation (cf BGPS)

Computation of the differential

Theorem The loss in precision to recover the n-th coefficient of P with fP is in O( logp(n) ). Proof. We differentiate the mapping sending a to the solution of y ′ = a(t)y. (y0 + δy)′ = (a + δa)(y0 + δy) (δy)′ = aδy + y0δa

X.Caruso, P.Lairez, D.Roe, T.Vaccon Précision p-adique

slide-66
SLIDE 66

Précision p-adique Precision in practice Linear Differential Equation (cf BGPS)

Computation of the differential

Theorem The loss in precision to recover the n-th coefficient of P with fP is in O( logp(n) ). Proof. We differentiate the mapping sending a to the solution of y ′ = a(t)y. (δy)′ = aδy + y0δa

X.Caruso, P.Lairez, D.Roe, T.Vaccon Précision p-adique

slide-67
SLIDE 67

Précision p-adique Precision in practice Linear Differential Equation (cf BGPS)

Computation of the differential

Theorem The loss in precision to recover the n-th coefficient of P with fP is in O( logp(n) ). Proof. We differentiate the mapping sending a to the solution of y ′ = a(t)y. (δy)′ = aδy + y0δa By variation of parameters, δy = y0

  • y −1

× y0δadt.

X.Caruso, P.Lairez, D.Roe, T.Vaccon Précision p-adique

slide-68
SLIDE 68

Précision p-adique Precision in practice Linear Differential Equation (cf BGPS)

Computation of the differential

Theorem The loss in precision to recover the n-th coefficient of P with fP is in O( logp(n) ). Proof. By variation of parameters, δy = y0

  • y −1

× y0δadt.

X.Caruso, P.Lairez, D.Roe, T.Vaccon Précision p-adique

slide-69
SLIDE 69

Précision p-adique Precision in practice Linear Differential Equation (cf BGPS)

Computation of the differential

Theorem The loss in precision to recover the n-th coefficient of P with fP is in O( logp(n) ). Proof. By variation of parameters, δy = y0

  • y −1

× y0δadt. δy = y0

  • δadt.

X.Caruso, P.Lairez, D.Roe, T.Vaccon Précision p-adique

slide-70
SLIDE 70

Précision p-adique Precision in practice Linear Differential Equation (cf BGPS)

Computation of the differential

Theorem The loss in precision to recover the n-th coefficient of P with fP is in O( logp(n) ). Proof. δy = y0

  • δadt.

X.Caruso, P.Lairez, D.Roe, T.Vaccon Précision p-adique

slide-71
SLIDE 71

Précision p-adique Precision in practice Linear Differential Equation (cf BGPS)

Computation of the differential

Theorem The loss in precision to recover the n-th coefficient of P with fP is in O( logp(n) ). Proof. δy = y0

  • δadt.

Since

i aixi = i ai xi+1 i+1 , it yields a logarithmic loss in precision.

X.Caruso, P.Lairez, D.Roe, T.Vaccon Précision p-adique

slide-72
SLIDE 72

Précision p-adique Precision in practice Linear Differential Equation (cf BGPS)

Computation of the differential

Theorem The loss in precision to recover the n-th coefficient of P with fP is in O( logp(n) ). Proof. δy = y0

  • δadt.

In other words, if δa = O(pk), i.e. δa =

i ui pk ti, then

δy =

i vi pk i+1 ti.

X.Caruso, P.Lairez, D.Roe, T.Vaccon Précision p-adique

slide-73
SLIDE 73

Précision p-adique Precision in practice Linear Differential Equation (cf BGPS)

Computation of the differential

Theorem The loss in precision to recover the n-th coefficient of P with fP is in O( logp(n) ). Proof. δy = y0

  • δadt.

In other words, if δa = O(pk), i.e. δa =

i ui pk ti, then

δy =

i vi pk i+1 ti.

X.Caruso, P.Lairez, D.Roe, T.Vaccon Précision p-adique

slide-74
SLIDE 74

Précision p-adique Precision in practice Linear Differential Equation (cf BGPS)

Newton polygons technique

Newton and Legendre

X.Caruso, P.Lairez, D.Roe, T.Vaccon Précision p-adique

slide-75
SLIDE 75

Précision p-adique Precision in practice Linear Differential Equation (cf BGPS)

Newton polygons technique

Newton and Legendre Newton polygon of f≥2, convex lower-bound of (n, fn)n≥2

log

  • rder

2 −2m k −km

X.Caruso, P.Lairez, D.Roe, T.Vaccon Précision p-adique

slide-76
SLIDE 76

Précision p-adique Precision in practice Linear Differential Equation (cf BGPS)

Newton polygons technique

Newton and Legendre NP(f≥2)∗ −m log ε y = 2x + 2m log ε − 2m −2m + 2 log ε

X.Caruso, P.Lairez, D.Roe, T.Vaccon Précision p-adique

slide-77
SLIDE 77

Précision p-adique Precision in practice Linear Differential Equation (cf BGPS)

Newton polygons technique

Newton and Legendre NP(f≥2)∗ −m log ε y = 2x + 2m y = x + log ε log ε − 2m −2m + 2 log ε

X.Caruso, P.Lairez, D.Roe, T.Vaccon Précision p-adique

slide-78
SLIDE 78

Précision p-adique Precision in practice Linear Differential Equation (cf BGPS)

Newton polygons technique

Newton and Legendre NP(f≥2)∗ −m log ε y = 2x + 2m y = x + log ε log ε − 2m −2m + 2 log ε

X.Caruso, P.Lairez, D.Roe, T.Vaccon Précision p-adique

slide-79
SLIDE 79

Précision p-adique Precision in practice About implementation

Table of contents

1 p-adic precision

p-adic algorithms and step-by-step analysis The differential approach Improvements

2 Precision in practice

Linear Differential Equation (cf BGPS) About implementation Lifting method

X.Caruso, P.Lairez, D.Roe, T.Vaccon Précision p-adique

slide-80
SLIDE 80

Précision p-adique Precision in practice About implementation

Newton scheme

Proposition One can compute y0 through some Newton scheme : ul+1 ← ul + u′

l

a

  • (a × ul − u′

l) a

u′

l

+ O(x2l+1+1).

X.Caruso, P.Lairez, D.Roe, T.Vaccon Précision p-adique

slide-81
SLIDE 81

Précision p-adique Precision in practice About implementation

Newton scheme

Proposition One can compute y0 through some Newton scheme : ul+1 ← ul + u′

l

a

  • (a × ul − u′

l) a

u′

l

+ O(x2l+1+1). Remark

  • O(pN)xk = O(pN)

k + 1 xk+1.

X.Caruso, P.Lairez, D.Roe, T.Vaccon Précision p-adique

slide-82
SLIDE 82

Précision p-adique Precision in practice About implementation

Newton scheme

Proposition One can compute y0 through some Newton scheme : ul+1 ← ul + u′

l

a

  • (a × ul − u′

l) a

u′

l

+ O(x2l+1+1). Remark

  • O(pN)xk = O(pN)

k + 1 xk+1. One lose E(logp(2l)) at each step. There are E(log2(2N)) steps to reach x2N, it means a naïve loss in precision to compute the coefficient of x2N in

  • (log 2N)2

.

X.Caruso, P.Lairez, D.Roe, T.Vaccon Précision p-adique

slide-83
SLIDE 83

Précision p-adique Precision in practice About implementation

What happens in practice ?

Figure: Precision over the output

X.Caruso, P.Lairez, D.Roe, T.Vaccon Précision p-adique

slide-84
SLIDE 84

Précision p-adique Precision in practice About implementation

What happens in practice ?

Figure: Precision over the output

X.Caruso, P.Lairez, D.Roe, T.Vaccon Précision p-adique

slide-85
SLIDE 85

Précision p-adique Precision in practice About implementation

What happens in practice ?

Figure: Precision over the output

X.Caruso, P.Lairez, D.Roe, T.Vaccon Précision p-adique

slide-86
SLIDE 86

Précision p-adique Precision in practice About implementation

What happens in practice ?

Figure: Precision over the output

X.Caruso, P.Lairez, D.Roe, T.Vaccon Précision p-adique

slide-87
SLIDE 87

Précision p-adique Precision in practice Lifting method

Table of contents

1 p-adic precision

p-adic algorithms and step-by-step analysis The differential approach Improvements

2 Precision in practice

Linear Differential Equation (cf BGPS) About implementation Lifting method

X.Caruso, P.Lairez, D.Roe, T.Vaccon Précision p-adique

slide-88
SLIDE 88

Précision p-adique Precision in practice Lifting method

More on the differential method

Differential tracking of precision x B x + O(pN)

X.Caruso, P.Lairez, D.Roe, T.Vaccon Précision p-adique

slide-89
SLIDE 89

Précision p-adique Precision in practice Lifting method

More on the differential method

Differential tracking of precision x B f ′(x) x + O(pN)

X.Caruso, P.Lairez, D.Roe, T.Vaccon Précision p-adique

slide-90
SLIDE 90

Précision p-adique Precision in practice Lifting method

More on the differential method

Differential tracking of precision x B f ′(x) f ′(x) · B x + O(pN)

X.Caruso, P.Lairez, D.Roe, T.Vaccon Précision p-adique

slide-91
SLIDE 91

Précision p-adique Precision in practice Lifting method

More on the differential method

Differential tracking of precision x x + B B f ′(x) f ′(x) · B x + O(pN) ? + O(pN)

X.Caruso, P.Lairez, D.Roe, T.Vaccon Précision p-adique

slide-92
SLIDE 92

Précision p-adique Precision in practice Lifting method

More on the differential method

Differential tracking of precision x x + B f B f ′(x) f ′(x) · B x + O(pN) ? + O(pN)

X.Caruso, P.Lairez, D.Roe, T.Vaccon Précision p-adique

slide-93
SLIDE 93

Précision p-adique Precision in practice Lifting method

More on the differential method

Differential tracking of precision x x + B f B f ′(x) f (x) ? f ′(x) · B x + O(pN) ? + O(pN)

X.Caruso, P.Lairez, D.Roe, T.Vaccon Précision p-adique

slide-94
SLIDE 94

Précision p-adique Precision in practice Lifting method

More on the differential method

Differential tracking of precision x x + B f B f ′(x) f ′(x) · B

  • f

x + O(pN)

  • f (x) + O(pM)

X.Caruso, P.Lairez, D.Roe, T.Vaccon Précision p-adique

slide-95
SLIDE 95

Précision p-adique Precision in practice Lifting method

More on the differential method

Differential tracking of precision x x + B f B f ′(x) f ′(x) · B

  • f

x + O(pN)

  • f (x) + O(pM)

X.Caruso, P.Lairez, D.Roe, T.Vaccon Précision p-adique

slide-96
SLIDE 96

Précision p-adique Precision in practice Lifting method

More on the differential method

Differential tracking of precision x x + B f B f ′(x) f ′(x) · B

  • f

x + O(pN+N′)

X.Caruso, P.Lairez, D.Roe, T.Vaccon Précision p-adique

slide-97
SLIDE 97

Précision p-adique Precision in practice Lifting method

More on the differential method

Differential tracking of precision x x + B f B f ′(x) f ′(x) · B

  • f

x + O(pN+N′) y + O(pM′)

X.Caruso, P.Lairez, D.Roe, T.Vaccon Précision p-adique

slide-98
SLIDE 98

Précision p-adique Precision in practice Lifting method

More on the differential method

Differential tracking of precision x x + B f B f ′(x) f ′(x) · B

  • f

x + O(pN+N′) y + O(pM′) ⊂ f (x) + O(pN)

X.Caruso, P.Lairez, D.Roe, T.Vaccon Précision p-adique

slide-99
SLIDE 99

Précision p-adique Precision in practice Lifting method

More on the differential method

Differential tracking of precision x x + B f B f ′(x) f (x) + f ′(x) · B f ′(x) · B

  • f

x + O(pN+N′) y + O(pM′) ⊂ f (x) + O(pN)

X.Caruso, P.Lairez, D.Roe, T.Vaccon Précision p-adique

slide-100
SLIDE 100

Précision p-adique Precision in practice Lifting method

Buffer method

Proposition One can use the following Newton scheme with lift: Lift ul to O(pN+m), a + O(x2l) ← ul × u′−1

l

+ O(pN+m, x2l). ul+1 ← ul + u′

l

a

  • (a × ul − u′

l) a u′

l + O(x2l+1+1). X.Caruso, P.Lairez, D.Roe, T.Vaccon Précision p-adique

slide-101
SLIDE 101

Précision p-adique Precision in practice Lifting method

Numerical experiments

Figure: Precision over the output

X.Caruso, P.Lairez, D.Roe, T.Vaccon Précision p-adique

slide-102
SLIDE 102

Précision p-adique Precision in practice Lifting method

Numerical experiments

Figure: Precision over the output

X.Caruso, P.Lairez, D.Roe, T.Vaccon Précision p-adique

slide-103
SLIDE 103

Précision p-adique Precision in practice Lifting method

Numerical experiments

Figure: Precision over the output

X.Caruso, P.Lairez, D.Roe, T.Vaccon Précision p-adique

slide-104
SLIDE 104

Précision p-adique Precision in practice Lifting method

Numerical experiments

Figure: Precision over the output

X.Caruso, P.Lairez, D.Roe, T.Vaccon Précision p-adique

slide-105
SLIDE 105

Précision p-adique Precision in practice Lifting method

Comparison of the methods

Figure: Naïve versus liftings

X.Caruso, P.Lairez, D.Roe, T.Vaccon Précision p-adique

slide-106
SLIDE 106

Précision p-adique Precision in practice Lifting method

More differential equations

Generalization This approach can be generalized to:

X.Caruso, P.Lairez, D.Roe, T.Vaccon Précision p-adique

slide-107
SLIDE 107

Précision p-adique Precision in practice Lifting method

More differential equations

Generalization This approach can be generalized to: Differential equation with separation of variables : y ′ = g(x) × h(y(x)).

X.Caruso, P.Lairez, D.Roe, T.Vaccon Précision p-adique

slide-108
SLIDE 108

Précision p-adique Precision in practice Lifting method

More differential equations

Generalization This approach can be generalized to: Differential equation with separation of variables : y ′ = g(x) × h(y(x)). Differential equations to compute normalized isogenies between elliptic curves : y ′2 = g(x) × h(y(x)). Cf Lercier, Sirvent On elkies subgroups of l-torsion points in elliptic curves defined over a finite field.

X.Caruso, P.Lairez, D.Roe, T.Vaccon Précision p-adique

slide-109
SLIDE 109

Précision p-adique Conclusion

To sum up

On p-adic precision

X.Caruso, P.Lairez, D.Roe, T.Vaccon Précision p-adique

slide-110
SLIDE 110

Précision p-adique Conclusion

To sum up

On p-adic precision Step-by-step analysis : as a first step. Can show differentiability and naïve loss in precision during the computation.

X.Caruso, P.Lairez, D.Roe, T.Vaccon Précision p-adique

slide-111
SLIDE 111

Précision p-adique Conclusion

To sum up

On p-adic precision Step-by-step analysis : as a first step. Can show differentiability and naïve loss in precision during the computation. Differential calculus : intrinsic and can handle both gain and loss.

X.Caruso, P.Lairez, D.Roe, T.Vaccon Précision p-adique

slide-112
SLIDE 112

Précision p-adique Conclusion

To sum up

On p-adic precision Step-by-step analysis : as a first step. Can show differentiability and naïve loss in precision during the computation. Differential calculus : intrinsic and can handle both gain and loss. Can stabilize and attain optimal precision, even though naïve computation lose too much precision.

X.Caruso, P.Lairez, D.Roe, T.Vaccon Précision p-adique

slide-113
SLIDE 113

Précision p-adique Conclusion

To sum up

On p-adic precision Step-by-step analysis : as a first step. Can show differentiability and naïve loss in precision during the computation. Differential calculus : intrinsic and can handle both gain and loss. Can stabilize and attain optimal precision, even though naïve computation lose too much precision. Future works

X.Caruso, P.Lairez, D.Roe, T.Vaccon Précision p-adique

slide-114
SLIDE 114

Précision p-adique Conclusion

To sum up

On p-adic precision Step-by-step analysis : as a first step. Can show differentiability and naïve loss in precision during the computation. Differential calculus : intrinsic and can handle both gain and loss. Can stabilize and attain optimal precision, even though naïve computation lose too much precision. Future works Implement automatic computation of differentials, within the computation.

X.Caruso, P.Lairez, D.Roe, T.Vaccon Précision p-adique

slide-115
SLIDE 115

Précision p-adique Conclusion

To sum up

On p-adic precision Step-by-step analysis : as a first step. Can show differentiability and naïve loss in precision during the computation. Differential calculus : intrinsic and can handle both gain and loss. Can stabilize and attain optimal precision, even though naïve computation lose too much precision. Future works Implement automatic computation of differentials, within the computation. Analysis of the constants for classical operations (Work in progress).

X.Caruso, P.Lairez, D.Roe, T.Vaccon Précision p-adique

slide-116
SLIDE 116

Précision p-adique Conclusion

To sum up

On p-adic precision Step-by-step analysis : as a first step. Can show differentiability and naïve loss in precision during the computation. Differential calculus : intrinsic and can handle both gain and loss. Can stabilize and attain optimal precision, even though naïve computation lose too much precision. Future works Implement automatic computation of differentials, within the computation. Analysis of the constants for classical operations (Work in progress). More on differential equations.

X.Caruso, P.Lairez, D.Roe, T.Vaccon Précision p-adique

slide-117
SLIDE 117

Précision p-adique References

References

Over real precision G.H.Golub, C.F.Van Loan Matrix Computation (John Hopkins University Press). Over p-adic analysis P.Schneider p-adic Lie groups. (Springer). Over these p-adic differential equations Bostan, González-Vega, Perdry, Schost From Newton sums to coefficients: complexity issues in characteristic p. (MEGA 05). Over p-adic precision X.Caruso, D.Roe, T.Vaccon Tracking p-adic precision, ANTS XI.

X.Caruso, P.Lairez, D.Roe, T.Vaccon Précision p-adique