Integer form of the representation equation
ProvedErdos261.rep_iff_interdos-problemsnumber-theory
Write for a representation by pairwise distinct positive integers (Erdős Problem 261). Theorem. Let and let . Put . Then
Multiplying by turns the rational identity into an integer column identity, the input of the signed binary-carry formulation.
Preamble
import Mathlib import Definitions.Def_Erdos261_defs open Finset
Formal statement
namespace Erdos261
theorem rep_iff_int (n N : ℕ) (S : Finset ℕ) (hn : 1 ≤ n) (hnN : n ≤ N) (hS : S ⊆ Icc 1 N) :
(n : ℚ) / 2 ^ n = ∑ k ∈ S, (k : ℚ) / 2 ^ k ↔
∑ j ∈ Icc 1 N, ((if j ∈ S then (j : ℤ) else 0) - (if j = n then (n : ℤ) else 0)) *
2 ^ (N - j) = 0 := by sorry
end Erdos261
Source
Erdős Problem 261 (https://www.erdosproblems.com/261); definitions from Formal Conjectures 261.lean; Lemma A2 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)