Appendix C — partial-rebate game from patient welfare and payoffs
DefinitionOutcomeRebate_Transfer_Supplement_PartialRebateUse the published parameters: patients, values uniform on , production cost , success probability , co-insurance , curvature , loss aversion , and payer benefit . The unrefunded fraction multiplies the payment on treatment failure. For patient share , define
Buyers are exactly with . Demand is times their Lebesgue volume. Integrate over these buyers to obtain patient payoff, and multiply demand by for payer payoff. Their sum is the payer objective. Coverage means the objective at is at least that at . Firm profit is times demand; realized profit uses the share actually chosen by the payer. An equilibrium price is a nonnegative price maximizing realized profit over every nonnegative price.
The candidate covered and uncovered interior prices are and . The applicable profitability assumption is , replacing Assumption 1. The game includes and . Demand is derived from prospect-theory welfare rather than defined by a positive-part closed form.
import Mathlib
import Definitions.Def_OutcomeRebate_Transfer_Model
namespace OutcomeRebate.Transfer.Supplement
open MeasureTheory
/-- Fraction of the listed price received on average. θ is the unrefunded fraction. -/
def partialMargin (P : Params) (θ : ℝ) : ℝ := θ + P.q * (1 - θ)
noncomputable def zBar (P : Params) (θ : ℝ) : ℝ := 1 + θ * (P.z - 1)
/-- Appendix C replaces Assumption 1 by this inequality. -/
def PartialAssumption (P : Params) (θ : ℝ) : Prop :=
P.β * P.c / P.vbar < partialMargin P θ / zBar P θ
noncomputable def welfareP (P : Params) (θ bb p v : ℝ) : ℝ :=
P.q * u P.α P.lam (v - bb * p) + (1 - P.q) * u P.α P.lam (-(θ * bb * p))
def buyersP (P : Params) (θ bb p : ℝ) : Set ℝ :=
{v ∈ Set.Icc 0 P.vbar | 0 ≤ welfareP P θ bb p v}
noncomputable def demandP (P : Params) (θ bb p : ℝ) : ℝ :=
P.n / P.vbar * (volume (buyersP P θ bb p)).toReal
noncomputable def patientPayoffP (P : Params) (θ bb p : ℝ) : ℝ :=
P.n / P.vbar * ∫ v in buyersP P θ bb p,
(P.q * (v - bb * p) - (1 - P.q) * θ * bb * p)
noncomputable def payerPayoffP (P : Params) (θ bb p : ℝ) : ℝ :=
demandP P θ bb p * (P.q * P.vp - P.q * (1 - bb) * p - (1 - P.q) * θ * (1 - bb) * p)
noncomputable def payerObjP (P : Params) (θ bb p : ℝ) : ℝ :=
payerPayoffP P θ bb p + patientPayoffP P θ bb p
def coversP (P : Params) (θ p : ℝ) : Prop := payerObjP P θ 1 p ≤ payerObjP P θ P.β p
open Classical in
noncomputable def shareP (P : Params) (θ p : ℝ) : ℝ := if coversP P θ p then P.β else 1
noncomputable def firmProfitP (P : Params) (θ bb p : ℝ) : ℝ :=
(partialMargin P θ * p - P.c) * demandP P θ bb p
noncomputable def realizedProfitP (P : Params) (θ p : ℝ) : ℝ := firmProfitP P θ (shareP P θ p) p
def IsEqPriceP (P : Params) (θ p : ℝ) : Prop :=
0 ≤ p ∧ ∀ p' : ℝ, 0 ≤ p' → realizedProfitP P θ p' ≤ realizedProfitP P θ p
noncomputable def pPartialStar (P : Params) (θ : ℝ) : ℝ :=
P.c / (2 * partialMargin P θ) + P.vbar / (2 * P.β * zBar P θ)
noncomputable def pPartialBarStar (P : Params) (θ : ℝ) : ℝ :=
P.c / (2 * partialMargin P θ) + P.vbar / (2 * zBar P θ)
end OutcomeRebate.Transfer.Supplement