Equivalence_Class_is_Unique
Provedequivalence-classesproofwiki
Let R be an equivalence relation on S. For each x ∈ S, the one and only one R-class to which x belongs is [x]_R.
Preamble
import Mathlib.Data.Setoid.Basic import Mathlib.Data.Set.Basic
Formal statement
theorem Equivalence_Class_is_Unique {α : Type _} (s : Setoid α) (x : α) (C : Set α) (hx : x ∈ C) (hC : ∀ y, y ∈ C ↔ s.r x y) : C = {y | s.r x y} := by sorrySource