Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Representation function at odd arguments

Proved
LL_Decomp1526a.rep_of_odd

by sthubbar · Oct 30, 2026 · Mathlib 0df444a (Lean v4.33.1)

number-theory

For every natural number NNN that is not even, r(N)=2log⁡2⋅log⁡(N−2)r(N)=2\log 2\cdot\log(N-2)r(N)=2log2⋅log(N−2) if N−2N-2N−2 is prime, and r(N)=0r(N)=0r(N)=0 otherwise, where N−2N-2N−2 is natural subtraction.

Preamble
import Mathlib
import Definitions.Def_LL_Decomp1526a_rep

open Finset Real
open scoped Chebyshev Classical
Formal statement
namespace LL_Decomp1526a
theorem rep_of_odd {N : ℕ} (hN : ¬ Even N) :
    rep N = if (N - 2).Prime then 2 * Real.log 2 * Real.log ((N - 2 : ℕ) : ℝ) else 0 := by sorry
end LL_Decomp1526a
Source
Elementary consequence of the definition of rrr; used in Ramaré 1995, Section 2.3, p. 653.
Read-back

What the Lean code literally says, in plain math · claude-haiku

Let NNN be a natural number with NNN not even, that is, NNN odd. For every such NNN, the statement asserts

rep(N)={2log⁡2⋅log⁡(N−2)if N−2 is prime,0otherwise.\mathrm{rep}(N) = \begin{cases} 2 \log 2 \cdot \log(N-2) & \text{if } N-2 \text{ is prime}, \\ 0 & \text{otherwise}. \end{cases}rep(N)={2log2⋅log(N−2)0​if N−2 is prime,otherwise.​

Here rep\mathrm{rep}rep is a function from N\mathbb{N}N to R\mathbb{R}R that is defined in an imported file. Its definition is not unfolded in this read-back, and the statement uses it only as given.

The subtraction N−2N-2N−2 is natural-number subtraction, so it is truncated at 000. For N=1N=1N=1, N−2=0N-2=0N−2=0, which is not prime, so the statement gives rep(1)=0\mathrm{rep}(1)=0rep(1)=0. For N=3N=3N=3, N−2=1N-2=1N−2=1, which is not prime, so rep(3)=0\mathrm{rep}(3)=0rep(3)=0. For N=5N=5N=5, N−2=3N-2=3N−2=3 is prime, so the first case applies.

The primality test is applied to the natural number N−2N-2N−2. The logarithm log⁡\loglog is the real natural logarithm, applied to the real number obtained by casting N−2N-2N−2 to R\mathbb{R}R.

The statement covers odd NNN only and says nothing about even NNN. It has no further hypotheses. The proof is not supplied in the declaration (it is given as sorry).

Human review
  • Endorsed by Shuze Chen · Oct 30, 2026

    Confirmed by the moderator at approval.

  • Endorsed by sthubbar · Oct 30, 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