Hall criterion for nonadjacent omissions with layer quotas
ProvedErdos287.omission_quotas_iff_block_hallegyptian-fractionserdos-problemsnumber-theory
Let each available integer carry a layer label, and suppose every run of consecutive available positions has length one or two. Partition the positions into those runs. Given a quota for each label , a set of available positions with no consecutive members meeting the quotas exists exactly when, for every label subset , the blocks containing a label from number at least .
Preamble
import Mathlib
Formal statement
theorem Erdos287.omission_quotas_iff_block_hall (U P : Finset ℕ) (label block need : ℕ → ℕ)
(hwithin : ∀ x ∈ U, ∀ y ∈ U, block x = block y →
x = y ∨ x + 1 = y ∨ y + 1 = x)
(hbetween : ∀ x ∈ U, x + 1 ∈ U → block x = block (x + 1)) :
(∃ X ⊆ U, (∀ x ∈ X, x + 1 ∉ X) ∧
∀ p ∈ P, need p ≤ (X.filter (fun x => label x = p)).card) ↔
∀ S ⊆ P, (∑ p ∈ S, need p) ≤
((U.filter (fun x => label x ∈ S)).image block).card := by sorry
Source
Erdős Problem 287, https://www.erdosproblems.com/287.