Documentation

ConvexAnalysis.Splitting

Splitting methods for the sum of two maximal monotone operators #

Splitting methods find a zero of A + B, 0 ∈ A x + B x, for maximal monotone operators A, B : H → Set H on a real Hilbert space, using the resolvents J_{γ A} = (id + γ A)⁻¹ and J_{γ B} (Minty's theorem, Minty.lean) separately and never the resolvent of the sum. With A = ∂g, B = ∇f (forward–backward) or A = ∂f, B = ∂g (Douglas–Rachford) they minimize f + g. Both methods here are fixed point iterations of averaged maps, so their convergence follows from the Krasnosel'skiĭ–Mann theorem in Fejer.lean.

Main definitions #

Main statements #

Implementation notes #

The multiple γ A is written fun y ↦ γ • A y and the resolvent as the function ConvexAnalysis.resolventMap, as in Minty.lean. The zeros of A + B are written 0 ∈ A z + B z (pointwise sum of sets), and 0 ∈ A z + {B z} for a single-valued B, as in ConvexAnalysis.IsMaximalMonotone.resolventMap_const_smul_sub_smul_eq_self_iff. Cocoercivity of B is the hypothesis ‖B x - B y‖² ≤ L ⟪B x - B y, x - y⟫ with L ≥ 0, as in Cocoercive.lean: B is β-cocoercive in the sense of [BC17] with β = 1 / L, and the step condition γ < 2 β of [BC17] is γ L < 2. [BC17] assumes β > 0; L = 0, a constant B, is included here.

BC, (26.6) defines T_{A, B} = J_A R_B + id - J_B, and the iteration BC, (26.29) applies the resolvent of B first. Here the resolvent of A is applied first: ConvexAnalysis.douglasRachfordStep A B γ is [BC17]'s T_{γ B, γ A}, and the results of [BC17] are used with A and B exchanged. The orientation is chosen so that A = ∂f gives the shadow sequence prox_{γ f} x k. The governing sequence converges weakly by the Krasnosel'skiĭ–Mann theorem for the firmly nonexpansive Douglas–Rachford operator. For the shadow sequence, [BC17] shows that the operator A × B⁻¹ plus a skew operator is maximal monotone (Proposition 26.5); here the limit of the monotonicity inequalities is tested directly with the resolvents of A and B, which needs only Minty's theorem (ConvexAnalysis.IsMaximalMonotone.mem_and_neg_mem_of_tendsto_toWeakSpace).

References #

Tags #

operator splitting, forward–backward splitting, Douglas–Rachford splitting, maximal monotone operator, resolvent, cocoercive operator, Krasnosel'skiĭ–Mann iteration, weak convergence

theorem ConvexAnalysis.IsMaximalMonotone.mem_and_neg_mem_of_tendsto_toWeakSpace {H : Type u_1} [NormedAddCommGroup H] [InnerProductSpace ℝ H] {A B : H → Set H} [CompleteSpace H] (hA : IsMaximalMonotone A) (hB : IsMaximalMonotone B) {x u y v : ℕ → H} {z w : H} (hu : ∀ (k : ℕ), u k ∈ A (x k)) (hv : ∀ (k : ℕ), v k ∈ B (y k)) (hx : Filter.Tendsto (fun (k : ℕ) => (toWeakSpace ℝ H) (x k)) Filter.atTop (nhds ((toWeakSpace ℝ H) z))) (hw : Filter.Tendsto (fun (k : ℕ) => (toWeakSpace ℝ H) (u k)) Filter.atTop (nhds ((toWeakSpace ℝ H) w))) (hxy : Filter.Tendsto (fun (k : ℕ) => x k - y k) Filter.atTop (nhds 0)) (huv : Filter.Tendsto (fun (k : ℕ) => u k + v k) Filter.atTop (nhds 0)) :
w ∈ A z ∧ -w ∈ B z

Weak closedness of a pair of maximal monotone operators BC, Corollary 26.6: if u k ∈ A (x k), v k ∈ B (y k), x ⇀ z and u ⇀ w weakly, and x k - y k → 0 and u k + v k → 0 in norm, then w ∈ A z and -w ∈ B z, so 0 ∈ A z + B z. The graph of a maximal monotone operator is not weakly sequentially closed; here the coupling of the two sequences makes the cross terms ⟪x k, u k⟫ + ⟪y k, v k⟫ converge. [BC17] prints the conclusion as (x, -u) ∈ gra A and (x, u) ∈ gra B, a sign slip: BC, Proposition 26.5 with L = id and the proof of BC, Theorem 26.11 ((26.35)–(26.36)) give the form stated here. [BC17] derives the result from BC, Proposition 26.5; here the limit of the monotonicity inequalities is tested with the resolvents J_A (z + w) and J_B (z - w).

noncomputable def ConvexAnalysis.forwardBackwardStep {H : Type u_1} [NormedAddCommGroup H] [InnerProductSpace ℝ H] (A : H → Set H) (B : H → H) (γ : ℝ) (x : H) :
H

The forward–backward operator of A and a single-valued B with step γ, T x = J_{γ A} (x - γ B x) (BC, (26.7) is T_{γ A, γ B}): an explicit step with B followed by an implicit step with A.

Equations
Instances For
    theorem ConvexAnalysis.proxGradStep_eq_forwardBackwardStep {H : Type u_1} [NormedAddCommGroup H] [InnerProductSpace ℝ H] {γ : ℝ} [CompleteSpace H] {f' : H → H} {g : H → EReal} (hg : ConvexFun g) (hglsc : LowerSemicontinuous g) (hgp : IsProper g) (hγ : 0 < γ) :

    The proximal gradient step is the forward–backward operator of ∂g and f': prox_{γ g} (x - γ f' x) = J_{γ ∂g} (x - γ f' x), for a proper lower semicontinuous convex g and γ > 0.

    theorem ConvexAnalysis.IsMaximalMonotone.isAveraged_forwardBackwardStep {H : Type u_1} [NormedAddCommGroup H] [InnerProductSpace ℝ H] {A : H → Set H} {γ : ℝ} {B : H → H} {L : ℝ} [CompleteSpace H] (hA : IsMaximalMonotone A) (hL0 : 0 ≤ L) (hB : ∀ (x y : H), ‖B x - B y‖ ^ 2 ≤ L * inner ℝ (B x - B y) (x - y)) (hγ : 0 < γ) (hγL : γ * L < 2) :
    IsAveraged (2 / (4 - γ * L)) (forwardBackwardStep A B γ)

    The forward–backward operator is averaged BC, Proposition 26.1 (iv)(d) (there for L > 0): for a maximal monotone A and a 1 / L-cocoercive B, ‖B x - B y‖² ≤ L ⟪B x - B y, x - y⟫ with L ≥ 0, the operator x ↦ J_{γ A} (x - γ B x) is 2 / (4 - γ L)-averaged for 0 < γ < 2 / L.

    The fixed points of the forward–backward operator x ↦ J_{γ A} (x - γ B x), for a maximal monotone A, any B : H → H and γ > 0, are the zeros of A + B BC, Proposition 26.1 (iv)(a).

    theorem ConvexAnalysis.IsMaximalMonotone.forwardBackward_relaxed_exists_tendsto_toWeakSpace {H : Type u_1} [NormedAddCommGroup H] [InnerProductSpace ℝ H] {A : H → Set H} {γ : ℝ} {B : H → H} {L : ℝ} {x : ℕ → H} [CompleteSpace H] (hA : IsMaximalMonotone A) (hL0 : 0 ≤ L) (hB : ∀ (x y : H), ‖B x - B y‖ ^ 2 ≤ L * inner ℝ (B x - B y) (x - y)) (hγ : 0 < γ) (hγL : γ * L < 2) {ρ : ℕ → ℝ} (hρ : ∀ (k : ℕ), ρ k ∈ Set.Icc 0 (2 - γ * L / 2)) (hsum : Filter.Tendsto (fun (N : ℕ) => ∑ k ∈ Finset.range N, ρ k * (2 - γ * L / 2 - ρ k)) Filter.atTop Filter.atTop) (hx : ∀ (k : ℕ), x (k + 1) = x k + ρ k • (forwardBackwardStep A B γ (x k) - x k)) {xs : H} (hxs : 0 ∈ A xs + {B xs}) :
    ∃ (z : H), 0 ∈ A z + {B z} ∧ Filter.Tendsto (fun (k : ℕ) => (toWeakSpace ℝ H) (x k)) Filter.atTop (nhds ((toWeakSpace ℝ H) z))

    Convergence of the relaxed forward–backward method BC, Theorem 26.14 (i) (there for L > 0): for a maximal monotone A, a 1 / L-cocoercive B (L ≥ 0), a step 0 < γ < 2 / L, relaxation parameters ρ k ∈ [0, δ] with δ = 2 - γ L / 2 and ∑ ρ k (δ - ρ k) = ∞, and a zero of A + B, the iterates x (k + 1) = x k + ρ k (J_{γ A} (x k - γ B x k) - x k) converge weakly to a zero of A + B.

    theorem ConvexAnalysis.IsMaximalMonotone.forwardBackward_exists_tendsto_toWeakSpace {H : Type u_1} [NormedAddCommGroup H] [InnerProductSpace ℝ H] {A : H → Set H} {γ : ℝ} {B : H → H} {L : ℝ} {x : ℕ → H} [CompleteSpace H] (hA : IsMaximalMonotone A) (hL0 : 0 ≤ L) (hB : ∀ (x y : H), ‖B x - B y‖ ^ 2 ≤ L * inner ℝ (B x - B y) (x - y)) (hγ : 0 < γ) (hγL : γ * L < 2) (hx : ∀ (k : ℕ), x (k + 1) = forwardBackwardStep A B γ (x k)) {xs : H} (hxs : 0 ∈ A xs + {B xs}) :
    ∃ (z : H), 0 ∈ A z + {B z} ∧ Filter.Tendsto (fun (k : ℕ) => (toWeakSpace ℝ H) (x k)) Filter.atTop (nhds ((toWeakSpace ℝ H) z))

    Convergence of the forward–backward method BC, Theorem 26.14 (i) (the case ρ k = 1; there for L > 0): for a maximal monotone A, a 1 / L-cocoercive B (L ≥ 0), a step 0 < γ < 2 / L and a zero of A + B, the iterates x (k + 1) = J_{γ A} (x k - γ B x k) converge weakly to a zero of A + B.

    theorem ConvexAnalysis.IsMaximalMonotone.forwardBackward_relaxed_exists_tendsto {H : Type u_1} [NormedAddCommGroup H] [InnerProductSpace ℝ H] {A : H → Set H} {γ : ℝ} {B : H → H} {L : ℝ} {x : ℕ → H} [FiniteDimensional ℝ H] (hA : IsMaximalMonotone A) (hL0 : 0 ≤ L) (hB : ∀ (x y : H), ‖B x - B y‖ ^ 2 ≤ L * inner ℝ (B x - B y) (x - y)) (hγ : 0 < γ) (hγL : γ * L < 2) {ρ : ℕ → ℝ} (hρ : ∀ (k : ℕ), ρ k ∈ Set.Icc 0 (2 - γ * L / 2)) (hsum : Filter.Tendsto (fun (N : ℕ) => ∑ k ∈ Finset.range N, ρ k * (2 - γ * L / 2 - ρ k)) Filter.atTop Filter.atTop) (hx : ∀ (k : ℕ), x (k + 1) = x k + ρ k • (forwardBackwardStep A B γ (x k) - x k)) {xs : H} (hxs : 0 ∈ A xs + {B xs}) :
    ∃ (z : H), 0 ∈ A z + {B z} ∧ Filter.Tendsto x Filter.atTop (nhds z)

    Convergence of the relaxed forward–backward method in finite dimension (from BC, Theorem 26.14 (i)): the iterates converge in norm to a zero of A + B.

    theorem ConvexAnalysis.IsMaximalMonotone.forwardBackward_exists_tendsto {H : Type u_1} [NormedAddCommGroup H] [InnerProductSpace ℝ H] {A : H → Set H} {γ : ℝ} {B : H → H} {L : ℝ} {x : ℕ → H} [FiniteDimensional ℝ H] (hA : IsMaximalMonotone A) (hL0 : 0 ≤ L) (hB : ∀ (x y : H), ‖B x - B y‖ ^ 2 ≤ L * inner ℝ (B x - B y) (x - y)) (hγ : 0 < γ) (hγL : γ * L < 2) (hx : ∀ (k : ℕ), x (k + 1) = forwardBackwardStep A B γ (x k)) {xs : H} (hxs : 0 ∈ A xs + {B xs}) :
    ∃ (z : H), 0 ∈ A z + {B z} ∧ Filter.Tendsto x Filter.atTop (nhds z)

    Convergence of the forward–backward method in finite dimension (from BC, Theorem 26.14 (i)): the iterates x (k + 1) = J_{γ A} (x k - γ B x k) converge in norm to a zero of A + B.

    theorem ConvexAnalysis.IsMaximalMonotone.forwardBackward_relaxed_tendsto_apply {H : Type u_1} [NormedAddCommGroup H] [InnerProductSpace ℝ H] {A : H → Set H} {γ : ℝ} {B : H → H} {L : ℝ} {x : ℕ → H} [CompleteSpace H] (hA : IsMaximalMonotone A) (hL0 : 0 ≤ L) (hB : ∀ (x y : H), ‖B x - B y‖ ^ 2 ≤ L * inner ℝ (B x - B y) (x - y)) (hγ : 0 < γ) (hγL : γ * L < 2) {ρ : ℕ → ℝ} (hρ : ∀ (k : ℕ), ρ k ∈ Set.Icc 0 (2 - γ * L / 2)) (hsum : Filter.Tendsto (fun (N : ℕ) => ∑ k ∈ Finset.range N, ρ k * (2 - γ * L / 2 - ρ k)) Filter.atTop Filter.atTop) (hx : ∀ (k : ℕ), x (k + 1) = x k + ρ k • (forwardBackwardStep A B γ (x k) - x k)) {xs : H} (hxs : 0 ∈ A xs + {B xs}) :
    Filter.Tendsto (fun (k : ℕ) => B (x k)) Filter.atTop (nhds (B xs))

    Strong convergence of the cocoercive part along the forward–backward method BC, Theorem 26.14 (ii) (there for L > 0): under the hypotheses of ConvexAnalysis.IsMaximalMonotone.forwardBackward_relaxed_exists_tendsto_toWeakSpace, B (x k) → B x⋆ in norm for every zero x⋆ of A + B. So B is constant on the zeros of A + B, and B x⋆ is the unique dual solution.

    theorem ConvexAnalysis.zero_mem_subdifferential_add_singleton_iff {H : Type u_1} [NormedAddCommGroup H] [InnerProductSpace ℝ H] {f : H → ℝ} {f' : H → H} {g : H → EReal} [CompleteSpace H] (hf : ConvexOn ℝ Set.univ f) {z : H} (hf' : HasGradientAt f (f' z) z) (hg : ConvexFun g) (hgp : IsProper g) :
    0 ∈ subdifferential g z + {f' z} ↔ IsMinOn (fun (w : H) => ↑(f w) + g w) Set.univ z

    For a convex f differentiable at z and a proper convex g, the zeros of ∂g + f' are the minimizers of f + g: 0 ∈ ∂g z + {f' z} iff z minimizes f + g.

    theorem ConvexAnalysis.forwardBackward_relaxed_tendsto_gradient {H : Type u_1} [NormedAddCommGroup H] [InnerProductSpace ℝ H] {γ : ℝ} {f : H → ℝ} {f' : H → H} {L : ℝ} {g : H → EReal} {x : ℕ → H} [CompleteSpace H] (hf : ConvexOn ℝ Set.univ f) (hf' : ∀ (x : H), HasGradientAt f (f' x) x) (hL0 : 0 ≤ L) (hL : ∀ (x y : H), ‖f' x - f' y‖ ≤ L * ‖x - y‖) (hg : ConvexFun g) (hglsc : LowerSemicontinuous g) (hgp : IsProper g) (hγ : 0 < γ) (hγL : γ * L < 2) {ρ : ℕ → ℝ} (hρ : ∀ (k : ℕ), ρ k ∈ Set.Icc 0 (2 - γ * L / 2)) (hsum : Filter.Tendsto (fun (N : ℕ) => ∑ k ∈ Finset.range N, ρ k * (2 - γ * L / 2 - ρ k)) Filter.atTop Filter.atTop) (hx : ∀ (k : ℕ), x (k + 1) = x k + ρ k • (proxGradStep f' g γ (x k) - x k)) {xs : H} (hxs : IsMinOn (fun (w : H) => ↑(f w) + g w) Set.univ xs) :
    Filter.Tendsto (fun (k : ℕ) => f' (x k)) Filter.atTop (nhds (f' xs))

    Strong convergence of the gradients along the relaxed proximal gradient method BC, Corollary 28.9 (ii) (there with f and g exchanged and L > 0): under the hypotheses of ConvexAnalysis.forwardBackward_relaxed_exists_tendsto_toWeakSpace, f' (x k) → f' x⋆ in norm for every minimizer x⋆ of f + g. This is the forward–backward method with A = ∂g and B = f' (ConvexAnalysis.IsMaximalMonotone.forwardBackward_relaxed_tendsto_apply).

    noncomputable def ConvexAnalysis.douglasRachfordStep {H : Type u_1} [NormedAddCommGroup H] [InnerProductSpace ℝ H] (A B : H → Set H) (γ : ℝ) (x : H) :
    H

    The Douglas–Rachford operator of A and B with step γ, T x = x + J_{γ B} (2 J_{γ A} x - x) - J_{γ A} x, which applies J_{γ A} first. This is [BC17]'s T_{γ B, γ A} of BC, (26.6); [BC17]'s theorems use T_{γ A, γ B}, which applies J_{γ B} first. With the reflected resolvents R = 2 J - id it is (id + R_{γ B} R_{γ A}) / 2.

    Equations
    • One or more equations did not get rendered due to their size.
    Instances For
      theorem ConvexAnalysis.douglasRachfordStep_sub_self {H : Type u_1} [NormedAddCommGroup H] [InnerProductSpace ℝ H] {A B : H → Set H} {γ : ℝ} (x : H) :
      douglasRachfordStep A B γ x - x = resolventMap (fun (y : H) => γ • B y) (2 • resolventMap (fun (y : H) => γ • A y) x - x) - resolventMap (fun (y : H) => γ • A y) x

      The step of the Douglas–Rachford operator: T x - x = J_{γ B} (2 J_{γ A} x - x) - J_{γ A} x. So the relaxed iteration x (k + 1) = x k + ρ k (T (x k) - x k) is x (k + 1) = x k + ρ k (J_{γ B} (2 J_{γ A} x k - x k) - J_{γ A} x k).

      theorem ConvexAnalysis.douglasRachfordStep_eq_self_iff {H : Type u_1} [NormedAddCommGroup H] [InnerProductSpace ℝ H] {A B : H → Set H} {γ : ℝ} {x : H} :
      douglasRachfordStep A B γ x = x ↔ resolventMap (fun (y : H) => γ • B y) (2 • resolventMap (fun (y : H) => γ • A y) x - x) = resolventMap (fun (y : H) => γ • A y) x

      x is a fixed point of the Douglas–Rachford operator iff J_{γ B} (2 J_{γ A} x - x) = J_{γ A} x.

      theorem ConvexAnalysis.douglasRachfordStep_eq {H : Type u_1} [NormedAddCommGroup H] [InnerProductSpace ℝ H] {A B : H → Set H} {γ : ℝ} (x : H) :
      douglasRachfordStep A B γ x = (1 / 2) • x + (1 / 2) • (2 • resolventMap (fun (y : H) => γ • B y) (2 • resolventMap (fun (y : H) => γ • A y) x - x) - (2 • resolventMap (fun (y : H) => γ • A y) x - x))

      The Douglas–Rachford operator is (id + R_{γ B} R_{γ A}) / 2, with the reflected resolvents R = 2 J - id.

      theorem ConvexAnalysis.IsMaximalMonotone.lipschitzWith_reflection_comp_reflection {H : Type u_1} [NormedAddCommGroup H] [InnerProductSpace ℝ H] {A B : H → Set H} {γ : ℝ} [CompleteSpace H] (hA : IsMaximalMonotone A) (hB : IsMaximalMonotone B) (hγ : 0 < γ) :
      LipschitzWith 1 fun (x : H) => 2 • resolventMap (fun (y : H) => γ • B y) (2 • resolventMap (fun (y : H) => γ • A y) x - x) - (2 • resolventMap (fun (y : H) => γ • A y) x - x)

      The composition R_{γ B} R_{γ A} of the reflected resolvents of maximal monotone A and B is nonexpansive BC, Corollary 23.11 (ii).

      The Douglas–Rachford operator is firmly nonexpansive BC, Proposition 26.1 (iii)(a) (with A and B exchanged) for maximal monotone A, B and γ > 0.

      theorem ConvexAnalysis.IsMaximalMonotone.mem_and_neg_mem_of_douglasRachfordStep_eq {H : Type u_1} [NormedAddCommGroup H] [InnerProductSpace ℝ H] {A B : H → Set H} {γ : ℝ} [CompleteSpace H] (hA : IsMaximalMonotone A) (hB : IsMaximalMonotone B) (hγ : 0 < γ) {x : H} (hx : douglasRachfordStep A B γ x = x) :
      γ⁻¹ • (x - resolventMap (fun (y : H) => γ • A y) x) ∈ A (resolventMap (fun (y : H) => γ • A y) x) ∧ -(γ⁻¹ • (x - resolventMap (fun (y : H) => γ • A y) x)) ∈ B (resolventMap (fun (y : H) => γ • A y) x)

      The dual solution at a fixed point of the Douglas–Rachford operator (BC, Proposition 26.1 (iii)(b)–(c), with A and B exchanged): if x is a fixed point, p = J_{γ A} x and u = (x - p) / γ, then u ∈ A p and -u ∈ B p.

      theorem ConvexAnalysis.IsMaximalMonotone.zero_mem_add_of_douglasRachfordStep_eq {H : Type u_1} [NormedAddCommGroup H] [InnerProductSpace ℝ H] {A B : H → Set H} {γ : ℝ} [CompleteSpace H] (hA : IsMaximalMonotone A) (hB : IsMaximalMonotone B) (hγ : 0 < γ) {x : H} (hx : douglasRachfordStep A B γ x = x) :
      0 ∈ A (resolventMap (fun (y : H) => γ • A y) x) + B (resolventMap (fun (y : H) => γ • A y) x)

      At a fixed point x of the Douglas–Rachford operator, J_{γ A} x is a zero of A + B.

      theorem ConvexAnalysis.IsMaximalMonotone.resolventMap_const_smul_add_smul {H : Type u_1} [NormedAddCommGroup H] [InnerProductSpace ℝ H] {A : H → Set H} {γ : ℝ} [CompleteSpace H] (hA : IsMaximalMonotone A) (hγ : 0 < γ) {p a : H} (ha : a ∈ A p) :
      resolventMap (fun (y : H) => γ • A y) (p + γ • a) = p

      If a ∈ A p, then J_{γ A} (p + γ a) = p.

      theorem ConvexAnalysis.IsMaximalMonotone.douglasRachfordStep_add_smul_eq_self {H : Type u_1} [NormedAddCommGroup H] [InnerProductSpace ℝ H] {A B : H → Set H} {γ : ℝ} [CompleteSpace H] (hA : IsMaximalMonotone A) (hB : IsMaximalMonotone B) (hγ : 0 < γ) {p a : H} (ha : a ∈ A p) (hb : -a ∈ B p) :
      douglasRachfordStep A B γ (p + γ • a) = p + γ • a

      If 0 ∈ A p + B p, with a ∈ A p and -a ∈ B p, then p + γ a is a fixed point of the Douglas–Rachford operator (and J_{γ A} (p + γ a) = p, ConvexAnalysis.IsMaximalMonotone.resolventMap_const_smul_add_smul).

      J_{γ A} maps the fixed points of the Douglas–Rachford operator onto the zeros of A + B BC, Proposition 26.1 (iii)(b) (with A and B exchanged). In particular the operator has a fixed point iff A + B has a zero BC, Proposition 26.1 (iii)(d).

      theorem ConvexAnalysis.IsMaximalMonotone.douglasRachford_tendsto_sub {H : Type u_1} [NormedAddCommGroup H] [InnerProductSpace ℝ H] {A B : H → Set H} {γ : ℝ} [CompleteSpace H] (hA : IsMaximalMonotone A) (hB : IsMaximalMonotone B) (hγ : 0 < γ) {ρ : ℕ → ℝ} (hρ : ∀ (k : ℕ), ρ k ∈ Set.Icc 0 2) (hsum : Filter.Tendsto (fun (N : ℕ) => ∑ k ∈ Finset.range N, ρ k * (2 - ρ k)) Filter.atTop Filter.atTop) {x : ℕ → H} (hx : ∀ (k : ℕ), x (k + 1) = x k + ρ k • (douglasRachfordStep A B γ (x k) - x k)) {xs : H} (hxs : 0 ∈ A xs + B xs) :
      Filter.Tendsto (fun (k : ℕ) => resolventMap (fun (y : H) => γ • B y) (2 • resolventMap (fun (y : H) => γ • A y) (x k) - x k) - resolventMap (fun (y : H) => γ • A y) (x k)) Filter.atTop (nhds 0)

      The residual of the Douglas–Rachford method tends to 0 BC, Theorem 26.11 (ii) (with A and B exchanged): under the hypotheses of ConvexAnalysis.IsMaximalMonotone.douglasRachford_exists_tendsto_toWeakSpace, J_{γ B} (2 J_{γ A} x k - x k) - J_{γ A} x k → 0.

      theorem ConvexAnalysis.IsMaximalMonotone.douglasRachford_exists_tendsto_toWeakSpace {H : Type u_1} [NormedAddCommGroup H] [InnerProductSpace ℝ H] {A B : H → Set H} {γ : ℝ} [CompleteSpace H] (hA : IsMaximalMonotone A) (hB : IsMaximalMonotone B) (hγ : 0 < γ) {ρ : ℕ → ℝ} (hρ : ∀ (k : ℕ), ρ k ∈ Set.Icc 0 2) (hsum : Filter.Tendsto (fun (N : ℕ) => ∑ k ∈ Finset.range N, ρ k * (2 - ρ k)) Filter.atTop Filter.atTop) {x : ℕ → H} (hx : ∀ (k : ℕ), x (k + 1) = x k + ρ k • (douglasRachfordStep A B γ (x k) - x k)) {xs : H} (hxs : 0 ∈ A xs + B xs) :
      ∃ (z : H), douglasRachfordStep A B γ z = z ∧ 0 ∈ A (resolventMap (fun (y : H) => γ • A y) z) + B (resolventMap (fun (y : H) => γ • A y) z) ∧ Filter.Tendsto (fun (k : ℕ) => (toWeakSpace ℝ H) (x k)) Filter.atTop (nhds ((toWeakSpace ℝ H) z)) ∧ Filter.Tendsto (fun (k : ℕ) => (toWeakSpace ℝ H) (resolventMap (fun (y : H) => γ • A y) (x k))) Filter.atTop (nhds ((toWeakSpace ℝ H) (resolventMap (fun (y : H) => γ • A y) z))) ∧ Filter.Tendsto (fun (k : ℕ) => (toWeakSpace ℝ H) (resolventMap (fun (y : H) => γ • B y) (2 • resolventMap (fun (y : H) => γ • A y) (x k) - x k))) Filter.atTop (nhds ((toWeakSpace ℝ H) (resolventMap (fun (y : H) => γ • A y) z))) ∧ Filter.Tendsto (fun (k : ℕ) => (toWeakSpace ℝ H) (γ⁻¹ • (x k - resolventMap (fun (y : H) => γ • A y) (x k)))) Filter.atTop (nhds ((toWeakSpace ℝ H) (γ⁻¹ • (z - resolventMap (fun (y : H) => γ • A y) z))))

      Convergence of the Douglas–Rachford method BC, Theorem 26.11 (i)–(iv) (with A and B exchanged; Lions–Mercier for the governing sequence with ρ k = 1, Svaiter for the shadow sequence): for maximal monotone A and B such that A + B has a zero, a step γ > 0 and relaxation parameters ρ k ∈ [0, 2] with ∑ ρ k (2 - ρ k) = ∞, the iteration x (k + 1) = x k + ρ k (T (x k) - x k) of the Douglas–Rachford operator T, that is x (k + 1) = x k + ρ k (J_{γ B} (2 J_{γ A} x k - x k) - J_{γ A} x k) (ConvexAnalysis.douglasRachfordStep_sub_self), converges weakly to a fixed point z of T, J_{γ A} z is a zero of A + B (the primal part of (i)), the shadow sequence J_{γ A} x k and the sequence J_{γ B} (2 J_{γ A} x k - x k) converge weakly to J_{γ A} z ((iii)), and the dual sequence (x k - J_{γ A} x k) / γ converges weakly to u = (z - J_{γ A} z) / γ ((iv)). The dual part of (i), u ∈ A (J_{γ A} z) and -u ∈ B (J_{γ A} z), is ConvexAnalysis.IsMaximalMonotone.mem_and_neg_mem_of_douglasRachfordStep_eq, and (ii) is ConvexAnalysis.IsMaximalMonotone.douglasRachford_tendsto_sub.

      theorem ConvexAnalysis.IsMaximalMonotone.douglasRachford_exists_tendsto {H : Type u_1} [NormedAddCommGroup H] [InnerProductSpace ℝ H] {A B : H → Set H} {γ : ℝ} [FiniteDimensional ℝ H] (hA : IsMaximalMonotone A) (hB : IsMaximalMonotone B) (hγ : 0 < γ) {ρ : ℕ → ℝ} (hρ : ∀ (k : ℕ), ρ k ∈ Set.Icc 0 2) (hsum : Filter.Tendsto (fun (N : ℕ) => ∑ k ∈ Finset.range N, ρ k * (2 - ρ k)) Filter.atTop Filter.atTop) {x : ℕ → H} (hx : ∀ (k : ℕ), x (k + 1) = x k + ρ k • (douglasRachfordStep A B γ (x k) - x k)) {xs : H} (hxs : 0 ∈ A xs + B xs) :
      ∃ (z : H), douglasRachfordStep A B γ z = z ∧ 0 ∈ A (resolventMap (fun (y : H) => γ • A y) z) + B (resolventMap (fun (y : H) => γ • A y) z) ∧ Filter.Tendsto x Filter.atTop (nhds z) ∧ Filter.Tendsto (fun (k : ℕ) => resolventMap (fun (y : H) => γ • A y) (x k)) Filter.atTop (nhds (resolventMap (fun (y : H) => γ • A y) z)) ∧ Filter.Tendsto (fun (k : ℕ) => resolventMap (fun (y : H) => γ • B y) (2 • resolventMap (fun (y : H) => γ • A y) (x k) - x k)) Filter.atTop (nhds (resolventMap (fun (y : H) => γ • A y) z)) ∧ Filter.Tendsto (fun (k : ℕ) => γ⁻¹ • (x k - resolventMap (fun (y : H) => γ • A y) (x k))) Filter.atTop (nhds (γ⁻¹ • (z - resolventMap (fun (y : H) => γ • A y) z)))

      Convergence of the Douglas–Rachford method in finite dimension (from BC, Theorem 26.11 (i)–(iv)): the governing sequence x k converges in norm to a fixed point z of the Douglas–Rachford operator, the shadow sequence J_{γ A} x k and J_{γ B} (2 J_{γ A} x k - x k) to the zero J_{γ A} z of A + B, and the dual sequence (x k - J_{γ A} x k) / γ to (z - J_{γ A} z) / γ.

      theorem ConvexAnalysis.douglasRachfordStep_subdifferential {H : Type u_1} [NormedAddCommGroup H] [InnerProductSpace ℝ H] {γ : ℝ} [CompleteSpace H] {f g : H → EReal} (hf : ConvexFun f) (hflsc : LowerSemicontinuous f) (hfp : IsProper f) (hg : ConvexFun g) (hglsc : LowerSemicontinuous g) (hgp : IsProper g) (hγ : 0 < γ) (x : H) :
      douglasRachfordStep (subdifferential f) (subdifferential g) γ x = x + prox (fun (y : H) => ↑γ * g y) (2 • prox (fun (y : H) => ↑γ * f y) x - x) - prox (fun (y : H) => ↑γ * f y) x

      The Douglas–Rachford operator of ∂f and ∂g, for proper lower semicontinuous convex f and g and γ > 0: T x = x + prox_{γ g} (2 prox_{γ f} x - x) - prox_{γ f} x.

      theorem ConvexAnalysis.douglasRachford_tendsto_sub {H : Type u_1} [NormedAddCommGroup H] [InnerProductSpace ℝ H] {γ : ℝ} [CompleteSpace H] {f g : H → EReal} {x : ℕ → H} (hf : ConvexFun f) (hflsc : LowerSemicontinuous f) (hfp : IsProper f) (hg : ConvexFun g) (hglsc : LowerSemicontinuous g) (hgp : IsProper g) (hγ : 0 < γ) {ρ : ℕ → ℝ} (hρ : ∀ (k : ℕ), ρ k ∈ Set.Icc 0 2) (hsum : Filter.Tendsto (fun (N : ℕ) => ∑ k ∈ Finset.range N, ρ k * (2 - ρ k)) Filter.atTop Filter.atTop) (hx : ∀ (k : ℕ), x (k + 1) = x k + ρ k • (prox (fun (y : H) => ↑γ * g y) (2 • prox (fun (y : H) => ↑γ * f y) (x k) - x k) - prox (fun (y : H) => ↑γ * f y) (x k))) {xs : H} (hxs : 0 ∈ subdifferential f xs + subdifferential g xs) :
      Filter.Tendsto (fun (k : ℕ) => prox (fun (y : H) => ↑γ * g y) (2 • prox (fun (y : H) => ↑γ * f y) (x k) - x k) - prox (fun (y : H) => ↑γ * f y) (x k)) Filter.atTop (nhds 0)

      The residual of the Douglas–Rachford method for f + g tends to 0 BC, Corollary 28.3 (ii) (with f and g exchanged): under the hypotheses of ConvexAnalysis.douglasRachford_exists_tendsto_toWeakSpace, prox_{γ g} (2 prox_{γ f} x k - x k) - prox_{γ f} x k → 0.

      theorem ConvexAnalysis.douglasRachford_exists_tendsto_toWeakSpace {H : Type u_1} [NormedAddCommGroup H] [InnerProductSpace ℝ H] {γ : ℝ} [CompleteSpace H] {f g : H → EReal} {x : ℕ → H} (hf : ConvexFun f) (hflsc : LowerSemicontinuous f) (hfp : IsProper f) (hg : ConvexFun g) (hglsc : LowerSemicontinuous g) (hgp : IsProper g) (hγ : 0 < γ) {ρ : ℕ → ℝ} (hρ : ∀ (k : ℕ), ρ k ∈ Set.Icc 0 2) (hsum : Filter.Tendsto (fun (N : ℕ) => ∑ k ∈ Finset.range N, ρ k * (2 - ρ k)) Filter.atTop Filter.atTop) (hx : ∀ (k : ℕ), x (k + 1) = x k + ρ k • (prox (fun (y : H) => ↑γ * g y) (2 • prox (fun (y : H) => ↑γ * f y) (x k) - x k) - prox (fun (y : H) => ↑γ * f y) (x k))) {xs : H} (hxs : 0 ∈ subdifferential f xs + subdifferential g xs) :
      ∃ (z : H), IsMinOn (fun (w : H) => f w + g w) Set.univ (prox (fun (y : H) => ↑γ * f y) z) ∧ Filter.Tendsto (fun (k : ℕ) => (toWeakSpace ℝ H) (x k)) Filter.atTop (nhds ((toWeakSpace ℝ H) z)) ∧ Filter.Tendsto (fun (k : ℕ) => (toWeakSpace ℝ H) (prox (fun (y : H) => ↑γ * f y) (x k))) Filter.atTop (nhds ((toWeakSpace ℝ H) (prox (fun (y : H) => ↑γ * f y) z))) ∧ Filter.Tendsto (fun (k : ℕ) => (toWeakSpace ℝ H) (prox (fun (y : H) => ↑γ * g y) (2 • prox (fun (y : H) => ↑γ * f y) (x k) - x k))) Filter.atTop (nhds ((toWeakSpace ℝ H) (prox (fun (y : H) => ↑γ * f y) z))) ∧ Filter.Tendsto (fun (k : ℕ) => (toWeakSpace ℝ H) (γ⁻¹ • (x k - prox (fun (y : H) => ↑γ * f y) (x k)))) Filter.atTop (nhds ((toWeakSpace ℝ H) (γ⁻¹ • (z - prox (fun (y : H) => ↑γ * f y) z))))

      Convergence of the Douglas–Rachford method for f + g BC, Corollary 28.3 (i)–(iv) (with f and g exchanged; the dual problem of (i) is not treated): for proper lower semicontinuous convex f and g such that 0 ∈ ∂f x⋆ + ∂g x⋆ for some x⋆, a step γ > 0 and ρ k ∈ [0, 2] with ∑ ρ k (2 - ρ k) = ∞, the iteration x (k + 1) = x k + ρ k (prox_{γ g} (2 prox_{γ f} x k - x k) - prox_{γ f} x k) converges weakly to a point z, prox_{γ f} z minimizes f + g, the shadow sequence prox_{γ f} x k and prox_{γ g} (2 prox_{γ f} x k - x k) converge weakly to prox_{γ f} z, and (x k - prox_{γ f} x k) / γ converges weakly to (z - prox_{γ f} z) / γ. The residual (ii) is ConvexAnalysis.douglasRachford_tendsto_sub. The hypothesis on x⋆ is stronger than the existence of a minimizer; the sum rule ConvexAnalysis.subdifferential_add gives it from a minimizer when f is continuous at a point of dom f ∩ dom g.

      theorem ConvexAnalysis.douglasRachford_exists_tendsto {H : Type u_1} [NormedAddCommGroup H] [InnerProductSpace ℝ H] {γ : ℝ} [CompleteSpace H] {f g : H → EReal} {x : ℕ → H} [FiniteDimensional ℝ H] (hf : ConvexFun f) (hflsc : LowerSemicontinuous f) (hfp : IsProper f) (hg : ConvexFun g) (hglsc : LowerSemicontinuous g) (hgp : IsProper g) (hγ : 0 < γ) {ρ : ℕ → ℝ} (hρ : ∀ (k : ℕ), ρ k ∈ Set.Icc 0 2) (hsum : Filter.Tendsto (fun (N : ℕ) => ∑ k ∈ Finset.range N, ρ k * (2 - ρ k)) Filter.atTop Filter.atTop) (hx : ∀ (k : ℕ), x (k + 1) = x k + ρ k • (prox (fun (y : H) => ↑γ * g y) (2 • prox (fun (y : H) => ↑γ * f y) (x k) - x k) - prox (fun (y : H) => ↑γ * f y) (x k))) {xs : H} (hxs : 0 ∈ subdifferential f xs + subdifferential g xs) :
      ∃ (z : H), IsMinOn (fun (w : H) => f w + g w) Set.univ (prox (fun (y : H) => ↑γ * f y) z) ∧ Filter.Tendsto x Filter.atTop (nhds z) ∧ Filter.Tendsto (fun (k : ℕ) => prox (fun (y : H) => ↑γ * f y) (x k)) Filter.atTop (nhds (prox (fun (y : H) => ↑γ * f y) z)) ∧ Filter.Tendsto (fun (k : ℕ) => prox (fun (y : H) => ↑γ * g y) (2 • prox (fun (y : H) => ↑γ * f y) (x k) - x k)) Filter.atTop (nhds (prox (fun (y : H) => ↑γ * f y) z)) ∧ Filter.Tendsto (fun (k : ℕ) => γ⁻¹ • (x k - prox (fun (y : H) => ↑γ * f y) (x k))) Filter.atTop (nhds (γ⁻¹ • (z - prox (fun (y : H) => ↑γ * f y) z)))

      Convergence of the Douglas–Rachford method for f + g in finite dimension (from BC, Corollary 28.3 (i)–(iv)): x k → z in norm, the shadow sequence prox_{γ f} x k and prox_{γ g} (2 prox_{γ f} x k - x k) converge in norm to the minimizer prox_{γ f} z of f + g, and (x k - prox_{γ f} x k) / γ → (z - prox_{γ f} z) / γ.