{
  "aliases": null,
  "backlinks": null,
  "body": "\n## Definition\n\nLet $(A, \\le_A)$ and $(B, \\le_B)$ be [[partially ordered sets|011C29Q1S1]].\nThe lexicographic order on the [[Cartesian product|0C81YBVTWH]] $A \\times B$ is the relation $\\le$ with $(a, b) \\le (a', b')$ when\n$$a \u003c_A a' \\quad \\text{or} \\quad (a = a' \\text{ and } b \\le_B b').$$\n\n## Remarks\n\nIt is a partial order. When $\\le_A$ and $\\le_B$ are [[total orders|0316AYH1SC]], it is a total order.\nExample: in $\\mathbb{N} \\times \\mathbb{N}$, $(1, 5) \u003c (2, 0)$ and $(2, 0) \u003c (2, 3)$.\nA dictionary orders words in the same way, letter by letter.\n\n## Explanations\n\n### L1 human\n\nThe lexicographic order is the dictionary order.\n\"cat\" comes before \"cow\", because the first letters agree and \"a\" comes before \"o\".\n",
  "commit": "6ac761d40018146541484a9e8b9eafd6ecc303dc",
  "front": {
    "defines": "0B68KNPGCG",
    "kind": "definition",
    "msc": [
      "06A05"
    ],
    "name": "Lexicographic order",
    "sources": [
      {
        "locator": "Cartesian products",
        "url": "https://en.wikipedia.org/wiki/Lexicographic_order"
      }
    ],
    "tag": "0G77XFBV00",
    "uses": [
      "011C29Q1S1",
      "0C81YBVTWH"
    ]
  },
  "kind": "definition",
  "link": "https://math2.tamnd.com/node/0G77XFBV00/",
  "links": [
    {
      "field": "defines",
      "target": "0B68KNPGCG"
    },
    {
      "field": "uses",
      "target": "011C29Q1S1"
    },
    {
      "field": "uses",
      "target": "0C81YBVTWH"
    }
  ],
  "markdown": "https://math2.tamnd.com/node/0G77XFBV00.md",
  "msc": [
    "06A05"
  ],
  "name": "Lexicographic order",
  "prov": null,
  "role": "",
  "source": "https://github.com/tamnd/math2/blob/main/nodes/0G7/0G77XFBV00.md",
  "status": null,
  "tag": "0G77XFBV00",
  "uri": "m2://0G77XFBV00",
  "url": "https://math2.tamnd.com/wiki/lexicographic-order-definition/",
  "writing": {
    "tag": "0G77XFBV00",
    "kind": "definition",
    "level": "W1",
    "next": [
      {
        "what": "edge instance_of in",
        "note": "one example",
        "have": 0,
        "want": 1
      },
      {
        "what": "edge not_instance_of in",
        "note": "one non-example that fails one clause",
        "have": 0,
        "want": 1
      }
    ]
  }
}
