Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Customer Tolerances, p. 883, eq. (5), first line — dζ/dx_j = [z₂(dz₁/dx_j) − z₁(dz₂/dx_j)]/z₂²

Proved
CuttingStock63.Fractional.ratio_hasDerivAt_line

by mikedeng1 · Oct 6, 2026 · Mathlib 0df444a (Lean v4.33.1)

derivativelinear-fractional-programmingp2o-batch-pfp2ap2o-gran-per-chapterp2o-plan-paperp2o-v1quotient-rule

Let c,d,x,v∈Rnc,d,x,v\in\mathbb R^nc,d,x,v∈Rn with z2=∑idixi≠0z_2=\sum_i d_ix_i\ne 0z2​=∑i​di​xi​=0, and write

z1=∑icixi,dz1dxj=∑icivi,dz2dxj=∑idiviz_1=\sum_i c_ix_i,\qquad \frac{dz_1}{dx_j}=\sum_i c_iv_i,\qquad \frac{dz_2}{dx_j}=\sum_i d_iv_iz1​=i∑​ci​xi​,dxj​dz1​​=i∑​ci​vi​,dxj​dz2​​=i∑​di​vi​

for the values of the two linear functions at xxx and their rates of change in the direction vvv. Then τ↦ζ(x+τv)=z1(x+τv)/z2(x+τv)\tau\mapsto\zeta(x+\tau v)=z_1(x+\tau v)/z_2(x+\tau v)τ↦ζ(x+τv)=z1​(x+τv)/z2​(x+τv) is differentiable at τ=0\tau=0τ=0 with derivative

dζdxj=z2 dz1dxj−z1 dz2dxjz22.\frac{d\zeta}{dx_j}=\frac{z_2\,\dfrac{dz_1}{dx_j}-z_1\,\dfrac{dz_2}{dx_j}}{z_2^{2}} .dxj​dζ​=z22​z2​dxj​dz1​​−z1​dxj​dz2​​​.

When vvv is the edge direction of a nonbasic variable xjx_jxj​, this is the rate of change of the objective ζ=z1/z2\zeta=z_1/z_2ζ=z1​/z2​ as xjx_jxj​ is increased with the other nonbasic variables kept at zero, which is the quantity the simplex test inspects.

Formalization Note The statement holds for every direction vvv; the edge direction of xjx_jxj​ is the special case used on p. 883. The hypothesis z2≠0z_2\ne0z2​=0 is the page's standing "domain where the denominator does not vanish"; without it Lean's division by zero would give a meaningless value. Only the first line of (5) is stated here; the second and third lines express the same quantity through the rows (1,0,Π1)(1,0,\Pi^1)(1,0,Π1) and (0,1,Π2)(0,1,\Pi^2)(0,1,Π2) of the basis inverse.

Preamble
import Mathlib
import Definitions.Def_DermanSeqDecisions_LinProg_LinearFractional
Formal statement
namespace CuttingStock63.Fractional
open DermanSeqDecisions.LinProg
theorem ratio_hasDerivAt_line {n : ℕ} (c d x v : Fin n → ℝ) (hx : ∑ i, d i * x i ≠ 0) :
    HasDerivAt (fun τ : ℝ => fracObj c d (x + τ • v))
      (((∑ i, d i * x i) * (∑ i, c i * v i) - (∑ i, c i * x i) * (∑ i, d i * v i)) /
        (∑ i, d i * x i) ^ 2) 0 := by sorry
end CuttingStock63.Fractional
Source
Gilmore & Gomory, A linear programming approach to the cutting stock problem—Part II, Opns. Res. 11 (1963), p. 883, Customer Tolerances, eq. (5), first line
Human review
  • Endorsed by Shuze Chen · Oct 6, 2026

    Confirmed by the moderator at approval.

  • Endorsed by mikedeng1 · Oct 6, 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