LLL-reducing in quasi-linear time Damien Stehl e Joint work with - - PowerPoint PPT Presentation

lll reducing in quasi linear time
SMART_READER_LITE
LIVE PREVIEW

LLL-reducing in quasi-linear time Damien Stehl e Joint work with - - PowerPoint PPT Presentation

L 1 e Introduction Wishful thinking Deforming Truncating LLL-reducing in quasi-linear time Damien Stehl e Joint work with A. Novocin & G. Villard LIP CNRS/ENSL/INRIA/UCBL/U. Lyon Rocquencourt, April 2011 Damien Stehl e


slide-1
SLIDE 1

Introduction Wishful thinking Deforming Truncating e L1

LLL-reducing in quasi-linear time

Damien Stehl´ e Joint work with A. Novocin & G. Villard

LIP – CNRS/ENSL/INRIA/UCBL/U. Lyon

Rocquencourt, April 2011

Damien Stehl´ e LLL-reducing in quasi-linear time 11/04/2011 1/36

slide-2
SLIDE 2

Introduction Wishful thinking Deforming Truncating e L1

Euclidean lattices

Lattice ≡ discrete subgroup of Rn ≡ {

i≤n xibi : xi ∈ Z}

If the bi’s are linearly independent, they are called a basis. Bases are not unique, but they can be obtained from each other by integer transforms of determinant ±1: −2 1 10 6

  • =

4 −3 2 4

  • ·

1 1 2 1

  • .

Damien Stehl´ e LLL-reducing in quasi-linear time 11/04/2011 2/36

slide-3
SLIDE 3

Introduction Wishful thinking Deforming Truncating e L1

Euclidean lattices

Lattice ≡ discrete subgroup of Rn ≡ {

i≤n xibi : xi ∈ Z}

If the bi’s are linearly independent, they are called a basis. Bases are not unique, but they can be obtained from each other by integer transforms of determinant ±1: −2 1 10 6

  • =

4 −3 2 4

  • ·

1 1 2 1

  • .

Damien Stehl´ e LLL-reducing in quasi-linear time 11/04/2011 2/36

slide-4
SLIDE 4

Introduction Wishful thinking Deforming Truncating e L1

Euclidean lattices

Lattice ≡ discrete subgroup of Rn ≡ {

i≤n xibi : xi ∈ Z}

If the bi’s are linearly independent, they are called a basis. Bases are not unique, but they can be obtained from each other by integer transforms of determinant ±1: −2 1 10 6

  • =

4 −3 2 4

  • ·

1 1 2 1

  • .

Damien Stehl´ e LLL-reducing in quasi-linear time 11/04/2011 2/36

slide-5
SLIDE 5

Introduction Wishful thinking Deforming Truncating e L1

Lattice reduction: a representation paradigm

Lattice reduction: Start from an arbitrary basis, and improve the norms/orthogonality of its vectors. What for? Shorter vectors ⇒ less space. Reduced bases provide intrinsic information about the lattice. Reduced bases are easier to compute with. Lattice reduction as a matrix problem: Given B ∈ Rn×n full-rank, find U ∈ GLn(Z) s.t. BU small and/or with a “nice” QR-factor R.

Damien Stehl´ e LLL-reducing in quasi-linear time 11/04/2011 3/36

slide-6
SLIDE 6

Introduction Wishful thinking Deforming Truncating e L1

Lattice reduction: a representation paradigm

Lattice reduction: Start from an arbitrary basis, and improve the norms/orthogonality of its vectors. What for? Shorter vectors ⇒ less space. Reduced bases provide intrinsic information about the lattice. Reduced bases are easier to compute with. Lattice reduction as a matrix problem: Given B ∈ Rn×n full-rank, find U ∈ GLn(Z) s.t. BU small and/or with a “nice” QR-factor R.

Damien Stehl´ e LLL-reducing in quasi-linear time 11/04/2011 3/36

slide-7
SLIDE 7

Introduction Wishful thinking Deforming Truncating e L1

Lattice reduction: a representation paradigm

Lattice reduction: Start from an arbitrary basis, and improve the norms/orthogonality of its vectors. What for? Shorter vectors ⇒ less space. Reduced bases provide intrinsic information about the lattice. Reduced bases are easier to compute with. Lattice reduction as a matrix problem: Given B ∈ Rn×n full-rank, find U ∈ GLn(Z) s.t. BU small and/or with a “nice” QR-factor R.

Damien Stehl´ e LLL-reducing in quasi-linear time 11/04/2011 3/36

slide-8
SLIDE 8

Introduction Wishful thinking Deforming Truncating e L1

Why do we care about lattices?

Computer algebra: factorisation of rational polynomials. Cryptography: cryptanalyses of variants of RSA. Communications theory: MIMO, GPS, error correcting codes. Combinatorial optimisation, algorithmic group theory, algorithmic number theory, computer arithmetic, etc.

Damien Stehl´ e LLL-reducing in quasi-linear time 11/04/2011 4/36

slide-9
SLIDE 9

Introduction Wishful thinking Deforming Truncating e L1

Why do we care about lattices?

Computer algebra: factorisation of rational polynomials. Cryptography: cryptanalyses of variants of RSA. Communications theory: MIMO, GPS, error correcting codes. Combinatorial optimisation, algorithmic group theory, algorithmic number theory, computer arithmetic, etc. Lattices tend to pop out every time one wants to use linear algebra but is restricted to discrete transformations.

Damien Stehl´ e LLL-reducing in quasi-linear time 11/04/2011 4/36

slide-10
SLIDE 10

Introduction Wishful thinking Deforming Truncating e L1

The LLL reduction [Lenstra-Lenstra-Lov´ asz’82]

Let δ ∈ (1/4, 1). A basis B = (bi)i≤n ∈ Rn×n with QR-factorisation B = QR is said LLL-reduced if: ∀i, j : |ri,j| ≤ ri,i/2 [size-reduction] ∀i : δ · r2

i,i ≤ r2 i,i+1 + r2 i+1,i+1

[Lov´ asz’ condition].

Damien Stehl´ e LLL-reducing in quasi-linear time 11/04/2011 5/36

slide-11
SLIDE 11

Introduction Wishful thinking Deforming Truncating e L1

The LLL reduction [Lenstra-Lenstra-Lov´ asz’82]

Let δ ∈ (1/4, 1). A basis B = (bi)i≤n ∈ Rn×n with QR-factorisation B = QR is said LLL-reduced if: ∀i, j : |ri,j| ≤ ri,i/2 [size-reduction] ∀i : δ · r2

i,i ≤ r2 i,i+1 + r2 i+1,i+1

[Lov´ asz’ condition]. The ri,i’s can’t drop too fast: ri+1,i+1 ≥

  • δ − 1

4ri,i.

  • i bi ≤ 2O(n2) · det(L).

det(L) := det(bi)i is a lattice invariant. δ < 1 is crucial to get polynomial-time complexity.

  • b1

b2

Damien Stehl´ e LLL-reducing in quasi-linear time 11/04/2011 5/36

slide-12
SLIDE 12

Introduction Wishful thinking Deforming Truncating e L1

The LLL reduction [Lenstra-Lenstra-Lov´ asz’82]

Let δ ∈ (1/4, 1). A basis B = (bi)i≤n ∈ Rn×n with QR-factorisation B = QR is said LLL-reduced if: ∀i, j : |ri,j| ≤ ri,i/2 [size-reduction] ∀i : δ · r2

i,i ≤ r2 i,i+1 + r2 i+1,i+1

[Lov´ asz’ condition]. The ri,i’s can’t drop too fast: ri+1,i+1 ≥

  • δ − 1

4ri,i.

  • i bi ≤ 2O(n2) · det(L).

det(L) := det(bi)i is a lattice invariant. δ < 1 is crucial to get polynomial-time complexity.

  • b1

b2

Damien Stehl´ e LLL-reducing in quasi-linear time 11/04/2011 5/36

slide-13
SLIDE 13

Introduction Wishful thinking Deforming Truncating e L1

The LLL reduction [Lenstra-Lenstra-Lov´ asz’82]

Let δ ∈ (1/4, 1). A basis B = (bi)i≤n ∈ Rn×n with QR-factorisation B = QR is said LLL-reduced if: ∀i, j : |ri,j| ≤ ri,i/2 [size-reduction] ∀i : δ · r2

i,i ≤ r2 i,i+1 + r2 i+1,i+1

[Lov´ asz’ condition]. The ri,i’s can’t drop too fast: ri+1,i+1 ≥

  • δ − 1

4ri,i.

  • i bi ≤ 2O(n2) · det(L).

det(L) := det(bi)i is a lattice invariant. δ < 1 is crucial to get polynomial-time complexity.

  • b1

b2

Damien Stehl´ e LLL-reducing in quasi-linear time 11/04/2011 5/36

slide-14
SLIDE 14

Introduction Wishful thinking Deforming Truncating e L1

Complexity bounds

Input: B ∈ Zn×n of full rank, with max bi ≤ 2β. LeLeLo’82 LLL/L3 n5+εβ2+ε Kaltofen’83 n5β2(n + β)ε Schnorr’87 n4β(n + β)1+ε Nguyen-S.’05 L2 n4+εβ(n + β) Morel-S.-Villard’08 H-LLL same bound, simpler proof Can we do better with respect to β?

Damien Stehl´ e LLL-reducing in quasi-linear time 11/04/2011 6/36

slide-15
SLIDE 15

Introduction Wishful thinking Deforming Truncating e L1

Complexity bounds

Input: B ∈ Zn×n of full rank, with max bi ≤ 2β. LeLeLo’82 LLL/L3 n5+εβ2+ε Kaltofen’83 n5β2(n + β)ε Schnorr’87 n4β(n + β)1+ε Nguyen-S.’05 L2 n4+εβ(n + β) Morel-S.-Villard’08 H-LLL same bound, simpler proof Can we do better with respect to β?

Damien Stehl´ e LLL-reducing in quasi-linear time 11/04/2011 6/36

slide-16
SLIDE 16

Introduction Wishful thinking Deforming Truncating e L1

Quasi-linear LLL-reduction

Yap’92, Sch¨

  • nhage’91: β1+ε for n = 2.

Eisenbrand-Rote’01: β1+ε for fixed any n. Our result We give an algorithm, called L

1, that computes “somewhat”

LLL-reduced bases in time O(n5+εβ + nω+1+εβ1+ε). nω: cost of matrix mult. in dimension n. For fixed n: O(M(β) log β), where M(·) is for integer mult. Same total degree as before.

Damien Stehl´ e LLL-reducing in quasi-linear time 11/04/2011 7/36

slide-17
SLIDE 17

Introduction Wishful thinking Deforming Truncating e L1

Quasi-linear LLL-reduction

Yap’92, Sch¨

  • nhage’91: β1+ε for n = 2.

Eisenbrand-Rote’01: β1+ε for fixed any n. Our result We give an algorithm, called L

1, that computes “somewhat”

LLL-reduced bases in time O(n5+εβ + nω+1+εβ1+ε). nω: cost of matrix mult. in dimension n. For fixed n: O(M(β) log β), where M(·) is for integer mult. Same total degree as before.

Damien Stehl´ e LLL-reducing in quasi-linear time 11/04/2011 7/36

slide-18
SLIDE 18

Introduction Wishful thinking Deforming Truncating e L1

Plan of the talk

1 Wishful thinking. 2 Reducing by deforming. 3 Reducing by truncating. 4 The

L

1 algorithm.

Damien Stehl´ e LLL-reducing in quasi-linear time 11/04/2011 8/36

slide-19
SLIDE 19

Introduction Wishful thinking Deforming Truncating e L1

A gcd analogy

Euclid’s algorithm for computing gcd(r0, r1): i := 1. While ri = 0: Compute qi := ⌊ri−1/ri⌋, ri+1 := ri−1 − qiri. Output ri−1. Vectorial interpretation:

  • ri

ri+1

  • =

1 1 −qi

  • ·

ri−1 ri

  • =

1

  • j=i

1 1 −qj

  • ·

r0 r1

  • LLL as a gcd: Given Bi, find Ui s.t. BiUi is closer to reduced.

L3: Compute ri−1/ri exactly before rounding it. L2: Compute ri−1/ri approximately before rounding it.

Damien Stehl´ e LLL-reducing in quasi-linear time 11/04/2011 9/36

slide-20
SLIDE 20

Introduction Wishful thinking Deforming Truncating e L1

A gcd analogy

Euclid’s algorithm for computing gcd(r0, r1): i := 1. While ri = 0: Compute qi := ⌊ri−1/ri⌋, ri+1 := ri−1 − qiri. Output ri−1. Vectorial interpretation:

  • ri

ri+1

  • =

1 1 −qi

  • ·

ri−1 ri

  • =

1

  • j=i

1 1 −qj

  • ·

r0 r1

  • LLL as a gcd: Given Bi, find Ui s.t. BiUi is closer to reduced.

L3: Compute ri−1/ri exactly before rounding it. L2: Compute ri−1/ri approximately before rounding it.

Damien Stehl´ e LLL-reducing in quasi-linear time 11/04/2011 9/36

slide-21
SLIDE 21

Introduction Wishful thinking Deforming Truncating e L1

A gcd analogy

Euclid’s algorithm for computing gcd(r0, r1): i := 1. While ri = 0: Compute qi := ⌊ri−1/ri⌋, ri+1 := ri−1 − qiri. Output ri−1. Vectorial interpretation:

  • ri

ri+1

  • =

1 1 −qi

  • ·

ri−1 ri

  • =

1

  • j=i

1 1 −qj

  • ·

r0 r1

  • LLL as a gcd: Given Bi, find Ui s.t. BiUi is closer to reduced.

L3: Compute ri−1/ri exactly before rounding it. L2: Compute ri−1/ri approximately before rounding it.

Damien Stehl´ e LLL-reducing in quasi-linear time 11/04/2011 9/36

slide-22
SLIDE 22

Introduction Wishful thinking Deforming Truncating e L1

A gcd analogy

Euclid’s algorithm for computing gcd(r0, r1): i := 1. While ri = 0: Compute qi := ⌊ri−1/ri⌋, ri+1 := ri−1 − qiri. Output ri−1. Vectorial interpretation:

  • ri

ri+1

  • =

1 1 −qi

  • ·

ri−1 ri

  • =

1

  • j=i

1 1 −qj

  • ·

r0 r1

  • LLL as a gcd: Given Bi, find Ui s.t. BiUi is closer to reduced.

L3: Compute ri−1/ri exactly before rounding it. L2: Compute ri−1/ri approximately before rounding it.

Damien Stehl´ e LLL-reducing in quasi-linear time 11/04/2011 9/36

slide-23
SLIDE 23

Introduction Wishful thinking Deforming Truncating e L1

A gcd analogy

Euclid’s algorithm for computing gcd(r0, r1): i := 1. While ri = 0: Compute qi := ⌊ri−1/ri⌋, ri+1 := ri−1 − qiri. Output ri−1. Vectorial interpretation:

  • ri

ri+1

  • =

1 1 −qi

  • ·

ri−1 ri

  • =

1

  • j=i

1 1 −qj

  • ·

r0 r1

  • LLL as a gcd: Given Bi, find Ui s.t. BiUi is closer to reduced.

L3: Compute ri−1/ri exactly before rounding it. L2: Compute ri−1/ri approximately before rounding it.

Damien Stehl´ e LLL-reducing in quasi-linear time 11/04/2011 9/36

slide-24
SLIDE 24

Introduction Wishful thinking Deforming Truncating e L1

Towards a quasi-linear time gcd algorithm

Euclid computes remainders (ri)i and quotients (qi)i. Assume r0 ≈ r1 ≈ 2β. Writing down all the ri’s costs O(β2). Lehmer’38 If |r0−¯

r0| |r0| , |r1−¯ r1| |r1|

≤ 2−2ℓ, then (qi)i and (¯ qi)i share their first ℓ bits. Do not compute the qi’s using and updating the lengthy ri’s: Use the shorter ¯ ri’s instead! When the relevant bits of the qi’s are known, apply them to (r0, r1)... and apply Lehmer again. Knuth’70, Sch¨

  • nhage’71: Do this recursively!

Damien Stehl´ e LLL-reducing in quasi-linear time 11/04/2011 10/36

slide-25
SLIDE 25

Introduction Wishful thinking Deforming Truncating e L1

Towards a quasi-linear time gcd algorithm

Euclid computes remainders (ri)i and quotients (qi)i. Assume r0 ≈ r1 ≈ 2β. Writing down all the ri’s costs O(β2). Lehmer’38 If |r0−¯

r0| |r0| , |r1−¯ r1| |r1|

≤ 2−2ℓ, then (qi)i and (¯ qi)i share their first ℓ bits. Do not compute the qi’s using and updating the lengthy ri’s: Use the shorter ¯ ri’s instead! When the relevant bits of the qi’s are known, apply them to (r0, r1)... and apply Lehmer again. Knuth’70, Sch¨

  • nhage’71: Do this recursively!

Damien Stehl´ e LLL-reducing in quasi-linear time 11/04/2011 10/36

slide-26
SLIDE 26

Introduction Wishful thinking Deforming Truncating e L1

Towards a quasi-linear time gcd algorithm

Euclid computes remainders (ri)i and quotients (qi)i. Assume r0 ≈ r1 ≈ 2β. Writing down all the ri’s costs O(β2). Lehmer’38 If |r0−¯

r0| |r0| , |r1−¯ r1| |r1|

≤ 2−2ℓ, then (qi)i and (¯ qi)i share their first ℓ bits. Do not compute the qi’s using and updating the lengthy ri’s: Use the shorter ¯ ri’s instead! When the relevant bits of the qi’s are known, apply them to (r0, r1)... and apply Lehmer again. Knuth’70, Sch¨

  • nhage’71: Do this recursively!

Damien Stehl´ e LLL-reducing in quasi-linear time 11/04/2011 10/36

slide-27
SLIDE 27

Introduction Wishful thinking Deforming Truncating e L1

Towards a quasi-linear time gcd algorithm

Euclid computes remainders (ri)i and quotients (qi)i. Assume r0 ≈ r1 ≈ 2β. Writing down all the ri’s costs O(β2). Lehmer’38 If |r0−¯

r0| |r0| , |r1−¯ r1| |r1|

≤ 2−2ℓ, then (qi)i and (¯ qi)i share their first ℓ bits. Do not compute the qi’s using and updating the lengthy ri’s: Use the shorter ¯ ri’s instead! When the relevant bits of the qi’s are known, apply them to (r0, r1)... and apply Lehmer again. Knuth’70, Sch¨

  • nhage’71: Do this recursively!

Damien Stehl´ e LLL-reducing in quasi-linear time 11/04/2011 10/36

slide-28
SLIDE 28

Introduction Wishful thinking Deforming Truncating e L1

The Knuth-Sch¨

  • nhage gcd algorithm

To compute the first ℓ quotient bits of r0, r1 of bit-sizes 2ℓ:

1 Take the first ℓ bits of r0 and r1. 2 Recursively get the first ℓ/2 quotient bits. 3 Apply the quotients to r0, r1, to get r′

0, r′ 1.

4 Take the first ℓ bits of r′

0 and r′ 1.

5 Recursively get the first ℓ/2 quotient bits.

Applying the quotients: multiply a O(ℓ)-bit 2 × 2 matrix to a O(ℓ)-bit vector. Cost: Cℓ = 2Cℓ/2 + O(M(ℓ)) = O(M(ℓ) log ℓ). Can be used to compute gcds in time O(M(ℓ) log ℓ).

Damien Stehl´ e LLL-reducing in quasi-linear time 11/04/2011 11/36

slide-29
SLIDE 29

Introduction Wishful thinking Deforming Truncating e L1

The Knuth-Sch¨

  • nhage gcd algorithm

To compute the first ℓ quotient bits of r0, r1 of bit-sizes 2ℓ:

1 Take the first ℓ bits of r0 and r1. 2 Recursively get the first ℓ/2 quotient bits. 3 Apply the quotients to r0, r1, to get r′

0, r′ 1.

4 Take the first ℓ bits of r′

0 and r′ 1.

5 Recursively get the first ℓ/2 quotient bits.

Applying the quotients: multiply a O(ℓ)-bit 2 × 2 matrix to a O(ℓ)-bit vector. Cost: Cℓ = 2Cℓ/2 + O(M(ℓ)) = O(M(ℓ) log ℓ). Can be used to compute gcds in time O(M(ℓ) log ℓ).

Damien Stehl´ e LLL-reducing in quasi-linear time 11/04/2011 11/36

slide-30
SLIDE 30

Introduction Wishful thinking Deforming Truncating e L1

What about doing it for LLL?

To compute the “first” ℓ bits of U reducing B:

1 Take the first ℓ bits of each bij. 2 Recursively get the first ℓ/2 bits of U. 3 Apply them to B, to get a shorter B′. 4 Take the first ℓ bits of each b′

ij.

5 Recursively get the next ℓ/2 bits of U.

What is a “quotient” here? How to control the bit-size of a unimodular matrix? Can we truncate “remainders”, i.e., lattice bases? How to handle multidimensionality / unbalanced magnitudes?

Damien Stehl´ e LLL-reducing in quasi-linear time 11/04/2011 12/36

slide-31
SLIDE 31

Introduction Wishful thinking Deforming Truncating e L1

What about doing it for LLL?

To compute the “first” ℓ bits of U reducing B:

1 Take the first ℓ bits of each bij. 2 Recursively get the first ℓ/2 bits of U. 3 Apply them to B, to get a shorter B′. 4 Take the first ℓ bits of each b′

ij.

5 Recursively get the next ℓ/2 bits of U.

What is a “quotient” here? How to control the bit-size of a unimodular matrix? Can we truncate “remainders”, i.e., lattice bases? How to handle multidimensionality / unbalanced magnitudes?

Damien Stehl´ e LLL-reducing in quasi-linear time 11/04/2011 12/36

slide-32
SLIDE 32

Introduction Wishful thinking Deforming Truncating e L1

Plan of the talk

1 Wishful thinking. 2 Reducing by deforming. 3 Reducing by truncating. 4 The

L

1 algorithm.

Damien Stehl´ e LLL-reducing in quasi-linear time 11/04/2011 13/36

slide-33
SLIDE 33

Introduction Wishful thinking Deforming Truncating e L1

From reduced to reduced

If B is arbitrary, then a reducing U can be huge (Cramer :-(). If B is reduced, any U such that BU is reduced is bounded. Let B be reduced with R-factor R, and U s.t. BU is reduced. Then: ∀i, j : |uij| ≤ 2O(n) · rjj/rii. If B is reduced, the rii’s can’t decrease fast. Assuming they don’t increase, we get max |uij| ≤ 2O(n).

Damien Stehl´ e LLL-reducing in quasi-linear time 11/04/2011 14/36

slide-34
SLIDE 34

Introduction Wishful thinking Deforming Truncating e L1

From reduced to reduced

If B is arbitrary, then a reducing U can be huge (Cramer :-(). If B is reduced, any U such that BU is reduced is bounded. Let B be reduced with R-factor R, and U s.t. BU is reduced. Then: ∀i, j : |uij| ≤ 2O(n) · rjj/rii. If B is reduced, the rii’s can’t decrease fast. Assuming they don’t increase, we get max |uij| ≤ 2O(n).

Damien Stehl´ e LLL-reducing in quasi-linear time 11/04/2011 14/36

slide-35
SLIDE 35

Introduction Wishful thinking Deforming Truncating e L1

From reduced to reduced

If B is arbitrary, then a reducing U can be huge (Cramer :-(). If B is reduced, any U such that BU is reduced is bounded. Let B be reduced with R-factor R, and U s.t. BU is reduced. Then: ∀i, j : |uij| ≤ 2O(n) · rjj/rii. If B is reduced, the rii’s can’t decrease fast. Assuming they don’t increase, we get max |uij| ≤ 2O(n).

Damien Stehl´ e LLL-reducing in quasi-linear time 11/04/2011 14/36

slide-36
SLIDE 36

Introduction Wishful thinking Deforming Truncating e L1

From reduced to deformed to reduced

Start from something reduced, deform it a bit, and reduce it! The Belabas-van Hoeij-Novocin deformation: B → diag(2ℓ, 1, . . . , 1) · B = σℓB. The rii’s cannot decrease. Their product increases by a factor 2ℓ. Let ℓ ≥ 0, B be reduced with R-factor R, and U s.t. σℓBU is

  • reduced. Then:

∀i, j : |uij| ≤ 2ℓ+O(n) · rjj/rii. − → If B is “balanced”, each uij has at most ℓ + O(n) bits.

Damien Stehl´ e LLL-reducing in quasi-linear time 11/04/2011 15/36

slide-37
SLIDE 37

Introduction Wishful thinking Deforming Truncating e L1

From reduced to deformed to reduced

Start from something reduced, deform it a bit, and reduce it! The Belabas-van Hoeij-Novocin deformation: B → diag(2ℓ, 1, . . . , 1) · B = σℓB. The rii’s cannot decrease. Their product increases by a factor 2ℓ. Let ℓ ≥ 0, B be reduced with R-factor R, and U s.t. σℓBU is

  • reduced. Then:

∀i, j : |uij| ≤ 2ℓ+O(n) · rjj/rii. − → If B is “balanced”, each uij has at most ℓ + O(n) bits.

Damien Stehl´ e LLL-reducing in quasi-linear time 11/04/2011 15/36

slide-38
SLIDE 38

Introduction Wishful thinking Deforming Truncating e L1

From reduced to deformed to reduced

Start from something reduced, deform it a bit, and reduce it! The Belabas-van Hoeij-Novocin deformation: B → diag(2ℓ, 1, . . . , 1) · B = σℓB. The rii’s cannot decrease. Their product increases by a factor 2ℓ. Let ℓ ≥ 0, B be reduced with R-factor R, and U s.t. σℓBU is

  • reduced. Then:

∀i, j : |uij| ≤ 2ℓ+O(n) · rjj/rii. − → If B is “balanced”, each uij has at most ℓ + O(n) bits.

Damien Stehl´ e LLL-reducing in quasi-linear time 11/04/2011 15/36

slide-39
SLIDE 39

Introduction Wishful thinking Deforming Truncating e L1

From reduced to deformed to reduced

Start from something reduced, deform it a bit, and reduce it! The Belabas-van Hoeij-Novocin deformation: B → diag(2ℓ, 1, . . . , 1) · B = σℓB. The rii’s cannot decrease. Their product increases by a factor 2ℓ. Let ℓ ≥ 0, B be reduced with R-factor R, and U s.t. σℓBU is

  • reduced. Then:

∀i, j : |uij| ≤ 2ℓ+O(n) · rjj/rii. − → If B is “balanced”, each uij has at most ℓ + O(n) bits.

Damien Stehl´ e LLL-reducing in quasi-linear time 11/04/2011 15/36

slide-40
SLIDE 40

Introduction Wishful thinking Deforming Truncating e L1

Lift-reducing suffices for reducing

Assume B ∈ Zn×n is upper triangular.        b1,1 . . . b1,n−2 b1,n−1 b1,n . . . ... . . . . . . . . . . . . bn−2,n−2 bn−2,n−1 bn−2,n . . . bn−1,n−1 bn−1,n . . . bn,n       

Damien Stehl´ e LLL-reducing in quasi-linear time 11/04/2011 16/36

slide-41
SLIDE 41

Introduction Wishful thinking Deforming Truncating e L1

Lift-reducing suffices for reducing

Assume B ∈ Zn×n is upper triangular.        b1,1 . . . b1,n−2 b1,n−1 b1,n . . . ... . . . . . . . . . . . . bn−2,n−2 bn−2,n−1 bn−2,n . . . bn−1,n−1 bn−1,n . . . bn,n        Bottom right 1 × 1 submatrix is reduced.

Damien Stehl´ e LLL-reducing in quasi-linear time 11/04/2011 16/36

slide-42
SLIDE 42

Introduction Wishful thinking Deforming Truncating e L1

Lift-reducing suffices for reducing

Assume B ∈ Zn×n is upper triangular.        b1,1 . . . b1,n−2 b1,n−1 b1,n . . . ... . . . . . . . . . . . . bn−2,n−2 bn−2,n−1 bn−2,n . . .

bn−1,n−1 2ℓ bn−1,n 2ℓ

. . . bn,n        Scale down row n − 1 so that bottom-right 2 × 2 submatrix is reduced: ℓ ≈ log bn−1,n−1.

Damien Stehl´ e LLL-reducing in quasi-linear time 11/04/2011 16/36

slide-43
SLIDE 43

Introduction Wishful thinking Deforming Truncating e L1

Lift-reducing suffices for reducing

Assume B ∈ Zn×n is upper triangular.        b1,1 . . . b1,n−2 b1,n−1 b1,n . . . ... . . . . . . . . . . . . bn−2,n−2 bn−2,n−1 bn−2,n . . . bn−1,n−1 bn−1,n . . . bn,n        Lift row n − 1 by ℓ bits and reduce bottom-right 2 × 2 submatrix.

Damien Stehl´ e LLL-reducing in quasi-linear time 11/04/2011 16/36

slide-44
SLIDE 44

Introduction Wishful thinking Deforming Truncating e L1

Lift-reducing suffices for reducing

Assume B ∈ Zn×n is upper triangular.        b1,1 . . . b1,n−2 b1,n−1 b1,n . . . ... . . . . . . . . . . . . bn−2,n−2 bn−2,n−1 bn−2,n . . . x x . . . x x        Lift row n − 1 by ℓ bits and reduce bottom-right 2 × 2 submatrix.

Damien Stehl´ e LLL-reducing in quasi-linear time 11/04/2011 16/36

slide-45
SLIDE 45

Introduction Wishful thinking Deforming Truncating e L1

Lift-reducing suffices for reducing

Assume B ∈ Zn×n is upper triangular.        b1,1 . . . b1,n−2 x x . . . ... . . . . . . . . . . . . bn−2,n−2 x x . . . x x . . . x x        Propagate the transformations to the first n − 2 coordinates, and reduce wrt the diagonal coefficients.

Damien Stehl´ e LLL-reducing in quasi-linear time 11/04/2011 16/36

slide-46
SLIDE 46

Introduction Wishful thinking Deforming Truncating e L1

Lift-reducing suffices for reducing

Assume B ∈ Zn×n is upper triangular.        b1,1 . . . b1,n−2 x x . . . ... . . . . . . . . . . . .

bn−2,n−2 2ℓ x 2ℓ x 2ℓ

. . . x x . . . x x        Scale down row n − 2 so that bottom-right 3 × 3 submatrix is reduced: ℓ ≈ log bn−2,n−2.

Damien Stehl´ e LLL-reducing in quasi-linear time 11/04/2011 16/36

slide-47
SLIDE 47

Introduction Wishful thinking Deforming Truncating e L1

Lift-reducing suffices for reducing

Assume B ∈ Zn×n is upper triangular.        b1,1 . . . b1,n−2 x x . . . ... . . . . . . . . . . . . bn−2,n−2 x x . . . x x . . . x x        Lift row n − 2 by ℓ bits and reduce bottom-right 3 × 3 submatrix.

Damien Stehl´ e LLL-reducing in quasi-linear time 11/04/2011 16/36

slide-48
SLIDE 48

Introduction Wishful thinking Deforming Truncating e L1

Lift-reducing suffices for reducing

Assume B ∈ Zn×n is upper triangular.        b1,1 . . . b1,n−2 x x . . . ... . . . . . . . . . . . . x x x . . . x x x . . . x x x        Lift row n − 2 by ℓ bits and reduce bottom-right 3 × 3 submatrix.

Damien Stehl´ e LLL-reducing in quasi-linear time 11/04/2011 16/36

slide-49
SLIDE 49

Introduction Wishful thinking Deforming Truncating e L1

Lift-reducing suffices for reducing

Assume B ∈ Zn×n is upper triangular.        b1,1 . . . x x x . . . ... . . . . . . . . . . . . x x x . . . x x x . . . x x x        Propagate the transformations to the first n − 3 coordinates, and reduce wrt the diagonal coefficients.

Damien Stehl´ e LLL-reducing in quasi-linear time 11/04/2011 16/36

slide-50
SLIDE 50

Introduction Wishful thinking Deforming Truncating e L1

Lift-reducing suffices for reducing

Assume B ∈ Zn×n is upper triangular.        b1,1 . . . x x x . . . ... . . . . . . . . . . . . x x x . . . x x x . . . x x x        Keep going.

Damien Stehl´ e LLL-reducing in quasi-linear time 11/04/2011 16/36

slide-51
SLIDE 51

Introduction Wishful thinking Deforming Truncating e L1

Lift-reducing in quasi-linear time suffices

McCurley-Hafner’91: H = HNF(B) can be computed in time O(nω+1+εβ1+ε). Cost of the lifts: Poly(n) ·

  • O(log hn,n) +

O(log hn−1,n−1) + . . .

  • = Poly(n) ·

O(log det H) = Poly(n) · O(log det B). (in fact, we do a bit better than that) Cost of the propagations bounded using the smallness of the transforms: O(nω+1+ε(β1+ε + n)).

Damien Stehl´ e LLL-reducing in quasi-linear time 11/04/2011 17/36

slide-52
SLIDE 52

Introduction Wishful thinking Deforming Truncating e L1

Lift-reducing in quasi-linear time suffices

McCurley-Hafner’91: H = HNF(B) can be computed in time O(nω+1+εβ1+ε). Cost of the lifts: Poly(n) ·

  • O(log hn,n) +

O(log hn−1,n−1) + . . .

  • = Poly(n) ·

O(log det H) = Poly(n) · O(log det B). (in fact, we do a bit better than that) Cost of the propagations bounded using the smallness of the transforms: O(nω+1+ε(β1+ε + n)).

Damien Stehl´ e LLL-reducing in quasi-linear time 11/04/2011 17/36

slide-53
SLIDE 53

Introduction Wishful thinking Deforming Truncating e L1

Lift-reducing in quasi-linear time suffices

McCurley-Hafner’91: H = HNF(B) can be computed in time O(nω+1+εβ1+ε). Cost of the lifts: Poly(n) ·

  • O(log hn,n) +

O(log hn−1,n−1) + . . .

  • = Poly(n) ·

O(log det H) = Poly(n) · O(log det B). (in fact, we do a bit better than that) Cost of the propagations bounded using the smallness of the transforms: O(nω+1+ε(β1+ε + n)).

Damien Stehl´ e LLL-reducing in quasi-linear time 11/04/2011 17/36

slide-54
SLIDE 54

Introduction Wishful thinking Deforming Truncating e L1

Where are we now?

LLL-reduction − → sequence of Lift-reductions. We are to lift-reduce in quasi-linear time. More precisely: given ℓ and B reduced, we will find U unimodular such that σℓBU is reduced, in time O(ℓ). This is independent from the bit-size of B. The “LLL quotients” are the matrices U that achieve some amount ℓ of lifting. The quotients have bounded magnitudes. If B is “balanced”, then they have small bit-sizes.

Damien Stehl´ e LLL-reducing in quasi-linear time 11/04/2011 18/36

slide-55
SLIDE 55

Introduction Wishful thinking Deforming Truncating e L1

Where are we now?

LLL-reduction − → sequence of Lift-reductions. We are to lift-reduce in quasi-linear time. More precisely: given ℓ and B reduced, we will find U unimodular such that σℓBU is reduced, in time O(ℓ). This is independent from the bit-size of B. The “LLL quotients” are the matrices U that achieve some amount ℓ of lifting. The quotients have bounded magnitudes. If B is “balanced”, then they have small bit-sizes.

Damien Stehl´ e LLL-reducing in quasi-linear time 11/04/2011 18/36

slide-56
SLIDE 56

Introduction Wishful thinking Deforming Truncating e L1

Where are we now?

LLL-reduction − → sequence of Lift-reductions. We are to lift-reduce in quasi-linear time. More precisely: given ℓ and B reduced, we will find U unimodular such that σℓBU is reduced, in time O(ℓ). This is independent from the bit-size of B. The “LLL quotients” are the matrices U that achieve some amount ℓ of lifting. The quotients have bounded magnitudes. If B is “balanced”, then they have small bit-sizes.

Damien Stehl´ e LLL-reducing in quasi-linear time 11/04/2011 18/36

slide-57
SLIDE 57

Introduction Wishful thinking Deforming Truncating e L1

Where are we now?

LLL-reduction − → sequence of Lift-reductions. We are to lift-reduce in quasi-linear time. More precisely: given ℓ and B reduced, we will find U unimodular such that σℓBU is reduced, in time O(ℓ). This is independent from the bit-size of B. The “LLL quotients” are the matrices U that achieve some amount ℓ of lifting. The quotients have bounded magnitudes. If B is “balanced”, then they have small bit-sizes.

Damien Stehl´ e LLL-reducing in quasi-linear time 11/04/2011 18/36

slide-58
SLIDE 58

Introduction Wishful thinking Deforming Truncating e L1

Plan of the talk

1 Wishful thinking. 2 Reducing by deforming. 3 Reducing by truncating. 4 The

L

1 algorithm.

Damien Stehl´ e LLL-reducing in quasi-linear time 11/04/2011 19/36

slide-59
SLIDE 59

Introduction Wishful thinking Deforming Truncating e L1

The LLL-reduction is inappropriate for truncations

Damien Stehl´ e LLL-reducing in quasi-linear time 11/04/2011 20/36

slide-60
SLIDE 60

Introduction Wishful thinking Deforming Truncating e L1

The LLL-reduction is inappropriate for truncations

We can’t decide reducedness by looking at the (53) top-most bits:

Damien Stehl´ e LLL-reducing in quasi-linear time 11/04/2011 20/36

slide-61
SLIDE 61

Introduction Wishful thinking Deforming Truncating e L1

The LLL-reduction is inappropriate for truncations

We can’t decide reducedness by looking at the (53) top-most bits:

  • 1

260 + 25 −1 260

  • =

  • 1

260 −1 260

  • Not reduced

Reduced

  • 1

253 + 2−1 + 2−25 2−10 −263

  • =

  • 1

253 + 1 2−10 −263

  • Reduced

Not reduced

Damien Stehl´ e LLL-reducing in quasi-linear time 11/04/2011 20/36

slide-62
SLIDE 62

Introduction Wishful thinking Deforming Truncating e L1

The LLL-reduction is inappropriate for truncations

We can’t decide reducedness by looking at the (53) top-most bits:

  • 1

260 + 25 −1 260

  • =

  • 1

260 −1 260

  • Not reduced

Reduced

  • 1

253 + 2−1 + 2−25 2−10 −263

  • =

  • 1

253 + 1 2−10 −263

  • Reduced

Not reduced

Damien Stehl´ e LLL-reducing in quasi-linear time 11/04/2011 20/36

slide-63
SLIDE 63

Introduction Wishful thinking Deforming Truncating e L1

The LLL-reduction is inappropriate for truncations

We can’t decide reducedness by looking at the (53) top-most bits:

  • 1

260 + 25 −1 260

  • =

  • 1

260 −1 260

  • Not reduced

Reduced

  • 1

253 + 2−1 + 2−25 2−10 −263

  • =

  • 1

253 + 1 2−10 −263

  • Reduced

Not reduced If B ∈ Zn×n, we may need all the bits to decide. If B ∈ Rn×n, we may not even be able to tell!

Damien Stehl´ e LLL-reducing in quasi-linear time 11/04/2011 20/36

slide-64
SLIDE 64

Introduction Wishful thinking Deforming Truncating e L1

Sensitivity of the R-factor

Take B ∈ Rn×n full-rank, with B = QR. Apply a columnwise perturbation ∆B, i.e., maxi

∆bi bi ≤ ε.

If ε is very small, then B + ∆B is full-rank and: B + ∆B = (Q + ∆Q)(R + ∆R). How large can ∆R be?

Damien Stehl´ e LLL-reducing in quasi-linear time 11/04/2011 21/36

slide-65
SLIDE 65

Introduction Wishful thinking Deforming Truncating e L1

Sensitivity of the R-factor

Take B ∈ Rn×n full-rank, with B = QR. Apply a columnwise perturbation ∆B, i.e., maxi

∆bi bi ≤ ε.

If ε is very small, then B + ∆B is full-rank and: B + ∆B = (Q + ∆Q)(R + ∆R). How large can ∆R be? Chang-S-Villard’11 Let cond(R) = |R||R−1|. If cond(R) · ε < ∼ 1, then: B + ∆B is full-rank and max ∆ri

ri <

∼ cond(R) · ε. Furthermore, if B is LLL-reduced, then cond(R) = 2O(n).

Damien Stehl´ e LLL-reducing in quasi-linear time 11/04/2011 21/36

slide-66
SLIDE 66

Introduction Wishful thinking Deforming Truncating e L1

Fixing the LLL-reduction

We would like the reduction to resist perturbations. The bound on ∆rj is proportional to rj. By reducedness, 1 ≤ rj

rj,j ≤ 2O(n).

⇒ ri,j should be related to rj,j instead of (only) ri,i.

Damien Stehl´ e LLL-reducing in quasi-linear time 11/04/2011 22/36

slide-67
SLIDE 67

Introduction Wishful thinking Deforming Truncating e L1

Fixing the LLL-reduction

We would like the reduction to resist perturbations. The bound on ∆rj is proportional to rj. By reducedness, 1 ≤ rj

rj,j ≤ 2O(n).

⇒ ri,j should be related to rj,j instead of (only) ri,i.

Damien Stehl´ e LLL-reducing in quasi-linear time 11/04/2011 22/36

slide-68
SLIDE 68

Introduction Wishful thinking Deforming Truncating e L1

Fixing the LLL-reduction

We would like the reduction to resist perturbations. The bound on ∆rj is proportional to rj. By reducedness, 1 ≤ rj

rj,j ≤ 2O(n).

⇒ ri,j should be related to rj,j instead of (only) ri,i. Let Ξ = (δ, η, θ) with η ∈ (1/2, 1), θ > 0 and δ ∈ (η2, 1). A basis B ∈ Rn×n with R-factor R is said Ξ-reduced if: ∀i, j : |ri,j| ≤ η · ri,i + θ · rj,j [Modified size-reduction] ∀i : δ · r2

i,i ≤ r2 i,i+1 + r2 i+1,i+1.

Damien Stehl´ e LLL-reducing in quasi-linear time 11/04/2011 22/36

slide-69
SLIDE 69

Introduction Wishful thinking Deforming Truncating e L1

Fixing the LLL-reduction

We would like the reduction to resist perturbations. The bound on ∆rj is proportional to rj. By reducedness, 1 ≤ rj

rj,j ≤ 2O(n).

⇒ ri,j should be related to rj,j instead of (only) ri,i. Let Ξ = (δ, η, θ) with η ∈ (1/2, 1), θ > 0 and δ ∈ (η2, 1). A basis B ∈ Rn×n with R-factor R is said Ξ-reduced if: ∀i, j : |ri,j| ≤ η · ri,i + θ · rj,j [Modified size-reduction] ∀i : δ · r2

i,i ≤ r2 i,i+1 + r2 i+1,i+1.

If B is balanced, this is the same as before.

Damien Stehl´ e LLL-reducing in quasi-linear time 11/04/2011 22/36

slide-70
SLIDE 70

Introduction Wishful thinking Deforming Truncating e L1

The LLL-reductions, graphically

  • b1

b2

  • b1

b2

  • b1

b2

  • b1

b2 (1, 1/2, 0) (δ, 1/2, 0) (δ, η, 0) (δ, η, θ) Hermite LLL’82 Schnorr’88 Chang-S-Villard’11

Damien Stehl´ e LLL-reducing in quasi-linear time 11/04/2011 23/36

slide-71
SLIDE 71

Introduction Wishful thinking Deforming Truncating e L1

Properties of the new reduction

The new reduction is perturbation-friendly: We still have cond(R) = 2O(n) for Ξ-reduced bases. If B is reduced and max ∆bi

bi ≤ 2−Ω(n),

then B + ∆B is reduced (for slightly weaker parameters).

Damien Stehl´ e LLL-reducing in quasi-linear time 11/04/2011 24/36

slide-72
SLIDE 72

Introduction Wishful thinking Deforming Truncating e L1

Properties of the new reduction

The new reduction is perturbation-friendly: We still have cond(R) = 2O(n) for Ξ-reduced bases. If B is reduced and max ∆bi

bi ≤ 2−Ω(n),

then B + ∆B is reduced (for slightly weaker parameters). The popular properties of LLL-reduction still hold: Computable in polynomial time. B reduced = ⇒ bi ≤ 2O(n2) · | det(bi)i|.

Damien Stehl´ e LLL-reducing in quasi-linear time 11/04/2011 24/36

slide-73
SLIDE 73

Introduction Wishful thinking Deforming Truncating e L1

Deformations and truncations are compatible

B and σℓBU reduced = ⇒ U small. B reduced = ⇒ B + ∆B reduced. Let ℓ ≥ 0, B be reduced and ∆B s.t. max ∆bi

bi ≤ 2−ℓ−Ω(n).

If σℓ(B + ∆B)U is reduced, then so is σℓBU... For slightly weaker reduction factors. The ℓ + O(n) top-most bits of B suffice for finding U.

Damien Stehl´ e LLL-reducing in quasi-linear time 11/04/2011 25/36

slide-74
SLIDE 74

Introduction Wishful thinking Deforming Truncating e L1

Deformations and truncations are compatible

B and σℓBU reduced = ⇒ U small. B reduced = ⇒ B + ∆B reduced. Let ℓ ≥ 0, B be reduced and ∆B s.t. max ∆bi

bi ≤ 2−ℓ−Ω(n).

If σℓ(B + ∆B)U is reduced, then so is σℓBU... For slightly weaker reduction factors. The ℓ + O(n) top-most bits of B suffice for finding U.

Damien Stehl´ e LLL-reducing in quasi-linear time 11/04/2011 25/36

slide-75
SLIDE 75

Introduction Wishful thinking Deforming Truncating e L1

Deformations and truncations are compatible

B and σℓBU reduced = ⇒ U small. B reduced = ⇒ B + ∆B reduced. Let ℓ ≥ 0, B be reduced and ∆B s.t. max ∆bi

bi ≤ 2−ℓ−Ω(n).

If σℓ(B + ∆B)U is reduced, then so is σℓBU... For slightly weaker reduction factors. The ℓ + O(n) top-most bits of B suffice for finding U.

Damien Stehl´ e LLL-reducing in quasi-linear time 11/04/2011 25/36

slide-76
SLIDE 76

Introduction Wishful thinking Deforming Truncating e L1

Deformations and truncations are compatible

B and σℓBU reduced = ⇒ U small. B reduced = ⇒ B + ∆B reduced. Let ℓ ≥ 0, B be reduced and ∆B s.t. max ∆bi

bi ≤ 2−ℓ−Ω(n).

If σℓ(B + ∆B)U is reduced, then so is σℓBU... For slightly weaker reduction factors. The ℓ + O(n) top-most bits of B suffice for finding U.

Damien Stehl´ e LLL-reducing in quasi-linear time 11/04/2011 25/36

slide-77
SLIDE 77

Introduction Wishful thinking Deforming Truncating e L1

Plan of the talk

1 Wishful thinking. 2 Reducing by deforming. 3 Reducing by truncating. 4 The

L

1 algorithm.

Damien Stehl´ e LLL-reducing in quasi-linear time 11/04/2011 26/36

slide-78
SLIDE 78

Introduction Wishful thinking Deforming Truncating e L1

Overview of L

1

  • L

1: HNF and n calls to Lift-

L

1.

If B is reduced and ℓ ≥ 0, Lift- L

1 computes U unimodular

such that σℓBU is reduced, in time Poly(n) · O(ℓ). We master “remainders/bases” truncations. We have “LLL quotients”. If the basis is balanced, the quotient has small bit-size.

Damien Stehl´ e LLL-reducing in quasi-linear time 11/04/2011 27/36

slide-79
SLIDE 79

Introduction Wishful thinking Deforming Truncating e L1

Overview of L

1

  • L

1: HNF and n calls to Lift-

L

1.

If B is reduced and ℓ ≥ 0, Lift- L

1 computes U unimodular

such that σℓBU is reduced, in time Poly(n) · O(ℓ). We master “remainders/bases” truncations. We have “LLL quotients”. If the basis is balanced, the quotient has small bit-size.

Damien Stehl´ e LLL-reducing in quasi-linear time 11/04/2011 27/36

slide-80
SLIDE 80

Introduction Wishful thinking Deforming Truncating e L1

A first attempt for Lift- L1

Inputs: B reduced, lifting target ℓ. Output: U unimodular such that σℓBU reduced. Keep the ℓ/2 + O(n) top-most bits of B. Recursively compute U1 s.t. σℓ/2BU1 reduced. Apply U1 to σℓ/2B and keep the ℓ/2 + O(n) top-most bits. Recursively compute U2 s.t. σℓ/2(σℓ/2BU1)U2 is reduced. Return U1 · U2.

Damien Stehl´ e LLL-reducing in quasi-linear time 11/04/2011 28/36

slide-81
SLIDE 81

Introduction Wishful thinking Deforming Truncating e L1

A first attempt for Lift- L1

Inputs: B reduced, lifting target ℓ. Output: U unimodular such that σℓBU reduced. Keep the ℓ/2 + O(n) top-most bits of B. Recursively compute U1 s.t. σℓ/2BU1 reduced. Apply U1 to σℓ/2B and keep the ℓ/2 + O(n) top-most bits. Recursively compute U2 s.t. σℓ/2(σℓ/2BU1)U2 is reduced. Return U1 · U2.

Damien Stehl´ e LLL-reducing in quasi-linear time 11/04/2011 28/36

slide-82
SLIDE 82

Introduction Wishful thinking Deforming Truncating e L1

Some additional difficulties

1 Keep the ℓ/2 + O(n) top-most bits of B. 2 Recursively compute U1 s.t. σℓ/2BU1 reduced. 3 Apply U1 to σℓ/2B and keep the ℓ/2 + O(n) top-most bits. 4 Recursively compute U2 s.t. σℓ/2(σℓ/2BU1)U2 is reduced. 5 Return U1 · U2.

What do we do at the recursion leaves? Every time we truncate, we may loosen the reduction factors... How do we compute B · U1 and U1 · U2 efficiently?

Damien Stehl´ e LLL-reducing in quasi-linear time 11/04/2011 29/36

slide-83
SLIDE 83

Introduction Wishful thinking Deforming Truncating e L1

Strengthening the reducedness of a basis (Morel-S-Villard)

Problem: Suppose we have a Ξ-reduced basis. How do we Ξ′-reduce it, for Ξ′ > Ξ? Truncate, reduce, output the obtained U. This takes time O(n6+ε) when the rii’s are balanced. Otherwise, uij can be as large as rjj/rii ...

Damien Stehl´ e LLL-reducing in quasi-linear time 11/04/2011 30/36

slide-84
SLIDE 84

Introduction Wishful thinking Deforming Truncating e L1

Strengthening the reducedness of a basis (Morel-S-Villard)

Problem: Suppose we have a Ξ-reduced basis. How do we Ξ′-reduce it, for Ξ′ > Ξ? Truncate, reduce, output the obtained U. This takes time O(n6+ε) when the rii’s are balanced. Otherwise, uij can be as large as rjj/rii ...

Damien Stehl´ e LLL-reducing in quasi-linear time 11/04/2011 30/36

slide-85
SLIDE 85

Introduction Wishful thinking Deforming Truncating e L1

Strengthening the reducedness of a basis (Morel-S-Villard)

Problem: Suppose we have a Ξ-reduced basis. How do we Ξ′-reduce it, for Ξ′ > Ξ? Truncate, reduce, output the obtained U. This takes time O(n6+ε) when the rii’s are balanced. Otherwise, uij can be as large as rjj/rii ...

Damien Stehl´ e LLL-reducing in quasi-linear time 11/04/2011 30/36

slide-86
SLIDE 86

Introduction Wishful thinking Deforming Truncating e L1

Strengthening the reducedness of a basis (Morel-S-Villard)

1 Rescale the columns of B: B → BS. 2 Do that while keeping B reduced. 3 Find U unimodular s.t. (BS)U is reduced. 4 (BSU)S−1 = B(SUS−1) is reduced. 5 If the scaling was properly chosen: SUS−1 is unimodular.

This costs O(n6+ε). It also works for a small amount of lift: ℓ = O(n).

Damien Stehl´ e LLL-reducing in quasi-linear time 11/04/2011 31/36

slide-87
SLIDE 87

Introduction Wishful thinking Deforming Truncating e L1

Strengthening the reducedness of a basis (Morel-S-Villard)

1 Rescale the columns of B: B → BS. 2 Do that while keeping B reduced. 3 Find U unimodular s.t. (BS)U is reduced. 4 (BSU)S−1 = B(SUS−1) is reduced. 5 If the scaling was properly chosen: SUS−1 is unimodular.

This costs O(n6+ε). It also works for a small amount of lift: ℓ = O(n).

Damien Stehl´ e LLL-reducing in quasi-linear time 11/04/2011 31/36

slide-88
SLIDE 88

Introduction Wishful thinking Deforming Truncating e L1

Strengthening the reducedness of a basis (Morel-S-Villard)

1 Rescale the columns of B: B → BS. 2 Do that while keeping B reduced. 3 Find U unimodular s.t. (BS)U is reduced. 4 (BSU)S−1 = B(SUS−1) is reduced. 5 If the scaling was properly chosen: SUS−1 is unimodular.

This costs O(n6+ε). It also works for a small amount of lift: ℓ = O(n).

Damien Stehl´ e LLL-reducing in quasi-linear time 11/04/2011 31/36

slide-89
SLIDE 89

Introduction Wishful thinking Deforming Truncating e L1

Strengthening the reducedness of a basis (Morel-S-Villard)

1 Rescale the columns of B: B → BS. 2 Do that while keeping B reduced. 3 Find U unimodular s.t. (BS)U is reduced. 4 (BSU)S−1 = B(SUS−1) is reduced. 5 If the scaling was properly chosen: SUS−1 is unimodular.

This costs O(n6+ε). It also works for a small amount of lift: ℓ = O(n).

Damien Stehl´ e LLL-reducing in quasi-linear time 11/04/2011 31/36

slide-90
SLIDE 90

Introduction Wishful thinking Deforming Truncating e L1

Reducedness strengthening

Used for the recursion leaves. Used for re-strengthening the reduction factors, loosened by the truncations. Returns (U, S) s.t.:

B(SUS−1) is reduced, max |uij| ≤ 2O(n), S is powers-of-2 diagonal matrix.

SUS−1 might not be small, but (S, U) is.

Damien Stehl´ e LLL-reducing in quasi-linear time 11/04/2011 32/36

slide-91
SLIDE 91

Introduction Wishful thinking Deforming Truncating e L1

Reducedness strengthening

Used for the recursion leaves. Used for re-strengthening the reduction factors, loosened by the truncations. Returns (U, S) s.t.:

B(SUS−1) is reduced, max |uij| ≤ 2O(n), S is powers-of-2 diagonal matrix.

SUS−1 might not be small, but (S, U) is.

Damien Stehl´ e LLL-reducing in quasi-linear time 11/04/2011 32/36

slide-92
SLIDE 92

Introduction Wishful thinking Deforming Truncating e L1

Bounding the cost of Lift- L

1

1 Keep the ℓ/2 + O(n) top-most bits of B. 2 Recursively compute U1 s.t. σℓ/2BU1 reduced. 3 Apply U1 to σℓ/2B and keep the ℓ/2 + O(n) top-most bits. 4 Recursively compute U2 s.t. σℓ/2(σℓ/2BU1)U2 is reduced. 5 Return U1 · U2.

New representations for bases and transforms: Easy if assuming all handled bases are “balanced”. Else... An ℓ-lifing U is stored as (U′, D) with U = DU′D−1, max |u′

ij| ≤ 2ℓ+O(n) and D p-of-2 diagonal.

B is stored as (B′, D) with B = B′D and max |b′

i,j| ≤ 2O(ℓ+n)

and D p-of-2 diagonal.

Damien Stehl´ e LLL-reducing in quasi-linear time 11/04/2011 33/36

slide-93
SLIDE 93

Introduction Wishful thinking Deforming Truncating e L1

Bounding the cost of Lift- L

1

1 Keep the ℓ/2 + O(n) top-most bits of B. 2 Recursively compute U1 s.t. σℓ/2BU1 reduced. 3 Apply U1 to σℓ/2B and keep the ℓ/2 + O(n) top-most bits. 4 Recursively compute U2 s.t. σℓ/2(σℓ/2BU1)U2 is reduced. 5 Return U1 · U2.

New representations for bases and transforms: Easy if assuming all handled bases are “balanced”. Else... An ℓ-lifing U is stored as (U′, D) with U = DU′D−1, max |u′

ij| ≤ 2ℓ+O(n) and D p-of-2 diagonal.

B is stored as (B′, D) with B = B′D and max |b′

i,j| ≤ 2O(ℓ+n)

and D p-of-2 diagonal.

Damien Stehl´ e LLL-reducing in quasi-linear time 11/04/2011 33/36

slide-94
SLIDE 94

Introduction Wishful thinking Deforming Truncating e L1

Bounding the cost of Lift- L

1

1 Keep the ℓ/2 + O(n) top-most bits of B. 2 Recursively compute U1 s.t. σℓ/2BU1 reduced. 3 Apply U1 to σℓ/2B and keep the ℓ/2 + O(n) top-most bits. 4 Recursively compute U2 s.t. σℓ/2(σℓ/2BU1)U2 is reduced. 5 Return U1 · U2.

New representations for bases and transforms: Easy if assuming all handled bases are “balanced”. Else... An ℓ-lifing U is stored as (U′, D) with U = DU′D−1, max |u′

ij| ≤ 2ℓ+O(n) and D p-of-2 diagonal.

B is stored as (B′, D) with B = B′D and max |b′

i,j| ≤ 2O(ℓ+n)

and D p-of-2 diagonal.

Damien Stehl´ e LLL-reducing in quasi-linear time 11/04/2011 33/36

slide-95
SLIDE 95

Introduction Wishful thinking Deforming Truncating e L1

Handling the new representations

U → (U′, D) with U = DU′D−1. B → (B′, D) with B = B′D. (B1D1) · (D2U2D−1

2 ) is cheap if D−1 1

and D2 “coincide”. (D1U1D−1

1 ) · (D2U2D−1 2 ) is cheap if D1 and D2 “coincide”.

They always do coincide: D ≈ diag(r11, . . . , rnn). Final hassle: The bit-sizes of the DUD−1’s might grow too much. We sanatize them at every recursion leaf.

Damien Stehl´ e LLL-reducing in quasi-linear time 11/04/2011 34/36

slide-96
SLIDE 96

Introduction Wishful thinking Deforming Truncating e L1

Handling the new representations

U → (U′, D) with U = DU′D−1. B → (B′, D) with B = B′D. (B1D1) · (D2U2D−1

2 ) is cheap if D−1 1

and D2 “coincide”. (D1U1D−1

1 ) · (D2U2D−1 2 ) is cheap if D1 and D2 “coincide”.

They always do coincide: D ≈ diag(r11, . . . , rnn). Final hassle: The bit-sizes of the DUD−1’s might grow too much. We sanatize them at every recursion leaf.

Damien Stehl´ e LLL-reducing in quasi-linear time 11/04/2011 34/36

slide-97
SLIDE 97

Introduction Wishful thinking Deforming Truncating e L1

Handling the new representations

U → (U′, D) with U = DU′D−1. B → (B′, D) with B = B′D. (B1D1) · (D2U2D−1

2 ) is cheap if D−1 1

and D2 “coincide”. (D1U1D−1

1 ) · (D2U2D−1 2 ) is cheap if D1 and D2 “coincide”.

They always do coincide: D ≈ diag(r11, . . . , rnn). Final hassle: The bit-sizes of the DUD−1’s might grow too much. We sanatize them at every recursion leaf.

Damien Stehl´ e LLL-reducing in quasi-linear time 11/04/2011 34/36

slide-98
SLIDE 98

Introduction Wishful thinking Deforming Truncating e L1

Sanitizing the transforms

Assume B and σℓBU are reduced with ℓ ≥ 0 and U unimodular. Let ∆U s.t. |∆uij| ≤ 2−Ω(ℓ+n)rjj/rii, then: U + ∆U unimodular and σℓB(U + ∆U) reduced. A lift-reducing U may be large, but its bit-size can be made small. To “clean” a DUD′, we equalize D−1 and D′, and truncate. U → (U′, D, x) with U = 2xDU′D−1.

Damien Stehl´ e LLL-reducing in quasi-linear time 11/04/2011 35/36

slide-99
SLIDE 99

Introduction Wishful thinking Deforming Truncating e L1

Sanitizing the transforms

Assume B and σℓBU are reduced with ℓ ≥ 0 and U unimodular. Let ∆U s.t. |∆uij| ≤ 2−Ω(ℓ+n)rjj/rii, then: U + ∆U unimodular and σℓB(U + ∆U) reduced. A lift-reducing U may be large, but its bit-size can be made small. To “clean” a DUD′, we equalize D−1 and D′, and truncate. U → (U′, D, x) with U = 2xDU′D−1.

Damien Stehl´ e LLL-reducing in quasi-linear time 11/04/2011 35/36

slide-100
SLIDE 100

Introduction Wishful thinking Deforming Truncating e L1

Sanitizing the transforms

Assume B and σℓBU are reduced with ℓ ≥ 0 and U unimodular. Let ∆U s.t. |∆uij| ≤ 2−Ω(ℓ+n)rjj/rii, then: U + ∆U unimodular and σℓB(U + ∆U) reduced. A lift-reducing U may be large, but its bit-size can be made small. To “clean” a DUD′, we equalize D−1 and D′, and truncate. U → (U′, D, x) with U = 2xDU′D−1.

Damien Stehl´ e LLL-reducing in quasi-linear time 11/04/2011 35/36

slide-101
SLIDE 101

Introduction Wishful thinking Deforming Truncating e L1

Sanitizing the transforms

Assume B and σℓBU are reduced with ℓ ≥ 0 and U unimodular. Let ∆U s.t. |∆uij| ≤ 2−Ω(ℓ+n)rjj/rii, then: U + ∆U unimodular and σℓB(U + ∆U) reduced. A lift-reducing U may be large, but its bit-size can be made small. To “clean” a DUD′, we equalize D−1 and D′, and truncate. U → (U′, D, x) with U = 2xDU′D−1.

Damien Stehl´ e LLL-reducing in quasi-linear time 11/04/2011 35/36

slide-102
SLIDE 102

Introduction Wishful thinking Deforming Truncating e L1

Conclusion and open problems

  • L

1 reduces in time O(n5+εβ + nω+1+εβ1+ε).

This generalizes Knuth-Schn¨

  • nhage and Sch¨
  • nhage-Yap to

arbitrary dimensions. Three ingredients: deforming, truncating, Knuth-Sch¨

  • nhage.

1 Can we do better wrt n? [Sch¨

  • nhage’84, Storjohann’96, etc]

2 How does it compare to BKZ2? [Hanrot-Pujol-S’11] 3 Can we use these techniques for other objects? Damien Stehl´ e LLL-reducing in quasi-linear time 11/04/2011 36/36

slide-103
SLIDE 103

Introduction Wishful thinking Deforming Truncating e L1

Conclusion and open problems

  • L

1 reduces in time O(n5+εβ + nω+1+εβ1+ε).

This generalizes Knuth-Schn¨

  • nhage and Sch¨
  • nhage-Yap to

arbitrary dimensions. Three ingredients: deforming, truncating, Knuth-Sch¨

  • nhage.

1 Can we do better wrt n? [Sch¨

  • nhage’84, Storjohann’96, etc]

2 How does it compare to BKZ2? [Hanrot-Pujol-S’11] 3 Can we use these techniques for other objects? Damien Stehl´ e LLL-reducing in quasi-linear time 11/04/2011 36/36