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 ofsbelowbw.r.t.r. Its size is the number of edges ofbins.bipartiteAbove:t.bipartite_Above r aare the elements oftaboveaw.r.t.r. 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.
Implementation notes #
For the formulation of double-counting arguments where a bipartite graph is considered as a
bipartite simple graph G : SimpleGraph V, see Mathlib/Combinatorics/SimpleGraph/Bipartite.lean.
Bipartite graph #
Elements of s which are "below" b according to relation r.
Equations
- Finset.bipartiteBelow r s b = {a ∈ s | r a b}
Instances For
Elements of t which are "above" a according to relation r.
Equations
- Finset.bipartiteAbove r t a = {b ∈ t | r a b}
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.