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

Theorem fprg 6462
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 3243 . . . 4 (𝐴𝐸𝐴 ∈ V)
2 elex 3243 . . . 4 (𝐵𝐹𝐵 ∈ V)
31, 2anim12i 589 . . 3 ((𝐴𝐸𝐵𝐹) → (𝐴 ∈ V ∧ 𝐵 ∈ V))
4 elex 3243 . . . 4 (𝐶𝐺𝐶 ∈ V)
5 elex 3243 . . . 4 (𝐷𝐻𝐷 ∈ V)
64, 5anim12i 589 . . 3 ((𝐶𝐺𝐷𝐻) → (𝐶 ∈ V ∧ 𝐷 ∈ V))
7 neeq1 2885 . . . . 5 (𝐴 = if(𝐴 ∈ V, 𝐴, ∅) → (𝐴𝐵 ↔ if(𝐴 ∈ V, 𝐴, ∅) ≠ 𝐵))
8 opeq1 4433 . . . . . . 7 (𝐴 = if(𝐴 ∈ V, 𝐴, ∅) → ⟨𝐴, 𝐶⟩ = ⟨if(𝐴 ∈ V, 𝐴, ∅), 𝐶⟩)
98preq1d 4306 . . . . . 6 (𝐴 = if(𝐴 ∈ V, 𝐴, ∅) → {⟨𝐴, 𝐶⟩, ⟨𝐵, 𝐷⟩} = {⟨if(𝐴 ∈ V, 𝐴, ∅), 𝐶⟩, ⟨𝐵, 𝐷⟩})
10 preq1 4300 . . . . . 6 (𝐴 = if(𝐴 ∈ V, 𝐴, ∅) → {𝐴, 𝐵} = {if(𝐴 ∈ V, 𝐴, ∅), 𝐵})
119, 10feq12d 6071 . . . . 5 (𝐴 = if(𝐴 ∈ V, 𝐴, ∅) → ({⟨𝐴, 𝐶⟩, ⟨𝐵, 𝐷⟩}:{𝐴, 𝐵}⟶{𝐶, 𝐷} ↔ {⟨if(𝐴 ∈ V, 𝐴, ∅), 𝐶⟩, ⟨𝐵, 𝐷⟩}:{if(𝐴 ∈ V, 𝐴, ∅), 𝐵}⟶{𝐶, 𝐷}))
127, 11imbi12d 333 . . . 4 (𝐴 = if(𝐴 ∈ V, 𝐴, ∅) → ((𝐴𝐵 → {⟨𝐴, 𝐶⟩, ⟨𝐵, 𝐷⟩}:{𝐴, 𝐵}⟶{𝐶, 𝐷}) ↔ (if(𝐴 ∈ V, 𝐴, ∅) ≠ 𝐵 → {⟨if(𝐴 ∈ V, 𝐴, ∅), 𝐶⟩, ⟨𝐵, 𝐷⟩}:{if(𝐴 ∈ V, 𝐴, ∅), 𝐵}⟶{𝐶, 𝐷})))
13 neeq2 2886 . . . . 5 (𝐵 = if(𝐵 ∈ V, 𝐵, ∅) → (if(𝐴 ∈ V, 𝐴, ∅) ≠ 𝐵 ↔ if(𝐴 ∈ V, 𝐴, ∅) ≠ if(𝐵 ∈ V, 𝐵, ∅)))
14 opeq1 4433 . . . . . . 7 (𝐵 = if(𝐵 ∈ V, 𝐵, ∅) → ⟨𝐵, 𝐷⟩ = ⟨if(𝐵 ∈ V, 𝐵, ∅), 𝐷⟩)
1514preq2d 4307 . . . . . 6 (𝐵 = if(𝐵 ∈ V, 𝐵, ∅) → {⟨if(𝐴 ∈ V, 𝐴, ∅), 𝐶⟩, ⟨𝐵, 𝐷⟩} = {⟨if(𝐴 ∈ V, 𝐴, ∅), 𝐶⟩, ⟨if(𝐵 ∈ V, 𝐵, ∅), 𝐷⟩})
16 preq2 4301 . . . . . 6 (𝐵 = if(𝐵 ∈ V, 𝐵, ∅) → {if(𝐴 ∈ V, 𝐴, ∅), 𝐵} = {if(𝐴 ∈ V, 𝐴, ∅), if(𝐵 ∈ V, 𝐵, ∅)})
1715, 16feq12d 6071 . . . . 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 4434 . . . . . . 7 (𝐶 = if(𝐶 ∈ V, 𝐶, ∅) → ⟨if(𝐴 ∈ V, 𝐴, ∅), 𝐶⟩ = ⟨if(𝐴 ∈ V, 𝐴, ∅), if(𝐶 ∈ V, 𝐶, ∅)⟩)
2019preq1d 4306 . . . . . 6 (𝐶 = if(𝐶 ∈ V, 𝐶, ∅) → {⟨if(𝐴 ∈ V, 𝐴, ∅), 𝐶⟩, ⟨if(𝐵 ∈ V, 𝐵, ∅), 𝐷⟩} = {⟨if(𝐴 ∈ V, 𝐴, ∅), if(𝐶 ∈ V, 𝐶, ∅)⟩, ⟨if(𝐵 ∈ V, 𝐵, ∅), 𝐷⟩})
21 eqidd 2652 . . . . . 6 (𝐶 = if(𝐶 ∈ V, 𝐶, ∅) → {if(𝐴 ∈ V, 𝐴, ∅), if(𝐵 ∈ V, 𝐵, ∅)} = {if(𝐴 ∈ V, 𝐴, ∅), if(𝐵 ∈ V, 𝐵, ∅)})
22 preq1 4300 . . . . . 6 (𝐶 = if(𝐶 ∈ V, 𝐶, ∅) → {𝐶, 𝐷} = {if(𝐶 ∈ V, 𝐶, ∅), 𝐷})
2320, 21, 22feq123d 6072 . . . . 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 4434 . . . . . . 7 (𝐷 = if(𝐷 ∈ V, 𝐷, ∅) → ⟨if(𝐵 ∈ V, 𝐵, ∅), 𝐷⟩ = ⟨if(𝐵 ∈ V, 𝐵, ∅), if(𝐷 ∈ V, 𝐷, ∅)⟩)
2625preq2d 4307 . . . . . 6 (𝐷 = if(𝐷 ∈ V, 𝐷, ∅) → {⟨if(𝐴 ∈ V, 𝐴, ∅), if(𝐶 ∈ V, 𝐶, ∅)⟩, ⟨if(𝐵 ∈ V, 𝐵, ∅), 𝐷⟩} = {⟨if(𝐴 ∈ V, 𝐴, ∅), if(𝐶 ∈ V, 𝐶, ∅)⟩, ⟨if(𝐵 ∈ V, 𝐵, ∅), if(𝐷 ∈ V, 𝐷, ∅)⟩})
27 eqidd 2652 . . . . . 6 (𝐷 = if(𝐷 ∈ V, 𝐷, ∅) → {if(𝐴 ∈ V, 𝐴, ∅), if(𝐵 ∈ V, 𝐵, ∅)} = {if(𝐴 ∈ V, 𝐴, ∅), if(𝐵 ∈ V, 𝐵, ∅)})
28 preq2 4301 . . . . . 6 (𝐷 = if(𝐷 ∈ V, 𝐷, ∅) → {if(𝐶 ∈ V, 𝐶, ∅), 𝐷} = {if(𝐶 ∈ V, 𝐶, ∅), if(𝐷 ∈ V, 𝐷, ∅)})
2926, 27, 28feq123d 6072 . . . . 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 4823 . . . . . 6 ∅ ∈ V
3231elimel 4183 . . . . 5 if(𝐴 ∈ V, 𝐴, ∅) ∈ V
3331elimel 4183 . . . . 5 if(𝐵 ∈ V, 𝐵, ∅) ∈ V
3431elimel 4183 . . . . 5 if(𝐶 ∈ V, 𝐶, ∅) ∈ V
3531elimel 4183 . . . . 5 if(𝐷 ∈ V, 𝐷, ∅) ∈ V
3632, 33, 34, 35fpr 6461 . . . 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 4175 . . 3 (((𝐴 ∈ V ∧ 𝐵 ∈ V) ∧ (𝐶 ∈ V ∧ 𝐷 ∈ V)) → (𝐴𝐵 → {⟨𝐴, 𝐶⟩, ⟨𝐵, 𝐷⟩}:{𝐴, 𝐵}⟶{𝐶, 𝐷}))
383, 6, 37syl2an 493 . 2 (((𝐴𝐸𝐵𝐹) ∧ (𝐶𝐺𝐷𝐻)) → (𝐴𝐵 → {⟨𝐴, 𝐶⟩, ⟨𝐵, 𝐷⟩}:{𝐴, 𝐵}⟶{𝐶, 𝐷}))
39383impia 1280 1 (((𝐴𝐸𝐵𝐹) ∧ (𝐶𝐺𝐷𝐻) ∧ 𝐴𝐵) → {⟨𝐴, 𝐶⟩, ⟨𝐵, 𝐷⟩}:{𝐴, 𝐵}⟶{𝐶, 𝐷})
Colors of variables: wff setvar class
Syntax hints:  wi 4  wa 383  w3a 1054   = wceq 1523  wcel 2030  wne 2823  Vcvv 3231  c0 3948  ifcif 4119  {cpr 4212  cop 4216  wf 5922
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1762  ax-4 1777  ax-5 1879  ax-6 1945  ax-7 1981  ax-9 2039  ax-10 2059  ax-11 2074  ax-12 2087  ax-13 2282  ax-ext 2631  ax-sep 4814  ax-nul 4822  ax-pr 4936
This theorem depends on definitions:  df-bi 197  df-or 384  df-an 385  df-3an 1056  df-tru 1526  df-ex 1745  df-nf 1750  df-sb 1938  df-eu 2502  df-mo 2503  df-clab 2638  df-cleq 2644  df-clel 2647  df-nfc 2782  df-ne 2824  df-ral 2946  df-rex 2947  df-rab 2950  df-v 3233  df-dif 3610  df-un 3612  df-in 3614  df-ss 3621  df-nul 3949  df-if 4120  df-sn 4211  df-pr 4213  df-op 4217  df-br 4686  df-opab 4746  df-id 5053  df-xp 5149  df-rel 5150  df-cnv 5151  df-co 5152  df-dm 5153  df-rn 5154  df-fun 5928  df-fn 5929  df-f 5930
This theorem is referenced by:  ftpg  6463  fpropnf1  6564  wrdlen2i  13732  umgr2v2e  26477  mapprop  42449  zlmodzxzel  42458  ldepspr  42587  zlmodzxzldeplem1  42614
  Copyright terms: Public domain W3C validator