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.Dart

40 declarations. Mathlib docs · Source

def SimpleGraph.Dart.ctorIdx E1 #

{V : Type u_1} → {G : SimpleGraph V} → G.Dart → ℕ

theorem SimpleGraph.Dart.mk.injEq E0 #

∀ {V : Type u_1} {G : SimpleGraph V} (toProd : V × V) (adj : G.Adj toProd.1 toProd.2) (toProd_1 : V × V)
  (adj_1 : G.Adj toProd_1.1 toProd_1.2),
  ({ toProd := toProd, adj := adj } = { toProd := toProd_1, adj := adj_1 }) = (toProd = toProd_1)

theorem SimpleGraph.Dart.mk.congr_simp E1 #

∀ {V : Type u_1} {G : SimpleGraph V} (toProd toProd_1 : V × V) (e_toProd : toProd = toProd_1)
  (adj : G.Adj toProd.1 toProd.2), { toProd := toProd, adj := adj } = { toProd := toProd_1, adj := ⋯ }

theorem SimpleGraph.Dart.mk.inj E1 #

∀ {V : Type u_1} {G : SimpleGraph V} {toProd : V × V} {adj : G.Adj toProd.1 toProd.2} {toProd_1 : V × V}
  {adj_1 : G.Adj toProd_1.1 toProd_1.2},
  { toProd := toProd, adj := adj } = { toProd := toProd_1, adj := adj_1 } → toProd = toProd_1

structure SimpleGraph.Dart E1 #

{V : Type u_1} → SimpleGraph V → Type u_1

A Dart is an oriented edge, implemented as an ordered pair of adjacent vertices. This terminology comes from combinatorial maps, and they are also known as "half-edges" or "bonds."

abbrev SimpleGraph.Dart.toProd E1 #

{V : Type u_1} → {G : SimpleGraph V} → G.Dart → V × V

ctor SimpleGraph.Dart.mk E0 #

{V : Type u_1} → {G : SimpleGraph V} → (toProd : V × V) → G.Adj toProd.1 toProd.2 → G.Dart

theorem SimpleGraph.Dart.adj E0 #

∀ {V : Type u_1} {G : SimpleGraph V} (self : G.Dart), G.Adj self.toProd.1 self.toProd.2

instance SimpleGraph.instDecidableEqDart E0 #

{V : Type u_2} → {G : SimpleGraph V} → [DecidableEq V] → DecidableEq G.Dart

def SimpleGraph.instDecidableEqDart.decEq E1 #

{V : Type u_2} → {G : SimpleGraph V} → [DecidableEq V] → (x x_1 : G.Dart) → Decidable (x = x_1)

theorem SimpleGraph.Dart.ext_iff E0 #

∀ {V : Type u_1} {G : SimpleGraph V} (d₁ d₂ : G.Dart), d₁ = d₂ ↔ d₁.toProd = d₂.toProd

theorem SimpleGraph.Dart.ext E1 #

∀ {V : Type u_1} {G : SimpleGraph V} (d₁ d₂ : G.Dart), d₁.toProd = d₂.toProd → d₁ = d₂

theorem SimpleGraph.Dart.fst_ne_snd E0 #

∀ {V : Type u_1} {G : SimpleGraph V} (d : G.Dart), d.toProd.1 ≠ d.toProd.2

theorem SimpleGraph.Dart.snd_ne_fst E0 #

∀ {V : Type u_1} {G : SimpleGraph V} (d : G.Dart), d.toProd.2 ≠ d.toProd.1

theorem SimpleGraph.Dart.toProd_injective E1 #

∀ {V : Type u_1} {G : SimpleGraph V}, Function.Injective SimpleGraph.Dart.toProd

instance SimpleGraph.Dart.fintype E0 #

{V : Type u_1} → {G : SimpleGraph V} → [Fintype V] → [DecidableRel G.Adj] → Fintype G.Dart

instance SimpleGraph.instFiniteDart E0 #

∀ {V : Type u_1} {G : SimpleGraph V} [Finite V], Finite G.Dart

theorem SimpleGraph.finite_dart_iff_finite_of_support_eq_univ E1 #

∀ {V : Type u_1} {G : SimpleGraph V}, G.support = Set.univ → (Finite G.Dart ↔ Finite V)

theorem SimpleGraph.infinite_dart_iff_infinite_of_support_eq_univ E1 #

∀ {V : Type u_1} {G : SimpleGraph V}, G.support = Set.univ → (Infinite G.Dart ↔ Infinite V)

def SimpleGraph.Dart.edge E1 #

{V : Type u_1} → {G : SimpleGraph V} → G.Dart → Sym2 V

The edge associated to the dart.

theorem SimpleGraph.Dart.edge_mk E0 #

∀ {V : Type u_1} {G : SimpleGraph V} {p : V × V} (h : G.Adj p.1 p.2), { toProd := p, adj := h }.edge = s(p.1, p.2)

theorem SimpleGraph.Dart.sym2Mk_fst_snd E0 #

∀ {V : Type u_1} {G : SimpleGraph V} (d : G.Dart), s(d.toProd.1, d.toProd.2) = d.edge

theorem SimpleGraph.Dart.edge_mem E0 #

∀ {V : Type u_1} {G : SimpleGraph V} (d : G.Dart), d.edge ∈ G.edgeSet

def SimpleGraph.Dart.symm E1 #

{V : Type u_1} → {G : SimpleGraph V} → G.Dart → G.Dart

The dart with reversed orientation from a given dart.

theorem SimpleGraph.Dart.symm_toProd E0 #

∀ {V : Type u_1} {G : SimpleGraph V} (d : G.Dart), d.symm.toProd = d.swap

theorem SimpleGraph.Dart.symm_mk E0 #

∀ {V : Type u_1} {G : SimpleGraph V} {p : V × V} (h : G.Adj p.1 p.2),
  { toProd := p, adj := h }.symm = { toProd := p.swap, adj := ⋯ }

theorem SimpleGraph.Dart.edge_symm E0 #

∀ {V : Type u_1} {G : SimpleGraph V} (d : G.Dart), d.symm.edge = d.edge

theorem SimpleGraph.Dart.edge_comp_symm E0 #

∀ {V : Type u_1} {G : SimpleGraph V}, SimpleGraph.Dart.edge ∘ SimpleGraph.Dart.symm = SimpleGraph.Dart.edge

theorem SimpleGraph.Dart.symm_symm E0 #

∀ {V : Type u_1} {G : SimpleGraph V} (d : G.Dart), d.symm.symm = d

theorem SimpleGraph.Dart.symm_involutive E0 #

∀ {V : Type u_1} {G : SimpleGraph V}, Function.Involutive SimpleGraph.Dart.symm

theorem SimpleGraph.Dart.symm_ne E1 #

∀ {V : Type u_1} {G : SimpleGraph V} (d : G.Dart), d.symm ≠ d

theorem SimpleGraph.Dart.fst_symm E0 #

∀ {V : Type u_1} {G : SimpleGraph V} (d : G.Dart), d.symm.toProd.1 = d.toProd.2

theorem SimpleGraph.dart_edge_eq_iff E0 #

∀ {V : Type u_1} {G : SimpleGraph V} (d₁ d₂ : G.Dart), d₁.edge = d₂.edge ↔ d₁ = d₂ ∨ d₁ = d₂.symm

theorem SimpleGraph.dart_edge_eq_mk'_iff E0 #

∀ {V : Type u_1} {G : SimpleGraph V} {d : G.Dart} {u v : V}, d.edge = s(u, v) ↔ d.toProd = (u, v) ∨ d.toProd = (v, u)

theorem SimpleGraph.dart_edge_eq_mk'_iff' E1 #

∀ {V : Type u_1} {G : SimpleGraph V} {d : G.Dart} {u v : V},
  d.edge = s(u, v) ↔ d.toProd.1 = u ∧ d.toProd.2 = v ∨ d.toProd.1 = v ∧ d.toProd.2 = u

def SimpleGraph.DartAdj E1 #

{V : Type u_1} → (G : SimpleGraph V) → G.Dart → G.Dart → Prop

Two darts are said to be adjacent if they could be consecutive darts in a walk -- that is, the first dart's second vertex is equal to the second dart's first vertex.

def SimpleGraph.dartOfNeighborSet E1 #

{V : Type u_1} → (G : SimpleGraph V) → (v : V) → ↑(G.neighborSet v) → G.Dart

For a given vertex v, this is the bijective map from the neighbor set at v to the darts d with d.fst = v.

theorem SimpleGraph.dartOfNeighborSet_toProd E0 #

∀ {V : Type u_1} (G : SimpleGraph V) (v : V) (w : ↑(G.neighborSet v)), (G.dartOfNeighborSet v w).toProd = (v, ↑w)

theorem SimpleGraph.dartOfNeighborSet_injective E1 #

∀ {V : Type u_1} (G : SimpleGraph V) (v : V), Function.Injective (G.dartOfNeighborSet v)

instance SimpleGraph.nonempty_dart_top E0 #

∀ {V : Type u_1} [Nontrivial V], Nonempty ⊤.Dart