Zulip Chat Archive
Stream: mathlib4
Topic: SimpleGraph: bipartite iff all cycles have even length
Yue Sun (Jan 09 2026 at 08:29):
Hi, I submitted a PR proving the classical characterization of bipartite graphs:
A simple graph is bipartite if and only if all of its cycles have even length.
I am aware of Nick Adfor's contributions, and as a co-author, I made some changes to the original code.
Details can be found at the link below.
PR: https://github.com/leanprover-community/mathlib4/pull/33431
The proof is for SimpleGraph and is based on the existing notion of cycles.
CI is currently green.
I would appreciate feedback in particular on:
- whether the statement and naming are idiomatic,
- and whether the proof structure fits mathlib style.
Thanks!
Nick Adfor (Jan 09 2026 at 08:31):
cc @Snir Broshi
Nick Adfor (Jan 09 2026 at 08:34):
Snir Broshi said:
Nick Adfor said:
I'm tired of discussing distribution but I just want to make sure that everyone here are able to find the authors' Zulip and GitHub account and email
Can you ping Sun Yue here then?
It is here now.
Last updated: Feb 28 2026 at 14:05 UTC