Mathlib

Membership is the primitive: x ∈ A or not. Extensionality says a set is its elements.