Counting short even selected runs from their enclosing windows
ProvedErdos287.opposite_parity_windows_count_short_even_runsegyptian-fractionserdos-problemsnumber-theory
Let be a finite set of omissions with no consecutive positions. Suppose each window , for in a finite set , contains omissions of both parities. Let be the set of successive pairs of holes in with distance at most and a positive even number of interior positions. Then .
Preamble
import Mathlib
Formal statement
theorem Erdos287.opposite_parity_windows_count_short_even_runs (H W : Finset ℕ) (d : ℕ) (hsep : ∀ n ∈ H, n + 1 ∉ H)
(hW : ∀ t ∈ W, ∃ a ∈ H, ∃ b ∈ H, t ≤ a ∧ a < b ∧ b ≤ t + d ∧ a % 2 ≠ b % 2) :
let runs := (H ×ˢ H).filter (fun xy => xy.1 + 3 ≤ xy.2 ∧ xy.2 - xy.1 ≤ d ∧
Even (xy.2 - xy.1 - 1) ∧ ∀ n ∈ Finset.Ioo xy.1 xy.2, n ∉ H)
W.card ≤ (d + 1) * runs.card := by sorry
Source
Erdős Problem 287, https://www.erdosproblems.com/287.