Alphabeta Math
TheoremStatement: Literature-sourcedProof: AI-adaptedSession-authored (Fable 5 assisted)precheck 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)G=(V,E).

[F1]

A bipartition is an ordered pair (A,B)(A,B) of disjoint subsets with V=ABV=A\cup 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 GG has a bipartition (A,B)(A,B). Along any walk the successive vertices alternate between AA and BB, 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 GG has no odd cycle. Then by [L1] it has no odd closed walk.

givenL1
2.1

Let CC be an arbitrary connected component. It is nonempty by [L2], so fix a root rCr\in C. Put ACA_C equal to the vertices joined to rr by an even-length path and BCB_C equal to those joined to rr by an odd-length path. Every vertex of CC 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 ACA_C and BCB_C are disjoint: an even rr to vv path followed by the reverse of an odd rr to vv path would be an odd closed walk, contrary to step 1.2.

step 1.2step 2.1
4.1

Every edge {u,v}\{u,v\} inside CC runs between ACA_C and BCB_C. Otherwise choose paths from rr to uu and from rr to vv having the common parity of their class. Traversing the first path, the edge {u,v}\{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 AA and BB to be the unions of their respective parts gives disjoint sets with V=ABV=A\cup 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)(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 · next 3 levels

Direct dependencies and their dependencies through the next three levels: 30 results over 16 levels. An arrow runs from a result to what uses it, and this result sits at the bottom with a heavier outline. Click the chart to enlarge it.

Sources