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

Theorem fprg 6568
Description: A function with a domain of two elements. (Contributed by FL, 2-Feb-2014.)
Assertion
Ref Expression
fprg (((𝐴𝐸𝐵𝐹) ∧ (𝐶𝐺𝐷𝐻) ∧ 𝐴𝐵) → {⟨𝐴, 𝐶⟩, ⟨𝐵, 𝐷⟩}:{𝐴, 𝐵}⟶{𝐶, 𝐷})

Proof of Theorem fprg
StepHypRef Expression
1 elex 3364 . . . 4 (𝐴𝐸𝐴 ∈ V)
2 elex 3364 . . . 4 (𝐵𝐹𝐵 ∈ V)
31, 2anim12i 600 . . 3 ((𝐴𝐸𝐵𝐹) → (𝐴 ∈ V ∧ 𝐵 ∈ V))
4 elex 3364 . . . 4 (𝐶𝐺𝐶 ∈ V)
5 elex 3364 . . . 4 (𝐷𝐻𝐷 ∈ V)
64, 5anim12i 600 . . 3 ((𝐶𝐺𝐷𝐻) → (𝐶 ∈ V ∧ 𝐷 ∈ V))
7 neeq1 3005 . . . . 5 (𝐴 = if(𝐴 ∈ V, 𝐴, ∅) → (𝐴𝐵 ↔ if(𝐴 ∈ V, 𝐴, ∅) ≠ 𝐵))
8 opeq1 4540 . . . . . . 7 (𝐴 = if(𝐴 ∈ V, 𝐴, ∅) → ⟨𝐴, 𝐶⟩ = ⟨if(𝐴 ∈ V, 𝐴, ∅), 𝐶⟩)
98preq1d 4411 . . . . . 6 (𝐴 = if(𝐴 ∈ V, 𝐴, ∅) → {⟨𝐴, 𝐶⟩, ⟨𝐵, 𝐷⟩} = {⟨if(𝐴 ∈ V, 𝐴, ∅), 𝐶⟩, ⟨𝐵, 𝐷⟩})
10 preq1 4405 . . . . . 6 (𝐴 = if(𝐴 ∈ V, 𝐴, ∅) → {𝐴, 𝐵} = {if(𝐴 ∈ V, 𝐴, ∅), 𝐵})
119, 10feq12d 6172 . . . . 5 (𝐴 = if(𝐴 ∈ V, 𝐴, ∅) → ({⟨𝐴, 𝐶⟩, ⟨𝐵, 𝐷⟩}:{𝐴, 𝐵}⟶{𝐶, 𝐷} ↔ {⟨if(𝐴 ∈ V, 𝐴, ∅), 𝐶⟩, ⟨𝐵, 𝐷⟩}:{if(𝐴 ∈ V, 𝐴, ∅), 𝐵}⟶{𝐶, 𝐷}))
127, 11imbi12d 333 . . . 4 (𝐴 = if(𝐴 ∈ V, 𝐴, ∅) → ((𝐴𝐵 → {⟨𝐴, 𝐶⟩, ⟨𝐵, 𝐷⟩}:{𝐴, 𝐵}⟶{𝐶, 𝐷}) ↔ (if(𝐴 ∈ V, 𝐴, ∅) ≠ 𝐵 → {⟨if(𝐴 ∈ V, 𝐴, ∅), 𝐶⟩, ⟨𝐵, 𝐷⟩}:{if(𝐴 ∈ V, 𝐴, ∅), 𝐵}⟶{𝐶, 𝐷})))
13 neeq2 3006 . . . . 5 (𝐵 = if(𝐵 ∈ V, 𝐵, ∅) → (if(𝐴 ∈ V, 𝐴, ∅) ≠ 𝐵 ↔ if(𝐴 ∈ V, 𝐴, ∅) ≠ if(𝐵 ∈ V, 𝐵, ∅)))
14 opeq1 4540 . . . . . . 7 (𝐵 = if(𝐵 ∈ V, 𝐵, ∅) → ⟨𝐵, 𝐷⟩ = ⟨if(𝐵 ∈ V, 𝐵, ∅), 𝐷⟩)
1514preq2d 4412 . . . . . 6 (𝐵 = if(𝐵 ∈ V, 𝐵, ∅) → {⟨if(𝐴 ∈ V, 𝐴, ∅), 𝐶⟩, ⟨𝐵, 𝐷⟩} = {⟨if(𝐴 ∈ V, 𝐴, ∅), 𝐶⟩, ⟨if(𝐵 ∈ V, 𝐵, ∅), 𝐷⟩})
16 preq2 4406 . . . . . 6 (𝐵 = if(𝐵 ∈ V, 𝐵, ∅) → {if(𝐴 ∈ V, 𝐴, ∅), 𝐵} = {if(𝐴 ∈ V, 𝐴, ∅), if(𝐵 ∈ V, 𝐵, ∅)})
1715, 16feq12d 6172 . . . . 5 (𝐵 = if(𝐵 ∈ V, 𝐵, ∅) → ({⟨if(𝐴 ∈ V, 𝐴, ∅), 𝐶⟩, ⟨𝐵, 𝐷⟩}:{if(𝐴 ∈ V, 𝐴, ∅), 𝐵}⟶{𝐶, 𝐷} ↔ {⟨if(𝐴 ∈ V, 𝐴, ∅), 𝐶⟩, ⟨if(𝐵 ∈ V, 𝐵, ∅), 𝐷⟩}:{if(𝐴 ∈ V, 𝐴, ∅), if(𝐵 ∈ V, 𝐵, ∅)}⟶{𝐶, 𝐷}))
1813, 17imbi12d 333 . . . 4 (𝐵 = if(𝐵 ∈ V, 𝐵, ∅) → ((if(𝐴 ∈ V, 𝐴, ∅) ≠ 𝐵 → {⟨if(𝐴 ∈ V, 𝐴, ∅), 𝐶⟩, ⟨𝐵, 𝐷⟩}:{if(𝐴 ∈ V, 𝐴, ∅), 𝐵}⟶{𝐶, 𝐷}) ↔ (if(𝐴 ∈ V, 𝐴, ∅) ≠ if(𝐵 ∈ V, 𝐵, ∅) → {⟨if(𝐴 ∈ V, 𝐴, ∅), 𝐶⟩, ⟨if(𝐵 ∈ V, 𝐵, ∅), 𝐷⟩}:{if(𝐴 ∈ V, 𝐴, ∅), if(𝐵 ∈ V, 𝐵, ∅)}⟶{𝐶, 𝐷})))
19 opeq2 4541 . . . . . . 7 (𝐶 = if(𝐶 ∈ V, 𝐶, ∅) → ⟨if(𝐴 ∈ V, 𝐴, ∅), 𝐶⟩ = ⟨if(𝐴 ∈ V, 𝐴, ∅), if(𝐶 ∈ V, 𝐶, ∅)⟩)
2019preq1d 4411 . . . . . 6 (𝐶 = if(𝐶 ∈ V, 𝐶, ∅) → {⟨if(𝐴 ∈ V, 𝐴, ∅), 𝐶⟩, ⟨if(𝐵 ∈ V, 𝐵, ∅), 𝐷⟩} = {⟨if(𝐴 ∈ V, 𝐴, ∅), if(𝐶 ∈ V, 𝐶, ∅)⟩, ⟨if(𝐵 ∈ V, 𝐵, ∅), 𝐷⟩})
21 eqidd 2772 . . . . . 6 (𝐶 = if(𝐶 ∈ V, 𝐶, ∅) → {if(𝐴 ∈ V, 𝐴, ∅), if(𝐵 ∈ V, 𝐵, ∅)} = {if(𝐴 ∈ V, 𝐴, ∅), if(𝐵 ∈ V, 𝐵, ∅)})
22 preq1 4405 . . . . . 6 (𝐶 = if(𝐶 ∈ V, 𝐶, ∅) → {𝐶, 𝐷} = {if(𝐶 ∈ V, 𝐶, ∅), 𝐷})
2320, 21, 22feq123d 6173 . . . . 5 (𝐶 = if(𝐶 ∈ V, 𝐶, ∅) → ({⟨if(𝐴 ∈ V, 𝐴, ∅), 𝐶⟩, ⟨if(𝐵 ∈ V, 𝐵, ∅), 𝐷⟩}:{if(𝐴 ∈ V, 𝐴, ∅), if(𝐵 ∈ V, 𝐵, ∅)}⟶{𝐶, 𝐷} ↔ {⟨if(𝐴 ∈ V, 𝐴, ∅), if(𝐶 ∈ V, 𝐶, ∅)⟩, ⟨if(𝐵 ∈ V, 𝐵, ∅), 𝐷⟩}:{if(𝐴 ∈ V, 𝐴, ∅), if(𝐵 ∈ V, 𝐵, ∅)}⟶{if(𝐶 ∈ V, 𝐶, ∅), 𝐷}))
2423imbi2d 329 . . . 4 (𝐶 = if(𝐶 ∈ V, 𝐶, ∅) → ((if(𝐴 ∈ V, 𝐴, ∅) ≠ if(𝐵 ∈ V, 𝐵, ∅) → {⟨if(𝐴 ∈ V, 𝐴, ∅), 𝐶⟩, ⟨if(𝐵 ∈ V, 𝐵, ∅), 𝐷⟩}:{if(𝐴 ∈ V, 𝐴, ∅), if(𝐵 ∈ V, 𝐵, ∅)}⟶{𝐶, 𝐷}) ↔ (if(𝐴 ∈ V, 𝐴, ∅) ≠ if(𝐵 ∈ V, 𝐵, ∅) → {⟨if(𝐴 ∈ V, 𝐴, ∅), if(𝐶 ∈ V, 𝐶, ∅)⟩, ⟨if(𝐵 ∈ V, 𝐵, ∅), 𝐷⟩}:{if(𝐴 ∈ V, 𝐴, ∅), if(𝐵 ∈ V, 𝐵, ∅)}⟶{if(𝐶 ∈ V, 𝐶, ∅), 𝐷})))
25 opeq2 4541 . . . . . . 7 (𝐷 = if(𝐷 ∈ V, 𝐷, ∅) → ⟨if(𝐵 ∈ V, 𝐵, ∅), 𝐷⟩ = ⟨if(𝐵 ∈ V, 𝐵, ∅), if(𝐷 ∈ V, 𝐷, ∅)⟩)
2625preq2d 4412 . . . . . 6 (𝐷 = if(𝐷 ∈ V, 𝐷, ∅) → {⟨if(𝐴 ∈ V, 𝐴, ∅), if(𝐶 ∈ V, 𝐶, ∅)⟩, ⟨if(𝐵 ∈ V, 𝐵, ∅), 𝐷⟩} = {⟨if(𝐴 ∈ V, 𝐴, ∅), if(𝐶 ∈ V, 𝐶, ∅)⟩, ⟨if(𝐵 ∈ V, 𝐵, ∅), if(𝐷 ∈ V, 𝐷, ∅)⟩})
27 eqidd 2772 . . . . . 6 (𝐷 = if(𝐷 ∈ V, 𝐷, ∅) → {if(𝐴 ∈ V, 𝐴, ∅), if(𝐵 ∈ V, 𝐵, ∅)} = {if(𝐴 ∈ V, 𝐴, ∅), if(𝐵 ∈ V, 𝐵, ∅)})
28 preq2 4406 . . . . . 6 (𝐷 = if(𝐷 ∈ V, 𝐷, ∅) → {if(𝐶 ∈ V, 𝐶, ∅), 𝐷} = {if(𝐶 ∈ V, 𝐶, ∅), if(𝐷 ∈ V, 𝐷, ∅)})
2926, 27, 28feq123d 6173 . . . . 5 (𝐷 = if(𝐷 ∈ V, 𝐷, ∅) → ({⟨if(𝐴 ∈ V, 𝐴, ∅), if(𝐶 ∈ V, 𝐶, ∅)⟩, ⟨if(𝐵 ∈ V, 𝐵, ∅), 𝐷⟩}:{if(𝐴 ∈ V, 𝐴, ∅), if(𝐵 ∈ V, 𝐵, ∅)}⟶{if(𝐶 ∈ V, 𝐶, ∅), 𝐷} ↔ {⟨if(𝐴 ∈ V, 𝐴, ∅), if(𝐶 ∈ V, 𝐶, ∅)⟩, ⟨if(𝐵 ∈ V, 𝐵, ∅), if(𝐷 ∈ V, 𝐷, ∅)⟩}:{if(𝐴 ∈ V, 𝐴, ∅), if(𝐵 ∈ V, 𝐵, ∅)}⟶{if(𝐶 ∈ V, 𝐶, ∅), if(𝐷 ∈ V, 𝐷, ∅)}))
3029imbi2d 329 . . . 4 (𝐷 = if(𝐷 ∈ V, 𝐷, ∅) → ((if(𝐴 ∈ V, 𝐴, ∅) ≠ if(𝐵 ∈ V, 𝐵, ∅) → {⟨if(𝐴 ∈ V, 𝐴, ∅), if(𝐶 ∈ V, 𝐶, ∅)⟩, ⟨if(𝐵 ∈ V, 𝐵, ∅), 𝐷⟩}:{if(𝐴 ∈ V, 𝐴, ∅), if(𝐵 ∈ V, 𝐵, ∅)}⟶{if(𝐶 ∈ V, 𝐶, ∅), 𝐷}) ↔ (if(𝐴 ∈ V, 𝐴, ∅) ≠ if(𝐵 ∈ V, 𝐵, ∅) → {⟨if(𝐴 ∈ V, 𝐴, ∅), if(𝐶 ∈ V, 𝐶, ∅)⟩, ⟨if(𝐵 ∈ V, 𝐵, ∅), if(𝐷 ∈ V, 𝐷, ∅)⟩}:{if(𝐴 ∈ V, 𝐴, ∅), if(𝐵 ∈ V, 𝐵, ∅)}⟶{if(𝐶 ∈ V, 𝐶, ∅), if(𝐷 ∈ V, 𝐷, ∅)})))
31 0ex 4925 . . . . . 6 ∅ ∈ V
3231elimel 4290 . . . . 5 if(𝐴 ∈ V, 𝐴, ∅) ∈ V
3331elimel 4290 . . . . 5 if(𝐵 ∈ V, 𝐵, ∅) ∈ V
3431elimel 4290 . . . . 5 if(𝐶 ∈ V, 𝐶, ∅) ∈ V
3531elimel 4290 . . . . 5 if(𝐷 ∈ V, 𝐷, ∅) ∈ V
3632, 33, 34, 35fpr 6567 . . . 4 (if(𝐴 ∈ V, 𝐴, ∅) ≠ if(𝐵 ∈ V, 𝐵, ∅) → {⟨if(𝐴 ∈ V, 𝐴, ∅), if(𝐶 ∈ V, 𝐶, ∅)⟩, ⟨if(𝐵 ∈ V, 𝐵, ∅), if(𝐷 ∈ V, 𝐷, ∅)⟩}:{if(𝐴 ∈ V, 𝐴, ∅), if(𝐵 ∈ V, 𝐵, ∅)}⟶{if(𝐶 ∈ V, 𝐶, ∅), if(𝐷 ∈ V, 𝐷, ∅)})
3712, 18, 24, 30, 36dedth4h 4282 . . 3 (((𝐴 ∈ V ∧ 𝐵 ∈ V) ∧ (𝐶 ∈ V ∧ 𝐷 ∈ V)) → (𝐴𝐵 → {⟨𝐴, 𝐶⟩, ⟨𝐵, 𝐷⟩}:{𝐴, 𝐵}⟶{𝐶, 𝐷}))
383, 6, 37syl2an 583 . 2 (((𝐴𝐸𝐵𝐹) ∧ (𝐶𝐺𝐷𝐻)) → (𝐴𝐵 → {⟨𝐴, 𝐶⟩, ⟨𝐵, 𝐷⟩}:{𝐴, 𝐵}⟶{𝐶, 𝐷}))
39383impia 1109 1 (((𝐴𝐸𝐵𝐹) ∧ (𝐶𝐺𝐷𝐻) ∧ 𝐴𝐵) → {⟨𝐴, 𝐶⟩, ⟨𝐵, 𝐷⟩}:{𝐴, 𝐵}⟶{𝐶, 𝐷})
Colors of variables: wff setvar class
Syntax hints:  wi 4  wa 382  w3a 1071   = wceq 1631  wcel 2145  wne 2943  Vcvv 3351  c0 4063  ifcif 4226  {cpr 4319  cop 4323  wf 6026
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1870  ax-4 1885  ax-5 1991  ax-6 2057  ax-7 2093  ax-9 2154  ax-10 2174  ax-11 2190  ax-12 2203  ax-13 2408  ax-ext 2751  ax-sep 4916  ax-nul 4924  ax-pr 5035
This theorem depends on definitions:  df-bi 197  df-an 383  df-or 837  df-3an 1073  df-tru 1634  df-ex 1853  df-nf 1858  df-sb 2050  df-eu 2622  df-mo 2623  df-clab 2758  df-cleq 2764  df-clel 2767  df-nfc 2902  df-ne 2944  df-ral 3066  df-rex 3067  df-rab 3070  df-v 3353  df-dif 3726  df-un 3728  df-in 3730  df-ss 3737  df-nul 4064  df-if 4227  df-sn 4318  df-pr 4320  df-op 4324  df-br 4788  df-opab 4848  df-id 5158  df-xp 5256  df-rel 5257  df-cnv 5258  df-co 5259  df-dm 5260  df-rn 5261  df-fun 6032  df-fn 6033  df-f 6034
This theorem is referenced by:  ftpg  6569  fpropnf1  6670  wrdlen2i  13896  umgr2v2e  26656  mapprop  42649  zlmodzxzel  42658  ldepspr  42787  zlmodzxzldeplem1  42814
  Copyright terms: Public domain W3C validator