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

Theorem fpr2g 6704
Description: A function that maps a pair to a class is a pair of ordered pairs. (Contributed by Thierry Arnoux, 12-Jul-2020.)
Assertion
Ref Expression
fpr2g ((𝐴𝑉𝐵𝑊) → (𝐹:{𝐴, 𝐵}⟶𝐶 ↔ ((𝐹𝐴) ∈ 𝐶 ∧ (𝐹𝐵) ∈ 𝐶𝐹 = {⟨𝐴, (𝐹𝐴)⟩, ⟨𝐵, (𝐹𝐵)⟩})))

Proof of Theorem fpr2g
StepHypRef Expression
1 simpr 478 . . . 4 (((𝐴𝑉𝐵𝑊) ∧ 𝐹:{𝐴, 𝐵}⟶𝐶) → 𝐹:{𝐴, 𝐵}⟶𝐶)
2 prid1g 4484 . . . . 5 (𝐴𝑉𝐴 ∈ {𝐴, 𝐵})
32ad2antrr 718 . . . 4 (((𝐴𝑉𝐵𝑊) ∧ 𝐹:{𝐴, 𝐵}⟶𝐶) → 𝐴 ∈ {𝐴, 𝐵})
41, 3ffvelrnd 6586 . . 3 (((𝐴𝑉𝐵𝑊) ∧ 𝐹:{𝐴, 𝐵}⟶𝐶) → (𝐹𝐴) ∈ 𝐶)
5 prid2g 4485 . . . . 5 (𝐵𝑊𝐵 ∈ {𝐴, 𝐵})
65ad2antlr 719 . . . 4 (((𝐴𝑉𝐵𝑊) ∧ 𝐹:{𝐴, 𝐵}⟶𝐶) → 𝐵 ∈ {𝐴, 𝐵})
71, 6ffvelrnd 6586 . . 3 (((𝐴𝑉𝐵𝑊) ∧ 𝐹:{𝐴, 𝐵}⟶𝐶) → (𝐹𝐵) ∈ 𝐶)
8 ffn 6256 . . . . 5 (𝐹:{𝐴, 𝐵}⟶𝐶𝐹 Fn {𝐴, 𝐵})
98adantl 474 . . . 4 (((𝐴𝑉𝐵𝑊) ∧ 𝐹:{𝐴, 𝐵}⟶𝐶) → 𝐹 Fn {𝐴, 𝐵})
10 fnpr2g 6703 . . . . 5 ((𝐴𝑉𝐵𝑊) → (𝐹 Fn {𝐴, 𝐵} ↔ 𝐹 = {⟨𝐴, (𝐹𝐴)⟩, ⟨𝐵, (𝐹𝐵)⟩}))
1110adantr 473 . . . 4 (((𝐴𝑉𝐵𝑊) ∧ 𝐹:{𝐴, 𝐵}⟶𝐶) → (𝐹 Fn {𝐴, 𝐵} ↔ 𝐹 = {⟨𝐴, (𝐹𝐴)⟩, ⟨𝐵, (𝐹𝐵)⟩}))
129, 11mpbid 224 . . 3 (((𝐴𝑉𝐵𝑊) ∧ 𝐹:{𝐴, 𝐵}⟶𝐶) → 𝐹 = {⟨𝐴, (𝐹𝐴)⟩, ⟨𝐵, (𝐹𝐵)⟩})
134, 7, 123jca 1159 . 2 (((𝐴𝑉𝐵𝑊) ∧ 𝐹:{𝐴, 𝐵}⟶𝐶) → ((𝐹𝐴) ∈ 𝐶 ∧ (𝐹𝐵) ∈ 𝐶𝐹 = {⟨𝐴, (𝐹𝐴)⟩, ⟨𝐵, (𝐹𝐵)⟩}))
1410biimpar 470 . . . 4 (((𝐴𝑉𝐵𝑊) ∧ 𝐹 = {⟨𝐴, (𝐹𝐴)⟩, ⟨𝐵, (𝐹𝐵)⟩}) → 𝐹 Fn {𝐴, 𝐵})
15143ad2antr3 1242 . . 3 (((𝐴𝑉𝐵𝑊) ∧ ((𝐹𝐴) ∈ 𝐶 ∧ (𝐹𝐵) ∈ 𝐶𝐹 = {⟨𝐴, (𝐹𝐴)⟩, ⟨𝐵, (𝐹𝐵)⟩})) → 𝐹 Fn {𝐴, 𝐵})
16 simpr3 1253 . . . 4 (((𝐴𝑉𝐵𝑊) ∧ ((𝐹𝐴) ∈ 𝐶 ∧ (𝐹𝐵) ∈ 𝐶𝐹 = {⟨𝐴, (𝐹𝐴)⟩, ⟨𝐵, (𝐹𝐵)⟩})) → 𝐹 = {⟨𝐴, (𝐹𝐴)⟩, ⟨𝐵, (𝐹𝐵)⟩})
172ad2antrr 718 . . . . . . 7 (((𝐴𝑉𝐵𝑊) ∧ ((𝐹𝐴) ∈ 𝐶 ∧ (𝐹𝐵) ∈ 𝐶𝐹 = {⟨𝐴, (𝐹𝐴)⟩, ⟨𝐵, (𝐹𝐵)⟩})) → 𝐴 ∈ {𝐴, 𝐵})
18 simpr1 1249 . . . . . . 7 (((𝐴𝑉𝐵𝑊) ∧ ((𝐹𝐴) ∈ 𝐶 ∧ (𝐹𝐵) ∈ 𝐶𝐹 = {⟨𝐴, (𝐹𝐴)⟩, ⟨𝐵, (𝐹𝐵)⟩})) → (𝐹𝐴) ∈ 𝐶)
19 opelxpi 5349 . . . . . . 7 ((𝐴 ∈ {𝐴, 𝐵} ∧ (𝐹𝐴) ∈ 𝐶) → ⟨𝐴, (𝐹𝐴)⟩ ∈ ({𝐴, 𝐵} × 𝐶))
2017, 18, 19syl2anc 580 . . . . . 6 (((𝐴𝑉𝐵𝑊) ∧ ((𝐹𝐴) ∈ 𝐶 ∧ (𝐹𝐵) ∈ 𝐶𝐹 = {⟨𝐴, (𝐹𝐴)⟩, ⟨𝐵, (𝐹𝐵)⟩})) → ⟨𝐴, (𝐹𝐴)⟩ ∈ ({𝐴, 𝐵} × 𝐶))
215ad2antlr 719 . . . . . . 7 (((𝐴𝑉𝐵𝑊) ∧ ((𝐹𝐴) ∈ 𝐶 ∧ (𝐹𝐵) ∈ 𝐶𝐹 = {⟨𝐴, (𝐹𝐴)⟩, ⟨𝐵, (𝐹𝐵)⟩})) → 𝐵 ∈ {𝐴, 𝐵})
22 simpr2 1251 . . . . . . 7 (((𝐴𝑉𝐵𝑊) ∧ ((𝐹𝐴) ∈ 𝐶 ∧ (𝐹𝐵) ∈ 𝐶𝐹 = {⟨𝐴, (𝐹𝐴)⟩, ⟨𝐵, (𝐹𝐵)⟩})) → (𝐹𝐵) ∈ 𝐶)
23 opelxpi 5349 . . . . . . 7 ((𝐵 ∈ {𝐴, 𝐵} ∧ (𝐹𝐵) ∈ 𝐶) → ⟨𝐵, (𝐹𝐵)⟩ ∈ ({𝐴, 𝐵} × 𝐶))
2421, 22, 23syl2anc 580 . . . . . 6 (((𝐴𝑉𝐵𝑊) ∧ ((𝐹𝐴) ∈ 𝐶 ∧ (𝐹𝐵) ∈ 𝐶𝐹 = {⟨𝐴, (𝐹𝐴)⟩, ⟨𝐵, (𝐹𝐵)⟩})) → ⟨𝐵, (𝐹𝐵)⟩ ∈ ({𝐴, 𝐵} × 𝐶))
2520, 24jca 508 . . . . 5 (((𝐴𝑉𝐵𝑊) ∧ ((𝐹𝐴) ∈ 𝐶 ∧ (𝐹𝐵) ∈ 𝐶𝐹 = {⟨𝐴, (𝐹𝐴)⟩, ⟨𝐵, (𝐹𝐵)⟩})) → (⟨𝐴, (𝐹𝐴)⟩ ∈ ({𝐴, 𝐵} × 𝐶) ∧ ⟨𝐵, (𝐹𝐵)⟩ ∈ ({𝐴, 𝐵} × 𝐶)))
26 opex 5123 . . . . . 6 𝐴, (𝐹𝐴)⟩ ∈ V
27 opex 5123 . . . . . 6 𝐵, (𝐹𝐵)⟩ ∈ V
2826, 27prss 4539 . . . . 5 ((⟨𝐴, (𝐹𝐴)⟩ ∈ ({𝐴, 𝐵} × 𝐶) ∧ ⟨𝐵, (𝐹𝐵)⟩ ∈ ({𝐴, 𝐵} × 𝐶)) ↔ {⟨𝐴, (𝐹𝐴)⟩, ⟨𝐵, (𝐹𝐵)⟩} ⊆ ({𝐴, 𝐵} × 𝐶))
2925, 28sylib 210 . . . 4 (((𝐴𝑉𝐵𝑊) ∧ ((𝐹𝐴) ∈ 𝐶 ∧ (𝐹𝐵) ∈ 𝐶𝐹 = {⟨𝐴, (𝐹𝐴)⟩, ⟨𝐵, (𝐹𝐵)⟩})) → {⟨𝐴, (𝐹𝐴)⟩, ⟨𝐵, (𝐹𝐵)⟩} ⊆ ({𝐴, 𝐵} × 𝐶))
3016, 29eqsstrd 3835 . . 3 (((𝐴𝑉𝐵𝑊) ∧ ((𝐹𝐴) ∈ 𝐶 ∧ (𝐹𝐵) ∈ 𝐶𝐹 = {⟨𝐴, (𝐹𝐴)⟩, ⟨𝐵, (𝐹𝐵)⟩})) → 𝐹 ⊆ ({𝐴, 𝐵} × 𝐶))
31 dff2 6597 . . 3 (𝐹:{𝐴, 𝐵}⟶𝐶 ↔ (𝐹 Fn {𝐴, 𝐵} ∧ 𝐹 ⊆ ({𝐴, 𝐵} × 𝐶)))
3215, 30, 31sylanbrc 579 . 2 (((𝐴𝑉𝐵𝑊) ∧ ((𝐹𝐴) ∈ 𝐶 ∧ (𝐹𝐵) ∈ 𝐶𝐹 = {⟨𝐴, (𝐹𝐴)⟩, ⟨𝐵, (𝐹𝐵)⟩})) → 𝐹:{𝐴, 𝐵}⟶𝐶)
3313, 32impbida 836 1 ((𝐴𝑉𝐵𝑊) → (𝐹:{𝐴, 𝐵}⟶𝐶 ↔ ((𝐹𝐴) ∈ 𝐶 ∧ (𝐹𝐵) ∈ 𝐶𝐹 = {⟨𝐴, (𝐹𝐴)⟩, ⟨𝐵, (𝐹𝐵)⟩})))
Colors of variables: wff setvar class
Syntax hints:  wi 4  wb 198  wa 385  w3a 1108   = wceq 1653  wcel 2157  wss 3769  {cpr 4370  cop 4374   × cxp 5310   Fn wfn 6096  wf 6097  cfv 6101
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1891  ax-4 1905  ax-5 2006  ax-6 2072  ax-7 2107  ax-8 2159  ax-9 2166  ax-10 2185  ax-11 2200  ax-12 2213  ax-13 2377  ax-ext 2777  ax-sep 4975  ax-nul 4983  ax-pow 5035  ax-pr 5097
This theorem depends on definitions:  df-bi 199  df-an 386  df-or 875  df-3an 1110  df-tru 1657  df-ex 1876  df-nf 1880  df-sb 2065  df-mo 2591  df-eu 2609  df-clab 2786  df-cleq 2792  df-clel 2795  df-nfc 2930  df-ne 2972  df-ral 3094  df-rex 3095  df-reu 3096  df-rab 3098  df-v 3387  df-sbc 3634  df-csb 3729  df-dif 3772  df-un 3774  df-in 3776  df-ss 3783  df-nul 4116  df-if 4278  df-sn 4369  df-pr 4371  df-op 4375  df-uni 4629  df-br 4844  df-opab 4906  df-mpt 4923  df-id 5220  df-xp 5318  df-rel 5319  df-cnv 5320  df-co 5321  df-dm 5322  df-rn 5323  df-res 5324  df-ima 5325  df-iota 6064  df-fun 6103  df-fn 6104  df-f 6105  df-f1 6106  df-fo 6107  df-f1o 6108  df-fv 6109
This theorem is referenced by:  f1prex  6767  uhgrwkspthlem2  27008
  Copyright terms: Public domain W3C validator