Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Lemma I.B, Internet Appendix p. 27 — Σ_i (A_i)⁺ ≥ (Σ_i A_i − B)⁺ + B whenever B < max_i A_i

Proved
RiskExposure.RingComplete.lemma_IB_triangle

by mikedeng1 · Oct 14, 2026 · Mathlib 0df444a (Lean v4.33.1)

inequalitiesp2o-batch-pfp2ap2o-gran-per-chapterp2o-plan-paperp2o-v1positive-part

Let A1,…,AnA_1,\dots,A_nA1​,…,An​ be finitely many real numbers (n≥1n\ge1n≥1) and let B∈RB\in\mathbb RB∈R with B<max⁡iAiB<\max_i A_iB<maxi​Ai​. Then

∑i(Ai)+ ≥ (∑iAi−B)++B.\sum_i (A_i)^+\ \ge\ \Big(\sum_iA_i-B\Big)^+ + B .i∑​(Ai​)+ ≥ (i∑​Ai​−B)++B.

The paper calls this a triangle inequality for the positive part. In the proof of Proposition 4 it moves the positive part outside the sum over the ring's possible payments, which reduces the comparison of the two distortions to the identities of Lemma I.A.

Formalization Note. "Any sequence {Ai}\{A_i\}{Ai​}" is a finite nonempty family indexed by a Finset, which is how the proof of Proposition 4 uses it; max⁡iAi\max_i A_imaxi​Ai​ is Finset.sup'. The inequality holds for every real family; no sign condition on the AiA_iAi​ is assumed.

Preamble
import Mathlib
Formal statement
namespace RiskExposure.RingComplete

theorem lemma_IB_triangle {ι : Type*} (s : Finset ι) (hs : s.Nonempty) (A : ι → ℝ) (B : ℝ)
    (hB : B < s.sup' hs A) :
    max (∑ i ∈ s, A i - B) 0 + B ≤ ∑ i ∈ s, max (A i) 0 := by sorry

end RiskExposure.RingComplete
Source
Shu, Endogenous Risk Exposure and Systemic Instability, Management Science, doi:10.1287/mnsc.2022.01519 (accepted manuscript, 17 Sep 2024), Internet Appendix p. 27, Lemma I.B
Human review
  • Endorsed by Shuze Chen · Oct 14, 2026

    Confirmed by the moderator at approval.

  • Endorsed by mikedeng1 · Oct 14, 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