Alphabeta Math
TheoremStatement: Literature-sourcedProof: AI-adaptedprecheck passaudited 2026-07-31
How statement and proof provenance work

The first chip identifies the source of the statement or construction; the second identifies the source of its local proof or verification.

  • Literature-sourced: the exact statement appears in a cited source; only wording and notation differ.
  • AI-adapted: a semantically identical restatement of literature-sourced material, modulo indexing, notation, and boundary cases adopted by the library.
  • AI-generated: a genuinely novel statement formulated by AI, with no source for the claim itself.

These labels describe origin, not correctness: citations and verification chips remain separate evidence.

A finite graph is bipartite if and only if it has no odd cycle

Statement

A finite simple graph is bipartite if and only if it contains no cycle of odd length.

Facts & Assumptions

Given: A finite simple graph G=(V,E).

[F1]

A bipartition is an ordered pair (A,B) of disjoint subsets with V=A∪B and every edge running between its two parts (A bipartite graph and a proper two-colouring of its vertices).

[L1]

Every odd closed walk contains an odd cycle (Every closed walk of odd length contains a cycle of odd length).

[F2]

Path-reachability is an equivalence relation, and its equivalence classes are the connected components; hence two vertices lie in the same component exactly when a path joins them. Every such path has a length and therefore a parity (Being joined by a walk or path is the same equivalence relation on the vertex set, Connected graphs and connected components defined by the existence of vertex paths, Graph distance within a component, eccentricity, diameter and girth, including the acyclic convention).

[L2]

The connected components are nonempty, cover the vertex set, and are pairwise equal or disjoint (The connected components of a graph partition its vertex set and are its maximal connected subgraphs).

Proof

technique · direct
1.1

Suppose G has a bipartition (A,B). Along any walk the successive vertices alternate between A and B, so a closed walk returns to its initial part only after an even number of edges. In particular, every cycle has even length.

F1
1.2

Conversely, suppose G has no odd cycle. Then by [L1] it has no odd closed walk.

givenL1
2.1

Let C be an arbitrary connected component. It is nonempty by [L2], so fix a root r∈C. Put AC equal to the vertices joined to r by an even-length path and BC equal to those joined to r by an odd-length path. Every vertex of C lies in at least one of these sets by [F2]. This construction is vacuous when the graph has no components.

step 1.2F2L2choose
3.1

The sets AC and BC are disjoint: an even r to v path followed by the reverse of an odd r to v path would be an odd closed walk, contrary to step 1.2.

step 1.2step 2.1
4.1

Every edge {u,v} inside C runs between AC and BC. Otherwise choose paths from r to u and from r to v having the common parity of their class. Traversing the first path, the edge {u,v}, and the reverse of the second path gives an odd closed walk, contrary to step 1.2.

step 1.2step 2.1step 3.1
5.1

By [L2], the connected components partition the finite vertex set and therefore form a finite family. Repeating this construction for each component and taking A and B to be the unions of their respective parts gives disjoint sets with V=A∪B. The endpoints of an edge are joined by that one-edge path and hence lie in one component by [F2], so every edge runs between the two global parts. Thus (A,B) is a bipartition.

step 2.1step 3.1step 4.1F1F2L2
6.1

Step 1.1 proves that bipartite graphs have no odd cycle, and steps 1.2 to 5.1 prove the converse.

step 1.1step 5.1∎

Depends on

Used by

Dependency tree · two levels

14 results within two dependency steps of this one, each drawn at its shortest distance from it. An arrow runs from a result to what uses it, so the chart reads left to right and ends at this result, which carries a heavier outline. Every node is a link to that result. Click elsewhere on the chart to enlarge it.

Sources