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

Theorem caoftrn 7549
Description: Transfer a transitivity law to the function relation. (Contributed by Mario Carneiro, 28-Jul-2014.)
Hypotheses
Ref Expression
caofref.1 (𝜑𝐴𝑉)
caofref.2 (𝜑𝐹:𝐴𝑆)
caofcom.3 (𝜑𝐺:𝐴𝑆)
caofass.4 (𝜑𝐻:𝐴𝑆)
caoftrn.5 ((𝜑 ∧ (𝑥𝑆𝑦𝑆𝑧𝑆)) → ((𝑥𝑅𝑦𝑦𝑇𝑧) → 𝑥𝑈𝑧))
Assertion
Ref Expression
caoftrn (𝜑 → ((𝐹r 𝑅𝐺𝐺r 𝑇𝐻) → 𝐹r 𝑈𝐻))
Distinct variable groups:   𝑥,𝑦,𝑧,𝐹   𝑥,𝐺,𝑦,𝑧   𝑥,𝐻,𝑦,𝑧   𝜑,𝑥,𝑦,𝑧   𝑥,𝑅,𝑦,𝑧   𝑥,𝑆,𝑦,𝑧   𝑥,𝑇,𝑦,𝑧   𝑥,𝑈,𝑦,𝑧
Allowed substitution hints:   𝐴(𝑥,𝑦,𝑧)   𝑉(𝑥,𝑦,𝑧)

Proof of Theorem caoftrn
Dummy variable 𝑤 is distinct from all other variables.
StepHypRef Expression
1 caoftrn.5 . . . . . 6 ((𝜑 ∧ (𝑥𝑆𝑦𝑆𝑧𝑆)) → ((𝑥𝑅𝑦𝑦𝑇𝑧) → 𝑥𝑈𝑧))
21ralrimivvva 3115 . . . . 5 (𝜑 → ∀𝑥𝑆𝑦𝑆𝑧𝑆 ((𝑥𝑅𝑦𝑦𝑇𝑧) → 𝑥𝑈𝑧))
32adantr 480 . . . 4 ((𝜑𝑤𝐴) → ∀𝑥𝑆𝑦𝑆𝑧𝑆 ((𝑥𝑅𝑦𝑦𝑇𝑧) → 𝑥𝑈𝑧))
4 caofref.2 . . . . . 6 (𝜑𝐹:𝐴𝑆)
54ffvelrnda 6943 . . . . 5 ((𝜑𝑤𝐴) → (𝐹𝑤) ∈ 𝑆)
6 caofcom.3 . . . . . 6 (𝜑𝐺:𝐴𝑆)
76ffvelrnda 6943 . . . . 5 ((𝜑𝑤𝐴) → (𝐺𝑤) ∈ 𝑆)
8 caofass.4 . . . . . 6 (𝜑𝐻:𝐴𝑆)
98ffvelrnda 6943 . . . . 5 ((𝜑𝑤𝐴) → (𝐻𝑤) ∈ 𝑆)
10 breq1 5073 . . . . . . . 8 (𝑥 = (𝐹𝑤) → (𝑥𝑅𝑦 ↔ (𝐹𝑤)𝑅𝑦))
1110anbi1d 629 . . . . . . 7 (𝑥 = (𝐹𝑤) → ((𝑥𝑅𝑦𝑦𝑇𝑧) ↔ ((𝐹𝑤)𝑅𝑦𝑦𝑇𝑧)))
12 breq1 5073 . . . . . . 7 (𝑥 = (𝐹𝑤) → (𝑥𝑈𝑧 ↔ (𝐹𝑤)𝑈𝑧))
1311, 12imbi12d 344 . . . . . 6 (𝑥 = (𝐹𝑤) → (((𝑥𝑅𝑦𝑦𝑇𝑧) → 𝑥𝑈𝑧) ↔ (((𝐹𝑤)𝑅𝑦𝑦𝑇𝑧) → (𝐹𝑤)𝑈𝑧)))
14 breq2 5074 . . . . . . . 8 (𝑦 = (𝐺𝑤) → ((𝐹𝑤)𝑅𝑦 ↔ (𝐹𝑤)𝑅(𝐺𝑤)))
15 breq1 5073 . . . . . . . 8 (𝑦 = (𝐺𝑤) → (𝑦𝑇𝑧 ↔ (𝐺𝑤)𝑇𝑧))
1614, 15anbi12d 630 . . . . . . 7 (𝑦 = (𝐺𝑤) → (((𝐹𝑤)𝑅𝑦𝑦𝑇𝑧) ↔ ((𝐹𝑤)𝑅(𝐺𝑤) ∧ (𝐺𝑤)𝑇𝑧)))
1716imbi1d 341 . . . . . 6 (𝑦 = (𝐺𝑤) → ((((𝐹𝑤)𝑅𝑦𝑦𝑇𝑧) → (𝐹𝑤)𝑈𝑧) ↔ (((𝐹𝑤)𝑅(𝐺𝑤) ∧ (𝐺𝑤)𝑇𝑧) → (𝐹𝑤)𝑈𝑧)))
18 breq2 5074 . . . . . . . 8 (𝑧 = (𝐻𝑤) → ((𝐺𝑤)𝑇𝑧 ↔ (𝐺𝑤)𝑇(𝐻𝑤)))
1918anbi2d 628 . . . . . . 7 (𝑧 = (𝐻𝑤) → (((𝐹𝑤)𝑅(𝐺𝑤) ∧ (𝐺𝑤)𝑇𝑧) ↔ ((𝐹𝑤)𝑅(𝐺𝑤) ∧ (𝐺𝑤)𝑇(𝐻𝑤))))
20 breq2 5074 . . . . . . 7 (𝑧 = (𝐻𝑤) → ((𝐹𝑤)𝑈𝑧 ↔ (𝐹𝑤)𝑈(𝐻𝑤)))
2119, 20imbi12d 344 . . . . . 6 (𝑧 = (𝐻𝑤) → ((((𝐹𝑤)𝑅(𝐺𝑤) ∧ (𝐺𝑤)𝑇𝑧) → (𝐹𝑤)𝑈𝑧) ↔ (((𝐹𝑤)𝑅(𝐺𝑤) ∧ (𝐺𝑤)𝑇(𝐻𝑤)) → (𝐹𝑤)𝑈(𝐻𝑤))))
2213, 17, 21rspc3v 3565 . . . . 5 (((𝐹𝑤) ∈ 𝑆 ∧ (𝐺𝑤) ∈ 𝑆 ∧ (𝐻𝑤) ∈ 𝑆) → (∀𝑥𝑆𝑦𝑆𝑧𝑆 ((𝑥𝑅𝑦𝑦𝑇𝑧) → 𝑥𝑈𝑧) → (((𝐹𝑤)𝑅(𝐺𝑤) ∧ (𝐺𝑤)𝑇(𝐻𝑤)) → (𝐹𝑤)𝑈(𝐻𝑤))))
235, 7, 9, 22syl3anc 1369 . . . 4 ((𝜑𝑤𝐴) → (∀𝑥𝑆𝑦𝑆𝑧𝑆 ((𝑥𝑅𝑦𝑦𝑇𝑧) → 𝑥𝑈𝑧) → (((𝐹𝑤)𝑅(𝐺𝑤) ∧ (𝐺𝑤)𝑇(𝐻𝑤)) → (𝐹𝑤)𝑈(𝐻𝑤))))
243, 23mpd 15 . . 3 ((𝜑𝑤𝐴) → (((𝐹𝑤)𝑅(𝐺𝑤) ∧ (𝐺𝑤)𝑇(𝐻𝑤)) → (𝐹𝑤)𝑈(𝐻𝑤)))
2524ralimdva 3102 . 2 (𝜑 → (∀𝑤𝐴 ((𝐹𝑤)𝑅(𝐺𝑤) ∧ (𝐺𝑤)𝑇(𝐻𝑤)) → ∀𝑤𝐴 (𝐹𝑤)𝑈(𝐻𝑤)))
264ffnd 6585 . . . . 5 (𝜑𝐹 Fn 𝐴)
276ffnd 6585 . . . . 5 (𝜑𝐺 Fn 𝐴)
28 caofref.1 . . . . 5 (𝜑𝐴𝑉)
29 inidm 4149 . . . . 5 (𝐴𝐴) = 𝐴
30 eqidd 2739 . . . . 5 ((𝜑𝑤𝐴) → (𝐹𝑤) = (𝐹𝑤))
31 eqidd 2739 . . . . 5 ((𝜑𝑤𝐴) → (𝐺𝑤) = (𝐺𝑤))
3226, 27, 28, 28, 29, 30, 31ofrfval 7521 . . . 4 (𝜑 → (𝐹r 𝑅𝐺 ↔ ∀𝑤𝐴 (𝐹𝑤)𝑅(𝐺𝑤)))
338ffnd 6585 . . . . 5 (𝜑𝐻 Fn 𝐴)
34 eqidd 2739 . . . . 5 ((𝜑𝑤𝐴) → (𝐻𝑤) = (𝐻𝑤))
3527, 33, 28, 28, 29, 31, 34ofrfval 7521 . . . 4 (𝜑 → (𝐺r 𝑇𝐻 ↔ ∀𝑤𝐴 (𝐺𝑤)𝑇(𝐻𝑤)))
3632, 35anbi12d 630 . . 3 (𝜑 → ((𝐹r 𝑅𝐺𝐺r 𝑇𝐻) ↔ (∀𝑤𝐴 (𝐹𝑤)𝑅(𝐺𝑤) ∧ ∀𝑤𝐴 (𝐺𝑤)𝑇(𝐻𝑤))))
37 r19.26 3094 . . 3 (∀𝑤𝐴 ((𝐹𝑤)𝑅(𝐺𝑤) ∧ (𝐺𝑤)𝑇(𝐻𝑤)) ↔ (∀𝑤𝐴 (𝐹𝑤)𝑅(𝐺𝑤) ∧ ∀𝑤𝐴 (𝐺𝑤)𝑇(𝐻𝑤)))
3836, 37bitr4di 288 . 2 (𝜑 → ((𝐹r 𝑅𝐺𝐺r 𝑇𝐻) ↔ ∀𝑤𝐴 ((𝐹𝑤)𝑅(𝐺𝑤) ∧ (𝐺𝑤)𝑇(𝐻𝑤))))
3926, 33, 28, 28, 29, 30, 34ofrfval 7521 . 2 (𝜑 → (𝐹r 𝑈𝐻 ↔ ∀𝑤𝐴 (𝐹𝑤)𝑈(𝐻𝑤)))
4025, 38, 393imtr4d 293 1 (𝜑 → ((𝐹r 𝑅𝐺𝐺r 𝑇𝐻) → 𝐹r 𝑈𝐻))
Colors of variables: wff setvar class
Syntax hints:  wi 4  wa 395  w3a 1085   = wceq 1539  wcel 2108  wral 3063   class class class wbr 5070  wf 6414  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-10 2139  ax-11 2156  ax-12 2173  ax-ext 2709  ax-rep 5205  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-reu 3070  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-iun 4923  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-f1 6423  df-fo 6424  df-f1o 6425  df-fv 6426  df-ofr 7512
This theorem is referenced by:  gsumbagdiaglemOLD  21051  gsumbagdiaglem  21054  itg2le  24809
  Copyright terms: Public domain W3C validator