MPE Home Metamath Proof Explorer < Previous   Next >
Nearby theorems
Mirrors  >  Home  >  MPE Home  >  Th. List  >  xpsff1o Structured version   Visualization version   GIF version

Theorem xpsff1o 17195
Description: The function appearing in xpsval 17198 is a bijection from the cartesian product to the indexed cartesian product indexed on the pair 2o = {∅, 1o}. (Contributed by Mario Carneiro, 15-Aug-2015.)
Hypothesis
Ref Expression
xpsff1o.f 𝐹 = (𝑥𝐴, 𝑦𝐵 ↦ {⟨∅, 𝑥⟩, ⟨1o, 𝑦⟩})
Assertion
Ref Expression
xpsff1o 𝐹:(𝐴 × 𝐵)–1-1-ontoX𝑘 ∈ 2o if(𝑘 = ∅, 𝐴, 𝐵)
Distinct variable groups:   𝐴,𝑘,𝑥,𝑦   𝐵,𝑘,𝑥,𝑦
Allowed substitution hints:   𝐹(𝑥,𝑦,𝑘)

Proof of Theorem xpsff1o
Dummy variables 𝑎 𝑏 𝑧 𝑤 are mutually distinct and distinct from all other variables.
StepHypRef Expression
1 xpsfrnel2 17192 . . . . . 6 ({⟨∅, 𝑥⟩, ⟨1o, 𝑦⟩} ∈ X𝑘 ∈ 2o if(𝑘 = ∅, 𝐴, 𝐵) ↔ (𝑥𝐴𝑦𝐵))
21biimpri 227 . . . . 5 ((𝑥𝐴𝑦𝐵) → {⟨∅, 𝑥⟩, ⟨1o, 𝑦⟩} ∈ X𝑘 ∈ 2o if(𝑘 = ∅, 𝐴, 𝐵))
32rgen2 3126 . . . 4 𝑥𝐴𝑦𝐵 {⟨∅, 𝑥⟩, ⟨1o, 𝑦⟩} ∈ X𝑘 ∈ 2o if(𝑘 = ∅, 𝐴, 𝐵)
4 xpsff1o.f . . . . 5 𝐹 = (𝑥𝐴, 𝑦𝐵 ↦ {⟨∅, 𝑥⟩, ⟨1o, 𝑦⟩})
54fmpo 7881 . . . 4 (∀𝑥𝐴𝑦𝐵 {⟨∅, 𝑥⟩, ⟨1o, 𝑦⟩} ∈ X𝑘 ∈ 2o if(𝑘 = ∅, 𝐴, 𝐵) ↔ 𝐹:(𝐴 × 𝐵)⟶X𝑘 ∈ 2o if(𝑘 = ∅, 𝐴, 𝐵))
63, 5mpbi 229 . . 3 𝐹:(𝐴 × 𝐵)⟶X𝑘 ∈ 2o if(𝑘 = ∅, 𝐴, 𝐵)
7 1st2nd2 7843 . . . . . . . 8 (𝑧 ∈ (𝐴 × 𝐵) → 𝑧 = ⟨(1st𝑧), (2nd𝑧)⟩)
87fveq2d 6760 . . . . . . 7 (𝑧 ∈ (𝐴 × 𝐵) → (𝐹𝑧) = (𝐹‘⟨(1st𝑧), (2nd𝑧)⟩))
9 df-ov 7258 . . . . . . . 8 ((1st𝑧)𝐹(2nd𝑧)) = (𝐹‘⟨(1st𝑧), (2nd𝑧)⟩)
10 xp1st 7836 . . . . . . . . 9 (𝑧 ∈ (𝐴 × 𝐵) → (1st𝑧) ∈ 𝐴)
11 xp2nd 7837 . . . . . . . . 9 (𝑧 ∈ (𝐴 × 𝐵) → (2nd𝑧) ∈ 𝐵)
124xpsfval 17194 . . . . . . . . 9 (((1st𝑧) ∈ 𝐴 ∧ (2nd𝑧) ∈ 𝐵) → ((1st𝑧)𝐹(2nd𝑧)) = {⟨∅, (1st𝑧)⟩, ⟨1o, (2nd𝑧)⟩})
1310, 11, 12syl2anc 583 . . . . . . . 8 (𝑧 ∈ (𝐴 × 𝐵) → ((1st𝑧)𝐹(2nd𝑧)) = {⟨∅, (1st𝑧)⟩, ⟨1o, (2nd𝑧)⟩})
149, 13eqtr3id 2793 . . . . . . 7 (𝑧 ∈ (𝐴 × 𝐵) → (𝐹‘⟨(1st𝑧), (2nd𝑧)⟩) = {⟨∅, (1st𝑧)⟩, ⟨1o, (2nd𝑧)⟩})
158, 14eqtrd 2778 . . . . . 6 (𝑧 ∈ (𝐴 × 𝐵) → (𝐹𝑧) = {⟨∅, (1st𝑧)⟩, ⟨1o, (2nd𝑧)⟩})
16 1st2nd2 7843 . . . . . . . 8 (𝑤 ∈ (𝐴 × 𝐵) → 𝑤 = ⟨(1st𝑤), (2nd𝑤)⟩)
1716fveq2d 6760 . . . . . . 7 (𝑤 ∈ (𝐴 × 𝐵) → (𝐹𝑤) = (𝐹‘⟨(1st𝑤), (2nd𝑤)⟩))
18 df-ov 7258 . . . . . . . 8 ((1st𝑤)𝐹(2nd𝑤)) = (𝐹‘⟨(1st𝑤), (2nd𝑤)⟩)
19 xp1st 7836 . . . . . . . . 9 (𝑤 ∈ (𝐴 × 𝐵) → (1st𝑤) ∈ 𝐴)
20 xp2nd 7837 . . . . . . . . 9 (𝑤 ∈ (𝐴 × 𝐵) → (2nd𝑤) ∈ 𝐵)
214xpsfval 17194 . . . . . . . . 9 (((1st𝑤) ∈ 𝐴 ∧ (2nd𝑤) ∈ 𝐵) → ((1st𝑤)𝐹(2nd𝑤)) = {⟨∅, (1st𝑤)⟩, ⟨1o, (2nd𝑤)⟩})
2219, 20, 21syl2anc 583 . . . . . . . 8 (𝑤 ∈ (𝐴 × 𝐵) → ((1st𝑤)𝐹(2nd𝑤)) = {⟨∅, (1st𝑤)⟩, ⟨1o, (2nd𝑤)⟩})
2318, 22eqtr3id 2793 . . . . . . 7 (𝑤 ∈ (𝐴 × 𝐵) → (𝐹‘⟨(1st𝑤), (2nd𝑤)⟩) = {⟨∅, (1st𝑤)⟩, ⟨1o, (2nd𝑤)⟩})
2417, 23eqtrd 2778 . . . . . 6 (𝑤 ∈ (𝐴 × 𝐵) → (𝐹𝑤) = {⟨∅, (1st𝑤)⟩, ⟨1o, (2nd𝑤)⟩})
2515, 24eqeqan12d 2752 . . . . 5 ((𝑧 ∈ (𝐴 × 𝐵) ∧ 𝑤 ∈ (𝐴 × 𝐵)) → ((𝐹𝑧) = (𝐹𝑤) ↔ {⟨∅, (1st𝑧)⟩, ⟨1o, (2nd𝑧)⟩} = {⟨∅, (1st𝑤)⟩, ⟨1o, (2nd𝑤)⟩}))
26 fveq1 6755 . . . . . . . 8 ({⟨∅, (1st𝑧)⟩, ⟨1o, (2nd𝑧)⟩} = {⟨∅, (1st𝑤)⟩, ⟨1o, (2nd𝑤)⟩} → ({⟨∅, (1st𝑧)⟩, ⟨1o, (2nd𝑧)⟩}‘∅) = ({⟨∅, (1st𝑤)⟩, ⟨1o, (2nd𝑤)⟩}‘∅))
27 fvex 6769 . . . . . . . . 9 (1st𝑧) ∈ V
28 fvpr0o 17187 . . . . . . . . 9 ((1st𝑧) ∈ V → ({⟨∅, (1st𝑧)⟩, ⟨1o, (2nd𝑧)⟩}‘∅) = (1st𝑧))
2927, 28ax-mp 5 . . . . . . . 8 ({⟨∅, (1st𝑧)⟩, ⟨1o, (2nd𝑧)⟩}‘∅) = (1st𝑧)
30 fvex 6769 . . . . . . . . 9 (1st𝑤) ∈ V
31 fvpr0o 17187 . . . . . . . . 9 ((1st𝑤) ∈ V → ({⟨∅, (1st𝑤)⟩, ⟨1o, (2nd𝑤)⟩}‘∅) = (1st𝑤))
3230, 31ax-mp 5 . . . . . . . 8 ({⟨∅, (1st𝑤)⟩, ⟨1o, (2nd𝑤)⟩}‘∅) = (1st𝑤)
3326, 29, 323eqtr3g 2802 . . . . . . 7 ({⟨∅, (1st𝑧)⟩, ⟨1o, (2nd𝑧)⟩} = {⟨∅, (1st𝑤)⟩, ⟨1o, (2nd𝑤)⟩} → (1st𝑧) = (1st𝑤))
34 fveq1 6755 . . . . . . . 8 ({⟨∅, (1st𝑧)⟩, ⟨1o, (2nd𝑧)⟩} = {⟨∅, (1st𝑤)⟩, ⟨1o, (2nd𝑤)⟩} → ({⟨∅, (1st𝑧)⟩, ⟨1o, (2nd𝑧)⟩}‘1o) = ({⟨∅, (1st𝑤)⟩, ⟨1o, (2nd𝑤)⟩}‘1o))
35 fvex 6769 . . . . . . . . 9 (2nd𝑧) ∈ V
36 fvpr1o 17188 . . . . . . . . 9 ((2nd𝑧) ∈ V → ({⟨∅, (1st𝑧)⟩, ⟨1o, (2nd𝑧)⟩}‘1o) = (2nd𝑧))
3735, 36ax-mp 5 . . . . . . . 8 ({⟨∅, (1st𝑧)⟩, ⟨1o, (2nd𝑧)⟩}‘1o) = (2nd𝑧)
38 fvex 6769 . . . . . . . . 9 (2nd𝑤) ∈ V
39 fvpr1o 17188 . . . . . . . . 9 ((2nd𝑤) ∈ V → ({⟨∅, (1st𝑤)⟩, ⟨1o, (2nd𝑤)⟩}‘1o) = (2nd𝑤))
4038, 39ax-mp 5 . . . . . . . 8 ({⟨∅, (1st𝑤)⟩, ⟨1o, (2nd𝑤)⟩}‘1o) = (2nd𝑤)
4134, 37, 403eqtr3g 2802 . . . . . . 7 ({⟨∅, (1st𝑧)⟩, ⟨1o, (2nd𝑧)⟩} = {⟨∅, (1st𝑤)⟩, ⟨1o, (2nd𝑤)⟩} → (2nd𝑧) = (2nd𝑤))
4233, 41opeq12d 4809 . . . . . 6 ({⟨∅, (1st𝑧)⟩, ⟨1o, (2nd𝑧)⟩} = {⟨∅, (1st𝑤)⟩, ⟨1o, (2nd𝑤)⟩} → ⟨(1st𝑧), (2nd𝑧)⟩ = ⟨(1st𝑤), (2nd𝑤)⟩)
437, 16eqeqan12d 2752 . . . . . 6 ((𝑧 ∈ (𝐴 × 𝐵) ∧ 𝑤 ∈ (𝐴 × 𝐵)) → (𝑧 = 𝑤 ↔ ⟨(1st𝑧), (2nd𝑧)⟩ = ⟨(1st𝑤), (2nd𝑤)⟩))
4442, 43syl5ibr 245 . . . . 5 ((𝑧 ∈ (𝐴 × 𝐵) ∧ 𝑤 ∈ (𝐴 × 𝐵)) → ({⟨∅, (1st𝑧)⟩, ⟨1o, (2nd𝑧)⟩} = {⟨∅, (1st𝑤)⟩, ⟨1o, (2nd𝑤)⟩} → 𝑧 = 𝑤))
4525, 44sylbid 239 . . . 4 ((𝑧 ∈ (𝐴 × 𝐵) ∧ 𝑤 ∈ (𝐴 × 𝐵)) → ((𝐹𝑧) = (𝐹𝑤) → 𝑧 = 𝑤))
4645rgen2 3126 . . 3 𝑧 ∈ (𝐴 × 𝐵)∀𝑤 ∈ (𝐴 × 𝐵)((𝐹𝑧) = (𝐹𝑤) → 𝑧 = 𝑤)
47 dff13 7109 . . 3 (𝐹:(𝐴 × 𝐵)–1-1X𝑘 ∈ 2o if(𝑘 = ∅, 𝐴, 𝐵) ↔ (𝐹:(𝐴 × 𝐵)⟶X𝑘 ∈ 2o if(𝑘 = ∅, 𝐴, 𝐵) ∧ ∀𝑧 ∈ (𝐴 × 𝐵)∀𝑤 ∈ (𝐴 × 𝐵)((𝐹𝑧) = (𝐹𝑤) → 𝑧 = 𝑤)))
486, 46, 47mpbir2an 707 . 2 𝐹:(𝐴 × 𝐵)–1-1X𝑘 ∈ 2o if(𝑘 = ∅, 𝐴, 𝐵)
49 xpsfrnel 17190 . . . . . 6 (𝑧X𝑘 ∈ 2o if(𝑘 = ∅, 𝐴, 𝐵) ↔ (𝑧 Fn 2o ∧ (𝑧‘∅) ∈ 𝐴 ∧ (𝑧‘1o) ∈ 𝐵))
5049simp2bi 1144 . . . . 5 (𝑧X𝑘 ∈ 2o if(𝑘 = ∅, 𝐴, 𝐵) → (𝑧‘∅) ∈ 𝐴)
5149simp3bi 1145 . . . . 5 (𝑧X𝑘 ∈ 2o if(𝑘 = ∅, 𝐴, 𝐵) → (𝑧‘1o) ∈ 𝐵)
524xpsfval 17194 . . . . . . 7 (((𝑧‘∅) ∈ 𝐴 ∧ (𝑧‘1o) ∈ 𝐵) → ((𝑧‘∅)𝐹(𝑧‘1o)) = {⟨∅, (𝑧‘∅)⟩, ⟨1o, (𝑧‘1o)⟩})
5350, 51, 52syl2anc 583 . . . . . 6 (𝑧X𝑘 ∈ 2o if(𝑘 = ∅, 𝐴, 𝐵) → ((𝑧‘∅)𝐹(𝑧‘1o)) = {⟨∅, (𝑧‘∅)⟩, ⟨1o, (𝑧‘1o)⟩})
54 ixpfn 8649 . . . . . . 7 (𝑧X𝑘 ∈ 2o if(𝑘 = ∅, 𝐴, 𝐵) → 𝑧 Fn 2o)
55 xpsfeq 17191 . . . . . . 7 (𝑧 Fn 2o → {⟨∅, (𝑧‘∅)⟩, ⟨1o, (𝑧‘1o)⟩} = 𝑧)
5654, 55syl 17 . . . . . 6 (𝑧X𝑘 ∈ 2o if(𝑘 = ∅, 𝐴, 𝐵) → {⟨∅, (𝑧‘∅)⟩, ⟨1o, (𝑧‘1o)⟩} = 𝑧)
5753, 56eqtr2d 2779 . . . . 5 (𝑧X𝑘 ∈ 2o if(𝑘 = ∅, 𝐴, 𝐵) → 𝑧 = ((𝑧‘∅)𝐹(𝑧‘1o)))
58 rspceov 7302 . . . . 5 (((𝑧‘∅) ∈ 𝐴 ∧ (𝑧‘1o) ∈ 𝐵𝑧 = ((𝑧‘∅)𝐹(𝑧‘1o))) → ∃𝑎𝐴𝑏𝐵 𝑧 = (𝑎𝐹𝑏))
5950, 51, 57, 58syl3anc 1369 . . . 4 (𝑧X𝑘 ∈ 2o if(𝑘 = ∅, 𝐴, 𝐵) → ∃𝑎𝐴𝑏𝐵 𝑧 = (𝑎𝐹𝑏))
6059rgen 3073 . . 3 𝑧X 𝑘 ∈ 2o if(𝑘 = ∅, 𝐴, 𝐵)∃𝑎𝐴𝑏𝐵 𝑧 = (𝑎𝐹𝑏)
61 foov 7424 . . 3 (𝐹:(𝐴 × 𝐵)–ontoX𝑘 ∈ 2o if(𝑘 = ∅, 𝐴, 𝐵) ↔ (𝐹:(𝐴 × 𝐵)⟶X𝑘 ∈ 2o if(𝑘 = ∅, 𝐴, 𝐵) ∧ ∀𝑧X 𝑘 ∈ 2o if(𝑘 = ∅, 𝐴, 𝐵)∃𝑎𝐴𝑏𝐵 𝑧 = (𝑎𝐹𝑏)))
626, 60, 61mpbir2an 707 . 2 𝐹:(𝐴 × 𝐵)–ontoX𝑘 ∈ 2o if(𝑘 = ∅, 𝐴, 𝐵)
63 df-f1o 6425 . 2 (𝐹:(𝐴 × 𝐵)–1-1-ontoX𝑘 ∈ 2o if(𝑘 = ∅, 𝐴, 𝐵) ↔ (𝐹:(𝐴 × 𝐵)–1-1X𝑘 ∈ 2o if(𝑘 = ∅, 𝐴, 𝐵) ∧ 𝐹:(𝐴 × 𝐵)–ontoX𝑘 ∈ 2o if(𝑘 = ∅, 𝐴, 𝐵)))
6448, 62, 63mpbir2an 707 1 𝐹:(𝐴 × 𝐵)–1-1-ontoX𝑘 ∈ 2o if(𝑘 = ∅, 𝐴, 𝐵)
Colors of variables: wff setvar class
Syntax hints:  wi 4  wa 395   = wceq 1539  wcel 2108  wral 3063  wrex 3064  Vcvv 3422  c0 4253  ifcif 4456  {cpr 4560  cop 4564   × cxp 5578   Fn wfn 6413  wf 6414  1-1wf1 6415  ontowfo 6416  1-1-ontowf1o 6417  cfv 6418  (class class class)co 7255  cmpo 7257  1st c1st 7802  2nd c2nd 7803  1oc1o 8260  2oc2o 8261  Xcixp 8643
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1799  ax-4 1813  ax-5 1914  ax-6 1972  ax-7 2012  ax-8 2110  ax-9 2118  ax-10 2139  ax-11 2156  ax-12 2173  ax-ext 2709  ax-sep 5218  ax-nul 5225  ax-pr 5347  ax-un 7566
This theorem depends on definitions:  df-bi 206  df-an 396  df-or 844  df-3or 1086  df-3an 1087  df-tru 1542  df-fal 1552  df-ex 1784  df-nf 1788  df-sb 2069  df-mo 2540  df-eu 2569  df-clab 2716  df-cleq 2730  df-clel 2817  df-nfc 2888  df-ne 2943  df-ral 3068  df-rex 3069  df-reu 3070  df-rab 3072  df-v 3424  df-sbc 3712  df-csb 3829  df-dif 3886  df-un 3888  df-in 3890  df-ss 3900  df-pss 3902  df-nul 4254  df-if 4457  df-pw 4532  df-sn 4559  df-pr 4561  df-tp 4563  df-op 4565  df-uni 4837  df-iun 4923  df-br 5071  df-opab 5133  df-mpt 5154  df-tr 5188  df-id 5480  df-eprel 5486  df-po 5494  df-so 5495  df-fr 5535  df-we 5537  df-xp 5586  df-rel 5587  df-cnv 5588  df-co 5589  df-dm 5590  df-rn 5591  df-res 5592  df-ima 5593  df-ord 6254  df-on 6255  df-lim 6256  df-suc 6257  df-iota 6376  df-fun 6420  df-fn 6421  df-f 6422  df-f1 6423  df-fo 6424  df-f1o 6425  df-fv 6426  df-ov 7258  df-oprab 7259  df-mpo 7260  df-om 7688  df-1st 7804  df-2nd 7805  df-1o 8267  df-2o 8268  df-ixp 8644  df-en 8692  df-fin 8695
This theorem is referenced by:  xpsfrn  17196  xpsff1o2  17197
  Copyright terms: Public domain W3C validator