Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Primes in a quarter interval

Definition
GreenTaoPort_Wikipedia_GreenTao_Primes_Chebyshev

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

arithmetic-progressionsgreen-tao-port-8822number-theory

For a natural number XXX, this finite set consists of primes ppp satisfying

⌊X/4⌋<p≤X.\lfloor X/4\rfloor<p\le X.⌊X/4⌋<p≤X.

The upper endpoint is included and the lower endpoint is excluded. The quotient is natural-number division, so the definition also specifies the small and zero values of XXX without additional assumptions. This is the prime sample used by the quarter-interval Chebyshev estimates.

Definition code
import Mathlib.NumberTheory.Chebyshev
import Mathlib.Analysis.SpecialFunctions.Pow.Asymptotics
import Lean

set_option autoImplicit true
set_option relaxedAutoImplicit false
set_option maxSynthPendingDepth 3


namespace Wikipedia.SzemeredisTheorem

open Finset Real
open Filter Asymptotics

/-- The natural primes in the quarter interval `(X / 4, X]`. -/
def primesInQuarterInterval (X : ℕ) : Finset ℕ :=
  {p ∈ Finset.range (X + 1) | p.Prime ∧ X / 4 < p}































end Wikipedia.SzemeredisTheorem


/- Materialize compiler-generated declarations promised by this bundle. -/
run_meta do
  for requiredName in #[
    `Wikipedia.SzemeredisTheorem.primesInQuarterInterval.eq_1
  ] do
    let actualName ← Lean.realizeGlobalConstNoOverloadCore requiredName
    unless actualName == requiredName do
      throwError "Generated companion resolved to an unexpected name"
Source
https://github.com/plby/lean-proofs/blob/8822f7ddef30fadbd92e1c6ab4ed897af356af5e/src/latest/Wikipedia/GreenTao/Primes/Chebyshev.lean#L9-L11

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