(6): the derivative = numerator
ProvedAssortSearch.MNLQC.eq_6Let be the variants' preferences, the no-purchase preference, real margins, and an operational cost function that is concave and increasing on . Assume also that is differentiable on . Fix an assortment and a variant , and write . Let be the profit change from adding with preference under the MNL model without search.
Then, for every , is differentiable at and
This is display (6) in the proof of Theorem 4. The sign of is therefore the sign of the numerator, which is what the rest of the proof studies.
Formalization Note The paper writes a common margin in both brackets. The statement keeps the model's per-variant margins, in the first bracket and in the sum, and reduces to the printed formula when all margins are equal. Differentiability of on is added here because the paper differentiates in (6). The goal theorem does not assume it. The derivative is claimed only for , because at the demand is , an endpoint of 's domain.
import Mathlib import Definitions.Def_RetailVariety_Structure_Model import Definitions.Def_AssortSearch_MNLQC_Model
namespace AssortSearch.MNLQC
/-- **(6)** (proof of Theorem 4, p. 14): for `v_j = x > 0` and `c` differentiable on `(0, 1)`,
`h^m′(v_j) = numerator6 / (v_j + V_S)^2`, with `V_S = v_0 + ∑_{i∈S} v_i` and the numerator
written with per-variant margins (`m_j` in the first bracket, `m_i` in the sum). -/
theorem eq_6
{n : ℕ} (m : Fin n → ℝ) (c : ℝ → ℝ) (v : Fin n → ℝ) (v0 : ℝ)
(S : Finset (Fin n)) (j : Fin n)
(hv : ∀ i, 0 < v i) (hv0 : 0 < v0)
(hc_concave : ConcaveOn ℝ (Set.Icc 0 1) c) (hc_mono : MonotoneOn c (Set.Icc 0 1))
(hj : j ∉ S)
(hc_diff : DifferentiableOn ℝ c (Set.Ioo 0 1)) (x : ℝ) (hx : 0 < x) :
HasDerivAt (hm m c v v0 S j)
(numerator6 m c v v0 S j x / (x + prefTotal v v0 S) ^ 2) x := by sorry
end AssortSearch.MNLQC
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.