Double countings #
This file gathers a few double counting arguments.
Bipartite graphs #
In a bipartite graph (considered as a relation r : α → β → Prop), we can bound the number of edges
between s : Finset α and t : Finset β by the minimum/maximum of edges over all a ∈ s times the
size of s. Similarly for t. Combining those two yields inequalities between the sizes of s
and t.
bipartiteBelow:s.bipartiteBelow r bare the elements ofsbelowbwrt tor. Its size is the number of edges ofbins.bipartiteAbove:t.bipartite_Above r aare the elements oftaboveawrt tor. Its size is the number of edges ofaint.card_mul_le_card_mul,card_mul_le_card_mul': Double counting the edges of a bipartite graph from below and from above.card_mul_eq_card_mul: Equality combination of the previous.
Bipartite graph #
Elements of s which are "below" b according to relation r.
Equations
- Finset.bipartiteBelow r s b = Finset.filter (fun (a : α) => r a b) s
Instances For
Elements of t which are "above" a according to relation r.
Equations
- Finset.bipartiteAbove r t a = Finset.filter (fun (b : β) => r a b) t
Instances For
Double counting argument.
Considering r as a bipartite graph, the LHS is a lower bound on the number of edges while the RHS
is an upper bound.
Double counting argument.
Considering r as a bipartite graph, the LHS is a lower bound on the number of edges while the RHS
is an upper bound.
Double counting argument.
Considering r as a bipartite graph, the LHS is a strict lower bound on the number of edges while
the RHS is an upper bound.
Double counting argument.
Considering r as a bipartite graph, the LHS is a lower bound on the number of edges while the RHS
is a strict upper bound.
Double counting argument.
Considering r as a bipartite graph, the LHS is a strict lower bound on the number of edges while
the RHS is an upper bound.
Double counting argument.
Considering r as a bipartite graph, the LHS is a lower bound on the number of edges while the RHS
is a strict upper bound.
Double counting argument.
Considering r as a bipartite graph, the LHS is a lower bound on the number of edges while the RHS
is an upper bound.