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

Theorem fprb 7069
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 4698 . . . . . 6 𝐴 ∈ {𝐴, 𝐵}
3 ffvelrn 6959 . . . . . 6 ((𝐹:{𝐴, 𝐵}⟶𝑅𝐴 ∈ {𝐴, 𝐵}) → (𝐹𝐴) ∈ 𝑅)
42, 3mpan2 688 . . . . 5 (𝐹:{𝐴, 𝐵}⟶𝑅 → (𝐹𝐴) ∈ 𝑅)
54adantr 481 . . . 4 ((𝐹:{𝐴, 𝐵}⟶𝑅𝐴𝐵) → (𝐹𝐴) ∈ 𝑅)
6 fprb.2 . . . . . . 7 𝐵 ∈ V
76prid2 4699 . . . . . 6 𝐵 ∈ {𝐴, 𝐵}
8 ffvelrn 6959 . . . . . 6 ((𝐹:{𝐴, 𝐵}⟶𝑅𝐵 ∈ {𝐴, 𝐵}) → (𝐹𝐵) ∈ 𝑅)
97, 8mpan2 688 . . . . 5 (𝐹:{𝐴, 𝐵}⟶𝑅 → (𝐹𝐵) ∈ 𝑅)
109adantr 481 . . . 4 ((𝐹:{𝐴, 𝐵}⟶𝑅𝐴𝐵) → (𝐹𝐵) ∈ 𝑅)
11 fvex 6787 . . . . . . . 8 (𝐹𝐴) ∈ V
121, 11fvpr1 7065 . . . . . . 7 (𝐴𝐵 → ({⟨𝐴, (𝐹𝐴)⟩, ⟨𝐵, (𝐹𝐵)⟩}‘𝐴) = (𝐹𝐴))
13 fvex 6787 . . . . . . . 8 (𝐹𝐵) ∈ V
146, 13fvpr2 7067 . . . . . . 7 (𝐴𝐵 → ({⟨𝐴, (𝐹𝐴)⟩, ⟨𝐵, (𝐹𝐵)⟩}‘𝐵) = (𝐹𝐵))
15 fveq2 6774 . . . . . . . . . 10 (𝑥 = 𝐴 → (𝐹𝑥) = (𝐹𝐴))
16 fveq2 6774 . . . . . . . . . 10 (𝑥 = 𝐴 → ({⟨𝐴, (𝐹𝐴)⟩, ⟨𝐵, (𝐹𝐵)⟩}‘𝑥) = ({⟨𝐴, (𝐹𝐴)⟩, ⟨𝐵, (𝐹𝐵)⟩}‘𝐴))
1715, 16eqeq12d 2754 . . . . . . . . 9 (𝑥 = 𝐴 → ((𝐹𝑥) = ({⟨𝐴, (𝐹𝐴)⟩, ⟨𝐵, (𝐹𝐵)⟩}‘𝑥) ↔ (𝐹𝐴) = ({⟨𝐴, (𝐹𝐴)⟩, ⟨𝐵, (𝐹𝐵)⟩}‘𝐴)))
18 eqcom 2745 . . . . . . . . 9 ((𝐹𝐴) = ({⟨𝐴, (𝐹𝐴)⟩, ⟨𝐵, (𝐹𝐵)⟩}‘𝐴) ↔ ({⟨𝐴, (𝐹𝐴)⟩, ⟨𝐵, (𝐹𝐵)⟩}‘𝐴) = (𝐹𝐴))
1917, 18bitrdi 287 . . . . . . . 8 (𝑥 = 𝐴 → ((𝐹𝑥) = ({⟨𝐴, (𝐹𝐴)⟩, ⟨𝐵, (𝐹𝐵)⟩}‘𝑥) ↔ ({⟨𝐴, (𝐹𝐴)⟩, ⟨𝐵, (𝐹𝐵)⟩}‘𝐴) = (𝐹𝐴)))
20 fveq2 6774 . . . . . . . . . 10 (𝑥 = 𝐵 → (𝐹𝑥) = (𝐹𝐵))
21 fveq2 6774 . . . . . . . . . 10 (𝑥 = 𝐵 → ({⟨𝐴, (𝐹𝐴)⟩, ⟨𝐵, (𝐹𝐵)⟩}‘𝑥) = ({⟨𝐴, (𝐹𝐴)⟩, ⟨𝐵, (𝐹𝐵)⟩}‘𝐵))
2220, 21eqeq12d 2754 . . . . . . . . 9 (𝑥 = 𝐵 → ((𝐹𝑥) = ({⟨𝐴, (𝐹𝐴)⟩, ⟨𝐵, (𝐹𝐵)⟩}‘𝑥) ↔ (𝐹𝐵) = ({⟨𝐴, (𝐹𝐴)⟩, ⟨𝐵, (𝐹𝐵)⟩}‘𝐵)))
23 eqcom 2745 . . . . . . . . 9 ((𝐹𝐵) = ({⟨𝐴, (𝐹𝐴)⟩, ⟨𝐵, (𝐹𝐵)⟩}‘𝐵) ↔ ({⟨𝐴, (𝐹𝐴)⟩, ⟨𝐵, (𝐹𝐵)⟩}‘𝐵) = (𝐹𝐵))
2422, 23bitrdi 287 . . . . . . . 8 (𝑥 = 𝐵 → ((𝐹𝑥) = ({⟨𝐴, (𝐹𝐴)⟩, ⟨𝐵, (𝐹𝐵)⟩}‘𝑥) ↔ ({⟨𝐴, (𝐹𝐴)⟩, ⟨𝐵, (𝐹𝐵)⟩}‘𝐵) = (𝐹𝐵)))
251, 6, 19, 24ralpr 4636 . . . . . . 7 (∀𝑥 ∈ {𝐴, 𝐵} (𝐹𝑥) = ({⟨𝐴, (𝐹𝐴)⟩, ⟨𝐵, (𝐹𝐵)⟩}‘𝑥) ↔ (({⟨𝐴, (𝐹𝐴)⟩, ⟨𝐵, (𝐹𝐵)⟩}‘𝐴) = (𝐹𝐴) ∧ ({⟨𝐴, (𝐹𝐴)⟩, ⟨𝐵, (𝐹𝐵)⟩}‘𝐵) = (𝐹𝐵)))
2612, 14, 25sylanbrc 583 . . . . . 6 (𝐴𝐵 → ∀𝑥 ∈ {𝐴, 𝐵} (𝐹𝑥) = ({⟨𝐴, (𝐹𝐴)⟩, ⟨𝐵, (𝐹𝐵)⟩}‘𝑥))
2726adantl 482 . . . . 5 ((𝐹:{𝐴, 𝐵}⟶𝑅𝐴𝐵) → ∀𝑥 ∈ {𝐴, 𝐵} (𝐹𝑥) = ({⟨𝐴, (𝐹𝐴)⟩, ⟨𝐵, (𝐹𝐵)⟩}‘𝑥))
28 ffn 6600 . . . . . 6 (𝐹:{𝐴, 𝐵}⟶𝑅𝐹 Fn {𝐴, 𝐵})
291, 6, 11, 13fpr 7026 . . . . . . 7 (𝐴𝐵 → {⟨𝐴, (𝐹𝐴)⟩, ⟨𝐵, (𝐹𝐵)⟩}:{𝐴, 𝐵}⟶{(𝐹𝐴), (𝐹𝐵)})
3029ffnd 6601 . . . . . 6 (𝐴𝐵 → {⟨𝐴, (𝐹𝐴)⟩, ⟨𝐵, (𝐹𝐵)⟩} Fn {𝐴, 𝐵})
31 eqfnfv 6909 . . . . . 6 ((𝐹 Fn {𝐴, 𝐵} ∧ {⟨𝐴, (𝐹𝐴)⟩, ⟨𝐵, (𝐹𝐵)⟩} Fn {𝐴, 𝐵}) → (𝐹 = {⟨𝐴, (𝐹𝐴)⟩, ⟨𝐵, (𝐹𝐵)⟩} ↔ ∀𝑥 ∈ {𝐴, 𝐵} (𝐹𝑥) = ({⟨𝐴, (𝐹𝐴)⟩, ⟨𝐵, (𝐹𝐵)⟩}‘𝑥)))
3228, 30, 31syl2an 596 . . . . 5 ((𝐹:{𝐴, 𝐵}⟶𝑅𝐴𝐵) → (𝐹 = {⟨𝐴, (𝐹𝐴)⟩, ⟨𝐵, (𝐹𝐵)⟩} ↔ ∀𝑥 ∈ {𝐴, 𝐵} (𝐹𝑥) = ({⟨𝐴, (𝐹𝐴)⟩, ⟨𝐵, (𝐹𝐵)⟩}‘𝑥)))
3327, 32mpbird 256 . . . 4 ((𝐹:{𝐴, 𝐵}⟶𝑅𝐴𝐵) → 𝐹 = {⟨𝐴, (𝐹𝐴)⟩, ⟨𝐵, (𝐹𝐵)⟩})
34 opeq2 4805 . . . . . . 7 (𝑥 = (𝐹𝐴) → ⟨𝐴, 𝑥⟩ = ⟨𝐴, (𝐹𝐴)⟩)
3534preq1d 4675 . . . . . 6 (𝑥 = (𝐹𝐴) → {⟨𝐴, 𝑥⟩, ⟨𝐵, 𝑦⟩} = {⟨𝐴, (𝐹𝐴)⟩, ⟨𝐵, 𝑦⟩})
3635eqeq2d 2749 . . . . 5 (𝑥 = (𝐹𝐴) → (𝐹 = {⟨𝐴, 𝑥⟩, ⟨𝐵, 𝑦⟩} ↔ 𝐹 = {⟨𝐴, (𝐹𝐴)⟩, ⟨𝐵, 𝑦⟩}))
37 opeq2 4805 . . . . . . 7 (𝑦 = (𝐹𝐵) → ⟨𝐵, 𝑦⟩ = ⟨𝐵, (𝐹𝐵)⟩)
3837preq2d 4676 . . . . . 6 (𝑦 = (𝐹𝐵) → {⟨𝐴, (𝐹𝐴)⟩, ⟨𝐵, 𝑦⟩} = {⟨𝐴, (𝐹𝐴)⟩, ⟨𝐵, (𝐹𝐵)⟩})
3938eqeq2d 2749 . . . . 5 (𝑦 = (𝐹𝐵) → (𝐹 = {⟨𝐴, (𝐹𝐴)⟩, ⟨𝐵, 𝑦⟩} ↔ 𝐹 = {⟨𝐴, (𝐹𝐴)⟩, ⟨𝐵, (𝐹𝐵)⟩}))
4036, 39rspc2ev 3572 . . . 4 (((𝐹𝐴) ∈ 𝑅 ∧ (𝐹𝐵) ∈ 𝑅𝐹 = {⟨𝐴, (𝐹𝐴)⟩, ⟨𝐵, (𝐹𝐵)⟩}) → ∃𝑥𝑅𝑦𝑅 𝐹 = {⟨𝐴, 𝑥⟩, ⟨𝐵, 𝑦⟩})
415, 10, 33, 40syl3anc 1370 . . 3 ((𝐹:{𝐴, 𝐵}⟶𝑅𝐴𝐵) → ∃𝑥𝑅𝑦𝑅 𝐹 = {⟨𝐴, 𝑥⟩, ⟨𝐵, 𝑦⟩})
4241expcom 414 . 2 (𝐴𝐵 → (𝐹:{𝐴, 𝐵}⟶𝑅 → ∃𝑥𝑅𝑦𝑅 𝐹 = {⟨𝐴, 𝑥⟩, ⟨𝐵, 𝑦⟩}))
43 vex 3436 . . . . . . 7 𝑥 ∈ V
44 vex 3436 . . . . . . 7 𝑦 ∈ V
451, 6, 43, 44fpr 7026 . . . . . 6 (𝐴𝐵 → {⟨𝐴, 𝑥⟩, ⟨𝐵, 𝑦⟩}:{𝐴, 𝐵}⟶{𝑥, 𝑦})
46 prssi 4754 . . . . . 6 ((𝑥𝑅𝑦𝑅) → {𝑥, 𝑦} ⊆ 𝑅)
47 fss 6617 . . . . . 6 (({⟨𝐴, 𝑥⟩, ⟨𝐵, 𝑦⟩}:{𝐴, 𝐵}⟶{𝑥, 𝑦} ∧ {𝑥, 𝑦} ⊆ 𝑅) → {⟨𝐴, 𝑥⟩, ⟨𝐵, 𝑦⟩}:{𝐴, 𝐵}⟶𝑅)
4845, 46, 47syl2an 596 . . . . 5 ((𝐴𝐵 ∧ (𝑥𝑅𝑦𝑅)) → {⟨𝐴, 𝑥⟩, ⟨𝐵, 𝑦⟩}:{𝐴, 𝐵}⟶𝑅)
4948ex 413 . . . 4 (𝐴𝐵 → ((𝑥𝑅𝑦𝑅) → {⟨𝐴, 𝑥⟩, ⟨𝐵, 𝑦⟩}:{𝐴, 𝐵}⟶𝑅))
50 feq1 6581 . . . . 5 (𝐹 = {⟨𝐴, 𝑥⟩, ⟨𝐵, 𝑦⟩} → (𝐹:{𝐴, 𝐵}⟶𝑅 ↔ {⟨𝐴, 𝑥⟩, ⟨𝐵, 𝑦⟩}:{𝐴, 𝐵}⟶𝑅))
5150biimprcd 249 . . . 4 ({⟨𝐴, 𝑥⟩, ⟨𝐵, 𝑦⟩}:{𝐴, 𝐵}⟶𝑅 → (𝐹 = {⟨𝐴, 𝑥⟩, ⟨𝐵, 𝑦⟩} → 𝐹:{𝐴, 𝐵}⟶𝑅))
5249, 51syl6 35 . . 3 (𝐴𝐵 → ((𝑥𝑅𝑦𝑅) → (𝐹 = {⟨𝐴, 𝑥⟩, ⟨𝐵, 𝑦⟩} → 𝐹:{𝐴, 𝐵}⟶𝑅)))
5352rexlimdvv 3222 . 2 (𝐴𝐵 → (∃𝑥𝑅𝑦𝑅 𝐹 = {⟨𝐴, 𝑥⟩, ⟨𝐵, 𝑦⟩} → 𝐹:{𝐴, 𝐵}⟶𝑅))
5442, 53impbid 211 1 (𝐴𝐵 → (𝐹:{𝐴, 𝐵}⟶𝑅 ↔ ∃𝑥𝑅𝑦𝑅 𝐹 = {⟨𝐴, 𝑥⟩, ⟨𝐵, 𝑦⟩}))
Colors of variables: wff setvar class
Syntax hints:  wi 4  wb 205  wa 396   = wceq 1539  wcel 2106  wne 2943  wral 3064  wrex 3065  Vcvv 3432  wss 3887  {cpr 4563  cop 4567   Fn wfn 6428  wf 6429  cfv 6433
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
This theorem depends on definitions:  df-bi 206  df-an 397  df-or 845  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-rab 3073  df-v 3434  df-sbc 3717  df-csb 3833  df-dif 3890  df-un 3892  df-in 3894  df-ss 3904  df-nul 4257  df-if 4460  df-sn 4562  df-pr 4564  df-op 4568  df-uni 4840  df-br 5075  df-opab 5137  df-mpt 5158  df-id 5489  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-iota 6391  df-fun 6435  df-fn 6436  df-f 6437  df-fv 6441
This theorem is referenced by:  2arymaptf1  45999  prelrrx2b  46060
  Copyright terms: Public domain W3C validator