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

Theorem xpsff1o 17278
Description: The function appearing in xpsval 17281 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 17275 . . . . . 6 ({⟨∅, 𝑥⟩, ⟨1o, 𝑦⟩} ∈ X𝑘 ∈ 2o if(𝑘 = ∅, 𝐴, 𝐵) ↔ (𝑥𝐴𝑦𝐵))
21biimpri 227 . . . . 5 ((𝑥𝐴𝑦𝐵) → {⟨∅, 𝑥⟩, ⟨1o, 𝑦⟩} ∈ X𝑘 ∈ 2o if(𝑘 = ∅, 𝐴, 𝐵))
32rgen2 3120 . . . 4 𝑥𝐴𝑦𝐵 {⟨∅, 𝑥⟩, ⟨1o, 𝑦⟩} ∈ X𝑘 ∈ 2o if(𝑘 = ∅, 𝐴, 𝐵)
4 xpsff1o.f . . . . 5 𝐹 = (𝑥𝐴, 𝑦𝐵 ↦ {⟨∅, 𝑥⟩, ⟨1o, 𝑦⟩})
54fmpo 7908 . . . 4 (∀𝑥𝐴𝑦𝐵 {⟨∅, 𝑥⟩, ⟨1o, 𝑦⟩} ∈ X𝑘 ∈ 2o if(𝑘 = ∅, 𝐴, 𝐵) ↔ 𝐹:(𝐴 × 𝐵)⟶X𝑘 ∈ 2o if(𝑘 = ∅, 𝐴, 𝐵))
63, 5mpbi 229 . . 3 𝐹:(𝐴 × 𝐵)⟶X𝑘 ∈ 2o if(𝑘 = ∅, 𝐴, 𝐵)
7 1st2nd2 7870 . . . . . . . 8 (𝑧 ∈ (𝐴 × 𝐵) → 𝑧 = ⟨(1st𝑧), (2nd𝑧)⟩)
87fveq2d 6778 . . . . . . 7 (𝑧 ∈ (𝐴 × 𝐵) → (𝐹𝑧) = (𝐹‘⟨(1st𝑧), (2nd𝑧)⟩))
9 df-ov 7278 . . . . . . . 8 ((1st𝑧)𝐹(2nd𝑧)) = (𝐹‘⟨(1st𝑧), (2nd𝑧)⟩)
10 xp1st 7863 . . . . . . . . 9 (𝑧 ∈ (𝐴 × 𝐵) → (1st𝑧) ∈ 𝐴)
11 xp2nd 7864 . . . . . . . . 9 (𝑧 ∈ (𝐴 × 𝐵) → (2nd𝑧) ∈ 𝐵)
124xpsfval 17277 . . . . . . . . 9 (((1st𝑧) ∈ 𝐴 ∧ (2nd𝑧) ∈ 𝐵) → ((1st𝑧)𝐹(2nd𝑧)) = {⟨∅, (1st𝑧)⟩, ⟨1o, (2nd𝑧)⟩})
1310, 11, 12syl2anc 584 . . . . . . . 8 (𝑧 ∈ (𝐴 × 𝐵) → ((1st𝑧)𝐹(2nd𝑧)) = {⟨∅, (1st𝑧)⟩, ⟨1o, (2nd𝑧)⟩})
149, 13eqtr3id 2792 . . . . . . 7 (𝑧 ∈ (𝐴 × 𝐵) → (𝐹‘⟨(1st𝑧), (2nd𝑧)⟩) = {⟨∅, (1st𝑧)⟩, ⟨1o, (2nd𝑧)⟩})
158, 14eqtrd 2778 . . . . . 6 (𝑧 ∈ (𝐴 × 𝐵) → (𝐹𝑧) = {⟨∅, (1st𝑧)⟩, ⟨1o, (2nd𝑧)⟩})
16 1st2nd2 7870 . . . . . . . 8 (𝑤 ∈ (𝐴 × 𝐵) → 𝑤 = ⟨(1st𝑤), (2nd𝑤)⟩)
1716fveq2d 6778 . . . . . . 7 (𝑤 ∈ (𝐴 × 𝐵) → (𝐹𝑤) = (𝐹‘⟨(1st𝑤), (2nd𝑤)⟩))
18 df-ov 7278 . . . . . . . 8 ((1st𝑤)𝐹(2nd𝑤)) = (𝐹‘⟨(1st𝑤), (2nd𝑤)⟩)
19 xp1st 7863 . . . . . . . . 9 (𝑤 ∈ (𝐴 × 𝐵) → (1st𝑤) ∈ 𝐴)
20 xp2nd 7864 . . . . . . . . 9 (𝑤 ∈ (𝐴 × 𝐵) → (2nd𝑤) ∈ 𝐵)
214xpsfval 17277 . . . . . . . . 9 (((1st𝑤) ∈ 𝐴 ∧ (2nd𝑤) ∈ 𝐵) → ((1st𝑤)𝐹(2nd𝑤)) = {⟨∅, (1st𝑤)⟩, ⟨1o, (2nd𝑤)⟩})
2219, 20, 21syl2anc 584 . . . . . . . 8 (𝑤 ∈ (𝐴 × 𝐵) → ((1st𝑤)𝐹(2nd𝑤)) = {⟨∅, (1st𝑤)⟩, ⟨1o, (2nd𝑤)⟩})
2318, 22eqtr3id 2792 . . . . . . 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 6773 . . . . . . . 8 ({⟨∅, (1st𝑧)⟩, ⟨1o, (2nd𝑧)⟩} = {⟨∅, (1st𝑤)⟩, ⟨1o, (2nd𝑤)⟩} → ({⟨∅, (1st𝑧)⟩, ⟨1o, (2nd𝑧)⟩}‘∅) = ({⟨∅, (1st𝑤)⟩, ⟨1o, (2nd𝑤)⟩}‘∅))
27 fvex 6787 . . . . . . . . 9 (1st𝑧) ∈ V
28 fvpr0o 17270 . . . . . . . . 9 ((1st𝑧) ∈ V → ({⟨∅, (1st𝑧)⟩, ⟨1o, (2nd𝑧)⟩}‘∅) = (1st𝑧))
2927, 28ax-mp 5 . . . . . . . 8 ({⟨∅, (1st𝑧)⟩, ⟨1o, (2nd𝑧)⟩}‘∅) = (1st𝑧)
30 fvex 6787 . . . . . . . . 9 (1st𝑤) ∈ V
31 fvpr0o 17270 . . . . . . . . 9 ((1st𝑤) ∈ V → ({⟨∅, (1st𝑤)⟩, ⟨1o, (2nd𝑤)⟩}‘∅) = (1st𝑤))
3230, 31ax-mp 5 . . . . . . . 8 ({⟨∅, (1st𝑤)⟩, ⟨1o, (2nd𝑤)⟩}‘∅) = (1st𝑤)
3326, 29, 323eqtr3g 2801 . . . . . . 7 ({⟨∅, (1st𝑧)⟩, ⟨1o, (2nd𝑧)⟩} = {⟨∅, (1st𝑤)⟩, ⟨1o, (2nd𝑤)⟩} → (1st𝑧) = (1st𝑤))
34 fveq1 6773 . . . . . . . 8 ({⟨∅, (1st𝑧)⟩, ⟨1o, (2nd𝑧)⟩} = {⟨∅, (1st𝑤)⟩, ⟨1o, (2nd𝑤)⟩} → ({⟨∅, (1st𝑧)⟩, ⟨1o, (2nd𝑧)⟩}‘1o) = ({⟨∅, (1st𝑤)⟩, ⟨1o, (2nd𝑤)⟩}‘1o))
35 fvex 6787 . . . . . . . . 9 (2nd𝑧) ∈ V
36 fvpr1o 17271 . . . . . . . . 9 ((2nd𝑧) ∈ V → ({⟨∅, (1st𝑧)⟩, ⟨1o, (2nd𝑧)⟩}‘1o) = (2nd𝑧))
3735, 36ax-mp 5 . . . . . . . 8 ({⟨∅, (1st𝑧)⟩, ⟨1o, (2nd𝑧)⟩}‘1o) = (2nd𝑧)
38 fvex 6787 . . . . . . . . 9 (2nd𝑤) ∈ V
39 fvpr1o 17271 . . . . . . . . 9 ((2nd𝑤) ∈ V → ({⟨∅, (1st𝑤)⟩, ⟨1o, (2nd𝑤)⟩}‘1o) = (2nd𝑤))
4038, 39ax-mp 5 . . . . . . . 8 ({⟨∅, (1st𝑤)⟩, ⟨1o, (2nd𝑤)⟩}‘1o) = (2nd𝑤)
4134, 37, 403eqtr3g 2801 . . . . . . 7 ({⟨∅, (1st𝑧)⟩, ⟨1o, (2nd𝑧)⟩} = {⟨∅, (1st𝑤)⟩, ⟨1o, (2nd𝑤)⟩} → (2nd𝑧) = (2nd𝑤))
4233, 41opeq12d 4812 . . . . . 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 3120 . . 3 𝑧 ∈ (𝐴 × 𝐵)∀𝑤 ∈ (𝐴 × 𝐵)((𝐹𝑧) = (𝐹𝑤) → 𝑧 = 𝑤)
47 dff13 7128 . . 3 (𝐹:(𝐴 × 𝐵)–1-1X𝑘 ∈ 2o if(𝑘 = ∅, 𝐴, 𝐵) ↔ (𝐹:(𝐴 × 𝐵)⟶X𝑘 ∈ 2o if(𝑘 = ∅, 𝐴, 𝐵) ∧ ∀𝑧 ∈ (𝐴 × 𝐵)∀𝑤 ∈ (𝐴 × 𝐵)((𝐹𝑧) = (𝐹𝑤) → 𝑧 = 𝑤)))
486, 46, 47mpbir2an 708 . 2 𝐹:(𝐴 × 𝐵)–1-1X𝑘 ∈ 2o if(𝑘 = ∅, 𝐴, 𝐵)
49 xpsfrnel 17273 . . . . . 6 (𝑧X𝑘 ∈ 2o if(𝑘 = ∅, 𝐴, 𝐵) ↔ (𝑧 Fn 2o ∧ (𝑧‘∅) ∈ 𝐴 ∧ (𝑧‘1o) ∈ 𝐵))
5049simp2bi 1145 . . . . 5 (𝑧X𝑘 ∈ 2o if(𝑘 = ∅, 𝐴, 𝐵) → (𝑧‘∅) ∈ 𝐴)
5149simp3bi 1146 . . . . 5 (𝑧X𝑘 ∈ 2o if(𝑘 = ∅, 𝐴, 𝐵) → (𝑧‘1o) ∈ 𝐵)
524xpsfval 17277 . . . . . . 7 (((𝑧‘∅) ∈ 𝐴 ∧ (𝑧‘1o) ∈ 𝐵) → ((𝑧‘∅)𝐹(𝑧‘1o)) = {⟨∅, (𝑧‘∅)⟩, ⟨1o, (𝑧‘1o)⟩})
5350, 51, 52syl2anc 584 . . . . . 6 (𝑧X𝑘 ∈ 2o if(𝑘 = ∅, 𝐴, 𝐵) → ((𝑧‘∅)𝐹(𝑧‘1o)) = {⟨∅, (𝑧‘∅)⟩, ⟨1o, (𝑧‘1o)⟩})
54 ixpfn 8691 . . . . . . 7 (𝑧X𝑘 ∈ 2o if(𝑘 = ∅, 𝐴, 𝐵) → 𝑧 Fn 2o)
55 xpsfeq 17274 . . . . . . 7 (𝑧 Fn 2o → {⟨∅, (𝑧‘∅)⟩, ⟨1o, (𝑧‘1o)⟩} = 𝑧)
5654, 55syl 17 . . . . . 6 (𝑧X𝑘 ∈ 2o if(𝑘 = ∅, 𝐴, 𝐵) → {⟨∅, (𝑧‘∅)⟩, ⟨1o, (𝑧‘1o)⟩} = 𝑧)
5753, 56eqtr2d 2779 . . . . 5 (𝑧X𝑘 ∈ 2o if(𝑘 = ∅, 𝐴, 𝐵) → 𝑧 = ((𝑧‘∅)𝐹(𝑧‘1o)))
58 rspceov 7322 . . . . 5 (((𝑧‘∅) ∈ 𝐴 ∧ (𝑧‘1o) ∈ 𝐵𝑧 = ((𝑧‘∅)𝐹(𝑧‘1o))) → ∃𝑎𝐴𝑏𝐵 𝑧 = (𝑎𝐹𝑏))
5950, 51, 57, 58syl3anc 1370 . . . 4 (𝑧X𝑘 ∈ 2o if(𝑘 = ∅, 𝐴, 𝐵) → ∃𝑎𝐴𝑏𝐵 𝑧 = (𝑎𝐹𝑏))
6059rgen 3074 . . 3 𝑧X 𝑘 ∈ 2o if(𝑘 = ∅, 𝐴, 𝐵)∃𝑎𝐴𝑏𝐵 𝑧 = (𝑎𝐹𝑏)
61 foov 7446 . . 3 (𝐹:(𝐴 × 𝐵)–ontoX𝑘 ∈ 2o if(𝑘 = ∅, 𝐴, 𝐵) ↔ (𝐹:(𝐴 × 𝐵)⟶X𝑘 ∈ 2o if(𝑘 = ∅, 𝐴, 𝐵) ∧ ∀𝑧X 𝑘 ∈ 2o if(𝑘 = ∅, 𝐴, 𝐵)∃𝑎𝐴𝑏𝐵 𝑧 = (𝑎𝐹𝑏)))
626, 60, 61mpbir2an 708 . 2 𝐹:(𝐴 × 𝐵)–ontoX𝑘 ∈ 2o if(𝑘 = ∅, 𝐴, 𝐵)
63 df-f1o 6440 . 2 (𝐹:(𝐴 × 𝐵)–1-1-ontoX𝑘 ∈ 2o if(𝑘 = ∅, 𝐴, 𝐵) ↔ (𝐹:(𝐴 × 𝐵)–1-1X𝑘 ∈ 2o if(𝑘 = ∅, 𝐴, 𝐵) ∧ 𝐹:(𝐴 × 𝐵)–ontoX𝑘 ∈ 2o if(𝑘 = ∅, 𝐴, 𝐵)))
6448, 62, 63mpbir2an 708 1 𝐹:(𝐴 × 𝐵)–1-1-ontoX𝑘 ∈ 2o if(𝑘 = ∅, 𝐴, 𝐵)
Colors of variables: wff setvar class
Syntax hints:  wi 4  wa 396   = wceq 1539  wcel 2106  wral 3064  wrex 3065  Vcvv 3432  c0 4256  ifcif 4459  {cpr 4563  cop 4567   × cxp 5587   Fn wfn 6428  wf 6429  1-1wf1 6430  ontowfo 6431  1-1-ontowf1o 6432  cfv 6433  (class class class)co 7275  cmpo 7277  1st c1st 7829  2nd c2nd 7830  1oc1o 8290  2oc2o 8291  Xcixp 8685
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1798  ax-4 1812  ax-5 1913  ax-6 1971  ax-7 2011  ax-8 2108  ax-9 2116  ax-10 2137  ax-11 2154  ax-12 2171  ax-ext 2709  ax-sep 5223  ax-nul 5230  ax-pr 5352  ax-un 7588
This theorem depends on definitions:  df-bi 206  df-an 397  df-or 845  df-3or 1087  df-3an 1088  df-tru 1542  df-fal 1552  df-ex 1783  df-nf 1787  df-sb 2068  df-mo 2540  df-eu 2569  df-clab 2716  df-cleq 2730  df-clel 2816  df-nfc 2889  df-ne 2944  df-ral 3069  df-rex 3070  df-reu 3072  df-rab 3073  df-v 3434  df-sbc 3717  df-csb 3833  df-dif 3890  df-un 3892  df-in 3894  df-ss 3904  df-pss 3906  df-nul 4257  df-if 4460  df-pw 4535  df-sn 4562  df-pr 4564  df-op 4568  df-uni 4840  df-iun 4926  df-br 5075  df-opab 5137  df-mpt 5158  df-tr 5192  df-id 5489  df-eprel 5495  df-po 5503  df-so 5504  df-fr 5544  df-we 5546  df-xp 5595  df-rel 5596  df-cnv 5597  df-co 5598  df-dm 5599  df-rn 5600  df-res 5601  df-ima 5602  df-ord 6269  df-on 6270  df-lim 6271  df-suc 6272  df-iota 6391  df-fun 6435  df-fn 6436  df-f 6437  df-f1 6438  df-fo 6439  df-f1o 6440  df-fv 6441  df-ov 7278  df-oprab 7279  df-mpo 7280  df-om 7713  df-1st 7831  df-2nd 7832  df-1o 8297  df-2o 8298  df-ixp 8686  df-en 8734  df-fin 8737
This theorem is referenced by:  xpsfrn  17279  xpsff1o2  17280
  Copyright terms: Public domain W3C validator