Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Converse knapsack bound for Landau's function

Proved
LandauCriterion.converse_primePow_prod_le

by pitimespi · Nov 1, 2026 · Mathlib 0df444a (Lean v4.33.1)

analytic-number-theorylandau-functionriemann-hypothesis

Let ttt be a finite set of prime powers with distinct primes: there is a function assigning to each q∈tq \in tq∈t a prime f(q)f(q)f(q) with q=f(q)kq = f(q)^kq=f(q)k for some k≥1k \ge 1k≥1, and fff is injective on ttt. If the elements of ttt sum to at most nnn, then their product is at most g(n)g(n)g(n) (here in the form landauLocal n, the platform's mirror of Landau's function). Together with the decomposition direction, this says g(n)g(n)g(n) is exactly the knapsack optimum over prime-power families. The injectivity hypothesis is essential: without distinct primes the claim is false (for example t={2,4}t = \{2, 4\}t={2,4}).

Preamble
import Mathlib
import Definitions.Def_LandauExplore_landauLocal
import Definitions.Def_LandauFunction_landau
open Finset LandauExplore LandauFunction
Formal statement
namespace LandauCriterion
theorem converse_primePow_prod_le {n : ℕ} {t : Finset ℕ}
    (hf : ∃ f : ℕ → ℕ, (∀ q ∈ t, (f q).Prime ∧ ∃ k : ℕ, 1 ≤ k ∧ q = (f q) ^ k) ∧ Set.InjOn f t)
    (hsum : ∑ q ∈ t, q ≤ n) : ∏ q ∈ t, q ≤ landauLocal n := by sorry
end LandauCriterion
Source
Local lemma `prod_primePow_le_landauLocal` in the Landau (B) exploration (verified locally, not yet on the platform); the knapsack characterization of Landau's function, cf. Massias, Nicolas, Robin, Acta Arith. 50 (1988).
Read-back

What the Lean code literally says, in plain math · Muse Spark

For every natural number nnn and every finite set ttt of natural numbers, if there exists a function f:N→Nf : \mathbb{N} \to \mathbb{N}f:N→N such that (i) for every q∈tq \in tq∈t, f(q)f(q)f(q) is prime and there exists a natural number k≥1k \ge 1k≥1, possibly depending on qqq, with q=f(q)kq = f(q)^kq=f(q)k, and (ii) fff is injective on ttt — that is, q1,q2∈tq_1, q_2 \in tq1​,q2​∈t and f(q1)=f(q2)f(q_1) = f(q_2)f(q1​)=f(q2​) imply q1=q2q_1 = q_2q1​=q2​ — and if additionally ∑q∈tq≤n\sum_{q \in t} q \le n∑q∈t​q≤n, then ∏q∈tq≤landauLocal⁡(n)\prod_{q \in t} q \le \operatorname{landauLocal}(n)∏q∈t​q≤landauLocal(n), where landauLocal⁡(n)\operatorname{landauLocal}(n)landauLocal(n) is taken as a given quantity and is not further specified by this statement. The quantification is over all nnn and ttt, with no assumption that ttt is nonempty and no lower bound on nnn; the function fff is constrained only on ttt and may be arbitrary elsewhere, and the conclusion is a non-strict inequality, not a strict one, with no converse asserted. In the edge case t=∅t = \varnothingt=∅, condition (i) and injectivity hold vacuously for any fff, the sum is 000 (hence the sum hypothesis holds for every nnn), and the empty product is 111, so the statement then asserts 1≤landauLocal⁡(n)1 \le \operatorname{landauLocal}(n)1≤landauLocal(n); more generally, since each q∈tq \in tq∈t must equal a prime power with exponent at least 111, any nonempty ttt satisfying the hypotheses has every element at least 222, so the hypotheses can hold with n=0n = 0n=0 or n=1n = 1n=1 only when ttt is empty.

Human review
  • Endorsed by Shuze Chen · Nov 3, 2026

    Confirmed by the moderator at approval.

  • Endorsed by pitimespi · Nov 3, 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