Documentation

ConvexAnalysis.SmoothLowerBound

The lower complexity bound for smooth convex optimization #

No first-order method whose test points lie in the span of the gradients seen so far can minimize every convex function on ℝⁿ with an L-Lipschitz gradient faster than at the rate O(1 / k²) while 2 k + 1 ≤ n (Nesterov, Section 2.1.2). The proof is Nesterov's "worst function in the world", the quadratic f_k x = L / 4 (½ [(x⁽¹⁾)² + ∑_{i=1}^{k-1} (x⁽ⁱ⁾ - x⁽ⁱ⁺¹⁾)² + (x⁽ᵏ⁾)²] - x⁽¹⁾): at a point whose coordinates after the j-th vanish, its gradient has no nonzero coordinate after the (j + 1)-th, so after k gradients a method has reached only the first k coordinates, while the minimizer of f_{2k+1} is spread over 2 k + 1 of them. FISTA with g = 0, an accelerated gradient method, attains this bound up to the factor 64 / 3. Nesterov's bibliographical comments attribute the original lower bounds to Nemirovsky and Yudin (1983) and this proof to his lectures of 2004.

Main definitions #

Main statements #

Implementation notes #

References #

Tags #

lower complexity bound, first-order method, smooth convex optimization, worst function, Krylov subspace, optimal method, FISTA, accelerated gradient method, oracle complexity

Nesterov's worst function #

Nesterov's coordinate x⁽ʲ⁾ of x : ℝⁿ, counted from 1, for 1 ≤ j ≤ k (and j ≤ n), and 0 otherwise. In particular x⁽⁰⁾ = x⁽ᵏ⁺¹⁾ = 0, the boundary values in ConvexAnalysis.LowerBound.worstFunction L k.

Equations
Instances For
    theorem ConvexAnalysis.LowerBound.truncCoord_apply {n : ℕ} (k j : ℕ) (x : EuclideanSpace ℝ (Fin n)) :
    (truncCoord k j) x = if h : 1 ≤ j ∧ j ≤ k ∧ j ≤ n then x.ofLp ⟨j - 1, ⋯⟩ else 0

    x⁽ʲ⁾ in Lean's coordinates, counted from 0: x ⟨j - 1, _⟩ for 1 ≤ j ≤ k and j ≤ n.

    @[simp]

    x⁽⁰⁾ = 0.

    theorem ConvexAnalysis.LowerBound.truncCoord_of_lt {n k j : ℕ} (h : k < j) (x : EuclideanSpace ℝ (Fin n)) :
    (truncCoord k j) x = 0

    x⁽ʲ⁾ = 0 for j > k, in particular x⁽ᵏ⁺¹⁾ = 0.

    The difference operator D x = (x⁽¹⁾ - x⁽⁰⁾, x⁽²⁾ - x⁽¹⁾, …, x⁽ᵏ⁺¹⁾ - x⁽ᵏ⁾) from ℝⁿ to ℝᵏ⁺¹, for the coordinates ConvexAnalysis.LowerBound.truncCoord k, so x⁽⁰⁾ = x⁽ᵏ⁺¹⁾ = 0. Nesterov's tridiagonal matrix is A_k = D† D.

    Equations
    • One or more equations did not get rendered due to their size.
    Instances For
      @[simp]
      theorem ConvexAnalysis.LowerBound.truncDiff_apply {n : ℕ} (k : ℕ) (x : EuclideanSpace ℝ (Fin n)) (j : Fin (k + 1)) :
      ((truncDiff k) x).ofLp j = (truncCoord k (↑j + 1)) x - (truncCoord k ↑j) x

      The j-th entry of D x (counted from 0) is x⁽ʲ⁺¹⁾ - x⁽ʲ⁾.

      theorem ConvexAnalysis.LowerBound.sum_truncDiff_apply {n : ℕ} (k : ℕ) (x : EuclideanSpace ℝ (Fin n)) :
      ∑ j : Fin (k + 1), ((truncDiff k) x).ofLp j = 0

      The entries of D x sum to 0: they telescope from x⁽⁰⁾ = 0 to x⁽ᵏ⁺¹⁾ = 0.

      noncomputable def ConvexAnalysis.LowerBound.worstFunction {n : ℕ} (L : ℝ) (k : ℕ) (x : EuclideanSpace ℝ (Fin n)) :

      Nesterov's worst function (Nesterov, Section 2.1.2) f_k x = L / 4 (½ [(x⁽¹⁾)² + ∑_{i=1}^{k-1} (x⁽ⁱ⁾ - x⁽ⁱ⁺¹⁾)² + (x⁽ᵏ⁾)²] - x⁽¹⁾), written as L / 4 (½ ∑_{j=0}^{k} (x⁽ʲ⁺¹⁾ - x⁽ʲ⁾)² - x⁽¹⁾) with x⁽⁰⁾ = x⁽ᵏ⁺¹⁾ = 0. Nesterov defines it for 1 ≤ k ≤ n; here f_0 = 0 and f_k = f_n for k ≥ n.

      Equations
      • One or more equations did not get rendered due to their size.
      Instances For

        f_k x = L / 8 (‖D x - e₀‖² - 1) for the difference operator D.

        noncomputable def ConvexAnalysis.LowerBound.worstGradient {n : ℕ} (L : ℝ) (k : ℕ) (x : EuclideanSpace ℝ (Fin n)) :

        The gradient of ConvexAnalysis.LowerBound.worstFunction L k: L / 4 D† (D x - e₀) for the difference operator D = ConvexAnalysis.LowerBound.truncDiff k, that is Nesterov's L / 4 (A_k x - e₁) with A_k = D† D and e₁ = D† e₀; ConvexAnalysis.LowerBound.worstGradient_apply gives its coordinates.

        Equations
        • One or more equations did not get rendered due to their size.
        Instances For

          f_k is infinitely differentiable (it is a quadratic, so even analytic).

          f_k is convex for L ≥ 0 (0 ⪯ ∇² f_k in Nesterov, Section 2.1.2).

          ‖D x‖ ≤ 2 ‖x‖: (a - b)² ≤ 2 a² + 2 b², and every coordinate appears twice.

          The operator norm of the difference operator is at most 2.

          The gradient of f_k is L-Lipschitz for L ≥ 0 (∇² f_k ⪯ L I in Nesterov, Section 2.1.2): ‖A_k‖ = ‖D‖² ≤ 4.

          theorem ConvexAnalysis.LowerBound.worstGradient_apply {n : ℕ} (L : ℝ) (k : ℕ) (x : EuclideanSpace ℝ (Fin n)) (i : Fin n) :
          (worstGradient L k x).ofLp i = if ↑i < k then L / 4 * (2 * (truncCoord k (↑i + 1)) x - (truncCoord k ↑i) x - (truncCoord k (↑i + 2)) x - if ↑i = 0 then 1 else 0) else 0

          The gradient of f_k in coordinates: its i-th coordinate (counted from 0, Nesterov's (i + 1)-th) is L / 4 (2 x⁽ⁱ⁺¹⁾ - x⁽ⁱ⁾ - x⁽ⁱ⁺²⁾ - δ_{i0}) for i < k and 0 otherwise, the (i + 1)-th row of L / 4 (A_k x - e₁) with the tridiagonal matrix A_k of Nesterov, Section 2.1.2.

          theorem ConvexAnalysis.LowerBound.le_worstFunction {n : ℕ} {L : ℝ} (hL : 0 ≤ L) (k : ℕ) (x : EuclideanSpace ℝ (Fin n)) :
          L / 8 * (-1 + 1 / (↑k + 1)) ≤ worstFunction L k x

          The minimal value of f_k is at least L / 8 (-1 + 1 / (k + 1)), for all k and n (with equality for k ≤ n, ConvexAnalysis.LowerBound.worstFunction_worstPoint): the entries of D x - e₀ sum to -1, so ‖D x - e₀‖² ≥ 1 / (k + 1) by Cauchy–Schwarz.

          The subspaces ℝ^{k,n} and the span of the gradients #

          The subspace ℝ^{k,n} = {x ∈ ℝⁿ | x⁽ⁱ⁾ = 0 for k + 1 ≤ i ≤ n} of Nesterov, Section 2.1.2, in which only the first k coordinates can differ from 0.

          Equations
          Instances For
            theorem ConvexAnalysis.LowerBound.mem_coordSubspace {n k : ℕ} {x : EuclideanSpace ℝ (Fin n)} :
            x ∈ coordSubspace k ↔ ∀ (i : Fin n), k ≤ ↑i → x.ofLp i = 0

            x ∈ ℝ^{k,n} if and only if the coordinates x i with i ≥ k (counted from 0) vanish.

            ℝ^{k,n} ⊆ ℝ^{p,n} for k ≤ p.

            theorem ConvexAnalysis.LowerBound.truncCoord_eq_zero_of_mem {n k p j : ℕ} {x : EuclideanSpace ℝ (Fin n)} (hx : x ∈ coordSubspace k) (hj : k < j) :
            (truncCoord p j) x = 0

            On ℝ^{k,n} the coordinates after the k-th vanish.

            theorem ConvexAnalysis.LowerBound.truncCoord_eq_of_mem {n k p : ℕ} (hkp : k ≤ p) {x : EuclideanSpace ℝ (Fin n)} (hx : x ∈ coordSubspace k) (j : ℕ) :
            (truncCoord p j) x = (truncCoord k j) x

            On ℝ^{k,n} the cut-off after p ≥ k does not change the coordinates.

            The step of Nesterov, Lemma 2.1.5: the gradient of f_p maps ℝ^{k,n} into ℝ^{k+1,n}, since A_p is tridiagonal. No relation between p and k is needed.

            theorem ConvexAnalysis.LowerBound.worstFunction_eq_of_mem {n : ℕ} (L : ℝ) {k p : ℕ} (hkp : k ≤ p) {x : EuclideanSpace ℝ (Fin n)} (hx : x ∈ coordSubspace k) :

            f_p = f_k on ℝ^{k,n} for p ≥ k (Nesterov, Section 2.1.2, where k ≤ p ≤ n).

            theorem ConvexAnalysis.LowerBound.span_le_coordSubspace {n : ℕ} (L : ℝ) (p : ℕ) {x : ℕ → EuclideanSpace ℝ (Fin n)} {k : ℕ} :
            (∀ j < k, x j ∈ Submodule.span ℝ (Set.range fun (i : Fin j) => worstGradient L p (x ↑i))) → Submodule.span ℝ (Set.range fun (i : Fin k) => worstGradient L p (x ↑i)) ≤ coordSubspace k

            Nesterov, Lemma 2.1.5: if the test points satisfy x j ∈ L_j = span {∇ f_p (x 0), …, ∇ f_p (x (j - 1))} for j < k (for j = 0 this says x 0 = 0), then L_k ⊆ ℝ^{k,n}. Nesterov assumes k ≤ p; this is not needed.

            theorem ConvexAnalysis.LowerBound.le_worstFunction_of_mem_span {n : ℕ} {L : ℝ} (hL : 0 ≤ L) {k p : ℕ} (hkp : k ≤ p) {x : ℕ → EuclideanSpace ℝ (Fin n)} (hx : ∀ j < k, x j ∈ Submodule.span ℝ (Set.range fun (i : Fin j) => worstGradient L p (x ↑i))) {y : EuclideanSpace ℝ (Fin n)} (hy : y ∈ Submodule.span ℝ (Set.range fun (i : Fin k) => worstGradient L p (x ↑i))) :
            L / 8 * (-1 + 1 / (↑k + 1)) ≤ worstFunction L p y

            Nesterov, Corollary 2.1.1: under the hypothesis of ConvexAnalysis.LowerBound.span_le_coordSubspace and k ≤ p, every point y of span {∇ f_p (x 0), …, ∇ f_p (x (k - 1))}, in particular y = x k, has f_p y ≥ f_k* = L / 8 (-1 + 1 / (k + 1)).

            The minimizer #

            The minimizer x̄_k of f_k (Nesterov, Section 2.1.2): x̄_k⁽ⁱ⁾ = 1 - i / (k + 1) for 1 ≤ i ≤ k (Nesterov's coordinates, counted from 1) and x̄_k⁽ⁱ⁾ = 0 for i > k.

            Equations
            Instances For
              theorem ConvexAnalysis.LowerBound.worstPoint_apply {n : ℕ} (k : ℕ) (i : Fin n) :
              (worstPoint k).ofLp i = if ↑i < k then 1 - (↑↑i + 1) / (↑k + 1) else 0

              The coordinates of x̄_k, counted from 0.

              theorem ConvexAnalysis.LowerBound.truncCoord_worstPoint {n k : ℕ} (hk : k ≤ n) (j : ℕ) :
              (truncCoord k j) (worstPoint k) = if 1 ≤ j ∧ j ≤ k then 1 - ↑j / (↑k + 1) else 0

              Nesterov's coordinates of x̄_k: x̄_k⁽ʲ⁾ = 1 - j / (k + 1) for 1 ≤ j ≤ k, for k ≤ n.

              theorem ConvexAnalysis.LowerBound.truncDiff_worstPoint_sub_apply {n k : ℕ} (hk : k ≤ n) (j : Fin (k + 1)) :
              ((truncDiff k) (worstPoint k) - EuclideanSpace.single 0 1).ofLp j = -1 / (↑k + 1)

              All entries of D x̄_k - e₀ are -1 / (k + 1).

              ‖D x̄_k - e₀‖² = 1 / (k + 1), for k ≤ n.

              D x̄_k - e₀ is orthogonal to the range of D, for k ≤ n: its entries are equal and the entries of D w sum to 0.

              theorem ConvexAnalysis.LowerBound.worstFunction_worstPoint {n : ℕ} (L : ℝ) {k : ℕ} (hk : k ≤ n) :
              worstFunction L k (worstPoint k) = L / 8 * (-1 + 1 / (↑k + 1))

              The minimal value (2.1.17) of Nesterov, Section 2.1.2: f_k x̄_k = L / 8 (-1 + 1 / (k + 1)) for k ≤ n.

              The gradient of f_k vanishes at x̄_k, for k ≤ n: A_k x̄_k = e₁.

              theorem ConvexAnalysis.LowerBound.isMinOn_worstFunction {n : ℕ} {L : ℝ} (hL : 0 ≤ L) {k : ℕ} (hk : k ≤ n) :

              x̄_k minimizes f_k, for L ≥ 0 and k ≤ n (Nesterov, Section 2.1.2).

              theorem ConvexAnalysis.LowerBound.worstPoint_ne_zero {n k : ℕ} (hk : 0 < k) (hkn : k ≤ n) :

              x̄_k ≠ 0 for 1 ≤ k ≤ n: its first coordinate is 1 - 1 / (k + 1).

              x̄_k ∈ ℝ^{k,n}: its coordinates after the k-th vanish.

              theorem ConvexAnalysis.LowerBound.inner_eq_zero_of_mem_coordSubspace {n k : ℕ} {a u : EuclideanSpace ℝ (Fin n)} (ha : a ∈ coordSubspace k) (hu : ∀ (i : Fin n), ↑i < k → u.ofLp i = 0) :
              inner ℝ a u = 0

              A point of ℝ^{k,n} is orthogonal to every point whose first k coordinates vanish.

              theorem ConvexAnalysis.LowerBound.truncDiff_eq_zero_iff {n k : ℕ} {u : EuclideanSpace ℝ (Fin n)} :
              (truncDiff k) u = 0 ↔ ∀ (i : Fin n), ↑i < k → u.ofLp i = 0

              The kernel of the difference operator: D u = 0 iff the first k coordinates of u vanish (counted from 0), since the entries of D u are the differences of consecutive coordinates and u⁽⁰⁾ = 0.

              f_k is a quadratic around its minimizer: f_k w = f_k x̄_k + L / 8 ‖D (w - x̄_k)‖² for k ≤ n and the difference operator D, since D x̄_k - e₀ is orthogonal to the range of D (ConvexAnalysis.LowerBound.inner_truncDiff_worstPoint_sub).

              theorem ConvexAnalysis.LowerBound.isMinOn_worstFunction_iff {n : ℕ} {L : ℝ} (hL : 0 < L) {k : ℕ} (hk : k ≤ n) {w : EuclideanSpace ℝ (Fin n)} :
              IsMinOn (worstFunction L k) Set.univ w ↔ ∀ (i : Fin n), ↑i < k → w.ofLp i = (worstPoint k).ofLp i

              The minimizers of f_k, for L > 0 and k ≤ n: w minimizes f_k iff it agrees with x̄_k in the first k coordinates (f_k does not depend on the others). So x̄_k is the only minimizer for k = n, and for k < n the minimizers form the affine subspace x̄_k + {u | u⁽¹⁾ = ⋯ = u⁽ᵏ⁾ = 0}.

              x̄_k is the minimizer of f_k of least norm: for L > 0, k ≤ n and every minimizer w of f_k, ‖w‖² = ‖x̄_k‖² + ‖w - x̄_k‖², since w - x̄_k vanishes in the first k coordinates (ConvexAnalysis.LowerBound.isMinOn_worstFunction_iff).

              theorem ConvexAnalysis.LowerBound.norm_worstPoint_sq {n k : ℕ} (hk : k ≤ n) :
              ‖worstPoint k‖ ^ 2 = ↑k * (2 * ↑k + 1) / (6 * (↑k + 1))

              ‖x̄_k‖² = k (2 k + 1) / (6 (k + 1)) for k ≤ n, the value computed in (2.1.19) of Nesterov, Section 2.1.2 before it is bounded with (2.1.18).

              theorem ConvexAnalysis.LowerBound.norm_worstPoint_sq_le {n k : ℕ} (hk : k ≤ n) :
              ‖worstPoint k‖ ^ 2 ≤ (↑k + 1) / 3

              (2.1.19) of Nesterov, Section 2.1.2: ‖x̄_k‖² ≤ (k + 1) / 3 for k ≤ n.

              theorem ConvexAnalysis.LowerBound.le_norm_sub_worstPoint_sq {n k : ℕ} (hkn : 2 * k + 1 ≤ n) {y : EuclideanSpace ℝ (Fin n)} (hy : y ∈ coordSubspace k) :
              (2 * ↑k ^ 2 + 7 * ↑k + 6) / (24 * (↑k + 1)) ≤ ‖y - worstPoint (2 * k + 1)‖ ^ 2

              A point of ℝ^{k,n} is far from x̄_{2k+1}: it misses the coordinates k + 1, …, 2 k + 1 of x̄_{2k+1}, whose squares sum to (2 k² + 7 k + 6) / (24 (k + 1)) (the proof of Nesterov, Theorem 2.1.7).

              The lower bound #

              theorem ConvexAnalysis.LowerBound.le_worstFunction_sub_of_mem_coordSubspace {n : ℕ} {L : ℝ} (hL : 0 ≤ L) {k : ℕ} (hkn : 2 * k + 1 ≤ n) {y : EuclideanSpace ℝ (Fin n)} (hy : y ∈ coordSubspace k) :
              3 * L * ‖worstPoint (2 * k + 1)‖ ^ 2 / (32 * (↑k + 1) ^ 2) ≤ worstFunction L (2 * k + 1) y - worstFunction L (2 * k + 1) (worstPoint (2 * k + 1))

              The gap in the function values (the first bound in the proof of Nesterov, Theorem 2.1.7, for x0 = 0): for L ≥ 0, 2 k + 1 ≤ n and y ∈ ℝ^{k,n}, f y - f* ≥ 3 L ‖x̄‖² / (32 (k + 1)²) for f = f_{2k+1} and its minimizer x̄ = x̄_{2k+1}.

              theorem ConvexAnalysis.LowerBound.norm_sq_div_eight_le_norm_sub_sq {n : ℕ} {L : ℝ} (hL : 0 < L) {k : ℕ} (hkn : 2 * k + 1 ≤ n) {y w : EuclideanSpace ℝ (Fin n)} (hy : y ∈ coordSubspace k) (hw : IsMinOn (worstFunction L (2 * k + 1)) Set.univ w) :
              ‖w‖ ^ 2 / 8 ≤ ‖y - w‖ ^ 2

              The distance to every minimizer (the second bound in the proof of Nesterov, Theorem 2.1.7, for x0 = 0 and every minimizer instead of x̄_{2k+1}): for L > 0, 2 k + 1 ≤ n, y ∈ ℝ^{k,n} and every minimizer w of f_{2k+1}, ‖w‖² / 8 ≤ ‖y - w‖². The minimizer w agrees with x̄_{2k+1} in the first 2 k + 1 coordinates, and its other coordinates add the same amount to ‖w‖² and to ‖y - w‖².

              theorem ConvexAnalysis.LowerBound.exists_le_sub_of_mem_span {n : ℕ} {L : ℝ} (hL : 0 < L) {k : ℕ} (hkn : 2 * k + 1 ≤ n) (x0 : EuclideanSpace ℝ (Fin n)) :
              ∃ (f : EuclideanSpace ℝ (Fin n) → ℝ) (f' : EuclideanSpace ℝ (Fin n) → EuclideanSpace ℝ (Fin n)) (xs : EuclideanSpace ℝ (Fin n)), ContDiff ℝ (↑⊤) f ∧ ConvexOn ℝ Set.univ f ∧ (∀ (x : EuclideanSpace ℝ (Fin n)), HasGradientAt f (f' x) x) ∧ (∀ (x y : EuclideanSpace ℝ (Fin n)), ‖f' x - f' y‖ ≤ L * ‖x - y‖) ∧ IsMinOn f Set.univ xs ∧ xs ≠ x0 ∧ (∀ (z : EuclideanSpace ℝ (Fin n)), IsMinOn f Set.univ z → ‖x0 - xs‖ ≤ ‖x0 - z‖) ∧ ∀ (x : ℕ → EuclideanSpace ℝ (Fin n)), x 0 = x0 → (∀ j < k, x j - x 0 ∈ Submodule.span ℝ (Set.range fun (i : Fin j) => f' (x ↑i))) → ∀ (y : EuclideanSpace ℝ (Fin n)), y - x 0 ∈ Submodule.span ℝ (Set.range fun (i : Fin k) => f' (x ↑i)) → 3 * L * ‖x0 - xs‖ ^ 2 / (32 * (↑k + 1) ^ 2) ≤ f y - f xs ∧ ∀ (z : EuclideanSpace ℝ (Fin n)), IsMinOn f Set.univ z → ‖x0 - z‖ ^ 2 / 8 ≤ ‖y - z‖ ^ 2

              The lower complexity bound for smooth convex optimization Nesterov, Theorem 2.1.7, for every point of the affine span of the gradients. For L > 0, 2 k + 1 ≤ n (Nesterov: 1 ≤ k ≤ (n - 1) / 2; k = 0 is allowed here) and every x0 : ℝⁿ there are an infinitely differentiable convex f with an L-Lipschitz gradient f' and a minimizer xs ≠ x0 of f nearest to x0, ‖x0 - xs‖ ≤ ‖x0 - z‖ for every minimizer z (so ‖x0 - xs‖ is the distance from x0 to the solution set), such that: for every sequence of test points x with x 0 = x0 that satisfies Assumption 2.1.4 for j < k, x j ∈ x 0 + span {f' (x 0), …, f' (x (j - 1))}, every point y ∈ x 0 + span {f' (x 0), …, f' (x (k - 1))} has f y - f* ≥ 3 L ‖x0 - xs‖² / (32 (k + 1)²), and ‖y - z‖² ≥ ‖x0 - z‖² / 8 for every minimizer z. The function is f x = f_{2k+1} (x - x0); its minimizers are the points that agree with xs = x0 + x̄_{2k+1} in the first 2 k + 1 coordinates (ConvexAnalysis.LowerBound.isMinOn_worstFunction_iff), so xs is the only one for n = 2 k + 1. The first bound does not hold with every minimizer in place of xs, since ‖x0 - z‖ is unbounded on the minimizers for n > 2 k + 1. Nesterov's statement is the case y = x k (ConvexAnalysis.LowerBound.exists_le_sub_of_forall_mem_span).

              theorem ConvexAnalysis.LowerBound.exists_le_sub_of_forall_mem_span {n : ℕ} {L : ℝ} (hL : 0 < L) {k : ℕ} (hkn : 2 * k + 1 ≤ n) (x0 : EuclideanSpace ℝ (Fin n)) :
              ∃ (f : EuclideanSpace ℝ (Fin n) → ℝ) (f' : EuclideanSpace ℝ (Fin n) → EuclideanSpace ℝ (Fin n)) (xs : EuclideanSpace ℝ (Fin n)), ContDiff ℝ (↑⊤) f ∧ ConvexOn ℝ Set.univ f ∧ (∀ (x : EuclideanSpace ℝ (Fin n)), HasGradientAt f (f' x) x) ∧ (∀ (x y : EuclideanSpace ℝ (Fin n)), ‖f' x - f' y‖ ≤ L * ‖x - y‖) ∧ IsMinOn f Set.univ xs ∧ xs ≠ x0 ∧ (∀ (z : EuclideanSpace ℝ (Fin n)), IsMinOn f Set.univ z → ‖x0 - xs‖ ≤ ‖x0 - z‖) ∧ ∀ (x : ℕ → EuclideanSpace ℝ (Fin n)), x 0 = x0 → (∀ j ≤ k, x j - x 0 ∈ Submodule.span ℝ (Set.range fun (i : Fin j) => f' (x ↑i))) → 3 * L * ‖x0 - xs‖ ^ 2 / (32 * (↑k + 1) ^ 2) ≤ f (x k) - f xs ∧ ∀ (z : EuclideanSpace ℝ (Fin n)), IsMinOn f Set.univ z → ‖x0 - z‖ ^ 2 / 8 ≤ ‖x k - z‖ ^ 2

              The lower complexity bound for smooth convex optimization in the form of Nesterov, Theorem 2.1.7: for L > 0, 2 k + 1 ≤ n and every x0 there is an infinitely differentiable convex f with an L-Lipschitz gradient f' and a minimizer xs ≠ x0 nearest to x0 such that every sequence x with x 0 = x0 and Assumption 2.1.4, x j ∈ x 0 + span {f' (x 0), …, f' (x (j - 1))} for j ≤ k, has f (x k) - f xs ≥ 3 L ‖x0 - xs‖² / (32 (k + 1)²) and ‖x k - z‖² ≥ ‖x0 - z‖² / 8 for every minimizer z. The case y = x k of ConvexAnalysis.LowerBound.exists_le_sub_of_mem_span.

              FISTA is optimal up to a constant #

              theorem ConvexAnalysis.sub_mem_span_of_accelerated {H : Type u_1} [AddCommGroup H] [Module ℝ H] {f' : H → H} {c β : ℕ → ℝ} {x y : ℕ → H} (hy0 : y 0 = x 0) (hx : ∀ (k : ℕ), x (k + 1) = y k - c k • f' (y k)) (hy : ∀ (k : ℕ), y (k + 1) = x (k + 1) + β k • (x (k + 1) - x k)) (k : ℕ) :
              x k - x 0 ∈ Submodule.span ℝ (Set.range fun (i : Fin k) => f' (y ↑i)) ∧ y k - x 0 ∈ Submodule.span ℝ (Set.range fun (i : Fin k) => f' (y ↑i))

              Accelerated gradient methods satisfy Assumption 2.1.4 of Nesterov, Section 2.1.2: for y 0 = x 0, x (k + 1) = y k - c k f' (y k) and y (k + 1) = x (k + 1) + β k (x (k + 1) - x k) with any steps c k (constant, from a line search or from backtracking) and momentum β k, both x k and y k lie in x 0 + span {f' (y 0), …, f' (y (k - 1))}. This covers FISTA with g = 0 and gradient descent (β = 0).

              theorem ConvexAnalysis.LowerBound.exists_le_sub_le_of_fista {n : ℕ} {L : ℝ} (hL : 0 < L) {N : ℕ} (hN : 2 * N + 3 ≤ n) (x0 : EuclideanSpace ℝ (Fin n)) :
              ∃ (f : EuclideanSpace ℝ (Fin n) → ℝ) (f' : EuclideanSpace ℝ (Fin n) → EuclideanSpace ℝ (Fin n)) (xs : EuclideanSpace ℝ (Fin n)), ContDiff ℝ (↑⊤) f ∧ ConvexOn ℝ Set.univ f ∧ (∀ (x : EuclideanSpace ℝ (Fin n)), HasGradientAt f (f' x) x) ∧ (∀ (x y : EuclideanSpace ℝ (Fin n)), ‖f' x - f' y‖ ≤ L * ‖x - y‖) ∧ IsMinOn f Set.univ xs ∧ xs ≠ x0 ∧ (∀ (z : EuclideanSpace ℝ (Fin n)), IsMinOn f Set.univ z → ‖x0 - xs‖ ≤ ‖x0 - z‖) ∧ ∀ (x y : ℕ → EuclideanSpace ℝ (Fin n)) (t : ℕ → ℝ), x 0 = x0 → y 0 = x 0 → t 0 = 1 → (∀ (k : ℕ), t (k + 1) = (1 + √(1 + 4 * t k ^ 2)) / 2) → (∀ (k : ℕ), x (k + 1) = y k - L⁻¹ • f' (y k)) → (∀ (k : ℕ), y (k + 1) = x (k + 1) + ((t k - 1) / t (k + 1)) • (x (k + 1) - x k)) → 3 * L * ‖x0 - xs‖ ^ 2 / (32 * (↑N + 2) ^ 2) ≤ f (x (N + 1)) - f xs ∧ f (x (N + 1)) - f xs ≤ 2 * L * ‖x0 - xs‖ ^ 2 / (↑N + 2) ^ 2

              FISTA is optimal up to the factor 64 / 3 (the optimality of fast gradient methods, Nesterov, Section 2.2.1). For L > 0, 2 N + 3 ≤ n and every x0 : ℝⁿ there are an infinitely differentiable convex f with an L-Lipschitz gradient f' and a minimizer xs ≠ x0 nearest to x0 on which FISTA with g = 0 and the Beck–Teboulle momentum (Beck–Teboulle, the accelerated gradient method x (k + 1) = y k - f' (y k) / L, y (k + 1) = x (k + 1) + ((t k - 1) / t (k + 1)) (x (k + 1) - x k), y 0 = x 0 = x0) has 3 L ‖x0 - xs‖² / (32 (N + 2)²) ≤ f (x (N + 1)) - f xs ≤ 2 L ‖x0 - xs‖² / (N + 2)². The upper bound is ConvexAnalysis.acceleratedGradient_rate (Beck, Theorem 10.34), which holds for every such f; the lower bound is ConvexAnalysis.LowerBound.exists_le_sub_of_mem_span with k = N + 1 and holds for every method whose output after N + 1 gradients lies in the span of these gradients (ConvexAnalysis.sub_mem_span_of_accelerated). So no such method has a better worst-case rate than FISTA by more than the factor 2 / (3 / 32) = 64 / 3, as long as 2 N + 3 ≤ n.