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

Theorem ovg 6755
Description: The value of an operation class abstraction. (Contributed by Jeff Madsen, 10-Jun-2010.)
Hypotheses
Ref Expression
ovg.1 (𝑥 = 𝐴 → (𝜑𝜓))
ovg.2 (𝑦 = 𝐵 → (𝜓𝜒))
ovg.3 (𝑧 = 𝐶 → (𝜒𝜃))
ovg.4 ((𝜏 ∧ (𝑥𝑅𝑦𝑆)) → ∃!𝑧𝜑)
ovg.5 𝐹 = {⟨⟨𝑥, 𝑦⟩, 𝑧⟩ ∣ ((𝑥𝑅𝑦𝑆) ∧ 𝜑)}
Assertion
Ref Expression
ovg ((𝜏 ∧ (𝐴𝑅𝐵𝑆𝐶𝐷)) → ((𝐴𝐹𝐵) = 𝐶𝜃))
Distinct variable groups:   𝜓,𝑥   𝜒,𝑥,𝑦   𝜃,𝑥,𝑦,𝑧   𝜏,𝑥,𝑦   𝑥,𝑅,𝑦,𝑧   𝑥,𝑆,𝑦,𝑧   𝑥,𝐴,𝑦,𝑧   𝑥,𝐵,𝑦,𝑧   𝑥,𝐶,𝑦,𝑧
Allowed substitution hints:   𝜑(𝑥,𝑦,𝑧)   𝜓(𝑦,𝑧)   𝜒(𝑧)   𝜏(𝑧)   𝐷(𝑥,𝑦,𝑧)   𝐹(𝑥,𝑦,𝑧)

Proof of Theorem ovg
Dummy variable 𝑐 is distinct from all other variables.
StepHypRef Expression
1 df-ov 6610 . . . . 5 (𝐴𝐹𝐵) = (𝐹‘⟨𝐴, 𝐵⟩)
2 ovg.5 . . . . . 6 𝐹 = {⟨⟨𝑥, 𝑦⟩, 𝑧⟩ ∣ ((𝑥𝑅𝑦𝑆) ∧ 𝜑)}
32fveq1i 6151 . . . . 5 (𝐹‘⟨𝐴, 𝐵⟩) = ({⟨⟨𝑥, 𝑦⟩, 𝑧⟩ ∣ ((𝑥𝑅𝑦𝑆) ∧ 𝜑)}‘⟨𝐴, 𝐵⟩)
41, 3eqtri 2643 . . . 4 (𝐴𝐹𝐵) = ({⟨⟨𝑥, 𝑦⟩, 𝑧⟩ ∣ ((𝑥𝑅𝑦𝑆) ∧ 𝜑)}‘⟨𝐴, 𝐵⟩)
54eqeq1i 2626 . . 3 ((𝐴𝐹𝐵) = 𝐶 ↔ ({⟨⟨𝑥, 𝑦⟩, 𝑧⟩ ∣ ((𝑥𝑅𝑦𝑆) ∧ 𝜑)}‘⟨𝐴, 𝐵⟩) = 𝐶)
6 eqeq2 2632 . . . . . . . . . 10 (𝑐 = 𝐶 → (({⟨⟨𝑥, 𝑦⟩, 𝑧⟩ ∣ ((𝑥𝑅𝑦𝑆) ∧ 𝜑)}‘⟨𝐴, 𝐵⟩) = 𝑐 ↔ ({⟨⟨𝑥, 𝑦⟩, 𝑧⟩ ∣ ((𝑥𝑅𝑦𝑆) ∧ 𝜑)}‘⟨𝐴, 𝐵⟩) = 𝐶))
7 opeq2 4373 . . . . . . . . . . 11 (𝑐 = 𝐶 → ⟨⟨𝐴, 𝐵⟩, 𝑐⟩ = ⟨⟨𝐴, 𝐵⟩, 𝐶⟩)
87eleq1d 2683 . . . . . . . . . 10 (𝑐 = 𝐶 → (⟨⟨𝐴, 𝐵⟩, 𝑐⟩ ∈ {⟨⟨𝑥, 𝑦⟩, 𝑧⟩ ∣ ((𝑥𝑅𝑦𝑆) ∧ 𝜑)} ↔ ⟨⟨𝐴, 𝐵⟩, 𝐶⟩ ∈ {⟨⟨𝑥, 𝑦⟩, 𝑧⟩ ∣ ((𝑥𝑅𝑦𝑆) ∧ 𝜑)}))
96, 8bibi12d 335 . . . . . . . . 9 (𝑐 = 𝐶 → ((({⟨⟨𝑥, 𝑦⟩, 𝑧⟩ ∣ ((𝑥𝑅𝑦𝑆) ∧ 𝜑)}‘⟨𝐴, 𝐵⟩) = 𝑐 ↔ ⟨⟨𝐴, 𝐵⟩, 𝑐⟩ ∈ {⟨⟨𝑥, 𝑦⟩, 𝑧⟩ ∣ ((𝑥𝑅𝑦𝑆) ∧ 𝜑)}) ↔ (({⟨⟨𝑥, 𝑦⟩, 𝑧⟩ ∣ ((𝑥𝑅𝑦𝑆) ∧ 𝜑)}‘⟨𝐴, 𝐵⟩) = 𝐶 ↔ ⟨⟨𝐴, 𝐵⟩, 𝐶⟩ ∈ {⟨⟨𝑥, 𝑦⟩, 𝑧⟩ ∣ ((𝑥𝑅𝑦𝑆) ∧ 𝜑)})))
109imbi2d 330 . . . . . . . 8 (𝑐 = 𝐶 → (((𝜏 ∧ (𝐴𝑅𝐵𝑆)) → (({⟨⟨𝑥, 𝑦⟩, 𝑧⟩ ∣ ((𝑥𝑅𝑦𝑆) ∧ 𝜑)}‘⟨𝐴, 𝐵⟩) = 𝑐 ↔ ⟨⟨𝐴, 𝐵⟩, 𝑐⟩ ∈ {⟨⟨𝑥, 𝑦⟩, 𝑧⟩ ∣ ((𝑥𝑅𝑦𝑆) ∧ 𝜑)})) ↔ ((𝜏 ∧ (𝐴𝑅𝐵𝑆)) → (({⟨⟨𝑥, 𝑦⟩, 𝑧⟩ ∣ ((𝑥𝑅𝑦𝑆) ∧ 𝜑)}‘⟨𝐴, 𝐵⟩) = 𝐶 ↔ ⟨⟨𝐴, 𝐵⟩, 𝐶⟩ ∈ {⟨⟨𝑥, 𝑦⟩, 𝑧⟩ ∣ ((𝑥𝑅𝑦𝑆) ∧ 𝜑)}))))
11 ovg.4 . . . . . . . . . . . 12 ((𝜏 ∧ (𝑥𝑅𝑦𝑆)) → ∃!𝑧𝜑)
1211ex 450 . . . . . . . . . . 11 (𝜏 → ((𝑥𝑅𝑦𝑆) → ∃!𝑧𝜑))
1312alrimivv 1853 . . . . . . . . . 10 (𝜏 → ∀𝑥𝑦((𝑥𝑅𝑦𝑆) → ∃!𝑧𝜑))
14 fnoprabg 6717 . . . . . . . . . 10 (∀𝑥𝑦((𝑥𝑅𝑦𝑆) → ∃!𝑧𝜑) → {⟨⟨𝑥, 𝑦⟩, 𝑧⟩ ∣ ((𝑥𝑅𝑦𝑆) ∧ 𝜑)} Fn {⟨𝑥, 𝑦⟩ ∣ (𝑥𝑅𝑦𝑆)})
1513, 14syl 17 . . . . . . . . 9 (𝜏 → {⟨⟨𝑥, 𝑦⟩, 𝑧⟩ ∣ ((𝑥𝑅𝑦𝑆) ∧ 𝜑)} Fn {⟨𝑥, 𝑦⟩ ∣ (𝑥𝑅𝑦𝑆)})
16 eleq1 2686 . . . . . . . . . . . 12 (𝑥 = 𝐴 → (𝑥𝑅𝐴𝑅))
1716anbi1d 740 . . . . . . . . . . 11 (𝑥 = 𝐴 → ((𝑥𝑅𝑦𝑆) ↔ (𝐴𝑅𝑦𝑆)))
18 eleq1 2686 . . . . . . . . . . . 12 (𝑦 = 𝐵 → (𝑦𝑆𝐵𝑆))
1918anbi2d 739 . . . . . . . . . . 11 (𝑦 = 𝐵 → ((𝐴𝑅𝑦𝑆) ↔ (𝐴𝑅𝐵𝑆)))
2017, 19opelopabg 4955 . . . . . . . . . 10 ((𝐴𝑅𝐵𝑆) → (⟨𝐴, 𝐵⟩ ∈ {⟨𝑥, 𝑦⟩ ∣ (𝑥𝑅𝑦𝑆)} ↔ (𝐴𝑅𝐵𝑆)))
2120ibir 257 . . . . . . . . 9 ((𝐴𝑅𝐵𝑆) → ⟨𝐴, 𝐵⟩ ∈ {⟨𝑥, 𝑦⟩ ∣ (𝑥𝑅𝑦𝑆)})
22 fnopfvb 6196 . . . . . . . . 9 (({⟨⟨𝑥, 𝑦⟩, 𝑧⟩ ∣ ((𝑥𝑅𝑦𝑆) ∧ 𝜑)} Fn {⟨𝑥, 𝑦⟩ ∣ (𝑥𝑅𝑦𝑆)} ∧ ⟨𝐴, 𝐵⟩ ∈ {⟨𝑥, 𝑦⟩ ∣ (𝑥𝑅𝑦𝑆)}) → (({⟨⟨𝑥, 𝑦⟩, 𝑧⟩ ∣ ((𝑥𝑅𝑦𝑆) ∧ 𝜑)}‘⟨𝐴, 𝐵⟩) = 𝑐 ↔ ⟨⟨𝐴, 𝐵⟩, 𝑐⟩ ∈ {⟨⟨𝑥, 𝑦⟩, 𝑧⟩ ∣ ((𝑥𝑅𝑦𝑆) ∧ 𝜑)}))
2315, 21, 22syl2an 494 . . . . . . . 8 ((𝜏 ∧ (𝐴𝑅𝐵𝑆)) → (({⟨⟨𝑥, 𝑦⟩, 𝑧⟩ ∣ ((𝑥𝑅𝑦𝑆) ∧ 𝜑)}‘⟨𝐴, 𝐵⟩) = 𝑐 ↔ ⟨⟨𝐴, 𝐵⟩, 𝑐⟩ ∈ {⟨⟨𝑥, 𝑦⟩, 𝑧⟩ ∣ ((𝑥𝑅𝑦𝑆) ∧ 𝜑)}))
2410, 23vtoclg 3252 . . . . . . 7 (𝐶𝐷 → ((𝜏 ∧ (𝐴𝑅𝐵𝑆)) → (({⟨⟨𝑥, 𝑦⟩, 𝑧⟩ ∣ ((𝑥𝑅𝑦𝑆) ∧ 𝜑)}‘⟨𝐴, 𝐵⟩) = 𝐶 ↔ ⟨⟨𝐴, 𝐵⟩, 𝐶⟩ ∈ {⟨⟨𝑥, 𝑦⟩, 𝑧⟩ ∣ ((𝑥𝑅𝑦𝑆) ∧ 𝜑)})))
2524com12 32 . . . . . 6 ((𝜏 ∧ (𝐴𝑅𝐵𝑆)) → (𝐶𝐷 → (({⟨⟨𝑥, 𝑦⟩, 𝑧⟩ ∣ ((𝑥𝑅𝑦𝑆) ∧ 𝜑)}‘⟨𝐴, 𝐵⟩) = 𝐶 ↔ ⟨⟨𝐴, 𝐵⟩, 𝐶⟩ ∈ {⟨⟨𝑥, 𝑦⟩, 𝑧⟩ ∣ ((𝑥𝑅𝑦𝑆) ∧ 𝜑)})))
2625exp32 630 . . . . 5 (𝜏 → (𝐴𝑅 → (𝐵𝑆 → (𝐶𝐷 → (({⟨⟨𝑥, 𝑦⟩, 𝑧⟩ ∣ ((𝑥𝑅𝑦𝑆) ∧ 𝜑)}‘⟨𝐴, 𝐵⟩) = 𝐶 ↔ ⟨⟨𝐴, 𝐵⟩, 𝐶⟩ ∈ {⟨⟨𝑥, 𝑦⟩, 𝑧⟩ ∣ ((𝑥𝑅𝑦𝑆) ∧ 𝜑)})))))
27263imp2 1279 . . . 4 ((𝜏 ∧ (𝐴𝑅𝐵𝑆𝐶𝐷)) → (({⟨⟨𝑥, 𝑦⟩, 𝑧⟩ ∣ ((𝑥𝑅𝑦𝑆) ∧ 𝜑)}‘⟨𝐴, 𝐵⟩) = 𝐶 ↔ ⟨⟨𝐴, 𝐵⟩, 𝐶⟩ ∈ {⟨⟨𝑥, 𝑦⟩, 𝑧⟩ ∣ ((𝑥𝑅𝑦𝑆) ∧ 𝜑)}))
28 ovg.1 . . . . . . 7 (𝑥 = 𝐴 → (𝜑𝜓))
2917, 28anbi12d 746 . . . . . 6 (𝑥 = 𝐴 → (((𝑥𝑅𝑦𝑆) ∧ 𝜑) ↔ ((𝐴𝑅𝑦𝑆) ∧ 𝜓)))
30 ovg.2 . . . . . . 7 (𝑦 = 𝐵 → (𝜓𝜒))
3119, 30anbi12d 746 . . . . . 6 (𝑦 = 𝐵 → (((𝐴𝑅𝑦𝑆) ∧ 𝜓) ↔ ((𝐴𝑅𝐵𝑆) ∧ 𝜒)))
32 ovg.3 . . . . . . 7 (𝑧 = 𝐶 → (𝜒𝜃))
3332anbi2d 739 . . . . . 6 (𝑧 = 𝐶 → (((𝐴𝑅𝐵𝑆) ∧ 𝜒) ↔ ((𝐴𝑅𝐵𝑆) ∧ 𝜃)))
3429, 31, 33eloprabg 6704 . . . . 5 ((𝐴𝑅𝐵𝑆𝐶𝐷) → (⟨⟨𝐴, 𝐵⟩, 𝐶⟩ ∈ {⟨⟨𝑥, 𝑦⟩, 𝑧⟩ ∣ ((𝑥𝑅𝑦𝑆) ∧ 𝜑)} ↔ ((𝐴𝑅𝐵𝑆) ∧ 𝜃)))
3534adantl 482 . . . 4 ((𝜏 ∧ (𝐴𝑅𝐵𝑆𝐶𝐷)) → (⟨⟨𝐴, 𝐵⟩, 𝐶⟩ ∈ {⟨⟨𝑥, 𝑦⟩, 𝑧⟩ ∣ ((𝑥𝑅𝑦𝑆) ∧ 𝜑)} ↔ ((𝐴𝑅𝐵𝑆) ∧ 𝜃)))
3627, 35bitrd 268 . . 3 ((𝜏 ∧ (𝐴𝑅𝐵𝑆𝐶𝐷)) → (({⟨⟨𝑥, 𝑦⟩, 𝑧⟩ ∣ ((𝑥𝑅𝑦𝑆) ∧ 𝜑)}‘⟨𝐴, 𝐵⟩) = 𝐶 ↔ ((𝐴𝑅𝐵𝑆) ∧ 𝜃)))
375, 36syl5bb 272 . 2 ((𝜏 ∧ (𝐴𝑅𝐵𝑆𝐶𝐷)) → ((𝐴𝐹𝐵) = 𝐶 ↔ ((𝐴𝑅𝐵𝑆) ∧ 𝜃)))
38 biidd 252 . . . . 5 ((𝐴𝑅𝐵𝑆) → (((𝐴𝑅𝐵𝑆) ∧ 𝜃) ↔ ((𝐴𝑅𝐵𝑆) ∧ 𝜃)))
3938bianabs 923 . . . 4 ((𝐴𝑅𝐵𝑆) → (((𝐴𝑅𝐵𝑆) ∧ 𝜃) ↔ 𝜃))
40393adant3 1079 . . 3 ((𝐴𝑅𝐵𝑆𝐶𝐷) → (((𝐴𝑅𝐵𝑆) ∧ 𝜃) ↔ 𝜃))
4140adantl 482 . 2 ((𝜏 ∧ (𝐴𝑅𝐵𝑆𝐶𝐷)) → (((𝐴𝑅𝐵𝑆) ∧ 𝜃) ↔ 𝜃))
4237, 41bitrd 268 1 ((𝜏 ∧ (𝐴𝑅𝐵𝑆𝐶𝐷)) → ((𝐴𝐹𝐵) = 𝐶𝜃))
Colors of variables: wff setvar class
Syntax hints:  wi 4  wb 196  wa 384  w3a 1036  wal 1478   = wceq 1480  wcel 1987  ∃!weu 2469  cop 4156  {copab 4674   Fn wfn 5844  cfv 5849  (class class class)co 6607  {coprab 6608
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-9 1996  ax-10 2016  ax-11 2031  ax-12 2044  ax-13 2245  ax-ext 2601  ax-sep 4743  ax-nul 4751  ax-pr 4869
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-ral 2912  df-rex 2913  df-rab 2916  df-v 3188  df-sbc 3419  df-dif 3559  df-un 3561  df-in 3563  df-ss 3570  df-nul 3894  df-if 4061  df-sn 4151  df-pr 4153  df-op 4157  df-uni 4405  df-br 4616  df-opab 4676  df-id 4991  df-xp 5082  df-rel 5083  df-cnv 5084  df-co 5085  df-dm 5086  df-iota 5812  df-fun 5851  df-fn 5852  df-fv 5857  df-ov 6610  df-oprab 6611
This theorem is referenced by: (None)
  Copyright terms: Public domain W3C validator