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

Theorem en2 7041
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 6960 . . 3 (𝐴 ≈ 2o ↔ ∃𝑓 𝑓:𝐴1-1-onto→2o)
21biimpi 120 . 2 (𝐴 ≈ 2o → ∃𝑓 𝑓:𝐴1-1-onto→2o)
3 cnvimarndm 5107 . . . . 5 (𝑓 “ ran 𝑓) = dom 𝑓
4 dff1o2 5597 . . . . . . . . 9 (𝑓:𝐴1-1-onto→2o ↔ (𝑓 Fn 𝐴 ∧ Fun 𝑓 ∧ ran 𝑓 = 2o))
54simp3bi 1041 . . . . . . . 8 (𝑓:𝐴1-1-onto→2o → ran 𝑓 = 2o)
6 df2o3 6640 . . . . . . . 8 2o = {∅, 1o}
75, 6eqtrdi 2280 . . . . . . 7 (𝑓:𝐴1-1-onto→2o → ran 𝑓 = {∅, 1o})
87imaeq2d 5082 . . . . . 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 5596 . . . . 5 (𝑓:𝐴1-1-onto→2o → dom 𝑓 = 𝐴)
1211adantl 277 . . . 4 ((𝐴 ≈ 2o𝑓:𝐴1-1-onto→2o) → dom 𝑓 = 𝐴)
13 f1ocnv 5605 . . . . . . 7 (𝑓:𝐴1-1-onto→2o𝑓:2o1-1-onto𝐴)
1413adantl 277 . . . . . 6 ((𝐴 ≈ 2o𝑓:𝐴1-1-onto→2o) → 𝑓:2o1-1-onto𝐴)
15 f1ofn 5593 . . . . . 6 (𝑓:2o1-1-onto𝐴𝑓 Fn 2o)
1614, 15syl 14 . . . . 5 ((𝐴 ≈ 2o𝑓:𝐴1-1-onto→2o) → 𝑓 Fn 2o)
17 0lt2o 6652 . . . . . 6 ∅ ∈ 2o
1817a1i 9 . . . . 5 ((𝐴 ≈ 2o𝑓:𝐴1-1-onto→2o) → ∅ ∈ 2o)
19 1lt2o 6653 . . . . . 6 1o ∈ 2o
2019a1i 9 . . . . 5 ((𝐴 ≈ 2o𝑓:𝐴1-1-onto→2o) → 1o ∈ 2o)
21 fnimapr 5715 . . . . 5 ((𝑓 Fn 2o ∧ ∅ ∈ 2o ∧ 1o ∈ 2o) → (𝑓 “ {∅, 1o}) = {(𝑓‘∅), (𝑓‘1o)})
2216, 18, 20, 21syl3anc 1274 . . . 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 5932 . . . . 5 ((𝑓:𝐴1-1-onto→2o ∧ ∅ ∈ 2o) → (𝑓‘∅) ∈ 𝐴)
2624, 17, 25sylancl 413 . . . 4 ((𝐴 ≈ 2o𝑓:𝐴1-1-onto→2o) → (𝑓‘∅) ∈ 𝐴)
27 f1ocnvdm 5932 . . . . . 6 ((𝑓:𝐴1-1-onto→2o ∧ 1o ∈ 2o) → (𝑓‘1o) ∈ 𝐴)
2824, 19, 27sylancl 413 . . . . 5 ((𝐴 ≈ 2o𝑓:𝐴1-1-onto→2o) → (𝑓‘1o) ∈ 𝐴)
29 preq2 3753 . . . . . . 7 (𝑦 = (𝑓‘1o) → {(𝑓‘∅), 𝑦} = {(𝑓‘∅), (𝑓‘1o)})
3029eqeq2d 2243 . . . . . 6 (𝑦 = (𝑓‘1o) → (𝐴 = {(𝑓‘∅), 𝑦} ↔ 𝐴 = {(𝑓‘∅), (𝑓‘1o)}))
3130spcegv 2895 . . . . 5 ((𝑓‘1o) ∈ 𝐴 → (𝐴 = {(𝑓‘∅), (𝑓‘1o)} → ∃𝑦 𝐴 = {(𝑓‘∅), 𝑦}))
3228, 31syl 14 . . . 4 ((𝐴 ≈ 2o𝑓:𝐴1-1-onto→2o) → (𝐴 = {(𝑓‘∅), (𝑓‘1o)} → ∃𝑦 𝐴 = {(𝑓‘∅), 𝑦}))
33 preq1 3752 . . . . . . 7 (𝑥 = (𝑓‘∅) → {𝑥, 𝑦} = {(𝑓‘∅), 𝑦})
3433eqeq2d 2243 . . . . . 6 (𝑥 = (𝑓‘∅) → (𝐴 = {𝑥, 𝑦} ↔ 𝐴 = {(𝑓‘∅), 𝑦}))
3534exbidv 1873 . . . . 5 (𝑥 = (𝑓‘∅) → (∃𝑦 𝐴 = {𝑥, 𝑦} ↔ ∃𝑦 𝐴 = {(𝑓‘∅), 𝑦}))
3635spcegv 2895 . . . 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 1398  wex 1541  wcel 2202  c0 3496  {cpr 3674   class class class wbr 4093  ccnv 4730  dom cdm 4731  ran crn 4732  cima 4734  Fun wfun 5327   Fn wfn 5328  1-1-ontowf1o 5332  cfv 5333  1oc1o 6618  2oc2o 6619  cen 6950
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 717  ax-5 1496  ax-7 1497  ax-gen 1498  ax-ie1 1542  ax-ie2 1543  ax-8 1553  ax-10 1554  ax-11 1555  ax-i12 1556  ax-bndl 1558  ax-4 1559  ax-17 1575  ax-i9 1579  ax-ial 1583  ax-i5r 1584  ax-13 2204  ax-14 2205  ax-ext 2213  ax-sep 4212  ax-nul 4220  ax-pow 4270  ax-pr 4305  ax-un 4536
This theorem depends on definitions:  df-bi 117  df-3an 1007  df-tru 1401  df-nf 1510  df-sb 1811  df-eu 2082  df-mo 2083  df-clab 2218  df-cleq 2224  df-clel 2227  df-nfc 2364  df-ral 2516  df-rex 2517  df-v 2805  df-sbc 3033  df-dif 3203  df-un 3205  df-in 3207  df-ss 3214  df-nul 3497  df-pw 3658  df-sn 3679  df-pr 3680  df-op 3682  df-uni 3899  df-br 4094  df-opab 4156  df-tr 4193  df-id 4396  df-iord 4469  df-on 4471  df-suc 4474  df-xp 4737  df-rel 4738  df-cnv 4739  df-co 4740  df-dm 4741  df-rn 4742  df-res 4743  df-ima 4744  df-iota 5293  df-fun 5335  df-fn 5336  df-f 5337  df-f1 5338  df-fo 5339  df-f1o 5340  df-fv 5341  df-1o 6625  df-2o 6626  df-en 6953
This theorem is referenced by:  en2m  7042  en2prde  7441  upgrex  16027  upgr1een  16048
  Copyright terms: Public domain W3C validator