Users' Mathboxes Mathbox for Scott Fenton < Previous   Next >
Nearby theorems
Mirrors  >  Home  >  MPE Home  >  Th. List  >   Mathboxes  >  fprb Structured version   Visualization version   GIF version

Theorem fprb 31408
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 4272 . . . . . 6 𝐴 ∈ {𝐴, 𝐵}
3 ffvelrn 6318 . . . . . 6 ((𝐹:{𝐴, 𝐵}⟶𝑅𝐴 ∈ {𝐴, 𝐵}) → (𝐹𝐴) ∈ 𝑅)
42, 3mpan2 706 . . . . 5 (𝐹:{𝐴, 𝐵}⟶𝑅 → (𝐹𝐴) ∈ 𝑅)
54adantr 481 . . . 4 ((𝐹:{𝐴, 𝐵}⟶𝑅𝐴𝐵) → (𝐹𝐴) ∈ 𝑅)
6 fprb.2 . . . . . . 7 𝐵 ∈ V
76prid2 4273 . . . . . 6 𝐵 ∈ {𝐴, 𝐵}
8 ffvelrn 6318 . . . . . 6 ((𝐹:{𝐴, 𝐵}⟶𝑅𝐵 ∈ {𝐴, 𝐵}) → (𝐹𝐵) ∈ 𝑅)
97, 8mpan2 706 . . . . 5 (𝐹:{𝐴, 𝐵}⟶𝑅 → (𝐹𝐵) ∈ 𝑅)
109adantr 481 . . . 4 ((𝐹:{𝐴, 𝐵}⟶𝑅𝐴𝐵) → (𝐹𝐵) ∈ 𝑅)
11 fvex 6163 . . . . . . . 8 (𝐹𝐴) ∈ V
121, 11fvpr1 6416 . . . . . . 7 (𝐴𝐵 → ({⟨𝐴, (𝐹𝐴)⟩, ⟨𝐵, (𝐹𝐵)⟩}‘𝐴) = (𝐹𝐴))
13 fvex 6163 . . . . . . . 8 (𝐹𝐵) ∈ V
146, 13fvpr2 6417 . . . . . . 7 (𝐴𝐵 → ({⟨𝐴, (𝐹𝐴)⟩, ⟨𝐵, (𝐹𝐵)⟩}‘𝐵) = (𝐹𝐵))
15 fveq2 6153 . . . . . . . . . 10 (𝑥 = 𝐴 → (𝐹𝑥) = (𝐹𝐴))
16 fveq2 6153 . . . . . . . . . 10 (𝑥 = 𝐴 → ({⟨𝐴, (𝐹𝐴)⟩, ⟨𝐵, (𝐹𝐵)⟩}‘𝑥) = ({⟨𝐴, (𝐹𝐴)⟩, ⟨𝐵, (𝐹𝐵)⟩}‘𝐴))
1715, 16eqeq12d 2636 . . . . . . . . 9 (𝑥 = 𝐴 → ((𝐹𝑥) = ({⟨𝐴, (𝐹𝐴)⟩, ⟨𝐵, (𝐹𝐵)⟩}‘𝑥) ↔ (𝐹𝐴) = ({⟨𝐴, (𝐹𝐴)⟩, ⟨𝐵, (𝐹𝐵)⟩}‘𝐴)))
18 eqcom 2628 . . . . . . . . 9 ((𝐹𝐴) = ({⟨𝐴, (𝐹𝐴)⟩, ⟨𝐵, (𝐹𝐵)⟩}‘𝐴) ↔ ({⟨𝐴, (𝐹𝐴)⟩, ⟨𝐵, (𝐹𝐵)⟩}‘𝐴) = (𝐹𝐴))
1917, 18syl6bb 276 . . . . . . . 8 (𝑥 = 𝐴 → ((𝐹𝑥) = ({⟨𝐴, (𝐹𝐴)⟩, ⟨𝐵, (𝐹𝐵)⟩}‘𝑥) ↔ ({⟨𝐴, (𝐹𝐴)⟩, ⟨𝐵, (𝐹𝐵)⟩}‘𝐴) = (𝐹𝐴)))
20 fveq2 6153 . . . . . . . . . 10 (𝑥 = 𝐵 → (𝐹𝑥) = (𝐹𝐵))
21 fveq2 6153 . . . . . . . . . 10 (𝑥 = 𝐵 → ({⟨𝐴, (𝐹𝐴)⟩, ⟨𝐵, (𝐹𝐵)⟩}‘𝑥) = ({⟨𝐴, (𝐹𝐴)⟩, ⟨𝐵, (𝐹𝐵)⟩}‘𝐵))
2220, 21eqeq12d 2636 . . . . . . . . 9 (𝑥 = 𝐵 → ((𝐹𝑥) = ({⟨𝐴, (𝐹𝐴)⟩, ⟨𝐵, (𝐹𝐵)⟩}‘𝑥) ↔ (𝐹𝐵) = ({⟨𝐴, (𝐹𝐴)⟩, ⟨𝐵, (𝐹𝐵)⟩}‘𝐵)))
23 eqcom 2628 . . . . . . . . 9 ((𝐹𝐵) = ({⟨𝐴, (𝐹𝐴)⟩, ⟨𝐵, (𝐹𝐵)⟩}‘𝐵) ↔ ({⟨𝐴, (𝐹𝐴)⟩, ⟨𝐵, (𝐹𝐵)⟩}‘𝐵) = (𝐹𝐵))
2422, 23syl6bb 276 . . . . . . . 8 (𝑥 = 𝐵 → ((𝐹𝑥) = ({⟨𝐴, (𝐹𝐴)⟩, ⟨𝐵, (𝐹𝐵)⟩}‘𝑥) ↔ ({⟨𝐴, (𝐹𝐴)⟩, ⟨𝐵, (𝐹𝐵)⟩}‘𝐵) = (𝐹𝐵)))
251, 6, 19, 24ralpr 4214 . . . . . . 7 (∀𝑥 ∈ {𝐴, 𝐵} (𝐹𝑥) = ({⟨𝐴, (𝐹𝐴)⟩, ⟨𝐵, (𝐹𝐵)⟩}‘𝑥) ↔ (({⟨𝐴, (𝐹𝐴)⟩, ⟨𝐵, (𝐹𝐵)⟩}‘𝐴) = (𝐹𝐴) ∧ ({⟨𝐴, (𝐹𝐴)⟩, ⟨𝐵, (𝐹𝐵)⟩}‘𝐵) = (𝐹𝐵)))
2612, 14, 25sylanbrc 697 . . . . . 6 (𝐴𝐵 → ∀𝑥 ∈ {𝐴, 𝐵} (𝐹𝑥) = ({⟨𝐴, (𝐹𝐴)⟩, ⟨𝐵, (𝐹𝐵)⟩}‘𝑥))
2726adantl 482 . . . . 5 ((𝐹:{𝐴, 𝐵}⟶𝑅𝐴𝐵) → ∀𝑥 ∈ {𝐴, 𝐵} (𝐹𝑥) = ({⟨𝐴, (𝐹𝐴)⟩, ⟨𝐵, (𝐹𝐵)⟩}‘𝑥))
28 ffn 6007 . . . . . 6 (𝐹:{𝐴, 𝐵}⟶𝑅𝐹 Fn {𝐴, 𝐵})
291, 6, 11, 13fpr 6381 . . . . . . 7 (𝐴𝐵 → {⟨𝐴, (𝐹𝐴)⟩, ⟨𝐵, (𝐹𝐵)⟩}:{𝐴, 𝐵}⟶{(𝐹𝐴), (𝐹𝐵)})
30 ffn 6007 . . . . . . 7 ({⟨𝐴, (𝐹𝐴)⟩, ⟨𝐵, (𝐹𝐵)⟩}:{𝐴, 𝐵}⟶{(𝐹𝐴), (𝐹𝐵)} → {⟨𝐴, (𝐹𝐴)⟩, ⟨𝐵, (𝐹𝐵)⟩} Fn {𝐴, 𝐵})
3129, 30syl 17 . . . . . 6 (𝐴𝐵 → {⟨𝐴, (𝐹𝐴)⟩, ⟨𝐵, (𝐹𝐵)⟩} Fn {𝐴, 𝐵})
32 eqfnfv 6272 . . . . . 6 ((𝐹 Fn {𝐴, 𝐵} ∧ {⟨𝐴, (𝐹𝐴)⟩, ⟨𝐵, (𝐹𝐵)⟩} Fn {𝐴, 𝐵}) → (𝐹 = {⟨𝐴, (𝐹𝐴)⟩, ⟨𝐵, (𝐹𝐵)⟩} ↔ ∀𝑥 ∈ {𝐴, 𝐵} (𝐹𝑥) = ({⟨𝐴, (𝐹𝐴)⟩, ⟨𝐵, (𝐹𝐵)⟩}‘𝑥)))
3328, 31, 32syl2an 494 . . . . 5 ((𝐹:{𝐴, 𝐵}⟶𝑅𝐴𝐵) → (𝐹 = {⟨𝐴, (𝐹𝐴)⟩, ⟨𝐵, (𝐹𝐵)⟩} ↔ ∀𝑥 ∈ {𝐴, 𝐵} (𝐹𝑥) = ({⟨𝐴, (𝐹𝐴)⟩, ⟨𝐵, (𝐹𝐵)⟩}‘𝑥)))
3427, 33mpbird 247 . . . 4 ((𝐹:{𝐴, 𝐵}⟶𝑅𝐴𝐵) → 𝐹 = {⟨𝐴, (𝐹𝐴)⟩, ⟨𝐵, (𝐹𝐵)⟩})
35 opeq2 4376 . . . . . . 7 (𝑥 = (𝐹𝐴) → ⟨𝐴, 𝑥⟩ = ⟨𝐴, (𝐹𝐴)⟩)
3635preq1d 4249 . . . . . 6 (𝑥 = (𝐹𝐴) → {⟨𝐴, 𝑥⟩, ⟨𝐵, 𝑦⟩} = {⟨𝐴, (𝐹𝐴)⟩, ⟨𝐵, 𝑦⟩})
3736eqeq2d 2631 . . . . 5 (𝑥 = (𝐹𝐴) → (𝐹 = {⟨𝐴, 𝑥⟩, ⟨𝐵, 𝑦⟩} ↔ 𝐹 = {⟨𝐴, (𝐹𝐴)⟩, ⟨𝐵, 𝑦⟩}))
38 opeq2 4376 . . . . . . 7 (𝑦 = (𝐹𝐵) → ⟨𝐵, 𝑦⟩ = ⟨𝐵, (𝐹𝐵)⟩)
3938preq2d 4250 . . . . . 6 (𝑦 = (𝐹𝐵) → {⟨𝐴, (𝐹𝐴)⟩, ⟨𝐵, 𝑦⟩} = {⟨𝐴, (𝐹𝐴)⟩, ⟨𝐵, (𝐹𝐵)⟩})
4039eqeq2d 2631 . . . . 5 (𝑦 = (𝐹𝐵) → (𝐹 = {⟨𝐴, (𝐹𝐴)⟩, ⟨𝐵, 𝑦⟩} ↔ 𝐹 = {⟨𝐴, (𝐹𝐴)⟩, ⟨𝐵, (𝐹𝐵)⟩}))
4137, 40rspc2ev 3312 . . . 4 (((𝐹𝐴) ∈ 𝑅 ∧ (𝐹𝐵) ∈ 𝑅𝐹 = {⟨𝐴, (𝐹𝐴)⟩, ⟨𝐵, (𝐹𝐵)⟩}) → ∃𝑥𝑅𝑦𝑅 𝐹 = {⟨𝐴, 𝑥⟩, ⟨𝐵, 𝑦⟩})
425, 10, 34, 41syl3anc 1323 . . 3 ((𝐹:{𝐴, 𝐵}⟶𝑅𝐴𝐵) → ∃𝑥𝑅𝑦𝑅 𝐹 = {⟨𝐴, 𝑥⟩, ⟨𝐵, 𝑦⟩})
4342expcom 451 . 2 (𝐴𝐵 → (𝐹:{𝐴, 𝐵}⟶𝑅 → ∃𝑥𝑅𝑦𝑅 𝐹 = {⟨𝐴, 𝑥⟩, ⟨𝐵, 𝑦⟩}))
44 vex 3192 . . . . . . 7 𝑥 ∈ V
45 vex 3192 . . . . . . 7 𝑦 ∈ V
461, 6, 44, 45fpr 6381 . . . . . 6 (𝐴𝐵 → {⟨𝐴, 𝑥⟩, ⟨𝐵, 𝑦⟩}:{𝐴, 𝐵}⟶{𝑥, 𝑦})
47 prssi 4326 . . . . . 6 ((𝑥𝑅𝑦𝑅) → {𝑥, 𝑦} ⊆ 𝑅)
48 fss 6018 . . . . . 6 (({⟨𝐴, 𝑥⟩, ⟨𝐵, 𝑦⟩}:{𝐴, 𝐵}⟶{𝑥, 𝑦} ∧ {𝑥, 𝑦} ⊆ 𝑅) → {⟨𝐴, 𝑥⟩, ⟨𝐵, 𝑦⟩}:{𝐴, 𝐵}⟶𝑅)
4946, 47, 48syl2an 494 . . . . 5 ((𝐴𝐵 ∧ (𝑥𝑅𝑦𝑅)) → {⟨𝐴, 𝑥⟩, ⟨𝐵, 𝑦⟩}:{𝐴, 𝐵}⟶𝑅)
5049ex 450 . . . 4 (𝐴𝐵 → ((𝑥𝑅𝑦𝑅) → {⟨𝐴, 𝑥⟩, ⟨𝐵, 𝑦⟩}:{𝐴, 𝐵}⟶𝑅))
51 feq1 5988 . . . . 5 (𝐹 = {⟨𝐴, 𝑥⟩, ⟨𝐵, 𝑦⟩} → (𝐹:{𝐴, 𝐵}⟶𝑅 ↔ {⟨𝐴, 𝑥⟩, ⟨𝐵, 𝑦⟩}:{𝐴, 𝐵}⟶𝑅))
5251biimprcd 240 . . . 4 ({⟨𝐴, 𝑥⟩, ⟨𝐵, 𝑦⟩}:{𝐴, 𝐵}⟶𝑅 → (𝐹 = {⟨𝐴, 𝑥⟩, ⟨𝐵, 𝑦⟩} → 𝐹:{𝐴, 𝐵}⟶𝑅))
5350, 52syl6 35 . . 3 (𝐴𝐵 → ((𝑥𝑅𝑦𝑅) → (𝐹 = {⟨𝐴, 𝑥⟩, ⟨𝐵, 𝑦⟩} → 𝐹:{𝐴, 𝐵}⟶𝑅)))
5453rexlimdvv 3031 . 2 (𝐴𝐵 → (∃𝑥𝑅𝑦𝑅 𝐹 = {⟨𝐴, 𝑥⟩, ⟨𝐵, 𝑦⟩} → 𝐹:{𝐴, 𝐵}⟶𝑅))
5543, 54impbid 202 1 (𝐴𝐵 → (𝐹:{𝐴, 𝐵}⟶𝑅 ↔ ∃𝑥𝑅𝑦𝑅 𝐹 = {⟨𝐴, 𝑥⟩, ⟨𝐵, 𝑦⟩}))
Colors of variables: wff setvar class
Syntax hints:  wi 4  wb 196  wa 384   = wceq 1480  wcel 1987  wne 2790  wral 2907  wrex 2908  Vcvv 3189  wss 3559  {cpr 4155  cop 4159   Fn wfn 5847  wf 5848  cfv 5852
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1719  ax-4 1734  ax-5 1836  ax-6 1885  ax-7 1932  ax-8 1989  ax-9 1996  ax-10 2016  ax-11 2031  ax-12 2044  ax-13 2245  ax-ext 2601  ax-sep 4746  ax-nul 4754  ax-pow 4808  ax-pr 4872
This theorem depends on definitions:  df-bi 197  df-or 385  df-an 386  df-3an 1038  df-tru 1483  df-ex 1702  df-nf 1707  df-sb 1878  df-eu 2473  df-mo 2474  df-clab 2608  df-cleq 2614  df-clel 2617  df-nfc 2750  df-ne 2791  df-ral 2912  df-rex 2913  df-rab 2916  df-v 3191  df-sbc 3422  df-csb 3519  df-dif 3562  df-un 3564  df-in 3566  df-ss 3573  df-nul 3897  df-if 4064  df-sn 4154  df-pr 4156  df-op 4160  df-uni 4408  df-br 4619  df-opab 4679  df-mpt 4680  df-id 4994  df-xp 5085  df-rel 5086  df-cnv 5087  df-co 5088  df-dm 5089  df-rn 5090  df-res 5091  df-ima 5092  df-iota 5815  df-fun 5854  df-fn 5855  df-f 5856  df-fv 5860
This theorem is referenced by: (None)
  Copyright terms: Public domain W3C validator