While this submission is a draft, it cannot be used by other submissions.

Distance to planar graphs

Lax825442.DistanceToPlanar · concepts/Lax825442/DistanceToPlanar.lean · lax-825442

definition

Loading review…

Sign in with ORCID

Community review

Flags

Each flag is tied to a public ORCID identity and explains why this concept may be incorrect.

No flags have been submitted.

    Community review

    Flag this concept

    State precisely what appears incorrect. This explanation will be public under your ORCID name.

    No source line selected.

    Natural 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 Lax68.Planar.IsPlanarLax68.Planar.IsPlanar, 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
    4 concepts
    100%
    DefinitionThis conceptRelated conceptA → B: B builds on A

    Lean source view on GitHub

    1import Lax68.Planar
    2import Mathlib.Combinatorics.SimpleGraph.Finite
    3import Mathlib.Order.Lattice.Nat
    4
    5/-!
    6---
    7title: Distance to planar graphs
    8type: definition
    9---
    10The distance to planar graphs is the minimum number of vertices whose deletion
    11leaves a planar induced graph. Planarity uses the registered `Lax68.Planar.IsPlanar`,
    12which asserts the existence of a crossing-free straight-line drawing in the
    13real plane. For finite simple graphs this agrees with standard planarity.
    14-/
    15
    16namespace Lax825442.DistanceToPlanar
    17
    18/-- Minimum number of vertices whose deletion leaves a planar graph. -/
    19noncomputable 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
    24end Lax825442.DistanceToPlanar
    25

    Discussion

    Ask a question or add context. Endorsements and structured flags are kept in the review panel above.

    Loading discussion…