Distance to planar graphs
Lax825442.DistanceToPlanar · concepts/Lax825442/DistanceToPlanar.lean · lax-825442
No public endorsements yet.
Loading review…
Sign in with ORCIDNatural Language Statement
Definition
The distance to planar graphs is the minimum number of vertices whose deletion leaves a planar induced graph. Planarity uses the registered , which asserts the existence of a crossing-free straight-line drawing in the real plane. For finite simple graphs this agrees with standard planarity.
Concept map
Lean source view on GitHub
| 1 | import Lax68.Planar |
| 2 | import Mathlib.Combinatorics.SimpleGraph.Finite |
| 3 | import Mathlib.Order.Lattice.Nat |
| 4 | |
| 5 | /-! |
| 6 | --- |
| 7 | title: Distance to planar graphs |
| 8 | type: definition |
| 9 | --- |
| 10 | The distance to planar graphs is the minimum number of vertices whose deletion |
| 11 | leaves a planar induced graph. Planarity uses the registered `Lax68.Planar.IsPlanar`, |
| 12 | which asserts the existence of a crossing-free straight-line drawing in the |
| 13 | real plane. For finite simple graphs this agrees with standard planarity. |
| 14 | -/ |
| 15 | |
| 16 | namespace Lax825442.DistanceToPlanar |
| 17 | |
| 18 | /-- Minimum number of vertices whose deletion leaves a planar graph. -/ |
| 19 | noncomputable def distanceToPlanar {V : Type} [Fintype V] [DecidableEq V] |
| 20 | (G : SimpleGraph V) : ℕ := |
| 21 | sInf {k : ℕ | ∃ S : Finset V, (S.card = k) ∧ |
| 22 | (Lax68.Planar.IsPlanar (G.induce {v | v ∉ S}))} |
| 23 | |
| 24 | end Lax825442.DistanceToPlanar |
| 25 |
Builds on
Used by
none
Discussion
Ask a question or add context. Endorsements and structured flags are kept in the review panel above.
0 comments