Documentation

CslibFrontier.GameTheory.Security.AdverseSelection

Informational asymmetries in security: hidden-action deterrence and markets for lemons #

Anderson, Moore, Nagaraja, and Ozment ([AMNO07], §25.3, pp. 636–638) analyze two foundational forms of informational asymmetry in information security:

  1. Hidden-action attacks (§25.3.1, pp. 636–637; [Moo05]):

    • An attacker with gain G and sanction P facing observability probabilities p_low ≤ p_high partitions into three regimes: always deterred (G ≤ p_low * P), the hidden-action attack regime (p_low * P < G ≤ p_high * P), and undeterrable (p_high * P < G).
    • In a two-player strategic inspection / auditing game (InspectionGameSpec), when 0 < gain < detectProb * sanction and 0 < auditCost < detectProb * victimLoss, there is no pure Nash equilibrium and the unique mixed Nash equilibrium has attack probability auditCost / (detectProb * victimLoss) and audit probability gain / (detectProb * sanction) (both strictly decreasing in detectProb), whereas once detectProb * sanction < gain, attacking becomes a strictly dominant strategy.
    • Under an unobservable-care deductible contract (DeductibleSpec, p. 637), a deductible d induces care iff careCost / (reckProb - safeProb) ≤ d, eliminating the need for observation at the unavoidable expected out-of-pocket cost safeProb * d > 0 borne even by careful agents.
  2. Hidden information — Akerlof's "Market for Lemons" (§25.3.2, p. 638; [Ake70]):

    • A general finite-type adverse-selection market LemonsMarket τ with seller supply, buyer valuations, seller reservation prices, and rational-expectation competitive equilibria IsAdverseSelectionEq.
    • Two-type sharp phase transition: whenever pooled average buyer valuation v_avg lies strictly below high-quality seller reservation c_H (with v_L < v_H, c_L < c_H, 0 < w_L), every adverse-selection equilibrium completely excludes high-quality goods (q 1 = 0), collapses the price to ≤ v_L, and incurs strict social-surplus loss w_H * (v_H - c_H); conversely, pooling full trade at p = v_avg is an equilibrium iff c_H ≤ v_avg.
    • General n-tier cascading unraveling: if every prefix tier above k₀ has prefix average buyer valuation strictly below its reservation price, every tier above k₀ is driven out of every adverse-selection equilibrium.
    • Continuous uniform collapse: on [0, qMax] with seller reservation θ and buyer valuation α * θ, α < 2 precludes trade at every positive price p > 0 even when 1 < α < 2, whereas 2 ≤ α sustains full trade.

Main definitions #

Main results #

References #

Part 1: Hidden-action attacks, inspection equilibria, and deductibles (§25.3.1) #

Parameters of a single-attacker hidden-action deterrence problem ([AMNO07], §25.3.1, p. 637; [Moo05]): an attacker obtains utility gain gain from deviating and suffers sanction sanction if observed, comparing low observability lowObsProb against high observability highObsProb.

  • gain : ℝ

    Net utility gain G from executing the hidden-action attack.

  • sanction : ℝ

    Penalty P imposed on the attacker when the attack is observed.

  • lowObsProb : ℝ

    Probability p_low of observation/punishment when actions are likely to remain hidden.

  • highObsProb : ℝ

    Probability p_high of observation/punishment when actions are likely to be observed.

Expected net attacker payoff G - p_obs * P from launching the attack at observability p_obs.

Attack deterrence threshold for an arbitrary observability probability p_obs when 0 < H.sanction: the attack is deterred (expectedAttackPayoff ≤ 0) iff G / P ≤ p_obs.

Three-regime hidden-action classification ([AMNO07], §25.3.1, p. 637): for lowObsProb ≤ highObsProb and 0 ≤ sanction:

  1. If gain ≤ lowObsProb * sanction, attacking is unprofitable under both regimes (no attack).
  2. If lowObsProb * sanction < gain ≤ highObsProb * sanction, attacking is strictly profitable under low observability yet deterred under high observability (the hidden-action attack window).
  3. If highObsProb * sanction < gain, attacking is strictly profitable even under high observability.

Two-player hidden-action inspection / auditing game (original strategic formalization of the observability/punishment trade-off in [AMNO07], §25.3.1, pp. 636–637): player 0 (attacker) chooses whether to attack (true) or act honestly (false), while player 1 (defender) chooses whether to audit/monitor (true) at cost auditCost or skip monitoring (false). Auditing detects an attack with probability detectProb, imposing sanction on the attacker and preventing fraction detectProb of the defender's victimLoss.

  • gain : ℝ

    Attacker gain G from a successful attack.

  • sanction : ℝ

    Sanction P suffered by the attacker if caught by an audit.

  • victimLoss : ℝ

    Loss L suffered by the defender from an undetected attack.

  • auditCost : ℝ

    Cost c paid by the defender to run an audit/monitoring check.

  • detectProb : ℝ

    Probability p that an active audit detects an attack.

Strategic CostGame (Fin 2) (fun _ => Bool) induced by I (0 = attacker, 1 = defender; attacker minimizes negated expected payoff, defender minimizes expected loss plus audit cost).

Low-observability dominance collapse: whenever detectProb * sanction < gain (and 0 < gain), attacking (true) is a strictly dominant strategy for the attacker (0).

Nonexistence of pure Nash equilibria in the interior inspection regime: when 0 < gain < detectProb * sanction and 0 < auditCost < detectProb * victimLoss, no pure strategy profile is a Nash equilibrium of I.toCostGame.

theorem Cslib.GameTheory.InspectionGameSpec.isMixedNash_iff_unique (I : InspectionGameSpec) (hG : 0 < I.gain) (hDetA : I.gain < I.detectProb * I.sanction) (hC : 0 < I.auditCost) (hDetD : I.auditCost < I.detectProb * I.victimLoss) (mix : Fin 2 → Bool → ℝ) :
I.toCostGame.IsMixedNash mix ↔ (mix 0 = fun (b : Bool) => if b = true then I.auditCost / (I.detectProb * I.victimLoss) else 1 - I.auditCost / (I.detectProb * I.victimLoss)) ∧ mix 1 = fun (b : Bool) => if b = true then I.gain / (I.detectProb * I.sanction) else 1 - I.gain / (I.detectProb * I.sanction)

Unique mixed Nash equilibrium of the inspection game: in the interior regime 0 < gain < detectProb * sanction and 0 < auditCost < detectProb * victimLoss, the unique mixed Nash equilibrium mixes attack with probability a* = auditCost / (detectProb * victimLoss) ∈ (0, 1) and audit with probability q* = gain / (detectProb * sanction) ∈ (0, 1).

Parameters of a hidden-action deductible contract ([AMNO07], §25.3.1, p. 637): taking care costs effort careCost and lowers the accident probability from reckProb to safeProb, facing total accident loss loss. Under deductible d ∈ [0, loss], the insured pays d whenever an accident occurs (eliminating the need to observe care).

  • careCost : ℝ

    Unobservable effort cost e of taking care.

  • safeProb : ℝ

    Accident probability q_safe when taking care.

  • reckProb : ℝ

    Accident probability q_reck when acting recklessly.

  • loss : ℝ

    Maximum insurable accident loss L.

Expected non-premium cost of the insured agent under deductible d: careCost + safeProb * d if taking care (true), or reckProb * d if reckless (false).

Minimal incentive-compatible deductible ([AMNO07], §25.3.1, p. 637): for safeProb < reckProb, deductible d induces care iff careCost / (reckProb - safeProb) ≤ d.

Feasibility and unavoidable cost borne by careful agents ([AMNO07], §25.3.1, p. 637):

  1. A feasible deductible d ≤ loss inducing care exists iff careCost ≤ (reckProb - safeProb) * loss.
  2. When 0 ≤ safeProb, under every deductible d inducing care, even a careful agent incurs expected out-of-pocket claim payment at least safeProb * (careCost / (reckProb - safeProb)).

Part 2: Hidden information and Akerlof's "Market for Lemons" (§25.3.2) #

structure Cslib.GameTheory.LemonsMarket (τ : Type u_1) :
Type u_1

A finite-type adverse-selection market ([Ake70]; [AMNO07], §25.3.2, p. 638): sellers of quality type t : τ have total supply supply t, seller reservation price sellerRes t, and buyers value type t at buyerVal t without being able to observe t before purchase.

  • supply : τ → ℝ

    Available supply (mass or count) w_t of sellers holding quality type t.

  • buyerVal : τ → ℝ

    Buyers' valuation v_t for a good of quality type t.

  • sellerRes : τ → ℝ

    Sellers' reservation value c_t for a good of quality type t.

noncomputable def Cslib.GameTheory.LemonsMarket.avgBuyerVal {τ : Type u_1} [Fintype τ] (M : LemonsMarket τ) (q : τ → ℝ) :

Conditional average buyer valuation (∑ t, q t * buyerVal t) / (∑ t, q t) of traded goods.

def Cslib.GameTheory.LemonsMarket.socialSurplus {τ : Type u_1} [Fintype τ] (M : LemonsMarket τ) (q : τ → ℝ) :

Realized social gains from trade ∑ t, q t * (buyerVal t - sellerRes t).

structure Cslib.GameTheory.LemonsMarket.IsAdverseSelectionEq {τ : Type u_1} [Fintype τ] (M : LemonsMarket τ) (p : ℝ) (q : τ → ℝ) :

A posted market price p and traded quantities q : τ → ℝ form an adverse-selection equilibrium under hidden quality if every type sells feasibly (0 ≤ q t ≤ supply t), types with sellerRes t < p sell their entire supply, types with p < sellerRes t do not sell, and whenever positive trade occurs (0 < ∑ t, q t), the market price does not exceed avgBuyerVal q.

  • nonneg (t : τ) : 0 ≤ q t

    Traded quantity of each type is nonnegative.

  • le_supply (t : τ) : q t ≤ M.supply t

    Traded quantity of each type does not exceed available supply.

  • sellerFull (t : τ) : M.sellerRes t < p → q t = M.supply t

    Every type strictly below market price sells its entire supply.

  • sellerZero (t : τ) : p < M.sellerRes t → q t = 0

    Every type strictly above market price withdraws from the market.

  • buyerRat : 0 < ∑ t : τ, q t → p ≤ M.avgBuyerVal q

    Buyers are rational under hidden quality: positive trade requires p ≤ avgBuyerVal q.

theorem Cslib.GameTheory.LemonsMarket.fullInfo_socialSurplus_le {τ : Type u_1} [Fintype τ] (M : LemonsMarket τ) (hGains : ∀ (t : τ), M.sellerRes t ≤ M.buyerVal t) {q : τ → ℝ} (hq : ∀ (t : τ), q t ≤ M.supply t) :

Full-information efficiency benchmark: when sellerRes t ≤ buyerVal t for every type t, trading full supply q = M.supply maximizes socialSurplus over all feasible allocations.

theorem Cslib.GameTheory.LemonsMarket.multiTier_unraveling_of_prefix_avg_lt {n : ℕ} (M : LemonsMarket (Fin (n + 1))) (hSup : ∀ (k : Fin (n + 1)), 0 < M.supply k) (hVal : Monotone M.buyerVal) (hRes : StrictMono M.sellerRes) (k₀ : Fin (n + 1)) (hUnravel : ∀ (k : Fin (n + 1)), k₀ < k → (∑ j : Fin (n + 1) with j ≤ k, M.supply j * M.buyerVal j) / ∑ j : Fin (n + 1) with j ≤ k, M.supply j < M.sellerRes k) {p : ℝ} {q : Fin (n + 1) → ℝ} (hEq : M.IsAdverseSelectionEq p q) (k : Fin (n + 1)) :
k₀ < k → q k = 0

General n-tier cascading adverse-selection unraveling: on ordered quality tiers Fin (n + 1) with positive supplies 0 < supply k, nondecreasing buyer valuations Monotone buyerVal, and strictly increasing seller reservations StrictMono sellerRes, suppose every tier k > k₀ has prefix average buyer valuation (over all tiers j ≤ k) strictly below sellerRes k. Then in every adverse-selection equilibrium (p, q), all tiers k > k₀ are completely driven out of the market (q k = 0).

def Cslib.GameTheory.twoTypeLemonsMarket (w_L w_H v_L v_H c_L c_H : ℝ) :

Canonical two-type Akerlof Market for Lemons (0 = low quality / lemon, 1 = high quality / secure product; [Ake70]; [AMNO07], §25.3.2, p. 638).

theorem Cslib.GameTheory.twoType_unraveling_of_pooledVal_lt {w_L w_H v_L v_H c_L c_H : ℝ} (hwL : 0 < w_L) (hv : v_L < v_H) (hc : c_L < c_H) (hPool : (w_L * v_L + w_H * v_H) / (w_L + w_H) < c_H) {p : ℝ} {q : Fin 2 → ℝ} (hEq : (twoTypeLemonsMarket w_L w_H v_L v_H c_L c_H).IsAdverseSelectionEq p q) :
q 1 = 0 ∧ (0 < ∑ t : Fin 2, q t → p ≤ v_L) ∧ (c_L ≤ v_L → (twoTypeLemonsMarket w_L w_H v_L v_H c_L c_H).socialSurplus q + w_H * (v_H - c_H) ≤ (twoTypeLemonsMarket w_L w_H v_L v_H c_L c_H).socialSurplus ![w_L, w_H])

Akerlof two-type unraveling theorem ([Ake70]; [AMNO07], §25.3.2, p. 638): when pooled average buyer valuation (w_L * v_L + w_H * v_H) / (w_L + w_H) is strictly below high-quality seller reservation c_H (with 0 < w_L, v_L < v_H, c_L < c_H), in every adverse-selection equilibrium (p, q):

  1. High-quality goods are completely excluded (q 1 = 0).
  2. Whenever any trade occurs, the market price collapses to at most v_L (p ≤ v_L).
  3. If c_L ≤ v_L, equilibrium social surplus is at least w_H * (v_H - c_H) below full-information social surplus.
theorem Cslib.GameTheory.twoType_lemonsOnly_eq {w_L w_H v_L v_H c_L c_H : ℝ} (hwL : 0 < w_L) (hwH : 0 ≤ w_H) (hcL : c_L ≤ v_L) (hSep : v_L < c_H) :
(twoTypeLemonsMarket w_L w_H v_L v_H c_L c_H).IsAdverseSelectionEq v_L ![w_L, 0] ∧ (twoTypeLemonsMarket w_L w_H v_L v_H c_L c_H).avgBuyerVal ![w_L, 0] = v_L

Lemons-only positive-trade equilibrium ([Ake70]; [AMNO07], §25.3.2, p. 638): when c_L ≤ v_L < c_H, trading only lemons at price p = v_L forms an adverse-selection equilibrium with exact buyer break-even avgBuyerVal = v_L.

theorem Cslib.GameTheory.twoType_pooling_eq_iff {w_L w_H v_L v_H c_L c_H : ℝ} (hwL : 0 < w_L) (hwH : 0 < w_H) (hc : c_L ≤ c_H) :
(twoTypeLemonsMarket w_L w_H v_L v_H c_L c_H).IsAdverseSelectionEq ((w_L * v_L + w_H * v_H) / (w_L + w_H)) ![w_L, w_H] ↔ c_H ≤ (w_L * v_L + w_H * v_H) / (w_L + w_H)

Sharp two-type pooling threshold: with 0 < w_L, 0 < w_H, and c_L ≤ c_H, full-trade pooling at the pooled average buyer valuation p = (w_L * v_L + w_H * v_H) / (w_L + w_H) is an adverse-selection equilibrium if and only if c_H ≤ (w_L * v_L + w_H * v_H) / (w_L + w_H).

theorem Cslib.GameTheory.continuous_uniform_market_collapse {qMax α : ℝ} (hq : 0 ≤ qMax) (hα : α < 2) {p : ℝ} (hp : 0 < p) :
α * (min p qMax / 2) < p

Continuous uniform Akerlof complete market collapse (standard continuous formulation after [Ake70]): when seller quality θ is uniform on [0, qMax] (0 ≤ qMax), seller reservation equals θ, and buyer valuation equals α * θ, the conditional expected buyer valuation at any positive price p > 0 is α * (min p qMax / 2). Whenever α < 2, no positive price p > 0 satisfies buyer rationality p ≤ α * (min p qMax / 2) (complete market shutdown despite strictly positive gains from trade (α - 1) * θ > 0 whenever 1 < α < 2).

theorem Cslib.GameTheory.continuous_uniform_full_trade {qMax α : ℝ} (hq : 0 < qMax) (hα : 2 ≤ α) :
have p := α * qMax / 2; qMax ≤ p ∧ p = α * (min p qMax / 2)

Continuous uniform full-trade threshold: when 2 ≤ α and 0 < qMax, the price p = α * qMax / 2 satisfies both qMax ≤ p (every seller participates) and buyer rationality p ≤ α * (min p qMax / 2).