Counting Supersets of Two Fixed Subsets
ProvedFunctionalInequalities.Analysis.Tensor.card_filter_union_subset_readableThis is a finite-set counting identity for two fixed subsets of equal size.
Let be a type with decidable equality, let be a finite subset of , and let be a natural number. Assume:
- .
- and are -element subsets of .
Then the number of -element subsets of that contain is
The statement provides a reusable combinatorial count for supersets of a union of two -element subsets, parameterized by the size of their intersection.
Formalization Note The finite-set families are represented by Finset.powersetCard and filtered using Finset.filter; the binomial coefficient is Nat.choose.
Original Lean declaration header
Within namespace FunctionalInequalities.Analysis.Tensor. Shown in its original module context. Proof omitted.
theorem card_filter_union_subset (U : Finset α) {d : ℕ} (hU : U.card = 3 * d) {F F' : Finset α}
(hF : F ∈ U.powersetCard d) (hF' : F' ∈ U.powersetCard d) :
((U.powersetCard (2 * d)).filter fun E => F ∪ F' ⊆ E).card =
(d + (F ∩ F').card).choose d
Module navigation
Module: Analysis/Tensor/Symmetrization.
Next: sum_choose_mul_card_filter_subset.
Source excerpt, lines 64–67 · Frozen source 408915f.
import Definitions.Def_KLSModular_FunctionalInequalities_Analysis_Tensor_Symmetrization
variable {α : Type*} [DecidableEq α]
theorem FunctionalInequalities.Analysis.Tensor.card_filter_union_subset_readable (U : Finset α) {d : ℕ} (hU : U.card = 3 * d) {F F' : Finset α}
(hF : F ∈ U.powersetCard d) (hF' : F' ∈ U.powersetCard d) :
((U.powersetCard (2 * d)).filter fun E => F ∪ F' ⊆ E).card =
(d + (F ∩ F').card).choose d := by sorry