| Metamath Proof Explorer |
< Previous
Next >
Nearby theorems |
||
| Mirrors > Home > MPE Home > Th. List > en2eqpr | Structured version Visualization version GIF version | ||
| Description: Building a set with two elements. (Contributed by FL, 11-Aug-2008.) (Revised by Mario Carneiro, 10-Sep-2015.) |
| Ref | Expression |
|---|---|
| en2eqpr | ⊢ ((𝐶 ≈ 2o ∧ 𝐴 ∈ 𝐶 ∧ 𝐵 ∈ 𝐶) → (𝐴 ≠ 𝐵 → 𝐶 = {𝐴, 𝐵})) |
| Step | Hyp | Ref | Expression |
|---|---|---|---|
| 1 | 2onn 8689 | . . . . . 6 ⊢ 2o ∈ ω | |
| 2 | nnfi 9221 | . . . . . 6 ⊢ (2o ∈ ω → 2o ∈ Fin) | |
| 3 | 1, 2 | ax-mp 5 | . . . . 5 ⊢ 2o ∈ Fin |
| 4 | simpl1 1210 | . . . . 5 ⊢ (((𝐶 ≈ 2o ∧ 𝐴 ∈ 𝐶 ∧ 𝐵 ∈ 𝐶) ∧ 𝐴 ≠ 𝐵) → 𝐶 ≈ 2o) | |
| 5 | enfii 9239 | . . . . 5 ⊢ ((2o ∈ Fin ∧ 𝐶 ≈ 2o) → 𝐶 ∈ Fin) | |
| 6 | 3, 4, 5 | sylancr 599 | . . . 4 ⊢ (((𝐶 ≈ 2o ∧ 𝐴 ∈ 𝐶 ∧ 𝐵 ∈ 𝐶) ∧ 𝐴 ≠ 𝐵) → 𝐶 ∈ Fin) |
| 7 | simpl2 1211 | . . . . 5 ⊢ (((𝐶 ≈ 2o ∧ 𝐴 ∈ 𝐶 ∧ 𝐵 ∈ 𝐶) ∧ 𝐴 ≠ 𝐵) → 𝐴 ∈ 𝐶) | |
| 8 | simpl3 1212 | . . . . 5 ⊢ (((𝐶 ≈ 2o ∧ 𝐴 ∈ 𝐶 ∧ 𝐵 ∈ 𝐶) ∧ 𝐴 ≠ 𝐵) → 𝐵 ∈ 𝐶) | |
| 9 | 7, 8 | prssd 4783 | . . . 4 ⊢ (((𝐶 ≈ 2o ∧ 𝐴 ∈ 𝐶 ∧ 𝐵 ∈ 𝐶) ∧ 𝐴 ≠ 𝐵) → {𝐴, 𝐵} ⊆ 𝐶) |
| 10 | enpr2 10122 | . . . . . . 7 ⊢ ((𝐴 ∈ 𝐶 ∧ 𝐵 ∈ 𝐶 ∧ 𝐴 ≠ 𝐵) → {𝐴, 𝐵} ≈ 2o) | |
| 11 | 10 | 3expa 1136 | . . . . . 6 ⊢ (((𝐴 ∈ 𝐶 ∧ 𝐵 ∈ 𝐶) ∧ 𝐴 ≠ 𝐵) → {𝐴, 𝐵} ≈ 2o) |
| 12 | 11 | 3adantl1 1185 | . . . . 5 ⊢ (((𝐶 ≈ 2o ∧ 𝐴 ∈ 𝐶 ∧ 𝐵 ∈ 𝐶) ∧ 𝐴 ≠ 𝐵) → {𝐴, 𝐵} ≈ 2o) |
| 13 | 4 | ensymd 9070 | . . . . 5 ⊢ (((𝐶 ≈ 2o ∧ 𝐴 ∈ 𝐶 ∧ 𝐵 ∈ 𝐶) ∧ 𝐴 ≠ 𝐵) → 2o ≈ 𝐶) |
| 14 | entr 9071 | . . . . 5 ⊢ (({𝐴, 𝐵} ≈ 2o ∧ 2o ≈ 𝐶) → {𝐴, 𝐵} ≈ 𝐶) | |
| 15 | 12, 13, 14 | syl2anc 596 | . . . 4 ⊢ (((𝐶 ≈ 2o ∧ 𝐴 ∈ 𝐶 ∧ 𝐵 ∈ 𝐶) ∧ 𝐴 ≠ 𝐵) → {𝐴, 𝐵} ≈ 𝐶) |
| 16 | fisseneq 9292 | . . . 4 ⊢ ((𝐶 ∈ Fin ∧ {𝐴, 𝐵} ⊆ 𝐶 ∧ {𝐴, 𝐵} ≈ 𝐶) → {𝐴, 𝐵} = 𝐶) | |
| 17 | 6, 9, 15, 16 | syl3anc 1399 | . . 3 ⊢ (((𝐶 ≈ 2o ∧ 𝐴 ∈ 𝐶 ∧ 𝐵 ∈ 𝐶) ∧ 𝐴 ≠ 𝐵) → {𝐴, 𝐵} = 𝐶) |
| 18 | 17 | eqcomd 2769 | . 2 ⊢ (((𝐶 ≈ 2o ∧ 𝐴 ∈ 𝐶 ∧ 𝐵 ∈ 𝐶) ∧ 𝐴 ≠ 𝐵) → 𝐶 = {𝐴, 𝐵}) |
| 19 | 18 | ex 418 | 1 ⊢ ((𝐶 ≈ 2o ∧ 𝐴 ∈ 𝐶 ∧ 𝐵 ∈ 𝐶) → (𝐴 ≠ 𝐵 → 𝐶 = {𝐴, 𝐵})) |
| Colors of variables: wff setvar class |
| This proof depends on syntax axioms: → wi 4 ∧ wa 401 ∧ w3a 1103 = wceq 1570 ∈ wcel 2147 ≠ wne 2959 ⊆ wss 3900 {cpr 4590 class class class wbr 5108 ωcom 7911 2oc2o 8508 ≈ cen 9008 Fincfn 9011 |
| This proof depends on axioms: ax-mp 5 ax-1 6 ax-2 7 ax-3 8 ax-gen 1828 ax-4 1842 ax-5 1945 ax-6 2002 ax-7 2043 ax-8 2149 ax-9 2157 ax-10 2180 ax-11 2197 ax-12 2216 ax-ext 2735 ax-sep 5255 ax-nul 5266 ax-pow 5334 ax-pr 5398 ax-un 7783 |
| This proof depends on definitions: df-bi 210 df-an 402 df-or 862 df-3or 1104 df-3an 1105 df-tru 1573 df-fal 1583 df-ex 1813 df-nf 1817 df-sb 2102 df-mo 2567 df-eu 2597 df-clab 2742 df-cleq 2755 df-clel 2839 df-nfc 2913 df-ne 2960 df-ral 3081 df-rex 3091 df-reu 3370 df-rab 3417 df-v 3456 df-sbc 3743 df-csb 3852 df-ss 3901 df-pss 4017 df-dif 4050 df-in 4094 df-un 4154 df-nul 4282 df-if 4486 df-pw 4562 df-sn 4589 df-pr 4591 df-op 4841 df-uni 4873 df-br 5109 df-opab 5174 df-mpt 5193 df-tr 5219 df-id 5553 df-eprel 5558 df-po 5566 df-so 5567 df-fr 5611 df-we 5613 df-xp 5664 df-rel 5665 df-cnv 5666 df-co 5667 df-dm 5668 df-rn 5669 df-res 5670 df-ima 5671 df-ord 6391 df-on 6392 df-lim 6393 df-suc 6394 df-iota 6520 df-fun 6568 df-fn 6569 df-f 6570 df-f1 6571 df-fo 6572 df-f1o 6573 df-fv 6574 df-om 7912 df-1o 8514 df-2o 8515 df-er 8755 df-en 9012 df-dom 9013 df-sdom 9014 df-fin 9015 |
| This theorem is used by: isprm2lem 16900 en2top 23358 |
| Copyright terms: Public domain | W3C validator |