The Mathlib Handbook

The volumes of the handbook are not written yet. This site shows the map of Mathlib that they will follow, at Mathlib 4472534b60.

The areas / V30. Combinatorics

Mathlib.Combinatorics.SimpleGraph.UnitDistance.Basic

17 declarations. Mathlib docs · Source

Unit-distance graph embeddings

An embedding of a graph into some metric space is unit-distance if the distance between any two adjacent vertices is 1. The space in question is usually the Euclidean plane, but can also be higher-dimensional Euclidean space or the sphere (cf. [Frankl_2020]). We do not require nonadjacent vertices to not be distance 1 apart as [hong2014] does.

Main definitions

  • G.UnitDistEmbedding E is a unit-distance embedding of G into E.
  • UnitDistEmbedding.copy, UnitDistEmbedding.embed, UnitDistEmbedding.iso: transfer a unit-distance embedding down a Copy, graph embedding or graph isomorphism respectively.

theorem SimpleGraph.UnitDistEmbedding.mk.injEq E0 #

∀ {V : Type u_1} {G : SimpleGraph V} {E : Type u_3} [inst : MetricSpace E] (p : V ↪ E)
  (unit_dist : ∀ {u v : V}, G.Adj u v → dist (p u) (p v) = 1) (p_1 : V ↪ E)
  (unit_dist_1 : ∀ {u v : V}, G.Adj u v → dist (p_1 u) (p_1 v) = 1),
  ({ p := p, unit_dist := unit_dist } = { p := p_1, unit_dist := unit_dist_1 }) = (p = p_1)

def SimpleGraph.UnitDistEmbedding.ctorIdx E1 #

{V : Type u_1} → {G : SimpleGraph V} → {E : Type u_3} → {inst : MetricSpace E} → G.UnitDistEmbedding E → ℕ

theorem SimpleGraph.UnitDistEmbedding.mk.inj E1 #

∀ {V : Type u_1} {G : SimpleGraph V} {E : Type u_3} {inst : MetricSpace E} {p : V ↪ E}
  {unit_dist : ∀ {u v : V}, G.Adj u v → dist (p u) (p v) = 1} {p_1 : V ↪ E}
  {unit_dist_1 : ∀ {u v : V}, G.Adj u v → dist (p_1 u) (p_1 v) = 1},
  { p := p, unit_dist := unit_dist } = { p := p_1, unit_dist := unit_dist_1 } → p = p_1

structure SimpleGraph.UnitDistEmbedding E1 #

{V : Type u_1} → SimpleGraph V → (E : Type u_3) → [MetricSpace E] → Type (max u_1 u_3)

A unit-distance embedding of a graph into a metric space is a vertex embedding such that adjacent vertices are at distance 1 from each other.

ctor SimpleGraph.UnitDistEmbedding.mk E0 #

{V : Type u_1} →
  {G : SimpleGraph V} →
    {E : Type u_3} →
      [inst : MetricSpace E] → (p : V ↪ E) → (∀ {u v : V}, G.Adj u v → dist (p u) (p v) = 1) → G.UnitDistEmbedding E

abbrev SimpleGraph.UnitDistEmbedding.p E1 #

{V : Type u_1} → {G : SimpleGraph V} → {E : Type u_3} → [inst : MetricSpace E] → G.UnitDistEmbedding E → V ↪ E

The embedding itself (position of vertices)

theorem SimpleGraph.UnitDistEmbedding.unit_dist E1 #

∀ {V : Type u_1} {G : SimpleGraph V} {E : Type u_3} [inst : MetricSpace E] (self : G.UnitDistEmbedding E) {u v : V},
  G.Adj u v → dist (self.p u) (self.p v) = 1

The distance between any two adjacent vertices is 1.

def SimpleGraph.UnitDistEmbedding.bot E1 #

{V : Type u_1} → {E : Type u_3} → [inst : MetricSpace E] → (V ↪ E) → ⊥.UnitDistEmbedding E

An injection into the metric space provides a unit-distance embedding of the empty graph.

theorem SimpleGraph.UnitDistEmbedding.bot_p E0 #

∀ {V : Type u_1} {E : Type u_3} [inst : MetricSpace E] (p : V ↪ E), (SimpleGraph.UnitDistEmbedding.bot p).p = p

def SimpleGraph.UnitDistEmbedding.subsingleton E1 #

{V : Type u_1} →
  (G : SimpleGraph V) → {E : Type u_3} → [inst : MetricSpace E] → [Subsingleton V] → E → G.UnitDistEmbedding E

Any graph on a subsingleton vertex type has a unit-distance embedding, provided the metric space is nonempty.

theorem SimpleGraph.UnitDistEmbedding.subsingleton_p_apply E0 #

∀ {V : Type u_1} (G : SimpleGraph V) {E : Type u_3} [inst : MetricSpace E] [inst_1 : Subsingleton V] (x : E) (x_1 : V),
  (SimpleGraph.UnitDistEmbedding.subsingleton G x).p x_1 = x

def SimpleGraph.UnitDistEmbedding.copy E3 #

{V : Type u_1} →
  {W : Type u_2} →
    {G : SimpleGraph V} →
      {H : SimpleGraph W} →
        {E : Type u_3} → [inst : MetricSpace E] → G.UnitDistEmbedding E → H.Copy G → H.UnitDistEmbedding E

Derive a unit-distance embedding of H from a unit-distance embedding of G containing H.

theorem SimpleGraph.UnitDistEmbedding.copy_p_apply E0 #

∀ {V : Type u_1} {W : Type u_2} {G : SimpleGraph V} {H : SimpleGraph W} {E : Type u_3} [inst : MetricSpace E]
  (U : G.UnitDistEmbedding E) (f : H.Copy G) (a : W), (U.copy f).p a = U.p (f.toEmbedding a)

def SimpleGraph.UnitDistEmbedding.embed E3 #

{V : Type u_1} →
  {W : Type u_2} →
    {G : SimpleGraph V} →
      {H : SimpleGraph W} →
        {E : Type u_3} → [inst : MetricSpace E] → G.UnitDistEmbedding E → H ↪g G → H.UnitDistEmbedding E

U.copy specialised to graph embeddings.

theorem SimpleGraph.UnitDistEmbedding.embed_p_apply E0 #

∀ {V : Type u_1} {W : Type u_2} {G : SimpleGraph V} {H : SimpleGraph W} {E : Type u_3} [inst : MetricSpace E]
  (U : G.UnitDistEmbedding E) (f : H ↪g G) (a : W), (U.embed f).p a = U.p (f.toCopy.toEmbedding a)

def SimpleGraph.UnitDistEmbedding.iso E3 #

{V : Type u_1} →
  {W : Type u_2} →
    {G : SimpleGraph V} →
      {H : SimpleGraph W} →
        {E : Type u_3} → [inst : MetricSpace E] → G.UnitDistEmbedding E → G ≃g H → H.UnitDistEmbedding E

Transfer a unit-distance embedding across a graph isomorphism.

theorem SimpleGraph.UnitDistEmbedding.iso_p_apply E0 #

∀ {V : Type u_1} {W : Type u_2} {G : SimpleGraph V} {H : SimpleGraph W} {E : Type u_3} [inst : MetricSpace E]
  (U : G.UnitDistEmbedding E) (e : G ≃g H) (a : W), (U.iso e).p a = U.p (e.symm.toCopy.toEmbedding a)