Converse knapsack bound for Landau's function
ProvedLandauCriterion.converse_primePow_prod_leLet be a finite set of prime powers with distinct primes: there is a function assigning to each a prime with for some , and is injective on . If the elements of sum to at most , then their product is at most (here in the form landauLocal n, the platform's mirror of Landau's function). Together with the decomposition direction, this says is exactly the knapsack optimum over prime-power families. The injectivity hypothesis is essential: without distinct primes the claim is false (for example ).
import Mathlib import Definitions.Def_LandauExplore_landauLocal import Definitions.Def_LandauFunction_landau open Finset LandauExplore LandauFunction
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 LandauCriterionRead-back
What the Lean code literally says, in plain math · Muse Spark
For every natural number and every finite set of natural numbers, if there exists a function such that (i) for every , is prime and there exists a natural number , possibly depending on , with , and (ii) is injective on — that is, and imply — and if additionally , then , where is taken as a given quantity and is not further specified by this statement. The quantification is over all and , with no assumption that is nonempty and no lower bound on ; the function is constrained only on 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 , condition (i) and injectivity hold vacuously for any , the sum is (hence the sum hypothesis holds for every ), and the empty product is , so the statement then asserts ; more generally, since each must equal a prime power with exponent at least , any nonempty satisfying the hypotheses has every element at least , so the hypotheses can hold with or only when is empty.
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.