The Hamiltonian cycle sum of a matrix #
The Hamiltonian cycle sum of a square matrix M over a commutative semiring is
∑ σ, ∏ i, M i (σ i), the sum over the permutations σ that are one cycle through all indices.
Read M i j as the weight of the edge from i to j of a complete directed graph; the sum is
then the total weight of its Hamiltonian cycles. Like the permanent, which sums over all
permutations, it is unchanged by renaming the indices (hamiltonianCycleSum_submatrix_equiv)
and commutes with ring homomorphisms. Over Fin (k + 1), a cycle through all indices is the order
in which it visits them from 0 on (hamiltonianCycleSum_eq_sum_orders).
Main definitions #
Matrix.hamiltonianCycleSum: the Hamiltonian cycle sum.
Main results #
RingHom.map_hamiltonianCycleSum,AlgHom.map_hamiltonianCycleSum: compatibility with homomorphisms.Matrix.hamiltonianCycleSum_submatrix_equiv: invariance under renaming the indices.Matrix.hamiltonianCycleSum_eq_sum_orders: the sum over the orders that start at0.
References #
The Hamiltonian cycle sum of a square matrix: the sum, over the permutations σ that form a
single cycle through all indices, of ∏ i, M i (σ i).
Applying a ring homomorphism to the Hamiltonian cycle sum of a matrix is the Hamiltonian cycle sum of the mapped matrix.
Applying an algebra homomorphism to the Hamiltonian cycle sum of a matrix is the Hamiltonian cycle sum of the mapped matrix.
Renaming the indices of a square matrix does not change its Hamiltonian cycle sum.
A Hamiltonian cycle is an order of the indices. Over Fin (k + 1), every cycle through
all indices visits them in exactly one order π with π 0 = 0, and the cycle sends π i to
π (i + 1).