Theorem 4.6 — implied costs and revenue sensitivity
ProvedKellyStochasticNetworks.ImpliedCosts.revenue_sensitivityConsider a network with finitely many links and routes, nonnegative integer circuit requirements , positive offered traffic , positive integer capacities , real values per carried call, and at least one route using each link. Let be the Erlang fixed point, let , , , and . Define through the fixed point; for varying capacity, linearly interpolate the scalar Erlang formula before solving the network equations.
There is exactly one pair of vectors satisfying
The offered-traffic derivatives exist, the left capacity derivatives exist at the integer base capacities, and
The selected blocking vector satisfies the published Erlang fixed-point relation with , and every link has positive carried load.
The result identifies the marginal value of traffic and capacity with quantities determined by local route-link equations.
Formalization Note Capacity sensitivity is a derivative from the left of a real function, not a finite difference of network revenues and not a derivative on natural numbers. The theorem retains arbitrary integer demands even though the printed proof only handles a – matrix (finding F2). Positive traffic and positive integer capacities specify the differentiable interior of the original network data. The used-link condition makes the printed quotient in (4.8) meaningful; isolated links are omitted. Zero-traffic marker routes in the proof are not hypotheses or assumed sensitivities. Extending the displayed formula to noninteger base capacities is not asserted (finding F3).
import Definitions.Def_KellyStochasticNetworks_ImpliedCosts_Model
namespace KellyStochasticNetworks.ImpliedCosts
/-- Theorem 4.6. Capacities are positive integers and the capacity derivative is
from the left after linearly interpolating the scalar Erlang formula.
Incidence entries remain arbitrary natural numbers, not just zero or one. -/
theorem revenue_sensitivity {J R : ℕ} (A : Fin J → Fin R → ℕ)
(w ν : Fin R → ℝ) (C : Fin J → ℕ)
(hν : ∀ r, 0 < ν r) (hC : ∀ j, 1 ≤ C j)
(hused : ∀ j, ∃ r, 0 < A j r) :
let CReal : Fin J → ℝ := fun j => (C j : ℝ)
let B := blocking A ν CReal
let lam := carried A ν B
let δ := improvement A ν C B
ErlangFixedPoint A ν C B ∧ (∀ j, B j ∈ Set.Ico (0 : ℝ) 1) ∧
(∀ j, 0 < linkLoad A lam j) ∧
∃ sc : (Fin R → ℝ) × (Fin J → ℝ),
CostSystem A w lam δ sc.1 sc.2 ∧
(∀ sc' : (Fin R → ℝ) × (Fin J → ℝ),
CostSystem A w lam δ sc'.1 sc'.2 → sc' = sc) ∧
(∀ r, HasDerivAt
(fun x : ℝ => revenue A w (Function.update ν r x) CReal)
(acceptance A B r * sc.1 r) (ν r)) ∧
(∀ j, HasDerivWithinAt
(fun x : ℝ => revenue A w ν (Function.update CReal j x))
(sc.2 j) (Set.Iic (CReal j)) (CReal j)) := by sorry
end KellyStochasticNetworks.ImpliedCosts
Read-back
What the Lean code literally says, in plain math · claude-opus-5-5
Throughout, and are natural numbers. Every vector or matrix below is indexed by the finite sets (indices ) and (indices ). The names blocking, carried, improvement, ErlangFixedPoint, linkLoad, CostSystem, revenue and acceptance come from the imported module Definitions.Def_KellyStochasticNetworks_ImpliedCosts_Model. Their definitions were not part of what was given to this read-back. Each one is therefore described only by the arguments it receives, and what it means is whatever that module defines. The declaration also has a documentation comment. It says the capacity derivative is taken from the left after linear interpolation of the scalar Erlang formula, and that incidence entries are arbitrary naturals. That comment is commentary: the statement itself asserts only what is set out below.
Data and hypotheses. The statement takes:
- a matrix of natural numbers. Entries may be any natural number, not only or .
- real vectors and .
- a vector of natural numbers.
It assumes:
Nothing is assumed about . Its entries may be negative or zero.
Abbreviations. Write for viewed as a real number, and define:
- , computed from the real capacities;
- ;
- , computed from the natural-number capacities .
Conclusions. The theorem asserts all of the following together.
- holds. This uses the natural-number .
- for every .
- for every .
- There is exactly one pair with and satisfying . Uniqueness here means that any pair satisfying equals . This same pair also satisfies the two derivative statements (a) and (b) below.
(a) Derivative in demand. Fix a route . Let denote with its -th entry replaced by the real number . The function
has an ordinary two-sided derivative at , and that derivative equals
In this formula, is the fixed vector computed from the unperturbed and .
(b) Derivative in capacity. Fix a link . Let denote with its -th entry replaced by the real number . The function
has derivative exactly at within the set . That is a one-sided derivative from the left:
Nothing is asserted about the behaviour to the right of . The derivative is stated as , with no minus sign. For (b) to say anything, revenue must be defined at non-integer real capacities ; what it computes there depends on the imported definition.
Degenerate cases.
- , . The hypothesis that every link has a route with cannot be satisfied, so the theorem is vacuously true.
- . That hypothesis holds vacuously, and so do conclusions 2 and 3 and the capacity-derivative clause (b). The vector is the unique empty vector. What remains is (on empty link data), unique existence of , and the demand derivatives (a). Whether these say anything depends entirely on the imported definitions.
- and . Clause (a) is also vacuous. What remains is together with existence and uniqueness of the pair of empty vectors under .
Because and , both derivatives are taken at points strictly inside the positive reals. Values of revenue at non-positive demands or capacities can still be computed (the functions are total), but they do not affect the derivatives. Any junk values the imported definitions produce, such as division by zero, natural-number subtraction or default values, cannot be assessed here because those definitions were not provided.
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.