ILE Home Intuitionistic Logic Explorer < Previous   Next >
Nearby theorems
Mirrors  >  Home  >  ILE Home  >  Th. List  >  en2 GIF version

Theorem en2 6997
Description: A set equinumerous to ordinal 2 is an unordered pair. (Contributed by Mario Carneiro, 5-Jan-2016.)
Assertion
Ref Expression
en2 (𝐴 ≈ 2o → ∃𝑥𝑦 𝐴 = {𝑥, 𝑦})
Distinct variable group:   𝑥,𝐴,𝑦

Proof of Theorem en2
Dummy variable 𝑓 is distinct from all other variables.
StepHypRef Expression
1 bren 6916 . . 3 (𝐴 ≈ 2o ↔ ∃𝑓 𝑓:𝐴1-1-onto→2o)
21biimpi 120 . 2 (𝐴 ≈ 2o → ∃𝑓 𝑓:𝐴1-1-onto→2o)
3 cnvimarndm 5100 . . . . 5 (𝑓 “ ran 𝑓) = dom 𝑓
4 dff1o2 5588 . . . . . . . . 9 (𝑓:𝐴1-1-onto→2o ↔ (𝑓 Fn 𝐴 ∧ Fun 𝑓 ∧ ran 𝑓 = 2o))
54simp3bi 1040 . . . . . . . 8 (𝑓:𝐴1-1-onto→2o → ran 𝑓 = 2o)
6 df2o3 6596 . . . . . . . 8 2o = {∅, 1o}
75, 6eqtrdi 2280 . . . . . . 7 (𝑓:𝐴1-1-onto→2o → ran 𝑓 = {∅, 1o})
87imaeq2d 5076 . . . . . 6 (𝑓:𝐴1-1-onto→2o → (𝑓 “ ran 𝑓) = (𝑓 “ {∅, 1o}))
98adantl 277 . . . . 5 ((𝐴 ≈ 2o𝑓:𝐴1-1-onto→2o) → (𝑓 “ ran 𝑓) = (𝑓 “ {∅, 1o}))
103, 9eqtr3id 2278 . . . 4 ((𝐴 ≈ 2o𝑓:𝐴1-1-onto→2o) → dom 𝑓 = (𝑓 “ {∅, 1o}))
11 f1odm 5587 . . . . 5 (𝑓:𝐴1-1-onto→2o → dom 𝑓 = 𝐴)
1211adantl 277 . . . 4 ((𝐴 ≈ 2o𝑓:𝐴1-1-onto→2o) → dom 𝑓 = 𝐴)
13 f1ocnv 5596 . . . . . . 7 (𝑓:𝐴1-1-onto→2o𝑓:2o1-1-onto𝐴)
1413adantl 277 . . . . . 6 ((𝐴 ≈ 2o𝑓:𝐴1-1-onto→2o) → 𝑓:2o1-1-onto𝐴)
15 f1ofn 5584 . . . . . 6 (𝑓:2o1-1-onto𝐴𝑓 Fn 2o)
1614, 15syl 14 . . . . 5 ((𝐴 ≈ 2o𝑓:𝐴1-1-onto→2o) → 𝑓 Fn 2o)
17 0lt2o 6608 . . . . . 6 ∅ ∈ 2o
1817a1i 9 . . . . 5 ((𝐴 ≈ 2o𝑓:𝐴1-1-onto→2o) → ∅ ∈ 2o)
19 1lt2o 6609 . . . . . 6 1o ∈ 2o
2019a1i 9 . . . . 5 ((𝐴 ≈ 2o𝑓:𝐴1-1-onto→2o) → 1o ∈ 2o)
21 fnimapr 5706 . . . . 5 ((𝑓 Fn 2o ∧ ∅ ∈ 2o ∧ 1o ∈ 2o) → (𝑓 “ {∅, 1o}) = {(𝑓‘∅), (𝑓‘1o)})
2216, 18, 20, 21syl3anc 1273 . . . 4 ((𝐴 ≈ 2o𝑓:𝐴1-1-onto→2o) → (𝑓 “ {∅, 1o}) = {(𝑓‘∅), (𝑓‘1o)})
2310, 12, 223eqtr3d 2272 . . 3 ((𝐴 ≈ 2o𝑓:𝐴1-1-onto→2o) → 𝐴 = {(𝑓‘∅), (𝑓‘1o)})
24 simpr 110 . . . . 5 ((𝐴 ≈ 2o𝑓:𝐴1-1-onto→2o) → 𝑓:𝐴1-1-onto→2o)
25 f1ocnvdm 5921 . . . . 5 ((𝑓:𝐴1-1-onto→2o ∧ ∅ ∈ 2o) → (𝑓‘∅) ∈ 𝐴)
2624, 17, 25sylancl 413 . . . 4 ((𝐴 ≈ 2o𝑓:𝐴1-1-onto→2o) → (𝑓‘∅) ∈ 𝐴)
27 f1ocnvdm 5921 . . . . . 6 ((𝑓:𝐴1-1-onto→2o ∧ 1o ∈ 2o) → (𝑓‘1o) ∈ 𝐴)
2824, 19, 27sylancl 413 . . . . 5 ((𝐴 ≈ 2o𝑓:𝐴1-1-onto→2o) → (𝑓‘1o) ∈ 𝐴)
29 preq2 3749 . . . . . . 7 (𝑦 = (𝑓‘1o) → {(𝑓‘∅), 𝑦} = {(𝑓‘∅), (𝑓‘1o)})
3029eqeq2d 2243 . . . . . 6 (𝑦 = (𝑓‘1o) → (𝐴 = {(𝑓‘∅), 𝑦} ↔ 𝐴 = {(𝑓‘∅), (𝑓‘1o)}))
3130spcegv 2894 . . . . 5 ((𝑓‘1o) ∈ 𝐴 → (𝐴 = {(𝑓‘∅), (𝑓‘1o)} → ∃𝑦 𝐴 = {(𝑓‘∅), 𝑦}))
3228, 31syl 14 . . . 4 ((𝐴 ≈ 2o𝑓:𝐴1-1-onto→2o) → (𝐴 = {(𝑓‘∅), (𝑓‘1o)} → ∃𝑦 𝐴 = {(𝑓‘∅), 𝑦}))
33 preq1 3748 . . . . . . 7 (𝑥 = (𝑓‘∅) → {𝑥, 𝑦} = {(𝑓‘∅), 𝑦})
3433eqeq2d 2243 . . . . . 6 (𝑥 = (𝑓‘∅) → (𝐴 = {𝑥, 𝑦} ↔ 𝐴 = {(𝑓‘∅), 𝑦}))
3534exbidv 1873 . . . . 5 (𝑥 = (𝑓‘∅) → (∃𝑦 𝐴 = {𝑥, 𝑦} ↔ ∃𝑦 𝐴 = {(𝑓‘∅), 𝑦}))
3635spcegv 2894 . . . 4 ((𝑓‘∅) ∈ 𝐴 → (∃𝑦 𝐴 = {(𝑓‘∅), 𝑦} → ∃𝑥𝑦 𝐴 = {𝑥, 𝑦}))
3726, 32, 36sylsyld 58 . . 3 ((𝐴 ≈ 2o𝑓:𝐴1-1-onto→2o) → (𝐴 = {(𝑓‘∅), (𝑓‘1o)} → ∃𝑥𝑦 𝐴 = {𝑥, 𝑦}))
3823, 37mpd 13 . 2 ((𝐴 ≈ 2o𝑓:𝐴1-1-onto→2o) → ∃𝑥𝑦 𝐴 = {𝑥, 𝑦})
392, 38exlimddv 1947 1 (𝐴 ≈ 2o → ∃𝑥𝑦 𝐴 = {𝑥, 𝑦})
Colors of variables: wff set class
Syntax hints:  wi 4  wa 104   = wceq 1397  wex 1540  wcel 2202  c0 3494  {cpr 3670   class class class wbr 4088  ccnv 4724  dom cdm 4725  ran crn 4726  cima 4728  Fun wfun 5320   Fn wfn 5321  1-1-ontowf1o 5325  cfv 5326  1oc1o 6574  2oc2o 6575  cen 6906
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-ia1 106  ax-ia2 107  ax-ia3 108  ax-in1 619  ax-in2 620  ax-io 716  ax-5 1495  ax-7 1496  ax-gen 1497  ax-ie1 1541  ax-ie2 1542  ax-8 1552  ax-10 1553  ax-11 1554  ax-i12 1555  ax-bndl 1557  ax-4 1558  ax-17 1574  ax-i9 1578  ax-ial 1582  ax-i5r 1583  ax-13 2204  ax-14 2205  ax-ext 2213  ax-sep 4207  ax-nul 4215  ax-pow 4264  ax-pr 4299  ax-un 4530
This theorem depends on definitions:  df-bi 117  df-3an 1006  df-tru 1400  df-nf 1509  df-sb 1811  df-eu 2082  df-mo 2083  df-clab 2218  df-cleq 2224  df-clel 2227  df-nfc 2363  df-ral 2515  df-rex 2516  df-v 2804  df-sbc 3032  df-dif 3202  df-un 3204  df-in 3206  df-ss 3213  df-nul 3495  df-pw 3654  df-sn 3675  df-pr 3676  df-op 3678  df-uni 3894  df-br 4089  df-opab 4151  df-tr 4188  df-id 4390  df-iord 4463  df-on 4465  df-suc 4468  df-xp 4731  df-rel 4732  df-cnv 4733  df-co 4734  df-dm 4735  df-rn 4736  df-res 4737  df-ima 4738  df-iota 5286  df-fun 5328  df-fn 5329  df-f 5330  df-f1 5331  df-fo 5332  df-f1o 5333  df-fv 5334  df-1o 6581  df-2o 6582  df-en 6909
This theorem is referenced by:  en2m  6998  en2prde  7397  upgrex  15953  upgr1een  15974
  Copyright terms: Public domain W3C validator