Metamath Proof Explorer


Theorem card1

Description: A set has cardinality one iff it is a singleton. (Contributed by Mario Carneiro, 10-Jan-2013)

Ref Expression
Assertion card1 card A = 1 𝑜 x A = x

Proof

Step Hyp Ref Expression
1 1onn 1 𝑜 ω
2 cardnn 1 𝑜 ω card 1 𝑜 = 1 𝑜
3 1 2 ax-mp card 1 𝑜 = 1 𝑜
4 1n0 1 𝑜
5 3 4 eqnetri card 1 𝑜
6 carden2a card 1 𝑜 = card A card 1 𝑜 1 𝑜 A
7 5 6 mpan2 card 1 𝑜 = card A 1 𝑜 A
8 7 eqcoms card A = card 1 𝑜 1 𝑜 A
9 8 ensymd card A = card 1 𝑜 A 1 𝑜
10 carden2b A 1 𝑜 card A = card 1 𝑜
11 9 10 impbii card A = card 1 𝑜 A 1 𝑜
12 3 eqeq2i card A = card 1 𝑜 card A = 1 𝑜
13 en1 A 1 𝑜 x A = x
14 11 12 13 3bitr3i card A = 1 𝑜 x A = x