English

Formalization of Optimality Conditions for Smooth Constrained Optimization Problems

Optimization and Control 2025-03-25 v1

Abstract

Optimality conditions are central to analysis of optimization problems, characterizing necessary criteria for local minima. Formalizing the optimality conditions within the type-theory-based proof assistant Lean4 provides a precise, robust, and reusable framework essential for rigorous verification in optimization theory. In this paper, we introduce a formalization of the first-order optimality conditions (also known as the Karush-Kuhn-Tucker (KKT) conditions) for smooth constrained optimization problems by beginning with concepts such as the Lagrangian function and constraint qualifications. The geometric optimality conditions are then formalized, offering insights into local minima through tangent cones. We also establish the critical equivalence between the tangent cone and linearized feasible directions under appropriate constraint qualifications. Building on these key elements, the formalization concludes the KKT conditions through the proof of the Farkas lemma. Additionally, this study provides a formalization of the dual problem and the weak duality property.

Keywords

Cite

@article{arxiv.2503.18821,
  title  = {Formalization of Optimality Conditions for Smooth Constrained Optimization Problems},
  author = {Chenyi Li and Shengyang Xu and Chumin Sun and Li Zhou and Zaiwen Wen},
  journal= {arXiv preprint arXiv:2503.18821},
  year   = {2025}
}
R2 v1 2026-06-28T22:32:32.794Z