5 | %language ElabReflection
29 | ||| Computes the parity of a permutation, that is, the number
30 | ||| of swaps required to convert the given list into an ordered
31 | ||| list.
32 | |||
33 | ||| Note: The list is expected to hold no duplicates
34 | export
39 | ||| Tests if the given two permutations have the same parity.
40 | |||
41 | ||| Does not verify if the two lists are actually permutations of
42 | ||| the same sequence.
43 | export