| 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 8705 | . . . . . 6 ⊢ 2o ∈ ω | |
| 2 | nnfi 9237 | . . . . . 6 ⊢ (2o ∈ ω → 2o ∈ Fin) | |
| 3 | 1, 2 | ax-mp 5 | . . . . 5 ⊢ 2o ∈ Fin |
| 4 | simpl1 1212 | . . . . 5 ⊢ (((𝐶 ≈ 2o ∧ 𝐴 ∈ 𝐶 ∧ 𝐵 ∈ 𝐶) ∧ 𝐴 ≠ 𝐵) → 𝐶 ≈ 2o) | |
| 5 | enfii 9255 | . . . . 5 ⊢ ((2o ∈ Fin ∧ 𝐶 ≈ 2o) → 𝐶 ∈ Fin) | |
| 6 | 3, 4, 5 | sylancr 599 | . . . 4 ⊢ (((𝐶 ≈ 2o ∧ 𝐴 ∈ 𝐶 ∧ 𝐵 ∈ 𝐶) ∧ 𝐴 ≠ 𝐵) → 𝐶 ∈ Fin) |
| 7 | simpl2 1213 | . . . . 5 ⊢ (((𝐶 ≈ 2o ∧ 𝐴 ∈ 𝐶 ∧ 𝐵 ∈ 𝐶) ∧ 𝐴 ≠ 𝐵) → 𝐴 ∈ 𝐶) | |
| 8 | simpl3 1214 | . . . . 5 ⊢ (((𝐶 ≈ 2o ∧ 𝐴 ∈ 𝐶 ∧ 𝐵 ∈ 𝐶) ∧ 𝐴 ≠ 𝐵) → 𝐵 ∈ 𝐶) | |
| 9 | 7, 8 | prssd 4791 | . . . 4 ⊢ (((𝐶 ≈ 2o ∧ 𝐴 ∈ 𝐶 ∧ 𝐵 ∈ 𝐶) ∧ 𝐴 ≠ 𝐵) → {𝐴, 𝐵} ⊆ 𝐶) |
| 10 | enpr2 10138 | . . . . . . 7 ⊢ ((𝐴 ∈ 𝐶 ∧ 𝐵 ∈ 𝐶 ∧ 𝐴 ≠ 𝐵) → {𝐴, 𝐵} ≈ 2o) | |
| 11 | 10 | 3expa 1137 | . . . . . 6 ⊢ (((𝐴 ∈ 𝐶 ∧ 𝐵 ∈ 𝐶) ∧ 𝐴 ≠ 𝐵) → {𝐴, 𝐵} ≈ 2o) |
| 12 | 11 | 3adantl1 1187 | . . . . 5 ⊢ (((𝐶 ≈ 2o ∧ 𝐴 ∈ 𝐶 ∧ 𝐵 ∈ 𝐶) ∧ 𝐴 ≠ 𝐵) → {𝐴, 𝐵} ≈ 2o) |
| 13 | 4 | ensymd 9086 | . . . . 5 ⊢ (((𝐶 ≈ 2o ∧ 𝐴 ∈ 𝐶 ∧ 𝐵 ∈ 𝐶) ∧ 𝐴 ≠ 𝐵) → 2o ≈ 𝐶) |
| 14 | entr 9087 | . . . . 5 ⊢ (({𝐴, 𝐵} ≈ 2o ∧ 2o ≈ 𝐶) → {𝐴, 𝐵} ≈ 𝐶) | |
| 15 | 12, 13, 14 | syl2anc 596 | . . . 4 ⊢ (((𝐶 ≈ 2o ∧ 𝐴 ∈ 𝐶 ∧ 𝐵 ∈ 𝐶) ∧ 𝐴 ≠ 𝐵) → {𝐴, 𝐵} ≈ 𝐶) |
| 16 | fisseneq 9308 | . . . 4 ⊢ ((𝐶 ∈ Fin ∧ {𝐴, 𝐵} ⊆ 𝐶 ∧ {𝐴, 𝐵} ≈ 𝐶) → {𝐴, 𝐵} = 𝐶) | |
| 17 | 6, 9, 15, 16 | syl3anc 1401 | . . 3 ⊢ (((𝐶 ≈ 2o ∧ 𝐴 ∈ 𝐶 ∧ 𝐵 ∈ 𝐶) ∧ 𝐴 ≠ 𝐵) → {𝐴, 𝐵} = 𝐶) |
| 18 | 17 | eqcomd 2780 | . 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 1104 = wceq 1572 ∈ wcel 2156 ≠ wne 2970 ⊆ wss 3907 {cpr 4597 class class class wbr 5116 ωcom 7927 2oc2o 8524 ≈ cen 9024 Fincfn 9027 |
| This proof depends on axioms: ax-mp 5 ax-1 6 ax-2 7 ax-3 8 ax-gen 1834 ax-4 1848 ax-5 1951 ax-6 2009 ax-7 2050 ax-8 2158 ax-9 2166 ax-10 2189 ax-11 2206 ax-12 2225 ax-ext 2746 ax-sep 5263 ax-nul 5274 ax-pow 5342 ax-pr 5406 ax-un 7799 |
| This proof depends on definitions: df-bi 210 df-an 402 df-or 862 df-3or 1105 df-3an 1106 df-tru 1575 df-fal 1585 df-ex 1819 df-nf 1823 df-sb 2110 df-mo 2576 df-eu 2606 df-clab 2753 df-cleq 2766 df-clel 2850 df-nfc 2924 df-ne 2971 df-ral 3092 df-rex 3102 df-reu 3377 df-rab 3424 df-v 3463 df-sbc 3750 df-csb 3859 df-ss 3908 df-pss 4024 df-dif 4057 df-in 4101 df-un 4161 df-nul 4289 df-if 4493 df-pw 4569 df-sn 4596 df-pr 4598 df-op 4849 df-uni 4881 df-br 5117 df-opab 5182 df-mpt 5201 df-tr 5227 df-id 5561 df-eprel 5566 df-po 5574 df-so 5575 df-fr 5619 df-we 5621 df-xp 5672 df-rel 5673 df-cnv 5674 df-co 5675 df-dm 5676 df-rn 5677 df-res 5678 df-ima 5679 df-ord 6403 df-on 6404 df-lim 6405 df-suc 6406 df-iota 6532 df-fun 6580 df-fn 6581 df-f 6582 df-f1 6583 df-fo 6584 df-f1o 6585 df-fv 6586 df-om 7928 df-1o 8530 df-2o 8531 df-er 8771 df-en 9028 df-dom 9029 df-sdom 9030 df-fin 9031 |
| This theorem is used by: isprm2lem 16918 en2top 23408 |
| Copyright terms: Public domain | W3C validator |