Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Theorem 1, p. 8 — under MLRP, BinSearch finds an allocation envy-free up to η in poly(n, log λ, log 1/η) iterations

Proved
MLRPCake.EnvyFree.theorem_1

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

cake-cuttingenvy-freenessmonotone-likelihood-ratiop2o-batch-pfp2ap2o-gran-per-chapterp2o-plan-paperp2o-v1polynomial-timerobertson-webb

There is a universal constant c∈Nc\in\mathbb Nc∈N such that the following holds. Let C=⟨[n],(fi)i∈[n]⟩\mathcal C=\langle[n],(f_i)_{i\in[n]}\rangleC=⟨[n],(fi​)i∈[n]​⟩ be a cake-division instance with n≥1n\ge1n≥1 agents in which the value densities satisfy the monotone likelihood ratio property, with the agents indexed in the MLRP order. Assume the cut and eval queries are λ\lambdaλ-Lipschitz for some λ≥1\lambda\ge1λ≥1, and let η∈(0,1)\eta\in(0,1)η∈(0,1) be the precision. Run BinSearch (Algorithm 1) with parameter δ=η/λ\delta=\eta/\lambdaδ=η/λ. Then:

  1. BinSearch returns at its first stopping iteration TTT, and
T≤c (n+log⁡2λ+log⁡2(1/η)+1)c;T\le c\,\big(n+\log_2\lambda+\log_2(1/\eta)+1\big)^{c};T≤c(n+log2​λ+log2​(1/η)+1)c;
  1. coalescing its output (giving the leftover piece [xn,1][x_n,1][xn​,1] to agent nnn) yields a contiguous allocation I={I1,…,In}\mathcal I=\{I_1,\dots,I_n\}I={I1​,…,In​} of the whole cake [0,1][0,1][0,1] that is envy-free up to precision η\etaη: vi(Ii)≥vi(Ij)−ηv_i(I_i)\ge v_i(I_j)-\etavi​(Ii​)≥vi​(Ij​)−η for all i,j∈[n]i,j\in[n]i,j∈[n].

This is the paper's Theorem 1: under MLRP, an envy-free allocation with connected pieces can be computed up to an arbitrary precision in O(poly(n,log⁡λ))O(\mathrm{poly}(n,\log\lambda))O(poly(n,logλ)) time in the Robertson–Webb query model. The time is polynomial in log⁡(1/η)\log(1/\eta)log(1/η), so η\etaη can be driven exponentially close to zero.

Formalization Note The running time is measured in iterations of BinSearch. Each iteration evaluates RDn\mathrm{RD}_nRDn​ once, at a cost of 2(n−1)2(n-1)2(n−1) Robertson–Webb queries. The polynomial is universal: ccc is chosen before nnn and the instance. The restriction η<1\eta<1η<1 is added: the paper's proof uses δ=η/λ∈(0,1)\delta=\eta/\lambda\in(0,1)δ=η/λ∈(0,1), and for η≥1\eta\ge1η≥1 envy-freeness up to η\etaη is automatic. λ≥1\lambda\ge1λ≥1 is the paper's standing assumption (p. 8). Riemann integrability is encoded as boundedness plus interval integrability.

Preamble
import Mathlib
import Definitions.Def_MLRPCake_EnvyFree_Model
Formal statement
namespace MLRPCake.EnvyFree

/-- Theorem 1, p. 8: under MLRP and `λ`-Lipschitz queries, BinSearch run with `δ = η/λ`
returns within a number of iterations polynomial in `n`, `log λ` and `log (1/η)` (with a
universal polynomial; each iteration costs `2(n-1)` Robertson–Webb queries), and coalescing its
output gives a contiguous allocation that is envy-free up to `η`. -/
theorem theorem_1 : ∃ c : ℕ, ∀ (n : ℕ) (f : Fin n → ℝ → ℝ) (lam η : ℝ),
    1 ≤ n → IsInstance f → IsMLRP f → 1 ≤ lam → QueriesLipschitz f lam → 0 < η → η < 1 →
    ∃ T : ℕ, bsStops f (η / lam) T ∧ (∀ k < T, ¬ bsStops f (η / lam) k) ∧
      (T : ℝ) ≤ c * ((n : ℝ) + Real.logb 2 lam + Real.logb 2 (1 / η) + 1) ^ c ∧
      IsAllocation (n := n) (coalesce n (bsOutput f (η / lam) T)) ∧
      EnvyFreeUpTo f η (coalesce n (bsOutput f (η / lam) T)) := by sorry

end MLRPCake.EnvyFree
Source
Barman & Rathi, Fair Cake Division Under Monotone Likelihood Ratios, arXiv:2006.00481v3, p. 8, Theorem 1 (precision notion p. 8; restated p. 14; proof §5.4, pp. 14–15)
Human review
  • Endorsed by Shuze Chen · Oct 21, 2026

    Confirmed by the moderator at approval.

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