# Matroid rank

In the mathematical theory of matroids, the rank of a matroid is the maximum size of an independent set in the matroid. The rank of a subset S of elements of the matroid is, similarly, the maximum size of an independent subset of S, and the rank function of the matroid maps sets of elements to their ranks.

The rank function is one of the fundamental concepts of matroid theory via which matroids may be axiomatized. The rank functions of matroids form an important subclass of the submodular set functions, and the rank functions of the matroids defined from certain other types of mathematical object such as undirected graphs, matrices, and field extensions are important within the study of those objects.

## Properties and axiomatization

The rank function of a matroid obeys the following properties.

• The value of the rank function is always a non-negative integer.
• For any two subsets $A$ and $B$ of $E$, $r(A\cup B)+r(A\cap B)\le r(A)+r(B)$. That is, the rank is a submodular function.
• For any set $A$ and element $x$, $r(A)\le r(A\cup\{x\})\le r(A)+1$. From the first of these two inequalities it follows more generally that, if $A\subset B\subset E$, then $r(A)\leq r(B)\leq r(E)$. That is, the rank is a monotonic function.

These properties may be used as axioms to characterize the rank function of matroids: every integer-valued submodular function on the subsets of a finite set that obeys the inequalities $r(A)\le r(A\cup\{x\})\le r(A)+1$ for all $A$ and $x$ is the rank function of a matroid.[1][2]

## Other matroid properties from rank

The rank function may be used to determine the other important properties of a matroid:

• A set is independent if and only if its rank equals its cardinality, and dependent if and only if it has greater cardinality than rank.[3]
• A nonempty set is a circuit if its rank equals one plus its cardinality and every subset formed by removing one element from the set has equal rank.[3]
• A set is a basis if its rank equals both its cardinality and the rank of the matroid.[3]
• A set is closed if it is maximal for its rank, in the sense that there does not exist another element that can be added to it while maintaining the same rank.
• The difference $|A|-r(A)$ is called the nullity or corank of the subset $A$. It is the minimum number of elements that must be removed from $A$ to obtain an independent set.[4]

## Ranks of special matroids

In graph theory, the circuit rank (or cyclomatic number) of a graph is the corank of the associated graphic matroid; it measures the minimum number of edges that must be removed from the graph to make the remaining edges form a forest.[5] Several authors have studied the parameterized complexity of graph algorithms parameterized by this number.[6][7]

In linear algebra, the rank of a linear matroid defined by linear independence from the columns of a matrix is the rank of the matrix,[8] and it is also the dimension of the vector space spanned by the columns.

In abstract algebra, the rank of a matroid defined from sets of elements in a field extension L/K by algebraic independence is known as the transcendence degree.[9]