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

Theorem funcres2b 17528
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 5071 . . . . 5 (𝐹(𝐶 Func 𝐷)𝐺 ↔ ⟨𝐹, 𝐺⟩ ∈ (𝐶 Func 𝐷))
2 funcrcl 17494 . . . . 5 (⟨𝐹, 𝐺⟩ ∈ (𝐶 Func 𝐷) → (𝐶 ∈ Cat ∧ 𝐷 ∈ Cat))
31, 2sylbi 216 . . . 4 (𝐹(𝐶 Func 𝐷)𝐺 → (𝐶 ∈ Cat ∧ 𝐷 ∈ Cat))
43simpld 494 . . 3 (𝐹(𝐶 Func 𝐷)𝐺𝐶 ∈ Cat)
54a1i 11 . 2 (𝜑 → (𝐹(𝐶 Func 𝐷)𝐺𝐶 ∈ Cat))
6 df-br 5071 . . . . 5 (𝐹(𝐶 Func (𝐷cat 𝑅))𝐺 ↔ ⟨𝐹, 𝐺⟩ ∈ (𝐶 Func (𝐷cat 𝑅)))
7 funcrcl 17494 . . . . 5 (⟨𝐹, 𝐺⟩ ∈ (𝐶 Func (𝐷cat 𝑅)) → (𝐶 ∈ Cat ∧ (𝐷cat 𝑅) ∈ Cat))
86, 7sylbi 216 . . . 4 (𝐹(𝐶 Func (𝐷cat 𝑅))𝐺 → (𝐶 ∈ Cat ∧ (𝐷cat 𝑅) ∈ Cat))
98simpld 494 . . 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 17473 . . . . . . . 8 (𝜑𝑆 ⊆ (Base‘𝐷))
1611, 15fssd 6602 . . . . . . 7 (𝜑𝐹:𝐴⟶(Base‘𝐷))
17 eqid 2738 . . . . . . . . . 10 (𝐷cat 𝑅) = (𝐷cat 𝑅)
18 subcrcl 17445 . . . . . . . . . . 11 (𝑅 ∈ (Subcat‘𝐷) → 𝐷 ∈ Cat)
1912, 18syl 17 . . . . . . . . . 10 (𝜑𝐷 ∈ Cat)
2017, 14, 19, 13, 15rescbas 17458 . . . . . . . . 9 (𝜑𝑆 = (Base‘(𝐷cat 𝑅)))
2120feq3d 6571 . . . . . . . 8 (𝜑 → (𝐹:𝐴𝑆𝐹:𝐴⟶(Base‘(𝐷cat 𝑅))))
2211, 21mpbid 231 . . . . . . 7 (𝜑𝐹:𝐴⟶(Base‘(𝐷cat 𝑅)))
2316, 222thd 264 . . . . . 6 (𝜑 → (𝐹:𝐴⟶(Base‘𝐷) ↔ 𝐹:𝐴⟶(Base‘(𝐷cat 𝑅))))
2423adantr 480 . . . . 5 ((𝜑𝐶 ∈ Cat) → (𝐹:𝐴⟶(Base‘𝐷) ↔ 𝐹:𝐴⟶(Base‘(𝐷cat 𝑅))))
25 funcres2b.2 . . . . . . . . . . . . . . . . 17 ((𝜑 ∧ (𝑥𝐴𝑦𝐴)) → (𝑥𝐺𝑦):𝑌⟶((𝐹𝑥)𝑅(𝐹𝑦)))
2625adantlr 711 . . . . . . . . . . . . . . . 16 (((𝜑𝐶 ∈ Cat) ∧ (𝑥𝐴𝑦𝐴)) → (𝑥𝐺𝑦):𝑌⟶((𝐹𝑥)𝑅(𝐹𝑦)))
2726frnd 6592 . . . . . . . . . . . . . . 15 (((𝜑𝐶 ∈ Cat) ∧ (𝑥𝐴𝑦𝐴)) → ran (𝑥𝐺𝑦) ⊆ ((𝐹𝑥)𝑅(𝐹𝑦)))
2812ad2antrr 722 . . . . . . . . . . . . . . . 16 (((𝜑𝐶 ∈ Cat) ∧ (𝑥𝐴𝑦𝐴)) → 𝑅 ∈ (Subcat‘𝐷))
2913ad2antrr 722 . . . . . . . . . . . . . . . 16 (((𝜑𝐶 ∈ Cat) ∧ (𝑥𝐴𝑦𝐴)) → 𝑅 Fn (𝑆 × 𝑆))
30 eqid 2738 . . . . . . . . . . . . . . . 16 (Hom ‘𝐷) = (Hom ‘𝐷)
3111ad2antrr 722 . . . . . . . . . . . . . . . . 17 (((𝜑𝐶 ∈ Cat) ∧ (𝑥𝐴𝑦𝐴)) → 𝐹:𝐴𝑆)
32 simprl 767 . . . . . . . . . . . . . . . . 17 (((𝜑𝐶 ∈ Cat) ∧ (𝑥𝐴𝑦𝐴)) → 𝑥𝐴)
3331, 32ffvelrnd 6944 . . . . . . . . . . . . . . . 16 (((𝜑𝐶 ∈ Cat) ∧ (𝑥𝐴𝑦𝐴)) → (𝐹𝑥) ∈ 𝑆)
34 simprr 769 . . . . . . . . . . . . . . . . 17 (((𝜑𝐶 ∈ Cat) ∧ (𝑥𝐴𝑦𝐴)) → 𝑦𝐴)
3531, 34ffvelrnd 6944 . . . . . . . . . . . . . . . 16 (((𝜑𝐶 ∈ Cat) ∧ (𝑥𝐴𝑦𝐴)) → (𝐹𝑦) ∈ 𝑆)
3628, 29, 30, 33, 35subcss2 17474 . . . . . . . . . . . . . . 15 (((𝜑𝐶 ∈ Cat) ∧ (𝑥𝐴𝑦𝐴)) → ((𝐹𝑥)𝑅(𝐹𝑦)) ⊆ ((𝐹𝑥)(Hom ‘𝐷)(𝐹𝑦)))
3727, 36sstrd 3927 . . . . . . . . . . . . . 14 (((𝜑𝐶 ∈ Cat) ∧ (𝑥𝐴𝑦𝐴)) → ran (𝑥𝐺𝑦) ⊆ ((𝐹𝑥)(Hom ‘𝐷)(𝐹𝑦)))
3837, 272thd 264 . . . . . . . . . . . . 13 (((𝜑𝐶 ∈ Cat) ∧ (𝑥𝐴𝑦𝐴)) → (ran (𝑥𝐺𝑦) ⊆ ((𝐹𝑥)(Hom ‘𝐷)(𝐹𝑦)) ↔ ran (𝑥𝐺𝑦) ⊆ ((𝐹𝑥)𝑅(𝐹𝑦))))
3938anbi2d 628 . . . . . . . . . . . 12 (((𝜑𝐶 ∈ Cat) ∧ (𝑥𝐴𝑦𝐴)) → (((𝑥𝐺𝑦) Fn (𝑥𝐻𝑦) ∧ ran (𝑥𝐺𝑦) ⊆ ((𝐹𝑥)(Hom ‘𝐷)(𝐹𝑦))) ↔ ((𝑥𝐺𝑦) Fn (𝑥𝐻𝑦) ∧ ran (𝑥𝐺𝑦) ⊆ ((𝐹𝑥)𝑅(𝐹𝑦)))))
40 df-f 6422 . . . . . . . . . . . 12 ((𝑥𝐺𝑦):(𝑥𝐻𝑦)⟶((𝐹𝑥)(Hom ‘𝐷)(𝐹𝑦)) ↔ ((𝑥𝐺𝑦) Fn (𝑥𝐻𝑦) ∧ ran (𝑥𝐺𝑦) ⊆ ((𝐹𝑥)(Hom ‘𝐷)(𝐹𝑦))))
41 df-f 6422 . . . . . . . . . . . 12 ((𝑥𝐺𝑦):(𝑥𝐻𝑦)⟶((𝐹𝑥)𝑅(𝐹𝑦)) ↔ ((𝑥𝐺𝑦) Fn (𝑥𝐻𝑦) ∧ ran (𝑥𝐺𝑦) ⊆ ((𝐹𝑥)𝑅(𝐹𝑦))))
4239, 40, 413bitr4g 313 . . . . . . . . . . 11 (((𝜑𝐶 ∈ Cat) ∧ (𝑥𝐴𝑦𝐴)) → ((𝑥𝐺𝑦):(𝑥𝐻𝑦)⟶((𝐹𝑥)(Hom ‘𝐷)(𝐹𝑦)) ↔ (𝑥𝐺𝑦):(𝑥𝐻𝑦)⟶((𝐹𝑥)𝑅(𝐹𝑦))))
4317, 14, 19, 13, 15reschom 17460 . . . . . . . . . . . . . 14 (𝜑𝑅 = (Hom ‘(𝐷cat 𝑅)))
4443ad2antrr 722 . . . . . . . . . . . . 13 (((𝜑𝐶 ∈ Cat) ∧ (𝑥𝐴𝑦𝐴)) → 𝑅 = (Hom ‘(𝐷cat 𝑅)))
4544oveqd 7272 . . . . . . . . . . . 12 (((𝜑𝐶 ∈ Cat) ∧ (𝑥𝐴𝑦𝐴)) → ((𝐹𝑥)𝑅(𝐹𝑦)) = ((𝐹𝑥)(Hom ‘(𝐷cat 𝑅))(𝐹𝑦)))
4645feq3d 6571 . . . . . . . . . . 11 (((𝜑𝐶 ∈ Cat) ∧ (𝑥𝐴𝑦𝐴)) → ((𝑥𝐺𝑦):(𝑥𝐻𝑦)⟶((𝐹𝑥)𝑅(𝐹𝑦)) ↔ (𝑥𝐺𝑦):(𝑥𝐻𝑦)⟶((𝐹𝑥)(Hom ‘(𝐷cat 𝑅))(𝐹𝑦))))
4742, 46bitrd 278 . . . . . . . . . 10 (((𝜑𝐶 ∈ Cat) ∧ (𝑥𝐴𝑦𝐴)) → ((𝑥𝐺𝑦):(𝑥𝐻𝑦)⟶((𝐹𝑥)(Hom ‘𝐷)(𝐹𝑦)) ↔ (𝑥𝐺𝑦):(𝑥𝐻𝑦)⟶((𝐹𝑥)(Hom ‘(𝐷cat 𝑅))(𝐹𝑦))))
4847ralrimivva 3114 . . . . . . . . 9 ((𝜑𝐶 ∈ Cat) → ∀𝑥𝐴𝑦𝐴 ((𝑥𝐺𝑦):(𝑥𝐻𝑦)⟶((𝐹𝑥)(Hom ‘𝐷)(𝐹𝑦)) ↔ (𝑥𝐺𝑦):(𝑥𝐻𝑦)⟶((𝐹𝑥)(Hom ‘(𝐷cat 𝑅))(𝐹𝑦))))
49 fveq2 6756 . . . . . . . . . . . . . 14 (𝑧 = ⟨𝑥, 𝑦⟩ → (𝐺𝑧) = (𝐺‘⟨𝑥, 𝑦⟩))
50 df-ov 7258 . . . . . . . . . . . . . 14 (𝑥𝐺𝑦) = (𝐺‘⟨𝑥, 𝑦⟩)
5149, 50eqtr4di 2797 . . . . . . . . . . . . 13 (𝑧 = ⟨𝑥, 𝑦⟩ → (𝐺𝑧) = (𝑥𝐺𝑦))
52 vex 3426 . . . . . . . . . . . . . . . . 17 𝑥 ∈ V
53 vex 3426 . . . . . . . . . . . . . . . . 17 𝑦 ∈ V
5452, 53op1std 7814 . . . . . . . . . . . . . . . 16 (𝑧 = ⟨𝑥, 𝑦⟩ → (1st𝑧) = 𝑥)
5554fveq2d 6760 . . . . . . . . . . . . . . 15 (𝑧 = ⟨𝑥, 𝑦⟩ → (𝐹‘(1st𝑧)) = (𝐹𝑥))
5652, 53op2ndd 7815 . . . . . . . . . . . . . . . 16 (𝑧 = ⟨𝑥, 𝑦⟩ → (2nd𝑧) = 𝑦)
5756fveq2d 6760 . . . . . . . . . . . . . . 15 (𝑧 = ⟨𝑥, 𝑦⟩ → (𝐹‘(2nd𝑧)) = (𝐹𝑦))
5855, 57oveq12d 7273 . . . . . . . . . . . . . 14 (𝑧 = ⟨𝑥, 𝑦⟩ → ((𝐹‘(1st𝑧))(Hom ‘𝐷)(𝐹‘(2nd𝑧))) = ((𝐹𝑥)(Hom ‘𝐷)(𝐹𝑦)))
59 fveq2 6756 . . . . . . . . . . . . . . 15 (𝑧 = ⟨𝑥, 𝑦⟩ → (𝐻𝑧) = (𝐻‘⟨𝑥, 𝑦⟩))
60 df-ov 7258 . . . . . . . . . . . . . . 15 (𝑥𝐻𝑦) = (𝐻‘⟨𝑥, 𝑦⟩)
6159, 60eqtr4di 2797 . . . . . . . . . . . . . 14 (𝑧 = ⟨𝑥, 𝑦⟩ → (𝐻𝑧) = (𝑥𝐻𝑦))
6258, 61oveq12d 7273 . . . . . . . . . . . . 13 (𝑧 = ⟨𝑥, 𝑦⟩ → (((𝐹‘(1st𝑧))(Hom ‘𝐷)(𝐹‘(2nd𝑧))) ↑m (𝐻𝑧)) = (((𝐹𝑥)(Hom ‘𝐷)(𝐹𝑦)) ↑m (𝑥𝐻𝑦)))
6351, 62eleq12d 2833 . . . . . . . . . . . 12 (𝑧 = ⟨𝑥, 𝑦⟩ → ((𝐺𝑧) ∈ (((𝐹‘(1st𝑧))(Hom ‘𝐷)(𝐹‘(2nd𝑧))) ↑m (𝐻𝑧)) ↔ (𝑥𝐺𝑦) ∈ (((𝐹𝑥)(Hom ‘𝐷)(𝐹𝑦)) ↑m (𝑥𝐻𝑦))))
64 ovex 7288 . . . . . . . . . . . . 13 ((𝐹𝑥)(Hom ‘𝐷)(𝐹𝑦)) ∈ V
65 ovex 7288 . . . . . . . . . . . . 13 (𝑥𝐻𝑦) ∈ V
6664, 65elmap 8617 . . . . . . . . . . . 12 ((𝑥𝐺𝑦) ∈ (((𝐹𝑥)(Hom ‘𝐷)(𝐹𝑦)) ↑m (𝑥𝐻𝑦)) ↔ (𝑥𝐺𝑦):(𝑥𝐻𝑦)⟶((𝐹𝑥)(Hom ‘𝐷)(𝐹𝑦)))
6763, 66bitrdi 286 . . . . . . . . . . 11 (𝑧 = ⟨𝑥, 𝑦⟩ → ((𝐺𝑧) ∈ (((𝐹‘(1st𝑧))(Hom ‘𝐷)(𝐹‘(2nd𝑧))) ↑m (𝐻𝑧)) ↔ (𝑥𝐺𝑦):(𝑥𝐻𝑦)⟶((𝐹𝑥)(Hom ‘𝐷)(𝐹𝑦))))
6855, 57oveq12d 7273 . . . . . . . . . . . . . 14 (𝑧 = ⟨𝑥, 𝑦⟩ → ((𝐹‘(1st𝑧))(Hom ‘(𝐷cat 𝑅))(𝐹‘(2nd𝑧))) = ((𝐹𝑥)(Hom ‘(𝐷cat 𝑅))(𝐹𝑦)))
6968, 61oveq12d 7273 . . . . . . . . . . . . 13 (𝑧 = ⟨𝑥, 𝑦⟩ → (((𝐹‘(1st𝑧))(Hom ‘(𝐷cat 𝑅))(𝐹‘(2nd𝑧))) ↑m (𝐻𝑧)) = (((𝐹𝑥)(Hom ‘(𝐷cat 𝑅))(𝐹𝑦)) ↑m (𝑥𝐻𝑦)))
7051, 69eleq12d 2833 . . . . . . . . . . . 12 (𝑧 = ⟨𝑥, 𝑦⟩ → ((𝐺𝑧) ∈ (((𝐹‘(1st𝑧))(Hom ‘(𝐷cat 𝑅))(𝐹‘(2nd𝑧))) ↑m (𝐻𝑧)) ↔ (𝑥𝐺𝑦) ∈ (((𝐹𝑥)(Hom ‘(𝐷cat 𝑅))(𝐹𝑦)) ↑m (𝑥𝐻𝑦))))
71 ovex 7288 . . . . . . . . . . . . 13 ((𝐹𝑥)(Hom ‘(𝐷cat 𝑅))(𝐹𝑦)) ∈ V
7271, 65elmap 8617 . . . . . . . . . . . 12 ((𝑥𝐺𝑦) ∈ (((𝐹𝑥)(Hom ‘(𝐷cat 𝑅))(𝐹𝑦)) ↑m (𝑥𝐻𝑦)) ↔ (𝑥𝐺𝑦):(𝑥𝐻𝑦)⟶((𝐹𝑥)(Hom ‘(𝐷cat 𝑅))(𝐹𝑦)))
7370, 72bitrdi 286 . . . . . . . . . . 11 (𝑧 = ⟨𝑥, 𝑦⟩ → ((𝐺𝑧) ∈ (((𝐹‘(1st𝑧))(Hom ‘(𝐷cat 𝑅))(𝐹‘(2nd𝑧))) ↑m (𝐻𝑧)) ↔ (𝑥𝐺𝑦):(𝑥𝐻𝑦)⟶((𝐹𝑥)(Hom ‘(𝐷cat 𝑅))(𝐹𝑦))))
7467, 73bibi12d 345 . . . . . . . . . 10 (𝑧 = ⟨𝑥, 𝑦⟩ → (((𝐺𝑧) ∈ (((𝐹‘(1st𝑧))(Hom ‘𝐷)(𝐹‘(2nd𝑧))) ↑m (𝐻𝑧)) ↔ (𝐺𝑧) ∈ (((𝐹‘(1st𝑧))(Hom ‘(𝐷cat 𝑅))(𝐹‘(2nd𝑧))) ↑m (𝐻𝑧))) ↔ ((𝑥𝐺𝑦):(𝑥𝐻𝑦)⟶((𝐹𝑥)(Hom ‘𝐷)(𝐹𝑦)) ↔ (𝑥𝐺𝑦):(𝑥𝐻𝑦)⟶((𝐹𝑥)(Hom ‘(𝐷cat 𝑅))(𝐹𝑦)))))
7574ralxp 5739 . . . . . . . . 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 3092 . . . . . . . 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 1440 . . . . . 6 ((𝜑𝐶 ∈ Cat) → ((𝐺 ∈ V ∧ 𝐺 Fn (𝐴 × 𝐴) ∧ ∀𝑧 ∈ (𝐴 × 𝐴)(𝐺𝑧) ∈ (((𝐹‘(1st𝑧))(Hom ‘𝐷)(𝐹‘(2nd𝑧))) ↑m (𝐻𝑧))) ↔ (𝐺 ∈ V ∧ 𝐺 Fn (𝐴 × 𝐴) ∧ ∀𝑧 ∈ (𝐴 × 𝐴)(𝐺𝑧) ∈ (((𝐹‘(1st𝑧))(Hom ‘(𝐷cat 𝑅))(𝐹‘(2nd𝑧))) ↑m (𝐻𝑧)))))
80 elixp2 8647 . . . . . 6 (𝐺X𝑧 ∈ (𝐴 × 𝐴)(((𝐹‘(1st𝑧))(Hom ‘𝐷)(𝐹‘(2nd𝑧))) ↑m (𝐻𝑧)) ↔ (𝐺 ∈ V ∧ 𝐺 Fn (𝐴 × 𝐴) ∧ ∀𝑧 ∈ (𝐴 × 𝐴)(𝐺𝑧) ∈ (((𝐹‘(1st𝑧))(Hom ‘𝐷)(𝐹‘(2nd𝑧))) ↑m (𝐻𝑧))))
81 elixp2 8647 . . . . . 6 (𝐺X𝑧 ∈ (𝐴 × 𝐴)(((𝐹‘(1st𝑧))(Hom ‘(𝐷cat 𝑅))(𝐹‘(2nd𝑧))) ↑m (𝐻𝑧)) ↔ (𝐺 ∈ V ∧ 𝐺 Fn (𝐴 × 𝐴) ∧ ∀𝑧 ∈ (𝐴 × 𝐴)(𝐺𝑧) ∈ (((𝐹‘(1st𝑧))(Hom ‘(𝐷cat 𝑅))(𝐹‘(2nd𝑧))) ↑m (𝐻𝑧))))
8279, 80, 813bitr4g 313 . . . . 5 ((𝜑𝐶 ∈ Cat) → (𝐺X𝑧 ∈ (𝐴 × 𝐴)(((𝐹‘(1st𝑧))(Hom ‘𝐷)(𝐹‘(2nd𝑧))) ↑m (𝐻𝑧)) ↔ 𝐺X𝑧 ∈ (𝐴 × 𝐴)(((𝐹‘(1st𝑧))(Hom ‘(𝐷cat 𝑅))(𝐹‘(2nd𝑧))) ↑m (𝐻𝑧))))
8312ad2antrr 722 . . . . . . . . 9 (((𝜑𝐶 ∈ Cat) ∧ 𝑥𝐴) → 𝑅 ∈ (Subcat‘𝐷))
8413ad2antrr 722 . . . . . . . . 9 (((𝜑𝐶 ∈ Cat) ∧ 𝑥𝐴) → 𝑅 Fn (𝑆 × 𝑆))
85 eqid 2738 . . . . . . . . 9 (Id‘𝐷) = (Id‘𝐷)
8611adantr 480 . . . . . . . . . 10 ((𝜑𝐶 ∈ Cat) → 𝐹:𝐴𝑆)
8786ffvelrnda 6943 . . . . . . . . 9 (((𝜑𝐶 ∈ Cat) ∧ 𝑥𝐴) → (𝐹𝑥) ∈ 𝑆)
8817, 83, 84, 85, 87subcid 17478 . . . . . . . 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 17462 . . . . . . . . . . . . 13 (𝜑 → (comp‘𝐷) = (comp‘(𝐷cat 𝑅)))
9291ad2antrr 722 . . . . . . . . . . . 12 (((𝜑𝐶 ∈ Cat) ∧ 𝑥𝐴) → (comp‘𝐷) = (comp‘(𝐷cat 𝑅)))
9392oveqd 7272 . . . . . . . . . . 11 (((𝜑𝐶 ∈ Cat) ∧ 𝑥𝐴) → (⟨(𝐹𝑥), (𝐹𝑦)⟩(comp‘𝐷)(𝐹𝑧)) = (⟨(𝐹𝑥), (𝐹𝑦)⟩(comp‘(𝐷cat 𝑅))(𝐹𝑧)))
9493oveqd 7272 . . . . . . . . . 10 (((𝜑𝐶 ∈ Cat) ∧ 𝑥𝐴) → (((𝑦𝐺𝑧)‘𝑔)(⟨(𝐹𝑥), (𝐹𝑦)⟩(comp‘𝐷)(𝐹𝑧))((𝑥𝐺𝑦)‘𝑓)) = (((𝑦𝐺𝑧)‘𝑔)(⟨(𝐹𝑥), (𝐹𝑦)⟩(comp‘(𝐷cat 𝑅))(𝐹𝑧))((𝑥𝐺𝑦)‘𝑓)))
9594eqeq2d 2749 . . . . . . . . 9 (((𝜑𝐶 ∈ Cat) ∧ 𝑥𝐴) → (((𝑥𝐺𝑧)‘(𝑔(⟨𝑥, 𝑦⟩(comp‘𝐶)𝑧)𝑓)) = (((𝑦𝐺𝑧)‘𝑔)(⟨(𝐹𝑥), (𝐹𝑦)⟩(comp‘𝐷)(𝐹𝑧))((𝑥𝐺𝑦)‘𝑓)) ↔ ((𝑥𝐺𝑧)‘(𝑔(⟨𝑥, 𝑦⟩(comp‘𝐶)𝑧)𝑓)) = (((𝑦𝐺𝑧)‘𝑔)(⟨(𝐹𝑥), (𝐹𝑦)⟩(comp‘(𝐷cat 𝑅))(𝐹𝑧))((𝑥𝐺𝑦)‘𝑓))))
96952ralbidv 3122 . . . . . . . 8 (((𝜑𝐶 ∈ Cat) ∧ 𝑥𝐴) → (∀𝑓 ∈ (𝑥𝐻𝑦)∀𝑔 ∈ (𝑦𝐻𝑧)((𝑥𝐺𝑧)‘(𝑔(⟨𝑥, 𝑦⟩(comp‘𝐶)𝑧)𝑓)) = (((𝑦𝐺𝑧)‘𝑔)(⟨(𝐹𝑥), (𝐹𝑦)⟩(comp‘𝐷)(𝐹𝑧))((𝑥𝐺𝑦)‘𝑓)) ↔ ∀𝑓 ∈ (𝑥𝐻𝑦)∀𝑔 ∈ (𝑦𝐻𝑧)((𝑥𝐺𝑧)‘(𝑔(⟨𝑥, 𝑦⟩(comp‘𝐶)𝑧)𝑓)) = (((𝑦𝐺𝑧)‘𝑔)(⟨(𝐹𝑥), (𝐹𝑦)⟩(comp‘(𝐷cat 𝑅))(𝐹𝑧))((𝑥𝐺𝑦)‘𝑓))))
97962ralbidv 3122 . . . . . . 7 (((𝜑𝐶 ∈ Cat) ∧ 𝑥𝐴) → (∀𝑦𝐴𝑧𝐴𝑓 ∈ (𝑥𝐻𝑦)∀𝑔 ∈ (𝑦𝐻𝑧)((𝑥𝐺𝑧)‘(𝑔(⟨𝑥, 𝑦⟩(comp‘𝐶)𝑧)𝑓)) = (((𝑦𝐺𝑧)‘𝑔)(⟨(𝐹𝑥), (𝐹𝑦)⟩(comp‘𝐷)(𝐹𝑧))((𝑥𝐺𝑦)‘𝑓)) ↔ ∀𝑦𝐴𝑧𝐴𝑓 ∈ (𝑥𝐻𝑦)∀𝑔 ∈ (𝑦𝐻𝑧)((𝑥𝐺𝑧)‘(𝑔(⟨𝑥, 𝑦⟩(comp‘𝐶)𝑧)𝑓)) = (((𝑦𝐺𝑧)‘𝑔)(⟨(𝐹𝑥), (𝐹𝑦)⟩(comp‘(𝐷cat 𝑅))(𝐹𝑧))((𝑥𝐺𝑦)‘𝑓))))
9889, 97anbi12d 630 . . . . . 6 (((𝜑𝐶 ∈ Cat) ∧ 𝑥𝐴) → ((((𝑥𝐺𝑥)‘((Id‘𝐶)‘𝑥)) = ((Id‘𝐷)‘(𝐹𝑥)) ∧ ∀𝑦𝐴𝑧𝐴𝑓 ∈ (𝑥𝐻𝑦)∀𝑔 ∈ (𝑦𝐻𝑧)((𝑥𝐺𝑧)‘(𝑔(⟨𝑥, 𝑦⟩(comp‘𝐶)𝑧)𝑓)) = (((𝑦𝐺𝑧)‘𝑔)(⟨(𝐹𝑥), (𝐹𝑦)⟩(comp‘𝐷)(𝐹𝑧))((𝑥𝐺𝑦)‘𝑓))) ↔ (((𝑥𝐺𝑥)‘((Id‘𝐶)‘𝑥)) = ((Id‘(𝐷cat 𝑅))‘(𝐹𝑥)) ∧ ∀𝑦𝐴𝑧𝐴𝑓 ∈ (𝑥𝐻𝑦)∀𝑔 ∈ (𝑦𝐻𝑧)((𝑥𝐺𝑧)‘(𝑔(⟨𝑥, 𝑦⟩(comp‘𝐶)𝑧)𝑓)) = (((𝑦𝐺𝑧)‘𝑔)(⟨(𝐹𝑥), (𝐹𝑦)⟩(comp‘(𝐷cat 𝑅))(𝐹𝑧))((𝑥𝐺𝑦)‘𝑓)))))
9998ralbidva 3119 . . . . 5 ((𝜑𝐶 ∈ Cat) → (∀𝑥𝐴 (((𝑥𝐺𝑥)‘((Id‘𝐶)‘𝑥)) = ((Id‘𝐷)‘(𝐹𝑥)) ∧ ∀𝑦𝐴𝑧𝐴𝑓 ∈ (𝑥𝐻𝑦)∀𝑔 ∈ (𝑦𝐻𝑧)((𝑥𝐺𝑧)‘(𝑔(⟨𝑥, 𝑦⟩(comp‘𝐶)𝑧)𝑓)) = (((𝑦𝐺𝑧)‘𝑔)(⟨(𝐹𝑥), (𝐹𝑦)⟩(comp‘𝐷)(𝐹𝑧))((𝑥𝐺𝑦)‘𝑓))) ↔ ∀𝑥𝐴 (((𝑥𝐺𝑥)‘((Id‘𝐶)‘𝑥)) = ((Id‘(𝐷cat 𝑅))‘(𝐹𝑥)) ∧ ∀𝑦𝐴𝑧𝐴𝑓 ∈ (𝑥𝐻𝑦)∀𝑔 ∈ (𝑦𝐻𝑧)((𝑥𝐺𝑧)‘(𝑔(⟨𝑥, 𝑦⟩(comp‘𝐶)𝑧)𝑓)) = (((𝑦𝐺𝑧)‘𝑔)(⟨(𝐹𝑥), (𝐹𝑦)⟩(comp‘(𝐷cat 𝑅))(𝐹𝑧))((𝑥𝐺𝑦)‘𝑓)))))
10024, 82, 993anbi123d 1434 . . . 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 484 . . . . 5 ((𝜑𝐶 ∈ Cat) → 𝐶 ∈ Cat)
10619adantr 480 . . . . 5 ((𝜑𝐶 ∈ Cat) → 𝐷 ∈ Cat)
107101, 14, 102, 30, 103, 85, 104, 90, 105, 106isfunc 17495 . . . 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 17479 . . . . . 6 (𝜑 → (𝐷cat 𝑅) ∈ Cat)
113112adantr 480 . . . . 5 ((𝜑𝐶 ∈ Cat) → (𝐷cat 𝑅) ∈ Cat)
114101, 108, 102, 109, 103, 110, 104, 111, 105, 113isfunc 17495 . . . 4 ((𝜑𝐶 ∈ Cat) → (𝐹(𝐶 Func (𝐷cat 𝑅))𝐺 ↔ (𝐹:𝐴⟶(Base‘(𝐷cat 𝑅)) ∧ 𝐺X𝑧 ∈ (𝐴 × 𝐴)(((𝐹‘(1st𝑧))(Hom ‘(𝐷cat 𝑅))(𝐹‘(2nd𝑧))) ↑m (𝐻𝑧)) ∧ ∀𝑥𝐴 (((𝑥𝐺𝑥)‘((Id‘𝐶)‘𝑥)) = ((Id‘(𝐷cat 𝑅))‘(𝐹𝑥)) ∧ ∀𝑦𝐴𝑧𝐴𝑓 ∈ (𝑥𝐻𝑦)∀𝑔 ∈ (𝑦𝐻𝑧)((𝑥𝐺𝑧)‘(𝑔(⟨𝑥, 𝑦⟩(comp‘𝐶)𝑧)𝑓)) = (((𝑦𝐺𝑧)‘𝑔)(⟨(𝐹𝑥), (𝐹𝑦)⟩(comp‘(𝐷cat 𝑅))(𝐹𝑧))((𝑥𝐺𝑦)‘𝑓))))))
115100, 107, 1143bitr4d 310 . . 3 ((𝜑𝐶 ∈ Cat) → (𝐹(𝐶 Func 𝐷)𝐺𝐹(𝐶 Func (𝐷cat 𝑅))𝐺))
116115ex 412 . 2 (𝜑 → (𝐶 ∈ Cat → (𝐹(𝐶 Func 𝐷)𝐺𝐹(𝐶 Func (𝐷cat 𝑅))𝐺)))
1175, 10, 116pm5.21ndd 380 1 (𝜑 → (𝐹(𝐶 Func 𝐷)𝐺𝐹(𝐶 Func (𝐷cat 𝑅))𝐺))
Colors of variables: wff setvar class
Syntax hints:  wi 4  wb 205  wa 395  w3a 1085   = wceq 1539  wcel 2108  wral 3063  Vcvv 3422  wss 3883  cop 4564   class class class wbr 5070   × cxp 5578  ran crn 5581   Fn wfn 6413  wf 6414  cfv 6418  (class class class)co 7255  1st c1st 7802  2nd c2nd 7803  m cmap 8573  Xcixp 8643  Basecbs 16840  Hom chom 16899  compcco 16900  Catccat 17290  Idccid 17291  cat cresc 17437  Subcatcsubc 17438   Func cfunc 17485
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-pow 5283  ax-pr 5347  ax-un 7566  ax-cnex 10858  ax-resscn 10859  ax-1cn 10860  ax-icn 10861  ax-addcl 10862  ax-addrcl 10863  ax-mulcl 10864  ax-mulrcl 10865  ax-mulcom 10866  ax-addass 10867  ax-mulass 10868  ax-distr 10869  ax-i2m1 10870  ax-1ne0 10871  ax-1rid 10872  ax-rnegex 10873  ax-rrecex 10874  ax-cnre 10875  ax-pre-lttri 10876  ax-pre-lttrn 10877  ax-pre-ltadd 10878  ax-pre-mulgt0 10879
This theorem depends on definitions:  df-bi 206  df-an 396  df-or 844  df-3or 1086  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-nel 3049  df-ral 3068  df-rex 3069  df-reu 3070  df-rmo 3071  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-pss 3902  df-nul 4254  df-if 4457  df-pw 4532  df-sn 4559  df-pr 4561  df-tp 4563  df-op 4565  df-uni 4837  df-iun 4923  df-br 5071  df-opab 5133  df-mpt 5154  df-tr 5188  df-id 5480  df-eprel 5486  df-po 5494  df-so 5495  df-fr 5535  df-we 5537  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-pred 6191  df-ord 6254  df-on 6255  df-lim 6256  df-suc 6257  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-riota 7212  df-ov 7258  df-oprab 7259  df-mpo 7260  df-om 7688  df-1st 7804  df-2nd 7805  df-frecs 8068  df-wrecs 8099  df-recs 8173  df-rdg 8212  df-er 8456  df-map 8575  df-pm 8576  df-ixp 8644  df-en 8692  df-dom 8693  df-sdom 8694  df-pnf 10942  df-mnf 10943  df-xr 10944  df-ltxr 10945  df-le 10946  df-sub 11137  df-neg 11138  df-nn 11904  df-2 11966  df-3 11967  df-4 11968  df-5 11969  df-6 11970  df-7 11971  df-8 11972  df-9 11973  df-n0 12164  df-z 12250  df-dec 12367  df-sets 16793  df-slot 16811  df-ndx 16823  df-base 16841  df-ress 16868  df-hom 16912  df-cco 16913  df-cat 17294  df-cid 17295  df-homf 17296  df-ssc 17439  df-resc 17440  df-subc 17441  df-func 17489
This theorem is referenced by:  funcres2  17529  funcres2c  17533  fthres2b  17562
  Copyright terms: Public domain W3C validator