Counting Supersets of Two Fixed Subsets
ProvedFunctionalInequalities.Analysis.Tensor.card_filter_union_subset_modularThis 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.
Superseded upload. This snapshot was replaced by FunctionalInequalities.Analysis.Tensor.card_filter_union_subset_readable: open the readable replacement. The replacement preserves the frozen source and mathematical statement, with a compact declaration context. This historical node remains available for existing imports.
import Definitions.Def_KLSModular_FunctionalInequalities_Analysis_Tensor_Symmetrization
noncomputable section
open Finset
section
namespace FunctionalInequalities
end FunctionalInequalities
open FunctionalInequalities
section
namespace FunctionalInequalities.Analysis
end FunctionalInequalities.Analysis
open FunctionalInequalities FunctionalInequalities.Analysis
section
namespace FunctionalInequalities.Analysis.Tensor
end FunctionalInequalities.Analysis.Tensor
open FunctionalInequalities FunctionalInequalities.Analysis FunctionalInequalities.Analysis.Tensor
variable {Ω : Type*} [Fintype Ω] [DecidableEq Ω]
variable {V : Type*} [NormedAddCommGroup V] [InnerProductSpace ℝ V]
section SubsetSum
variable {α : Type*} [DecidableEq α]
theorem FunctionalInequalities.Analysis.Tensor.card_filter_union_subset_modular (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