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

Theorem ofrfvalg 7519
Description: Value of a relation applied to two functions. Originally part of ofrfval 7521, this version assumes the functions are sets rather than their domains, avoiding ax-rep 5205. (Contributed by SN, 5-Aug-2024.)
Hypotheses
Ref Expression
ofrfvalg.1 (𝜑𝐹 Fn 𝐴)
ofrfvalg.2 (𝜑𝐺 Fn 𝐵)
ofrfvalg.3 (𝜑𝐹𝑉)
ofrfvalg.4 (𝜑𝐺𝑊)
ofrfvalg.5 (𝐴𝐵) = 𝑆
ofrfvalg.6 ((𝜑𝑥𝐴) → (𝐹𝑥) = 𝐶)
ofrfvalg.7 ((𝜑𝑥𝐵) → (𝐺𝑥) = 𝐷)
Assertion
Ref Expression
ofrfvalg (𝜑 → (𝐹r 𝑅𝐺 ↔ ∀𝑥𝑆 𝐶𝑅𝐷))
Distinct variable groups:   𝑥,𝐴   𝑥,𝐹   𝑥,𝐺   𝜑,𝑥   𝑥,𝑆   𝑥,𝑅
Allowed substitution hints:   𝐵(𝑥)   𝐶(𝑥)   𝐷(𝑥)   𝑉(𝑥)   𝑊(𝑥)

Proof of Theorem ofrfvalg
Dummy variables 𝑓 𝑔 are mutually distinct and distinct from all other variables.
StepHypRef Expression
1 ofrfvalg.3 . . 3 (𝜑𝐹𝑉)
2 ofrfvalg.4 . . 3 (𝜑𝐺𝑊)
3 dmeq 5801 . . . . . 6 (𝑓 = 𝐹 → dom 𝑓 = dom 𝐹)
4 dmeq 5801 . . . . . 6 (𝑔 = 𝐺 → dom 𝑔 = dom 𝐺)
53, 4ineqan12d 4145 . . . . 5 ((𝑓 = 𝐹𝑔 = 𝐺) → (dom 𝑓 ∩ dom 𝑔) = (dom 𝐹 ∩ dom 𝐺))
6 fveq1 6755 . . . . . 6 (𝑓 = 𝐹 → (𝑓𝑥) = (𝐹𝑥))
7 fveq1 6755 . . . . . 6 (𝑔 = 𝐺 → (𝑔𝑥) = (𝐺𝑥))
86, 7breqan12d 5086 . . . . 5 ((𝑓 = 𝐹𝑔 = 𝐺) → ((𝑓𝑥)𝑅(𝑔𝑥) ↔ (𝐹𝑥)𝑅(𝐺𝑥)))
95, 8raleqbidv 3327 . . . 4 ((𝑓 = 𝐹𝑔 = 𝐺) → (∀𝑥 ∈ (dom 𝑓 ∩ dom 𝑔)(𝑓𝑥)𝑅(𝑔𝑥) ↔ ∀𝑥 ∈ (dom 𝐹 ∩ dom 𝐺)(𝐹𝑥)𝑅(𝐺𝑥)))
10 df-ofr 7512 . . . 4 r 𝑅 = {⟨𝑓, 𝑔⟩ ∣ ∀𝑥 ∈ (dom 𝑓 ∩ dom 𝑔)(𝑓𝑥)𝑅(𝑔𝑥)}
119, 10brabga 5440 . . 3 ((𝐹𝑉𝐺𝑊) → (𝐹r 𝑅𝐺 ↔ ∀𝑥 ∈ (dom 𝐹 ∩ dom 𝐺)(𝐹𝑥)𝑅(𝐺𝑥)))
121, 2, 11syl2anc 583 . 2 (𝜑 → (𝐹r 𝑅𝐺 ↔ ∀𝑥 ∈ (dom 𝐹 ∩ dom 𝐺)(𝐹𝑥)𝑅(𝐺𝑥)))
13 ofrfvalg.1 . . . . . 6 (𝜑𝐹 Fn 𝐴)
1413fndmd 6522 . . . . 5 (𝜑 → dom 𝐹 = 𝐴)
15 ofrfvalg.2 . . . . . 6 (𝜑𝐺 Fn 𝐵)
1615fndmd 6522 . . . . 5 (𝜑 → dom 𝐺 = 𝐵)
1714, 16ineq12d 4144 . . . 4 (𝜑 → (dom 𝐹 ∩ dom 𝐺) = (𝐴𝐵))
18 ofrfvalg.5 . . . 4 (𝐴𝐵) = 𝑆
1917, 18eqtrdi 2795 . . 3 (𝜑 → (dom 𝐹 ∩ dom 𝐺) = 𝑆)
2019raleqdv 3339 . 2 (𝜑 → (∀𝑥 ∈ (dom 𝐹 ∩ dom 𝐺)(𝐹𝑥)𝑅(𝐺𝑥) ↔ ∀𝑥𝑆 (𝐹𝑥)𝑅(𝐺𝑥)))
21 inss1 4159 . . . . . . 7 (𝐴𝐵) ⊆ 𝐴
2218, 21eqsstrri 3952 . . . . . 6 𝑆𝐴
2322sseli 3913 . . . . 5 (𝑥𝑆𝑥𝐴)
24 ofrfvalg.6 . . . . 5 ((𝜑𝑥𝐴) → (𝐹𝑥) = 𝐶)
2523, 24sylan2 592 . . . 4 ((𝜑𝑥𝑆) → (𝐹𝑥) = 𝐶)
26 inss2 4160 . . . . . . 7 (𝐴𝐵) ⊆ 𝐵
2718, 26eqsstrri 3952 . . . . . 6 𝑆𝐵
2827sseli 3913 . . . . 5 (𝑥𝑆𝑥𝐵)
29 ofrfvalg.7 . . . . 5 ((𝜑𝑥𝐵) → (𝐺𝑥) = 𝐷)
3028, 29sylan2 592 . . . 4 ((𝜑𝑥𝑆) → (𝐺𝑥) = 𝐷)
3125, 30breq12d 5083 . . 3 ((𝜑𝑥𝑆) → ((𝐹𝑥)𝑅(𝐺𝑥) ↔ 𝐶𝑅𝐷))
3231ralbidva 3119 . 2 (𝜑 → (∀𝑥𝑆 (𝐹𝑥)𝑅(𝐺𝑥) ↔ ∀𝑥𝑆 𝐶𝑅𝐷))
3312, 20, 323bitrd 304 1 (𝜑 → (𝐹r 𝑅𝐺 ↔ ∀𝑥𝑆 𝐶𝑅𝐷))
Colors of variables: wff setvar class
Syntax hints:  wi 4  wb 205  wa 395   = wceq 1539  wcel 2108  wral 3063  cin 3882   class class class wbr 5070  dom cdm 5580   Fn wfn 6413  cfv 6418  r cofr 7510
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-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-sb 2069  df-clab 2716  df-cleq 2730  df-clel 2817  df-ral 3068  df-rab 3072  df-v 3424  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-dm 5590  df-iota 6376  df-fn 6421  df-fv 6426  df-ofr 7512
This theorem is referenced by:  ofrfval  7521  pwsle  17120  pwsleval  17121  psrbaglesupp  21037  psrbaglefi  21045
  Copyright terms: Public domain W3C validator