Restart reduction: Erdős 261 for is greedy termination or a restart at a branch state
ProvedErdos261.restart_reductionWrite for a representation by pairwise distinct positive integers (Erdős Problem 261). Let be the greedy carry from : , if and otherwise. Theorem. For , has a representation iff
So the only freedom beyond the greedy algorithm is a restart at branch states : one may skip , take , and continue with the instance . Problem 261 is therefore equivalent to a termination statement for the greedy carry map with restarts.
Attribution. The mathematical content is due to Borwein and Loring (1990, Algorithm 3 and Proposition 4): the greedy *-binary algorithm may deviate ("cheat") only at states , and every finite representation of a dyadic rational arises from such a run. In the variables here , and the state only leads to infinite tails, so the branch states are exactly . This theorem is a repackaging of that result for finite representations of : after a deviation the remainder is exactly , i.e. the instance . The Lean formalization is new; the reduction is not.
import Mathlib import Definitions.Def_Erdos261_defs open Finset
namespace Erdos261
theorem restart_reduction {n : ℕ} (hn : 2 ≤ n) :
Erdos261Prop n ↔ (∃ j, greedy n j = 0) ∨
∃ j, Even (n + j) ∧ 2 * greedy n j = ((n + j + 2 : ℕ) : ℤ) ∧
Erdos261Prop (n + j + 2) := by sorry
end Erdos261