Documentation

HexDeterminant.Enumeration

Enumerate the permutations of Fin n as length-n vectors.

Equations
Instances For

    Count inversions in a permutation written as a list.

    Equations
    Instances For
      theorem Hex.Matrix.permutationVectors_complete {n : Nat} {perm : Vector (Fin n) n} (hnodup : perm.toList.Nodup) :

      Every duplicate-free length-n vector of Fin n appears in permutationVectors n. This gives the completeness half of the local permutation enumeration used by the Leibniz determinant.

      theorem Hex.Matrix.permutationVectors_nodup {n : Nat} {perm : Vector (Fin n) n} (hmem : perm permutationVectors n) :

      Every vector enumerated by permutationVectors n is duplicate-free, so each listed vector really represents a permutation of Fin n.

      The permutation enumeration itself has no duplicate vectors. This lets determinant proofs compare sums over permutationVectors by list permutation rather than by quotienting repeated terms.