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

Theorem caoftrn 6830
 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 (𝜑 → ((𝐹𝑟 𝑅𝐺𝐺𝑟 𝑇𝐻) → 𝐹𝑟 𝑈𝐻))
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 2955 . . . . 5 (𝜑 → ∀𝑥𝑆𝑦𝑆𝑧𝑆 ((𝑥𝑅𝑦𝑦𝑇𝑧) → 𝑥𝑈𝑧))
32adantr 480 . . . 4 ((𝜑𝑤𝐴) → ∀𝑥𝑆𝑦𝑆𝑧𝑆 ((𝑥𝑅𝑦𝑦𝑇𝑧) → 𝑥𝑈𝑧))
4 caofref.2 . . . . . 6 (𝜑𝐹:𝐴𝑆)
54ffvelrnda 6267 . . . . 5 ((𝜑𝑤𝐴) → (𝐹𝑤) ∈ 𝑆)
6 caofcom.3 . . . . . 6 (𝜑𝐺:𝐴𝑆)
76ffvelrnda 6267 . . . . 5 ((𝜑𝑤𝐴) → (𝐺𝑤) ∈ 𝑆)
8 caofass.4 . . . . . 6 (𝜑𝐻:𝐴𝑆)
98ffvelrnda 6267 . . . . 5 ((𝜑𝑤𝐴) → (𝐻𝑤) ∈ 𝑆)
10 breq1 4586 . . . . . . . 8 (𝑥 = (𝐹𝑤) → (𝑥𝑅𝑦 ↔ (𝐹𝑤)𝑅𝑦))
1110anbi1d 737 . . . . . . 7 (𝑥 = (𝐹𝑤) → ((𝑥𝑅𝑦𝑦𝑇𝑧) ↔ ((𝐹𝑤)𝑅𝑦𝑦𝑇𝑧)))
12 breq1 4586 . . . . . . 7 (𝑥 = (𝐹𝑤) → (𝑥𝑈𝑧 ↔ (𝐹𝑤)𝑈𝑧))
1311, 12imbi12d 333 . . . . . 6 (𝑥 = (𝐹𝑤) → (((𝑥𝑅𝑦𝑦𝑇𝑧) → 𝑥𝑈𝑧) ↔ (((𝐹𝑤)𝑅𝑦𝑦𝑇𝑧) → (𝐹𝑤)𝑈𝑧)))
14 breq2 4587 . . . . . . . 8 (𝑦 = (𝐺𝑤) → ((𝐹𝑤)𝑅𝑦 ↔ (𝐹𝑤)𝑅(𝐺𝑤)))
15 breq1 4586 . . . . . . . 8 (𝑦 = (𝐺𝑤) → (𝑦𝑇𝑧 ↔ (𝐺𝑤)𝑇𝑧))
1614, 15anbi12d 743 . . . . . . 7 (𝑦 = (𝐺𝑤) → (((𝐹𝑤)𝑅𝑦𝑦𝑇𝑧) ↔ ((𝐹𝑤)𝑅(𝐺𝑤) ∧ (𝐺𝑤)𝑇𝑧)))
1716imbi1d 330 . . . . . 6 (𝑦 = (𝐺𝑤) → ((((𝐹𝑤)𝑅𝑦𝑦𝑇𝑧) → (𝐹𝑤)𝑈𝑧) ↔ (((𝐹𝑤)𝑅(𝐺𝑤) ∧ (𝐺𝑤)𝑇𝑧) → (𝐹𝑤)𝑈𝑧)))
18 breq2 4587 . . . . . . . 8 (𝑧 = (𝐻𝑤) → ((𝐺𝑤)𝑇𝑧 ↔ (𝐺𝑤)𝑇(𝐻𝑤)))
1918anbi2d 736 . . . . . . 7 (𝑧 = (𝐻𝑤) → (((𝐹𝑤)𝑅(𝐺𝑤) ∧ (𝐺𝑤)𝑇𝑧) ↔ ((𝐹𝑤)𝑅(𝐺𝑤) ∧ (𝐺𝑤)𝑇(𝐻𝑤))))
20 breq2 4587 . . . . . . 7 (𝑧 = (𝐻𝑤) → ((𝐹𝑤)𝑈𝑧 ↔ (𝐹𝑤)𝑈(𝐻𝑤)))
2119, 20imbi12d 333 . . . . . 6 (𝑧 = (𝐻𝑤) → ((((𝐹𝑤)𝑅(𝐺𝑤) ∧ (𝐺𝑤)𝑇𝑧) → (𝐹𝑤)𝑈𝑧) ↔ (((𝐹𝑤)𝑅(𝐺𝑤) ∧ (𝐺𝑤)𝑇(𝐻𝑤)) → (𝐹𝑤)𝑈(𝐻𝑤))))
2213, 17, 21rspc3v 3296 . . . . 5 (((𝐹𝑤) ∈ 𝑆 ∧ (𝐺𝑤) ∈ 𝑆 ∧ (𝐻𝑤) ∈ 𝑆) → (∀𝑥𝑆𝑦𝑆𝑧𝑆 ((𝑥𝑅𝑦𝑦𝑇𝑧) → 𝑥𝑈𝑧) → (((𝐹𝑤)𝑅(𝐺𝑤) ∧ (𝐺𝑤)𝑇(𝐻𝑤)) → (𝐹𝑤)𝑈(𝐻𝑤))))
235, 7, 9, 22syl3anc 1318 . . . 4 ((𝜑𝑤𝐴) → (∀𝑥𝑆𝑦𝑆𝑧𝑆 ((𝑥𝑅𝑦𝑦𝑇𝑧) → 𝑥𝑈𝑧) → (((𝐹𝑤)𝑅(𝐺𝑤) ∧ (𝐺𝑤)𝑇(𝐻𝑤)) → (𝐹𝑤)𝑈(𝐻𝑤))))
243, 23mpd 15 . . 3 ((𝜑𝑤𝐴) → (((𝐹𝑤)𝑅(𝐺𝑤) ∧ (𝐺𝑤)𝑇(𝐻𝑤)) → (𝐹𝑤)𝑈(𝐻𝑤)))
2524ralimdva 2945 . 2 (𝜑 → (∀𝑤𝐴 ((𝐹𝑤)𝑅(𝐺𝑤) ∧ (𝐺𝑤)𝑇(𝐻𝑤)) → ∀𝑤𝐴 (𝐹𝑤)𝑈(𝐻𝑤)))
26 ffn 5958 . . . . . 6 (𝐹:𝐴𝑆𝐹 Fn 𝐴)
274, 26syl 17 . . . . 5 (𝜑𝐹 Fn 𝐴)
28 ffn 5958 . . . . . 6 (𝐺:𝐴𝑆𝐺 Fn 𝐴)
296, 28syl 17 . . . . 5 (𝜑𝐺 Fn 𝐴)
30 caofref.1 . . . . 5 (𝜑𝐴𝑉)
31 inidm 3784 . . . . 5 (𝐴𝐴) = 𝐴
32 eqidd 2611 . . . . 5 ((𝜑𝑤𝐴) → (𝐹𝑤) = (𝐹𝑤))
33 eqidd 2611 . . . . 5 ((𝜑𝑤𝐴) → (𝐺𝑤) = (𝐺𝑤))
3427, 29, 30, 30, 31, 32, 33ofrfval 6803 . . . 4 (𝜑 → (𝐹𝑟 𝑅𝐺 ↔ ∀𝑤𝐴 (𝐹𝑤)𝑅(𝐺𝑤)))
35 ffn 5958 . . . . . 6 (𝐻:𝐴𝑆𝐻 Fn 𝐴)
368, 35syl 17 . . . . 5 (𝜑𝐻 Fn 𝐴)
37 eqidd 2611 . . . . 5 ((𝜑𝑤𝐴) → (𝐻𝑤) = (𝐻𝑤))
3829, 36, 30, 30, 31, 33, 37ofrfval 6803 . . . 4 (𝜑 → (𝐺𝑟 𝑇𝐻 ↔ ∀𝑤𝐴 (𝐺𝑤)𝑇(𝐻𝑤)))
3934, 38anbi12d 743 . . 3 (𝜑 → ((𝐹𝑟 𝑅𝐺𝐺𝑟 𝑇𝐻) ↔ (∀𝑤𝐴 (𝐹𝑤)𝑅(𝐺𝑤) ∧ ∀𝑤𝐴 (𝐺𝑤)𝑇(𝐻𝑤))))
40 r19.26 3046 . . 3 (∀𝑤𝐴 ((𝐹𝑤)𝑅(𝐺𝑤) ∧ (𝐺𝑤)𝑇(𝐻𝑤)) ↔ (∀𝑤𝐴 (𝐹𝑤)𝑅(𝐺𝑤) ∧ ∀𝑤𝐴 (𝐺𝑤)𝑇(𝐻𝑤)))
4139, 40syl6bbr 277 . 2 (𝜑 → ((𝐹𝑟 𝑅𝐺𝐺𝑟 𝑇𝐻) ↔ ∀𝑤𝐴 ((𝐹𝑤)𝑅(𝐺𝑤) ∧ (𝐺𝑤)𝑇(𝐻𝑤))))
4227, 36, 30, 30, 31, 32, 37ofrfval 6803 . 2 (𝜑 → (𝐹𝑟 𝑈𝐻 ↔ ∀𝑤𝐴 (𝐹𝑤)𝑈(𝐻𝑤)))
4325, 41, 423imtr4d 282 1 (𝜑 → ((𝐹𝑟 𝑅𝐺𝐺𝑟 𝑇𝐻) → 𝐹𝑟 𝑈𝐻))
 Colors of variables: wff setvar class Syntax hints:   → wi 4   ∧ wa 383   ∧ w3a 1031   = wceq 1475   ∈ wcel 1977  ∀wral 2896   class class class wbr 4583   Fn wfn 5799  ⟶wf 5800  ‘cfv 5804   ∘𝑟 cofr 6794 This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1713  ax-4 1728  ax-5 1827  ax-6 1875  ax-7 1922  ax-9 1986  ax-10 2006  ax-11 2021  ax-12 2034  ax-13 2234  ax-ext 2590  ax-rep 4699  ax-sep 4709  ax-nul 4717  ax-pr 4833 This theorem depends on definitions:  df-bi 196  df-or 384  df-an 385  df-3an 1033  df-tru 1478  df-ex 1696  df-nf 1701  df-sb 1868  df-eu 2462  df-mo 2463  df-clab 2597  df-cleq 2603  df-clel 2606  df-nfc 2740  df-ne 2782  df-ral 2901  df-rex 2902  df-reu 2903  df-rab 2905  df-v 3175  df-sbc 3403  df-csb 3500  df-dif 3543  df-un 3545  df-in 3547  df-ss 3554  df-nul 3875  df-if 4037  df-sn 4126  df-pr 4128  df-op 4132  df-uni 4373  df-iun 4457  df-br 4584  df-opab 4644  df-mpt 4645  df-id 4953  df-xp 5044  df-rel 5045  df-cnv 5046  df-co 5047  df-dm 5048  df-rn 5049  df-res 5050  df-ima 5051  df-iota 5768  df-fun 5806  df-fn 5807  df-f 5808  df-f1 5809  df-fo 5810  df-f1o 5811  df-fv 5812  df-ofr 6796 This theorem is referenced by:  gsumbagdiaglem  19196  itg2le  23312
 Copyright terms: Public domain W3C validator