Skip to content

Commit

Permalink
refactor(combinatorics/simple_graph): simplify proofs (#6115)
Browse files Browse the repository at this point in the history
Co-authors: `lean-gptf`, Stanislas Polu

This was found by `formal-lean-wm-to-tt-m1-m2-v4-c4` when we evaluated it on theorems added to `mathlib` after we last extracted training data.
  • Loading branch information
Jesse Michael Han committed Feb 9, 2021
1 parent d06b11a commit 1611b30
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/combinatorics/simple_graph/basic.lean
Expand Up @@ -212,10 +212,10 @@ lemma common_neighbors_symm (v w : V) : G.common_neighbors v w = G.common_neighb
by { rw [common_neighbors, set.inter_comm], refl }

lemma not_mem_common_neighbors_left (v w : V) : v ∉ G.common_neighbors v w :=
by simp [common_neighbors]
λ h, ne_of_adj G h.1 rfl

lemma not_mem_common_neighbors_right (v w : V) : w ∉ G.common_neighbors v w :=
by simp [common_neighbors]
λ h, ne_of_adj G h.2 rfl

lemma common_neighbors_subset_neighbor_set (v w : V) : G.common_neighbors v w ⊆ G.neighbor_set v :=
by simp [common_neighbors]
Expand Down

0 comments on commit 1611b30

Please sign in to comment.