Bounded-run weakening of Erdős Problem 406
OpenErdos406.runs_boundedLet be the set of powers of whose ternary expansion uses only the digits and :
For , let be the number of maximal blocks of consecutive digits equal to in the ternary expansion of . For example and have one block, while has two.
The statement asserts that there is an integer such that
This is a consequence of the finiteness conjecture of Erdős (Problem 406): if is finite, the maximum of over is finite. It is strictly weaker than finiteness, because a bound on the number of blocks does not bound the length of the blocks and hence does not bound the number of digits equal to . It isolates the structural alternative that an infinite exceptional set would have to realise: an unbounded number of alternating blocks. The companion theorem Erdos406.runs_finite shows that for each fixed only finitely many exceptional powers of have at most blocks, so this bounded-block statement is precisely the missing input in the reduction of the finiteness question to S-unit equations.
Formalization Note The block count is Erdos406.oneRunCount (Nat.digits 3 n), where Nat.digits 3 n is the ternary digit list in least-significant-first order; n.isPowerOfTwo includes .
import Mathlib import Definitions.Def_Erdos406Runs
namespace Erdos406
theorem runs_bounded :
∃ R : ℕ, ∀ n : ℕ, n.isPowerOfTwo → Nat.digits 3 n ⊆ [0, 1] →
oneRunCount (Nat.digits 3 n) ≤ R := by
sorry
end Erdos406