AFTD Auto-Formalizing Theoretical Domains

two_exceptional_groups_and_block_pool

theoremverified

For a pairwise disjoint family of nonempty finite sets with at most two members meeting the complement of B, split its indices into B-only groups and two possibly empty exceptional slots. The slots and B-only groups are disjoint, the number of occupied slots plus B-only groups is the original count, and the B-only union has at least as many vertices as groups.

Statement

theorem two_exceptional_groups_and_block_pool
    {I V : Type*} [DecidableEq I] [DecidableEq V]
    (K : Finset I) (F : I → Finset V) (B : Finset V)
    (hne : ∀ i ∈ K, (F i).Nonempty)
    (hdis : ∀ i ∈ K, ∀ j ∈ K, i ≠ j → Disjoint (F i) (F j))
    (houtside : (K.filter (fun i => (F i \ B).Nonempty)).card ≤ 2) :
    ∃ J ⊆ K, ∃ P Q : Finset V,
      (∀ i ∈ J, F i ⊆ B) ∧
      (P = ∅ ∨ ∃ i ∈ K \ J, P = F i) ∧
      (Q = ∅ ∨ ∃ i ∈ K \ J, Q = F i) ∧
      (∀ i ∈ K \ J, F i = P ∨ F i = Q) ∧
      Disjoint P Q ∧
      (∀ i ∈ J, Disjoint (F i) P ∧ Disjoint (F i) Q) ∧
      J.card + (if P.Nonempty then 1 else 0) +
        (if Q.Nonempty then 1 else 0) = K.card ∧
      J.card ≤ (J.biUnion F).card
Source
OP-1957; grouping the saturated barrier reservoir into at most two exceptional groups and a B-only pool.
Verified
27 Nov 2026
Axioms
Classical.choiceQuot.soundpropext
Built on 3
Used by 3

The proof, explained

The argument reduces directly to op1957_two_exceptional_groups_exact_block_pool, which decomposes the index set into sets entirely within B and at most two exceptional sets. That lemma provides the subcollection J, the exceptional sets P and Q, and verifies all the disjointness and cardinality conditions. The proof simply instantiates that result and discards its unused extra conclusion that every non-B block meets the complement of B.

  1. The family (F i)_{i ∈ K} decomposes into a subcollection J ⊆ K of sets contained in B and two disjoint exceptional sets P, Q satisfying the required disjointness and cardinality relations.

    We apply the decomposition lemma op1957_two_exceptional_groups_exact_block_pool to K, F, and B under the hypotheses that the sets are nonempty, pairwise disjoint, and at most two meet the complement of B. This supplies the witness index set J, the sets P and Q, and all required disjointness and size properties; the proof packages these witnesses to satisfy the existential goal, discarding only the lemma's additional conclusion that every set indexed by K \ J intersects the complement of B.

    lines 17–19

    uses op1957_two_exceptional_groups_exact_block_pool

      obtain ⟨J,hJK,P,Q,hJB,_,hP,hQ,hslots,hPQ,hJPQ,hcount,hbound⟩ :=
        op1957_two_exceptional_groups_exact_block_pool K F B hne hdis houtside
      exact ⟨J,hJK,P,Q,hJB,hP,hQ,hslots,hPQ,hJPQ,hcount,hbound⟩
op1957_two_exceptional_groups_exact_block_pool
Given a family of nonempty pairwise disjoint finite sets (F i) for i ∈ K where at most two sets meet the complement of B, there exist a subset J ⊆ K and two disjoint sets P, Q such that every F i for i ∈ J is contained in B, every remaining F i meets the complement of B and equals P or Q, P and Q are disjoint from each F i for i ∈ J, |J| + (if P is nonempty then 1 else 0) + (if Q is nonempty then 1 else 0) = |K|, and |J| ≤ |⋃_{i ∈ J} F i|.

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 two_exceptional_groups_and_block_pool    {I V : Type*} [DecidableEq I] [DecidableEq V]    (K : Finset I) (F : I → Finset V) (B : Finset V)    (hne : ∀ i ∈ K, (F i).Nonempty)    (hdis : ∀ i ∈ K, ∀ j ∈ K, i ≠ j → Disjoint (F i) (F j))    (houtside : (K.filter (fun i => (F i \ B).Nonempty)).card ≤ 2) :    ∃ J ⊆ K, ∃ P Q : Finset V,      (∀ i ∈ J, F i ⊆ B) ∧      (P = ∅ ∨ ∃ i ∈ K \ J, P = F i) ∧      (Q = ∅ ∨ ∃ i ∈ K \ J, Q = F i) ∧      (∀ i ∈ K \ J, F i = P ∨ F i = Q) ∧      Disjoint P Q ∧      (∀ i ∈ J, Disjoint (F i) P ∧ Disjoint (F i) Q) ∧      J.card + (if P.Nonempty then 1 else 0) +        (if Q.Nonempty then 1 else 0) = K.card ∧      J.card ≤ (J.biUnion F).card := by  obtain ⟨J,hJK,P,Q,hJB,_,hP,hQ,hslots,hPQ,hJPQ,hcount,hbound⟩ :=    op1957_two_exceptional_groups_exact_block_pool K F B hne hdis houtside  exact ⟨J,hJK,P,Q,hJB,hP,hQ,hslots,hPQ,hJPQ,hcount,hbound⟩
See it in the graphDiscuss this resultChallenge it