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

Theorem funcres2b 16497
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 4624 . . . . 5 (𝐹(𝐶 Func 𝐷)𝐺 ↔ ⟨𝐹, 𝐺⟩ ∈ (𝐶 Func 𝐷))
2 funcrcl 16463 . . . . 5 (⟨𝐹, 𝐺⟩ ∈ (𝐶 Func 𝐷) → (𝐶 ∈ Cat ∧ 𝐷 ∈ Cat))
31, 2sylbi 207 . . . 4 (𝐹(𝐶 Func 𝐷)𝐺 → (𝐶 ∈ Cat ∧ 𝐷 ∈ Cat))
43simpld 475 . . 3 (𝐹(𝐶 Func 𝐷)𝐺𝐶 ∈ Cat)
54a1i 11 . 2 (𝜑 → (𝐹(𝐶 Func 𝐷)𝐺𝐶 ∈ Cat))
6 df-br 4624 . . . . 5 (𝐹(𝐶 Func (𝐷cat 𝑅))𝐺 ↔ ⟨𝐹, 𝐺⟩ ∈ (𝐶 Func (𝐷cat 𝑅)))
7 funcrcl 16463 . . . . 5 (⟨𝐹, 𝐺⟩ ∈ (𝐶 Func (𝐷cat 𝑅)) → (𝐶 ∈ Cat ∧ (𝐷cat 𝑅) ∈ Cat))
86, 7sylbi 207 . . . 4 (𝐹(𝐶 Func (𝐷cat 𝑅))𝐺 → (𝐶 ∈ Cat ∧ (𝐷cat 𝑅) ∈ Cat))
98simpld 475 . . 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 2621 . . . . . . . . 9 (Base‘𝐷) = (Base‘𝐷)
1512, 13, 14subcss1 16442 . . . . . . . 8 (𝜑𝑆 ⊆ (Base‘𝐷))
1611, 15fssd 6024 . . . . . . 7 (𝜑𝐹:𝐴⟶(Base‘𝐷))
17 eqid 2621 . . . . . . . . . 10 (𝐷cat 𝑅) = (𝐷cat 𝑅)
18 subcrcl 16416 . . . . . . . . . . 11 (𝑅 ∈ (Subcat‘𝐷) → 𝐷 ∈ Cat)
1912, 18syl 17 . . . . . . . . . 10 (𝜑𝐷 ∈ Cat)
2017, 14, 19, 13, 15rescbas 16429 . . . . . . . . 9 (𝜑𝑆 = (Base‘(𝐷cat 𝑅)))
2120feq3d 5999 . . . . . . . 8 (𝜑 → (𝐹:𝐴𝑆𝐹:𝐴⟶(Base‘(𝐷cat 𝑅))))
2211, 21mpbid 222 . . . . . . 7 (𝜑𝐹:𝐴⟶(Base‘(𝐷cat 𝑅)))
2316, 222thd 255 . . . . . 6 (𝜑 → (𝐹:𝐴⟶(Base‘𝐷) ↔ 𝐹:𝐴⟶(Base‘(𝐷cat 𝑅))))
2423adantr 481 . . . . 5 ((𝜑𝐶 ∈ Cat) → (𝐹:𝐴⟶(Base‘𝐷) ↔ 𝐹:𝐴⟶(Base‘(𝐷cat 𝑅))))
25 funcres2b.2 . . . . . . . . . . . . . . . . 17 ((𝜑 ∧ (𝑥𝐴𝑦𝐴)) → (𝑥𝐺𝑦):𝑌⟶((𝐹𝑥)𝑅(𝐹𝑦)))
2625adantlr 750 . . . . . . . . . . . . . . . 16 (((𝜑𝐶 ∈ Cat) ∧ (𝑥𝐴𝑦𝐴)) → (𝑥𝐺𝑦):𝑌⟶((𝐹𝑥)𝑅(𝐹𝑦)))
27 frn 6020 . . . . . . . . . . . . . . . 16 ((𝑥𝐺𝑦):𝑌⟶((𝐹𝑥)𝑅(𝐹𝑦)) → ran (𝑥𝐺𝑦) ⊆ ((𝐹𝑥)𝑅(𝐹𝑦)))
2826, 27syl 17 . . . . . . . . . . . . . . 15 (((𝜑𝐶 ∈ Cat) ∧ (𝑥𝐴𝑦𝐴)) → ran (𝑥𝐺𝑦) ⊆ ((𝐹𝑥)𝑅(𝐹𝑦)))
2912ad2antrr 761 . . . . . . . . . . . . . . . 16 (((𝜑𝐶 ∈ Cat) ∧ (𝑥𝐴𝑦𝐴)) → 𝑅 ∈ (Subcat‘𝐷))
3013ad2antrr 761 . . . . . . . . . . . . . . . 16 (((𝜑𝐶 ∈ Cat) ∧ (𝑥𝐴𝑦𝐴)) → 𝑅 Fn (𝑆 × 𝑆))
31 eqid 2621 . . . . . . . . . . . . . . . 16 (Hom ‘𝐷) = (Hom ‘𝐷)
3211ad2antrr 761 . . . . . . . . . . . . . . . . 17 (((𝜑𝐶 ∈ Cat) ∧ (𝑥𝐴𝑦𝐴)) → 𝐹:𝐴𝑆)
33 simprl 793 . . . . . . . . . . . . . . . . 17 (((𝜑𝐶 ∈ Cat) ∧ (𝑥𝐴𝑦𝐴)) → 𝑥𝐴)
3432, 33ffvelrnd 6326 . . . . . . . . . . . . . . . 16 (((𝜑𝐶 ∈ Cat) ∧ (𝑥𝐴𝑦𝐴)) → (𝐹𝑥) ∈ 𝑆)
35 simprr 795 . . . . . . . . . . . . . . . . 17 (((𝜑𝐶 ∈ Cat) ∧ (𝑥𝐴𝑦𝐴)) → 𝑦𝐴)
3632, 35ffvelrnd 6326 . . . . . . . . . . . . . . . 16 (((𝜑𝐶 ∈ Cat) ∧ (𝑥𝐴𝑦𝐴)) → (𝐹𝑦) ∈ 𝑆)
3729, 30, 31, 34, 36subcss2 16443 . . . . . . . . . . . . . . 15 (((𝜑𝐶 ∈ Cat) ∧ (𝑥𝐴𝑦𝐴)) → ((𝐹𝑥)𝑅(𝐹𝑦)) ⊆ ((𝐹𝑥)(Hom ‘𝐷)(𝐹𝑦)))
3828, 37sstrd 3598 . . . . . . . . . . . . . 14 (((𝜑𝐶 ∈ Cat) ∧ (𝑥𝐴𝑦𝐴)) → ran (𝑥𝐺𝑦) ⊆ ((𝐹𝑥)(Hom ‘𝐷)(𝐹𝑦)))
3938, 282thd 255 . . . . . . . . . . . . 13 (((𝜑𝐶 ∈ Cat) ∧ (𝑥𝐴𝑦𝐴)) → (ran (𝑥𝐺𝑦) ⊆ ((𝐹𝑥)(Hom ‘𝐷)(𝐹𝑦)) ↔ ran (𝑥𝐺𝑦) ⊆ ((𝐹𝑥)𝑅(𝐹𝑦))))
4039anbi2d 739 . . . . . . . . . . . 12 (((𝜑𝐶 ∈ Cat) ∧ (𝑥𝐴𝑦𝐴)) → (((𝑥𝐺𝑦) Fn (𝑥𝐻𝑦) ∧ ran (𝑥𝐺𝑦) ⊆ ((𝐹𝑥)(Hom ‘𝐷)(𝐹𝑦))) ↔ ((𝑥𝐺𝑦) Fn (𝑥𝐻𝑦) ∧ ran (𝑥𝐺𝑦) ⊆ ((𝐹𝑥)𝑅(𝐹𝑦)))))
41 df-f 5861 . . . . . . . . . . . 12 ((𝑥𝐺𝑦):(𝑥𝐻𝑦)⟶((𝐹𝑥)(Hom ‘𝐷)(𝐹𝑦)) ↔ ((𝑥𝐺𝑦) Fn (𝑥𝐻𝑦) ∧ ran (𝑥𝐺𝑦) ⊆ ((𝐹𝑥)(Hom ‘𝐷)(𝐹𝑦))))
42 df-f 5861 . . . . . . . . . . . 12 ((𝑥𝐺𝑦):(𝑥𝐻𝑦)⟶((𝐹𝑥)𝑅(𝐹𝑦)) ↔ ((𝑥𝐺𝑦) Fn (𝑥𝐻𝑦) ∧ ran (𝑥𝐺𝑦) ⊆ ((𝐹𝑥)𝑅(𝐹𝑦))))
4340, 41, 423bitr4g 303 . . . . . . . . . . 11 (((𝜑𝐶 ∈ Cat) ∧ (𝑥𝐴𝑦𝐴)) → ((𝑥𝐺𝑦):(𝑥𝐻𝑦)⟶((𝐹𝑥)(Hom ‘𝐷)(𝐹𝑦)) ↔ (𝑥𝐺𝑦):(𝑥𝐻𝑦)⟶((𝐹𝑥)𝑅(𝐹𝑦))))
4417, 14, 19, 13, 15reschom 16430 . . . . . . . . . . . . . 14 (𝜑𝑅 = (Hom ‘(𝐷cat 𝑅)))
4544ad2antrr 761 . . . . . . . . . . . . 13 (((𝜑𝐶 ∈ Cat) ∧ (𝑥𝐴𝑦𝐴)) → 𝑅 = (Hom ‘(𝐷cat 𝑅)))
4645oveqd 6632 . . . . . . . . . . . 12 (((𝜑𝐶 ∈ Cat) ∧ (𝑥𝐴𝑦𝐴)) → ((𝐹𝑥)𝑅(𝐹𝑦)) = ((𝐹𝑥)(Hom ‘(𝐷cat 𝑅))(𝐹𝑦)))
4746feq3d 5999 . . . . . . . . . . 11 (((𝜑𝐶 ∈ Cat) ∧ (𝑥𝐴𝑦𝐴)) → ((𝑥𝐺𝑦):(𝑥𝐻𝑦)⟶((𝐹𝑥)𝑅(𝐹𝑦)) ↔ (𝑥𝐺𝑦):(𝑥𝐻𝑦)⟶((𝐹𝑥)(Hom ‘(𝐷cat 𝑅))(𝐹𝑦))))
4843, 47bitrd 268 . . . . . . . . . 10 (((𝜑𝐶 ∈ Cat) ∧ (𝑥𝐴𝑦𝐴)) → ((𝑥𝐺𝑦):(𝑥𝐻𝑦)⟶((𝐹𝑥)(Hom ‘𝐷)(𝐹𝑦)) ↔ (𝑥𝐺𝑦):(𝑥𝐻𝑦)⟶((𝐹𝑥)(Hom ‘(𝐷cat 𝑅))(𝐹𝑦))))
4948ralrimivva 2967 . . . . . . . . 9 ((𝜑𝐶 ∈ Cat) → ∀𝑥𝐴𝑦𝐴 ((𝑥𝐺𝑦):(𝑥𝐻𝑦)⟶((𝐹𝑥)(Hom ‘𝐷)(𝐹𝑦)) ↔ (𝑥𝐺𝑦):(𝑥𝐻𝑦)⟶((𝐹𝑥)(Hom ‘(𝐷cat 𝑅))(𝐹𝑦))))
50 fveq2 6158 . . . . . . . . . . . . . 14 (𝑧 = ⟨𝑥, 𝑦⟩ → (𝐺𝑧) = (𝐺‘⟨𝑥, 𝑦⟩))
51 df-ov 6618 . . . . . . . . . . . . . 14 (𝑥𝐺𝑦) = (𝐺‘⟨𝑥, 𝑦⟩)
5250, 51syl6eqr 2673 . . . . . . . . . . . . 13 (𝑧 = ⟨𝑥, 𝑦⟩ → (𝐺𝑧) = (𝑥𝐺𝑦))
53 vex 3193 . . . . . . . . . . . . . . . . 17 𝑥 ∈ V
54 vex 3193 . . . . . . . . . . . . . . . . 17 𝑦 ∈ V
5553, 54op1std 7138 . . . . . . . . . . . . . . . 16 (𝑧 = ⟨𝑥, 𝑦⟩ → (1st𝑧) = 𝑥)
5655fveq2d 6162 . . . . . . . . . . . . . . 15 (𝑧 = ⟨𝑥, 𝑦⟩ → (𝐹‘(1st𝑧)) = (𝐹𝑥))
5753, 54op2ndd 7139 . . . . . . . . . . . . . . . 16 (𝑧 = ⟨𝑥, 𝑦⟩ → (2nd𝑧) = 𝑦)
5857fveq2d 6162 . . . . . . . . . . . . . . 15 (𝑧 = ⟨𝑥, 𝑦⟩ → (𝐹‘(2nd𝑧)) = (𝐹𝑦))
5956, 58oveq12d 6633 . . . . . . . . . . . . . 14 (𝑧 = ⟨𝑥, 𝑦⟩ → ((𝐹‘(1st𝑧))(Hom ‘𝐷)(𝐹‘(2nd𝑧))) = ((𝐹𝑥)(Hom ‘𝐷)(𝐹𝑦)))
60 fveq2 6158 . . . . . . . . . . . . . . 15 (𝑧 = ⟨𝑥, 𝑦⟩ → (𝐻𝑧) = (𝐻‘⟨𝑥, 𝑦⟩))
61 df-ov 6618 . . . . . . . . . . . . . . 15 (𝑥𝐻𝑦) = (𝐻‘⟨𝑥, 𝑦⟩)
6260, 61syl6eqr 2673 . . . . . . . . . . . . . 14 (𝑧 = ⟨𝑥, 𝑦⟩ → (𝐻𝑧) = (𝑥𝐻𝑦))
6359, 62oveq12d 6633 . . . . . . . . . . . . 13 (𝑧 = ⟨𝑥, 𝑦⟩ → (((𝐹‘(1st𝑧))(Hom ‘𝐷)(𝐹‘(2nd𝑧))) ↑𝑚 (𝐻𝑧)) = (((𝐹𝑥)(Hom ‘𝐷)(𝐹𝑦)) ↑𝑚 (𝑥𝐻𝑦)))
6452, 63eleq12d 2692 . . . . . . . . . . . 12 (𝑧 = ⟨𝑥, 𝑦⟩ → ((𝐺𝑧) ∈ (((𝐹‘(1st𝑧))(Hom ‘𝐷)(𝐹‘(2nd𝑧))) ↑𝑚 (𝐻𝑧)) ↔ (𝑥𝐺𝑦) ∈ (((𝐹𝑥)(Hom ‘𝐷)(𝐹𝑦)) ↑𝑚 (𝑥𝐻𝑦))))
65 ovex 6643 . . . . . . . . . . . . 13 ((𝐹𝑥)(Hom ‘𝐷)(𝐹𝑦)) ∈ V
66 ovex 6643 . . . . . . . . . . . . 13 (𝑥𝐻𝑦) ∈ V
6765, 66elmap 7846 . . . . . . . . . . . 12 ((𝑥𝐺𝑦) ∈ (((𝐹𝑥)(Hom ‘𝐷)(𝐹𝑦)) ↑𝑚 (𝑥𝐻𝑦)) ↔ (𝑥𝐺𝑦):(𝑥𝐻𝑦)⟶((𝐹𝑥)(Hom ‘𝐷)(𝐹𝑦)))
6864, 67syl6bb 276 . . . . . . . . . . 11 (𝑧 = ⟨𝑥, 𝑦⟩ → ((𝐺𝑧) ∈ (((𝐹‘(1st𝑧))(Hom ‘𝐷)(𝐹‘(2nd𝑧))) ↑𝑚 (𝐻𝑧)) ↔ (𝑥𝐺𝑦):(𝑥𝐻𝑦)⟶((𝐹𝑥)(Hom ‘𝐷)(𝐹𝑦))))
6956, 58oveq12d 6633 . . . . . . . . . . . . . 14 (𝑧 = ⟨𝑥, 𝑦⟩ → ((𝐹‘(1st𝑧))(Hom ‘(𝐷cat 𝑅))(𝐹‘(2nd𝑧))) = ((𝐹𝑥)(Hom ‘(𝐷cat 𝑅))(𝐹𝑦)))
7069, 62oveq12d 6633 . . . . . . . . . . . . 13 (𝑧 = ⟨𝑥, 𝑦⟩ → (((𝐹‘(1st𝑧))(Hom ‘(𝐷cat 𝑅))(𝐹‘(2nd𝑧))) ↑𝑚 (𝐻𝑧)) = (((𝐹𝑥)(Hom ‘(𝐷cat 𝑅))(𝐹𝑦)) ↑𝑚 (𝑥𝐻𝑦)))
7152, 70eleq12d 2692 . . . . . . . . . . . 12 (𝑧 = ⟨𝑥, 𝑦⟩ → ((𝐺𝑧) ∈ (((𝐹‘(1st𝑧))(Hom ‘(𝐷cat 𝑅))(𝐹‘(2nd𝑧))) ↑𝑚 (𝐻𝑧)) ↔ (𝑥𝐺𝑦) ∈ (((𝐹𝑥)(Hom ‘(𝐷cat 𝑅))(𝐹𝑦)) ↑𝑚 (𝑥𝐻𝑦))))
72 ovex 6643 . . . . . . . . . . . . 13 ((𝐹𝑥)(Hom ‘(𝐷cat 𝑅))(𝐹𝑦)) ∈ V
7372, 66elmap 7846 . . . . . . . . . . . 12 ((𝑥𝐺𝑦) ∈ (((𝐹𝑥)(Hom ‘(𝐷cat 𝑅))(𝐹𝑦)) ↑𝑚 (𝑥𝐻𝑦)) ↔ (𝑥𝐺𝑦):(𝑥𝐻𝑦)⟶((𝐹𝑥)(Hom ‘(𝐷cat 𝑅))(𝐹𝑦)))
7471, 73syl6bb 276 . . . . . . . . . . 11 (𝑧 = ⟨𝑥, 𝑦⟩ → ((𝐺𝑧) ∈ (((𝐹‘(1st𝑧))(Hom ‘(𝐷cat 𝑅))(𝐹‘(2nd𝑧))) ↑𝑚 (𝐻𝑧)) ↔ (𝑥𝐺𝑦):(𝑥𝐻𝑦)⟶((𝐹𝑥)(Hom ‘(𝐷cat 𝑅))(𝐹𝑦))))
7568, 74bibi12d 335 . . . . . . . . . 10 (𝑧 = ⟨𝑥, 𝑦⟩ → (((𝐺𝑧) ∈ (((𝐹‘(1st𝑧))(Hom ‘𝐷)(𝐹‘(2nd𝑧))) ↑𝑚 (𝐻𝑧)) ↔ (𝐺𝑧) ∈ (((𝐹‘(1st𝑧))(Hom ‘(𝐷cat 𝑅))(𝐹‘(2nd𝑧))) ↑𝑚 (𝐻𝑧))) ↔ ((𝑥𝐺𝑦):(𝑥𝐻𝑦)⟶((𝐹𝑥)(Hom ‘𝐷)(𝐹𝑦)) ↔ (𝑥𝐺𝑦):(𝑥𝐻𝑦)⟶((𝐹𝑥)(Hom ‘(𝐷cat 𝑅))(𝐹𝑦)))))
7675ralxp 5233 . . . . . . . . 9 (∀𝑧 ∈ (𝐴 × 𝐴)((𝐺𝑧) ∈ (((𝐹‘(1st𝑧))(Hom ‘𝐷)(𝐹‘(2nd𝑧))) ↑𝑚 (𝐻𝑧)) ↔ (𝐺𝑧) ∈ (((𝐹‘(1st𝑧))(Hom ‘(𝐷cat 𝑅))(𝐹‘(2nd𝑧))) ↑𝑚 (𝐻𝑧))) ↔ ∀𝑥𝐴𝑦𝐴 ((𝑥𝐺𝑦):(𝑥𝐻𝑦)⟶((𝐹𝑥)(Hom ‘𝐷)(𝐹𝑦)) ↔ (𝑥𝐺𝑦):(𝑥𝐻𝑦)⟶((𝐹𝑥)(Hom ‘(𝐷cat 𝑅))(𝐹𝑦))))
7749, 76sylibr 224 . . . . . . . 8 ((𝜑𝐶 ∈ Cat) → ∀𝑧 ∈ (𝐴 × 𝐴)((𝐺𝑧) ∈ (((𝐹‘(1st𝑧))(Hom ‘𝐷)(𝐹‘(2nd𝑧))) ↑𝑚 (𝐻𝑧)) ↔ (𝐺𝑧) ∈ (((𝐹‘(1st𝑧))(Hom ‘(𝐷cat 𝑅))(𝐹‘(2nd𝑧))) ↑𝑚 (𝐻𝑧))))
78 ralbi 3063 . . . . . . . 8 (∀𝑧 ∈ (𝐴 × 𝐴)((𝐺𝑧) ∈ (((𝐹‘(1st𝑧))(Hom ‘𝐷)(𝐹‘(2nd𝑧))) ↑𝑚 (𝐻𝑧)) ↔ (𝐺𝑧) ∈ (((𝐹‘(1st𝑧))(Hom ‘(𝐷cat 𝑅))(𝐹‘(2nd𝑧))) ↑𝑚 (𝐻𝑧))) → (∀𝑧 ∈ (𝐴 × 𝐴)(𝐺𝑧) ∈ (((𝐹‘(1st𝑧))(Hom ‘𝐷)(𝐹‘(2nd𝑧))) ↑𝑚 (𝐻𝑧)) ↔ ∀𝑧 ∈ (𝐴 × 𝐴)(𝐺𝑧) ∈ (((𝐹‘(1st𝑧))(Hom ‘(𝐷cat 𝑅))(𝐹‘(2nd𝑧))) ↑𝑚 (𝐻𝑧))))
7977, 78syl 17 . . . . . . 7 ((𝜑𝐶 ∈ Cat) → (∀𝑧 ∈ (𝐴 × 𝐴)(𝐺𝑧) ∈ (((𝐹‘(1st𝑧))(Hom ‘𝐷)(𝐹‘(2nd𝑧))) ↑𝑚 (𝐻𝑧)) ↔ ∀𝑧 ∈ (𝐴 × 𝐴)(𝐺𝑧) ∈ (((𝐹‘(1st𝑧))(Hom ‘(𝐷cat 𝑅))(𝐹‘(2nd𝑧))) ↑𝑚 (𝐻𝑧))))
80793anbi3d 1402 . . . . . 6 ((𝜑𝐶 ∈ Cat) → ((𝐺 ∈ V ∧ 𝐺 Fn (𝐴 × 𝐴) ∧ ∀𝑧 ∈ (𝐴 × 𝐴)(𝐺𝑧) ∈ (((𝐹‘(1st𝑧))(Hom ‘𝐷)(𝐹‘(2nd𝑧))) ↑𝑚 (𝐻𝑧))) ↔ (𝐺 ∈ V ∧ 𝐺 Fn (𝐴 × 𝐴) ∧ ∀𝑧 ∈ (𝐴 × 𝐴)(𝐺𝑧) ∈ (((𝐹‘(1st𝑧))(Hom ‘(𝐷cat 𝑅))(𝐹‘(2nd𝑧))) ↑𝑚 (𝐻𝑧)))))
81 elixp2 7872 . . . . . 6 (𝐺X𝑧 ∈ (𝐴 × 𝐴)(((𝐹‘(1st𝑧))(Hom ‘𝐷)(𝐹‘(2nd𝑧))) ↑𝑚 (𝐻𝑧)) ↔ (𝐺 ∈ V ∧ 𝐺 Fn (𝐴 × 𝐴) ∧ ∀𝑧 ∈ (𝐴 × 𝐴)(𝐺𝑧) ∈ (((𝐹‘(1st𝑧))(Hom ‘𝐷)(𝐹‘(2nd𝑧))) ↑𝑚 (𝐻𝑧))))
82 elixp2 7872 . . . . . 6 (𝐺X𝑧 ∈ (𝐴 × 𝐴)(((𝐹‘(1st𝑧))(Hom ‘(𝐷cat 𝑅))(𝐹‘(2nd𝑧))) ↑𝑚 (𝐻𝑧)) ↔ (𝐺 ∈ V ∧ 𝐺 Fn (𝐴 × 𝐴) ∧ ∀𝑧 ∈ (𝐴 × 𝐴)(𝐺𝑧) ∈ (((𝐹‘(1st𝑧))(Hom ‘(𝐷cat 𝑅))(𝐹‘(2nd𝑧))) ↑𝑚 (𝐻𝑧))))
8380, 81, 823bitr4g 303 . . . . 5 ((𝜑𝐶 ∈ Cat) → (𝐺X𝑧 ∈ (𝐴 × 𝐴)(((𝐹‘(1st𝑧))(Hom ‘𝐷)(𝐹‘(2nd𝑧))) ↑𝑚 (𝐻𝑧)) ↔ 𝐺X𝑧 ∈ (𝐴 × 𝐴)(((𝐹‘(1st𝑧))(Hom ‘(𝐷cat 𝑅))(𝐹‘(2nd𝑧))) ↑𝑚 (𝐻𝑧))))
8412ad2antrr 761 . . . . . . . . 9 (((𝜑𝐶 ∈ Cat) ∧ 𝑥𝐴) → 𝑅 ∈ (Subcat‘𝐷))
8513ad2antrr 761 . . . . . . . . 9 (((𝜑𝐶 ∈ Cat) ∧ 𝑥𝐴) → 𝑅 Fn (𝑆 × 𝑆))
86 eqid 2621 . . . . . . . . 9 (Id‘𝐷) = (Id‘𝐷)
8711adantr 481 . . . . . . . . . 10 ((𝜑𝐶 ∈ Cat) → 𝐹:𝐴𝑆)
8887ffvelrnda 6325 . . . . . . . . 9 (((𝜑𝐶 ∈ Cat) ∧ 𝑥𝐴) → (𝐹𝑥) ∈ 𝑆)
8917, 84, 85, 86, 88subcid 16447 . . . . . . . 8 (((𝜑𝐶 ∈ Cat) ∧ 𝑥𝐴) → ((Id‘𝐷)‘(𝐹𝑥)) = ((Id‘(𝐷cat 𝑅))‘(𝐹𝑥)))
9089eqeq2d 2631 . . . . . . 7 (((𝜑𝐶 ∈ Cat) ∧ 𝑥𝐴) → (((𝑥𝐺𝑥)‘((Id‘𝐶)‘𝑥)) = ((Id‘𝐷)‘(𝐹𝑥)) ↔ ((𝑥𝐺𝑥)‘((Id‘𝐶)‘𝑥)) = ((Id‘(𝐷cat 𝑅))‘(𝐹𝑥))))
91 eqid 2621 . . . . . . . . . . . . . 14 (comp‘𝐷) = (comp‘𝐷)
9217, 14, 19, 13, 15, 91rescco 16432 . . . . . . . . . . . . 13 (𝜑 → (comp‘𝐷) = (comp‘(𝐷cat 𝑅)))
9392ad2antrr 761 . . . . . . . . . . . 12 (((𝜑𝐶 ∈ Cat) ∧ 𝑥𝐴) → (comp‘𝐷) = (comp‘(𝐷cat 𝑅)))
9493oveqd 6632 . . . . . . . . . . 11 (((𝜑𝐶 ∈ Cat) ∧ 𝑥𝐴) → (⟨(𝐹𝑥), (𝐹𝑦)⟩(comp‘𝐷)(𝐹𝑧)) = (⟨(𝐹𝑥), (𝐹𝑦)⟩(comp‘(𝐷cat 𝑅))(𝐹𝑧)))
9594oveqd 6632 . . . . . . . . . 10 (((𝜑𝐶 ∈ Cat) ∧ 𝑥𝐴) → (((𝑦𝐺𝑧)‘𝑔)(⟨(𝐹𝑥), (𝐹𝑦)⟩(comp‘𝐷)(𝐹𝑧))((𝑥𝐺𝑦)‘𝑓)) = (((𝑦𝐺𝑧)‘𝑔)(⟨(𝐹𝑥), (𝐹𝑦)⟩(comp‘(𝐷cat 𝑅))(𝐹𝑧))((𝑥𝐺𝑦)‘𝑓)))
9695eqeq2d 2631 . . . . . . . . 9 (((𝜑𝐶 ∈ Cat) ∧ 𝑥𝐴) → (((𝑥𝐺𝑧)‘(𝑔(⟨𝑥, 𝑦⟩(comp‘𝐶)𝑧)𝑓)) = (((𝑦𝐺𝑧)‘𝑔)(⟨(𝐹𝑥), (𝐹𝑦)⟩(comp‘𝐷)(𝐹𝑧))((𝑥𝐺𝑦)‘𝑓)) ↔ ((𝑥𝐺𝑧)‘(𝑔(⟨𝑥, 𝑦⟩(comp‘𝐶)𝑧)𝑓)) = (((𝑦𝐺𝑧)‘𝑔)(⟨(𝐹𝑥), (𝐹𝑦)⟩(comp‘(𝐷cat 𝑅))(𝐹𝑧))((𝑥𝐺𝑦)‘𝑓))))
97962ralbidv 2985 . . . . . . . 8 (((𝜑𝐶 ∈ Cat) ∧ 𝑥𝐴) → (∀𝑓 ∈ (𝑥𝐻𝑦)∀𝑔 ∈ (𝑦𝐻𝑧)((𝑥𝐺𝑧)‘(𝑔(⟨𝑥, 𝑦⟩(comp‘𝐶)𝑧)𝑓)) = (((𝑦𝐺𝑧)‘𝑔)(⟨(𝐹𝑥), (𝐹𝑦)⟩(comp‘𝐷)(𝐹𝑧))((𝑥𝐺𝑦)‘𝑓)) ↔ ∀𝑓 ∈ (𝑥𝐻𝑦)∀𝑔 ∈ (𝑦𝐻𝑧)((𝑥𝐺𝑧)‘(𝑔(⟨𝑥, 𝑦⟩(comp‘𝐶)𝑧)𝑓)) = (((𝑦𝐺𝑧)‘𝑔)(⟨(𝐹𝑥), (𝐹𝑦)⟩(comp‘(𝐷cat 𝑅))(𝐹𝑧))((𝑥𝐺𝑦)‘𝑓))))
98972ralbidv 2985 . . . . . . 7 (((𝜑𝐶 ∈ Cat) ∧ 𝑥𝐴) → (∀𝑦𝐴𝑧𝐴𝑓 ∈ (𝑥𝐻𝑦)∀𝑔 ∈ (𝑦𝐻𝑧)((𝑥𝐺𝑧)‘(𝑔(⟨𝑥, 𝑦⟩(comp‘𝐶)𝑧)𝑓)) = (((𝑦𝐺𝑧)‘𝑔)(⟨(𝐹𝑥), (𝐹𝑦)⟩(comp‘𝐷)(𝐹𝑧))((𝑥𝐺𝑦)‘𝑓)) ↔ ∀𝑦𝐴𝑧𝐴𝑓 ∈ (𝑥𝐻𝑦)∀𝑔 ∈ (𝑦𝐻𝑧)((𝑥𝐺𝑧)‘(𝑔(⟨𝑥, 𝑦⟩(comp‘𝐶)𝑧)𝑓)) = (((𝑦𝐺𝑧)‘𝑔)(⟨(𝐹𝑥), (𝐹𝑦)⟩(comp‘(𝐷cat 𝑅))(𝐹𝑧))((𝑥𝐺𝑦)‘𝑓))))
9990, 98anbi12d 746 . . . . . 6 (((𝜑𝐶 ∈ Cat) ∧ 𝑥𝐴) → ((((𝑥𝐺𝑥)‘((Id‘𝐶)‘𝑥)) = ((Id‘𝐷)‘(𝐹𝑥)) ∧ ∀𝑦𝐴𝑧𝐴𝑓 ∈ (𝑥𝐻𝑦)∀𝑔 ∈ (𝑦𝐻𝑧)((𝑥𝐺𝑧)‘(𝑔(⟨𝑥, 𝑦⟩(comp‘𝐶)𝑧)𝑓)) = (((𝑦𝐺𝑧)‘𝑔)(⟨(𝐹𝑥), (𝐹𝑦)⟩(comp‘𝐷)(𝐹𝑧))((𝑥𝐺𝑦)‘𝑓))) ↔ (((𝑥𝐺𝑥)‘((Id‘𝐶)‘𝑥)) = ((Id‘(𝐷cat 𝑅))‘(𝐹𝑥)) ∧ ∀𝑦𝐴𝑧𝐴𝑓 ∈ (𝑥𝐻𝑦)∀𝑔 ∈ (𝑦𝐻𝑧)((𝑥𝐺𝑧)‘(𝑔(⟨𝑥, 𝑦⟩(comp‘𝐶)𝑧)𝑓)) = (((𝑦𝐺𝑧)‘𝑔)(⟨(𝐹𝑥), (𝐹𝑦)⟩(comp‘(𝐷cat 𝑅))(𝐹𝑧))((𝑥𝐺𝑦)‘𝑓)))))
10099ralbidva 2981 . . . . 5 ((𝜑𝐶 ∈ Cat) → (∀𝑥𝐴 (((𝑥𝐺𝑥)‘((Id‘𝐶)‘𝑥)) = ((Id‘𝐷)‘(𝐹𝑥)) ∧ ∀𝑦𝐴𝑧𝐴𝑓 ∈ (𝑥𝐻𝑦)∀𝑔 ∈ (𝑦𝐻𝑧)((𝑥𝐺𝑧)‘(𝑔(⟨𝑥, 𝑦⟩(comp‘𝐶)𝑧)𝑓)) = (((𝑦𝐺𝑧)‘𝑔)(⟨(𝐹𝑥), (𝐹𝑦)⟩(comp‘𝐷)(𝐹𝑧))((𝑥𝐺𝑦)‘𝑓))) ↔ ∀𝑥𝐴 (((𝑥𝐺𝑥)‘((Id‘𝐶)‘𝑥)) = ((Id‘(𝐷cat 𝑅))‘(𝐹𝑥)) ∧ ∀𝑦𝐴𝑧𝐴𝑓 ∈ (𝑥𝐻𝑦)∀𝑔 ∈ (𝑦𝐻𝑧)((𝑥𝐺𝑧)‘(𝑔(⟨𝑥, 𝑦⟩(comp‘𝐶)𝑧)𝑓)) = (((𝑦𝐺𝑧)‘𝑔)(⟨(𝐹𝑥), (𝐹𝑦)⟩(comp‘(𝐷cat 𝑅))(𝐹𝑧))((𝑥𝐺𝑦)‘𝑓)))))
10124, 83, 1003anbi123d 1396 . . . 4 ((𝜑𝐶 ∈ Cat) → ((𝐹:𝐴⟶(Base‘𝐷) ∧ 𝐺X𝑧 ∈ (𝐴 × 𝐴)(((𝐹‘(1st𝑧))(Hom ‘𝐷)(𝐹‘(2nd𝑧))) ↑𝑚 (𝐻𝑧)) ∧ ∀𝑥𝐴 (((𝑥𝐺𝑥)‘((Id‘𝐶)‘𝑥)) = ((Id‘𝐷)‘(𝐹𝑥)) ∧ ∀𝑦𝐴𝑧𝐴𝑓 ∈ (𝑥𝐻𝑦)∀𝑔 ∈ (𝑦𝐻𝑧)((𝑥𝐺𝑧)‘(𝑔(⟨𝑥, 𝑦⟩(comp‘𝐶)𝑧)𝑓)) = (((𝑦𝐺𝑧)‘𝑔)(⟨(𝐹𝑥), (𝐹𝑦)⟩(comp‘𝐷)(𝐹𝑧))((𝑥𝐺𝑦)‘𝑓)))) ↔ (𝐹:𝐴⟶(Base‘(𝐷cat 𝑅)) ∧ 𝐺X𝑧 ∈ (𝐴 × 𝐴)(((𝐹‘(1st𝑧))(Hom ‘(𝐷cat 𝑅))(𝐹‘(2nd𝑧))) ↑𝑚 (𝐻𝑧)) ∧ ∀𝑥𝐴 (((𝑥𝐺𝑥)‘((Id‘𝐶)‘𝑥)) = ((Id‘(𝐷cat 𝑅))‘(𝐹𝑥)) ∧ ∀𝑦𝐴𝑧𝐴𝑓 ∈ (𝑥𝐻𝑦)∀𝑔 ∈ (𝑦𝐻𝑧)((𝑥𝐺𝑧)‘(𝑔(⟨𝑥, 𝑦⟩(comp‘𝐶)𝑧)𝑓)) = (((𝑦𝐺𝑧)‘𝑔)(⟨(𝐹𝑥), (𝐹𝑦)⟩(comp‘(𝐷cat 𝑅))(𝐹𝑧))((𝑥𝐺𝑦)‘𝑓))))))
102 funcres2b.a . . . . 5 𝐴 = (Base‘𝐶)
103 funcres2b.h . . . . 5 𝐻 = (Hom ‘𝐶)
104 eqid 2621 . . . . 5 (Id‘𝐶) = (Id‘𝐶)
105 eqid 2621 . . . . 5 (comp‘𝐶) = (comp‘𝐶)
106 simpr 477 . . . . 5 ((𝜑𝐶 ∈ Cat) → 𝐶 ∈ Cat)
10719adantr 481 . . . . 5 ((𝜑𝐶 ∈ Cat) → 𝐷 ∈ Cat)
108102, 14, 103, 31, 104, 86, 105, 91, 106, 107isfunc 16464 . . . 4 ((𝜑𝐶 ∈ Cat) → (𝐹(𝐶 Func 𝐷)𝐺 ↔ (𝐹:𝐴⟶(Base‘𝐷) ∧ 𝐺X𝑧 ∈ (𝐴 × 𝐴)(((𝐹‘(1st𝑧))(Hom ‘𝐷)(𝐹‘(2nd𝑧))) ↑𝑚 (𝐻𝑧)) ∧ ∀𝑥𝐴 (((𝑥𝐺𝑥)‘((Id‘𝐶)‘𝑥)) = ((Id‘𝐷)‘(𝐹𝑥)) ∧ ∀𝑦𝐴𝑧𝐴𝑓 ∈ (𝑥𝐻𝑦)∀𝑔 ∈ (𝑦𝐻𝑧)((𝑥𝐺𝑧)‘(𝑔(⟨𝑥, 𝑦⟩(comp‘𝐶)𝑧)𝑓)) = (((𝑦𝐺𝑧)‘𝑔)(⟨(𝐹𝑥), (𝐹𝑦)⟩(comp‘𝐷)(𝐹𝑧))((𝑥𝐺𝑦)‘𝑓))))))
109 eqid 2621 . . . . 5 (Base‘(𝐷cat 𝑅)) = (Base‘(𝐷cat 𝑅))
110 eqid 2621 . . . . 5 (Hom ‘(𝐷cat 𝑅)) = (Hom ‘(𝐷cat 𝑅))
111 eqid 2621 . . . . 5 (Id‘(𝐷cat 𝑅)) = (Id‘(𝐷cat 𝑅))
112 eqid 2621 . . . . 5 (comp‘(𝐷cat 𝑅)) = (comp‘(𝐷cat 𝑅))
11317, 12subccat 16448 . . . . . 6 (𝜑 → (𝐷cat 𝑅) ∈ Cat)
114113adantr 481 . . . . 5 ((𝜑𝐶 ∈ Cat) → (𝐷cat 𝑅) ∈ Cat)
115102, 109, 103, 110, 104, 111, 105, 112, 106, 114isfunc 16464 . . . 4 ((𝜑𝐶 ∈ Cat) → (𝐹(𝐶 Func (𝐷cat 𝑅))𝐺 ↔ (𝐹:𝐴⟶(Base‘(𝐷cat 𝑅)) ∧ 𝐺X𝑧 ∈ (𝐴 × 𝐴)(((𝐹‘(1st𝑧))(Hom ‘(𝐷cat 𝑅))(𝐹‘(2nd𝑧))) ↑𝑚 (𝐻𝑧)) ∧ ∀𝑥𝐴 (((𝑥𝐺𝑥)‘((Id‘𝐶)‘𝑥)) = ((Id‘(𝐷cat 𝑅))‘(𝐹𝑥)) ∧ ∀𝑦𝐴𝑧𝐴𝑓 ∈ (𝑥𝐻𝑦)∀𝑔 ∈ (𝑦𝐻𝑧)((𝑥𝐺𝑧)‘(𝑔(⟨𝑥, 𝑦⟩(comp‘𝐶)𝑧)𝑓)) = (((𝑦𝐺𝑧)‘𝑔)(⟨(𝐹𝑥), (𝐹𝑦)⟩(comp‘(𝐷cat 𝑅))(𝐹𝑧))((𝑥𝐺𝑦)‘𝑓))))))
116101, 108, 1153bitr4d 300 . . 3 ((𝜑𝐶 ∈ Cat) → (𝐹(𝐶 Func 𝐷)𝐺𝐹(𝐶 Func (𝐷cat 𝑅))𝐺))
117116ex 450 . 2 (𝜑 → (𝐶 ∈ Cat → (𝐹(𝐶 Func 𝐷)𝐺𝐹(𝐶 Func (𝐷cat 𝑅))𝐺)))
1185, 10, 117pm5.21ndd 369 1 (𝜑 → (𝐹(𝐶 Func 𝐷)𝐺𝐹(𝐶 Func (𝐷cat 𝑅))𝐺))
Colors of variables: wff setvar class
Syntax hints:  wi 4  wb 196  wa 384  w3a 1036   = wceq 1480  wcel 1987  wral 2908  Vcvv 3190  wss 3560  cop 4161   class class class wbr 4623   × cxp 5082  ran crn 5085   Fn wfn 5852  wf 5853  cfv 5857  (class class class)co 6615  1st c1st 7126  2nd c2nd 7127  𝑚 cmap 7817  Xcixp 7868  Basecbs 15800  Hom chom 15892  compcco 15893  Catccat 16265  Idccid 16266  cat cresc 16408  Subcatcsubc 16409   Func cfunc 16454
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1719  ax-4 1734  ax-5 1836  ax-6 1885  ax-7 1932  ax-8 1989  ax-9 1996  ax-10 2016  ax-11 2031  ax-12 2044  ax-13 2245  ax-ext 2601  ax-rep 4741  ax-sep 4751  ax-nul 4759  ax-pow 4813  ax-pr 4877  ax-un 6914  ax-cnex 9952  ax-resscn 9953  ax-1cn 9954  ax-icn 9955  ax-addcl 9956  ax-addrcl 9957  ax-mulcl 9958  ax-mulrcl 9959  ax-mulcom 9960  ax-addass 9961  ax-mulass 9962  ax-distr 9963  ax-i2m1 9964  ax-1ne0 9965  ax-1rid 9966  ax-rnegex 9967  ax-rrecex 9968  ax-cnre 9969  ax-pre-lttri 9970  ax-pre-lttrn 9971  ax-pre-ltadd 9972  ax-pre-mulgt0 9973
This theorem depends on definitions:  df-bi 197  df-or 385  df-an 386  df-3or 1037  df-3an 1038  df-tru 1483  df-fal 1486  df-ex 1702  df-nf 1707  df-sb 1878  df-eu 2473  df-mo 2474  df-clab 2608  df-cleq 2614  df-clel 2617  df-nfc 2750  df-ne 2791  df-nel 2894  df-ral 2913  df-rex 2914  df-reu 2915  df-rmo 2916  df-rab 2917  df-v 3192  df-sbc 3423  df-csb 3520  df-dif 3563  df-un 3565  df-in 3567  df-ss 3574  df-pss 3576  df-nul 3898  df-if 4065  df-pw 4138  df-sn 4156  df-pr 4158  df-tp 4160  df-op 4162  df-uni 4410  df-iun 4494  df-br 4624  df-opab 4684  df-mpt 4685  df-tr 4723  df-eprel 4995  df-id 4999  df-po 5005  df-so 5006  df-fr 5043  df-we 5045  df-xp 5090  df-rel 5091  df-cnv 5092  df-co 5093  df-dm 5094  df-rn 5095  df-res 5096  df-ima 5097  df-pred 5649  df-ord 5695  df-on 5696  df-lim 5697  df-suc 5698  df-iota 5820  df-fun 5859  df-fn 5860  df-f 5861  df-f1 5862  df-fo 5863  df-f1o 5864  df-fv 5865  df-riota 6576  df-ov 6618  df-oprab 6619  df-mpt2 6620  df-om 7028  df-1st 7128  df-2nd 7129  df-wrecs 7367  df-recs 7428  df-rdg 7466  df-er 7702  df-map 7819  df-pm 7820  df-ixp 7869  df-en 7916  df-dom 7917  df-sdom 7918  df-pnf 10036  df-mnf 10037  df-xr 10038  df-ltxr 10039  df-le 10040  df-sub 10228  df-neg 10229  df-nn 10981  df-2 11039  df-3 11040  df-4 11041  df-5 11042  df-6 11043  df-7 11044  df-8 11045  df-9 11046  df-n0 11253  df-z 11338  df-dec 11454  df-ndx 15803  df-slot 15804  df-base 15805  df-sets 15806  df-ress 15807  df-hom 15906  df-cco 15907  df-cat 16269  df-cid 16270  df-homf 16271  df-ssc 16410  df-resc 16411  df-subc 16412  df-func 16458
This theorem is referenced by:  funcres2  16498  funcres2c  16501  fthres2b  16530
  Copyright terms: Public domain W3C validator