Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Theorem 3, p. 26 — with F unknown, FORC's regret is O((n²F + log T) Σ_{j<i} log(nT)/Δ_{j,i}) (corrected: T ≥ 2)

Proved
FakeUserRanking.FORC.theorem_3

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

cascade-modelcorruption-robustfake-usersp2o-batch-pfp2ap2o-correctedp2o-gran-per-chapterp2o-plan-paperp2o-v1product-rankingregret

Theorem 3 (Unknown Fakeness Budget: Regret of FORC Algorithm). Let FFF be the fakeness budget and assume that FFF is unknown to the platform. Then the expected regret of the FORC algorithm satisfies

RegT=O((n2F+log⁡T)∑j=1n∑i=j+1nlog⁡(nT)Δj,i)(16).\mathrm{Reg}_T=O\Big(\big(n^2F+\log T\big)\sum_{j=1}^n\sum_{i=j+1}^n\frac{\log(nT)}{\Delta_{j,i}}\Big)\qquad(16).RegT​=O((n2F+logT)j=1∑n​i=j+1∑n​Δj,i​log(nT)​)(16).

Precisely: there is an absolute constant CCC such that for all n≥1n\ge1n≥1, T≥2T\ge2T≥2, F≥0F\ge0F≥0, every instance with click probabilities μ1>⋯>μn\mu_1>\dots>\mu_nμ1​>⋯>μn​ in [0,1][0,1][0,1] and exit probabilities in [0,1][0,1][0,1], every adaptive randomized fake-user policy P\mathbf PP with fakeness budget FFF, and every resolution of FORC's unspecified choices,

EHT(π⋆)[∑t=1TCr,t(π⋆)]−EHT(πt)[∑t=1TCr,t(πt)]≤C (n2F+log⁡T)∑j=1n∑i=j+1nlog⁡(nT)μj−μi,\mathbb E_{\mathcal H_T(\pi^\star)}\Big[\sum_{t=1}^T\mathcal C_{r,t}(\pi^\star)\Big]-\mathbb E_{\mathcal H_T(\pi_t)}\Big[\sum_{t=1}^T\mathcal C_{r,t}(\pi_t)\Big]\le C\,\big(n^2F+\log T\big)\sum_{j=1}^n\sum_{i=j+1}^n\frac{\log(nT)}{\mu_j-\mu_i},EHT​(π⋆)​[t=1∑T​Cr,t​(π⋆)]−EHT​(πt​)​[t=1∑T​Cr,t​(πt​)]≤C(n2F+logT)j=1∑n​i=j+1∑n​μj​−μi​log(nT)​,

where πt\pi_tπt​ are FORC's rankings (Algorithm 3, with L=⌈log⁡2T⌉L=\lceil\log_2T\rceilL=⌈log2​T⌉ levels and δ=1/(n3T)\delta=1/(n^3T)δ=1/(n3T)), π⋆(i)=i\pi^\star(i)=iπ⋆(i)=i, and both runs face the same policy. FORC uses neither FFF nor the click or exit probabilities.

This is the paper's central result: without knowing how many users are fake, the platform's regret grows only linearly in FFF and logarithmically in TTT, compared with the Ω(T)\Omega(T)Ω(T) regret of UCB with F=O(log⁡2T)F=O(\log^2T)F=O(log2T) fake users (Theorem 1).

Formalization Note. Products are Fin n (0-based); Finset.Ioi j is {i:i>j}\{i:i>j\}{i:i>j}. Regret is defined for a fixed policy as a finite sum over trajectories; the supremum over policies in (2) is the quantification over every policy within budget. The constant CCC is chosen before nnn, TTT, FFF, the instance, the policy and FORC's choices. The hypothesis T≥2T\ge2T≥2 is a correction: the bound fails at T=1T=1T=1.

Differences from the source:

  • encoding: products, positions, levels and rounds indexed from 1; paper level ℓ; ℓ ≥ ℓ⋆ = ⌈log₂F⌉ → Fin n, Fin L, Fin T, all 0-based; Lean level k is paper level ℓ = k + 1; ℓ ≥ ⌈log₂F⌉ is written F ≤ 2^(k+1); reason: Lean convention; same instances (F ≤ 2^ℓ is exactly ℓ ≥ ⌈log₂F⌉, and holds for every level when F = 0)
  • encoding: expectations and probabilities over the random history H_T → finite sums over trajectories Fin T → Step, weighted by the product of the level weights, the policy's PMF and the real customer's cascade law; reason: every space of the model is finite, so this is the law of the history exactly
  • reading: L = log₂(T) levels → L = ⌈log₂T⌉ (Nat.clog 2 T); reason: the number of levels must be an integer; the ceiling keeps 2^L ≥ T (paper.md Slip 1)
  • reading: Step 8, no click at the last examined position: r ← r(η − 1)/(η + 1) → r^(ℓ)_i = (clicks of i at level ℓ)/η^(ℓ)_i, the average reward; reason: Step 3 calls r the average reward; FAR's Step 6 has r(η − 1)/η and the proofs use r·η = sum of samples (paper.md Slip 2)
  • encoding: Step 9 updates η̂, r̂ incrementally, only for levels ℓ ≥ ℓ_t and examined products → η̂, r̂ in closed form (17)–(18) from the current counts, for every level; reason: η^(g) with g ≤ ℓ changes only in rounds with ℓ_t ≤ ℓ, which trigger the update, so the stored values always equal the closed form
  • reading: ties among the smallest η in GraphRankSelect, its 'arbitrary ranking' on a cyclic graph, and Step 6 when no non-eliminated level above ℓ_t exists are left unspecified → universally quantified functions tb (a member of the tied set) and fb of FORC's past and the sampled level; reason: the claim is made for the algorithm as printed, so it must hold for every resolution of its unspecified choices (paper.md Slip 8)
  • encoding: n ≥ 1 arbitrary → 1 ≤ n; reason: δ = 1/(n³T) is undefined at n = 0
  • correction: T arbitrary → 2 ≤ T; reason: at T = 1 the bound is C(n²F + log 1)Σ log(n)/Δ = 0 for F = 0, but with n = 2, μ = (1, 1/2), q₁ = 1, F = 0 and a tie-break putting product 2 first, Reg₁ = 1/2 > 0 (paper.md Slip 1)
  • reading: Reg_T = O(·) → ∃ C : ℝ placed before n, T, F, the instance, the policy and FORC's choices; reason: O(·) with one absolute constant, uniform over everything the bound is stated for
  • encoding: Reg_T = sup over feasible policies P of the regret difference (2) → the bound for every policy P with WithinBudget F P; reason: a bound for every policy is a bound on the supremum, with the same constant (paper.md Slip 13)
Preamble
import Mathlib
import Definitions.Def_FakeUserRanking_FORC_Model
import Definitions.Def_FakeUserRanking_FORC_Algorithm
Formal statement
namespace FakeUserRanking.FORC

/-- Theorem 3 (Unknown Fakeness Budget: Regret of FORC Algorithm), p. 26: there is an absolute
constant `C` such that for every instance, every fakeness budget `F` (unknown to FORC), every
fake-user policy within budget `F` and every resolution of FORC's unspecified choices,
`Reg_T ≤ C (n²F + log T) ∑_{j<i} log(nT)/Δ_{j,i}`. -/
theorem theorem_3 :
    ∃ C : ℝ, ∀ (n T F : ℕ), 1 ≤ n → 2 ≤ T →
      ∀ (inst : Instance n), StrictAnti inst.μ →
      ∀ (P : Adversary n), WithinBudget F P →
      ∀ (tb : List (Fin (numLevels T) × Obs n) → Fin (numLevels T) → Finset (Fin n) → Fin n),
        (∀ h k S, S.Nonempty → tb h k S ∈ S) →
      ∀ (fb : List (Fin (numLevels T) × Obs n) → Fin (numLevels T) → Equiv.Perm (Fin n)),
        regret inst P (forc n T tb fb) T ≤
          C * (((n : ℝ) ^ 2 * F + Real.log T) *
            ∑ j : Fin n, ∑ i ∈ Finset.Ioi j, Real.log ((n : ℝ) * T) / gap inst j i) := by sorry

end FakeUserRanking.FORC
Source
Golrezaei, Manshadi, Schneider, Sekar, Learning Product Rankings Robust to Fake Users, arXiv:2009.05138v1, p. 26, Theorem 3, (16); regret (2) p. 12; proof pp. 28–34 and App. D
Human review
  • Endorsed by Shuze Chen · Oct 24, 2026

    Confirmed by the moderator at approval.

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