• Aucun résultat trouvé

Exercises for Chapter 2

N/A
N/A
Protected

Academic year: 2022

Partager "Exercises for Chapter 2"

Copied!
5
0
0

Texte intégral

(1)

Bordeaux 1 University MHT 933 - master 2

Mathematics 2009-2010

Exercises for Chapter 2

Exercise 1– [Minkowski’s Theorem]

1. Explain why, as said in the course, we can suppose that q is k · k2 (the Euclidean form) in the proof of the Corollary to Minkowski’s Theorem (see course).

2. Find a formula forδn the volume of the unit ball of Rn (for the Lebesgue measure).

3. Let (Λ,k · k2) be a lattice of Rn. Show directly (using MT bis) that there exists an x ∈ Λ\ {0} such that max|xi| ≤ d(Λ)1/n and deduce that there exists an x∈Λ\ {0} such that

kxk≤√

n d(Λ)1/n.

4. Compare with the bound 2δn−1/nd(Λ)1/n (Corollary to MT).

Exercise 2– [Minkowski’s Theorem]

Let pbe a prime number >2.

1. Recall why we have

p≡1 mod 4⇐⇒ −1 is a quadratic residue modulo p.

2. Admit from now on that p ≡ 1 mod 4 so that there exists an integer r such that p | r2 + 1. Consider the lattice (Λ,k · k2) where Λ ⊂ R2 is the free Z-module generated by

r 1

and

p 0

. Using an appropriate disk and Minkowski’s Theorem, prove that p is a sum of two squares.

3. Deduce from this that if p is an odd prime number we have p≡1 mod 4⇐⇒p is sum of two squares.

N.B. Proof by Paul Tur`an.

(2)

Exercise 3– [More on primes as sums of squares]

Part 1

1. Let x =a+bi and y = c+di 6= 0 be two Gaussian integers: x, y ∈Z[i]

where i is a square root of −1. Prove that there exists an element q ∈ Z[i]

such that

|x−qy|2 ≤ 1 2|y|2 and show how to compute such a q.

2. Deduce from this an algorithm to compute gcd(u, v)1 where u, v are non zero elements of Z[i].

3. Show that this algorithm has word complexity in O(ne 2) for operands bounded by 2n in modulus2.

4. Let p ≡ 1 mod 4 be a prime. Let m be the smallest positive quadratic non-residue mod p and let us put x = m(p−1)/4 modp. Show that the com- putation of gcd(p, x+i) in Z[i] gives a decomposition of p as a sum of two squares.

5. Prove that this decomposition is essentially unique.

6. Write a deterministic algorithm with inputpand outpout the decomposi- tion ofpas a sum of two squares. Evaluate the complexity of this algorithm3. 7. We have already seen in the previous exercise that Minkowski’s Theorem applied to the free Z-module generated by the columns of

p r 0 1

(wherer2 ≡ −1 mod p) leads to the existence of such a decomposition. Show how the LLL algorithm gives a solution, write another algorithm for the same problem and compare the new complexity to the previous one.

Part 2

From now on, p is a prime such that p≡3 mod 4.

8. Letxbe a quadratic residue modp. Find an easy way to obtain a square root of x modp.

9. Prove that there exist α, β ∈Z such that α22 ≡ −1 modp.

1Our gcd is not unique: we can multiply it by±1 or±i. This gives four possibilities.

Here, we consider any one of those four possibilities to be “the” gcd.

2This naive algorithm can be improved and it is possible to obtain a word complexity in O(n) (A. Weilert 2000) using a divide and conquer approach.e

3You can assume GRH and use Bach’s bound: m2(logp)2.

(3)

10. Show how to find such a pair thanks to the smallest positive quadratic non-residue m.

11. Let Λ⊂R4 be the free Z-module generated by the columns of

p 0 α β 0 p β −α

0 0 1 0

0 0 0 1

 .

Prove that there exists (a, b, c, d)∈Λ such that 0< a2+b2+c2+d2 <2p,

and deduce from this that p can be written as a sum of four squares. Is this decomposition unique?

12. Explain how this result implies that every non negative integer can be written as a sum of four squares (Lagrange 1770).

13. Show how we can obtain, thanks to LLL-algorithm, a decomposition of p as a sum of four squares.

14. Write a deterministic algorithm with inputp and with output a decom- position of p as a sum of four squares.

15. Assuming GRH and Bach’s bound, compute the word complexity of this algorithm.

Exercise 4– [LLL-reduction algorithm]

Let d, N ∈Z>0 and x1, . . . , xd∈Z/NZ. Suppose thatN >2(d+1)/4.

Show that there is a polynomial deterministic algorithm which gives (n1, . . . , nd)6=

(0, . . . ,0) such that

|ni| ≤2d/4N1/(d+1) for every i, and

d

X

i=1

nixi modN ≤2d/4N1/(d+1).

Hint : Consider the lattice (Λ,k · k2) where Λ ⊂Rd+1 is the free Z-module generated by the columns of

B =

N x1 x2 · · · xd 0 1 0 · · · 0

... . .. ... ... ...

... . .. ... 0 0 · · · 0 1

 .

(4)

N.B. Here amodb∈[0, b−1].

Exercise 5–[Proof of the Theorem on the LLL-reduction algo- rithm]

In a first time we want to prove that LLL-algorithm terminates.

1. Let

Λi =hb1, . . . , biiZ

denote the lattice in ΛiZRgenerated by the firstibasis vectors. So Λn= Λ.

Then define

Di = disc(Λi) = Y

j≤i

q(bj),

D=

n−1

Y

i=1

Di =q(b1)n−1. . . q(bn−1).

Show that during each swapDgets replaced by an integer which is less than

3 4D.

2. LetA= maxi≤nq(bi). Show that the number of swaps isO(n2logA) and that the algorithm terminates.

3. Show that the total number of operations isO(n4logA).

Now we want to prove that these operations deal with integers of sizeO(nlogA).

4. Prove that at any point in the algorithm we have Dk−1bk∈Zn

and

Dlµk,`∈Z for all ` < k≤n.

5. Show that at each step

Di ≤Ai

and, thanks to this inequality, that the denominators of rational numbers in the algorithm are bounded by O(nlogA).

6. Show that

i,j|2 ≤Dj−1q(bi).

7. Show that q(bi) ≤ nA everywhere except possibly during the reduction step.

(5)

8. Let

mi = max{|µi,j; 1≤j ≤i}.

Show that at the beginning of the reduction step, we have m2i ≤ nAn and that during the reduction step mi cannot be multiplied by more than 2i−1. 9. Show that during the reduction step we have

q(bi)≤n2(4A)n+1

and prove that the denominators of the numbers occuring in the algorithm all have length O(nlogA).

Exercise 6– [HNF–SNF]

Prove the uniqueness of the HNF and more generally that, if A and B are matrices of Mm×n(Z) and Mm×`(Z) whose columns generate the same sub- module of Zm, the H-parts of their HNF are equal (see course).

Exercise 7– [HNF–SNF]

Let A∈Mn(Z) and (d1, . . . , dn) be the diagonal of its SNF. Then

Zn/Im(A)'

n

M

i=1

(Z/diZ)

Exercise 8– [HNF–SNF]

SolveXA =Y, whereY ∈M`×n(Z),A∈Mm×n(Z), unknownX ∈M`×m(Z).

Hint: Write AU = (0|H).

Exercise 9– [HNF–SNF]

Solve

AX =

y1 modd1 ... ynmoddn

Hint: AX =Y +DZ, D diagonal ⇒(A | −D) X

Z

=Y.

Références

Documents relatifs

Key words: Automated Image Annotation, Statistical Analysis, Key- word Co-occurrence, Semantic Similarity..

One implication of this view is that related subjects can be interpreted as a weak form of identity and from a practical perspective can be used as a starting point for

(1) impossibillty of raising arm or limitaEion of arm movement; (ii) patient supporting arm; (iii) limping; (iv) patient moving about with walking stick; (v)

As said in the introduction of their paper, [24, Algorithm 1] is “a suitable adapta- tion of the half-gcd algorithm”: a call to their algorithm uses polynomial multiplication

2 This naive algorithm can be improved and it is possible to obtain a word complexity in O(n) (A. Weilert 2000) using a divide and conquer approach... Show how the LLL algorithm gives

In classical hitting set algorithms for Model- Based Diagnosis (MBD) that use on-demand con- flict generation, a single conflict is computed whenever needed during tree

These sets are then used to evaluate the control input to apply to the UAVs so as to minimize the estimation uncertainty at the next time step.. Simulations considering several

a less unequal income distribution x can be obtained from an income distribution y by means of a finite sequence of T 2 -transformations, no individual will experiment an increase