IsPlanar
DefinitionP1_01_IsPlanarDefinition code
import Mathlib
namespace P1_01
open scoped unitInterval
/-- A drawing of `G` in the plane: distinct points for the vertices, and for each edge an
injective continuous arc between the points of its endpoints, whose interior meets no vertex
point, such that two distinct arcs meet only at vertex points. `G` is planar if it has one.
This definition is not printed in the paper; it is supplied for the formal statement. -/
def IsPlanar {V : Type*} (G : SimpleGraph V) : Prop :=
∃ (p : V → EuclideanSpace ℝ (Fin 2))
(γ : G.edgeSet → C(unitInterval, EuclideanSpace ℝ (Fin 2))),
Function.Injective p ∧
(∀ e, Function.Injective (γ e)) ∧
(∀ e, s(γ e 0, γ e 1) = Sym2.map p (e : Sym2 V)) ∧
(∀ e (t : unitInterval), 0 < (t : ℝ) → (t : ℝ) < 1 → ∀ w, γ e t ≠ p w) ∧
(∀ e f, e ≠ f → ∀ s t, γ e s = γ f t → ∃ w, γ e s = p w)
end P1_01