{
  "aliases": null,
  "backlinks": null,
  "body": "\n## Definition\n\nLet $M = (E, \\mathcal{I})$ be a [[matroid|PX31ZNYS3Z]].\nThe *rank function* of $M$ is the map $r \\colon \\mathcal{P}(E) \\to \\set{0, 1, 2, \\dots}$ given by\n$$r(A) = \\max \\set{\\abs{I} : I \\in \\mathcal{I}, \\ I \\subseteq A}.$$\nThe *rank* of $M$ is $r(E)$.\n\n## Remarks\n\nThe maximum exists because $\\emptyset \\subseteq A$ is independent.\nAll maximal independent subsets of $A$ have $r(A)$ elements, and $r(E)$ is the size of every [[basis|QTSQR7130G]] of $M$.\nA set $A$ is independent if and only if $r(A) = \\abs{A}$.\n\nThe rank function satisfies, for all $A, B \\subseteq E$:\n\n1. $0 \\le r(A) \\le \\abs{A}$.\n2. If $A \\subseteq B$, then $r(A) \\le r(B)$.\n3. $r(A \\cup B) + r(A \\cap B) \\le r(A) + r(B)$ (submodularity).\n\nConversely, every function with these three properties is the rank function of exactly one matroid.\n\nExample: for the matroid of the columns of a matrix, $r(A)$ is the [[rank|0ZC9YTXZRY]] of the submatrix formed by the columns in $A$.\nFor the graphic matroid of a graph with vertex set $V$, $r(A) = \\abs{V} - c(A)$, where $c(A)$ is the number of connected components of the graph $(V, A)$.\n\nNon-example: in the uniform matroid $U_{2,3}$, whose independent sets are the subsets of $\\set{1, 2, 3}$ with at most $2$ elements, the size function $A \\mapsto \\abs{A}$ is not the rank function, because $r(\\set{1, 2, 3}) = 2 \\ne 3$.\n",
  "commit": "547b6eddb8f2feb8d579f2d633d22a27b7e132fc",
  "front": {
    "defines": "SYRCTH853H",
    "kind": "definition",
    "msc": [
      "05B35"
    ],
    "name": "Matroid rank",
    "sources": [
      {
        "url": "https://en.wikipedia.org/wiki/Matroid_rank"
      }
    ],
    "tag": "55B7ZCDKS9",
    "uses": [
      "PX31ZNYS3Z",
      "QTSQR7130G"
    ]
  },
  "kind": "definition",
  "link": "https://math2.tamnd.com/node/55B7ZCDKS9/",
  "links": [
    {
      "field": "defines",
      "target": "SYRCTH853H"
    },
    {
      "field": "uses",
      "target": "PX31ZNYS3Z"
    },
    {
      "field": "uses",
      "target": "QTSQR7130G"
    }
  ],
  "markdown": "https://math2.tamnd.com/node/55B7ZCDKS9.md",
  "msc": [
    "05B35"
  ],
  "name": "Matroid rank",
  "prov": null,
  "role": "",
  "source": "https://github.com/tamnd/math2/blob/main/nodes/55B/55B7ZCDKS9.md",
  "status": null,
  "tag": "55B7ZCDKS9",
  "uri": "m2://55B7ZCDKS9",
  "url": "https://math2.tamnd.com/wiki/matroid-rank-definition/",
  "writing": {
    "tag": "55B7ZCDKS9",
    "kind": "definition",
    "level": "W0",
    "next": [
      {
        "what": "an inventory row",
        "note": "the row of the inventory that the node accounts for",
        "have": 0,
        "want": 1
      },
      {
        "what": "a source with a locator",
        "have": 0,
        "want": 1
      }
    ]
  }
}
