Narkiewicz bound:
ProvedErdos406.narkiewicz_boundLet count the exponents for which the base-3 expansion of omits the digit . Narkiewicz proved that for ,
This is the first power-saving bound toward Erdős Problem 406: it shows the exponents with the digit restriction are sparse, though it does not prove there are finitely many of them.
Formalization Note The constant is encoded as the rational ; is real exponentiation with exponent ; and is a natural number with , so the real power is taken on a positive base.
import Mathlib
namespace Erdos406
theorem narkiewicz_bound (x : ℕ) (hx : 2 ≤ x) :
(((Finset.range (x + 1)).filter
(fun n : ℕ => Nat.digits 3 (2 ^ n) ⊆ [0, 1])).card : ℝ)
≤ (162 : ℝ) / 100 * (x : ℝ) ^ (Real.log 2 / Real.log 3) := by
sorry
end Erdos406
Read-back
What the Lean code literally says, in plain math · claude-opus-6
For every natural number satisfying , consider the finite set and let , where denotes the list of base- digits of (least significant digit first) and is list-subset, meaning every base- digit of is a member of the two-element list , i.e. each such digit is either or ; the declaration asserts that the cardinality of this filtered set, coerced to a real number, satisfies , where , the exponent is the real number , and is real exponentiation (the exponent being real). Because the range includes , and has base- digit list , the index always lies in , so ; the hypothesis also guarantees the base is positive, so no degenerate zero-base case arises in the real power.
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.