op1957_odd_group_intersection_defect_bound
For disjoint odd finite groups, the number of groups is at most the number with odd intersection with B plus the number of pool vertices outside B.
Statement
theorem op1957_odd_group_intersection_defect_bound {V I : Type*} [DecidableEq V] [DecidableEq I] (B : Finset V) (K : Finset I) (T : I → Finset V) (hTT : ∀ i ∈ K, ∀ j ∈ K, i ≠ j → Disjoint (T i) (T j)) (hodd : ∀ i ∈ K, Odd (T i).card) : K.card ≤ (K.filter (fun i => Odd ((T i) ∩ B).card)).card + (K.biUnion T \ B).card
- Source
- OP-1957: one-defect boundary graph-to-count transfer, arXiv:2611.22690
- Verified
- 29 Nov 2026
- Axioms
Classical.choiceQuot.soundpropext- Built on 1
- pairwise_disjoint_nonempty_groups_card_boundIn a pairwise-disjoint finite family of nonempty finite sets, each chosen set has at most the size of the union minus the number of other…
- Used by 1
- op1957_factorcritical_general_group_defect_boundUnder the displayed factor-critical block and anticomplete shore hypotheses, the number of odd groups plus the first-shore odd indicator…
The proof, explained
We partition the index set K into groups E whose intersection with B is odd and groups H whose intersection with B is even (not odd). Because each group T(i) has odd size, those with even intersection with B must have at least one element outside B, meaning F(i) = T(i) \\ B is nonempty for all i ∈ H. The sets F(i) are pairwise disjoint and contained in (⋃_{i ∈ K} T(i)) \\ B, which bounds |H| by the size of that difference set. Since |K| = |E| + |H|, the desired inequality |K| ≤ |E| + |(⋃_{i ∈ K} T(i)) \\ B| follows immediately.
Partition K into the set E of indices with odd intersection with B and the set H of indices with even intersection with B, and define F(i) = T(i) \\ B.
We partition the index set K into subsets E = {i ∈ K | |T(i) ∩ B| is odd} and H = {i ∈ K | |T(i) ∩ B| is not odd}. By definition of filtering, H is a subset of K. For each index i, we let F(i) = T(i) \\ B denote the part of the group outside B.
uses
Finset.filter_subsetclassical let E := K.filter (fun i => Odd ((T i) ∩ B).card) let H := K.filter (fun i => ¬ Odd ((T i) ∩ B).card) let F : I → Finset V := fun i => T i \ B have hHK : H ⊆ K := Finset.filter_subset _ _
For every index i ∈ H, the set F(i) is nonempty.
Suppose, for contradiction, that F(i) = T(i) \\ B is empty. Then T(i) ⊆ B, which implies T(i) ∩ B = T(i). But |T(i)| is odd by hypothesis, so |T(i) ∩ B| would be odd, contradicting the assumption that i ∈ H. Therefore, F(i) must be nonempty.
uses
Finset.mem_filter.mp,Finset.not_nonempty_iff_eq_empty.mp,Finset.sdiff_eq_empty_iff_subset.mp,Finset.inter_eq_left.mprhave hne : ∀ i ∈ H, (F i).Nonempty := by intro i hi have hn := (Finset.mem_filter.mp hi).2 by_contra h have hzero : F i = ∅ := Finset.not_nonempty_iff_eq_empty.mp h have hsub : T i ⊆ B := Finset.sdiff_eq_empty_iff_subset.mp hzero have heq : T i ∩ B = T i := Finset.inter_eq_left.mpr hsub apply hn rw [heq] exact hodd i (hHK hi)
For distinct indices i, j ∈ H, the sets F(i) and F(j) are disjoint.
Because F(i) ⊆ T(i) and F(j) ⊆ T(j), the disjointness of T(i) and T(j) implies that their subsets F(i) and F(j) are also disjoint.
uses
Finset.disjoint_of_subset_left,Finset.sdiff_subset,Finset.disjoint_of_subset_righthave hdis : ∀ i ∈ H, ∀ j ∈ H, i ≠ j → Disjoint (F i) (F j) := by intro i hi j hj hij exact Finset.disjoint_of_subset_left Finset.sdiff_subset (Finset.disjoint_of_subset_right Finset.sdiff_subset (hTT i (hHK hi) j (hHK hj) hij))
The union of F(i) over i ∈ H is a subset of (⋃_{i ∈ K} T(i)) \\ B.
Any element z in ⋃_{i ∈ H} F(i) belongs to F(i) = T(i) \\ B for some i ∈ H. Since H ⊆ K, z belongs to T(i) ⊆ ⋃_{i ∈ K} T(i), and z ∉ B, so z ∈ (⋃_{i ∈ K} T(i)) \\ B.
uses
Finset.mem_biUnion.mp,Finset.mem_sdiff.mp,Finset.mem_sdiff.mpr,Finset.mem_biUnion.mprhave hsub : H.biUnion F ⊆ K.biUnion T \ B := by intro z hz obtain ⟨i,hi,hzi⟩ := Finset.mem_biUnion.mp hz have hzi' := Finset.mem_sdiff.mp hzi exact Finset.mem_sdiff.mpr ⟨Finset.mem_biUnion.mpr ⟨i,hHK hi,hzi'.1⟩,hzi'.2⟩
The number of groups with even intersection satisfies |H| ≤ |(⋃_{i ∈ K} T(i)) \\ B|.
If H is empty, |H| = 0, which is trivially at most the cardinality of any set. If H is nonempty, choose any j ∈ H. By the bound for pairwise disjoint nonempty sets, |F(j)| + |H| ≤ |⋃_{i ∈ H} F(i)| + 1. Since F(j) is nonempty, |F(j)| ≥ 1, which implies |H| ≤ |⋃_{i ∈ H} F(i)|. Since ⋃_{i ∈ H} F(i) is a subset of (⋃_{i ∈ K} T(i)) \\ B, its cardinality is at most |(⋃_{i ∈ K} T(i)) \\ B|, establishing the bound.
uses
pairwise_disjoint_nonempty_groups_card_bound,Finset.card_pos.mpr,Finset.card_le_card,Finset.not_nonempty_iff_eq_empty.mphave hHcard : H.card ≤ (K.biUnion T \ B).card := by by_cases hh : H.Nonempty · obtain ⟨j,hj⟩ := hh have hr := pairwise_disjoint_nonempty_groups_card_bound H F j hj hdis hne have hp := Finset.card_pos.mpr (hne j hj) have hs := Finset.card_le_card hsub omega · have he : H = ∅ := Finset.not_nonempty_iff_eq_empty.mp hh simp [he]
The total number of groups satisfies |K| ≤ |E| + |(⋃_{i ∈ K} T(i)) \\ B|.
Because E and H partition K, we have |K| = |E| + |H|. Combining this identity with the bound |H| ≤ |(⋃_{i ∈ K} T(i)) \\ B| completes the proof by linear arithmetic.
uses
Finset.card_filter_add_card_filter_nothave heq : E.card+H.card=K.card := by exact Finset.card_filter_add_card_filter_not (s:=K) (fun i => Odd ((T i) ∩ B).card) change K.card ≤ E.card + (K.biUnion T \ B).card omega
Finset.filter_subset- Filtering a finite set by a predicate produces a subset of the original set.
Finset.mem_filter.mp- An element belongs to a filtered set if and only if it belongs to the base set and satisfies the predicate.
Finset.not_nonempty_iff_eq_empty.mp- A finite set that is not nonempty is empty.
Finset.sdiff_eq_empty_iff_subset.mp- If the set difference s \\ t is empty, then s is a subset of t.
Finset.inter_eq_left.mpr- If s is a subset of t, their intersection s ∩ t is s.
Finset.disjoint_of_subset_left- If a subset of a set is disjoint from another set, the subset is also disjoint from it.
Finset.sdiff_subset- The set difference s \\ t is a subset of s.
Finset.disjoint_of_subset_right- If a set is disjoint from a larger set, it is also disjoint from any subset of that larger set.
Finset.mem_biUnion.mp- An element of an indexed union belongs to at least one component set.
Finset.mem_sdiff.mp- An element of s \\ t belongs to s and does not belong to t.
Finset.mem_sdiff.mpr- An element belonging to s and not to t belongs to s \\ t.
Finset.mem_biUnion.mpr- An element belonging to any component set belongs to the indexed union.
pairwise_disjoint_nonempty_groups_card_bound- For pairwise disjoint nonempty sets indexed by I, the cardinality of any component plus |I| is at most the cardinality of their union plus 1.
Finset.card_pos.mpr- A nonempty finite set has strictly positive cardinality.
Finset.card_le_card- A subset has cardinality at most that of the superset.
Finset.card_filter_add_card_filter_not- The number of elements in a finite set satisfying a predicate plus the number not satisfying it equals the total cardinality of the set.
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 op1957_odd_group_intersection_defect_bound {V I : Type*} [DecidableEq V] [DecidableEq I] (B : Finset V) (K : Finset I) (T : I → Finset V) (hTT : ∀ i ∈ K, ∀ j ∈ K, i ≠ j → Disjoint (T i) (T j)) (hodd : ∀ i ∈ K, Odd (T i).card) : K.card ≤ (K.filter (fun i => Odd ((T i) ∩ B).card)).card + (K.biUnion T \ B).card := by classical let E := K.filter (fun i => Odd ((T i) ∩ B).card) let H := K.filter (fun i => ¬ Odd ((T i) ∩ B).card) let F : I → Finset V := fun i => T i \ B have hHK : H ⊆ K := Finset.filter_subset _ _ have hne : ∀ i ∈ H, (F i).Nonempty := by intro i hi have hn := (Finset.mem_filter.mp hi).2 by_contra h have hzero : F i = ∅ := Finset.not_nonempty_iff_eq_empty.mp h have hsub : T i ⊆ B := Finset.sdiff_eq_empty_iff_subset.mp hzero have heq : T i ∩ B = T i := Finset.inter_eq_left.mpr hsub apply hn rw [heq] exact hodd i (hHK hi) have hdis : ∀ i ∈ H, ∀ j ∈ H, i ≠ j → Disjoint (F i) (F j) := by intro i hi j hj hij exact Finset.disjoint_of_subset_left Finset.sdiff_subset (Finset.disjoint_of_subset_right Finset.sdiff_subset (hTT i (hHK hi) j (hHK hj) hij)) have hsub : H.biUnion F ⊆ K.biUnion T \ B := by intro z hz obtain ⟨i,hi,hzi⟩ := Finset.mem_biUnion.mp hz have hzi' := Finset.mem_sdiff.mp hzi exact Finset.mem_sdiff.mpr ⟨Finset.mem_biUnion.mpr ⟨i,hHK hi,hzi'.1⟩,hzi'.2⟩ have hHcard : H.card ≤ (K.biUnion T \ B).card := by by_cases hh : H.Nonempty · obtain ⟨j,hj⟩ := hh have hr := pairwise_disjoint_nonempty_groups_card_bound H F j hj hdis hne have hp := Finset.card_pos.mpr (hne j hj) have hs := Finset.card_le_card hsub omega · have he : H = ∅ := Finset.not_nonempty_iff_eq_empty.mp hh simp [he] have heq : E.card+H.card=K.card := by exact Finset.card_filter_add_card_filter_not (s:=K) (fun i => Odd ((T i) ∩ B).card) change K.card ≤ E.card + (K.biUnion T \ B).card omega