Skip to content

Commit 1234583

Browse files
Fix CompleteMultipartite.lean
1 parent 7dd7cb0 commit 1234583

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

Mathlib/Combinatorics/SimpleGraph/CompleteMultipartite.lean

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -353,7 +353,7 @@ namespace CompleteEquipartiteSubgraph
353353

354354
/-- The parts in a complete equipartite subgraph are pairwise disjoint. -/
355355
theorem disjoint : (K.parts : Set (Finset V)).Pairwise Disjoint :=
356-
fun _ h₁ _ h₂ hne ↦ disjoint_left.mpr fun _ h₁' h₂' ↦
356+
fun _ h₁ _ h₂ hne ↦ Finset.disjoint_left.mpr fun _ h₁' h₂' ↦
357357
(G.loopless _) (K.isCompleteBetween h₁ h₂ hne h₁' h₂')
358358

359359
/-- The finset of vertices in a complete equipartite subgraph. -/
@@ -402,14 +402,15 @@ def ofCopy (f : Copy (completeEquipartiteGraph r t) G) : G.CompleteEquipartiteSu
402402
by_cases ht : t = 0
403403
· exact ⟨∅, .inr ht, by simp, by simp⟩
404404
· refine ⟨univ.map ⟨fun i ↦ univ.map ⟨fun j ↦ f (i, j), fun _ _ h ↦ ?_⟩, fun i₁ i₂ h ↦ ?_⟩,
405-
by simp, fun h ↦ ?_, fun _ h₁ _ h₂ hne _ h₁' _ h₂' ↦ ?_⟩
405+
?_, fun h ↦ ?_, fun _ h₁ _ h₂ hne _ h₁' _ h₂' ↦ ?_⟩
406406
· simpa using f.injective h
407407
· simp_rw [Finset.ext_iff] at h
408408
have : NeZero t := ⟨ht⟩
409409
obtain ⟨_, heq⟩ : ∃ j, f (i₁, j) = f (i₂, 0) := by simpa using h <| f (i₂, 0)
410410
apply f.injective at heq
411411
rw [Prod.mk.injEq] at heq
412412
exact heq.left
413+
· simp
413414
· simp_rw [mem_map, mem_univ, Embedding.coeFn_mk, true_and] at h
414415
replace ⟨_, h⟩ := h
415416
simp [← h]

0 commit comments

Comments
 (0)