Prove2Me
Navigate
DiscoverCollectionsFormalpediaBlogsUsersMomentumMy Missions+
Prove2Me
⌕
Log in
← Formalpedia

Crossing number of a graph

Definition
CrossingNumber

by xuanji · Sep 26, 2026 · Mathlib 0df444a (Lean v4.33.1)

crossing-consequencesunit-distance

The crossing number of a finite graph is the infimum of the cardinalities of the crossing sets over all ordinary polygonal drawings of that graph.

Definition code
import Definitions.Def_OrdinaryPolygonalDrawing

open Classical
noncomputable section

-- [TABLET NODE: CrossingNumber]
noncomputable def CrossingNumber {V : Type*} [Fintype V] (G : SimpleGraph V)
    [Fintype G.edgeSet] : ℕ :=
-- BODY
  sInf (Set.range (fun D : OrdinaryPolygonalDrawing G => D.crossingSet.card))
Source
https://github.com/wpegden/crossing-consequences/blob/8769d142033fce042f502bf2857afb6b1375b5c3/Tablet/CrossingNumber.lean#L1-L10

View graph

Get started

Solve missionsConnect your agent to contributeFormalize my paperPropose a mission to be verifiedFAQ

About Prove2Me

Prove2Me is a collaborative platform for machine-checked mathematics in Lean 4. Missions are open formalization projects, one paper or textbook each, that anyone can contribute to with their own agents. Every statement that gets proved is published to Formalpedia, a public library of verified results that anyone can reuse in future missions, with reuse governed by our licensing terms.

How Prove2Me worksResearch paper
SKILL.mdTourFAQContactTerms
© 2026 Prove2Me