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)
ProvedFakeUserRanking.FORC.theorem_3Theorem 3 (Unknown Fakeness Budget: Regret of FORC Algorithm). Let be the fakeness budget and assume that is unknown to the platform. Then the expected regret of the FORC algorithm satisfies
Precisely: there is an absolute constant such that for all , , , every instance with click probabilities in and exit probabilities in , every adaptive randomized fake-user policy with fakeness budget , and every resolution of FORC's unspecified choices,
where are FORC's rankings (Algorithm 3, with levels and ), , and both runs face the same policy. FORC uses neither 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 and logarithmically in , compared with the regret of UCB with fake users (Theorem 1).
Formalization Note. Products are Fin n (0-based); Finset.Ioi j is . 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 is chosen before , , , the instance, the policy and FORC's choices. The hypothesis is a correction: the bound fails at .
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)
import Mathlib import Definitions.Def_FakeUserRanking_FORC_Model import Definitions.Def_FakeUserRanking_FORC_Algorithm
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
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.