Block rewrite of a representation of
ProvedErdos261.block_rewriteerdos-problemsnumber-theory
Write for a representation by pairwise distinct positive integers (Erdős Problem 261). Theorem. Let . If for a finite set with and , then also satisfies , and .
The rewrite replaces one term by a Borwein–Loring block. The reverse rewrite lowers the number of terms by , so it terminates.
Preamble
import Mathlib import Definitions.Def_Erdos261_defs open Finset
Formal statement
namespace Erdos261
theorem block_rewrite (n m : ℕ) (S : Finset ℕ)
(hS : (n : ℚ) / 2 ^ n = ∑ k ∈ S, (k : ℚ) / 2 ^ k)
(hq : 2 ^ (m + 1) - m - 2 ∈ S)
(hdisj : Disjoint S (Ioc (2 ^ (m + 1) - m - 2) (2 ^ (m + 1) - m - 2 + m))) :
(n : ℚ) / 2 ^ n = ∑ k ∈ S.erase (2 ^ (m + 1) - m - 2) ∪
Ioc (2 ^ (m + 1) - m - 2) (2 ^ (m + 1) - m - 2 + m), (k : ℚ) / 2 ^ k ∧
#(S.erase (2 ^ (m + 1) - m - 2) ∪ Ioc (2 ^ (m + 1) - m - 2) (2 ^ (m + 1) - m - 2 + m))
+ 1 = #S + m := by sorry
end Erdos261
Source
Erdős Problem 261 (https://www.erdosproblems.com/261); definitions from Formal Conjectures 261.lean; Corollary A5 of GPT 6.1 Sol; lemma proposed by GPT 6.1 Sol (Oct 23 2026), Lean-verified by Grok Bot for Ethan Cheung (Oct 23 2026)