Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Lemma 3.3 — ∂ℓ ∘ k is a superderivative of the entropy, and D_ℓ(p, k(q)) is the Bregman divergence D_{h_ℓ}(p, q)

Proved
AgnosticImitate.Reduction.lemma_3_3

by Shuze Chen · Nov 9, 2026 · Mathlib 0df444a (Lean v4.33.1)

agnostic-learninglearning-theorymachine-learningmultiaccuracyp2o-gran-per-chapterp2o-plan-paperp2o-v1

Let ℓ\ellℓ be a loss with actions in AAA and let kkk be a best-response function of ℓ\ellℓ on [±1][\pm1][±1]. Then hℓ′=∂ℓ∘kh'_\ell=\partial\ell\circ khℓ′​=∂ℓ∘k is a superderivative of the entropy hℓ(p)=inf⁡aℓ(p,a)h_\ell(p)=\inf_a\ell(p,a)hℓ​(p)=infa​ℓ(p,a) on [±1][\pm1][±1]:

hℓ(y)≤hℓ(x)+hℓ′(x)(y−x)(x,y∈[−1,1]),h_\ell(y)\le h_\ell(x)+h'_\ell(x)(y-x)\qquad(x,y\in[-1,1]),hℓ​(y)≤hℓ​(x)+hℓ′​(x)(y−x)(x,y∈[−1,1]),

and for all p,q∈[−1,1]p,q\in[-1,1]p,q∈[−1,1]

Dℓ(p,k(q))=Dhℓ(p,q)=hℓ(q)+hℓ′(q)(p−q)−hℓ(p),D_\ell(p,k(q))=D_{h_\ell}(p,q)=h_\ell(q)+h'_\ell(q)(p-q)-h_\ell(p),Dℓ​(p,k(q))=Dhℓ​​(p,q)=hℓ​(q)+hℓ′​(q)(p−q)−hℓ​(p),

the Bregman divergence from ppp to qqq with respect to hℓh_\ellhℓ​ and the superderivative hℓ′h'_\ellhℓ′​.

Differences from the source:

  • encoding: a loss ℓ : {±1} × A → ℝ → ℓ : ℝ → A → ℝ, used only at y = 1 and y = −1 (expLoss); reason: the values at other y never enter
  • encoding: k_ℓ(p) ∈ argmin_a ℓ(p, a), the best-response function → a given selection k with IsBestResponse ℓ k (ℓ(p, k(p)) ≤ ℓ(p, a) for all p ∈ [−1, 1] and all a); reason: the paper's k_ℓ is a chosen selection; a best response need not exist in general, so it is assumed given
  • reading: superderivative: h(y) ≤ h(x) + h'(x)(y − x) for all x, y ∈ ℝ (Definition 2.1) → for all x, y ∈ [−1, 1] (IsSuperderivative); reason: h_ℓ and k_ℓ are defined for p ∈ [±1] (Definition 2.4, Lemma 3.4's means lie in [±1])
  • encoding: D_{h_ℓ}, the Bregman divergence with respect to h_ℓ, h'ℓ (Definition 2.2, footnote 7) → bregmanConcave h h' p q = h(q) + h'(q)(p − q) − h(p), i.e. D{−h}(p, q) with subderivative −h'; reason: Definition 2.2 applied to the convex −h_ℓ, as the paper's 'D_h instead of D_{−h}' convention says
  • encoding: h_ℓ(p) = inf_a ℓ(p, a) → the real infimum ⨅ a, expLoss ℓ p a; reason: for p ∈ [−1, 1] the set is bounded below and the infimum is attained at k(p), so it is the paper's value
Preamble
import Mathlib
import Definitions.Def_AgnosticImitate_Reduction_Losses
Formal statement
namespace AgnosticImitate.Reduction

/-- Lemma 3.3 (p. 20, PDF 22). If `k` is a best-response function of `ℓ`, then
`h'_ℓ = ∂ℓ ∘ k` is a superderivative of the entropy `h_ℓ` on `[±1]`, and
`D_ℓ(p, k(q)) = D_{h_ℓ}(p, q)` for all `p, q ∈ [±1]`, the Bregman divergence being taken with
respect to `h_ℓ` and the superderivative `h'_ℓ`. -/
theorem lemma_3_3 {A : Type*} (ℓ : ℝ → A → ℝ) (k : ℝ → A) (hk : IsBestResponse ℓ k) :
    IsSuperderivative (entropy ℓ) (fun q => discDeriv ℓ (k q)) ∧
    ∀ p ∈ Set.Icc (-1 : ℝ) 1, ∀ q ∈ Set.Icc (-1 : ℝ) 1,
      divergence ℓ p (k q) = bregmanConcave (entropy ℓ) (fun q => discDeriv ℓ (k q)) p q := by sorry

end AgnosticImitate.Reduction
Source
Casacuberta, Gopalan, Kanade, Reingold, Stavropoulos, Tankala (2026), Agnostic Learning by Imitating, STOC 2027 submission, SHA-256 225d86c2…0fb04, Lemma 3.3, p. 20 (PDF 22); proof p. 40 (PDF 42)
Human review
  • Endorsed by Community (Bot) · Nov 10, 2026

    Confirmed by the moderator at approval.

  • Endorsed by Shuze Chen · Nov 10, 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