'The minimum element moved by the permutation.
Examples
>>> from sympy.combinatorics.permutations import Permutation
>>> p = Permutation([0, 1, 4, 3, 2])
>>> p.min()
2
See Also
max, descents, ascents, inversions'

def min(self):

    a = self.array_form
    min = len(a)
    for i in range(len(a)):
        if ((a[i] != i) and (a[i] < min)):
            min = a[i]
    return min
