Documentation

CslibFrontier.GameTheory.Security.SystemReliability

System reliability and free-riding games #

Varian [Var04] (surveyed in [AMNO07], §25.2.1, p. 635) models information security and system dependability as public-goods provision under three canonical Hirshleifer effort-aggregation technologies. Each agent i : ι chooses a nonnegative effort x i : ℝ≥0 at marginal cost unitCost i, receives benefit val i when the system operates, and faces system reliability prob (agg x). Equivalently, in Cslib.GameTheory.CostGame form, agent i minimizes expected failure loss plus effort expenditure val i * (1 - prob (agg x)) + unitCost i * x i, which differs from negated net payoff -(val i * prob (agg x) - unitCost i * x i) by the profile-independent constant val i and stays nonnegative whenever prob (agg x) ≤ 1.

Main definitions #

Main results #

References #

Parameters of a Varian system-reliability public-goods game ([Var04], §2, p. 2): each agent i : ι values successful system operation at val i, pays marginal cost unitCost i per unit of effort in ℝ≥0, and faces system reliability prob F at aggregate effort F.

  • val : ι → ℝ

    Benefit v_i obtained by agent i when the system succeeds.

  • unitCost : ι → ℝ

    Marginal effort cost c_i per unit of effort by agent i.

  • prob : ℝ → ℝ

    System reliability (or concave benefit) P(F) as a function of aggregate effort F ≥ 0.

@[reducible, inline]
abbrev Cslib.GameTheory.totalEffort {ι : Type u_1} [Fintype ι] (x : ι → NNReal) :

Total-effort aggregator ([Var04], §2, p. 3): aggregate effort is the sum ∑ i, x i.

@[reducible, inline]
abbrev Cslib.GameTheory.bestShot {ι : Type u_1} [Fintype ι] (x : ι → NNReal) :

Best-shot aggregator ([Var04], §2, p. 3): aggregate effort is max_i x i.

Standalone effort optimization and comparative statics #

def Cslib.GameTheory.IsStandaloneOpt (P : ℝ → ℝ) (V C : ℝ) (zStar : NNReal) :

IsStandaloneOpt P V C zStar means zStar : ℝ≥0 minimizes the standalone expected failure plus effort cost V * (1 - P z) + C * z (equivalently maximizes V * P z - C * z) over all nonnegative efforts z : ℝ≥0.

theorem Cslib.GameTheory.isStandaloneOpt_iff_payoff_le {P : ℝ → ℝ} {V C : ℝ} {zStar : NNReal} :
IsStandaloneOpt P V C zStar ↔ ∀ (z : NNReal), V * P ↑z - C * ↑z ≤ V * P ↑zStar - C * ↑zStar
theorem Cslib.GameTheory.IsStandaloneOpt.strict_lt_of_ne {P : ℝ → ℝ} {V C : ℝ} {zStar z : NNReal} (hOpt : IsStandaloneOpt P V C zStar) (hConc : StrictConcaveOn ℝ (Set.Ici 0) P) (hV : 0 < V) (hne : z ≠ zStar) :
V * (1 - P ↑zStar) + C * ↑zStar < V * (1 - P ↑z) + C * ↑z

Under strict concavity of P on [0, ∞) and 0 < V, a standalone optimum strictly beats every other effort level.

theorem Cslib.GameTheory.IsStandaloneOpt.unique {P : ℝ → ℝ} {V C : ℝ} {z₁ z₂ : NNReal} (h₁ : IsStandaloneOpt P V C z₁) (h₂ : IsStandaloneOpt P V C z₂) (hConc : StrictConcaveOn ℝ (Set.Ici 0) P) (hV : 0 < V) :
z₁ = z₂

Under strict concavity of P on [0, ∞) and 0 < V, the standalone optimal effort is unique.

theorem Cslib.GameTheory.IsStandaloneOpt.lt_of_lt_of_le {P : ℝ → ℝ} {V C : ℝ} {zStar a b : NNReal} (hOpt : IsStandaloneOpt P V C zStar) (hConc : StrictConcaveOn ℝ (Set.Ici 0) P) (hV : 0 < V) (hab : a < b) (hb : b ≤ zStar) :
V * (1 - P ↑b) + C * ↑b < V * (1 - P ↑a) + C * ↑a

Under strict concavity of P on [0, ∞) and 0 < V, standalone cost strictly decreases on [0, zStar].

theorem Cslib.GameTheory.IsStandaloneOpt.lt_of_le_of_lt {P : ℝ → ℝ} {V C : ℝ} {zStar a b : NNReal} (hOpt : IsStandaloneOpt P V C zStar) (hConc : StrictConcaveOn ℝ (Set.Ici 0) P) (hV : 0 < V) (ha : zStar ≤ a) (hab : a < b) :
V * (1 - P ↑a) + C * ↑a < V * (1 - P ↑b) + C * ↑b

Under strict concavity of P on [0, ∞) and 0 < V, standalone cost strictly increases on [zStar, ∞).

theorem Cslib.GameTheory.IsStandaloneOpt.le_of_ratio_lt {P : ℝ → ℝ} {V₁ C₁ V₂ C₂ : ℝ} {z₁ z₂ : NNReal} (h₁ : IsStandaloneOpt P V₁ C₁ z₁) (h₂ : IsStandaloneOpt P V₂ C₂ z₂) (hV₁ : 0 < V₁) (hC₁ : 0 < C₁) (hV₂ : 0 < V₂) (hC₂ : 0 < C₂) (hratio : V₁ / C₁ < V₂ / C₂) :
z₁ ≤ z₂

Monotone comparative statics of standalone optimal effort in the benefit-cost ratio V / C: if V₁ / C₁ < V₂ / C₂, then any standalone optimum for (V₁, C₁) is at most any standalone optimum for (V₂, C₂).

theorem Cslib.GameTheory.isStandaloneOpt_of_hasDerivAt {P P' : ℝ → ℝ} {V C : ℝ} {zStar : NNReal} (hDeriv : ∀ (t : ℝ), 0 ≤ t → HasDerivAt P (P' t) t) (hAnti : AntitoneOn P' (Set.Ici 0)) (hV : 0 ≤ V) (hFOC : zStar = 0 ∧ V * P' 0 ≤ C ∨ V * P' ↑zStar = C) :
IsStandaloneOpt P V C zStar

First-order sufficient condition for standalone optimality ([Var04], §3.1, p. 3): if P has antitone derivative P' on [0, ∞), then zStar is a standalone optimum whenever either zStar = 0 and V * P' 0 ≤ C, or the interior condition V * P' zStar = C holds.

theorem Cslib.GameTheory.IsStandaloneOpt.lt_of_ratio_lt_of_hasDerivAt {P : ℝ → ℝ} {P'₂ V₁ C₁ V₂ C₂ : ℝ} {z₁ z₂ : NNReal} (h₁ : IsStandaloneOpt P V₁ C₁ z₁) (h₂ : IsStandaloneOpt P V₂ C₂ z₂) (hV₁ : 0 < V₁) (hC₁ : 0 < C₁) (hV₂ : 0 < V₂) (hC₂ : 0 < C₂) (hratio : V₁ / C₁ < V₂ / C₂) (hz₂ : 0 < z₂) (hDeriv : HasDerivAt P P'₂ ↑z₂) (hFOC₂ : V₂ * P'₂ = C₂) :
z₁ < z₂

Strict comparative statics of interior standalone optima: if V₁ / C₁ < V₂ / C₂ and z₂ > 0 where P is differentiable at z₂ with V₂ * P'₂ = C₂, then z₁ < z₂.

def Cslib.GameTheory.SystemReliabilitySpec.toCostGame {ι : Type u_1} (R : SystemReliabilitySpec ι) (agg : (ι → NNReal) → NNReal) :
CostGame ι fun (x : ι) => NNReal

The CostGame induced by an effort aggregator agg : (ι → ℝ≥0) → ℝ≥0: player i minimizes expected failure loss plus effort expenditure val i * (1 - prob (agg x)) + unitCost i * x i.

def Cslib.GameTheory.SystemReliabilitySpec.payoff {ι : Type u_1} (R : SystemReliabilitySpec ι) (agg : (ι → NNReal) → NNReal) (i : ι) (x : ι → NNReal) :

Varian's expected net payoff v_i P(F(x)) - c_i x_i ([Var04], §2, p. 2).

def Cslib.GameTheory.SystemReliabilitySpec.socialPayoff {ι : Type u_1} (R : SystemReliabilitySpec ι) [Fintype ι] (agg : (ι → NNReal) → NNReal) (x : ι → NNReal) :

Varian's expected social payoff (∑ i, v_i) P(F(x)) - ∑ i, c_i x_i ([Var04], §2, p. 2).

@[simp]
theorem Cslib.GameTheory.SystemReliabilitySpec.cost_eq_val_sub_payoff {ι : Type u_1} (R : SystemReliabilitySpec ι) (agg : (ι → NNReal) → NNReal) (i : ι) (x : ι → NNReal) :
(R.toCostGame agg).cost i x = R.val i - R.payoff agg i x
theorem Cslib.GameTheory.SystemReliabilitySpec.socialCost_eq_sum_val_sub_socialPayoff {ι : Type u_1} (R : SystemReliabilitySpec ι) [Fintype ι] (agg : (ι → NNReal) → NNReal) (x : ι → NNReal) :
(R.toCostGame agg).socialCost x = ∑ i : ι, R.val i - R.socialPayoff agg x
@[reducible, inline]

The total-effort system reliability game ([Var04], §3.1).

@[reducible, inline]

The weakest-link system reliability game ([Var04], §3.2).

@[reducible, inline]

The best-shot system reliability game ([Var04], §3.3).

Total-effort Nash equilibria, underprovision, and wrong-agent allocation #

theorem Cslib.GameTheory.SystemReliabilitySpec.cost_totalEffortGame_bestResponse_le {ι : Type u_1} (R : SystemReliabilitySpec ι) [Fintype ι] [DecidableEq ι] {xBar : ι → NNReal} (hConc : StrictConcaveOn ℝ (Set.Ici 0) R.prob) (hVal : ∀ (i : ι), 0 < R.val i) (hOpt : ∀ (i : ι), IsStandaloneOpt R.prob (R.val i) (R.unitCost i) (xBar i)) (x : ι → NNReal) (i : ι) (a : NNReal) :

In the total-effort game, player i's unique best response to opponents' aggregate effort X_{-i} = ∑ j ≠ i, x j is truncated subtraction xBar i - X_{-i} (max(xBar i - X_{-i}, 0)), as in [Var04], §3.1, p. 3.

theorem Cslib.GameTheory.SystemReliabilitySpec.isPureNash_totalEffortGame_iff {ι : Type u_1} (R : SystemReliabilitySpec ι) [Fintype ι] [DecidableEq ι] {xBar : ι → NNReal} (hConc : StrictConcaveOn ℝ (Set.Ici 0) R.prob) (hVal : ∀ (i : ι), 0 < R.val i) (hOpt : ∀ (i : ι), IsStandaloneOpt R.prob (R.val i) (R.unitCost i) (xBar i)) (x : ι → NNReal) :
R.totalEffortGame.IsPureNash x ↔ totalEffort x = Finset.univ.sup xBar ∧ ∀ (i : ι), xBar i < Finset.univ.sup xBar → x i = 0

Varian's Fact 1, complete characterization ([Var04], §3.1, p. 3): in the ι-agent total-effort game with strictly concave reliability, a profile x is a pure Nash equilibrium if and only if aggregate effort equals sup_i xBar i and every agent with xBar i < sup_j xBar j completely free-rides (x i = 0).

theorem Cslib.GameTheory.SystemReliabilitySpec.isPureNash_totalEffortGame_single {ι : Type u_1} (R : SystemReliabilitySpec ι) [Fintype ι] [DecidableEq ι] {xBar : ι → NNReal} {iStar : ι} (hConc : StrictConcaveOn ℝ (Set.Ici 0) R.prob) (hVal : ∀ (i : ι), 0 < R.val i) (hOpt : ∀ (i : ι), IsStandaloneOpt R.prob (R.val i) (R.unitCost i) (xBar i)) (hMax : ∀ (j : ι), xBar j ≤ xBar iStar) :
R.totalEffortGame.IsPureNash (Pi.single iStar (xBar iStar))

Varian's Fact 1, champion equilibrium ([Var04], §3.1, p. 3): if iStar achieves the maximum standalone effort xBar iStar across all agents, then Pi.single iStar (xBar iStar) is a pure Nash equilibrium of R.totalEffortGame in which all other agents exert zero effort.

theorem Cslib.GameTheory.SystemReliabilitySpec.eq_single_of_isPureNash_totalEffortGame {ι : Type u_1} (R : SystemReliabilitySpec ι) [Fintype ι] [DecidableEq ι] {xBar : ι → NNReal} {iStar : ι} (hConc : StrictConcaveOn ℝ (Set.Ici 0) R.prob) (hVal : ∀ (i : ι), 0 < R.val i) (hOpt : ∀ (i : ι), IsStandaloneOpt R.prob (R.val i) (R.unitCost i) (xBar i)) (hStrict : ∀ (j : ι), j ≠ iStar → xBar j < xBar iStar) {x : ι → NNReal} (hx : R.totalEffortGame.IsPureNash x) :
x = Pi.single iStar (xBar iStar)

Varian's Fact 1, uniqueness ([Var04], §3.1, p. 3): when a single agent iStar has a strictly larger standalone target effort than every other agent, Pi.single iStar (xBar iStar) is the unique pure Nash equilibrium of R.totalEffortGame.

theorem Cslib.GameTheory.SystemReliabilitySpec.socialCost_totalEffortGame_single_le {ι : Type u_1} (R : SystemReliabilitySpec ι) [Fintype ι] [DecidableEq ι] {iMin : ι} {xOpt : NNReal} (hMin : ∀ (j : ι), R.unitCost iMin ≤ R.unitCost j) (hOpt : IsStandaloneOpt R.prob (∑ i : ι, R.val i) (R.unitCost iMin) xOpt) (x : ι → NNReal) :

Total-effort social optimum ([Var04], §4.1, eq. (5), p. 6): if iMin has the minimum marginal effort cost among all agents and xOpt is the standalone optimum for total valuation ∑ i, R.val i and unit cost R.unitCost iMin, then Pi.single iMin xOpt minimizes social cost over all effort profiles.

theorem Cslib.GameTheory.SystemReliabilitySpec.totalEffort_le_socialOpt_of_isPureNash {ι : Type u_1} (R : SystemReliabilitySpec ι) [Fintype ι] [DecidableEq ι] [Nontrivial ι] {xBar : ι → NNReal} {iMin : ι} {xOpt : NNReal} (hConc : StrictConcaveOn ℝ (Set.Ici 0) R.prob) (hVal : ∀ (i : ι), 0 < R.val i) (hCost : ∀ (i : ι), 0 < R.unitCost i) (hMin : ∀ (j : ι), R.unitCost iMin ≤ R.unitCost j) (hOpt : ∀ (i : ι), IsStandaloneOpt R.prob (R.val i) (R.unitCost i) (xBar i)) (hSoc : IsStandaloneOpt R.prob (∑ i : ι, R.val i) (R.unitCost iMin) xOpt) {x : ι → NNReal} (hx : R.totalEffortGame.IsPureNash x) :

Varian's Fact 3a, weak underprovision ([Var04], §4.1, p. 6): in any pure Nash equilibrium x of the total-effort game with |ι| ≥ 2 positive-valuation agents, total effort never exceeds the socially optimal total effort xOpt.

theorem Cslib.GameTheory.SystemReliabilitySpec.totalEffort_lt_socialOpt_of_isPureNash {ι : Type u_1} (R : SystemReliabilitySpec ι) [Fintype ι] [DecidableEq ι] [Nontrivial ι] {xBar : ι → NNReal} {iMin : ι} {xOpt : NNReal} {P' : ℝ} (hConc : StrictConcaveOn ℝ (Set.Ici 0) R.prob) (hVal : ∀ (i : ι), 0 < R.val i) (hCost : ∀ (i : ι), 0 < R.unitCost i) (hMin : ∀ (j : ι), R.unitCost iMin ≤ R.unitCost j) (hOpt : ∀ (i : ι), IsStandaloneOpt R.prob (R.val i) (R.unitCost i) (xBar i)) (hSoc : IsStandaloneOpt R.prob (∑ i : ι, R.val i) (R.unitCost iMin) xOpt) (hxOpt_pos : 0 < xOpt) (hDeriv : HasDerivAt R.prob P' ↑xOpt) (hFOC : (∑ i : ι, R.val i) * P' = R.unitCost iMin) {x : ι → NNReal} (hx : R.totalEffortGame.IsPureNash x) :
totalEffort x < xOpt

Varian's Fact 3a, strict underprovision ([Var04], §4.1, p. 6): when |ι| ≥ 2 and the social optimum xOpt > 0 satisfies the interior first-order condition, every pure Nash equilibrium exerts strictly less aggregate effort than xOpt.

theorem Cslib.GameTheory.SystemReliabilitySpec.wrongAgent_support_disjoint {ι : Type u_1} (R : SystemReliabilitySpec ι) [Fintype ι] [DecidableEq ι] {xBar : ι → NNReal} {iMin iStar : ι} (hConc : StrictConcaveOn ℝ (Set.Ici 0) R.prob) (hVal : ∀ (i : ι), 0 < R.val i) (hMin : ∀ (j : ι), R.unitCost iMin ≤ R.unitCost j) (hCostLt : R.unitCost iMin < R.unitCost iStar) (hOpt : ∀ (i : ι), IsStandaloneOpt R.prob (R.val i) (R.unitCost i) (xBar i)) (hStrict : ∀ (j : ι), j ≠ iStar → xBar j < xBar iStar) {x y : ι → NNReal} (hx : R.totalEffortGame.IsPureNash x) (hy : ∀ (z : ι → NNReal), R.totalEffortGame.socialCost y ≤ R.totalEffortGame.socialCost z) :
x iMin = 0 ∧ y iStar = 0

Varian's Fact 3b, wrong-agent theorem ([Var04], §4.1, p. 6): when agent iMin has a strictly smaller unit cost than the ratio champion iStar (unitCost iMin < unitCost iStar while xBar j < xBar iStar for j ≠ iStar), every pure Nash equilibrium places zero effort on iMin, whereas every social-cost-minimizing profile y places zero effort on iStar.

Total-effort game with Varian's §7.1 Pigouvian failure fine: the designated least-cost avoider iMin additionally pays the failure externality (∑ j ≠ iMin, val j) * (1 - prob (totalEffort x)) when the system fails.

theorem Cslib.GameTheory.SystemReliabilitySpec.isPureNash_totalEffortLiabilityGame_single {ι : Type u_1} (R : SystemReliabilitySpec ι) [Fintype ι] [DecidableEq ι] {xBar : ι → NNReal} {iMin : ι} {xOpt : NNReal} (hConc : StrictConcaveOn ℝ (Set.Ici 0) R.prob) (hVal : ∀ (i : ι), 0 < R.val i) (hCost : ∀ (i : ι), 0 < R.unitCost i) (hMin : ∀ (j : ι), R.unitCost iMin ≤ R.unitCost j) (hOpt : ∀ (i : ι), IsStandaloneOpt R.prob (R.val i) (R.unitCost i) (xBar i)) (hSoc : IsStandaloneOpt R.prob (∑ i : ι, R.val i) (R.unitCost iMin) xOpt) :

Varian's Fact 8 ([Var04], §7.1, pp. 8–9): imposing a failure fine equal to the losses of all other agents on a least-cost avoider iMin makes the socially optimal profile Pi.single iMin xOpt a pure Nash equilibrium.

theorem Cslib.GameTheory.SystemReliabilitySpec.socialCost_weakestLinkGame_const_le {ι : Type u_1} (R : SystemReliabilitySpec ι) [Fintype ι] [Nonempty ι] {zOpt : NNReal} (hCost : ∀ (i : ι), 0 ≤ R.unitCost i) (hSoc : IsStandaloneOpt R.prob (∑ i : ι, R.val i) (∑ i : ι, R.unitCost i) zOpt) (x : ι → NNReal) :

Weakest-link social optimum ([Var04], §4.3, eq. (6), p. 6): when 0 ≤ R.unitCost i and zOpt is a standalone optimum for (∑ i, R.val i, ∑ i, R.unitCost i), the symmetric profile fun _ => zOpt minimizes R.weakestLinkGame.socialCost over all profiles.

theorem Cslib.GameTheory.SystemReliabilitySpec.isPureNash_weakestLinkGame_const_inf {ι : Type u_1} (R : SystemReliabilitySpec ι) [Fintype ι] [Nonempty ι] [DecidableEq ι] {xBar : ι → NNReal} (hConc : StrictConcaveOn ℝ (Set.Ici 0) R.prob) (hVal : ∀ (i : ι), 0 < R.val i) (hCost : ∀ (i : ι), 0 ≤ R.unitCost i) (hOpt : ∀ (i : ι), IsStandaloneOpt R.prob (R.val i) (R.unitCost i) (xBar i)) :
R.weakestLinkGame.IsPureNash fun (x : ι) => Finset.univ.inf' ⋯ xBar

Varian's Fact 2, focal equilibrium ([Var04], §3.2, p. 4): for any nonempty finite set of agents, the constant profile fun _ => inf_i xBar i is a pure Nash equilibrium of the weakest-link game.

theorem Cslib.GameTheory.SystemReliabilitySpec.isPureNash_weakestLinkGame_iff {ι : Type u_1} (R : SystemReliabilitySpec ι) [Fintype ι] [Nonempty ι] [DecidableEq ι] [Nontrivial ι] {xBar : ι → NNReal} (hConc : StrictConcaveOn ℝ (Set.Ici 0) R.prob) (hVal : ∀ (i : ι), 0 < R.val i) (hCost : ∀ (i : ι), 0 < R.unitCost i) (hOpt : ∀ (i : ι), IsStandaloneOpt R.prob (R.val i) (R.unitCost i) (xBar i)) (x : ι → NNReal) :
R.weakestLinkGame.IsPureNash x ↔ ∃ z ≤ Finset.univ.inf' ⋯ xBar, x = fun (x : ι) => z

Varian's Fact 2, continuum characterization ([Var04], §3.2, eqs. (1)–(2), p. 4): with at least two agents ([Nontrivial ι]), a profile x is a pure Nash equilibrium of the weakest-link game if and only if all agents exert the same effort z ≤ inf_i xBar i.

theorem Cslib.GameTheory.SystemReliabilitySpec.cost_weakestLinkGame_const_inf_le_of_isPureNash {ι : Type u_1} (R : SystemReliabilitySpec ι) [Fintype ι] [Nonempty ι] [DecidableEq ι] [Nontrivial ι] {xBar : ι → NNReal} (hConc : StrictConcaveOn ℝ (Set.Ici 0) R.prob) (hVal : ∀ (i : ι), 0 < R.val i) (hCost : ∀ (i : ι), 0 < R.unitCost i) (hOpt : ∀ (i : ι), IsStandaloneOpt R.prob (R.val i) (R.unitCost i) (xBar i)) {x : ι → NNReal} (hx : R.weakestLinkGame.IsPureNash x) (i : ι) :
(R.weakestLinkGame.cost i fun (x : ι) => Finset.univ.inf' ⋯ xBar) ≤ R.weakestLinkGame.cost i x

Pareto dominance of the maximal weakest-link equilibrium ([Var04], §3.2, p. 4): the profile fun _ => inf_j xBar j gives every player weakly lower cost than any other pure Nash equilibrium of R.weakestLinkGame (and strictly lower cost for every player whenever the two profiles differ).

noncomputable def Cslib.GameTheory.SystemReliabilitySpec.weakestLinkNegligenceGame {ι : Type u_1} (R : SystemReliabilitySpec ι) [Fintype ι] [Nonempty ι] (zDue : NNReal) :
CostGame ι fun (x : ι) => NNReal

Weakest-link game under Varian's §7.2 negligence rule with due-care threshold zDue ([Var04], §7.2, pp. 10–11): an agent meeting due care (zDue ≤ x i) bears no external liability, whereas an agent choosing x i < zDue must compensate the other agents' failure losses (∑ j ≠ i, val j) * (1 - prob (weakestLink x)).

theorem Cslib.GameTheory.SystemReliabilitySpec.isPureNash_weakestLinkNegligenceGame_const {ι : Type u_1} (R : SystemReliabilitySpec ι) [Fintype ι] [Nonempty ι] [DecidableEq ι] {zOpt : NNReal} (hVal : ∀ (i : ι), 0 ≤ R.val i) (hCost : ∀ (i : ι), 0 ≤ R.unitCost i) (hProb_le_one : R.prob ↑zOpt ≤ 1) (hSoc : IsStandaloneOpt R.prob (∑ i : ι, R.val i) (∑ i : ι, R.unitCost i) zOpt) :
(R.weakestLinkNegligenceGame zOpt).IsPureNash fun (x : ι) => zOpt

Varian's Fact 9 ([Var04], §7.2, pp. 10–11): under the negligence rule with due-care standard set to the socially optimal weakest-link effort zOpt, the symmetric socially optimal profile fun _ => zOpt is a pure Nash equilibrium for arbitrary heterogeneous (val, unitCost) with 0 ≤ val i, 0 ≤ unitCost i, and prob ≤ 1 at zOpt.

Group-size comparative statics (Varian's Fact 5) #

@[reducible, inline]

Restriction of R to a finite sub-population S : Finset ι.

theorem Cslib.GameTheory.SystemReliabilitySpec.prob_totalEffort_le_of_subset_of_isPureNash {ι : Type u_1} (R : SystemReliabilitySpec ι) [DecidableEq ι] {S T : Finset ι} (hST : S ⊆ T) {xBar : ι → NNReal} (hConc : StrictConcaveOn ℝ (Set.Ici 0) R.prob) (hMono : MonotoneOn R.prob (Set.Ici 0)) (hVal : ∀ (i : ι), 0 < R.val i) (hOpt : ∀ (i : ι), IsStandaloneOpt R.prob (R.val i) (R.unitCost i) (xBar i)) {xS : ↥S → NNReal} (hxS : (R.restrict S).totalEffortGame.IsPureNash xS) {xT : ↥T → NNReal} (hxT : (R.restrict T).totalEffortGame.IsPureNash xT) :
R.prob ↑(totalEffort xS) ≤ R.prob ↑(totalEffort xT)

Varian's Fact 5, total-effort direction ([Var04], §5, p. 7): for finite agent pools S ⊆ T, the system reliability R.prob (totalEffort xS) at any pure Nash equilibrium xS of the total-effort game on S is at most R.prob (totalEffort xT) at any pure Nash equilibrium xT on T.

Best-shot Nash equilibria: champion and slacker equilibria #

theorem Cslib.GameTheory.SystemReliabilitySpec.isPureNash_bestShotGame_single_iff {ι : Type u_1} (R : SystemReliabilitySpec ι) [Fintype ι] [DecidableEq ι] {xBar : ι → NNReal} {k : ι} (hMono : MonotoneOn R.prob (Set.Ici 0)) (hVal : ∀ (i : ι), 0 ≤ R.val i) (hCost : ∀ (i : ι), 0 ≤ R.unitCost i) (hOpt : ∀ (i : ι), IsStandaloneOpt R.prob (R.val i) (R.unitCost i) (xBar i)) :
R.bestShotGame.IsPureNash (Pi.single k (xBar k)) ↔ ∀ (i : ι), i ≠ k → R.val i * (1 - R.prob ↑(xBar k)) ≤ R.val i * (1 - R.prob ↑(xBar i)) + R.unitCost i * ↑(xBar i)

Characterization of single-contributor best-shot pure Nash equilibria ([Var04], §3.3, pp. 4–5): under nondecreasing reliability prob and nonnegative costs, Pi.single k (xBar k) is a pure Nash equilibrium of R.bestShotGame if and only if every other agent i ≠ k prefers free-riding on xBar k to exerting its own standalone optimum xBar i.

theorem Cslib.GameTheory.SystemReliabilitySpec.isPureNash_bestShotGame_champion {ι : Type u_1} (R : SystemReliabilitySpec ι) [Fintype ι] [DecidableEq ι] {xBar : ι → NNReal} {iStar : ι} (hMono : MonotoneOn R.prob (Set.Ici 0)) (hVal : ∀ (i : ι), 0 ≤ R.val i) (hCost : ∀ (i : ι), 0 ≤ R.unitCost i) (hOpt : ∀ (i : ι), IsStandaloneOpt R.prob (R.val i) (R.unitCost i) (xBar i)) (hMax : ∀ (i : ι), xBar i ≤ xBar iStar) :
R.bestShotGame.IsPureNash (Pi.single iStar (xBar iStar))

Best-shot champion pure Nash equilibrium ([Var04], §3.3, p. 4): when iStar has the largest standalone effort xBar iStar and prob is nondecreasing on [0, ∞), Pi.single iStar (xBar iStar) is always a pure Nash equilibrium of R.bestShotGame.

theorem Cslib.GameTheory.SystemReliabilitySpec.exists_eq_single_of_isPureNash_bestShotGame {ι : Type u_1} (R : SystemReliabilitySpec ι) [Fintype ι] [DecidableEq ι] [Nonempty ι] {xBar : ι → NNReal} (hConc : StrictConcaveOn ℝ (Set.Ici 0) R.prob) (hVal : ∀ (i : ι), 0 < R.val i) (hCost : ∀ (i : ι), 0 < R.unitCost i) (hOpt : ∀ (i : ι), IsStandaloneOpt R.prob (R.val i) (R.unitCost i) (xBar i)) {x : ι → NNReal} (hx : R.bestShotGame.IsPureNash x) (_hpos : 0 < bestShot x) :
∃ (k : ι), x = Pi.single k (xBar k)

Single-contributor support of nonzero best-shot pure Nash equilibria ([Var04], §3.3, pp. 4–5): every pure Nash equilibrium x of R.bestShotGame with bestShot x > 0 concentrates all effort on a single agent k, setting x = Pi.single k (xBar k).

Tight robust Price of Anarchy for total-effort and best-shot reliability games #

theorem Cslib.GameTheory.SystemReliabilitySpec.expected_socialCost_le_of_isCoarseCorrelatedEquilibrium {ι : Type u_1} (R : SystemReliabilitySpec ι) [Fintype ι] [DecidableEq ι] [Nonempty ι] {agg : (ι → NNReal) → NNReal} {cMin : ℝ} (hVal : ∀ (i : ι), 0 ≤ R.val i) (hMono : MonotoneOn R.prob (Set.Ici 0)) (hProb_le_one : ∀ (z : NNReal), R.prob ↑z ≤ 1) (hMin_pos : 0 < cMin) (hMin_le : ∀ (i : ι), cMin ≤ R.unitCost i) (hAgg_ge : ∀ (s : ι → NNReal) (i : ι), s i ≤ agg s) (hAgg_cost : ∀ (x' : ι → NNReal), cMin * ↑(agg x') ≤ ∑ j : ι, R.unitCost j * ↑(x' j)) {σ : Convexity.StdSimplex ℝ (ι → NNReal)} (hσ : (R.toCostGame agg).IsCoarseCorrelatedEquilibrium σ) (x' : ι → NNReal) :
(σ.sum fun (s : ι → NNReal) (w : ℝ) => w * (R.toCostGame agg).socialCost s) ≤ (∑ i : ι, R.unitCost i) / cMin * (R.toCostGame agg).socialCost x'

Robust coarse-correlated Price of Anarchy (original) for monotone reliability games whose aggregator dominates individual efforts (x i ≤ agg x) and has least-cost bound cMin * agg x ≤ ∑ j, unitCost j * x j (which holds simultaneously for totalEffort and bestShot): every coarse correlated equilibrium σ has expected social cost at most ((∑ i, unitCost i) / cMin) * socialCost x' for every profile x'.

theorem Cslib.GameTheory.SystemReliabilitySpec.socialCost_totalEffortGame_le_card_mul {ι : Type u_1} (R : SystemReliabilitySpec ι) [Fintype ι] [DecidableEq ι] [Nonempty ι] {c : ℝ} (hVal : ∀ (i : ι), 0 ≤ R.val i) (hMono : MonotoneOn R.prob (Set.Ici 0)) (hProb_le_one : ∀ (z : NNReal), R.prob ↑z ≤ 1) (hc : 0 < c) (hCost_eq : ∀ (i : ι), R.unitCost i = c) {x : ι → NNReal} (hx : R.totalEffortGame.IsPureNash x) (x' : ι → NNReal) :

Pure-Nash |ι| Price of Anarchy for identical-cost total-effort games (original): when every agent has 0 ≤ val i, unitCost i = c > 0, and prob is nondecreasing with prob ≤ 1, every pure Nash equilibrium costs at most (Fintype.card ι : ℝ) times any profile x'.

theorem Cslib.GameTheory.SystemReliabilitySpec.socialCost_bestShotGame_le_card_mul {ι : Type u_1} (R : SystemReliabilitySpec ι) [Fintype ι] [DecidableEq ι] [Nonempty ι] {c : ℝ} (hVal : ∀ (i : ι), 0 ≤ R.val i) (hMono : MonotoneOn R.prob (Set.Ici 0)) (hProb_le_one : ∀ (z : NNReal), R.prob ↑z ≤ 1) (hc : 0 < c) (hCost_eq : ∀ (i : ι), R.unitCost i = c) {x : ι → NNReal} (hx : R.bestShotGame.IsPureNash x) (x' : ι → NNReal) :

Pure-Nash |ι| Price of Anarchy for identical-cost best-shot games (original): when every agent has 0 ≤ val i, unitCost i = c > 0, and prob is nondecreasing with prob ≤ 1, every pure Nash equilibrium costs at most (Fintype.card ι : ℝ) times any profile x'.

theorem Cslib.GameTheory.exists_totalEffortGame_socialCost_gt_mul {n : ℕ} (hn : 0 < n) {β : ℝ} (hβ : β < ↑n) :
∃ (R : SystemReliabilitySpec (Fin n)) (x : Fin n → NNReal) (x' : Fin n → NNReal), (∀ (i : Fin n), 0 < R.val i) ∧ (∀ (i : Fin n), R.unitCost i = R.unitCost ⟨0, hn⟩) ∧ 0 < R.unitCost ⟨0, hn⟩ ∧ ConcaveOn ℝ (Set.Ici 0) R.prob ∧ MonotoneOn R.prob (Set.Ici 0) ∧ (∀ (z : NNReal), R.prob ↑z ≤ 1) ∧ R.totalEffortGame.IsPureNash x ∧ (∀ (y : Fin n → NNReal), R.totalEffortGame.IsPureNash y → y = x) ∧ β * R.totalEffortGame.socialCost x' < R.totalEffortGame.socialCost x

Asymptotic tightness of the n Price-of-Anarchy bound (original): for every n ≥ 1 and every ratio β < n, there exists an n-agent identical-valuation, identical-cost SystemReliabilitySpec with concave, monotone, [0, 1]-valued reliability whose unique pure Nash equilibrium 0 strictly exceeds β times the social cost of Pi.single ⟨0, hn⟩ 1.