{
  "aliases": null,
  "backlinks": null,
  "body": "\n## Proof\n\n1. A [[tree|0MJ0JS72DZ]] $T$ is [[acyclic|0XNN9Z8E5A]], so it has no cycle at all.\n2. In particular, $T$ has no cycle of odd length.\n3. By the theorem that [[a graph is bipartite iff it has no odd cycle|01R1HPEK6S]], $T$ is [[bipartite|07DVHJ8N0A]].\n\n## Idea\n\nThe only obstruction to splitting the vertices into two sides is an odd cycle. A tree has no cycles, so nothing can go wrong. Concretely, colour each vertex by the parity of its distance to a fixed root.\n",
  "commit": "4a3290d299c8b2cd6493fce2296920ba7f82d942",
  "front": {
    "kind": "proof",
    "msc": [
      "05C05"
    ],
    "name": "Proof that trees are bipartite",
    "proves": "0BN2A6EBYA",
    "sources": [
      {
        "locator": "Examples",
        "url": "https://en.wikipedia.org/wiki/Bipartite_graph"
      }
    ],
    "tag": "KRHWPPEZZ5",
    "uses": [
      "0MJ0JS72DZ",
      "0XNN9Z8E5A",
      "07DVHJ8N0A",
      "01R1HPEK6S"
    ]
  },
  "kind": "proof",
  "link": "https://math2.tamnd.com/node/KRHWPPEZZ5/",
  "links": [
    {
      "field": "proves",
      "target": "0BN2A6EBYA"
    },
    {
      "field": "uses",
      "target": "0MJ0JS72DZ"
    },
    {
      "field": "uses",
      "target": "0XNN9Z8E5A"
    },
    {
      "field": "uses",
      "target": "07DVHJ8N0A"
    },
    {
      "field": "uses",
      "target": "01R1HPEK6S"
    }
  ],
  "markdown": "https://math2.tamnd.com/node/KRHWPPEZZ5.md",
  "msc": [
    "05C05"
  ],
  "name": "Proof that trees are bipartite",
  "prov": null,
  "role": "",
  "source": "https://github.com/tamnd/math2/blob/main/nodes/KRH/KRHWPPEZZ5.md",
  "status": null,
  "tag": "KRHWPPEZZ5",
  "uri": "m2://KRHWPPEZZ5",
  "url": "https://math2.tamnd.com/wiki/proof-that-trees-are-bipartite/",
  "writing": {
    "tag": "KRHWPPEZZ5",
    "kind": "proof",
    "level": "W0",
    "next": [
      {
        "what": "an inventory row",
        "note": "the row of the inventory that the node accounts for",
        "have": 0,
        "want": 1
      }
    ]
  }
}
