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

36 declarations. Mathlib docs · Source

Definition of Cayley graphs

This file defines and proves several fact about Cayley graphs. A Cayley graph over type M with generators s : Set M is a graph in which two vertices u ≠ v are adjacent if and only if there is some g ∈ s such that u * g = v or v * g = u. The elements of s are called generators.

Main declarations

  • SimpleGraph.mulCayley s: the Cayley graph over M induced by [Mul M] with generators s.
  • SimpleGraph.addCayley s: the Cayley graph over M induced by [Add M] with generators s.

TODO

  • Add API describing behaviour w/r/t MulOpposite.
  • Add lemma showing this graph is the same as SimpleGraph.circulantGraph in appropriate settings.

def SimpleGraph.mulCayley E1 #

{M : Type u_1} → Set M → [Mul M] → SimpleGraph M

The Cayley graph induced by an operation [Mul M] with generators s

def SimpleGraph.addCayley E1 #

{M : Type u_1} → Set M → [Add M] → SimpleGraph M

The Cayley graph induced by an operation [Add M] with generators s

theorem SimpleGraph.mulCayley_adj' E1 #

∀ {M : Type u_1} (s : Set M) [inst : Mul M] (u v : M),
  (SimpleGraph.mulCayley s).Adj u v ↔ u ≠ v ∧ ∃ g ∈ s, u * g = v ∨ u = v * g

See mulCayley_adj for the more convenient form in a Group.

theorem SimpleGraph.addCayley_adj' E1 #

∀ {M : Type u_1} (s : Set M) [inst : Add M] (u v : M),
  (SimpleGraph.addCayley s).Adj u v ↔ u ≠ v ∧ ∃ g ∈ s, u + g = v ∨ u = v + g

See addCayley_adj for the more convenient form in an AddGroup.

theorem SimpleGraph.addCayley_le_iff E0 #

∀ {M : Type u_1} (s : Set M) [inst : Add M] (G : SimpleGraph M),
  SimpleGraph.addCayley s ≤ G ↔ ∀ g ∈ s, ∀ (a : M), a + g ≠ a → G.Adj (a + g) a

theorem SimpleGraph.mulCayley_le_iff E0 #

∀ {M : Type u_1} (s : Set M) [inst : Mul M] (G : SimpleGraph M),
  SimpleGraph.mulCayley s ≤ G ↔ ∀ g ∈ s, ∀ (a : M), a * g ≠ a → G.Adj (a * g) a

instance SimpleGraph.instDecidableRelAdjMulCayleyOfFintypeOfDecidableEqOfDecidablePredMemSet E0 #

{M : Type u_1} →
  (s : Set M) →
    [inst : Mul M] →
      [Fintype M] → [DecidableEq M] → [DecidablePred fun x ↦ x ∈ s] → DecidableRel (SimpleGraph.mulCayley s).Adj

instance SimpleGraph.instDecidableRelAdjAddCayleyOfFintypeOfDecidableEqOfDecidablePredMemSet E0 #

{M : Type u_1} →
  (s : Set M) →
    [inst : Add M] →
      [Fintype M] → [DecidableEq M] → [DecidablePred fun x ↦ x ∈ s] → DecidableRel (SimpleGraph.addCayley s).Adj

theorem SimpleGraph.mulCayley_gc E1 #

∀ (M : Type u_1) [inst : Mul M],
  GaloisConnection (fun x ↦ SimpleGraph.mulCayley x) fun x ↦ {g | ∀ (a : M), a * g ≠ a → x.Adj (a * g) a}

mulCayley is a left (order-)adjoint.

theorem SimpleGraph.addCayley_gc E1 #

∀ (M : Type u_1) [inst : Add M],
  GaloisConnection (fun x ↦ SimpleGraph.addCayley x) fun x ↦ {g | ∀ (a : M), a + g ≠ a → x.Adj (a + g) a}

addCayley is a left (order-)adjoint.

theorem SimpleGraph.addCayley_monotone E1 #

∀ {M : Type u_1} [inst : Add M], Monotone fun x ↦ SimpleGraph.addCayley x

theorem SimpleGraph.mulCayley_monotone E1 #

∀ {M : Type u_1} [inst : Mul M], Monotone fun x ↦ SimpleGraph.mulCayley x

theorem SimpleGraph.addCayley_mono E1 #

∀ {M : Type u_1} [inst : Add M] {U V : Set M}, U ⊆ V → SimpleGraph.addCayley U ≤ SimpleGraph.addCayley V

theorem SimpleGraph.mulCayley_mono E1 #

∀ {M : Type u_1} [inst : Mul M] {U V : Set M}, U ⊆ V → SimpleGraph.mulCayley U ≤ SimpleGraph.mulCayley V

theorem SimpleGraph.addCayley_empty E0 #

∀ {M : Type u_1} [inst : Add M], SimpleGraph.addCayley ∅ = ⊥

theorem SimpleGraph.mulCayley_empty E0 #

∀ {M : Type u_1} [inst : Mul M], SimpleGraph.mulCayley ∅ = ⊥

theorem SimpleGraph.addCayley_union E0 #

∀ {M : Type u_1} [inst : Add M] (s₁ s₂ : Set M),
  SimpleGraph.addCayley (s₁ ∪ s₂) = SimpleGraph.addCayley s₁ ⊔ SimpleGraph.addCayley s₂

theorem SimpleGraph.mulCayley_union E0 #

∀ {M : Type u_1} [inst : Mul M] (s₁ s₂ : Set M),
  SimpleGraph.mulCayley (s₁ ∪ s₂) = SimpleGraph.mulCayley s₁ ⊔ SimpleGraph.mulCayley s₂

theorem SimpleGraph.mulCayley_adj_mul_iff_right E0 #

∀ {M : Type u_1} [inst : Semigroup M] [IsLeftCancelMul M] {s : Set M} {u v d : M},
  (SimpleGraph.mulCayley s).Adj (d * u) (d * v) ↔ (SimpleGraph.mulCayley s).Adj u v

theorem SimpleGraph.addCayley_adj_add_iff_right E0 #

∀ {M : Type u_1} [inst : AddSemigroup M] [IsLeftCancelAdd M] {s : Set M} {u v d : M},
  (SimpleGraph.addCayley s).Adj (d + u) (d + v) ↔ (SimpleGraph.addCayley s).Adj u v

theorem SimpleGraph.addCayley_erase_zero E0 #

∀ {M : Type u_1} (s : Set M) [inst : AddZeroClass M], SimpleGraph.addCayley (s \ {0}) = SimpleGraph.addCayley s

theorem SimpleGraph.mulCayley_erase_one E0 #

∀ {M : Type u_1} (s : Set M) [inst : MulOneClass M], SimpleGraph.mulCayley (s \ {1}) = SimpleGraph.mulCayley s

theorem SimpleGraph.mulCayley_insert_one E0 #

∀ {M : Type u_1} (s : Set M) [inst : MulOneClass M], SimpleGraph.mulCayley (insert 1 s) = SimpleGraph.mulCayley s

theorem SimpleGraph.addCayley_insert_zero E0 #

∀ {M : Type u_1} (s : Set M) [inst : AddZeroClass M], SimpleGraph.addCayley (insert 0 s) = SimpleGraph.addCayley s

theorem SimpleGraph.addCayley_singleton_zero E0 #

∀ {M : Type u_1} [inst : AddZeroClass M], SimpleGraph.addCayley {0} = ⊥

theorem SimpleGraph.mulCayley_singleton_one E0 #

∀ {M : Type u_1} [inst : MulOneClass M], SimpleGraph.mulCayley {1} = ⊥

theorem SimpleGraph.addCayley_adj E1 #

∀ {M : Type u_1} (s : Set M) [inst : AddGroup M] (u v : M),
  (SimpleGraph.addCayley s).Adj u v ↔ u ≠ v ∧ (-u + v ∈ s ∨ -v + u ∈ s)

theorem SimpleGraph.mulCayley_adj E1 #

∀ {M : Type u_1} (s : Set M) [inst : Group M] (u v : M),
  (SimpleGraph.mulCayley s).Adj u v ↔ u ≠ v ∧ (u⁻¹ * v ∈ s ∨ v⁻¹ * u ∈ s)

theorem SimpleGraph.mulCayley_inv E0 #

∀ {M : Type u_1} (s : Set M) [inst : Group M], SimpleGraph.mulCayley s⁻¹ = SimpleGraph.mulCayley s

theorem SimpleGraph.addCayley_neg E0 #

∀ {M : Type u_1} (s : Set M) [inst : AddGroup M], SimpleGraph.addCayley (-s) = SimpleGraph.addCayley s

instance SimpleGraph.instDecidableRelAdjMulCayleyOfDecidableEqOfDecidablePredMemSet E0 #

{M : Type u_1} →
  (s : Set M) →
    [inst : Group M] → [DecidableEq M] → [DecidablePred fun x ↦ x ∈ s] → DecidableRel (SimpleGraph.mulCayley s).Adj

instance SimpleGraph.instDecidableRelAdjAddCayleyOfDecidableEqOfDecidablePredMemSet E0 #

{M : Type u_1} →
  (s : Set M) →
    [inst : AddGroup M] → [DecidableEq M] → [DecidablePred fun x ↦ x ∈ s] → DecidableRel (SimpleGraph.addCayley s).Adj

theorem SimpleGraph.addCayley_univ E0 #

∀ {M : Type u_1} [inst : AddGroup M], SimpleGraph.addCayley Set.univ = ⊤

theorem SimpleGraph.mulCayley_univ E0 #

∀ {M : Type u_1} [inst : Group M], SimpleGraph.mulCayley Set.univ = ⊤

theorem SimpleGraph.mulCayley_compl_singleton_one E0 #

∀ {M : Type u_1} [inst : Group M], SimpleGraph.mulCayley {1}ᶜ = ⊤

theorem SimpleGraph.addCayley_compl_singleton_zero E0 #

∀ {M : Type u_1} [inst : AddGroup M], SimpleGraph.addCayley {0}ᶜ = ⊤