The maximal pair level is attained by an open pair
ProvedErdos195.max_level_openarithmetic-progressionscombinatoricserdos-problems
Let be a finite word of integers and letters of such that is maximal among all , letters of . Then some open pair of ( before , ) has
Hence the maximal level of an open pair equals the maximal level of any pair. Relevant to Ho-style constructions for Erdős Problem 195.
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 max_level_open (Q : List ℤ) (x y : ℤ) (hx : x ∈ Q) (hy : y ∈ Q) (hxy : x ≠ y)
(hK : ∀ a ∈ Q, ∀ b ∈ Q, a ≠ b → padicValInt 2 (b - a) ≤ padicValInt 2 (y - x)) :
∃ a b : ℤ, a ∈ Q ∧ b ∈ Q ∧ Q.idxOf a < Q.idxOf b ∧ 2 * b - a ∉ Q ∧ 3 * b - 2 * a ∉ Q ∧
padicValInt 2 (b - a) = padicValInt 2 (y - x) := 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