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

Theorem fprb 7051
Description: A condition for functionhood over a pair. (Contributed by Scott Fenton, 16-Sep-2013.)
Hypotheses
Ref Expression
fprb.1 𝐴 ∈ V
fprb.2 𝐵 ∈ V
Assertion
Ref Expression
fprb (𝐴𝐵 → (𝐹:{𝐴, 𝐵}⟶𝑅 ↔ ∃𝑥𝑅𝑦𝑅 𝐹 = {⟨𝐴, 𝑥⟩, ⟨𝐵, 𝑦⟩}))
Distinct variable groups:   𝑥,𝐴,𝑦   𝑥,𝐵,𝑦   𝑥,𝐹,𝑦   𝑥,𝑅,𝑦

Proof of Theorem fprb
StepHypRef Expression
1 fprb.1 . . . . . . 7 𝐴 ∈ V
21prid1 4695 . . . . . 6 𝐴 ∈ {𝐴, 𝐵}
3 ffvelrn 6941 . . . . . 6 ((𝐹:{𝐴, 𝐵}⟶𝑅𝐴 ∈ {𝐴, 𝐵}) → (𝐹𝐴) ∈ 𝑅)
42, 3mpan2 687 . . . . 5 (𝐹:{𝐴, 𝐵}⟶𝑅 → (𝐹𝐴) ∈ 𝑅)
54adantr 480 . . . 4 ((𝐹:{𝐴, 𝐵}⟶𝑅𝐴𝐵) → (𝐹𝐴) ∈ 𝑅)
6 fprb.2 . . . . . . 7 𝐵 ∈ V
76prid2 4696 . . . . . 6 𝐵 ∈ {𝐴, 𝐵}
8 ffvelrn 6941 . . . . . 6 ((𝐹:{𝐴, 𝐵}⟶𝑅𝐵 ∈ {𝐴, 𝐵}) → (𝐹𝐵) ∈ 𝑅)
97, 8mpan2 687 . . . . 5 (𝐹:{𝐴, 𝐵}⟶𝑅 → (𝐹𝐵) ∈ 𝑅)
109adantr 480 . . . 4 ((𝐹:{𝐴, 𝐵}⟶𝑅𝐴𝐵) → (𝐹𝐵) ∈ 𝑅)
11 fvex 6769 . . . . . . . 8 (𝐹𝐴) ∈ V
121, 11fvpr1 7047 . . . . . . 7 (𝐴𝐵 → ({⟨𝐴, (𝐹𝐴)⟩, ⟨𝐵, (𝐹𝐵)⟩}‘𝐴) = (𝐹𝐴))
13 fvex 6769 . . . . . . . 8 (𝐹𝐵) ∈ V
146, 13fvpr2 7049 . . . . . . 7 (𝐴𝐵 → ({⟨𝐴, (𝐹𝐴)⟩, ⟨𝐵, (𝐹𝐵)⟩}‘𝐵) = (𝐹𝐵))
15 fveq2 6756 . . . . . . . . . 10 (𝑥 = 𝐴 → (𝐹𝑥) = (𝐹𝐴))
16 fveq2 6756 . . . . . . . . . 10 (𝑥 = 𝐴 → ({⟨𝐴, (𝐹𝐴)⟩, ⟨𝐵, (𝐹𝐵)⟩}‘𝑥) = ({⟨𝐴, (𝐹𝐴)⟩, ⟨𝐵, (𝐹𝐵)⟩}‘𝐴))
1715, 16eqeq12d 2754 . . . . . . . . 9 (𝑥 = 𝐴 → ((𝐹𝑥) = ({⟨𝐴, (𝐹𝐴)⟩, ⟨𝐵, (𝐹𝐵)⟩}‘𝑥) ↔ (𝐹𝐴) = ({⟨𝐴, (𝐹𝐴)⟩, ⟨𝐵, (𝐹𝐵)⟩}‘𝐴)))
18 eqcom 2745 . . . . . . . . 9 ((𝐹𝐴) = ({⟨𝐴, (𝐹𝐴)⟩, ⟨𝐵, (𝐹𝐵)⟩}‘𝐴) ↔ ({⟨𝐴, (𝐹𝐴)⟩, ⟨𝐵, (𝐹𝐵)⟩}‘𝐴) = (𝐹𝐴))
1917, 18bitrdi 286 . . . . . . . 8 (𝑥 = 𝐴 → ((𝐹𝑥) = ({⟨𝐴, (𝐹𝐴)⟩, ⟨𝐵, (𝐹𝐵)⟩}‘𝑥) ↔ ({⟨𝐴, (𝐹𝐴)⟩, ⟨𝐵, (𝐹𝐵)⟩}‘𝐴) = (𝐹𝐴)))
20 fveq2 6756 . . . . . . . . . 10 (𝑥 = 𝐵 → (𝐹𝑥) = (𝐹𝐵))
21 fveq2 6756 . . . . . . . . . 10 (𝑥 = 𝐵 → ({⟨𝐴, (𝐹𝐴)⟩, ⟨𝐵, (𝐹𝐵)⟩}‘𝑥) = ({⟨𝐴, (𝐹𝐴)⟩, ⟨𝐵, (𝐹𝐵)⟩}‘𝐵))
2220, 21eqeq12d 2754 . . . . . . . . 9 (𝑥 = 𝐵 → ((𝐹𝑥) = ({⟨𝐴, (𝐹𝐴)⟩, ⟨𝐵, (𝐹𝐵)⟩}‘𝑥) ↔ (𝐹𝐵) = ({⟨𝐴, (𝐹𝐴)⟩, ⟨𝐵, (𝐹𝐵)⟩}‘𝐵)))
23 eqcom 2745 . . . . . . . . 9 ((𝐹𝐵) = ({⟨𝐴, (𝐹𝐴)⟩, ⟨𝐵, (𝐹𝐵)⟩}‘𝐵) ↔ ({⟨𝐴, (𝐹𝐴)⟩, ⟨𝐵, (𝐹𝐵)⟩}‘𝐵) = (𝐹𝐵))
2422, 23bitrdi 286 . . . . . . . 8 (𝑥 = 𝐵 → ((𝐹𝑥) = ({⟨𝐴, (𝐹𝐴)⟩, ⟨𝐵, (𝐹𝐵)⟩}‘𝑥) ↔ ({⟨𝐴, (𝐹𝐴)⟩, ⟨𝐵, (𝐹𝐵)⟩}‘𝐵) = (𝐹𝐵)))
251, 6, 19, 24ralpr 4633 . . . . . . 7 (∀𝑥 ∈ {𝐴, 𝐵} (𝐹𝑥) = ({⟨𝐴, (𝐹𝐴)⟩, ⟨𝐵, (𝐹𝐵)⟩}‘𝑥) ↔ (({⟨𝐴, (𝐹𝐴)⟩, ⟨𝐵, (𝐹𝐵)⟩}‘𝐴) = (𝐹𝐴) ∧ ({⟨𝐴, (𝐹𝐴)⟩, ⟨𝐵, (𝐹𝐵)⟩}‘𝐵) = (𝐹𝐵)))
2612, 14, 25sylanbrc 582 . . . . . 6 (𝐴𝐵 → ∀𝑥 ∈ {𝐴, 𝐵} (𝐹𝑥) = ({⟨𝐴, (𝐹𝐴)⟩, ⟨𝐵, (𝐹𝐵)⟩}‘𝑥))
2726adantl 481 . . . . 5 ((𝐹:{𝐴, 𝐵}⟶𝑅𝐴𝐵) → ∀𝑥 ∈ {𝐴, 𝐵} (𝐹𝑥) = ({⟨𝐴, (𝐹𝐴)⟩, ⟨𝐵, (𝐹𝐵)⟩}‘𝑥))
28 ffn 6584 . . . . . 6 (𝐹:{𝐴, 𝐵}⟶𝑅𝐹 Fn {𝐴, 𝐵})
291, 6, 11, 13fpr 7008 . . . . . . 7 (𝐴𝐵 → {⟨𝐴, (𝐹𝐴)⟩, ⟨𝐵, (𝐹𝐵)⟩}:{𝐴, 𝐵}⟶{(𝐹𝐴), (𝐹𝐵)})
3029ffnd 6585 . . . . . 6 (𝐴𝐵 → {⟨𝐴, (𝐹𝐴)⟩, ⟨𝐵, (𝐹𝐵)⟩} Fn {𝐴, 𝐵})
31 eqfnfv 6891 . . . . . 6 ((𝐹 Fn {𝐴, 𝐵} ∧ {⟨𝐴, (𝐹𝐴)⟩, ⟨𝐵, (𝐹𝐵)⟩} Fn {𝐴, 𝐵}) → (𝐹 = {⟨𝐴, (𝐹𝐴)⟩, ⟨𝐵, (𝐹𝐵)⟩} ↔ ∀𝑥 ∈ {𝐴, 𝐵} (𝐹𝑥) = ({⟨𝐴, (𝐹𝐴)⟩, ⟨𝐵, (𝐹𝐵)⟩}‘𝑥)))
3228, 30, 31syl2an 595 . . . . 5 ((𝐹:{𝐴, 𝐵}⟶𝑅𝐴𝐵) → (𝐹 = {⟨𝐴, (𝐹𝐴)⟩, ⟨𝐵, (𝐹𝐵)⟩} ↔ ∀𝑥 ∈ {𝐴, 𝐵} (𝐹𝑥) = ({⟨𝐴, (𝐹𝐴)⟩, ⟨𝐵, (𝐹𝐵)⟩}‘𝑥)))
3327, 32mpbird 256 . . . 4 ((𝐹:{𝐴, 𝐵}⟶𝑅𝐴𝐵) → 𝐹 = {⟨𝐴, (𝐹𝐴)⟩, ⟨𝐵, (𝐹𝐵)⟩})
34 opeq2 4802 . . . . . . 7 (𝑥 = (𝐹𝐴) → ⟨𝐴, 𝑥⟩ = ⟨𝐴, (𝐹𝐴)⟩)
3534preq1d 4672 . . . . . 6 (𝑥 = (𝐹𝐴) → {⟨𝐴, 𝑥⟩, ⟨𝐵, 𝑦⟩} = {⟨𝐴, (𝐹𝐴)⟩, ⟨𝐵, 𝑦⟩})
3635eqeq2d 2749 . . . . 5 (𝑥 = (𝐹𝐴) → (𝐹 = {⟨𝐴, 𝑥⟩, ⟨𝐵, 𝑦⟩} ↔ 𝐹 = {⟨𝐴, (𝐹𝐴)⟩, ⟨𝐵, 𝑦⟩}))
37 opeq2 4802 . . . . . . 7 (𝑦 = (𝐹𝐵) → ⟨𝐵, 𝑦⟩ = ⟨𝐵, (𝐹𝐵)⟩)
3837preq2d 4673 . . . . . 6 (𝑦 = (𝐹𝐵) → {⟨𝐴, (𝐹𝐴)⟩, ⟨𝐵, 𝑦⟩} = {⟨𝐴, (𝐹𝐴)⟩, ⟨𝐵, (𝐹𝐵)⟩})
3938eqeq2d 2749 . . . . 5 (𝑦 = (𝐹𝐵) → (𝐹 = {⟨𝐴, (𝐹𝐴)⟩, ⟨𝐵, 𝑦⟩} ↔ 𝐹 = {⟨𝐴, (𝐹𝐴)⟩, ⟨𝐵, (𝐹𝐵)⟩}))
4036, 39rspc2ev 3564 . . . 4 (((𝐹𝐴) ∈ 𝑅 ∧ (𝐹𝐵) ∈ 𝑅𝐹 = {⟨𝐴, (𝐹𝐴)⟩, ⟨𝐵, (𝐹𝐵)⟩}) → ∃𝑥𝑅𝑦𝑅 𝐹 = {⟨𝐴, 𝑥⟩, ⟨𝐵, 𝑦⟩})
415, 10, 33, 40syl3anc 1369 . . 3 ((𝐹:{𝐴, 𝐵}⟶𝑅𝐴𝐵) → ∃𝑥𝑅𝑦𝑅 𝐹 = {⟨𝐴, 𝑥⟩, ⟨𝐵, 𝑦⟩})
4241expcom 413 . 2 (𝐴𝐵 → (𝐹:{𝐴, 𝐵}⟶𝑅 → ∃𝑥𝑅𝑦𝑅 𝐹 = {⟨𝐴, 𝑥⟩, ⟨𝐵, 𝑦⟩}))
43 vex 3426 . . . . . . 7 𝑥 ∈ V
44 vex 3426 . . . . . . 7 𝑦 ∈ V
451, 6, 43, 44fpr 7008 . . . . . 6 (𝐴𝐵 → {⟨𝐴, 𝑥⟩, ⟨𝐵, 𝑦⟩}:{𝐴, 𝐵}⟶{𝑥, 𝑦})
46 prssi 4751 . . . . . 6 ((𝑥𝑅𝑦𝑅) → {𝑥, 𝑦} ⊆ 𝑅)
47 fss 6601 . . . . . 6 (({⟨𝐴, 𝑥⟩, ⟨𝐵, 𝑦⟩}:{𝐴, 𝐵}⟶{𝑥, 𝑦} ∧ {𝑥, 𝑦} ⊆ 𝑅) → {⟨𝐴, 𝑥⟩, ⟨𝐵, 𝑦⟩}:{𝐴, 𝐵}⟶𝑅)
4845, 46, 47syl2an 595 . . . . 5 ((𝐴𝐵 ∧ (𝑥𝑅𝑦𝑅)) → {⟨𝐴, 𝑥⟩, ⟨𝐵, 𝑦⟩}:{𝐴, 𝐵}⟶𝑅)
4948ex 412 . . . 4 (𝐴𝐵 → ((𝑥𝑅𝑦𝑅) → {⟨𝐴, 𝑥⟩, ⟨𝐵, 𝑦⟩}:{𝐴, 𝐵}⟶𝑅))
50 feq1 6565 . . . . 5 (𝐹 = {⟨𝐴, 𝑥⟩, ⟨𝐵, 𝑦⟩} → (𝐹:{𝐴, 𝐵}⟶𝑅 ↔ {⟨𝐴, 𝑥⟩, ⟨𝐵, 𝑦⟩}:{𝐴, 𝐵}⟶𝑅))
5150biimprcd 249 . . . 4 ({⟨𝐴, 𝑥⟩, ⟨𝐵, 𝑦⟩}:{𝐴, 𝐵}⟶𝑅 → (𝐹 = {⟨𝐴, 𝑥⟩, ⟨𝐵, 𝑦⟩} → 𝐹:{𝐴, 𝐵}⟶𝑅))
5249, 51syl6 35 . . 3 (𝐴𝐵 → ((𝑥𝑅𝑦𝑅) → (𝐹 = {⟨𝐴, 𝑥⟩, ⟨𝐵, 𝑦⟩} → 𝐹:{𝐴, 𝐵}⟶𝑅)))
5352rexlimdvv 3221 . 2 (𝐴𝐵 → (∃𝑥𝑅𝑦𝑅 𝐹 = {⟨𝐴, 𝑥⟩, ⟨𝐵, 𝑦⟩} → 𝐹:{𝐴, 𝐵}⟶𝑅))
5442, 53impbid 211 1 (𝐴𝐵 → (𝐹:{𝐴, 𝐵}⟶𝑅 ↔ ∃𝑥𝑅𝑦𝑅 𝐹 = {⟨𝐴, 𝑥⟩, ⟨𝐵, 𝑦⟩}))
Colors of variables: wff setvar class
Syntax hints:  wi 4  wb 205  wa 395   = wceq 1539  wcel 2108  wne 2942  wral 3063  wrex 3064  Vcvv 3422  wss 3883  {cpr 4560  cop 4564   Fn wfn 6413  wf 6414  cfv 6418
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
This theorem depends on definitions:  df-bi 206  df-an 396  df-or 844  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-rab 3072  df-v 3424  df-sbc 3712  df-csb 3829  df-dif 3886  df-un 3888  df-in 3890  df-ss 3900  df-nul 4254  df-if 4457  df-sn 4559  df-pr 4561  df-op 4565  df-uni 4837  df-br 5071  df-opab 5133  df-mpt 5154  df-id 5480  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-iota 6376  df-fun 6420  df-fn 6421  df-f 6422  df-fv 6426
This theorem is referenced by:  2arymaptf1  45887  prelrrx2b  45948
  Copyright terms: Public domain W3C validator