feat(Combinatorics/SimpleGraph): The Cayley graph for structures with Mul/Add#35084
feat(Combinatorics/SimpleGraph): The Cayley graph for structures with Mul/Add#35084edegeltje wants to merge 11 commits intoleanprover-community:masterfrom
Mul/Add#35084Conversation
PR summary d1366e1a1aImport changes for modified filesNo significant changes to the import graph Import changes for all files
|
| @[to_additive (attr := simp)] | ||
| lemma mulCayley_adj' [Mul G] (u v : G) : | ||
| (mulCayley s).Adj u v ↔ u ≠ v ∧ ∃ g ∈ s, (u * g = v ∨ u = v * g) := by | ||
| simp only [mulCayley, fromRel_adj, ne_eq, and_congr_right_iff] |
There was a problem hiding this comment.
Does unfold mulCayley; grind or unfold mulCayley; aesop work?
There was a problem hiding this comment.
yes, the aesop version works... but i prefer not to use hammers. Is it ok that i changed it to a one-liner using simp instead?
Right now the `cycleGraph` definition relies on `circulantGraph` which requires importing Group definitions from the algebra hierarchy. This causes large-imports for me in later PRs where I try to make more widespread use of cycleGraphs, so here I redefine it to be its own independent object, and leave splitting it from `circulantGraph` to another PR (this is parallel to leanprover-community#35084.)
Right now the `cycleGraph` definition relies on `circulantGraph` which requires importing Group definitions from the algebra hierarchy. This causes large-imports for me in later PRs where I try to make more widespread use of cycleGraphs, so here I redefine it to be its own independent object, and leave splitting it from `circulantGraph` to another PR (this is parallel to leanprover-community#35084.)
This pr:
SimpleGraph.mulCayley, defining the simple graph induced by aMulinstance,SimpleGraph.circulantGraphto useaddCayley,circulantGraphto use the newaddCayleylemmas.some related zulip conversation: https://leanprover.zulipchat.com/#narrow/channel/287929-mathlib4/topic/Cayley.20and.20circulant.20graph/with/572839048