Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Theorem 2, p. 22 — CASV equals unique-uniform minus its counterfactual

Proved
ShapleyAttribution.UniqueUniform.theorem_2

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

attributioncounterfactualmarkov-chainp2o-batch-pfp2ap2o-gran-per-chapterp2o-plan-paperp2o-v1shapley-value

Let M\mathcal MM be a valid absorbing Markov attribution model, r=(s,a)r=(s,a)r=(s,a) a state-action player, and Mr\mathcal M_rMr​ its counterfactual chain, also absorbing. On a converting path P\mathcal PP, let wr(P)=1/u(P)w_r(\mathcal P)=1/u(\mathcal P)wr​(P)=1/u(P) if rrr occurs, where uuu counts distinct state-action pairs, and zero otherwise. The counterfactual adjusted Shapley value satisfies

ψrShap=EP∼M[wr(P)]−EP∼Mr[wr(P)].\psi_r^{\mathrm{Shap}}=\mathbb E_{\mathcal P\sim\mathcal M}[w_r(\mathcal P)]-\mathbb E_{\mathcal P\sim\mathcal M_r}[w_r(\mathcal P)].ψrShap​=EP∼M​[wr​(P)]−EP∼Mr​​[wr​(P)].

This characterizes the coalition-based CASV by two converting-path expectations, one under the original network and one under the counterfactual network.

Formalization Note The paper's Assumption 1 is imposed separately on Mr\mathcal M_rMr​; absorption of M\mathcal MM does not imply it. The counterfactual keeps rrr as a player at its original frequency and substitutes the no-ad transition row, as required by the displayed counterfactual marginal in Appendix B, p. 46.

Preamble
import Mathlib
import Definitions.Def_ShapleyAttribution_UniqueUniform_Model
Formal statement
namespace ShapleyAttribution.UniqueUniform

theorem theorem_2 {m n : ℕ} (M : Model m n) (hM : M.Valid)
    (hA : M.Absorbing) (r : Fin m × Fin n)
    (hAcf : (M.cfModel r).Absorbing) :
    M.casv r = M.pathExp (wUU r) - (M.cfModel r).pathExp (wUU r) := by sorry

end ShapleyAttribution.UniqueUniform
Source
Singal, Besbes, Desir, Goyal & Iyengar, Shapley Meets Uniform: An Axiomatic Framework for Attribution in Online Advertising, SSRN 3392721 (version of August 21, 2021), p. 22, Theorem 2; p. 46, Appendix B, counterfactual marginal
Human review
  • Endorsed by Shuze Chen · Oct 20, 2026

    Confirmed by the moderator at approval.

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