Skip to content

Commit 64222c6

Browse files
committed
chore(Combinatorics/SimpleGraph): golf circulantGraph_eq_symm using grind (#31605)
1 parent eb32afc commit 64222c6

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

Mathlib/Combinatorics/SimpleGraph/Circulant.lean

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -44,11 +44,9 @@ theorem circulantGraph_eq_erase_zero : circulantGraph s = circulantGraph (s \ {0
4444
| inr h1 => exact Or.inr h1.left
4545

4646
theorem circulantGraph_eq_symm : circulantGraph s = circulantGraph (s ∪ (-s)) := by
47-
ext (u v : G)
48-
simp only [circulantGraph, fromRel_adj, Set.mem_union, Set.mem_neg, neg_sub, and_congr_right_iff,
49-
iff_self_or]
50-
intro _ h
51-
exact Or.symm h
47+
ext
48+
simp only [circulantGraph_adj, Set.mem_union, Set.mem_neg, neg_sub]
49+
grind
5250

5351
instance [DecidableEq G] [DecidablePred (· ∈ s)] : DecidableRel (circulantGraph s).Adj :=
5452
fun _ _ => inferInstanceAs (Decidable (_ ∧ _))

0 commit comments

Comments
 (0)