Appendix A2, Claim (A-18) — finite backup-capacity witness
DisprovedWangWebsterFlexibility.Threshold.claim_A18Let independent nonnegative demands and margins be fixed, with and . There exist finite real numbers such that , , and finite feasible decisions satisfying
The finite feasible df witness is part of the conclusion, even if the ff supremum is not attained. This is the claim attached to the displayed cumulative-benefit inequality (A-18), after cancelling the baseline terms. The source's infeasible zero-cost endpoint in its proof is recorded as insight I2; it is not an added hypothesis or a repaired target.
Differences from the source:
- encoding: independent nonnegative real random demands and nonnegative real decisions → Borel probability laws on nonnegative reals, their product measure, and nonnegative-real decision types; reason: the law-based representation covers all the original distributions and decisions, including atoms and unbounded support
- reading: the cost regime γ+v≤Γ immediately preceding the Claim (A-18) → an existential admissible reservation fee γ at fixed demand laws, margins, reliability, c and v; reason: makes the implicit cost regime and parameter dependence explicit while retaining the finite witnessing decisions
- encoding: the three baseline profit differences in (A-18) → u_df(sᵒ,q₁,q₂)≥U_ff after cancellation and replacing optimal ff notation by its value; reason: the finite df witness is preserved and the comparison does not presume an ff maximizer
- encoding: separately optimized network profits → extended-real suprema over all feasible finite reservations and orders; reason: no boundedness or attainment assumption is supplied by the source; positive infinity must not become a default real zero
import Definitions.Def_WangWebsterFlexibility_Threshold_Profits open scoped NNReal
/- Imported definition bodies for the blind statement audit.
These are quotations of the imported Lean modules, not new declarations.
import Mathlib.MeasureTheory.Measure.ProbabilityMeasure
import Mathlib.MeasureTheory.Measure.Prod
import Mathlib.MeasureTheory.Integral.Bochner.Basic
open MeasureTheory
open scoped NNReal
namespace WangWebsterFlexibility.Threshold
/-- Two independent nonnegative demand laws and the common economic primitives (§3, pp. 9–11).
The laws are unrestricted Borel probability measures; no moment or density is assumed. -/
structure Model where
demand₁ : ProbabilityMeasure ℝ≥0
demand₂ : ProbabilityMeasure ℝ≥0
π₁ : ℝ
π₂ : ℝ
ρ : ℝ
/-- Independence is implemented with the standard product measure. -/
noncomputable def Model.law (M : Model) : Measure (ℝ≥0 × ℝ≥0) :=
(M.demand₁ : Measure ℝ≥0).prod (M.demand₂ : Measure ℝ≥0)
/-- Expected value under the independent demand laws. The sales expressions used below are
measurable and bounded for each fixed finite decision, even when demand has infinite mean. -/
noncomputable def Model.expect (M : Model) (f : ℝ≥0 × ℝ≥0 → ℝ) : ℝ :=
∫ d, f d ∂M.law
/-- Real positive part, used in the printed allocation formulas. -/
noncomputable def pos (x : ℝ) : ℝ := max 0 x
/-- Revenue net of exercise charges with dedicated available primary quantities (4), p. 12. -/
noncomputable def revenueDF (M : Model) (v : ℝ) (d : ℝ≥0 × ℝ≥0)
(a₁ a₂ s : ℝ) : ℝ :=
M.π₁ * min (d.1 : ℝ) a₁ + M.π₂ * min (d.2 : ℝ) a₂ +
(M.π₁ - v) * min (pos ((d.1 : ℝ) - a₁)) s +
(M.π₂ - v) * min (pos ((d.2 : ℝ) - a₂)) (pos (s - pos ((d.1 : ℝ) - a₁)))
/-- Revenue net of exercise charges when the flexible primary succeeds (5), p. 13. -/
noncomputable def revenueFF (M : Model) (v : ℝ) (d : ℝ≥0 × ℝ≥0)
(q s : ℝ) : ℝ :=
M.π₁ * min (d.1 : ℝ) q + M.π₂ * min (d.2 : ℝ) (pos (q - (d.1 : ℝ))) +
(M.π₁ - v) * min (pos ((d.1 : ℝ) - q)) s +
(M.π₂ - v) * min (pos ((d.2 : ℝ) - pos (q - (d.1 : ℝ))))
(pos (s - pos ((d.1 : ℝ) - q)))
end WangWebsterFlexibility.Threshold
import Definitions.Def_WangWebsterFlexibility_Threshold_Model
import Mathlib.Data.EReal.Basic
open scoped NNReal
namespace WangWebsterFlexibility.Threshold
/-- Equation (4): independent primary failures, reservation paid up front, primary paid
on delivery including unsold units. Decisions are all nonnegative finite real numbers. -/
noncomputable def profitDF (M : Model) (c γ v : ℝ) (s q₁ q₂ : ℝ≥0) : ℝ :=
-γ * (s : ℝ) - c * (1 - M.ρ) * ((q₁ : ℝ) + (q₂ : ℝ)) +
M.ρ ^ 2 * M.expect (fun d => revenueDF M v d 0 0 s) +
(1 - M.ρ) ^ 2 * M.expect (fun d => revenueDF M v d q₁ q₂ s) +
M.ρ * (1 - M.ρ) * M.expect (fun d => revenueDF M v d q₁ 0 s) +
M.ρ * (1 - M.ρ) * M.expect (fun d => revenueDF M v d 0 q₂ s)
/-- Equation (5): one common failure of the consolidated primary supplier. -/
noncomputable def profitFF (M : Model) (c γ v : ℝ) (s q : ℝ≥0) : ℝ :=
-γ * (s : ℝ) - c * (1 - M.ρ) * (q : ℝ) +
M.ρ * M.expect (fun d => revenueDF M v d 0 0 s) +
(1 - M.ρ) * M.expect (fun d => revenueFF M v d q s)
/-- Independently optimized df value over the full feasible decision set, including zero.
The complete extended real order retains an unbounded supremum as positive infinity. -/
noncomputable def valueDF (M : Model) (c γ v : ℝ) : EReal :=
⨆ (s : ℝ≥0) (q₁ : ℝ≥0) (q₂ : ℝ≥0), (profitDF M c γ v s q₁ q₂ : EReal)
/-- Independently optimized ff value, with no assumed maximizer. -/
noncomputable def valueFF (M : Model) (c γ v : ℝ) : EReal :=
⨆ (s : ℝ≥0) (q : ℝ≥0), (profitFF M c γ v s q : EReal)
/-- Admissible reservation fee at fixed primary and exercise costs (§3, pp. 10–11). -/
def AdmissibleFee (c v γ : ℝ) : Prop := 0 ≤ γ ∧ c < γ + v
end WangWebsterFlexibility.Threshold
-/
namespace WangWebsterFlexibility.Threshold
/-- Appendix A2, Claim associated with (A-18), A16 (PDF 53): a finite feasible df
decision reaches the optimized ff value at some admissible cheap reservation fee. -/
theorem claim_A18 (M : Model)
(hπ : M.π₂ < M.π₁)
(hρ₀ : 0 < M.ρ) (hρ₁ : M.ρ < 1)
(c v : ℝ) (hc : 0 ≤ c) (hcv : c ≤ v) (hvπ : v < M.π₂) :
∃ Γ γ : ℝ, AdmissibleFee c v γ ∧ γ + v ≤ Γ ∧
∃ s q₁ q₂ : ℝ≥0, valueFF M c γ v ≤ (profitDF M c γ v s q₁ q₂ : EReal) := by sorry
end WangWebsterFlexibility.Threshold
Read-back
What the Lean code literally says, in plain math · claude-opus-5-5
Setting. Let be any model with:
- demand laws on ;
- reals ;
- real numbers ;
subject to
Let be the dedicated profit and the extended-real supremum of the flexible profit over all nonnegative decisions . Both are as defined in the Profits block:
Assertion. There exist reals and , and nonnegative reals , such that all of the following hold:
- is admissible, that is, and ;
- ;
- , compared in the extended reals.
The number is constrained only by , so it can always be taken to be . The statement is therefore logically equivalent to the existence of an admissible fee and a nonnegative decision whose dedicated profit is at least the flexible supremum at that fee. In particular, is finite at that fee. No further property of , such as being small, is asserted.
Degenerate cases.
- . Admissibility forces .
- . is admissible.
- Zero decision. The decision is allowed, giving .
- Unrestricted demand laws. The laws are arbitrary, including point masses at and laws with infinite mean. For example, if both are point masses at , every revenue is .
- Infinite flexible value. The comparison fails at any fee where , so the asserted fee must be one where the flexible supremum is finite.
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.