AFTD Auto-Formalizing Theoretical Domains

BayesianSingleItemAuction.deriv_equilibriumPayoff_eq_interimAllocProb_of_isIncentiveCompatible

theoremverifiedformalizationimported Lean

At differentiable types, U_i' = q_i.

Statement

set_option autoImplicit true in
set_option relaxedAutoImplicit true in
open BayesianSingleItemAuction in
open MeasureTheory in
variable {I : Type*} in
theorem BayesianSingleItemAuction.deriv_equilibriumPayoff_eq_interimAllocProb_of_isIncentiveCompatible
    (A : BayesianSingleItemAuction I) (hIC : A.IsIncentiveCompatible)
    {i : I} {v_i : ℝ}
    (hdiff : DifferentiableAt ℝ (A.equilibriumPayoff i) v_i) :
    deriv (A.equilibriumPayoff i) v_i = A.interimAllocProb i v_i
Formalizes
EconCSLib, `BayesianSingleItemAuction.deriv_equilibriumPayoff_eq_interimAllocProb_of_isIncentiveCompatible`
Lean proof
By xbei (from the file's git history), from github.com/gametheoryinlean/EconCSLib at 1a88f809b538 (Copyright (c) 2026 EconCSLib contributors. All rights reserved, Apache-2.0). Compiled here against leanprover/lean4:v4.33.1, Mathlib v4.33.1; written for leanprover/lean4:v4.30.0.
Verified
08 Oct 2026
Axioms
Classical.choiceQuot.soundpropext
Built on 18
Used by 2

Lean source view module on GitHub

set_option autoImplicit true inset_option relaxedAutoImplicit true inopen BayesianSingleItemAuction inopen MeasureTheory invariable {I : Type*} in/-- At differentiable types, `U_i' = q_i`. -/theorem BayesianSingleItemAuction.deriv_equilibriumPayoff_eq_interimAllocProb_of_isIncentiveCompatible    (A : BayesianSingleItemAuction I) (hIC : A.IsIncentiveCompatible)    {i : I} {v_i : ℝ}    (hdiff : DifferentiableAt ℝ (A.equilibriumPayoff i) v_i) :    deriv (A.equilibriumPayoff i) v_i = A.interimAllocProb i v_i := by  let q := A.interimAllocProb i v_i  have hineq := A.isIncentiveCompatible_iff_equilibriumPayoff_ge.mp hIC  have hmin :      IsMinOn (fun x : ℝ => A.equilibriumPayoff i x - q * x) Set.univ v_i := by    rw [isMinOn_univ_iff]    intro x    have hxineq : A.equilibriumPayoff i x ≥ A.equilibriumPayoff i v_i + q * (x - v_i) := by      simpa [q] using hineq i x v_i    nlinarith  have hlocal : IsLocalMin (fun x : ℝ => A.equilibriumPayoff i x - q * x) v_i :=    hmin.isLocalMin (by simp)  have hderiv :      HasDerivAt (fun x : ℝ => A.equilibriumPayoff i x - q * x)        (deriv (A.equilibriumPayoff i) v_i - q) v_i := by    exact hdiff.hasDerivAt.sub (hasDerivAt_const_mul (x := v_i) q)  have hzero : deriv (A.equilibriumPayoff i) v_i - q = 0 :=    hlocal.hasDerivAt_eq_zero hderiv  simpa [q] using sub_eq_zero.mp hzero
See it in the graphDiscuss this resultChallenge it