The Möbius function of the lattice of graphs on a fixed vertex set #
The simple graphs on a finite vertex set V form a Boolean lattice, isomorphic through the edge
set to the lattice of subsets of the non-diagonal pairs Sym2 V. Its Möbius function is therefore
the signed count (-1)^{e(H) - e(F)} on an interval [F, H], where e(·) counts edges. The two
lemmas here are the cancellation laws that drive Möbius inversion over graphs, as in the transform
between a graph parameter and its "contains exactly" coefficients.
Main results #
SimpleGraph.sum_neg_one_pow_ncard_edgeSet_sub_left— the signed sum∑_{F ≤ G ≤ H} (-1)^{e(G) - e(F)}is1ifF = Hand0otherwise;SimpleGraph.sum_neg_one_pow_ncard_edgeSet_sub_right— the same for(-1)^{e(H) - e(G)}.
They are the graph counterparts of Finset.sum_Icc_neg_one_pow_card_sub_card_left and
Finset.sum_Icc_neg_one_pow_card_sub_card_right, to which
SimpleGraph.sum_filter_le_le_eq_sum_Icc_edgeFinset identifies them.
In matrix form, the two cancellation laws say that the zeta matrix Z(G, H) = [G ≤ H] of the
lattice and its Möbius matrix M(G, H) = [G ≤ H] (-1)^{e(H) - e(G)} are inverse to each other,
on either side. Expanding a function of graphs in the "contains" basis is multiplication by Z,
and recovering its "contains exactly" coefficients is multiplication by M.
Main definitions #
SimpleGraph.zetaMatrix— the zeta matrix of the lattice of graphs onV;SimpleGraph.mobiusMatrix— its Möbius matrix.
Main results #
SimpleGraph.mobiusMatrix_mul_zetaMatrixandSimpleGraph.zetaMatrix_mul_mobiusMatrix— the two matrices are inverse to each other.
The Möbius function of the lattice of graphs, measured from the bottom. The signed sum
∑_{F ≤ G ≤ H} (-1)^{e(G) - e(F)} is 1 if F = H and 0 otherwise.
The Möbius function of the lattice of graphs, measured from the top. The signed sum
∑_{F ≤ G ≤ H} (-1)^{e(H) - e(G)} is 1 if F = H and 0 otherwise.
The zeta and Möbius matrices #
The zeta matrix of the lattice of graphs on V: its (G, H) entry is 1 when G ≤ H and
0 otherwise.
Equations
- SimpleGraph.zetaMatrix V R = Matrix.of fun (G H : SimpleGraph V) => if G ≤ H then 1 else 0
Instances For
The Möbius matrix of the lattice of graphs on V: its (G, H) entry is the Möbius function
(-1)^{e(H) - e(G)} of the interval [G, H] when G ≤ H, and 0 otherwise. It is the inverse
of SimpleGraph.zetaMatrix.
Equations
Instances For
The entries of the zeta matrix.
Möbius inversion, matrix form. The Möbius matrix is a left inverse of the zeta matrix: this
is the cancellation law SimpleGraph.sum_neg_one_pow_ncard_edgeSet_sub_left.
Möbius inversion, matrix form. The Möbius matrix is a right inverse of the zeta matrix: this
is the cancellation law SimpleGraph.sum_neg_one_pow_ncard_edgeSet_sub_right.