Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Theorem 3, p. 4 — R(d) ≤ d⁴ + d; a k-partite digraph with k > d⁴ + d parts of size ≤ d and the in-edge property has a cycle visiting each part at most once

Proved
RainbowEFX.Sublinear.theorem_3

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

combinatoricsdigraphsp2o-batch-pfp2ap2o-gran-per-chapterp2o-plan-paperp2o-v1rainbow-cycle

Let d≥1d\ge 1d≥1. A kkk-partite digraph is a digraph whose vertex set is partitioned into kkk parts. Say it has the in-edge property if for every vertex www and every part WWW not containing www there is an edge from some vertex of WWW to www. A rainbow cycle is a directed cycle that visits each part at most once.

  1. The rainbow cycle number R(d)R(d)R(d) of Definition 2 is finite, and
R(d)≤d4+d.R(d)\le d^4+d .R(d)≤d4+d.
  1. If GGG is a kkk-partite digraph with k>d4+dk>d^4+dk>d4+d parts, each of size at most ddd, with the in-edge property, then GGG contains a rainbow cycle.

This is the combinatorial core of the paper: through the group champion graph it bounds the number ∣LX∣|L_X|∣LX​∣ of low-demand unallocated goods, which gives the sublinear bound of Theorem 1.

Formalization Note The parts are the fibres of a map part : V → ι with ι finite; each part is required to have between 111 and ddd elements (the paper's "at most ddd" with the nonemptiness that its proof uses; with all parts empty the second claim would be false). Finiteness of R(d)R(d)R(d) is stated explicitly (BddAbove), because sSup of an unbounded set of naturals is 000 in Lean. Cycles have length at least 222. The claim that the cycle can be found in time polynomial in kkk is not formalized.

Preamble
import Mathlib
import Definitions.Def_RainbowEFX_Sublinear_Setting
Formal statement
namespace RainbowEFX.Sublinear

open LittleCharity.EFX

theorem theorem_3 (d : ℕ) (hd : 1 ≤ d) :
    BddAbove {k : ℕ | RainbowFree d k} ∧ rainbowCycleNumber d ≤ d ^ 4 + d ∧
    ∀ {ι V : Type} [Fintype ι] (part : V → ι) (adj : V → V → Prop),
      d ^ 4 + d < Fintype.card ι →
      (∀ i : ι, 1 ≤ Nat.card {w : V // part w = i} ∧ Nat.card {w : V // part w = i} ≤ d) →
      InEdgeProperty part adj →
      ∃ (r : ℕ) (c : Fin r → V), IsRainbowCycle part adj c := by sorry

end RainbowEFX.Sublinear
Source
Chaudhury, Garg, Mehlhorn, Mehta, Misra, Improving EFX Guarantees through Rainbow Cycle Number, arXiv:2103.01628v1, p. 4, Theorem 3 (restated as Theorem 21, p. 18)
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