Theorem: Sym2.filter_image_quotient_mk''_isDiag
File: Mathlib/Data/Sym/Sym2.lean

tactic: ext z
state_before: α : Type u_1
β : Type ?u.115916
γ : Type ?u.115919
inst✝ : DecidableEq α
s : Finset α
⊢ filter IsDiag (image Quotient.mk'' (s ×ˢ s)) = image Quotient.mk'' (Finset.diag s)

tactic: induction' z using Sym2.inductionOn
state_before: case a
α : Type u_1
β : Type ?u.115916
γ : Type ?u.115919
inst✝ : DecidableEq α
s : Finset α
z : Sym2 α
⊢ z ∈ filter IsDiag (image Quotient.mk'' (s ×ˢ s)) ↔ z ∈ image Quotient.mk'' (Finset.diag s)

tactic: simp only [mem_image, mem_diag, exists_prop, mem_filter, Prod.exists, mem_product]
state_before: case a.hf
α : Type u_1
β : Type ?u.115916
γ : Type ?u.115919
inst✝ : DecidableEq α
s : Finset α
x✝ y✝ : α
⊢ Quotient.mk (Rel.setoid α) (x✝, y✝) ∈ filter IsDiag (image Quotient.mk'' (s ×ˢ s)) ↔
    Quotient.mk (Rel.setoid α) (x✝, y✝) ∈ image Quotient.mk'' (Finset.diag s)

tactic: constructor
state_before: case a.hf
α : Type u_1
β : Type ?u.115916
γ : Type ?u.115919
inst✝ : DecidableEq α
s : Finset α
x✝ y✝ : α
⊢ (∃ a b, (a ∈ s ∧ b ∈ s) ∧ Quotient.mk'' (a, b) = Quotient.mk (Rel.setoid α) (x✝, y✝)) ∧
      IsDiag (Quotient.mk (Rel.setoid α) (x✝, y✝)) ↔
    ∃ a b, (a ∈ s ∧ a = b) ∧ Quotient.mk'' (a, b) = Quotient.mk (Rel.setoid α) (x✝, y✝)

tactic: rintro ⟨⟨a, b, ⟨ha, hb⟩, (h : Quotient.mk _ _ = _)⟩, hab⟩
state_before: case a.hf.mp
α : Type u_1
β : Type ?u.115916
γ : Type ?u.115919
inst✝ : DecidableEq α
s : Finset α
x✝ y✝ : α
⊢ (∃ a b, (a ∈ s ∧ b ∈ s) ∧ Quotient.mk'' (a, b) = Quotient.mk (Rel.setoid α) (x✝, y✝)) ∧
      IsDiag (Quotient.mk (Rel.setoid α) (x✝, y✝)) →
    ∃ a b, (a ∈ s ∧ a = b) ∧ Quotient.mk'' (a, b) = Quotient.mk (Rel.setoid α) (x✝, y✝)

tactic: rw [← h, Sym2.mk''_isDiag_iff] at hab
state_before: case a.hf.mp.intro.intro.intro.intro.intro
α : Type u_1
β : Type ?u.115916
γ : Type ?u.115919
inst✝ : DecidableEq α
s : Finset α
x✝ y✝ : α
hab : IsDiag (Quotient.mk (Rel.setoid α) (x✝, y✝))
a b : α
h : Quotient.mk (Rel.setoid α) (a, b) = Quotient.mk (Rel.setoid α) (x✝, y✝)
ha : a ∈ s
hb : b ∈ s
⊢ ∃ a b, (a ∈ s ∧ a = b) ∧ Quotient.mk'' (a, b) = Quotient.mk (Rel.setoid α) (x✝, y✝)

tactic: exact ⟨a, b, ⟨ha, hab⟩, h⟩
state_before: case a.hf.mp.intro.intro.intro.intro.intro
α : Type u_1
β : Type ?u.115916
γ : Type ?u.115919
inst✝ : DecidableEq α
s : Finset α
x✝ y✝ a b : α
hab : a = b
h : Quotient.mk (Rel.setoid α) (a, b) = Quotient.mk (Rel.setoid α) (x✝, y✝)
ha : a ∈ s
hb : b ∈ s
⊢ ∃ a b, (a ∈ s ∧ a = b) ∧ Quotient.mk'' (a, b) = Quotient.mk (Rel.setoid α) (x✝, y✝)

tactic: rintro ⟨a, b, ⟨ha, rfl⟩, h⟩
state_before: case a.hf.mpr
α : Type u_1
β : Type ?u.115916
γ : Type ?u.115919
inst✝ : DecidableEq α
s : Finset α
x✝ y✝ : α
⊢ (∃ a b, (a ∈ s ∧ a = b) ∧ Quotient.mk'' (a, b) = Quotient.mk (Rel.setoid α) (x✝, y✝)) →
    (∃ a b, (a ∈ s ∧ b ∈ s) ∧ Quotient.mk'' (a, b) = Quotient.mk (Rel.setoid α) (x✝, y✝)) ∧
      IsDiag (Quotient.mk (Rel.setoid α) (x✝, y✝))

tactic: rw [← h]
state_before: case a.hf.mpr.intro.intro.intro.intro
α : Type u_1
β : Type ?u.115916
γ : Type ?u.115919
inst✝ : DecidableEq α
s : Finset α
x✝ y✝ a : α
ha : a ∈ s
h : Quotient.mk'' (a, a) = Quotient.mk (Rel.setoid α) (x✝, y✝)
⊢ (∃ a b, (a ∈ s ∧ b ∈ s) ∧ Quotient.mk'' (a, b) = Quotient.mk (Rel.setoid α) (x✝, y✝)) ∧
    IsDiag (Quotient.mk (Rel.setoid α) (x✝, y✝))

tactic: exact ⟨⟨a, a, ⟨ha, ha⟩, rfl⟩, rfl⟩
state_before: case a.hf.mpr.intro.intro.intro.intro
α : Type u_1
β : Type ?u.115916
γ : Type ?u.115919
inst✝ : DecidableEq α
s : Finset α
x✝ y✝ a : α
ha : a ∈ s
h : Quotient.mk'' (a, a) = Quotient.mk (Rel.setoid α) (x✝, y✝)
⊢ (∃ a_1 b, (a_1 ∈ s ∧ b ∈ s) ∧ Quotient.mk'' (a_1, b) = Quotient.mk'' (a, a)) ∧ IsDiag (Quotient.mk'' (a, a))