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

Theorem funcres2b 17612
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 5075 . . . . 5 (𝐹(𝐶 Func 𝐷)𝐺 ↔ ⟨𝐹, 𝐺⟩ ∈ (𝐶 Func 𝐷))
2 funcrcl 17578 . . . . 5 (⟨𝐹, 𝐺⟩ ∈ (𝐶 Func 𝐷) → (𝐶 ∈ Cat ∧ 𝐷 ∈ Cat))
31, 2sylbi 216 . . . 4 (𝐹(𝐶 Func 𝐷)𝐺 → (𝐶 ∈ Cat ∧ 𝐷 ∈ Cat))
43simpld 495 . . 3 (𝐹(𝐶 Func 𝐷)𝐺𝐶 ∈ Cat)
54a1i 11 . 2 (𝜑 → (𝐹(𝐶 Func 𝐷)𝐺𝐶 ∈ Cat))
6 df-br 5075 . . . . 5 (𝐹(𝐶 Func (𝐷cat 𝑅))𝐺 ↔ ⟨𝐹, 𝐺⟩ ∈ (𝐶 Func (𝐷cat 𝑅)))
7 funcrcl 17578 . . . . 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 17557 . . . . . . . 8 (𝜑𝑆 ⊆ (Base‘𝐷))
1611, 15fssd 6618 . . . . . . 7 (𝜑𝐹:𝐴⟶(Base‘𝐷))
17 eqid 2738 . . . . . . . . . 10 (𝐷cat 𝑅) = (𝐷cat 𝑅)
18 subcrcl 17528 . . . . . . . . . . 11 (𝑅 ∈ (Subcat‘𝐷) → 𝐷 ∈ Cat)
1912, 18syl 17 . . . . . . . . . 10 (𝜑𝐷 ∈ Cat)
2017, 14, 19, 13, 15rescbas 17541 . . . . . . . . 9 (𝜑𝑆 = (Base‘(𝐷cat 𝑅)))
2120feq3d 6587 . . . . . . . 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 6608 . . . . . . . . . . . . . . 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 6962 . . . . . . . . . . . . . . . 16 (((𝜑𝐶 ∈ Cat) ∧ (𝑥𝐴𝑦𝐴)) → (𝐹𝑥) ∈ 𝑆)
34 simprr 770 . . . . . . . . . . . . . . . . 17 (((𝜑𝐶 ∈ Cat) ∧ (𝑥𝐴𝑦𝐴)) → 𝑦𝐴)
3531, 34ffvelrnd 6962 . . . . . . . . . . . . . . . 16 (((𝜑𝐶 ∈ Cat) ∧ (𝑥𝐴𝑦𝐴)) → (𝐹𝑦) ∈ 𝑆)
3628, 29, 30, 33, 35subcss2 17558 . . . . . . . . . . . . . . 15 (((𝜑𝐶 ∈ Cat) ∧ (𝑥𝐴𝑦𝐴)) → ((𝐹𝑥)𝑅(𝐹𝑦)) ⊆ ((𝐹𝑥)(Hom ‘𝐷)(𝐹𝑦)))
3727, 36sstrd 3931 . . . . . . . . . . . . . 14 (((𝜑𝐶 ∈ Cat) ∧ (𝑥𝐴𝑦𝐴)) → ran (𝑥𝐺𝑦) ⊆ ((𝐹𝑥)(Hom ‘𝐷)(𝐹𝑦)))
3837, 272thd 264 . . . . . . . . . . . . 13 (((𝜑𝐶 ∈ Cat) ∧ (𝑥𝐴𝑦𝐴)) → (ran (𝑥𝐺𝑦) ⊆ ((𝐹𝑥)(Hom ‘𝐷)(𝐹𝑦)) ↔ ran (𝑥𝐺𝑦) ⊆ ((𝐹𝑥)𝑅(𝐹𝑦))))
3938anbi2d 629 . . . . . . . . . . . 12 (((𝜑𝐶 ∈ Cat) ∧ (𝑥𝐴𝑦𝐴)) → (((𝑥𝐺𝑦) Fn (𝑥𝐻𝑦) ∧ ran (𝑥𝐺𝑦) ⊆ ((𝐹𝑥)(Hom ‘𝐷)(𝐹𝑦))) ↔ ((𝑥𝐺𝑦) Fn (𝑥𝐻𝑦) ∧ ran (𝑥𝐺𝑦) ⊆ ((𝐹𝑥)𝑅(𝐹𝑦)))))
40 df-f 6437 . . . . . . . . . . . 12 ((𝑥𝐺𝑦):(𝑥𝐻𝑦)⟶((𝐹𝑥)(Hom ‘𝐷)(𝐹𝑦)) ↔ ((𝑥𝐺𝑦) Fn (𝑥𝐻𝑦) ∧ ran (𝑥𝐺𝑦) ⊆ ((𝐹𝑥)(Hom ‘𝐷)(𝐹𝑦))))
41 df-f 6437 . . . . . . . . . . . 12 ((𝑥𝐺𝑦):(𝑥𝐻𝑦)⟶((𝐹𝑥)𝑅(𝐹𝑦)) ↔ ((𝑥𝐺𝑦) Fn (𝑥𝐻𝑦) ∧ ran (𝑥𝐺𝑦) ⊆ ((𝐹𝑥)𝑅(𝐹𝑦))))
4239, 40, 413bitr4g 314 . . . . . . . . . . 11 (((𝜑𝐶 ∈ Cat) ∧ (𝑥𝐴𝑦𝐴)) → ((𝑥𝐺𝑦):(𝑥𝐻𝑦)⟶((𝐹𝑥)(Hom ‘𝐷)(𝐹𝑦)) ↔ (𝑥𝐺𝑦):(𝑥𝐻𝑦)⟶((𝐹𝑥)𝑅(𝐹𝑦))))
4317, 14, 19, 13, 15reschom 17543 . . . . . . . . . . . . . 14 (𝜑𝑅 = (Hom ‘(𝐷cat 𝑅)))
4443ad2antrr 723 . . . . . . . . . . . . 13 (((𝜑𝐶 ∈ Cat) ∧ (𝑥𝐴𝑦𝐴)) → 𝑅 = (Hom ‘(𝐷cat 𝑅)))
4544oveqd 7292 . . . . . . . . . . . 12 (((𝜑𝐶 ∈ Cat) ∧ (𝑥𝐴𝑦𝐴)) → ((𝐹𝑥)𝑅(𝐹𝑦)) = ((𝐹𝑥)(Hom ‘(𝐷cat 𝑅))(𝐹𝑦)))
4645feq3d 6587 . . . . . . . . . . 11 (((𝜑𝐶 ∈ Cat) ∧ (𝑥𝐴𝑦𝐴)) → ((𝑥𝐺𝑦):(𝑥𝐻𝑦)⟶((𝐹𝑥)𝑅(𝐹𝑦)) ↔ (𝑥𝐺𝑦):(𝑥𝐻𝑦)⟶((𝐹𝑥)(Hom ‘(𝐷cat 𝑅))(𝐹𝑦))))
4742, 46bitrd 278 . . . . . . . . . 10 (((𝜑𝐶 ∈ Cat) ∧ (𝑥𝐴𝑦𝐴)) → ((𝑥𝐺𝑦):(𝑥𝐻𝑦)⟶((𝐹𝑥)(Hom ‘𝐷)(𝐹𝑦)) ↔ (𝑥𝐺𝑦):(𝑥𝐻𝑦)⟶((𝐹𝑥)(Hom ‘(𝐷cat 𝑅))(𝐹𝑦))))
4847ralrimivva 3123 . . . . . . . . 9 ((𝜑𝐶 ∈ Cat) → ∀𝑥𝐴𝑦𝐴 ((𝑥𝐺𝑦):(𝑥𝐻𝑦)⟶((𝐹𝑥)(Hom ‘𝐷)(𝐹𝑦)) ↔ (𝑥𝐺𝑦):(𝑥𝐻𝑦)⟶((𝐹𝑥)(Hom ‘(𝐷cat 𝑅))(𝐹𝑦))))
49 fveq2 6774 . . . . . . . . . . . . . 14 (𝑧 = ⟨𝑥, 𝑦⟩ → (𝐺𝑧) = (𝐺‘⟨𝑥, 𝑦⟩))
50 df-ov 7278 . . . . . . . . . . . . . 14 (𝑥𝐺𝑦) = (𝐺‘⟨𝑥, 𝑦⟩)
5149, 50eqtr4di 2796 . . . . . . . . . . . . 13 (𝑧 = ⟨𝑥, 𝑦⟩ → (𝐺𝑧) = (𝑥𝐺𝑦))
52 vex 3436 . . . . . . . . . . . . . . . . 17 𝑥 ∈ V
53 vex 3436 . . . . . . . . . . . . . . . . 17 𝑦 ∈ V
5452, 53op1std 7841 . . . . . . . . . . . . . . . 16 (𝑧 = ⟨𝑥, 𝑦⟩ → (1st𝑧) = 𝑥)
5554fveq2d 6778 . . . . . . . . . . . . . . 15 (𝑧 = ⟨𝑥, 𝑦⟩ → (𝐹‘(1st𝑧)) = (𝐹𝑥))
5652, 53op2ndd 7842 . . . . . . . . . . . . . . . 16 (𝑧 = ⟨𝑥, 𝑦⟩ → (2nd𝑧) = 𝑦)
5756fveq2d 6778 . . . . . . . . . . . . . . 15 (𝑧 = ⟨𝑥, 𝑦⟩ → (𝐹‘(2nd𝑧)) = (𝐹𝑦))
5855, 57oveq12d 7293 . . . . . . . . . . . . . 14 (𝑧 = ⟨𝑥, 𝑦⟩ → ((𝐹‘(1st𝑧))(Hom ‘𝐷)(𝐹‘(2nd𝑧))) = ((𝐹𝑥)(Hom ‘𝐷)(𝐹𝑦)))
59 fveq2 6774 . . . . . . . . . . . . . . 15 (𝑧 = ⟨𝑥, 𝑦⟩ → (𝐻𝑧) = (𝐻‘⟨𝑥, 𝑦⟩))
60 df-ov 7278 . . . . . . . . . . . . . . 15 (𝑥𝐻𝑦) = (𝐻‘⟨𝑥, 𝑦⟩)
6159, 60eqtr4di 2796 . . . . . . . . . . . . . 14 (𝑧 = ⟨𝑥, 𝑦⟩ → (𝐻𝑧) = (𝑥𝐻𝑦))
6258, 61oveq12d 7293 . . . . . . . . . . . . 13 (𝑧 = ⟨𝑥, 𝑦⟩ → (((𝐹‘(1st𝑧))(Hom ‘𝐷)(𝐹‘(2nd𝑧))) ↑m (𝐻𝑧)) = (((𝐹𝑥)(Hom ‘𝐷)(𝐹𝑦)) ↑m (𝑥𝐻𝑦)))
6351, 62eleq12d 2833 . . . . . . . . . . . 12 (𝑧 = ⟨𝑥, 𝑦⟩ → ((𝐺𝑧) ∈ (((𝐹‘(1st𝑧))(Hom ‘𝐷)(𝐹‘(2nd𝑧))) ↑m (𝐻𝑧)) ↔ (𝑥𝐺𝑦) ∈ (((𝐹𝑥)(Hom ‘𝐷)(𝐹𝑦)) ↑m (𝑥𝐻𝑦))))
64 ovex 7308 . . . . . . . . . . . . 13 ((𝐹𝑥)(Hom ‘𝐷)(𝐹𝑦)) ∈ V
65 ovex 7308 . . . . . . . . . . . . 13 (𝑥𝐻𝑦) ∈ V
6664, 65elmap 8659 . . . . . . . . . . . 12 ((𝑥𝐺𝑦) ∈ (((𝐹𝑥)(Hom ‘𝐷)(𝐹𝑦)) ↑m (𝑥𝐻𝑦)) ↔ (𝑥𝐺𝑦):(𝑥𝐻𝑦)⟶((𝐹𝑥)(Hom ‘𝐷)(𝐹𝑦)))
6763, 66bitrdi 287 . . . . . . . . . . 11 (𝑧 = ⟨𝑥, 𝑦⟩ → ((𝐺𝑧) ∈ (((𝐹‘(1st𝑧))(Hom ‘𝐷)(𝐹‘(2nd𝑧))) ↑m (𝐻𝑧)) ↔ (𝑥𝐺𝑦):(𝑥𝐻𝑦)⟶((𝐹𝑥)(Hom ‘𝐷)(𝐹𝑦))))
6855, 57oveq12d 7293 . . . . . . . . . . . . . 14 (𝑧 = ⟨𝑥, 𝑦⟩ → ((𝐹‘(1st𝑧))(Hom ‘(𝐷cat 𝑅))(𝐹‘(2nd𝑧))) = ((𝐹𝑥)(Hom ‘(𝐷cat 𝑅))(𝐹𝑦)))
6968, 61oveq12d 7293 . . . . . . . . . . . . 13 (𝑧 = ⟨𝑥, 𝑦⟩ → (((𝐹‘(1st𝑧))(Hom ‘(𝐷cat 𝑅))(𝐹‘(2nd𝑧))) ↑m (𝐻𝑧)) = (((𝐹𝑥)(Hom ‘(𝐷cat 𝑅))(𝐹𝑦)) ↑m (𝑥𝐻𝑦)))
7051, 69eleq12d 2833 . . . . . . . . . . . 12 (𝑧 = ⟨𝑥, 𝑦⟩ → ((𝐺𝑧) ∈ (((𝐹‘(1st𝑧))(Hom ‘(𝐷cat 𝑅))(𝐹‘(2nd𝑧))) ↑m (𝐻𝑧)) ↔ (𝑥𝐺𝑦) ∈ (((𝐹𝑥)(Hom ‘(𝐷cat 𝑅))(𝐹𝑦)) ↑m (𝑥𝐻𝑦))))
71 ovex 7308 . . . . . . . . . . . . 13 ((𝐹𝑥)(Hom ‘(𝐷cat 𝑅))(𝐹𝑦)) ∈ V
7271, 65elmap 8659 . . . . . . . . . . . 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 5750 . . . . . . . . 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 8689 . . . . . 6 (𝐺X𝑧 ∈ (𝐴 × 𝐴)(((𝐹‘(1st𝑧))(Hom ‘𝐷)(𝐹‘(2nd𝑧))) ↑m (𝐻𝑧)) ↔ (𝐺 ∈ V ∧ 𝐺 Fn (𝐴 × 𝐴) ∧ ∀𝑧 ∈ (𝐴 × 𝐴)(𝐺𝑧) ∈ (((𝐹‘(1st𝑧))(Hom ‘𝐷)(𝐹‘(2nd𝑧))) ↑m (𝐻𝑧))))
81 elixp2 8689 . . . . . 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 6961 . . . . . . . . 9 (((𝜑𝐶 ∈ Cat) ∧ 𝑥𝐴) → (𝐹𝑥) ∈ 𝑆)
8817, 83, 84, 85, 87subcid 17562 . . . . . . . 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 17545 . . . . . . . . . . . . 13 (𝜑 → (comp‘𝐷) = (comp‘(𝐷cat 𝑅)))
9291ad2antrr 723 . . . . . . . . . . . 12 (((𝜑𝐶 ∈ Cat) ∧ 𝑥𝐴) → (comp‘𝐷) = (comp‘(𝐷cat 𝑅)))
9392oveqd 7292 . . . . . . . . . . 11 (((𝜑𝐶 ∈ Cat) ∧ 𝑥𝐴) → (⟨(𝐹𝑥), (𝐹𝑦)⟩(comp‘𝐷)(𝐹𝑧)) = (⟨(𝐹𝑥), (𝐹𝑦)⟩(comp‘(𝐷cat 𝑅))(𝐹𝑧)))
9493oveqd 7292 . . . . . . . . . 10 (((𝜑𝐶 ∈ Cat) ∧ 𝑥𝐴) → (((𝑦𝐺𝑧)‘𝑔)(⟨(𝐹𝑥), (𝐹𝑦)⟩(comp‘𝐷)(𝐹𝑧))((𝑥𝐺𝑦)‘𝑓)) = (((𝑦𝐺𝑧)‘𝑔)(⟨(𝐹𝑥), (𝐹𝑦)⟩(comp‘(𝐷cat 𝑅))(𝐹𝑧))((𝑥𝐺𝑦)‘𝑓)))
9594eqeq2d 2749 . . . . . . . . 9 (((𝜑𝐶 ∈ Cat) ∧ 𝑥𝐴) → (((𝑥𝐺𝑧)‘(𝑔(⟨𝑥, 𝑦⟩(comp‘𝐶)𝑧)𝑓)) = (((𝑦𝐺𝑧)‘𝑔)(⟨(𝐹𝑥), (𝐹𝑦)⟩(comp‘𝐷)(𝐹𝑧))((𝑥𝐺𝑦)‘𝑓)) ↔ ((𝑥𝐺𝑧)‘(𝑔(⟨𝑥, 𝑦⟩(comp‘𝐶)𝑧)𝑓)) = (((𝑦𝐺𝑧)‘𝑔)(⟨(𝐹𝑥), (𝐹𝑦)⟩(comp‘(𝐷cat 𝑅))(𝐹𝑧))((𝑥𝐺𝑦)‘𝑓))))
96952ralbidv 3129 . . . . . . . 8 (((𝜑𝐶 ∈ Cat) ∧ 𝑥𝐴) → (∀𝑓 ∈ (𝑥𝐻𝑦)∀𝑔 ∈ (𝑦𝐻𝑧)((𝑥𝐺𝑧)‘(𝑔(⟨𝑥, 𝑦⟩(comp‘𝐶)𝑧)𝑓)) = (((𝑦𝐺𝑧)‘𝑔)(⟨(𝐹𝑥), (𝐹𝑦)⟩(comp‘𝐷)(𝐹𝑧))((𝑥𝐺𝑦)‘𝑓)) ↔ ∀𝑓 ∈ (𝑥𝐻𝑦)∀𝑔 ∈ (𝑦𝐻𝑧)((𝑥𝐺𝑧)‘(𝑔(⟨𝑥, 𝑦⟩(comp‘𝐶)𝑧)𝑓)) = (((𝑦𝐺𝑧)‘𝑔)(⟨(𝐹𝑥), (𝐹𝑦)⟩(comp‘(𝐷cat 𝑅))(𝐹𝑧))((𝑥𝐺𝑦)‘𝑓))))
97962ralbidv 3129 . . . . . . 7 (((𝜑𝐶 ∈ Cat) ∧ 𝑥𝐴) → (∀𝑦𝐴𝑧𝐴𝑓 ∈ (𝑥𝐻𝑦)∀𝑔 ∈ (𝑦𝐻𝑧)((𝑥𝐺𝑧)‘(𝑔(⟨𝑥, 𝑦⟩(comp‘𝐶)𝑧)𝑓)) = (((𝑦𝐺𝑧)‘𝑔)(⟨(𝐹𝑥), (𝐹𝑦)⟩(comp‘𝐷)(𝐹𝑧))((𝑥𝐺𝑦)‘𝑓)) ↔ ∀𝑦𝐴𝑧𝐴𝑓 ∈ (𝑥𝐻𝑦)∀𝑔 ∈ (𝑦𝐻𝑧)((𝑥𝐺𝑧)‘(𝑔(⟨𝑥, 𝑦⟩(comp‘𝐶)𝑧)𝑓)) = (((𝑦𝐺𝑧)‘𝑔)(⟨(𝐹𝑥), (𝐹𝑦)⟩(comp‘(𝐷cat 𝑅))(𝐹𝑧))((𝑥𝐺𝑦)‘𝑓))))
9889, 97anbi12d 631 . . . . . 6 (((𝜑𝐶 ∈ Cat) ∧ 𝑥𝐴) → ((((𝑥𝐺𝑥)‘((Id‘𝐶)‘𝑥)) = ((Id‘𝐷)‘(𝐹𝑥)) ∧ ∀𝑦𝐴𝑧𝐴𝑓 ∈ (𝑥𝐻𝑦)∀𝑔 ∈ (𝑦𝐻𝑧)((𝑥𝐺𝑧)‘(𝑔(⟨𝑥, 𝑦⟩(comp‘𝐶)𝑧)𝑓)) = (((𝑦𝐺𝑧)‘𝑔)(⟨(𝐹𝑥), (𝐹𝑦)⟩(comp‘𝐷)(𝐹𝑧))((𝑥𝐺𝑦)‘𝑓))) ↔ (((𝑥𝐺𝑥)‘((Id‘𝐶)‘𝑥)) = ((Id‘(𝐷cat 𝑅))‘(𝐹𝑥)) ∧ ∀𝑦𝐴𝑧𝐴𝑓 ∈ (𝑥𝐻𝑦)∀𝑔 ∈ (𝑦𝐻𝑧)((𝑥𝐺𝑧)‘(𝑔(⟨𝑥, 𝑦⟩(comp‘𝐶)𝑧)𝑓)) = (((𝑦𝐺𝑧)‘𝑔)(⟨(𝐹𝑥), (𝐹𝑦)⟩(comp‘(𝐷cat 𝑅))(𝐹𝑧))((𝑥𝐺𝑦)‘𝑓)))))
9998ralbidva 3111 . . . . 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 17579 . . . 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 17563 . . . . . 6 (𝜑 → (𝐷cat 𝑅) ∈ Cat)
113112adantr 481 . . . . 5 ((𝜑𝐶 ∈ Cat) → (𝐷cat 𝑅) ∈ Cat)
114101, 108, 102, 109, 103, 110, 104, 111, 105, 113isfunc 17579 . . . 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 3432  wss 3887  cop 4567   class class class wbr 5074   × cxp 5587  ran crn 5590   Fn wfn 6428  wf 6429  cfv 6433  (class class class)co 7275  1st c1st 7829  2nd c2nd 7830  m cmap 8615  Xcixp 8685  Basecbs 16912  Hom chom 16973  compcco 16974  Catccat 17373  Idccid 17374  cat cresc 17520  Subcatcsubc 17521   Func cfunc 17569
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 5209  ax-sep 5223  ax-nul 5230  ax-pow 5288  ax-pr 5352  ax-un 7588  ax-cnex 10927  ax-resscn 10928  ax-1cn 10929  ax-icn 10930  ax-addcl 10931  ax-addrcl 10932  ax-mulcl 10933  ax-mulrcl 10934  ax-mulcom 10935  ax-addass 10936  ax-mulass 10937  ax-distr 10938  ax-i2m1 10939  ax-1ne0 10940  ax-1rid 10941  ax-rnegex 10942  ax-rrecex 10943  ax-cnre 10944  ax-pre-lttri 10945  ax-pre-lttrn 10946  ax-pre-ltadd 10947  ax-pre-mulgt0 10948
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 3434  df-sbc 3717  df-csb 3833  df-dif 3890  df-un 3892  df-in 3894  df-ss 3904  df-pss 3906  df-nul 4257  df-if 4460  df-pw 4535  df-sn 4562  df-pr 4564  df-op 4568  df-uni 4840  df-iun 4926  df-br 5075  df-opab 5137  df-mpt 5158  df-tr 5192  df-id 5489  df-eprel 5495  df-po 5503  df-so 5504  df-fr 5544  df-we 5546  df-xp 5595  df-rel 5596  df-cnv 5597  df-co 5598  df-dm 5599  df-rn 5600  df-res 5601  df-ima 5602  df-pred 6202  df-ord 6269  df-on 6270  df-lim 6271  df-suc 6272  df-iota 6391  df-fun 6435  df-fn 6436  df-f 6437  df-f1 6438  df-fo 6439  df-f1o 6440  df-fv 6441  df-riota 7232  df-ov 7278  df-oprab 7279  df-mpo 7280  df-om 7713  df-1st 7831  df-2nd 7832  df-frecs 8097  df-wrecs 8128  df-recs 8202  df-rdg 8241  df-er 8498  df-map 8617  df-pm 8618  df-ixp 8686  df-en 8734  df-dom 8735  df-sdom 8736  df-pnf 11011  df-mnf 11012  df-xr 11013  df-ltxr 11014  df-le 11015  df-sub 11207  df-neg 11208  df-nn 11974  df-2 12036  df-3 12037  df-4 12038  df-5 12039  df-6 12040  df-7 12041  df-8 12042  df-9 12043  df-n0 12234  df-z 12320  df-dec 12438  df-sets 16865  df-slot 16883  df-ndx 16895  df-base 16913  df-ress 16942  df-hom 16986  df-cco 16987  df-cat 17377  df-cid 17378  df-homf 17379  df-ssc 17522  df-resc 17523  df-subc 17524  df-func 17573
This theorem is referenced by:  funcres2  17613  funcres2c  17617  fthres2b  17646
  Copyright terms: Public domain W3C validator