zzhisthebest/LeanBenchmark huggingface dataset:
import Mathlib
import Optlib


open Set InnerProductSpace Topology Filter InnerProduct

open scoped Pointwise

theorem extracted_formal_statement_80.{u_3, u_2, u_1} {E₁ : Type u_1} {E₂ : Type u_2} {F : Type u_3}
  [inst : NormedAddCommGroup E₁] [inst_1 : InnerProductSpace ℝ E₁] [inst_2 : FiniteDimensional ℝ E₁]
  [inst_3 : NormedAddCommGroup E₂] [inst_4 : InnerProductSpace ℝ E₂] [inst_5 : FiniteDimensional ℝ E₂]
  [inst_6 : NormedAddCommGroup F] [inst_7 : InnerProductSpace ℝ F] [inst_8 : FiniteDimensional ℝ F]
  {admm : ADMM E₁ E₂ F} {admm_kkt : Existance_of_kkt admm} (n : ℕ+) (x : E₂) :
  let c := ADMM.y E₁ E₂ n.natPred;
  ((fun x =>
        ⟪ADMM.y E₁ E₂ n.natPred, (OptProblem.A₁ E₂) (ADMM.x₁ E₂ F ↑n) + (OptProblem.A₂ E₁) x - OptProblem.b E₁ E₂⟫_ℝ) =
      (fun x => ⟪ADMM.y E₁ E₂ n.natPred, (OptProblem.A₂ E₁) x⟫_ℝ) + fun x =>
        ⟪ADMM.y E₁ E₂ n.natPred, (OptProblem.A₁ E₂) (ADMM.x₁ E₂ F ↑n) - OptProblem.b E₁ E₂⟫_ℝ) →
    HasGradientAt (fun x => ⟪c, (OptProblem.A₂ E₁) x⟫_ℝ) ((ContinuousLinearMap.adjoint (OptProblem.A₂ E₁)) c) x := sorry

Tactic state before:
E₁ : Type u_1
E₂ : Type u_2
F : Type u_3
inst✝⁹ : NormedAddCommGroup E₁
inst✝⁸ : InnerProductSpace ℝ E₁
inst✝⁷ : FiniteDimensional ℝ E₁
inst✝⁶ : NormedAddCommGroup E₂
inst✝⁵ : InnerProductSpace ℝ E₂
inst✝⁴ : FiniteDimensional ℝ E₂
inst✝³ : NormedAddCommGroup F
inst✝² : InnerProductSpace ℝ F
inst✝¹ : FiniteDimensional ℝ F
admm : ADMM E₁ E₂ F
admm_kkt : Existance_of_kkt admm
inst✝ : Setting E₁ E₂ F admm admm_kkt
n : ℕ+
x : E₂
c : F := ADMM.y E₁ E₂ n.natPred
c₁ : ℝ := ⟪c, (OptProblem.A₁ E₂) (ADMM.x₁ E₂ F ↑n) - OptProblem.b E₁ E₂⟫_ℝ
this :
  (fun x =>
      ⟪ADMM.y E₁ E₂ n.natPred, (OptProblem.A₁ E₂) (ADMM.x₁ E₂ F ↑n) + (OptProblem.A₂ E₁) x - OptProblem.b E₁ E₂⟫_ℝ) =
    (fun x => ⟪ADMM.y E₁ E₂ n.natPred, (OptProblem.A₂ E₁) x⟫_ℝ) + fun x =>
      ⟪ADMM.y E₁ E₂ n.natPred, (OptProblem.A₁ E₂) (ADMM.x₁ E₂ F ↑n) - OptProblem.b E₁ E₂⟫_ℝ
⊢ HasGradientAt (fun x => ⟪c, (OptProblem.A₂ E₁) x⟫_ℝ) ((ContinuousLinearMap.adjoint (OptProblem.A₂ E₁)) c) x

Tactic:
apply inner_gradient

Tactic state after:
import Mathlib
import Optlib


open Set InnerProductSpace Topology Filter InnerProduct

open scoped Pointwise

theorem extracted_formal_statement_81.{u_3, u_2, u_1} {E₁ : Type u_1} {E₂ : Type u_2} {F : Type u_3}
  [inst : NormedAddCommGroup E₁] [inst_1 : InnerProductSpace ℝ E₁] [inst_2 : FiniteDimensional ℝ E₁]
  [inst_3 : NormedAddCommGroup E₂] [inst_4 : InnerProductSpace ℝ E₂] [inst_5 : FiniteDimensional ℝ E₂]
  [inst_6 : NormedAddCommGroup F] [inst_7 : InnerProductSpace ℝ F] [inst_8 : FiniteDimensional ℝ F]
  {admm : ADMM E₁ E₂ F} {admm_kkt : Existance_of_kkt admm} (n : ℕ+) (x : E₂) (a : x ∈ univ) :
  HasGradientAt
    (fun x =>
      ⟪ADMM.y E₁ E₂ n.natPred, (OptProblem.A₁ E₂) (ADMM.x₁ E₂ F ↑n) + (OptProblem.A₂ E₁) x - OptProblem.b E₁ E₂⟫_ℝ)
    ((ContinuousLinearMap.adjoint (OptProblem.A₂ E₁)) (ADMM.y E₁ E₂ n.natPred)) x := sorry

Tactic state before:
E₁ : Type u_1
E₂ : Type u_2
F : Type u_3
inst✝⁹ : NormedAddCommGroup E₁
inst✝⁸ : InnerProductSpace ℝ E₁
inst✝⁷ : FiniteDimensional ℝ E₁
inst✝⁶ : NormedAddCommGroup E₂
inst✝⁵ : InnerProductSpace ℝ E₂
inst✝⁴ : FiniteDimensional ℝ E₂
inst✝³ : NormedAddCommGroup F
inst✝² : InnerProductSpace ℝ F
inst✝¹ : FiniteDimensional ℝ F
admm : ADMM E₁ E₂ F
admm_kkt : Existance_of_kkt admm
inst✝ : Setting E₁ E₂ F admm admm_kkt
n : ℕ+
x : E₂
a✝ : x ∈ univ
⊢ HasGradientAt
    (fun x =>
      ⟪ADMM.y E₁ E₂ n.natPred, (OptProblem.A₁ E₂) (ADMM.x₁ E₂ F ↑n) + (OptProblem.A₂ E₁) x - OptProblem.b E₁ E₂⟫_ℝ)
    ((ContinuousLinearMap.adjoint (OptProblem.A₂ E₁)) (ADMM.y E₁ E₂ n.natPred)) x

Tactic:
apply ADMM_iter_process₂'_eq3_2' n

Tactic state after:
import Mathlib
import Optlib


open Set InnerProductSpace Topology Filter InnerProduct

open scoped Pointwise

theorem extracted_formal_statement_82.{u_3, u_2, u_1} {E₁ : Type u_1} {E₂ : Type u_2} {F : Type u_3}
  [inst : NormedAddCommGroup E₁] [inst_1 : InnerProductSpace ℝ E₁] [inst_2 : FiniteDimensional ℝ E₁]
  [inst_3 : NormedAddCommGroup E₂] [inst_4 : InnerProductSpace ℝ E₂] [inst_5 : FiniteDimensional ℝ E₂]
  [inst_6 : NormedAddCommGroup F] [inst_7 : InnerProductSpace ℝ F] [inst_8 : FiniteDimensional ℝ F]
  {admm : ADMM E₁ E₂ F} {admm_kkt : Existance_of_kkt admm} (n : ℕ+)
  (h_original_goal :
    SubderivAt
        (fun x =>
          ⟪ADMM.y E₁ E₂ n.natPred, (OptProblem.A₁ E₂) (ADMM.x₁ E₂ F ↑n) + (OptProblem.A₂ E₁) x - OptProblem.b E₁ E₂⟫_ℝ)
        (ADMM.x₂ E₁ F ↑n) =
      {(ContinuousLinearMap.adjoint (OptProblem.A₂ E₁)) (ADMM.y E₁ E₂ n.natPred)}) :
  HasGradientAt
    (fun x =>
      ⟪ADMM.y E₁ E₂ n.natPred, (OptProblem.A₁ E₂) (ADMM.x₁ E₂ F ↑n) + (OptProblem.A₂ E₁) x - OptProblem.b E₁ E₂⟫_ℝ)
    ((ContinuousLinearMap.adjoint (OptProblem.A₂ E₁)) (ADMM.y E₁ E₂ n.natPred)) (ADMM.x₂ E₁ F ↑n) := sorry

Tactic state before:
E₁ : Type u_1
E₂ : Type u_2
F : Type u_3
inst✝⁹ : NormedAddCommGroup E₁
inst✝⁸ : InnerProductSpace ℝ E₁
inst✝⁷ : FiniteDimensional ℝ E₁
inst✝⁶ : NormedAddCommGroup E₂
inst✝⁵ : InnerProductSpace ℝ E₂
inst✝⁴ : FiniteDimensional ℝ E₂
inst✝³ : NormedAddCommGroup F
inst✝² : InnerProductSpace ℝ F
inst✝¹ : FiniteDimensional ℝ F
admm : ADMM E₁ E₂ F
admm_kkt : Existance_of_kkt admm
inst✝ : Setting E₁ E₂ F admm admm_kkt
n : ℕ+
⊢ SubderivAt
      (fun x =>
        ⟪ADMM.y E₁ E₂ n.natPred, (OptProblem.A₁ E₂) (ADMM.x₁ E₂ F ↑n) + (OptProblem.A₂ E₁) x - OptProblem.b E₁ E₂⟫_ℝ)
      (ADMM.x₂ E₁ F ↑n) =
    {(ContinuousLinearMap.adjoint (OptProblem.A₂ E₁)) (ADMM.y E₁ E₂ n.natPred)}

Tactic:
apply SubderivAt_eq_gradient (inner_convex2 n)

Tactic state after:
[E₁ : Type u_1
 E₂ : Type u_2
 F : Type u_3
 inst✝⁹ : NormedAddCommGroup E₁
 inst✝⁸ : InnerProductSpace ℝ E₁
 inst✝⁷ : FiniteDimensional ℝ E₁
 inst✝⁶ : NormedAddCommGroup E₂
 inst✝⁵ : InnerProductSpace ℝ E₂
 inst✝⁴ : FiniteDimensional ℝ E₂
 inst✝³ : NormedAddCommGroup F
 inst✝² : InnerProductSpace ℝ F
 inst✝¹ : FiniteDimensional ℝ F
 admm : ADMM E₁ E₂ F
 admm_kkt : Existance_of_kkt admm
 inst✝ : Setting E₁ E₂ F admm admm_kkt
 n : ℕ+
 ⊢ HasGradientAt
     (fun x =>
       ⟪ADMM.y E₁ E₂ n.natPred, (OptProblem.A₁ E₂) (ADMM.x₁ E₂ F ↑n) + (OptProblem.A₂ E₁) x - OptProblem.b E₁ E₂⟫_ℝ)
     ((ContinuousLinearMap.adjoint (OptProblem.A₂ E₁)) (ADMM.y E₁ E₂ n.natPred)) (ADMM.x₂ E₁ F ↑n)]
import Mathlib
import Optlib


open Set InnerProductSpace Topology Filter InnerProduct

open scoped Pointwise

theorem extracted_formal_statement_83.{u_3, u_2, u_1} {E₁ : Type u_1} {E₂ : Type u_2} {F : Type u_3}
  [inst : NormedAddCommGroup E₁] [inst_1 : InnerProductSpace ℝ E₁] [inst_2 : FiniteDimensional ℝ E₁]
  [inst_3 : NormedAddCommGroup E₂] [inst_4 : InnerProductSpace ℝ E₂] [inst_5 : FiniteDimensional ℝ E₂]
  [inst_6 : NormedAddCommGroup F] [inst_7 : InnerProductSpace ℝ F] [inst_8 : FiniteDimensional ℝ F]
  {admm : ADMM E₁ E₂ F} {admm_kkt : Existance_of_kkt admm} (n : ℕ+) :
  HasGradientAt
    (fun x =>
      ⟪ADMM.y E₁ E₂ n.natPred, (OptProblem.A₁ E₂) (ADMM.x₁ E₂ F ↑n) + (OptProblem.A₂ E₁) x - OptProblem.b E₁ E₂⟫_ℝ)
    ((ContinuousLinearMap.adjoint (OptProblem.A₂ E₁)) (ADMM.y E₁ E₂ n.natPred)) (ADMM.x₂ E₁ F ↑n) := sorry

Tactic state before:
E₁ : Type u_1
E₂ : Type u_2
F : Type u_3
inst✝⁹ : NormedAddCommGroup E₁
inst✝⁸ : InnerProductSpace ℝ E₁
inst✝⁷ : FiniteDimensional ℝ E₁
inst✝⁶ : NormedAddCommGroup E₂
inst✝⁵ : InnerProductSpace ℝ E₂
inst✝⁴ : FiniteDimensional ℝ E₂
inst✝³ : NormedAddCommGroup F
inst✝² : InnerProductSpace ℝ F
inst✝¹ : FiniteDimensional ℝ F
admm : ADMM E₁ E₂ F
admm_kkt : Existance_of_kkt admm
inst✝ : Setting E₁ E₂ F admm admm_kkt
n : ℕ+
⊢ HasGradientAt
    (fun x =>
      ⟪ADMM.y E₁ E₂ n.natPred, (OptProblem.A₁ E₂) (ADMM.x₁ E₂ F ↑n) + (OptProblem.A₂ E₁) x - OptProblem.b E₁ E₂⟫_ℝ)
    ((ContinuousLinearMap.adjoint (OptProblem.A₂ E₁)) (ADMM.y E₁ E₂ n.natPred)) (ADMM.x₂ E₁ F ↑n)

Tactic:
apply ADMM_iter_process₂'_eq3_2'

Tactic state after:
import Mathlib
import Optlib


open Set InnerProductSpace Topology Filter InnerProduct

open scoped Pointwise

theorem extracted_formal_statement_95.{u_3, u_2, u_1} {E₁ : Type u_1} {E₂ : Type u_2} {F : Type u_3}
  [inst : NormedAddCommGroup E₁] [inst_1 : InnerProductSpace ℝ E₁] [inst_2 : FiniteDimensional ℝ E₁]
  [inst_3 : NormedAddCommGroup E₂] [inst_4 : InnerProductSpace ℝ E₂] [inst_5 : FiniteDimensional ℝ E₂]
  [inst_6 : NormedAddCommGroup F] [inst_7 : InnerProductSpace ℝ F] [inst_8 : FiniteDimensional ℝ F]
  {admm : ADMM E₁ E₂ F} {admm_kkt : Existance_of_kkt admm} (n : ℕ+)
  (h_original_goal :
    SubderivAt
        (fun x =>
          ADMM.ρ E₁ E₂ F / 2 * ‖(OptProblem.A₁ E₂) (ADMM.x₁ E₂ F ↑n) + (OptProblem.A₂ E₁) x - OptProblem.b E₁ E₂‖ ^ 2)
        (ADMM.x₂ E₁ F ↑n) =
      {ADMM.ρ E₁ E₂ F •
          (ContinuousLinearMap.adjoint (OptProblem.A₂ E₁))
            ((OptProblem.A₁ E₂) (ADMM.x₁ E₂ F ↑n) + (OptProblem.A₂ E₁) (ADMM.x₂ E₁ F ↑n) - OptProblem.b E₁ E₂)}) :
  HasGradientAt
    (fun x =>
      ADMM.ρ E₁ E₂ F / 2 * ‖(OptProblem.A₁ E₂) (ADMM.x₁ E₂ F ↑n) + (OptProblem.A₂ E₁) x - OptProblem.b E₁ E₂‖ ^ 2)
    (ADMM.ρ E₁ E₂ F •
      (ContinuousLinearMap.adjoint (OptProblem.A₂ E₁))
        ((OptProblem.A₁ E₂) (ADMM.x₁ E₂ F ↑n) + (OptProblem.A₂ E₁) (ADMM.x₂ E₁ F ↑n) - OptProblem.b E₁ E₂))
    (ADMM.x₂ E₁ F ↑n) := sorry

Tactic state before:
E₁ : Type u_1
E₂ : Type u_2
F : Type u_3
inst✝⁹ : NormedAddCommGroup E₁
inst✝⁸ : InnerProductSpace ℝ E₁
inst✝⁷ : FiniteDimensional ℝ E₁
inst✝⁶ : NormedAddCommGroup E₂
inst✝⁵ : InnerProductSpace ℝ E₂
inst✝⁴ : FiniteDimensional ℝ E₂
inst✝³ : NormedAddCommGroup F
inst✝² : InnerProductSpace ℝ F
inst✝¹ : FiniteDimensional ℝ F
admm : ADMM E₁ E₂ F
admm_kkt : Existance_of_kkt admm
inst✝ : Setting E₁ E₂ F admm admm_kkt
n : ℕ+
⊢ SubderivAt
      (fun x =>
        ADMM.ρ E₁ E₂ F / 2 * ‖(OptProblem.A₁ E₂) (ADMM.x₁ E₂ F ↑n) + (OptProblem.A₂ E₁) x - OptProblem.b E₁ E₂‖ ^ 2)
      (ADMM.x₂ E₁ F ↑n) =
    {ADMM.ρ E₁ E₂ F •
        (ContinuousLinearMap.adjoint (OptProblem.A₂ E₁))
          ((OptProblem.A₁ E₂) (ADMM.x₁ E₂ F ↑n) + (OptProblem.A₂ E₁) (ADMM.x₂ E₁ F ↑n) - OptProblem.b E₁ E₂)}

Tactic:
apply SubderivAt_eq_gradient (norm_covex2 n)

Tactic state after:
[E₁ : Type u_1
 E₂ : Type u_2
 F : Type u_3
 inst✝⁹ : NormedAddCommGroup E₁
 inst✝⁸ : InnerProductSpace ℝ E₁
 inst✝⁷ : FiniteDimensional ℝ E₁
 inst✝⁶ : NormedAddCommGroup E₂
 inst✝⁵ : InnerProductSpace ℝ E₂
 inst✝⁴ : FiniteDimensional ℝ E₂
 inst✝³ : NormedAddCommGroup F
 inst✝² : InnerProductSpace ℝ F
 inst✝¹ : FiniteDimensional ℝ F
 admm : ADMM E₁ E₂ F
 admm_kkt : Existance_of_kkt admm
 inst✝ : Setting E₁ E₂ F admm admm_kkt
 n : ℕ+
 ⊢ HasGradientAt
     (fun x =>
       ADMM.ρ E₁ E₂ F / 2 * ‖(OptProblem.A₁ E₂) (ADMM.x₁ E₂ F ↑n) + (OptProblem.A₂ E₁) x - OptProblem.b E₁ E₂‖ ^ 2)
     (ADMM.ρ E₁ E₂ F •
       (ContinuousLinearMap.adjoint (OptProblem.A₂ E₁))
         ((OptProblem.A₁ E₂) (ADMM.x₁ E₂ F ↑n) + (OptProblem.A₂ E₁) (ADMM.x₂ E₁ F ↑n) - OptProblem.b E₁ E₂))
     (ADMM.x₂ E₁ F ↑n)]
import Mathlib
import Optlib


open Set InnerProductSpace Topology Filter InnerProduct

open scoped Pointwise

theorem extracted_formal_statement_96.{u_3, u_2, u_1} {E₁ : Type u_1} {E₂ : Type u_2} {F : Type u_3}
  [inst : NormedAddCommGroup E₁] [inst_1 : InnerProductSpace ℝ E₁] [inst_2 : FiniteDimensional ℝ E₁]
  [inst_3 : NormedAddCommGroup E₂] [inst_4 : InnerProductSpace ℝ E₂] [inst_5 : FiniteDimensional ℝ E₂]
  [inst_6 : NormedAddCommGroup F] [inst_7 : InnerProductSpace ℝ F] [inst_8 : FiniteDimensional ℝ F]
  {admm : ADMM E₁ E₂ F} {admm_kkt : Existance_of_kkt admm} (n : ℕ+) :
  HasGradientAt
    (fun x =>
      ADMM.ρ E₁ E₂ F / 2 * ‖(OptProblem.A₁ E₂) (ADMM.x₁ E₂ F ↑n) + (OptProblem.A₂ E₁) x - OptProblem.b E₁ E₂‖ ^ 2)
    (ADMM.ρ E₁ E₂ F •
      (ContinuousLinearMap.adjoint (OptProblem.A₂ E₁))
        ((OptProblem.A₁ E₂) (ADMM.x₁ E₂ F ↑n) + (OptProblem.A₂ E₁) (ADMM.x₂ E₁ F ↑n) - OptProblem.b E₁ E₂))
    (ADMM.x₂ E₁ F ↑n) := sorry

Tactic state before:
E₁ : Type u_1
E₂ : Type u_2
F : Type u_3
inst✝⁹ : NormedAddCommGroup E₁
inst✝⁸ : InnerProductSpace ℝ E₁
inst✝⁷ : FiniteDimensional ℝ E₁
inst✝⁶ : NormedAddCommGroup E₂
inst✝⁵ : InnerProductSpace ℝ E₂
inst✝⁴ : FiniteDimensional ℝ E₂
inst✝³ : NormedAddCommGroup F
inst✝² : InnerProductSpace ℝ F
inst✝¹ : FiniteDimensional ℝ F
admm : ADMM E₁ E₂ F
admm_kkt : Existance_of_kkt admm
inst✝ : Setting E₁ E₂ F admm admm_kkt
n : ℕ+
⊢ HasGradientAt
    (fun x =>
      ADMM.ρ E₁ E₂ F / 2 * ‖(OptProblem.A₁ E₂) (ADMM.x₁ E₂ F ↑n) + (OptProblem.A₂ E₁) x - OptProblem.b E₁ E₂‖ ^ 2)
    (ADMM.ρ E₁ E₂ F •
      (ContinuousLinearMap.adjoint (OptProblem.A₂ E₁))
        ((OptProblem.A₁ E₂) (ADMM.x₁ E₂ F ↑n) + (OptProblem.A₂ E₁) (ADMM.x₂ E₁ F ↑n) - OptProblem.b E₁ E₂))
    (ADMM.x₂ E₁ F ↑n)

Tactic:
apply ADMM_iter_process₂'_eq3_3'

Tactic state after:
import Mathlib
import Optlib


open Set InnerProductSpace Topology Filter InnerProduct

open scoped Pointwise

theorem extracted_formal_statement_97.{u_3, u_2, u_1} {E₁ : Type u_1} {E₂ : Type u_2} {F : Type u_3}
  [inst : NormedAddCommGroup E₁] [inst_1 : InnerProductSpace ℝ E₁] [inst_2 : FiniteDimensional ℝ E₁]
  [inst_3 : NormedAddCommGroup E₂] [inst_4 : InnerProductSpace ℝ E₂] [inst_5 : FiniteDimensional ℝ E₂]
  [inst_6 : NormedAddCommGroup F] [inst_7 : InnerProductSpace ℝ F] [inst_8 : FiniteDimensional ℝ F]
  {admm : ADMM E₁ E₂ F} {admm_kkt : Existance_of_kkt admm} (n : ℕ+)
  (this :
    IsMinOn
        (fun x =>
          Augmented_Lagrangian_Function E₁ E₂ F ADMM.toOptProblem (ADMM.ρ E₁ E₂ F)
            (ADMM.x₁ E₂ F ↑n, x, ADMM.y E₁ E₂ n.natPred))
        univ (ADMM.x₂ E₁ F ↑n) ↔
      0 ∈
        SubderivAt
          (fun x =>
            Augmented_Lagrangian_Function E₁ E₂ F ADMM.toOptProblem (ADMM.ρ E₁ E₂ F)
              (ADMM.x₁ E₂ F ↑n, x, ADMM.y E₁ E₂ n.natPred))
          (ADMM.x₂ E₁ F ↑n))
  (h :
    IsMinOn
      (fun «x₂» =>
        Augmented_Lagrangian_Function E₁ E₂ F ADMM.toOptProblem (ADMM.ρ E₁ E₂ F)
          (ADMM.x₁ E₂ F (n.natPred + 1), «x₂», ADMM.y E₁ E₂ n.natPred))
      univ (ADMM.x₂ E₁ F (n.natPred + 1))) :
  n.natPred + 1 = ↑n := sorry

Tactic state before:
E₁ : Type u_1
E₂ : Type u_2
F : Type u_3
inst✝⁹ : NormedAddCommGroup E₁
inst✝⁸ : InnerProductSpace ℝ E₁
inst✝⁷ : FiniteDimensional ℝ E₁
inst✝⁶ : NormedAddCommGroup E₂
inst✝⁵ : InnerProductSpace ℝ E₂
inst✝⁴ : FiniteDimensional ℝ E₂
inst✝³ : NormedAddCommGroup F
inst✝² : InnerProductSpace ℝ F
inst✝¹ : FiniteDimensional ℝ F
admm : ADMM E₁ E₂ F
admm_kkt : Existance_of_kkt admm
inst✝ : Setting E₁ E₂ F admm admm_kkt
n : ℕ+
this :
  IsMinOn
      (fun x =>
        Augmented_Lagrangian_Function E₁ E₂ F ADMM.toOptProblem (ADMM.ρ E₁ E₂ F)
          (ADMM.x₁ E₂ F ↑n, x, ADMM.y E₁ E₂ n.natPred))
      univ (ADMM.x₂ E₁ F ↑n) ↔
    0 ∈
      SubderivAt
        (fun x =>
          Augmented_Lagrangian_Function E₁ E₂ F ADMM.toOptProblem (ADMM.ρ E₁ E₂ F)
            (ADMM.x₁ E₂ F ↑n, x, ADMM.y E₁ E₂ n.natPred))
        (ADMM.x₂ E₁ F ↑n)
h :
  IsMinOn
    (fun «x₂» =>
      Augmented_Lagrangian_Function E₁ E₂ F ADMM.toOptProblem (ADMM.ρ E₁ E₂ F)
        (ADMM.x₁ E₂ F (n.natPred + 1), «x₂», ADMM.y E₁ E₂ n.natPred))
    univ (ADMM.x₂ E₁ F (n.natPred + 1))
⊢ n.natPred + 1 = ↑n

Tactic:
apply PNat.natPred_add_one

Tactic state after:
import Mathlib
import Optlib


open Set InnerProductSpace Topology Filter InnerProduct

open scoped Pointwise

theorem extracted_formal_statement_99.{u_3, u_2, u_1} {E₁ : Type u_1} {E₂ : Type u_2} {F : Type u_3}
  [inst : NormedAddCommGroup E₁] [inst_1 : InnerProductSpace ℝ E₁] [inst_2 : FiniteDimensional ℝ E₁]
  [inst_3 : NormedAddCommGroup E₂] [inst_4 : InnerProductSpace ℝ E₂] [inst_5 : FiniteDimensional ℝ E₂]
  [inst_6 : NormedAddCommGroup F] [inst_7 : InnerProductSpace ℝ F] [inst_8 : FiniteDimensional ℝ F]
  {admm : ADMM E₁ E₂ F} {admm_kkt : Existance_of_kkt admm} (n : ℕ+) :
  let S := SubderivAt (OptProblem.f₂ E₁ F) (ADMM.x₂ E₁ F ↑n);
  let p := (ContinuousLinearMap.adjoint (OptProblem.A₂ E₁)) (ADMM.y E₁ E₂ (↑n - 1));
  let q :=
    ADMM.ρ E₁ E₂ F •
      (ContinuousLinearMap.adjoint (OptProblem.A₂ E₁))
        ((OptProblem.A₁ E₂) (ADMM.x₁ E₂ F ↑n) + (OptProblem.A₂ E₁) (ADMM.x₂ E₁ F ↑n) - OptProblem.b E₁ E₂);
  0 ∈ S + {p} + {q} → -p - q ∈ S := sorry

Tactic state before:
E₁ : Type u_1
E₂ : Type u_2
F : Type u_3
inst✝⁹ : NormedAddCommGroup E₁
inst✝⁸ : InnerProductSpace ℝ E₁
inst✝⁷ : FiniteDimensional ℝ E₁
inst✝⁶ : NormedAddCommGroup E₂
inst✝⁵ : InnerProductSpace ℝ E₂
inst✝⁴ : FiniteDimensional ℝ E₂
inst✝³ : NormedAddCommGroup F
inst✝² : InnerProductSpace ℝ F
inst✝¹ : FiniteDimensional ℝ F
admm : ADMM E₁ E₂ F
admm_kkt : Existance_of_kkt admm
inst✝ : Setting E₁ E₂ F admm admm_kkt
n : ℕ+
S : Set E₂ := SubderivAt (OptProblem.f₂ E₁ F) (ADMM.x₂ E₁ F ↑n)
p : E₂ := (ContinuousLinearMap.adjoint (OptProblem.A₂ E₁)) (ADMM.y E₁ E₂ (↑n - 1))
q : E₂ :=
  ADMM.ρ E₁ E₂ F •
    (ContinuousLinearMap.adjoint (OptProblem.A₂ E₁))
      ((OptProblem.A₁ E₂) (ADMM.x₁ E₂ F ↑n) + (OptProblem.A₂ E₁) (ADMM.x₂ E₁ F ↑n) - OptProblem.b E₁ E₂)
this : 0 ∈ S + {p} + {q}
⊢ -p - q ∈ S

Tactic:
apply change_item this

Tactic state after:
import Mathlib
import Optlib


open Set InnerProductSpace Topology Filter InnerProduct

open scoped Pointwise

theorem extracted_formal_statement_101.{u_3, u_2, u_1} {E₁ : Type u_1} {E₂ : Type u_2} {F : Type u_3}
  [inst : NormedAddCommGroup E₁] [inst_1 : InnerProductSpace ℝ E₁] [inst_2 : FiniteDimensional ℝ E₁]
  [inst_3 : NormedAddCommGroup E₂] [inst_4 : InnerProductSpace ℝ E₂] [inst_5 : FiniteDimensional ℝ E₂]
  [inst_6 : NormedAddCommGroup F] [inst_7 : InnerProductSpace ℝ F] [inst_8 : FiniteDimensional ℝ F]
  {admm : ADMM E₁ E₂ F} {admm_kkt : Existance_of_kkt admm} [inst_9 : Setting E₁ E₂ F admm admm_kkt] (n : ℕ+)
  (this : ↑n - 1 + 1 = ↑n) :
  let un := u n;
  un = u n →
    let yn := ADMM.y E₁ E₂ ↑n;
    let yn' := ADMM.y E₁ E₂ (↑n - 1);
    yn = ADMM.y E₁ E₂ ↑n →
      yn' = ADMM.y E₁ E₂ (↑n - 1) →
        let x₁n := ADMM.x₁ E₂ F ↑n;
        let x₂n := ADMM.x₂ E₁ F ↑n;
        x₁n = ADMM.x₁ E₂ F ↑n →
          x₂n = ADMM.x₂ E₁ F ↑n →
            yn' =
              yn' +
                  (ADMM.τ E₁ E₂ F * ADMM.ρ E₁ E₂ F) •
                    ((OptProblem.A₁ E₂) x₁n + (OptProblem.A₂ E₁) x₂n - OptProblem.b E₁ E₂) -
                (ADMM.τ E₁ E₂ F * ADMM.ρ E₁ E₂ F) •
                  ((OptProblem.A₁ E₂) x₁n + (OptProblem.A₂ E₁) x₂n - OptProblem.b E₁ E₂) := sorry

Tactic state before:
E₁ : Type u_1
E₂ : Type u_2
F : Type u_3
inst✝⁹ : NormedAddCommGroup E₁
inst✝⁸ : InnerProductSpace ℝ E₁
inst✝⁷ : FiniteDimensional ℝ E₁
inst✝⁶ : NormedAddCommGroup E₂
inst✝⁵ : InnerProductSpace ℝ E₂
inst✝⁴ : FiniteDimensional ℝ E₂
inst✝³ : NormedAddCommGroup F
inst✝² : InnerProductSpace ℝ F
inst✝¹ : FiniteDimensional ℝ F
admm : ADMM E₁ E₂ F
admm_kkt : Existance_of_kkt admm
inst✝ : Setting E₁ E₂ F admm admm_kkt
n : ℕ+
this : ↑n - 1 + 1 = ↑n
un : E₁ := u n
h₁ : un = u n
yn : F := ADMM.y E₁ E₂ ↑n
yn' : F := ADMM.y E₁ E₂ (↑n - 1)
h₂ : yn = ADMM.y E₁ E₂ ↑n
h₃ : yn' = ADMM.y E₁ E₂ (↑n - 1)
x₁n : E₁ := ADMM.x₁ E₂ F ↑n
x₂n : E₂ := ADMM.x₂ E₁ F ↑n
x₂n' : E₂ := ADMM.x₂ E₁ F (↑n - 1)
h₄ : x₁n = ADMM.x₁ E₂ F ↑n
h₅ : x₂n = ADMM.x₂ E₁ F ↑n
⊢ yn' =
    yn' + (ADMM.τ E₁ E₂ F * ADMM.ρ E₁ E₂ F) • ((OptProblem.A₁ E₂) x₁n + (OptProblem.A₂ E₁) x₂n - OptProblem.b E₁ E₂) -
      (ADMM.τ E₁ E₂ F * ADMM.ρ E₁ E₂ F) • ((OptProblem.A₁ E₂) x₁n + (OptProblem.A₂ E₁) x₂n - OptProblem.b E₁ E₂)

Tactic:
exact eq_sub_of_add_eq rfl

Tactic state after:
import Mathlib
import Optlib


open Set InnerProductSpace Topology Filter InnerProduct

open scoped Pointwise

theorem extracted_formal_statement_102.{u_3, u_2, u_1} {E₁ : Type u_1} {E₂ : Type u_2} {F : Type u_3}
  [inst : NormedAddCommGroup E₁] [inst_1 : InnerProductSpace ℝ E₁] [inst_2 : FiniteDimensional ℝ E₁]
  [inst_3 : NormedAddCommGroup E₂] [inst_4 : InnerProductSpace ℝ E₂] [inst_5 : FiniteDimensional ℝ E₂]
  [inst_6 : NormedAddCommGroup F] [inst_7 : InnerProductSpace ℝ F] [inst_8 : FiniteDimensional ℝ F]
  {admm : ADMM E₁ E₂ F} {admm_kkt : Existance_of_kkt admm} [inst_9 : Setting E₁ E₂ F admm admm_kkt] (n : ℕ+)
  (this : ↑n - 1 + 1 = ↑n) :
  let un := u n;
  un = u n →
    let yn := ADMM.y E₁ E₂ ↑n;
    let yn' := ADMM.y E₁ E₂ (↑n - 1);
    yn = ADMM.y E₁ E₂ ↑n →
      yn' = ADMM.y E₁ E₂ (↑n - 1) →
        let x₁n := ADMM.x₁ E₂ F ↑n;
        let x₂n := ADMM.x₂ E₁ F ↑n;
        let x₂n' := ADMM.x₂ E₁ F (↑n - 1);
        x₁n = ADMM.x₁ E₂ F ↑n →
          x₂n = ADMM.x₂ E₁ F ↑n →
            yn' =
                yn -
                  (ADMM.τ E₁ E₂ F * ADMM.ρ E₁ E₂ F) •
                    ((OptProblem.A₁ E₂) x₁n + (OptProblem.A₂ E₁) x₂n - OptProblem.b E₁ E₂) →
              -(ContinuousLinearMap.adjoint (OptProblem.A₁ E₂)) yn' -
                  ADMM.ρ E₁ E₂ F •
                    (ContinuousLinearMap.adjoint (OptProblem.A₁ E₂))
                      ((OptProblem.A₁ E₂) x₁n + (OptProblem.A₂ E₁) x₂n' - OptProblem.b E₁ E₂) =
                -(ContinuousLinearMap.adjoint (OptProblem.A₁ E₂))
                    (yn' +
                      ADMM.ρ E₁ E₂ F • ((OptProblem.A₁ E₂) x₁n + (OptProblem.A₂ E₁) x₂n' - OptProblem.b E₁ E₂)) := sorry

Tactic state before:
E₁ : Type u_1
E₂ : Type u_2
F : Type u_3
inst✝⁹ : NormedAddCommGroup E₁
inst✝⁸ : InnerProductSpace ℝ E₁
inst✝⁷ : FiniteDimensional ℝ E₁
inst✝⁶ : NormedAddCommGroup E₂
inst✝⁵ : InnerProductSpace ℝ E₂
inst✝⁴ : FiniteDimensional ℝ E₂
inst✝³ : NormedAddCommGroup F
inst✝² : InnerProductSpace ℝ F
inst✝¹ : FiniteDimensional ℝ F
admm : ADMM E₁ E₂ F
admm_kkt : Existance_of_kkt admm
inst✝ : Setting E₁ E₂ F admm admm_kkt
n : ℕ+
this : ↑n - 1 + 1 = ↑n
un : E₁ := u n
h₁ : un = u n
yn : F := ADMM.y E₁ E₂ ↑n
yn' : F := ADMM.y E₁ E₂ (↑n - 1)
h₂ : yn = ADMM.y E₁ E₂ ↑n
h₃ : yn' = ADMM.y E₁ E₂ (↑n - 1)
x₁n : E₁ := ADMM.x₁ E₂ F ↑n
x₂n : E₂ := ADMM.x₂ E₁ F ↑n
x₂n' : E₂ := ADMM.x₂ E₁ F (↑n - 1)
h₄ : x₁n = ADMM.x₁ E₂ F ↑n
h₅ : x₂n = ADMM.x₂ E₁ F ↑n
aux :
  yn' = yn - (ADMM.τ E₁ E₂ F * ADMM.ρ E₁ E₂ F) • ((OptProblem.A₁ E₂) x₁n + (OptProblem.A₂ E₁) x₂n - OptProblem.b E₁ E₂)
⊢ -(ContinuousLinearMap.adjoint (OptProblem.A₁ E₂)) yn' -
      ADMM.ρ E₁ E₂ F •
        (ContinuousLinearMap.adjoint (OptProblem.A₁ E₂))
          ((OptProblem.A₁ E₂) x₁n + (OptProblem.A₂ E₁) x₂n' - OptProblem.b E₁ E₂) =
    -(ContinuousLinearMap.adjoint (OptProblem.A₁ E₂))
        (yn' + ADMM.ρ E₁ E₂ F • ((OptProblem.A₁ E₂) x₁n + (OptProblem.A₂ E₁) x₂n' - OptProblem.b E₁ E₂))

Tactic:
rw [← A₁†.map_smul, A₁†.map_add, neg_add']

Tactic state after: