op861_unbalanced_selectors_imply_hypergraph_cover
A proper pair of selectors for (r+s+1)-sets and k-sets produces uniform hypergraph families satisfying the coverage and avoidance conditions.
Statement
theorem op861_unbalanced_selectors_imply_hypergraph_cover (α : Type) [Fintype α] [DecidableEq α] (k r s : ℕ) (hn : Fintype.card α = k + r + s) (f : {X : Finset α // X.card = r + s + 1} → α) (g : {T : Finset α // T.card = k} → α) (hf : ∀ X, f X ∈ X.1) (hg : ∀ T, g T ∈ T.1) (hproper : ∀ X T, (X.1 ∩ T.1).card ≤ r → f X ≠ g T) : ∃ H : α → Finset α → Prop, (∀ v Y, H v Y → Y.card = s + 1 ∧ v ∉ Y) ∧ (∀ X : Finset α, X.card = r + s + 1 → ∃ v ∈ X, ∀ Y : Finset α, Y ⊆ X.erase v → Y.card = s + 1 → H v Y) ∧ (∀ R : Finset α, R.card = r + s → ∃ v, v ∉ R ∧ ∀ Y : Finset α, H v Y → ¬ Y ⊆ R)
- Source
- Palette-surplus hypergraph reduction for OP-861; finite examples in experiment 30660.
- Verified
- 18 Nov 2026
- Axioms
Classical.choiceQuot.soundpropext- Used by 1
- op861_unbalanced_selectors_hypergraph_iffFor a palette of size k+r+s, proper selectors for (r+s+1)-sets and k-sets are equivalent to the stated uniform hypergraph coverage and…
The proof, explained
The proof defines the hypergraph relation $H(v, Y)$ to hold whenever $|Y| = s+1$, $v ∉ Y$, and $Y ⊆ X \setminus \{v\}$ for some $(r+s+1)$-element set $X$ with selector choice $f(X) = v$. The uniformity condition holds by construction, and coverage for any $(r+s+1)$-set $X$ follows by taking $v = f(X)$. For the avoidance condition on an $(r+s)$-set $R$, the complement $T = α \setminus R$ is a $k$-set with selector value $v = g(T) ∉ R$. Any hyperedge $Y ∈ H(v)$ contained in $R$ would be disjoint from $X ∩ T$ inside $X$, forcing $|X ∩ T| ≤ r$ and thereby contradicting the properness assumption $f(X) ≠ g(T)$.
Define the candidate hypergraph family $H$ and reduce to verifying its three required properties.
Under classical logic, define the incidence relation $H(v, Y)$ for a vertex $v ∈ α$ and subset $Y ⊆ α$ to hold if and only if $|Y| = s+1$, $v ∉ Y$, and there exists an $(r+s+1)$-element set $X$ with selector value $f(X) = v$ such that $Y ⊆ X \setminus \{v\}$. Providing $H$ as the existential witness splits the goal into three subgoals corresponding to uniformity, coverage, and avoidance.
classical let H : α → Finset α → Prop := fun v Y => Y.card = s + 1 ∧ v ∉ Y ∧ ∃ (X : Finset α) (hX : X.card = r + s + 1), f ⟨X, hX⟩ = v ∧ Y ⊆ X.erase v refine ⟨H, ?_, ?_, ?_⟩
Every hyperedge $Y$ associated with $v$ in $H$ has size $s+1$ and does not contain $v$.
Given $v$ and $Y$ satisfying $H(v, Y)$, the conditions $|Y| = s+1$ and $v ∉ Y$ hold immediately as they are explicit conjuncts in the definition of $H$.
· intro v Y h exact ⟨h.1, h.2.1⟩
For every $(r+s+1)$-element subset $X$, the vertex $v = f(X) ∈ X$ satisfies $H(v, Y)$ for every $(s+1)$-element subset $Y ⊆ X \setminus \{v\}$.
Given $X$ of size $r+s+1$, choose $v = f(X)$, which belongs to $X$ by the selector assumption on $f$. For any $(s+1)$-subset $Y ⊆ X \setminus \{v\}$, $v ∉ Y$ holds because elements of $X \setminus \{v\}$ cannot equal $v$ (`Finset.mem_erase.mp`). Then $X$ itself witnesses the existential condition in $H$, confirming $H(v, Y)$.
uses
Finset.mem_erase.mp· intro X hX let v := f ⟨X, hX⟩ refine ⟨v, hf ⟨X, hX⟩, ?_⟩ intro Y hYX hY refine ⟨hY, ?_, X, hX, rfl, hYX⟩ intro hv exact (Finset.mem_erase.mp (hYX hv)).1 rfl
For every $(r+s)$-element subset $R$, the complement $T = α \setminus R$ has cardinality $k$, and the selector vertex $v = g(T)$ does not belong to $R$.
Given $R$ of size $r+s$, define $T = α \setminus R$. Since $R ⊆ α$, we have $|T| + |R| = |α|$ by `Finset.card_sdiff_add_card_eq_card` and `Finset.subset_univ`. Substituting $|R| = r+s$ and $|α| = k+r+s$ (`Finset.card_univ`), linear arithmetic (`omega`) yields $|T| = k$. Evaluating $g$ on $T$ produces a vertex $v = g(T) ∈ T$, which implies $v ∉ R$ by definition of set difference (`Finset.mem_sdiff.mp`).
uses
Finset.card_sdiff_add_card_eq_card,Finset.subset_univ,Finset.card_univ,Finset.mem_sdiff.mp· intro R hR let T : Finset α := Finset.univ \ R have hTk : T.card = k := by have hh := Finset.card_sdiff_add_card_eq_card (Finset.subset_univ R) simp only [Finset.card_univ, hR, hn] at hh dsimp [T] omega let t : {T : Finset α // T.card = k} := ⟨T, hTk⟩ let v := g t have hvT : v ∈ T := hg t have hvR : v ∉ R := (Finset.mem_sdiff.mp hvT).2 refine ⟨v, hvR, ?_⟩
No hyperedge $Y$ associated with $v = g(T)$ can be a subset of $R$.
Suppose, for contradiction, that $H(v, Y)$ holds and $Y ⊆ R$. Unpacking $H(v, Y)$ gives an $(r+s+1)$-set $X$ such that $f(X) = v$, $|Y| = s+1$, and $Y ⊆ X \setminus \{v\} ⊆ X$ (`Finset.erase_subset`). Because $Y ⊆ R$ and $T = α \setminus R$, $Y$ and $X ∩ T$ are disjoint (`Finset.disjoint_left.mpr`, `Finset.mem_inter.mp`, `Finset.mem_sdiff.mp`). Both $Y$ and $X ∩ T$ are subsets of $X$ (`Finset.union_subset`, `Finset.inter_subset_left`), so $|Y ∪ (X ∩ T)| ≤ |X| = r+s+1$ (`Finset.card_le_card`). Since the sets are disjoint, $|Y| + |X ∩ T| ≤ r+s+1$ (`Finset.card_union_of_disjoint`). Substituting $|Y| = s+1$ implies $|X ∩ T| ≤ r$ by linear arithmetic (`omega`). But the properness hypothesis on $(f, g)$ asserts that $|X ∩ T| ≤ r$ implies $f(X) ≠ g(T)$, which contradicts $f(X) = v = g(T)$.
uses
Finset.erase_subset,Finset.disjoint_left.mpr,Finset.mem_inter.mp,Finset.mem_sdiff.mp,Finset.card_le_card,Finset.union_subset,Finset.inter_subset_left,Finset.card_union_of_disjointintro Y hY hYR obtain ⟨hYcard, _, X, hX, hfX, hYX⟩ := hY have hYX' : Y ⊆ X := hYX.trans (Finset.erase_subset _ _) have hd : Disjoint Y (X ∩ T) := by apply Finset.disjoint_left.mpr intro w hwY hwXT have hwT := (Finset.mem_inter.mp hwXT).2 exact (Finset.mem_sdiff.mp hwT).2 (hYR hwY) have hc : (Y ∪ (X ∩ T)).card ≤ X.card := Finset.card_le_card (Finset.union_subset hYX' Finset.inter_subset_left) rw [Finset.card_union_of_disjoint hd, hYcard, hX] at hc have hint : (X ∩ T).card ≤ r := by omega exact (hproper ⟨X, hX⟩ t hint) hfX
Finset.mem_erase.mp- If $x ∈ s \setminus \{a\}$, then $x ≠ a$ and $x ∈ s$.
Finset.card_sdiff_add_card_eq_card- If $s ⊆ t$, then $|t \setminus s| + |s| = |t|$.
Finset.subset_univ- Every finite set in a finite type is a subset of the universal set.
Finset.card_univ- The cardinality of the universal set of a finite type equals the cardinality of the type.
Finset.mem_sdiff.mp- If $x ∈ s \setminus t$, then $x ∈ s$ and $x ∉ t$.
Finset.erase_subset- Removing an element from a set produces a subset of the original set ($s \setminus \{a\} ⊆ s$).
Finset.disjoint_left.mpr- Two sets are disjoint if no element in the first set belongs to the second set.
Finset.mem_inter.mp- If $x ∈ s ∩ t$, then $x ∈ s$ and $x ∈ t$.
Finset.card_le_card- If $s ⊆ t$, then $|s| ≤ |t|$.
Finset.union_subset- If $s ⊆ u$ and $t ⊆ u$, then $s ∪ t ⊆ u$.
Finset.inter_subset_left- The intersection $s₁ ∩ s₂$ is a subset of $s₁$.
Finset.card_union_of_disjoint- If $s$ and $t$ are disjoint sets, then $|s ∪ t| = |s| + |t|$.
- Linear arithmetic automation (`omega`) is used twice: first to deduce $|T| = k$ from $|T| + (r+s) = k+r+s$, and second to deduce $|X \cap T| ≤ r$ from $(s+1) + |X \cap T| ≤ r+s+1$.
Written by a model (gemini-3.8-flash) from the Lean proof and the goal states Lean reported at each step. Lean verified the proof; this explanation is a reading aid and is not itself machine-checked.
Lean source view module on GitHub
Choose a tactic — a marked line — to see the goals Lean had before and after it, as in Lean’s infoview. Step with ← → or j k.
theorem op861_unbalanced_selectors_imply_hypergraph_cover (α : Type) [Fintype α] [DecidableEq α] (k r s : ℕ) (hn : Fintype.card α = k + r + s) (f : {X : Finset α // X.card = r + s + 1} → α) (g : {T : Finset α // T.card = k} → α) (hf : ∀ X, f X ∈ X.1) (hg : ∀ T, g T ∈ T.1) (hproper : ∀ X T, (X.1 ∩ T.1).card ≤ r → f X ≠ g T) : ∃ H : α → Finset α → Prop, (∀ v Y, H v Y → Y.card = s + 1 ∧ v ∉ Y) ∧ (∀ X : Finset α, X.card = r + s + 1 → ∃ v ∈ X, ∀ Y : Finset α, Y ⊆ X.erase v → Y.card = s + 1 → H v Y) ∧ (∀ R : Finset α, R.card = r + s → ∃ v, v ∉ R ∧ ∀ Y : Finset α, H v Y → ¬ Y ⊆ R) := by classical let H : α → Finset α → Prop := fun v Y => Y.card = s + 1 ∧ v ∉ Y ∧ ∃ (X : Finset α) (hX : X.card = r + s + 1), f ⟨X, hX⟩ = v ∧ Y ⊆ X.erase v refine ⟨H, ?_, ?_, ?_⟩ · intro v Y h exact ⟨h.1, h.2.1⟩ · intro X hX let v := f ⟨X, hX⟩ refine ⟨v, hf ⟨X, hX⟩, ?_⟩ intro Y hYX hY refine ⟨hY, ?_, X, hX, rfl, hYX⟩ intro hv exact (Finset.mem_erase.mp (hYX hv)).1 rfl · intro R hR let T : Finset α := Finset.univ \ R have hTk : T.card = k := by have hh := Finset.card_sdiff_add_card_eq_card (Finset.subset_univ R) simp only [Finset.card_univ, hR, hn] at hh dsimp [T] omega let t : {T : Finset α // T.card = k} := ⟨T, hTk⟩ let v := g t have hvT : v ∈ T := hg t have hvR : v ∉ R := (Finset.mem_sdiff.mp hvT).2 refine ⟨v, hvR, ?_⟩ intro Y hY hYR obtain ⟨hYcard, _, X, hX, hfX, hYX⟩ := hY have hYX' : Y ⊆ X := hYX.trans (Finset.erase_subset _ _) have hd : Disjoint Y (X ∩ T) := by apply Finset.disjoint_left.mpr intro w hwY hwXT have hwT := (Finset.mem_inter.mp hwXT).2 exact (Finset.mem_sdiff.mp hwT).2 (hYR hwY) have hc : (Y ∪ (X ∩ T)).card ≤ X.card := Finset.card_le_card (Finset.union_subset hYX' Finset.inter_subset_left) rw [Finset.card_union_of_disjoint hd, hYcard, hX] at hc have hint : (X ∩ T).card ≤ r := by omega exact (hproper ⟨X, hX⟩ t hint) hfX