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

Theorem ofco2 21508
Description: Distribution law for the function operation and the composition of functions. (Contributed by Stefan O'Rear, 17-Jul-2018.)
Assertion
Ref Expression
ofco2 (((𝐹 ∈ V ∧ 𝐺 ∈ V) ∧ (Fun 𝐻 ∧ (𝐹𝐻) ∈ V ∧ (𝐺𝐻) ∈ V)) → ((𝐹f 𝑅𝐺) ∘ 𝐻) = ((𝐹𝐻) ∘f 𝑅(𝐺𝐻)))

Proof of Theorem ofco2
Dummy variables 𝑥 𝑦 are mutually distinct and distinct from all other variables.
StepHypRef Expression
1 simpr1 1192 . . . 4 (((𝐹 ∈ V ∧ 𝐺 ∈ V) ∧ (Fun 𝐻 ∧ (𝐹𝐻) ∈ V ∧ (𝐺𝐻) ∈ V)) → Fun 𝐻)
2 fvimacnvi 6911 . . . 4 ((Fun 𝐻𝑥 ∈ (𝐻 “ (dom 𝐹 ∩ dom 𝐺))) → (𝐻𝑥) ∈ (dom 𝐹 ∩ dom 𝐺))
31, 2sylan 579 . . 3 ((((𝐹 ∈ V ∧ 𝐺 ∈ V) ∧ (Fun 𝐻 ∧ (𝐹𝐻) ∈ V ∧ (𝐺𝐻) ∈ V)) ∧ 𝑥 ∈ (𝐻 “ (dom 𝐹 ∩ dom 𝐺))) → (𝐻𝑥) ∈ (dom 𝐹 ∩ dom 𝐺))
41funfnd 6449 . . . . . 6 (((𝐹 ∈ V ∧ 𝐺 ∈ V) ∧ (Fun 𝐻 ∧ (𝐹𝐻) ∈ V ∧ (𝐺𝐻) ∈ V)) → 𝐻 Fn dom 𝐻)
5 dffn5 6810 . . . . . 6 (𝐻 Fn dom 𝐻𝐻 = (𝑥 ∈ dom 𝐻 ↦ (𝐻𝑥)))
64, 5sylib 217 . . . . 5 (((𝐹 ∈ V ∧ 𝐺 ∈ V) ∧ (Fun 𝐻 ∧ (𝐹𝐻) ∈ V ∧ (𝐺𝐻) ∈ V)) → 𝐻 = (𝑥 ∈ dom 𝐻 ↦ (𝐻𝑥)))
76reseq1d 5879 . . . 4 (((𝐹 ∈ V ∧ 𝐺 ∈ V) ∧ (Fun 𝐻 ∧ (𝐹𝐻) ∈ V ∧ (𝐺𝐻) ∈ V)) → (𝐻 ↾ (𝐻 “ (dom 𝐹 ∩ dom 𝐺))) = ((𝑥 ∈ dom 𝐻 ↦ (𝐻𝑥)) ↾ (𝐻 “ (dom 𝐹 ∩ dom 𝐺))))
8 cnvimass 5978 . . . . 5 (𝐻 “ (dom 𝐹 ∩ dom 𝐺)) ⊆ dom 𝐻
9 resmpt 5934 . . . . 5 ((𝐻 “ (dom 𝐹 ∩ dom 𝐺)) ⊆ dom 𝐻 → ((𝑥 ∈ dom 𝐻 ↦ (𝐻𝑥)) ↾ (𝐻 “ (dom 𝐹 ∩ dom 𝐺))) = (𝑥 ∈ (𝐻 “ (dom 𝐹 ∩ dom 𝐺)) ↦ (𝐻𝑥)))
108, 9ax-mp 5 . . . 4 ((𝑥 ∈ dom 𝐻 ↦ (𝐻𝑥)) ↾ (𝐻 “ (dom 𝐹 ∩ dom 𝐺))) = (𝑥 ∈ (𝐻 “ (dom 𝐹 ∩ dom 𝐺)) ↦ (𝐻𝑥))
117, 10eqtrdi 2795 . . 3 (((𝐹 ∈ V ∧ 𝐺 ∈ V) ∧ (Fun 𝐻 ∧ (𝐹𝐻) ∈ V ∧ (𝐺𝐻) ∈ V)) → (𝐻 ↾ (𝐻 “ (dom 𝐹 ∩ dom 𝐺))) = (𝑥 ∈ (𝐻 “ (dom 𝐹 ∩ dom 𝐺)) ↦ (𝐻𝑥)))
12 offval3 7798 . . . 4 ((𝐹 ∈ V ∧ 𝐺 ∈ V) → (𝐹f 𝑅𝐺) = (𝑦 ∈ (dom 𝐹 ∩ dom 𝐺) ↦ ((𝐹𝑦)𝑅(𝐺𝑦))))
1312adantr 480 . . 3 (((𝐹 ∈ V ∧ 𝐺 ∈ V) ∧ (Fun 𝐻 ∧ (𝐹𝐻) ∈ V ∧ (𝐺𝐻) ∈ V)) → (𝐹f 𝑅𝐺) = (𝑦 ∈ (dom 𝐹 ∩ dom 𝐺) ↦ ((𝐹𝑦)𝑅(𝐺𝑦))))
14 fveq2 6756 . . . 4 (𝑦 = (𝐻𝑥) → (𝐹𝑦) = (𝐹‘(𝐻𝑥)))
15 fveq2 6756 . . . 4 (𝑦 = (𝐻𝑥) → (𝐺𝑦) = (𝐺‘(𝐻𝑥)))
1614, 15oveq12d 7273 . . 3 (𝑦 = (𝐻𝑥) → ((𝐹𝑦)𝑅(𝐺𝑦)) = ((𝐹‘(𝐻𝑥))𝑅(𝐺‘(𝐻𝑥))))
173, 11, 13, 16fmptco 6983 . 2 (((𝐹 ∈ V ∧ 𝐺 ∈ V) ∧ (Fun 𝐻 ∧ (𝐹𝐻) ∈ V ∧ (𝐺𝐻) ∈ V)) → ((𝐹f 𝑅𝐺) ∘ (𝐻 ↾ (𝐻 “ (dom 𝐹 ∩ dom 𝐺)))) = (𝑥 ∈ (𝐻 “ (dom 𝐹 ∩ dom 𝐺)) ↦ ((𝐹‘(𝐻𝑥))𝑅(𝐺‘(𝐻𝑥)))))
18 ovex 7288 . . . . . . . 8 ((𝐹𝑥)𝑅(𝐺𝑥)) ∈ V
1918rgenw 3075 . . . . . . 7 𝑥 ∈ (dom 𝐹 ∩ dom 𝐺)((𝐹𝑥)𝑅(𝐺𝑥)) ∈ V
20 eqid 2738 . . . . . . . 8 (𝑥 ∈ (dom 𝐹 ∩ dom 𝐺) ↦ ((𝐹𝑥)𝑅(𝐺𝑥))) = (𝑥 ∈ (dom 𝐹 ∩ dom 𝐺) ↦ ((𝐹𝑥)𝑅(𝐺𝑥)))
2120fnmpt 6557 . . . . . . 7 (∀𝑥 ∈ (dom 𝐹 ∩ dom 𝐺)((𝐹𝑥)𝑅(𝐺𝑥)) ∈ V → (𝑥 ∈ (dom 𝐹 ∩ dom 𝐺) ↦ ((𝐹𝑥)𝑅(𝐺𝑥))) Fn (dom 𝐹 ∩ dom 𝐺))
2219, 21mp1i 13 . . . . . 6 (((𝐹 ∈ V ∧ 𝐺 ∈ V) ∧ (Fun 𝐻 ∧ (𝐹𝐻) ∈ V ∧ (𝐺𝐻) ∈ V)) → (𝑥 ∈ (dom 𝐹 ∩ dom 𝐺) ↦ ((𝐹𝑥)𝑅(𝐺𝑥))) Fn (dom 𝐹 ∩ dom 𝐺))
23 offval3 7798 . . . . . . . 8 ((𝐹 ∈ V ∧ 𝐺 ∈ V) → (𝐹f 𝑅𝐺) = (𝑥 ∈ (dom 𝐹 ∩ dom 𝐺) ↦ ((𝐹𝑥)𝑅(𝐺𝑥))))
2423adantr 480 . . . . . . 7 (((𝐹 ∈ V ∧ 𝐺 ∈ V) ∧ (Fun 𝐻 ∧ (𝐹𝐻) ∈ V ∧ (𝐺𝐻) ∈ V)) → (𝐹f 𝑅𝐺) = (𝑥 ∈ (dom 𝐹 ∩ dom 𝐺) ↦ ((𝐹𝑥)𝑅(𝐺𝑥))))
2524fneq1d 6510 . . . . . 6 (((𝐹 ∈ V ∧ 𝐺 ∈ V) ∧ (Fun 𝐻 ∧ (𝐹𝐻) ∈ V ∧ (𝐺𝐻) ∈ V)) → ((𝐹f 𝑅𝐺) Fn (dom 𝐹 ∩ dom 𝐺) ↔ (𝑥 ∈ (dom 𝐹 ∩ dom 𝐺) ↦ ((𝐹𝑥)𝑅(𝐺𝑥))) Fn (dom 𝐹 ∩ dom 𝐺)))
2622, 25mpbird 256 . . . . 5 (((𝐹 ∈ V ∧ 𝐺 ∈ V) ∧ (Fun 𝐻 ∧ (𝐹𝐻) ∈ V ∧ (𝐺𝐻) ∈ V)) → (𝐹f 𝑅𝐺) Fn (dom 𝐹 ∩ dom 𝐺))
2726fndmd 6522 . . . 4 (((𝐹 ∈ V ∧ 𝐺 ∈ V) ∧ (Fun 𝐻 ∧ (𝐹𝐻) ∈ V ∧ (𝐺𝐻) ∈ V)) → dom (𝐹f 𝑅𝐺) = (dom 𝐹 ∩ dom 𝐺))
28 eqimss 3973 . . . 4 (dom (𝐹f 𝑅𝐺) = (dom 𝐹 ∩ dom 𝐺) → dom (𝐹f 𝑅𝐺) ⊆ (dom 𝐹 ∩ dom 𝐺))
29 cores2 6152 . . . 4 (dom (𝐹f 𝑅𝐺) ⊆ (dom 𝐹 ∩ dom 𝐺) → ((𝐹f 𝑅𝐺) ∘ (𝐻 ↾ (dom 𝐹 ∩ dom 𝐺))) = ((𝐹f 𝑅𝐺) ∘ 𝐻))
3027, 28, 293syl 18 . . 3 (((𝐹 ∈ V ∧ 𝐺 ∈ V) ∧ (Fun 𝐻 ∧ (𝐹𝐻) ∈ V ∧ (𝐺𝐻) ∈ V)) → ((𝐹f 𝑅𝐺) ∘ (𝐻 ↾ (dom 𝐹 ∩ dom 𝐺))) = ((𝐹f 𝑅𝐺) ∘ 𝐻))
31 funcnvres2 6498 . . . . 5 (Fun 𝐻(𝐻 ↾ (dom 𝐹 ∩ dom 𝐺)) = (𝐻 ↾ (𝐻 “ (dom 𝐹 ∩ dom 𝐺))))
321, 31syl 17 . . . 4 (((𝐹 ∈ V ∧ 𝐺 ∈ V) ∧ (Fun 𝐻 ∧ (𝐹𝐻) ∈ V ∧ (𝐺𝐻) ∈ V)) → (𝐻 ↾ (dom 𝐹 ∩ dom 𝐺)) = (𝐻 ↾ (𝐻 “ (dom 𝐹 ∩ dom 𝐺))))
3332coeq2d 5760 . . 3 (((𝐹 ∈ V ∧ 𝐺 ∈ V) ∧ (Fun 𝐻 ∧ (𝐹𝐻) ∈ V ∧ (𝐺𝐻) ∈ V)) → ((𝐹f 𝑅𝐺) ∘ (𝐻 ↾ (dom 𝐹 ∩ dom 𝐺))) = ((𝐹f 𝑅𝐺) ∘ (𝐻 ↾ (𝐻 “ (dom 𝐹 ∩ dom 𝐺)))))
3430, 33eqtr3d 2780 . 2 (((𝐹 ∈ V ∧ 𝐺 ∈ V) ∧ (Fun 𝐻 ∧ (𝐹𝐻) ∈ V ∧ (𝐺𝐻) ∈ V)) → ((𝐹f 𝑅𝐺) ∘ 𝐻) = ((𝐹f 𝑅𝐺) ∘ (𝐻 ↾ (𝐻 “ (dom 𝐹 ∩ dom 𝐺)))))
35 simpr2 1193 . . . 4 (((𝐹 ∈ V ∧ 𝐺 ∈ V) ∧ (Fun 𝐻 ∧ (𝐹𝐻) ∈ V ∧ (𝐺𝐻) ∈ V)) → (𝐹𝐻) ∈ V)
36 simpr3 1194 . . . 4 (((𝐹 ∈ V ∧ 𝐺 ∈ V) ∧ (Fun 𝐻 ∧ (𝐹𝐻) ∈ V ∧ (𝐺𝐻) ∈ V)) → (𝐺𝐻) ∈ V)
37 offval3 7798 . . . 4 (((𝐹𝐻) ∈ V ∧ (𝐺𝐻) ∈ V) → ((𝐹𝐻) ∘f 𝑅(𝐺𝐻)) = (𝑥 ∈ (dom (𝐹𝐻) ∩ dom (𝐺𝐻)) ↦ (((𝐹𝐻)‘𝑥)𝑅((𝐺𝐻)‘𝑥))))
3835, 36, 37syl2anc 583 . . 3 (((𝐹 ∈ V ∧ 𝐺 ∈ V) ∧ (Fun 𝐻 ∧ (𝐹𝐻) ∈ V ∧ (𝐺𝐻) ∈ V)) → ((𝐹𝐻) ∘f 𝑅(𝐺𝐻)) = (𝑥 ∈ (dom (𝐹𝐻) ∩ dom (𝐺𝐻)) ↦ (((𝐹𝐻)‘𝑥)𝑅((𝐺𝐻)‘𝑥))))
39 dmco 6147 . . . . . 6 dom (𝐹𝐻) = (𝐻 “ dom 𝐹)
40 dmco 6147 . . . . . 6 dom (𝐺𝐻) = (𝐻 “ dom 𝐺)
4139, 40ineq12i 4141 . . . . 5 (dom (𝐹𝐻) ∩ dom (𝐺𝐻)) = ((𝐻 “ dom 𝐹) ∩ (𝐻 “ dom 𝐺))
42 inpreima 6923 . . . . . 6 (Fun 𝐻 → (𝐻 “ (dom 𝐹 ∩ dom 𝐺)) = ((𝐻 “ dom 𝐹) ∩ (𝐻 “ dom 𝐺)))
431, 42syl 17 . . . . 5 (((𝐹 ∈ V ∧ 𝐺 ∈ V) ∧ (Fun 𝐻 ∧ (𝐹𝐻) ∈ V ∧ (𝐺𝐻) ∈ V)) → (𝐻 “ (dom 𝐹 ∩ dom 𝐺)) = ((𝐻 “ dom 𝐹) ∩ (𝐻 “ dom 𝐺)))
4441, 43eqtr4id 2798 . . . 4 (((𝐹 ∈ V ∧ 𝐺 ∈ V) ∧ (Fun 𝐻 ∧ (𝐹𝐻) ∈ V ∧ (𝐺𝐻) ∈ V)) → (dom (𝐹𝐻) ∩ dom (𝐺𝐻)) = (𝐻 “ (dom 𝐹 ∩ dom 𝐺)))
45 simplr1 1213 . . . . . 6 ((((𝐹 ∈ V ∧ 𝐺 ∈ V) ∧ (Fun 𝐻 ∧ (𝐹𝐻) ∈ V ∧ (𝐺𝐻) ∈ V)) ∧ 𝑥 ∈ (dom (𝐹𝐻) ∩ dom (𝐺𝐻))) → Fun 𝐻)
46 inss2 4160 . . . . . . . . 9 (dom (𝐹𝐻) ∩ dom (𝐺𝐻)) ⊆ dom (𝐺𝐻)
47 dmcoss 5869 . . . . . . . . 9 dom (𝐺𝐻) ⊆ dom 𝐻
4846, 47sstri 3926 . . . . . . . 8 (dom (𝐹𝐻) ∩ dom (𝐺𝐻)) ⊆ dom 𝐻
4948a1i 11 . . . . . . 7 (((𝐹 ∈ V ∧ 𝐺 ∈ V) ∧ (Fun 𝐻 ∧ (𝐹𝐻) ∈ V ∧ (𝐺𝐻) ∈ V)) → (dom (𝐹𝐻) ∩ dom (𝐺𝐻)) ⊆ dom 𝐻)
5049sselda 3917 . . . . . 6 ((((𝐹 ∈ V ∧ 𝐺 ∈ V) ∧ (Fun 𝐻 ∧ (𝐹𝐻) ∈ V ∧ (𝐺𝐻) ∈ V)) ∧ 𝑥 ∈ (dom (𝐹𝐻) ∩ dom (𝐺𝐻))) → 𝑥 ∈ dom 𝐻)
51 fvco 6848 . . . . . 6 ((Fun 𝐻𝑥 ∈ dom 𝐻) → ((𝐹𝐻)‘𝑥) = (𝐹‘(𝐻𝑥)))
5245, 50, 51syl2anc 583 . . . . 5 ((((𝐹 ∈ V ∧ 𝐺 ∈ V) ∧ (Fun 𝐻 ∧ (𝐹𝐻) ∈ V ∧ (𝐺𝐻) ∈ V)) ∧ 𝑥 ∈ (dom (𝐹𝐻) ∩ dom (𝐺𝐻))) → ((𝐹𝐻)‘𝑥) = (𝐹‘(𝐻𝑥)))
53 inss1 4159 . . . . . . . . 9 (dom (𝐹𝐻) ∩ dom (𝐺𝐻)) ⊆ dom (𝐹𝐻)
54 dmcoss 5869 . . . . . . . . 9 dom (𝐹𝐻) ⊆ dom 𝐻
5553, 54sstri 3926 . . . . . . . 8 (dom (𝐹𝐻) ∩ dom (𝐺𝐻)) ⊆ dom 𝐻
5655a1i 11 . . . . . . 7 (((𝐹 ∈ V ∧ 𝐺 ∈ V) ∧ (Fun 𝐻 ∧ (𝐹𝐻) ∈ V ∧ (𝐺𝐻) ∈ V)) → (dom (𝐹𝐻) ∩ dom (𝐺𝐻)) ⊆ dom 𝐻)
5756sselda 3917 . . . . . 6 ((((𝐹 ∈ V ∧ 𝐺 ∈ V) ∧ (Fun 𝐻 ∧ (𝐹𝐻) ∈ V ∧ (𝐺𝐻) ∈ V)) ∧ 𝑥 ∈ (dom (𝐹𝐻) ∩ dom (𝐺𝐻))) → 𝑥 ∈ dom 𝐻)
58 fvco 6848 . . . . . 6 ((Fun 𝐻𝑥 ∈ dom 𝐻) → ((𝐺𝐻)‘𝑥) = (𝐺‘(𝐻𝑥)))
5945, 57, 58syl2anc 583 . . . . 5 ((((𝐹 ∈ V ∧ 𝐺 ∈ V) ∧ (Fun 𝐻 ∧ (𝐹𝐻) ∈ V ∧ (𝐺𝐻) ∈ V)) ∧ 𝑥 ∈ (dom (𝐹𝐻) ∩ dom (𝐺𝐻))) → ((𝐺𝐻)‘𝑥) = (𝐺‘(𝐻𝑥)))
6052, 59oveq12d 7273 . . . 4 ((((𝐹 ∈ V ∧ 𝐺 ∈ V) ∧ (Fun 𝐻 ∧ (𝐹𝐻) ∈ V ∧ (𝐺𝐻) ∈ V)) ∧ 𝑥 ∈ (dom (𝐹𝐻) ∩ dom (𝐺𝐻))) → (((𝐹𝐻)‘𝑥)𝑅((𝐺𝐻)‘𝑥)) = ((𝐹‘(𝐻𝑥))𝑅(𝐺‘(𝐻𝑥))))
6144, 60mpteq12dva 5159 . . 3 (((𝐹 ∈ V ∧ 𝐺 ∈ V) ∧ (Fun 𝐻 ∧ (𝐹𝐻) ∈ V ∧ (𝐺𝐻) ∈ V)) → (𝑥 ∈ (dom (𝐹𝐻) ∩ dom (𝐺𝐻)) ↦ (((𝐹𝐻)‘𝑥)𝑅((𝐺𝐻)‘𝑥))) = (𝑥 ∈ (𝐻 “ (dom 𝐹 ∩ dom 𝐺)) ↦ ((𝐹‘(𝐻𝑥))𝑅(𝐺‘(𝐻𝑥)))))
6238, 61eqtrd 2778 . 2 (((𝐹 ∈ V ∧ 𝐺 ∈ V) ∧ (Fun 𝐻 ∧ (𝐹𝐻) ∈ V ∧ (𝐺𝐻) ∈ V)) → ((𝐹𝐻) ∘f 𝑅(𝐺𝐻)) = (𝑥 ∈ (𝐻 “ (dom 𝐹 ∩ dom 𝐺)) ↦ ((𝐹‘(𝐻𝑥))𝑅(𝐺‘(𝐻𝑥)))))
6317, 34, 623eqtr4d 2788 1 (((𝐹 ∈ V ∧ 𝐺 ∈ V) ∧ (Fun 𝐻 ∧ (𝐹𝐻) ∈ V ∧ (𝐺𝐻) ∈ V)) → ((𝐹f 𝑅𝐺) ∘ 𝐻) = ((𝐹𝐻) ∘f 𝑅(𝐺𝐻)))
Colors of variables: wff setvar class
Syntax hints:  wi 4  wa 395  w3a 1085   = wceq 1539  wcel 2108  wral 3063  Vcvv 3422  cin 3882  wss 3883  cmpt 5153  ccnv 5579  dom cdm 5580  cres 5582  cima 5583  ccom 5584  Fun wfun 6412   Fn wfn 6413  cfv 6418  (class class class)co 7255  f cof 7509
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  ax-un 7566
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-ov 7258  df-oprab 7259  df-mpo 7260  df-of 7511
This theorem is referenced by:  oftpos  21509
  Copyright terms: Public domain W3C validator