AFTD Auto-Formalizing Theoretical Domains

op861_unbalanced_selectors_hypergraph_iff

theoremverified

For 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 avoidance system.

Statement

theorem op861_unbalanced_selectors_hypergraph_iff
    (α : 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} → α),
      (∀ X, f X ∈ X.1) ∧ (∀ T, g T ∈ T.1) ∧
      ∀ 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
Built on 2
Used by 1

The proof, explained

The theorem establishes that on a ground set of cardinality $k + r + s$, having proper selector functions for $(r+s+1)$-sets and $k$-sets is logically equivalent to the existence of a certain uniform hypergraph coverage and avoidance system. The proof splits the bi-implication into two directions and dispatches each one directly using previously proved implications: `op861_unbalanced_selectors_imply_hypergraph_cover` for the forward direction and `op861_hypergraph_cover_implies_unbalanced_selectors` for the reverse direction.

  1. The forward implication holds: the existence of proper selectors implies the existence of the hypergraph covering system.

    We split the bi-implication into its two directions. For the forward direction, we assume selector functions $f$ and $g$ satisfying the validity conditions ($f(X) \in X$, $g(T) \in T$) and properness ($f(X) \neq g(T)$ whenever $|X \cap T| \le r$). Applying `op861_unbalanced_selectors_imply_hypergraph_cover` directly provides the relation $H$ satisfying the uniform size, vertex exclusion, coverage, and avoidance conditions.

    lines 14–16

    uses op861_unbalanced_selectors_imply_hypergraph_cover

      constructor
      · rintro ⟨f, g, hf, hg, hproper⟩
        exact op861_unbalanced_selectors_imply_hypergraph_cover α k r s hn f g hf hg hproper
  2. The reverse implication holds: the hypergraph covering system implies the existence of proper selectors, completing the equivalence.

    For the backward direction, we unpack the hypergraph relation $H$ and its coverage and avoidance hypotheses. Applying `op861_hypergraph_cover_implies_unbalanced_selectors` constructs the required selector functions $f$ and $g$.

    lines 17–18

    uses op861_hypergraph_cover_implies_unbalanced_selectors

      · rintro ⟨H, _, hcover, havoid⟩
        exact op861_hypergraph_cover_implies_unbalanced_selectors α k r s hn H hcover havoid
op861_unbalanced_selectors_imply_hypergraph_cover
Given a finite universe of size $k+r+s$ and valid selector functions $f$ on $(r+s+1)$-subsets and $g$ on $k$-subsets avoiding collisions whenever their inputs intersect in at most $r$ elements, there exists a hypergraph relation $H$ whose edges have size $s+1$ and avoid the assigned vertex, and which satisfies the coverage condition on $(r+s+1)$-sets and avoidance condition on $(r+s)$-sets.
op861_hypergraph_cover_implies_unbalanced_selectors
Given a finite universe of size $k+r+s$ and a relation $H$ satisfying the coverage condition on $(r+s+1)$-subsets and avoidance condition on $(r+s)$-subsets, there exist valid selector functions $f$ on $(r+s+1)$-sets and $g$ on $k$-sets that never collide whenever their domains intersect in at most $r$ elements.

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

theorem op861_unbalanced_selectors_hypergraph_iff    (α : 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} → α),      (∀ X, f X ∈ X.1) ∧ (∀ T, g T ∈ T.1) ∧      ∀ 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  constructor  · rintro ⟨f, g, hf, hg, hproper⟩    exact op861_unbalanced_selectors_imply_hypergraph_cover α k r s hn f g hf hg hproper  · rintro ⟨H, _, hcover, havoid⟩    exact op861_hypergraph_cover_implies_unbalanced_selectors α k r s hn H hcover havoid
See it in the graphDiscuss this resultChallenge it