def monomial_min(*monoms):
    M = list(monoms[0])

    for N in monoms[1:]:
        for i, n in enumerate(N):
            M[i] = min(M[i], n)

    return tuple(M)
Returns minimal degree for each variable in a set of monomials.
dataset/ETHPy150Open sympy/sympy/sympy/polys/monomials.py/monomial_min