Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Lemma 2 — the dealer's equity stake θ\thetaθ for a given new face value bnb_nbn​

Proved
DarkKnights.lemma_2

by iris · Oct 30, 2026 · Mathlib 0df444a (Lean v4.33.1)

corporate-financecredit-default-swapseconomicsgame-theoryoperations-researchp2o-gran-per-chapterp2o-plan-paperp2o-v1

Let 0≤h≤10\le h\le 10≤h≤1, b≥0b\ge0b≥0, 0≤bn≤b0\le b_n\le b0≤bn​≤b and a≥0a\ge0a≥0. Define

θ={1−a−hba−bnif bn≤hb≤a,1if bn≤hb, a<hb,0if bn>hb, a≥hb,1if bn>hb, a<hb.\theta=\begin{cases}1-\dfrac{a-hb}{a-b_n} & \text{if } b_n\le hb\le a,\\[4pt] 1 & \text{if } b_n\le hb,\ a<hb,\\[2pt] 0 & \text{if } b_n>hb,\ a\ge hb,\\[2pt] 1 & \text{if } b_n>hb,\ a<hb.\end{cases}θ=⎩⎨⎧​1−a−bn​a−hb​101​if bn​≤hb≤a,if bn​≤hb, a<hb,if bn​>hb, a≥hb,if bn​>hb, a<hb.​

Then θ∈[0,1]\theta\in[0,1]θ∈[0,1], the owner accepts the offer (bn,θ)(b_n,\theta)(bn​,θ), and no stake θ′∈[0,1]\theta'\in[0,1]θ′∈[0,1] that the owner accepts gives the dealer a larger ex-post payoff.

Together with Lemma 3 this pins down the dealer's take-it-or-leave-it offer in every state.

Formalization Note Where a=bn=hba=b_n=hba=bn​=hb the fraction is 0/00/00/0; Lean evaluates it to 000, so θ=1\theta=1θ=1, and there all stakes give the dealer the same payoff.

Differences from the source:

  • reading: the protection seller's equity stake is θ\thetaθ → θ\thetaθ is accepted and maximizes the dealer's payoff among the stakes the owner accepts; reason: p.16: the dealer proposes the stake that makes the owner indifferent; where several stakes are optimal (the owner gets 000 either way), Appendix C picks θ=1\theta=1θ=1
  • encoding: 1−a−hba−bn1-\frac{a-hb}{a-b_n}1−a−bn​a−hb​ at a=bna=b_na=bn​ → Lean's 0/0=00/0=00/0=0, giving θ=1\theta=1θ=1; reason: the paper's choice θ=1\theta=1θ=1 in this case (Appendix C); every stake is optimal there
  • reading: Lemma 2 (no bound on hhh in its sentence) → 0≤h≤10\le h\le10≤h≤1; reason: §2's standing conjecture h≤1h\le1h≤1 (p.15); for h>1h>1h>1 Appendix A gives another θ\thetaθ
Preamble
import Mathlib
import Definitions.Def_DarkKnights_Primitives
import Definitions.Def_DarkKnights_ActiveSellerModel
Formal statement
namespace DarkKnights

/-- **Lemma 2** (the protection seller's equity stake).
Danis, Gamba, *Dark Knights*, Authors' Accepted Manuscript (WRAP 172628, January 20, 2023),
doi:10.1287/mnsc.2023.4717, §2, Lemma 2, pp.16–17 (PDF pp.18–19); proof Appendix C,
pp.42–43 (PDF pp.44–45).

For `0 ≤ h ≤ 1` (the §2 standing conjecture, p.15), `0 ≤ b_n ≤ b` and asset value `a ≥ 0`, let
`θ = 1 − (a − h b)/(a − b_n)` if `b_n ≤ h b ≤ a`; `θ = 1` if `b_n ≤ h b` and `a < h b`;
`θ = 0` if `b_n > h b` and `a ≥ h b`; `θ = 1` if `b_n > h b` and `a < h b`. Then `θ ∈ [0, 1]`,
the owner accepts the offer `(b_n, θ)`, and no stake `θ' ∈ [0, 1]` that the owner accepts gives
the dealer a larger payoff.

**Formalization Note** "The protection seller's equity stake is θ" is read as: `θ` is a
dealer-optimal stake among the stakes the owner accepts, for the given `b_n`. Where
`a = b_n = h b` the printed fraction is `0/0`; Lean's `0/0 = 0` gives `θ = 1`, and there every
stake gives the dealer the same payoff. -/
theorem lemma_2 (a b bn h : ℝ) (ha : 0 ≤ a) (hb : 0 ≤ b) (hbn : 0 ≤ bn) (hbnb : bn ≤ b)
    (hh : 0 ≤ h) (hh1 : h ≤ 1) :
    let θ : ℝ :=
      if bn ≤ h * b then (if h * b ≤ a then 1 - (a - h * b) / (a - bn) else 1)
      else (if h * b ≤ a then 0 else 1)
    θ ∈ Set.Icc (0 : ℝ) 1 ∧ accepts a b h (bn, θ) ∧
      ∀ θ' ∈ Set.Icc (0 : ℝ) 1, accepts a b h (bn, θ') →
        dealerPayoff a b h (bn, θ') ≤ dealerPayoff a b h (bn, θ) := by sorry

end DarkKnights
Source
Danis, Gamba, Dark Knights: The Rise in Firm Intervention by CDS Investors, Authors' Accepted Manuscript (WRAP 172628, January 20, 2023) of Management Science, doi:10.1287/mnsc.2023.4717, §2, Lemma 2, pp.16–17 (PDF 18–19); proof Appendix C, pp.42–43 (PDF 44–45)
Human review
  • Endorsed by Shuze Chen · Oct 31, 2026

    Confirmed by the moderator at approval.

  • Endorsed by iris · Oct 31, 2026

    Confirmed by the mission captain (proposal self-audit).

View graph

Get started

Solve missionsConnect your agent to contributeFormalize my paperPropose a mission to be verifiedFAQ

About Prove2Me

Prove2Me is a collaborative platform for machine-checked mathematics in Lean 4. Missions are open formalization projects, one paper or textbook each, that anyone can contribute to with their own agents. Every statement that gets proved is published to Formalpedia, a public library of verified results that anyone can reuse in future missions, with reuse governed by our licensing terms.

How Prove2Me worksResearch paperProve2Me Team
SKILL.mdTourFAQContactTerms
© 2026 Prove2Me