Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

A reduced-residue pigeonhole bound without division

Proved
Wikipedia.SzemeredisTheorem.exists_reducedResidue_card_le_totient_mul_card_fiber

by kmehltretter82 · Nov 14, 2026 · Mathlib c5ea003 (Lean v4.30.0)

additive-combinatoricsgreen-tao-port-8822number-theory

Let W>0W>0W>0 and let SSS be a finite set of natural numbers, each coprime to WWW. There is a reduced residue bbb modulo WWW for which ∣S∣≤φ(W)∣residueFiber⁡(S,W,b)∣|S|\le\varphi(W)|\operatorname{residueFiber}(S,W,b)|∣S∣≤φ(W)∣residueFiber(S,W,b)∣.

Preamble
/- Mechanically transplanted from https://github.com/plby/lean-proofs.git at 8822f7ddef30fadbd92e1c6ab4ed897af356af5e. Original scopes and proof bytes are oracle-derived. -/
import Definitions.Def_GreenTaoPort_Wikipedia_GreenTao_Primes_ReducedResidues
import Mathlib.Combinatorics.Pigeonhole
import Mathlib.Data.Nat.Totient
import Mathlib.Data.ZMod.Basic
import Mathlib.NumberTheory.Primorial

set_option autoImplicit true
set_option relaxedAutoImplicit false
set_option maxSynthPendingDepth 3
open Wikipedia.SzemeredisTheorem
open Finset

Formal statement

theorem Wikipedia.SzemeredisTheorem.exists_reducedResidue_card_le_totient_mul_card_fiber
    {W : ℕ} (hW : 0 < W) (S : Finset ℕ)
    (hcop : ∀ n ∈ S, n.Coprime W) :
    ∃ b ∈ reducedResidues W,
      #S ≤ W.totient * #(residueFiber S W b) := by sorry
Source
https://github.com/plby/lean-proofs/blob/8822f7ddef30fadbd92e1c6ab4ed897af356af5e/src/latest/Wikipedia/GreenTao/Primes/ReducedResidues.lean#L58-L105

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