Will Lean mathlib have a definition of planar graphs before the end of the year?
15
230Ṁ1873
resolved Dec 31
Resolved
NO

Planar graphs are surprisingly difficult to formalize. The textbook definition (can be drawn on a plane) is easy to understand, but in code that explodes into a mess of coordinate geometry.

Georges Gonthier, in his proof of the four-color theorem, used a structure called combinatorial hypermaps to encode planar graphs. This approach seems most promising. Before proposing that to mathlib, it would be nice to check that it's suitable for all planar graph theorems, not just four-color.

Resolves YES if mathlib has a definition of planar graph. The code must be on the master branch. Alternative definitions of graphs (like hypermaps) are allowed, as long as there is an embedding from SimpleGraph that preserves planarity.

Get
Ṁ1,000
to start trading!

🏅 Top traders

#NameTotal profit
1Ṁ52
2Ṁ37
3Ṁ31
4Ṁ28
5Ṁ25
Sort by:

Planar graphs are surprisingly difficult to formalize

Isn't it just those graphs that avoids the K_5 and K_3,3 minors?

predictedNO

@levifinkelstein @tfae This is a good point. If there is no separate type, just a proposition isPlanar on SimpleGraph, does this resolve yes?

@levifinkelstein yes, but the forbidden graph characterization is hard to work with, and the maintainers might reject that as the definition for that reason.

Not to mention – if you purpose that definition, you'll likely end up proving Wagner's theorem to justify it... creating another planar graph definition in the process 😅

predictedNO

To elaborate: Most proofs that use planarity invoke either the Euler characteristic or the Jordan curve theorem. It is quite difficult to derive either of these things from minors.

© Manifold Markets, Inc.Terms + Mana-only TermsPrivacyRules