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

Theorem funcres2b 17610
Description: Condition for a functor to also be a functor into the restriction. (Contributed by Mario Carneiro, 6-Jan-2017.)
Hypotheses
Ref Expression
funcres2b.a 𝐴 = (Base‘𝐶)
funcres2b.h 𝐻 = (Hom ‘𝐶)
funcres2b.r (𝜑𝑅 ∈ (Subcat‘𝐷))
funcres2b.s (𝜑𝑅 Fn (𝑆 × 𝑆))
funcres2b.1 (𝜑𝐹:𝐴𝑆)
funcres2b.2 ((𝜑 ∧ (𝑥𝐴𝑦𝐴)) → (𝑥𝐺𝑦):𝑌⟶((𝐹𝑥)𝑅(𝐹𝑦)))
Assertion
Ref Expression
funcres2b (𝜑 → (𝐹(𝐶 Func 𝐷)𝐺𝐹(𝐶 Func (𝐷cat 𝑅))𝐺))
Distinct variable groups:   𝑥,𝑦,𝐴   𝑥,𝐶,𝑦   𝑥,𝐷,𝑦   𝜑,𝑥,𝑦   𝑥,𝐹,𝑦   𝑥,𝐺,𝑦   𝑥,𝐻,𝑦   𝑥,𝑅,𝑦
Allowed substitution hints:   𝑆(𝑥,𝑦)   𝑌(𝑥,𝑦)

Proof of Theorem funcres2b
Dummy variables 𝑓 𝑔 𝑧 are mutually distinct and distinct from all other variables.
StepHypRef Expression
1 df-br 5077 . . . . 5 (𝐹(𝐶 Func 𝐷)𝐺 ↔ ⟨𝐹, 𝐺⟩ ∈ (𝐶 Func 𝐷))
2 funcrcl 17576 . . . . 5 (⟨𝐹, 𝐺⟩ ∈ (𝐶 Func 𝐷) → (𝐶 ∈ Cat ∧ 𝐷 ∈ Cat))
31, 2sylbi 216 . . . 4 (𝐹(𝐶 Func 𝐷)𝐺 → (𝐶 ∈ Cat ∧ 𝐷 ∈ Cat))
43simpld 495 . . 3 (𝐹(𝐶 Func 𝐷)𝐺𝐶 ∈ Cat)
54a1i 11 . 2 (𝜑 → (𝐹(𝐶 Func 𝐷)𝐺𝐶 ∈ Cat))
6 df-br 5077 . . . . 5 (𝐹(𝐶 Func (𝐷cat 𝑅))𝐺 ↔ ⟨𝐹, 𝐺⟩ ∈ (𝐶 Func (𝐷cat 𝑅)))
7 funcrcl 17576 . . . . 5 (⟨𝐹, 𝐺⟩ ∈ (𝐶 Func (𝐷cat 𝑅)) → (𝐶 ∈ Cat ∧ (𝐷cat 𝑅) ∈ Cat))
86, 7sylbi 216 . . . 4 (𝐹(𝐶 Func (𝐷cat 𝑅))𝐺 → (𝐶 ∈ Cat ∧ (𝐷cat 𝑅) ∈ Cat))
98simpld 495 . . 3 (𝐹(𝐶 Func (𝐷cat 𝑅))𝐺𝐶 ∈ Cat)
109a1i 11 . 2 (𝜑 → (𝐹(𝐶 Func (𝐷cat 𝑅))𝐺𝐶 ∈ Cat))
11 funcres2b.1 . . . . . . . 8 (𝜑𝐹:𝐴𝑆)
12 funcres2b.r . . . . . . . . 9 (𝜑𝑅 ∈ (Subcat‘𝐷))
13 funcres2b.s . . . . . . . . 9 (𝜑𝑅 Fn (𝑆 × 𝑆))
14 eqid 2738 . . . . . . . . 9 (Base‘𝐷) = (Base‘𝐷)
1512, 13, 14subcss1 17555 . . . . . . . 8 (𝜑𝑆 ⊆ (Base‘𝐷))
1611, 15fssd 6620 . . . . . . 7 (𝜑𝐹:𝐴⟶(Base‘𝐷))
17 eqid 2738 . . . . . . . . . 10 (𝐷cat 𝑅) = (𝐷cat 𝑅)
18 subcrcl 17526 . . . . . . . . . . 11 (𝑅 ∈ (Subcat‘𝐷) → 𝐷 ∈ Cat)
1912, 18syl 17 . . . . . . . . . 10 (𝜑𝐷 ∈ Cat)
2017, 14, 19, 13, 15rescbas 17539 . . . . . . . . 9 (𝜑𝑆 = (Base‘(𝐷cat 𝑅)))
2120feq3d 6589 . . . . . . . 8 (𝜑 → (𝐹:𝐴𝑆𝐹:𝐴⟶(Base‘(𝐷cat 𝑅))))
2211, 21mpbid 231 . . . . . . 7 (𝜑𝐹:𝐴⟶(Base‘(𝐷cat 𝑅)))
2316, 222thd 264 . . . . . 6 (𝜑 → (𝐹:𝐴⟶(Base‘𝐷) ↔ 𝐹:𝐴⟶(Base‘(𝐷cat 𝑅))))
2423adantr 481 . . . . 5 ((𝜑𝐶 ∈ Cat) → (𝐹:𝐴⟶(Base‘𝐷) ↔ 𝐹:𝐴⟶(Base‘(𝐷cat 𝑅))))
25 funcres2b.2 . . . . . . . . . . . . . . . . 17 ((𝜑 ∧ (𝑥𝐴𝑦𝐴)) → (𝑥𝐺𝑦):𝑌⟶((𝐹𝑥)𝑅(𝐹𝑦)))
2625adantlr 712 . . . . . . . . . . . . . . . 16 (((𝜑𝐶 ∈ Cat) ∧ (𝑥𝐴𝑦𝐴)) → (𝑥𝐺𝑦):𝑌⟶((𝐹𝑥)𝑅(𝐹𝑦)))
2726frnd 6610 . . . . . . . . . . . . . . 15 (((𝜑𝐶 ∈ Cat) ∧ (𝑥𝐴𝑦𝐴)) → ran (𝑥𝐺𝑦) ⊆ ((𝐹𝑥)𝑅(𝐹𝑦)))
2812ad2antrr 723 . . . . . . . . . . . . . . . 16 (((𝜑𝐶 ∈ Cat) ∧ (𝑥𝐴𝑦𝐴)) → 𝑅 ∈ (Subcat‘𝐷))
2913ad2antrr 723 . . . . . . . . . . . . . . . 16 (((𝜑𝐶 ∈ Cat) ∧ (𝑥𝐴𝑦𝐴)) → 𝑅 Fn (𝑆 × 𝑆))
30 eqid 2738 . . . . . . . . . . . . . . . 16 (Hom ‘𝐷) = (Hom ‘𝐷)
3111ad2antrr 723 . . . . . . . . . . . . . . . . 17 (((𝜑𝐶 ∈ Cat) ∧ (𝑥𝐴𝑦𝐴)) → 𝐹:𝐴𝑆)
32 simprl 768 . . . . . . . . . . . . . . . . 17 (((𝜑𝐶 ∈ Cat) ∧ (𝑥𝐴𝑦𝐴)) → 𝑥𝐴)
3331, 32ffvelrnd 6964 . . . . . . . . . . . . . . . 16 (((𝜑𝐶 ∈ Cat) ∧ (𝑥𝐴𝑦𝐴)) → (𝐹𝑥) ∈ 𝑆)
34 simprr 770 . . . . . . . . . . . . . . . . 17 (((𝜑𝐶 ∈ Cat) ∧ (𝑥𝐴𝑦𝐴)) → 𝑦𝐴)
3531, 34ffvelrnd 6964 . . . . . . . . . . . . . . . 16 (((𝜑𝐶 ∈ Cat) ∧ (𝑥𝐴𝑦𝐴)) → (𝐹𝑦) ∈ 𝑆)
3628, 29, 30, 33, 35subcss2 17556 . . . . . . . . . . . . . . 15 (((𝜑𝐶 ∈ Cat) ∧ (𝑥𝐴𝑦𝐴)) → ((𝐹𝑥)𝑅(𝐹𝑦)) ⊆ ((𝐹𝑥)(Hom ‘𝐷)(𝐹𝑦)))
3727, 36sstrd 3932 . . . . . . . . . . . . . 14 (((𝜑𝐶 ∈ Cat) ∧ (𝑥𝐴𝑦𝐴)) → ran (𝑥𝐺𝑦) ⊆ ((𝐹𝑥)(Hom ‘𝐷)(𝐹𝑦)))
3837, 272thd 264 . . . . . . . . . . . . 13 (((𝜑𝐶 ∈ Cat) ∧ (𝑥𝐴𝑦𝐴)) → (ran (𝑥𝐺𝑦) ⊆ ((𝐹𝑥)(Hom ‘𝐷)(𝐹𝑦)) ↔ ran (𝑥𝐺𝑦) ⊆ ((𝐹𝑥)𝑅(𝐹𝑦))))
3938anbi2d 629 . . . . . . . . . . . 12 (((𝜑𝐶 ∈ Cat) ∧ (𝑥𝐴𝑦𝐴)) → (((𝑥𝐺𝑦) Fn (𝑥𝐻𝑦) ∧ ran (𝑥𝐺𝑦) ⊆ ((𝐹𝑥)(Hom ‘𝐷)(𝐹𝑦))) ↔ ((𝑥𝐺𝑦) Fn (𝑥𝐻𝑦) ∧ ran (𝑥𝐺𝑦) ⊆ ((𝐹𝑥)𝑅(𝐹𝑦)))))
40 df-f 6439 . . . . . . . . . . . 12 ((𝑥𝐺𝑦):(𝑥𝐻𝑦)⟶((𝐹𝑥)(Hom ‘𝐷)(𝐹𝑦)) ↔ ((𝑥𝐺𝑦) Fn (𝑥𝐻𝑦) ∧ ran (𝑥𝐺𝑦) ⊆ ((𝐹𝑥)(Hom ‘𝐷)(𝐹𝑦))))
41 df-f 6439 . . . . . . . . . . . 12 ((𝑥𝐺𝑦):(𝑥𝐻𝑦)⟶((𝐹𝑥)𝑅(𝐹𝑦)) ↔ ((𝑥𝐺𝑦) Fn (𝑥𝐻𝑦) ∧ ran (𝑥𝐺𝑦) ⊆ ((𝐹𝑥)𝑅(𝐹𝑦))))
4239, 40, 413bitr4g 314 . . . . . . . . . . 11 (((𝜑𝐶 ∈ Cat) ∧ (𝑥𝐴𝑦𝐴)) → ((𝑥𝐺𝑦):(𝑥𝐻𝑦)⟶((𝐹𝑥)(Hom ‘𝐷)(𝐹𝑦)) ↔ (𝑥𝐺𝑦):(𝑥𝐻𝑦)⟶((𝐹𝑥)𝑅(𝐹𝑦))))
4317, 14, 19, 13, 15reschom 17541 . . . . . . . . . . . . . 14 (𝜑𝑅 = (Hom ‘(𝐷cat 𝑅)))
4443ad2antrr 723 . . . . . . . . . . . . 13 (((𝜑𝐶 ∈ Cat) ∧ (𝑥𝐴𝑦𝐴)) → 𝑅 = (Hom ‘(𝐷cat 𝑅)))
4544oveqd 7294 . . . . . . . . . . . 12 (((𝜑𝐶 ∈ Cat) ∧ (𝑥𝐴𝑦𝐴)) → ((𝐹𝑥)𝑅(𝐹𝑦)) = ((𝐹𝑥)(Hom ‘(𝐷cat 𝑅))(𝐹𝑦)))
4645feq3d 6589 . . . . . . . . . . 11 (((𝜑𝐶 ∈ Cat) ∧ (𝑥𝐴𝑦𝐴)) → ((𝑥𝐺𝑦):(𝑥𝐻𝑦)⟶((𝐹𝑥)𝑅(𝐹𝑦)) ↔ (𝑥𝐺𝑦):(𝑥𝐻𝑦)⟶((𝐹𝑥)(Hom ‘(𝐷cat 𝑅))(𝐹𝑦))))
4742, 46bitrd 278 . . . . . . . . . 10 (((𝜑𝐶 ∈ Cat) ∧ (𝑥𝐴𝑦𝐴)) → ((𝑥𝐺𝑦):(𝑥𝐻𝑦)⟶((𝐹𝑥)(Hom ‘𝐷)(𝐹𝑦)) ↔ (𝑥𝐺𝑦):(𝑥𝐻𝑦)⟶((𝐹𝑥)(Hom ‘(𝐷cat 𝑅))(𝐹𝑦))))
4847ralrimivva 3111 . . . . . . . . 9 ((𝜑𝐶 ∈ Cat) → ∀𝑥𝐴𝑦𝐴 ((𝑥𝐺𝑦):(𝑥𝐻𝑦)⟶((𝐹𝑥)(Hom ‘𝐷)(𝐹𝑦)) ↔ (𝑥𝐺𝑦):(𝑥𝐻𝑦)⟶((𝐹𝑥)(Hom ‘(𝐷cat 𝑅))(𝐹𝑦))))
49 fveq2 6776 . . . . . . . . . . . . . 14 (𝑧 = ⟨𝑥, 𝑦⟩ → (𝐺𝑧) = (𝐺‘⟨𝑥, 𝑦⟩))
50 df-ov 7280 . . . . . . . . . . . . . 14 (𝑥𝐺𝑦) = (𝐺‘⟨𝑥, 𝑦⟩)
5149, 50eqtr4di 2796 . . . . . . . . . . . . 13 (𝑧 = ⟨𝑥, 𝑦⟩ → (𝐺𝑧) = (𝑥𝐺𝑦))
52 vex 3435 . . . . . . . . . . . . . . . . 17 𝑥 ∈ V
53 vex 3435 . . . . . . . . . . . . . . . . 17 𝑦 ∈ V
5452, 53op1std 7841 . . . . . . . . . . . . . . . 16 (𝑧 = ⟨𝑥, 𝑦⟩ → (1st𝑧) = 𝑥)
5554fveq2d 6780 . . . . . . . . . . . . . . 15 (𝑧 = ⟨𝑥, 𝑦⟩ → (𝐹‘(1st𝑧)) = (𝐹𝑥))
5652, 53op2ndd 7842 . . . . . . . . . . . . . . . 16 (𝑧 = ⟨𝑥, 𝑦⟩ → (2nd𝑧) = 𝑦)
5756fveq2d 6780 . . . . . . . . . . . . . . 15 (𝑧 = ⟨𝑥, 𝑦⟩ → (𝐹‘(2nd𝑧)) = (𝐹𝑦))
5855, 57oveq12d 7295 . . . . . . . . . . . . . 14 (𝑧 = ⟨𝑥, 𝑦⟩ → ((𝐹‘(1st𝑧))(Hom ‘𝐷)(𝐹‘(2nd𝑧))) = ((𝐹𝑥)(Hom ‘𝐷)(𝐹𝑦)))
59 fveq2 6776 . . . . . . . . . . . . . . 15 (𝑧 = ⟨𝑥, 𝑦⟩ → (𝐻𝑧) = (𝐻‘⟨𝑥, 𝑦⟩))
60 df-ov 7280 . . . . . . . . . . . . . . 15 (𝑥𝐻𝑦) = (𝐻‘⟨𝑥, 𝑦⟩)
6159, 60eqtr4di 2796 . . . . . . . . . . . . . 14 (𝑧 = ⟨𝑥, 𝑦⟩ → (𝐻𝑧) = (𝑥𝐻𝑦))
6258, 61oveq12d 7295 . . . . . . . . . . . . 13 (𝑧 = ⟨𝑥, 𝑦⟩ → (((𝐹‘(1st𝑧))(Hom ‘𝐷)(𝐹‘(2nd𝑧))) ↑m (𝐻𝑧)) = (((𝐹𝑥)(Hom ‘𝐷)(𝐹𝑦)) ↑m (𝑥𝐻𝑦)))
6351, 62eleq12d 2833 . . . . . . . . . . . 12 (𝑧 = ⟨𝑥, 𝑦⟩ → ((𝐺𝑧) ∈ (((𝐹‘(1st𝑧))(Hom ‘𝐷)(𝐹‘(2nd𝑧))) ↑m (𝐻𝑧)) ↔ (𝑥𝐺𝑦) ∈ (((𝐹𝑥)(Hom ‘𝐷)(𝐹𝑦)) ↑m (𝑥𝐻𝑦))))
64 ovex 7310 . . . . . . . . . . . . 13 ((𝐹𝑥)(Hom ‘𝐷)(𝐹𝑦)) ∈ V
65 ovex 7310 . . . . . . . . . . . . 13 (𝑥𝐻𝑦) ∈ V
6664, 65elmap 8657 . . . . . . . . . . . 12 ((𝑥𝐺𝑦) ∈ (((𝐹𝑥)(Hom ‘𝐷)(𝐹𝑦)) ↑m (𝑥𝐻𝑦)) ↔ (𝑥𝐺𝑦):(𝑥𝐻𝑦)⟶((𝐹𝑥)(Hom ‘𝐷)(𝐹𝑦)))
6763, 66bitrdi 287 . . . . . . . . . . 11 (𝑧 = ⟨𝑥, 𝑦⟩ → ((𝐺𝑧) ∈ (((𝐹‘(1st𝑧))(Hom ‘𝐷)(𝐹‘(2nd𝑧))) ↑m (𝐻𝑧)) ↔ (𝑥𝐺𝑦):(𝑥𝐻𝑦)⟶((𝐹𝑥)(Hom ‘𝐷)(𝐹𝑦))))
6855, 57oveq12d 7295 . . . . . . . . . . . . . 14 (𝑧 = ⟨𝑥, 𝑦⟩ → ((𝐹‘(1st𝑧))(Hom ‘(𝐷cat 𝑅))(𝐹‘(2nd𝑧))) = ((𝐹𝑥)(Hom ‘(𝐷cat 𝑅))(𝐹𝑦)))
6968, 61oveq12d 7295 . . . . . . . . . . . . 13 (𝑧 = ⟨𝑥, 𝑦⟩ → (((𝐹‘(1st𝑧))(Hom ‘(𝐷cat 𝑅))(𝐹‘(2nd𝑧))) ↑m (𝐻𝑧)) = (((𝐹𝑥)(Hom ‘(𝐷cat 𝑅))(𝐹𝑦)) ↑m (𝑥𝐻𝑦)))
7051, 69eleq12d 2833 . . . . . . . . . . . 12 (𝑧 = ⟨𝑥, 𝑦⟩ → ((𝐺𝑧) ∈ (((𝐹‘(1st𝑧))(Hom ‘(𝐷cat 𝑅))(𝐹‘(2nd𝑧))) ↑m (𝐻𝑧)) ↔ (𝑥𝐺𝑦) ∈ (((𝐹𝑥)(Hom ‘(𝐷cat 𝑅))(𝐹𝑦)) ↑m (𝑥𝐻𝑦))))
71 ovex 7310 . . . . . . . . . . . . 13 ((𝐹𝑥)(Hom ‘(𝐷cat 𝑅))(𝐹𝑦)) ∈ V
7271, 65elmap 8657 . . . . . . . . . . . 12 ((𝑥𝐺𝑦) ∈ (((𝐹𝑥)(Hom ‘(𝐷cat 𝑅))(𝐹𝑦)) ↑m (𝑥𝐻𝑦)) ↔ (𝑥𝐺𝑦):(𝑥𝐻𝑦)⟶((𝐹𝑥)(Hom ‘(𝐷cat 𝑅))(𝐹𝑦)))
7370, 72bitrdi 287 . . . . . . . . . . 11 (𝑧 = ⟨𝑥, 𝑦⟩ → ((𝐺𝑧) ∈ (((𝐹‘(1st𝑧))(Hom ‘(𝐷cat 𝑅))(𝐹‘(2nd𝑧))) ↑m (𝐻𝑧)) ↔ (𝑥𝐺𝑦):(𝑥𝐻𝑦)⟶((𝐹𝑥)(Hom ‘(𝐷cat 𝑅))(𝐹𝑦))))
7467, 73bibi12d 346 . . . . . . . . . 10 (𝑧 = ⟨𝑥, 𝑦⟩ → (((𝐺𝑧) ∈ (((𝐹‘(1st𝑧))(Hom ‘𝐷)(𝐹‘(2nd𝑧))) ↑m (𝐻𝑧)) ↔ (𝐺𝑧) ∈ (((𝐹‘(1st𝑧))(Hom ‘(𝐷cat 𝑅))(𝐹‘(2nd𝑧))) ↑m (𝐻𝑧))) ↔ ((𝑥𝐺𝑦):(𝑥𝐻𝑦)⟶((𝐹𝑥)(Hom ‘𝐷)(𝐹𝑦)) ↔ (𝑥𝐺𝑦):(𝑥𝐻𝑦)⟶((𝐹𝑥)(Hom ‘(𝐷cat 𝑅))(𝐹𝑦)))))
7574ralxp 5752 . . . . . . . . 9 (∀𝑧 ∈ (𝐴 × 𝐴)((𝐺𝑧) ∈ (((𝐹‘(1st𝑧))(Hom ‘𝐷)(𝐹‘(2nd𝑧))) ↑m (𝐻𝑧)) ↔ (𝐺𝑧) ∈ (((𝐹‘(1st𝑧))(Hom ‘(𝐷cat 𝑅))(𝐹‘(2nd𝑧))) ↑m (𝐻𝑧))) ↔ ∀𝑥𝐴𝑦𝐴 ((𝑥𝐺𝑦):(𝑥𝐻𝑦)⟶((𝐹𝑥)(Hom ‘𝐷)(𝐹𝑦)) ↔ (𝑥𝐺𝑦):(𝑥𝐻𝑦)⟶((𝐹𝑥)(Hom ‘(𝐷cat 𝑅))(𝐹𝑦))))
7648, 75sylibr 233 . . . . . . . 8 ((𝜑𝐶 ∈ Cat) → ∀𝑧 ∈ (𝐴 × 𝐴)((𝐺𝑧) ∈ (((𝐹‘(1st𝑧))(Hom ‘𝐷)(𝐹‘(2nd𝑧))) ↑m (𝐻𝑧)) ↔ (𝐺𝑧) ∈ (((𝐹‘(1st𝑧))(Hom ‘(𝐷cat 𝑅))(𝐹‘(2nd𝑧))) ↑m (𝐻𝑧))))
77 ralbi 3089 . . . . . . . 8 (∀𝑧 ∈ (𝐴 × 𝐴)((𝐺𝑧) ∈ (((𝐹‘(1st𝑧))(Hom ‘𝐷)(𝐹‘(2nd𝑧))) ↑m (𝐻𝑧)) ↔ (𝐺𝑧) ∈ (((𝐹‘(1st𝑧))(Hom ‘(𝐷cat 𝑅))(𝐹‘(2nd𝑧))) ↑m (𝐻𝑧))) → (∀𝑧 ∈ (𝐴 × 𝐴)(𝐺𝑧) ∈ (((𝐹‘(1st𝑧))(Hom ‘𝐷)(𝐹‘(2nd𝑧))) ↑m (𝐻𝑧)) ↔ ∀𝑧 ∈ (𝐴 × 𝐴)(𝐺𝑧) ∈ (((𝐹‘(1st𝑧))(Hom ‘(𝐷cat 𝑅))(𝐹‘(2nd𝑧))) ↑m (𝐻𝑧))))
7876, 77syl 17 . . . . . . 7 ((𝜑𝐶 ∈ Cat) → (∀𝑧 ∈ (𝐴 × 𝐴)(𝐺𝑧) ∈ (((𝐹‘(1st𝑧))(Hom ‘𝐷)(𝐹‘(2nd𝑧))) ↑m (𝐻𝑧)) ↔ ∀𝑧 ∈ (𝐴 × 𝐴)(𝐺𝑧) ∈ (((𝐹‘(1st𝑧))(Hom ‘(𝐷cat 𝑅))(𝐹‘(2nd𝑧))) ↑m (𝐻𝑧))))
79783anbi3d 1441 . . . . . 6 ((𝜑𝐶 ∈ Cat) → ((𝐺 ∈ V ∧ 𝐺 Fn (𝐴 × 𝐴) ∧ ∀𝑧 ∈ (𝐴 × 𝐴)(𝐺𝑧) ∈ (((𝐹‘(1st𝑧))(Hom ‘𝐷)(𝐹‘(2nd𝑧))) ↑m (𝐻𝑧))) ↔ (𝐺 ∈ V ∧ 𝐺 Fn (𝐴 × 𝐴) ∧ ∀𝑧 ∈ (𝐴 × 𝐴)(𝐺𝑧) ∈ (((𝐹‘(1st𝑧))(Hom ‘(𝐷cat 𝑅))(𝐹‘(2nd𝑧))) ↑m (𝐻𝑧)))))
80 elixp2 8687 . . . . . 6 (𝐺X𝑧 ∈ (𝐴 × 𝐴)(((𝐹‘(1st𝑧))(Hom ‘𝐷)(𝐹‘(2nd𝑧))) ↑m (𝐻𝑧)) ↔ (𝐺 ∈ V ∧ 𝐺 Fn (𝐴 × 𝐴) ∧ ∀𝑧 ∈ (𝐴 × 𝐴)(𝐺𝑧) ∈ (((𝐹‘(1st𝑧))(Hom ‘𝐷)(𝐹‘(2nd𝑧))) ↑m (𝐻𝑧))))
81 elixp2 8687 . . . . . 6 (𝐺X𝑧 ∈ (𝐴 × 𝐴)(((𝐹‘(1st𝑧))(Hom ‘(𝐷cat 𝑅))(𝐹‘(2nd𝑧))) ↑m (𝐻𝑧)) ↔ (𝐺 ∈ V ∧ 𝐺 Fn (𝐴 × 𝐴) ∧ ∀𝑧 ∈ (𝐴 × 𝐴)(𝐺𝑧) ∈ (((𝐹‘(1st𝑧))(Hom ‘(𝐷cat 𝑅))(𝐹‘(2nd𝑧))) ↑m (𝐻𝑧))))
8279, 80, 813bitr4g 314 . . . . 5 ((𝜑𝐶 ∈ Cat) → (𝐺X𝑧 ∈ (𝐴 × 𝐴)(((𝐹‘(1st𝑧))(Hom ‘𝐷)(𝐹‘(2nd𝑧))) ↑m (𝐻𝑧)) ↔ 𝐺X𝑧 ∈ (𝐴 × 𝐴)(((𝐹‘(1st𝑧))(Hom ‘(𝐷cat 𝑅))(𝐹‘(2nd𝑧))) ↑m (𝐻𝑧))))
8312ad2antrr 723 . . . . . . . . 9 (((𝜑𝐶 ∈ Cat) ∧ 𝑥𝐴) → 𝑅 ∈ (Subcat‘𝐷))
8413ad2antrr 723 . . . . . . . . 9 (((𝜑𝐶 ∈ Cat) ∧ 𝑥𝐴) → 𝑅 Fn (𝑆 × 𝑆))
85 eqid 2738 . . . . . . . . 9 (Id‘𝐷) = (Id‘𝐷)
8611adantr 481 . . . . . . . . . 10 ((𝜑𝐶 ∈ Cat) → 𝐹:𝐴𝑆)
8786ffvelrnda 6963 . . . . . . . . 9 (((𝜑𝐶 ∈ Cat) ∧ 𝑥𝐴) → (𝐹𝑥) ∈ 𝑆)
8817, 83, 84, 85, 87subcid 17560 . . . . . . . 8 (((𝜑𝐶 ∈ Cat) ∧ 𝑥𝐴) → ((Id‘𝐷)‘(𝐹𝑥)) = ((Id‘(𝐷cat 𝑅))‘(𝐹𝑥)))
8988eqeq2d 2749 . . . . . . 7 (((𝜑𝐶 ∈ Cat) ∧ 𝑥𝐴) → (((𝑥𝐺𝑥)‘((Id‘𝐶)‘𝑥)) = ((Id‘𝐷)‘(𝐹𝑥)) ↔ ((𝑥𝐺𝑥)‘((Id‘𝐶)‘𝑥)) = ((Id‘(𝐷cat 𝑅))‘(𝐹𝑥))))
90 eqid 2738 . . . . . . . . . . . . . 14 (comp‘𝐷) = (comp‘𝐷)
9117, 14, 19, 13, 15, 90rescco 17543 . . . . . . . . . . . . 13 (𝜑 → (comp‘𝐷) = (comp‘(𝐷cat 𝑅)))
9291ad2antrr 723 . . . . . . . . . . . 12 (((𝜑𝐶 ∈ Cat) ∧ 𝑥𝐴) → (comp‘𝐷) = (comp‘(𝐷cat 𝑅)))
9392oveqd 7294 . . . . . . . . . . 11 (((𝜑𝐶 ∈ Cat) ∧ 𝑥𝐴) → (⟨(𝐹𝑥), (𝐹𝑦)⟩(comp‘𝐷)(𝐹𝑧)) = (⟨(𝐹𝑥), (𝐹𝑦)⟩(comp‘(𝐷cat 𝑅))(𝐹𝑧)))
9493oveqd 7294 . . . . . . . . . 10 (((𝜑𝐶 ∈ Cat) ∧ 𝑥𝐴) → (((𝑦𝐺𝑧)‘𝑔)(⟨(𝐹𝑥), (𝐹𝑦)⟩(comp‘𝐷)(𝐹𝑧))((𝑥𝐺𝑦)‘𝑓)) = (((𝑦𝐺𝑧)‘𝑔)(⟨(𝐹𝑥), (𝐹𝑦)⟩(comp‘(𝐷cat 𝑅))(𝐹𝑧))((𝑥𝐺𝑦)‘𝑓)))
9594eqeq2d 2749 . . . . . . . . 9 (((𝜑𝐶 ∈ Cat) ∧ 𝑥𝐴) → (((𝑥𝐺𝑧)‘(𝑔(⟨𝑥, 𝑦⟩(comp‘𝐶)𝑧)𝑓)) = (((𝑦𝐺𝑧)‘𝑔)(⟨(𝐹𝑥), (𝐹𝑦)⟩(comp‘𝐷)(𝐹𝑧))((𝑥𝐺𝑦)‘𝑓)) ↔ ((𝑥𝐺𝑧)‘(𝑔(⟨𝑥, 𝑦⟩(comp‘𝐶)𝑧)𝑓)) = (((𝑦𝐺𝑧)‘𝑔)(⟨(𝐹𝑥), (𝐹𝑦)⟩(comp‘(𝐷cat 𝑅))(𝐹𝑧))((𝑥𝐺𝑦)‘𝑓))))
96952ralbidv 3120 . . . . . . . 8 (((𝜑𝐶 ∈ Cat) ∧ 𝑥𝐴) → (∀𝑓 ∈ (𝑥𝐻𝑦)∀𝑔 ∈ (𝑦𝐻𝑧)((𝑥𝐺𝑧)‘(𝑔(⟨𝑥, 𝑦⟩(comp‘𝐶)𝑧)𝑓)) = (((𝑦𝐺𝑧)‘𝑔)(⟨(𝐹𝑥), (𝐹𝑦)⟩(comp‘𝐷)(𝐹𝑧))((𝑥𝐺𝑦)‘𝑓)) ↔ ∀𝑓 ∈ (𝑥𝐻𝑦)∀𝑔 ∈ (𝑦𝐻𝑧)((𝑥𝐺𝑧)‘(𝑔(⟨𝑥, 𝑦⟩(comp‘𝐶)𝑧)𝑓)) = (((𝑦𝐺𝑧)‘𝑔)(⟨(𝐹𝑥), (𝐹𝑦)⟩(comp‘(𝐷cat 𝑅))(𝐹𝑧))((𝑥𝐺𝑦)‘𝑓))))
97962ralbidv 3120 . . . . . . 7 (((𝜑𝐶 ∈ Cat) ∧ 𝑥𝐴) → (∀𝑦𝐴𝑧𝐴𝑓 ∈ (𝑥𝐻𝑦)∀𝑔 ∈ (𝑦𝐻𝑧)((𝑥𝐺𝑧)‘(𝑔(⟨𝑥, 𝑦⟩(comp‘𝐶)𝑧)𝑓)) = (((𝑦𝐺𝑧)‘𝑔)(⟨(𝐹𝑥), (𝐹𝑦)⟩(comp‘𝐷)(𝐹𝑧))((𝑥𝐺𝑦)‘𝑓)) ↔ ∀𝑦𝐴𝑧𝐴𝑓 ∈ (𝑥𝐻𝑦)∀𝑔 ∈ (𝑦𝐻𝑧)((𝑥𝐺𝑧)‘(𝑔(⟨𝑥, 𝑦⟩(comp‘𝐶)𝑧)𝑓)) = (((𝑦𝐺𝑧)‘𝑔)(⟨(𝐹𝑥), (𝐹𝑦)⟩(comp‘(𝐷cat 𝑅))(𝐹𝑧))((𝑥𝐺𝑦)‘𝑓))))
9889, 97anbi12d 631 . . . . . 6 (((𝜑𝐶 ∈ Cat) ∧ 𝑥𝐴) → ((((𝑥𝐺𝑥)‘((Id‘𝐶)‘𝑥)) = ((Id‘𝐷)‘(𝐹𝑥)) ∧ ∀𝑦𝐴𝑧𝐴𝑓 ∈ (𝑥𝐻𝑦)∀𝑔 ∈ (𝑦𝐻𝑧)((𝑥𝐺𝑧)‘(𝑔(⟨𝑥, 𝑦⟩(comp‘𝐶)𝑧)𝑓)) = (((𝑦𝐺𝑧)‘𝑔)(⟨(𝐹𝑥), (𝐹𝑦)⟩(comp‘𝐷)(𝐹𝑧))((𝑥𝐺𝑦)‘𝑓))) ↔ (((𝑥𝐺𝑥)‘((Id‘𝐶)‘𝑥)) = ((Id‘(𝐷cat 𝑅))‘(𝐹𝑥)) ∧ ∀𝑦𝐴𝑧𝐴𝑓 ∈ (𝑥𝐻𝑦)∀𝑔 ∈ (𝑦𝐻𝑧)((𝑥𝐺𝑧)‘(𝑔(⟨𝑥, 𝑦⟩(comp‘𝐶)𝑧)𝑓)) = (((𝑦𝐺𝑧)‘𝑔)(⟨(𝐹𝑥), (𝐹𝑦)⟩(comp‘(𝐷cat 𝑅))(𝐹𝑧))((𝑥𝐺𝑦)‘𝑓)))))
9998ralbidva 3117 . . . . 5 ((𝜑𝐶 ∈ Cat) → (∀𝑥𝐴 (((𝑥𝐺𝑥)‘((Id‘𝐶)‘𝑥)) = ((Id‘𝐷)‘(𝐹𝑥)) ∧ ∀𝑦𝐴𝑧𝐴𝑓 ∈ (𝑥𝐻𝑦)∀𝑔 ∈ (𝑦𝐻𝑧)((𝑥𝐺𝑧)‘(𝑔(⟨𝑥, 𝑦⟩(comp‘𝐶)𝑧)𝑓)) = (((𝑦𝐺𝑧)‘𝑔)(⟨(𝐹𝑥), (𝐹𝑦)⟩(comp‘𝐷)(𝐹𝑧))((𝑥𝐺𝑦)‘𝑓))) ↔ ∀𝑥𝐴 (((𝑥𝐺𝑥)‘((Id‘𝐶)‘𝑥)) = ((Id‘(𝐷cat 𝑅))‘(𝐹𝑥)) ∧ ∀𝑦𝐴𝑧𝐴𝑓 ∈ (𝑥𝐻𝑦)∀𝑔 ∈ (𝑦𝐻𝑧)((𝑥𝐺𝑧)‘(𝑔(⟨𝑥, 𝑦⟩(comp‘𝐶)𝑧)𝑓)) = (((𝑦𝐺𝑧)‘𝑔)(⟨(𝐹𝑥), (𝐹𝑦)⟩(comp‘(𝐷cat 𝑅))(𝐹𝑧))((𝑥𝐺𝑦)‘𝑓)))))
10024, 82, 993anbi123d 1435 . . . 4 ((𝜑𝐶 ∈ Cat) → ((𝐹:𝐴⟶(Base‘𝐷) ∧ 𝐺X𝑧 ∈ (𝐴 × 𝐴)(((𝐹‘(1st𝑧))(Hom ‘𝐷)(𝐹‘(2nd𝑧))) ↑m (𝐻𝑧)) ∧ ∀𝑥𝐴 (((𝑥𝐺𝑥)‘((Id‘𝐶)‘𝑥)) = ((Id‘𝐷)‘(𝐹𝑥)) ∧ ∀𝑦𝐴𝑧𝐴𝑓 ∈ (𝑥𝐻𝑦)∀𝑔 ∈ (𝑦𝐻𝑧)((𝑥𝐺𝑧)‘(𝑔(⟨𝑥, 𝑦⟩(comp‘𝐶)𝑧)𝑓)) = (((𝑦𝐺𝑧)‘𝑔)(⟨(𝐹𝑥), (𝐹𝑦)⟩(comp‘𝐷)(𝐹𝑧))((𝑥𝐺𝑦)‘𝑓)))) ↔ (𝐹:𝐴⟶(Base‘(𝐷cat 𝑅)) ∧ 𝐺X𝑧 ∈ (𝐴 × 𝐴)(((𝐹‘(1st𝑧))(Hom ‘(𝐷cat 𝑅))(𝐹‘(2nd𝑧))) ↑m (𝐻𝑧)) ∧ ∀𝑥𝐴 (((𝑥𝐺𝑥)‘((Id‘𝐶)‘𝑥)) = ((Id‘(𝐷cat 𝑅))‘(𝐹𝑥)) ∧ ∀𝑦𝐴𝑧𝐴𝑓 ∈ (𝑥𝐻𝑦)∀𝑔 ∈ (𝑦𝐻𝑧)((𝑥𝐺𝑧)‘(𝑔(⟨𝑥, 𝑦⟩(comp‘𝐶)𝑧)𝑓)) = (((𝑦𝐺𝑧)‘𝑔)(⟨(𝐹𝑥), (𝐹𝑦)⟩(comp‘(𝐷cat 𝑅))(𝐹𝑧))((𝑥𝐺𝑦)‘𝑓))))))
101 funcres2b.a . . . . 5 𝐴 = (Base‘𝐶)
102 funcres2b.h . . . . 5 𝐻 = (Hom ‘𝐶)
103 eqid 2738 . . . . 5 (Id‘𝐶) = (Id‘𝐶)
104 eqid 2738 . . . . 5 (comp‘𝐶) = (comp‘𝐶)
105 simpr 485 . . . . 5 ((𝜑𝐶 ∈ Cat) → 𝐶 ∈ Cat)
10619adantr 481 . . . . 5 ((𝜑𝐶 ∈ Cat) → 𝐷 ∈ Cat)
107101, 14, 102, 30, 103, 85, 104, 90, 105, 106isfunc 17577 . . . 4 ((𝜑𝐶 ∈ Cat) → (𝐹(𝐶 Func 𝐷)𝐺 ↔ (𝐹:𝐴⟶(Base‘𝐷) ∧ 𝐺X𝑧 ∈ (𝐴 × 𝐴)(((𝐹‘(1st𝑧))(Hom ‘𝐷)(𝐹‘(2nd𝑧))) ↑m (𝐻𝑧)) ∧ ∀𝑥𝐴 (((𝑥𝐺𝑥)‘((Id‘𝐶)‘𝑥)) = ((Id‘𝐷)‘(𝐹𝑥)) ∧ ∀𝑦𝐴𝑧𝐴𝑓 ∈ (𝑥𝐻𝑦)∀𝑔 ∈ (𝑦𝐻𝑧)((𝑥𝐺𝑧)‘(𝑔(⟨𝑥, 𝑦⟩(comp‘𝐶)𝑧)𝑓)) = (((𝑦𝐺𝑧)‘𝑔)(⟨(𝐹𝑥), (𝐹𝑦)⟩(comp‘𝐷)(𝐹𝑧))((𝑥𝐺𝑦)‘𝑓))))))
108 eqid 2738 . . . . 5 (Base‘(𝐷cat 𝑅)) = (Base‘(𝐷cat 𝑅))
109 eqid 2738 . . . . 5 (Hom ‘(𝐷cat 𝑅)) = (Hom ‘(𝐷cat 𝑅))
110 eqid 2738 . . . . 5 (Id‘(𝐷cat 𝑅)) = (Id‘(𝐷cat 𝑅))
111 eqid 2738 . . . . 5 (comp‘(𝐷cat 𝑅)) = (comp‘(𝐷cat 𝑅))
11217, 12subccat 17561 . . . . . 6 (𝜑 → (𝐷cat 𝑅) ∈ Cat)
113112adantr 481 . . . . 5 ((𝜑𝐶 ∈ Cat) → (𝐷cat 𝑅) ∈ Cat)
114101, 108, 102, 109, 103, 110, 104, 111, 105, 113isfunc 17577 . . . 4 ((𝜑𝐶 ∈ Cat) → (𝐹(𝐶 Func (𝐷cat 𝑅))𝐺 ↔ (𝐹:𝐴⟶(Base‘(𝐷cat 𝑅)) ∧ 𝐺X𝑧 ∈ (𝐴 × 𝐴)(((𝐹‘(1st𝑧))(Hom ‘(𝐷cat 𝑅))(𝐹‘(2nd𝑧))) ↑m (𝐻𝑧)) ∧ ∀𝑥𝐴 (((𝑥𝐺𝑥)‘((Id‘𝐶)‘𝑥)) = ((Id‘(𝐷cat 𝑅))‘(𝐹𝑥)) ∧ ∀𝑦𝐴𝑧𝐴𝑓 ∈ (𝑥𝐻𝑦)∀𝑔 ∈ (𝑦𝐻𝑧)((𝑥𝐺𝑧)‘(𝑔(⟨𝑥, 𝑦⟩(comp‘𝐶)𝑧)𝑓)) = (((𝑦𝐺𝑧)‘𝑔)(⟨(𝐹𝑥), (𝐹𝑦)⟩(comp‘(𝐷cat 𝑅))(𝐹𝑧))((𝑥𝐺𝑦)‘𝑓))))))
115100, 107, 1143bitr4d 311 . . 3 ((𝜑𝐶 ∈ Cat) → (𝐹(𝐶 Func 𝐷)𝐺𝐹(𝐶 Func (𝐷cat 𝑅))𝐺))
116115ex 413 . 2 (𝜑 → (𝐶 ∈ Cat → (𝐹(𝐶 Func 𝐷)𝐺𝐹(𝐶 Func (𝐷cat 𝑅))𝐺)))
1175, 10, 116pm5.21ndd 381 1 (𝜑 → (𝐹(𝐶 Func 𝐷)𝐺𝐹(𝐶 Func (𝐷cat 𝑅))𝐺))
Colors of variables: wff setvar class
Syntax hints:  wi 4  wb 205  wa 396  w3a 1086   = wceq 1539  wcel 2106  wral 3064  Vcvv 3431  wss 3888  cop 4569   class class class wbr 5076   × cxp 5589  ran crn 5592   Fn wfn 6430  wf 6431  cfv 6435  (class class class)co 7277  1st c1st 7829  2nd c2nd 7830  m cmap 8613  Xcixp 8683  Basecbs 16910  Hom chom 16971  compcco 16972  Catccat 17371  Idccid 17372  cat cresc 17518  Subcatcsubc 17519   Func cfunc 17567
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1798  ax-4 1812  ax-5 1913  ax-6 1971  ax-7 2011  ax-8 2108  ax-9 2116  ax-10 2137  ax-11 2154  ax-12 2171  ax-ext 2709  ax-rep 5211  ax-sep 5225  ax-nul 5232  ax-pow 5290  ax-pr 5354  ax-un 7588  ax-cnex 10925  ax-resscn 10926  ax-1cn 10927  ax-icn 10928  ax-addcl 10929  ax-addrcl 10930  ax-mulcl 10931  ax-mulrcl 10932  ax-mulcom 10933  ax-addass 10934  ax-mulass 10935  ax-distr 10936  ax-i2m1 10937  ax-1ne0 10938  ax-1rid 10939  ax-rnegex 10940  ax-rrecex 10941  ax-cnre 10942  ax-pre-lttri 10943  ax-pre-lttrn 10944  ax-pre-ltadd 10945  ax-pre-mulgt0 10946
This theorem depends on definitions:  df-bi 206  df-an 397  df-or 845  df-3or 1087  df-3an 1088  df-tru 1542  df-fal 1552  df-ex 1783  df-nf 1787  df-sb 2068  df-mo 2540  df-eu 2569  df-clab 2716  df-cleq 2730  df-clel 2816  df-nfc 2889  df-ne 2944  df-nel 3050  df-ral 3069  df-rex 3070  df-rmo 3071  df-reu 3072  df-rab 3073  df-v 3433  df-sbc 3718  df-csb 3834  df-dif 3891  df-un 3893  df-in 3895  df-ss 3905  df-pss 3907  df-nul 4259  df-if 4462  df-pw 4537  df-sn 4564  df-pr 4566  df-op 4570  df-uni 4842  df-iun 4928  df-br 5077  df-opab 5139  df-mpt 5160  df-tr 5194  df-id 5491  df-eprel 5497  df-po 5505  df-so 5506  df-fr 5546  df-we 5548  df-xp 5597  df-rel 5598  df-cnv 5599  df-co 5600  df-dm 5601  df-rn 5602  df-res 5603  df-ima 5604  df-pred 6204  df-ord 6271  df-on 6272  df-lim 6273  df-suc 6274  df-iota 6393  df-fun 6437  df-fn 6438  df-f 6439  df-f1 6440  df-fo 6441  df-f1o 6442  df-fv 6443  df-riota 7234  df-ov 7280  df-oprab 7281  df-mpo 7282  df-om 7713  df-1st 7831  df-2nd 7832  df-frecs 8095  df-wrecs 8126  df-recs 8200  df-rdg 8239  df-er 8496  df-map 8615  df-pm 8616  df-ixp 8684  df-en 8732  df-dom 8733  df-sdom 8734  df-pnf 11009  df-mnf 11010  df-xr 11011  df-ltxr 11012  df-le 11013  df-sub 11205  df-neg 11206  df-nn 11972  df-2 12034  df-3 12035  df-4 12036  df-5 12037  df-6 12038  df-7 12039  df-8 12040  df-9 12041  df-n0 12232  df-z 12318  df-dec 12436  df-sets 16863  df-slot 16881  df-ndx 16893  df-base 16911  df-ress 16940  df-hom 16984  df-cco 16985  df-cat 17375  df-cid 17376  df-homf 17377  df-ssc 17520  df-resc 17521  df-subc 17522  df-func 17571
This theorem is referenced by:  funcres2  17611  funcres2c  17615  fthres2b  17644
  Copyright terms: Public domain W3C validator