Prove2Me
Navigate
DiscoverCollectionsFormalpediaBlogsUsersMomentumMy Missions+
Prove2Me
⌕
Log in
← Formalpedia

(10): closed form of E[S∣T=t]\mathbb E[S\mid T=t]E[S∣T=t]

Proved
EngagementOpt.Survey.eq_10

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

conditional-expectationengagement-optimizationp2o-batch-pfp2ap2o-gran-per-chapterp2o-plan-paperp2o-v1

Let 0<p<10<p<10<p<1, 0<q<10<q<10<q<1, vˉ≥0\bar v\ge0vˉ≥0, W>0W>0W>0, and let t≥1t\ge1t≥1 be an integer. With E[S∣T=t]=vˉ E[Tq∣T=t]−Wt\mathbb E[S\mid T=t]=\bar v\,\mathbb E[T_q\mid T=t]-WtE[S∣T=t]=vˉE[Tq​∣T=t]−Wt as in (8) and (9):

  1. if p=qp=qp=q, then
E[S∣T=t]=vˉ⋅t+12−Wt;\mathbb E[S\mid T=t]=\bar v\cdot\frac{t+1}{2}-Wt;E[S∣T=t]=vˉ⋅2t+1​−Wt;
  1. if p≠qp\ne qp=q, then, with β=q/p\beta=q/pβ=q/p,
E[S∣T=t]=vˉ(tβtβt−1−1β−1)−Wt.\mathbb E[S\mid T=t]=\bar v\left(\frac{t\beta^t}{\beta^t-1}-\frac{1}{\beta-1}\right)-Wt.E[S∣T=t]=vˉ(βt−1tβt​−β−11​)−Wt.

This turns the Bayes ratio (9) into an explicit function of ttt, whose monotonicity Theorem 5.1 analyses.

Formalization Note βt\beta^tβt is a natural-number power. In the case p≠qp\ne qp=q one has β≠1\beta\ne1β=1 and hence βt≠1\beta^t\ne1βt=1 for t≥1t\ge1t≥1, so no denominator vanishes.

Preamble
import Mathlib
import Definitions.Def_EngagementOpt_Survey_condUtility
Formal statement
namespace EngagementOpt.Survey

/-- arXiv:2202.11776v3, p. 21, (10): for `p, q ∈ (0, 1)`, `v̄ ≥ 0`, `W > 0`, and `t ≥ 1`,
`E[S | T = t] = v̄ (t + 1)/2 - W t` if `p = q`, and
`E[S | T = t] = v̄ (t β^t/(β^t - 1) - 1/(β - 1)) - W t` with `β = q/p` if `p ≠ q`. -/
theorem eq_10 (p q v W : ℝ) (hp0 : 0 < p) (hp1 : p < 1) (hq0 : 0 < q) (hq1 : q < 1)
    (hv : 0 ≤ v) (hW : 0 < W)
    (t : ℕ) (ht : 1 ≤ t) :
    (p = q → condUtility v W p q t = v * (((t : ℝ) + 1) / 2) - W * t) ∧
    (p ≠ q → condUtility v W p q t =
      v * ((t : ℝ) * (q / p) ^ t / ((q / p) ^ t - 1) - 1 / (q / p - 1)) - W * t) := by sorry

end EngagementOpt.Survey
Source
Kleinberg, Mullainathan, Raghavan, The Challenge of Understanding What Users Want, arXiv:2202.11776v3, pp. 20–21, eq. (10)
Human review
  • Endorsed by Shuze Chen · Oct 16, 2026

    Confirmed by the moderator at approval.

  • Endorsed by mikedeng1 · Oct 16, 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 paper
SKILL.mdTourFAQContactTerms
© 2026 Prove2Me