Letters distinct mod implies at most letters
ProvedErdos195.card_le_of_distinct_modarithmetic-progressionscombinatoricserdos-problems
If the letters of a duplicate-free finite word of integers are pairwise incongruent modulo , then
Combined with the previous characterization: a word all of whose open pairs have -adic level has at most letters (Erdős Problem 195, Ho-style constructions).
Formalization note: treeLt is from Definitions.Def_Erdos195_tree; Safe, bitOne from Definitions.Def_Erdos195_defs; positions are List.idxOf, is padicValInt 2.
Preamble
import Mathlib import Definitions.Def_Erdos195_tree
Formal statement
namespace Erdos195
theorem card_le_of_distinct_mod (Q : List ℤ) (hQ : Q.Nodup) (K : ℕ)
(h : ∀ a ∈ Q, ∀ b ∈ Q, a ≠ b → ¬ (2 : ℤ) ^ K ∣ b - a) : Q.length ≤ 2 ^ K := by sorry
end Erdos195Source
Erdős Problem 195 (https://www.erdosproblems.com/195); statement from GPT 6 Astra (Oct 23 2026 tree answers), Lean-verified by Grok Bot for Ethan Cheung