Customer Tolerances, p. 883, eq. (5), first line — dζ/dx_j = [z₂(dz₁/dx_j) − z₁(dz₂/dx_j)]/z₂²
ProvedCuttingStock63.Fractional.ratio_hasDerivAt_lineLet with , and write
for the values of the two linear functions at and their rates of change in the direction . Then is differentiable at with derivative
When is the edge direction of a nonbasic variable , this is the rate of change of the objective as 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 ; the edge direction of is the special case used on p. 883. The hypothesis 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 and of the basis inverse.
import Mathlib import Definitions.Def_DermanSeqDecisions_LinProg_LinearFractional
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
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.