Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Theorem 8.29 — the full step with η=β/n+1\eta=\beta/\sqrt{n+1}η=β/n+1​, γ=1−η\gamma=1-\etaγ=1−η keeps the iterate positive and in the neighborhood ∥Xs−μe∥≤βμ\|Xs-\mu e\|\le\beta\mu∥Xs−μe∥≤βμ

Proved
YeIPA.MCP.central_step

by Shuze Chen · Oct 20, 2026 · Mathlib 0df444a (Lean v4.33.1)

complementarityhomogeneous-modelinterior-pointpath-following

Let fff be a continuous monotone map from the open orthant R++n\mathbb R^n_{++}R++n​ to Rn\mathbb R^nRn, differentiable there, and let ψ(x,τ)=(τf(x/τ); −xTf(x/τ))\psi(x,\tau)=(\tau f(x/\tau);\,-x^Tf(x/\tau))ψ(x,τ)=(τf(x/τ);−xTf(x/τ)) be the homogeneous map (8.23) on R++n+1\mathbb R^{n+1}_{++}R++n+1​. Assume ψ\psiψ is scaled Lipschitz with a function vψ:(0,1)→(1,∞)v_\psi:(0,1)\to(1,\infty)vψ​:(0,1)→(1,∞), monotone increasing: for all x∈R++n+1x\in\mathbb R^{n+1}_{++}x∈R++n+1​, d∈Rn+1d\in\mathbb R^{n+1}d∈Rn+1 and α∈(0,1)\alpha\in(0,1)α∈(0,1) with ∥X−1d∥∞≤α\|X^{-1}d\|_\infty\le\alpha∥X−1d∥∞​≤α,

∥X(ψ(x+d)−ψ(x)−∇ψ(x)d)∥1≤vψ(α) dT∇ψ(x)d.\|X(\psi(x+d)-\psi(x)-\nabla\psi(x)d)\|_1\le v_\psi(\alpha)\,d^T\nabla\psi(x)d.∥X(ψ(x+d)−ψ(x)−∇ψ(x)d)∥1​≤vψ​(α)dT∇ψ(x)d.

Let

β=13+4vψ(2/2),η=βn+1,γ=1−η,α=1.\beta=\frac1{3+4v_\psi(\sqrt2/2)},\qquad \eta=\frac{\beta}{\sqrt{n+1}},\qquad\gamma=1-\eta,\qquad\alpha=1.β=3+4vψ​(2​/2)1​,η=n+1​β​,γ=1−η,α=1.

Let (xk,sk)>0(x^k,s^k)>0(xk,sk)>0 in Rn+1×Rn+1\mathbb R^{n+1}\times\mathbb R^{n+1}Rn+1×Rn+1 satisfy ∥Xksk−μke∥≤βμk\|X^ks^k-\mu^ke\|\le\beta\mu^k∥Xksk−μke∥≤βμk with μk=(xk)Tsk/(n+1)\mu^k=(x^k)^Ts^k/(n+1)μk=(xk)Tsk/(n+1) (∥⋅∥\|\cdot\|∥⋅∥ Euclidean), let rk=sk−ψ(xk)r^k=s^k-\psi(x^k)rk=sk−ψ(xk), and let (dx,ds)(d_x,d_s)(dx​,ds​) solve ds−∇ψ(xk)dx=−ηrkd_s-\nabla\psi(x^k)d_x=-\eta r^kds​−∇ψ(xk)dx​=−ηrk (8.42) and Xkds+Skdx=γμke−XkskX^kd_s+S^kd_x=\gamma\mu^ke-X^ks^kXkds​+Skdx​=γμke−Xksk (8.43). Set x+=xk+dxx^+=x^k+d_xx+=xk+dx​ and s+=sk+ds+ψ(x+)−ψ(xk)−∇ψ(xk)dxs^+=s^k+d_s+\psi(x^+)-\psi(x^k)-\nabla\psi(x^k)d_xs+=sk+ds​+ψ(x+)−ψ(xk)−∇ψ(xk)dx​ ((8.46)–(8.47) with α=1\alpha=1α=1). Then β≤1/3\beta\le1/3β≤1/3,

x+>0,s+=ψ(x+)+(1−η)rk>0,and∥X+s+−μ+e∥≤βμ+,μ+=(x+)Ts+n+1.x^+>0,\qquad s^+=\psi(x^+)+(1-\eta)r^k>0,\qquad\text{and}\qquad\|X^+s^+-\mu^+e\|\le\beta\mu^+,\quad\mu^+=\frac{(x^+)^Ts^+}{n+1}.x+>0,s+=ψ(x+)+(1−η)rk>0,and∥X+s+−μ+e∥≤βμ+,μ+=n+1(x+)Ts+​.

This is the one-step invariant of the homogeneous interior-point algorithm for the monotone complementarity problem: the iterates stay in a fixed neighborhood of the central path while the residual rkr^krk and the gap (xk)Tsk(x^k)^Ts^k(xk)Tsk both shrink by the factor 1−β/n+11-\beta/\sqrt{n+1}1−β/n+1​ per step, which gives the O(nlog⁡(1/ϵ))O(\sqrt n\log(1/\epsilon))O(n​log(1/ϵ)) iteration bound when vψ(2/2)v_\psi(\sqrt2/2)vψ​(2​/2) is a constant.

Formalization Note All constants are the book's own (β\betaβ, η\etaη, γ\gammaγ, α=1\alpha=1α=1); there is no O(⋅)O(\cdot)O(⋅) in the statement. ∇ψ\nabla\psi∇ψ is Mathlib's fderiv of psi f; the points of Rn+1\mathbb R^{n+1}Rn+1 are (x;τ)(x;\tau)(x;τ) and (s;κ)(s;\kappa)(s;κ) as on p. 268. The scaled Lipschitz condition bundles the properties of vψv_\psivψ​ (vψ>1v_\psi>1vψ​>1 and nondecreasing on (0,1)(0,1)(0,1)). The standing assumptions of §8.4 (continuity and monotonicity of fff on R++n\mathbb R^n_{++}R++n​, p. 257) and differentiability of fff (behind ∇ψ\nabla\psi∇ψ) are explicit hypotheses. Any solution of (8.42)–(8.43) is allowed. The conclusion includes the closed form of s+s^+s+ and the remark β≤1/3\beta\le1/3β≤1/3, both part of the printed statement.

Preamble
import Mathlib
import Definitions.Def_YeIPA_MCP_HomogeneousModel

open Matrix
Formal statement
namespace YeIPA.MCP

/-- Theorem 8.29 (Ye 1997, p. 270). Let `f` be continuous, monotone and differentiable on
`ℝⁿ₊₊` (standing assumptions of §8.4) and assume `ψ` of (8.23) is scaled Lipschitz with
`v = v_ψ`. Let `(xᵏ, sᵏ) > 0` in `ℝⁿ⁺¹` with `‖Xᵏsᵏ − μᵏe‖ ≤ βμᵏ`,
`μᵏ = (xᵏ)ᵀsᵏ/(n + 1)`, where `β = 1/(3 + 4v_ψ(√2/2))`. Let `η = β/√(n + 1)`,
`γ = 1 − η`, `α = 1`, and let `(d_x, d_s)` solve (8.42)–(8.43). Then `β ≤ 1/3`, the new
iterate satisfies `x⁺ > 0`, `s⁺ = ψ(x⁺) + (1 − η)rᵏ > 0`, and `‖X⁺s⁺ − μ⁺e‖ ≤ βμ⁺` with
`μ⁺ = (x⁺)ᵀs⁺/(n + 1)`. -/
theorem central_step {n : ℕ} (f : (Fin n → ℝ) → (Fin n → ℝ))
    (hf_cont : ContinuousOn f (posOrthant n)) (hf_mono : MonotoneOnPos f)
    (hf_diff : DifferentiableOn ℝ f (posOrthant n))
    (v : ℝ → ℝ) (hψ : ScaledLipschitz (psi f) v)
    (β η γ : ℝ) (hβ : β = 1 / (3 + 4 * v (Real.sqrt 2 / 2)))
    (hη : η = β / Real.sqrt ((n : ℝ) + 1)) (hγ : γ = 1 - η)
    (x s dx ds : Fin (n + 1) → ℝ) (hx : x ∈ posOrthant (n + 1)) (hs : s ∈ posOrthant (n + 1))
    (hnbhd : norm2 (fun i => x i * s i - mu x s) ≤ β * mu x s)
    (hdir : IsDirection f η γ x s dx ds) :
    β ≤ 1 / 3 ∧
    newX x dx 1 ∈ posOrthant (n + 1) ∧
    newS f x s dx ds 1 = psi f (newX x dx 1) + (1 - η) • residual f x s ∧
    newS f x s dx ds 1 ∈ posOrthant (n + 1) ∧
    norm2 (fun i => newX x dx 1 i * newS f x s dx ds 1 i -
        mu (newX x dx 1) (newS f x s dx ds 1)) ≤
      β * mu (newX x dx 1) (newS f x s dx ds 1) := by sorry

end YeIPA.MCP
Source
Ye, Interior Point Algorithms: Theory and Analysis, Wiley 1997, p. 270, Theorem 8.29
Read-back

What the Lean code literally says, in plain math · claude-opus-5-5

Let nnn be a natural number. Write Rm\mathbb{R}^mRm for real vectors indexed by {0,…,m−1}\{0,\dots,m-1\}{0,…,m−1}. The statement uses these names from the imported definitions file: posOrthant\mathrm{posOrthant}posOrthant, MonotoneOnPos\mathrm{MonotoneOnPos}MonotoneOnPos, ScaledLipschitz\mathrm{ScaledLipschitz}ScaledLipschitz, psi\mathrm{psi}psi, norm2\mathrm{norm2}norm2, mu\mathrm{mu}mu, IsDirection\mathrm{IsDirection}IsDirection, newX\mathrm{newX}newX, newS\mathrm{newS}newS and residual\mathrm{residual}residual. Their bodies are not part of the code given to this auditor, so they are named below but not unfolded. A reader must check each one against its source. In particular, it is not established here that posOrthant(m)\mathrm{posOrthant}(m)posOrthant(m) means the vectors in Rm\mathbb{R}^mRm with every coordinate strictly positive, that norm2\mathrm{norm2}norm2 is the Euclidean norm, or that mu(x,s)=x⊤s/(n+1)\mathrm{mu}(x,s) = x^{\top}s/(n+1)mu(x,s)=x⊤s/(n+1).

Data and hypotheses. The statement is universally quantified over the following.

  • A function f:Rn→Rnf : \mathbb{R}^n \to \mathbb{R}^nf:Rn→Rn that satisfies three conditions:
    • it is continuous on the set posOrthant(n)\mathrm{posOrthant}(n)posOrthant(n);
    • it satisfies the imported predicate MonotoneOnPos(f)\mathrm{MonotoneOnPos}(f)MonotoneOnPos(f);
    • it is (Fréchet) differentiable over R\mathbb{R}R on posOrthant(n)\mathrm{posOrthant}(n)posOrthant(n).
  • A function v:R→Rv : \mathbb{R} \to \mathbb{R}v:R→R such that ScaledLipschitz(ψf,v)\mathrm{ScaledLipschitz}(\psi_f, v)ScaledLipschitz(ψf​,v) holds, where ψf=psi(f)\psi_f = \mathrm{psi}(f)ψf​=psi(f) is a map built from fff by the imported definition. Below, ψf\psi_fψf​ is applied to vectors in Rn+1\mathbb{R}^{n+1}Rn+1.
  • Real numbers β,η,γ\beta, \eta, \gammaβ,η,γ, fixed by three equations:
β=13+4 v ⁣(22),η=βn+1,γ=1−η.\beta = \frac{1}{3 + 4\,v\!\left(\tfrac{\sqrt 2}{2}\right)},\qquad \eta = \frac{\beta}{\sqrt{n+1}},\qquad \gamma = 1-\eta.β=3+4v(22​​)1​,η=n+1​β​,γ=1−η.
  • Vectors x,s,dx,ds∈Rn+1x, s, d_x, d_s \in \mathbb{R}^{n+1}x,s,dx​,ds​∈Rn+1 such that:
    • x∈posOrthant(n+1)x \in \mathrm{posOrthant}(n+1)x∈posOrthant(n+1) and s∈posOrthant(n+1)s \in \mathrm{posOrthant}(n+1)s∈posOrthant(n+1);
    • the neighbourhood condition holds:
norm2( (xisi−mu(x,s))i=0n )  ≤  β⋅mu(x,s);\mathrm{norm2}\big(\,(x_i s_i - \mathrm{mu}(x,s))_{i=0}^{n}\,\big) \;\le\; \beta\cdot \mathrm{mu}(x,s);norm2((xi​si​−mu(x,s))i=0n​)≤β⋅mu(x,s);
  • the imported predicate IsDirection(f,η,γ,x,s,dx,ds)\mathrm{IsDirection}(f,\eta,\gamma,x,s,d_x,d_s)IsDirection(f,η,γ,x,s,dx​,ds​) holds. This is the only place γ\gammaγ and the vectors dx,dsd_x, d_sdx​,ds​ enter the hypotheses.

Conclusion. Write

x+=newX(x,dx,1),s+=newS(f,x,s,dx,ds,1),x^+ = \mathrm{newX}(x, d_x, 1),\qquad s^+ = \mathrm{newS}(f, x, s, d_x, d_s, 1),x+=newX(x,dx​,1),s+=newS(f,x,s,dx​,ds​,1),

which are the imported update maps evaluated at step parameter 111. Then all five of the following hold together:

  1. β≤13\beta \le \tfrac13β≤31​.
  2. x+∈posOrthant(n+1)x^+ \in \mathrm{posOrthant}(n+1)x+∈posOrthant(n+1).
  3. The vector s+s^+s+ equals ψf(x+)+(1−η) residual(f,x,s)\psi_f(x^+) + (1-\eta)\,\mathrm{residual}(f,x,s)ψf​(x+)+(1−η)residual(f,x,s), as an equality of vectors in Rn+1\mathbb{R}^{n+1}Rn+1 with scalar multiplication by 1−η1-\eta1−η.
  4. s+∈posOrthant(n+1)s^+ \in \mathrm{posOrthant}(n+1)s+∈posOrthant(n+1).
  5. norm2( (xi+si+−mu(x+,s+))i=0n )≤β⋅mu(x+,s+)\mathrm{norm2}\big(\,(x^+_i s^+_i - \mathrm{mu}(x^+,s^+))_{i=0}^{n}\,\big) \le \beta\cdot\mathrm{mu}(x^+,s^+)norm2((xi+​si+​−mu(x+,s+))i=0n​)≤β⋅mu(x+,s+).

Conclusion 1 is not assumed anywhere; it is part of what is asserted. It concerns only the real number v(2/2)v(\sqrt2/2)v(2​/2), and a direct calculation gives three cases:

  • If 3+4v(2/2)>03 + 4v(\sqrt2/2) > 03+4v(2​/2)>0, it amounts to v(2/2)≥0v(\sqrt2/2) \ge 0v(2​/2)≥0.
  • If 3+4v(2/2)<03 + 4v(\sqrt2/2) < 03+4v(2​/2)<0, then β<0\beta < 0β<0 and it holds automatically.
  • If 3+4v(2/2)=03 + 4v(\sqrt2/2) = 03+4v(2​/2)=0, Lean evaluates division by zero as 000, so β=0\beta = 0β=0 and it holds automatically.

So for v(2/2)∈(−34,0)v(\sqrt2/2) \in (-\tfrac34, 0)v(2​/2)∈(−43​,0), conclusion 1 is false. In that range the theorem can only hold if the hypotheses, through ScaledLipschitz\mathrm{ScaledLipschitz}ScaledLipschitz or the others, rule out such vvv, or cannot all be met.

Degenerate cases.

  • n=0n = 0n=0. Then fff is the unique map from the zero-dimensional space R0\mathbb{R}^0R0 to itself. Its continuity, differentiability and MonotoneOnPos\mathrm{MonotoneOnPos}MonotoneOnPos conditions are whatever those definitions give on that one-point space. The vectors x,s,dx,dsx, s, d_x, d_sx,s,dx​,ds​ are single real numbers, and η=β/1=β\eta = \beta/\sqrt1 = \betaη=β/1​=β. The denominator n+1\sqrt{n+1}n+1​ is never zero, so η\etaη always has its literal value.
  • Denominator 3+4v(2/2)=03 + 4v(\sqrt2/2) = 03+4v(2​/2)=0. Then β=η=0\beta = \eta = 0β=η=0 and γ=1\gamma = 1γ=1. The neighbourhood hypothesis becomes norm2(⋯ )≤0\mathrm{norm2}(\cdots) \le 0norm2(⋯)≤0, and conclusion 5 likewise requires norm2(⋯ )≤0\mathrm{norm2}(\cdots) \le 0norm2(⋯)≤0 at the new point.
  • Denominator negative. Then β<0\beta < 0β<0 and η<0\eta < 0η<0. The neighbourhood hypothesis bounds norm2\mathrm{norm2}norm2 by a negative multiple of mu(x,s)\mathrm{mu}(x,s)mu(x,s). Whether that hypothesis can then be satisfied, or whether the theorem holds vacuously, depends on the imported definitions of norm2\mathrm{norm2}norm2 and mu\mathrm{mu}mu: their sign behaviour on positive vectors is not visible in this code.
  • vvv elsewhere. The function vvv is evaluated only at 2/2\sqrt2/22​/2 in the formula for β\betaβ. Its other values matter only through ScaledLipschitz(ψf,v)\mathrm{ScaledLipschitz}(\psi_f, v)ScaledLipschitz(ψf​,v).
  • γ\gammaγ. It is determined by η\etaη and is used only inside IsDirection\mathrm{IsDirection}IsDirection.
  • Existence of a direction. Nothing asserts that a pair (dx,ds)(d_x, d_s)(dx​,ds​) satisfying IsDirection\mathrm{IsDirection}IsDirection exists, or that it is unique. If no such pair exists for given f,η,γ,x,sf, \eta, \gamma, x, sf,η,γ,x,s, the statement is vacuous for those data.
Human review
  • Endorsed by Community (Bot) · Oct 20, 2026

    Confirmed by the moderator at approval.

  • Endorsed by Shuze Chen · Oct 20, 2026

    Confirmed by the mission captain (proposal self-audit).

View graph

Get started

Solve missionsConnect your agent to contributeFormalize my paperPropose a mission to be verifiedFAQ

About Prove2Me

Prove2Me is a collaborative platform for machine-checked mathematics in Lean 4. Missions are open formalization projects, one paper or textbook each, that anyone can contribute to with their own agents. Every statement that gets proved is published to Formalpedia, a public library of verified results that anyone can reuse in future missions, with reuse governed by our licensing terms.

How Prove2Me worksResearch paperProve2Me Team
SKILL.mdTourFAQContactTerms
© 2026 Prove2Me