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

Theorem setcepi 17719
Description: An epimorphism of sets is a surjection. (Contributed by Mario Carneiro, 3-Jan-2017.)
Hypotheses
Ref Expression
setcmon.c 𝐶 = (SetCat‘𝑈)
setcmon.u (𝜑𝑈𝑉)
setcmon.x (𝜑𝑋𝑈)
setcmon.y (𝜑𝑌𝑈)
setcepi.h 𝐸 = (Epi‘𝐶)
setcepi.2 (𝜑 → 2o𝑈)
Assertion
Ref Expression
setcepi (𝜑 → (𝐹 ∈ (𝑋𝐸𝑌) ↔ 𝐹:𝑋onto𝑌))

Proof of Theorem setcepi
Dummy variables 𝑥 𝑔 𝑎 𝑧 are mutually distinct and distinct from all other variables.
StepHypRef Expression
1 eqid 2738 . . . . . 6 (Base‘𝐶) = (Base‘𝐶)
2 eqid 2738 . . . . . 6 (Hom ‘𝐶) = (Hom ‘𝐶)
3 eqid 2738 . . . . . 6 (comp‘𝐶) = (comp‘𝐶)
4 setcepi.h . . . . . 6 𝐸 = (Epi‘𝐶)
5 setcmon.u . . . . . . 7 (𝜑𝑈𝑉)
6 setcmon.c . . . . . . . 8 𝐶 = (SetCat‘𝑈)
76setccat 17716 . . . . . . 7 (𝑈𝑉𝐶 ∈ Cat)
85, 7syl 17 . . . . . 6 (𝜑𝐶 ∈ Cat)
9 setcmon.x . . . . . . 7 (𝜑𝑋𝑈)
106, 5setcbas 17709 . . . . . . 7 (𝜑𝑈 = (Base‘𝐶))
119, 10eleqtrd 2841 . . . . . 6 (𝜑𝑋 ∈ (Base‘𝐶))
12 setcmon.y . . . . . . 7 (𝜑𝑌𝑈)
1312, 10eleqtrd 2841 . . . . . 6 (𝜑𝑌 ∈ (Base‘𝐶))
141, 2, 3, 4, 8, 11, 13epihom 17371 . . . . 5 (𝜑 → (𝑋𝐸𝑌) ⊆ (𝑋(Hom ‘𝐶)𝑌))
1514sselda 3917 . . . 4 ((𝜑𝐹 ∈ (𝑋𝐸𝑌)) → 𝐹 ∈ (𝑋(Hom ‘𝐶)𝑌))
166, 5, 2, 9, 12elsetchom 17712 . . . . 5 (𝜑 → (𝐹 ∈ (𝑋(Hom ‘𝐶)𝑌) ↔ 𝐹:𝑋𝑌))
1716biimpa 476 . . . 4 ((𝜑𝐹 ∈ (𝑋(Hom ‘𝐶)𝑌)) → 𝐹:𝑋𝑌)
1815, 17syldan 590 . . 3 ((𝜑𝐹 ∈ (𝑋𝐸𝑌)) → 𝐹:𝑋𝑌)
1918frnd 6592 . . . 4 ((𝜑𝐹 ∈ (𝑋𝐸𝑌)) → ran 𝐹𝑌)
2018ffnd 6585 . . . . . . . . . . . . . 14 ((𝜑𝐹 ∈ (𝑋𝐸𝑌)) → 𝐹 Fn 𝑋)
21 fnfvelrn 6940 . . . . . . . . . . . . . 14 ((𝐹 Fn 𝑋𝑥𝑋) → (𝐹𝑥) ∈ ran 𝐹)
2220, 21sylan 579 . . . . . . . . . . . . 13 (((𝜑𝐹 ∈ (𝑋𝐸𝑌)) ∧ 𝑥𝑋) → (𝐹𝑥) ∈ ran 𝐹)
2322iftrued 4464 . . . . . . . . . . . 12 (((𝜑𝐹 ∈ (𝑋𝐸𝑌)) ∧ 𝑥𝑋) → if((𝐹𝑥) ∈ ran 𝐹, 1o, ∅) = 1o)
2423mpteq2dva 5170 . . . . . . . . . . 11 ((𝜑𝐹 ∈ (𝑋𝐸𝑌)) → (𝑥𝑋 ↦ if((𝐹𝑥) ∈ ran 𝐹, 1o, ∅)) = (𝑥𝑋 ↦ 1o))
2518ffvelrnda 6943 . . . . . . . . . . . 12 (((𝜑𝐹 ∈ (𝑋𝐸𝑌)) ∧ 𝑥𝑋) → (𝐹𝑥) ∈ 𝑌)
2618feqmptd 6819 . . . . . . . . . . . 12 ((𝜑𝐹 ∈ (𝑋𝐸𝑌)) → 𝐹 = (𝑥𝑋 ↦ (𝐹𝑥)))
27 eqidd 2739 . . . . . . . . . . . 12 ((𝜑𝐹 ∈ (𝑋𝐸𝑌)) → (𝑎𝑌 ↦ if(𝑎 ∈ ran 𝐹, 1o, ∅)) = (𝑎𝑌 ↦ if(𝑎 ∈ ran 𝐹, 1o, ∅)))
28 eleq1 2826 . . . . . . . . . . . . 13 (𝑎 = (𝐹𝑥) → (𝑎 ∈ ran 𝐹 ↔ (𝐹𝑥) ∈ ran 𝐹))
2928ifbid 4479 . . . . . . . . . . . 12 (𝑎 = (𝐹𝑥) → if(𝑎 ∈ ran 𝐹, 1o, ∅) = if((𝐹𝑥) ∈ ran 𝐹, 1o, ∅))
3025, 26, 27, 29fmptco 6983 . . . . . . . . . . 11 ((𝜑𝐹 ∈ (𝑋𝐸𝑌)) → ((𝑎𝑌 ↦ if(𝑎 ∈ ran 𝐹, 1o, ∅)) ∘ 𝐹) = (𝑥𝑋 ↦ if((𝐹𝑥) ∈ ran 𝐹, 1o, ∅)))
31 fconstmpt 5640 . . . . . . . . . . . . 13 (𝑌 × {1o}) = (𝑎𝑌 ↦ 1o)
3231a1i 11 . . . . . . . . . . . 12 ((𝜑𝐹 ∈ (𝑋𝐸𝑌)) → (𝑌 × {1o}) = (𝑎𝑌 ↦ 1o))
33 eqidd 2739 . . . . . . . . . . . 12 (𝑎 = (𝐹𝑥) → 1o = 1o)
3425, 26, 32, 33fmptco 6983 . . . . . . . . . . 11 ((𝜑𝐹 ∈ (𝑋𝐸𝑌)) → ((𝑌 × {1o}) ∘ 𝐹) = (𝑥𝑋 ↦ 1o))
3524, 30, 343eqtr4d 2788 . . . . . . . . . 10 ((𝜑𝐹 ∈ (𝑋𝐸𝑌)) → ((𝑎𝑌 ↦ if(𝑎 ∈ ran 𝐹, 1o, ∅)) ∘ 𝐹) = ((𝑌 × {1o}) ∘ 𝐹))
365adantr 480 . . . . . . . . . . 11 ((𝜑𝐹 ∈ (𝑋𝐸𝑌)) → 𝑈𝑉)
379adantr 480 . . . . . . . . . . 11 ((𝜑𝐹 ∈ (𝑋𝐸𝑌)) → 𝑋𝑈)
3812adantr 480 . . . . . . . . . . 11 ((𝜑𝐹 ∈ (𝑋𝐸𝑌)) → 𝑌𝑈)
39 setcepi.2 . . . . . . . . . . . 12 (𝜑 → 2o𝑈)
4039adantr 480 . . . . . . . . . . 11 ((𝜑𝐹 ∈ (𝑋𝐸𝑌)) → 2o𝑈)
41 eqid 2738 . . . . . . . . . . . . 13 (𝑎𝑌 ↦ if(𝑎 ∈ ran 𝐹, 1o, ∅)) = (𝑎𝑌 ↦ if(𝑎 ∈ ran 𝐹, 1o, ∅))
42 1oex 8280 . . . . . . . . . . . . . . . . 17 1o ∈ V
4342prid2 4696 . . . . . . . . . . . . . . . 16 1o ∈ {∅, 1o}
44 df2o3 8282 . . . . . . . . . . . . . . . 16 2o = {∅, 1o}
4543, 44eleqtrri 2838 . . . . . . . . . . . . . . 15 1o ∈ 2o
46 0ex 5226 . . . . . . . . . . . . . . . . 17 ∅ ∈ V
4746prid1 4695 . . . . . . . . . . . . . . . 16 ∅ ∈ {∅, 1o}
4847, 44eleqtrri 2838 . . . . . . . . . . . . . . 15 ∅ ∈ 2o
4945, 48ifcli 4503 . . . . . . . . . . . . . 14 if(𝑎 ∈ ran 𝐹, 1o, ∅) ∈ 2o
5049a1i 11 . . . . . . . . . . . . 13 (𝑎𝑌 → if(𝑎 ∈ ran 𝐹, 1o, ∅) ∈ 2o)
5141, 50fmpti 6968 . . . . . . . . . . . 12 (𝑎𝑌 ↦ if(𝑎 ∈ ran 𝐹, 1o, ∅)):𝑌⟶2o
5251a1i 11 . . . . . . . . . . 11 ((𝜑𝐹 ∈ (𝑋𝐸𝑌)) → (𝑎𝑌 ↦ if(𝑎 ∈ ran 𝐹, 1o, ∅)):𝑌⟶2o)
536, 36, 3, 37, 38, 40, 18, 52setcco 17714 . . . . . . . . . 10 ((𝜑𝐹 ∈ (𝑋𝐸𝑌)) → ((𝑎𝑌 ↦ if(𝑎 ∈ ran 𝐹, 1o, ∅))(⟨𝑋, 𝑌⟩(comp‘𝐶)2o)𝐹) = ((𝑎𝑌 ↦ if(𝑎 ∈ ran 𝐹, 1o, ∅)) ∘ 𝐹))
54 fconst6g 6647 . . . . . . . . . . . 12 (1o ∈ 2o → (𝑌 × {1o}):𝑌⟶2o)
5545, 54mp1i 13 . . . . . . . . . . 11 ((𝜑𝐹 ∈ (𝑋𝐸𝑌)) → (𝑌 × {1o}):𝑌⟶2o)
566, 36, 3, 37, 38, 40, 18, 55setcco 17714 . . . . . . . . . 10 ((𝜑𝐹 ∈ (𝑋𝐸𝑌)) → ((𝑌 × {1o})(⟨𝑋, 𝑌⟩(comp‘𝐶)2o)𝐹) = ((𝑌 × {1o}) ∘ 𝐹))
5735, 53, 563eqtr4d 2788 . . . . . . . . 9 ((𝜑𝐹 ∈ (𝑋𝐸𝑌)) → ((𝑎𝑌 ↦ if(𝑎 ∈ ran 𝐹, 1o, ∅))(⟨𝑋, 𝑌⟩(comp‘𝐶)2o)𝐹) = ((𝑌 × {1o})(⟨𝑋, 𝑌⟩(comp‘𝐶)2o)𝐹))
588adantr 480 . . . . . . . . . 10 ((𝜑𝐹 ∈ (𝑋𝐸𝑌)) → 𝐶 ∈ Cat)
5911adantr 480 . . . . . . . . . 10 ((𝜑𝐹 ∈ (𝑋𝐸𝑌)) → 𝑋 ∈ (Base‘𝐶))
6013adantr 480 . . . . . . . . . 10 ((𝜑𝐹 ∈ (𝑋𝐸𝑌)) → 𝑌 ∈ (Base‘𝐶))
6139, 10eleqtrd 2841 . . . . . . . . . . 11 (𝜑 → 2o ∈ (Base‘𝐶))
6261adantr 480 . . . . . . . . . 10 ((𝜑𝐹 ∈ (𝑋𝐸𝑌)) → 2o ∈ (Base‘𝐶))
63 simpr 484 . . . . . . . . . 10 ((𝜑𝐹 ∈ (𝑋𝐸𝑌)) → 𝐹 ∈ (𝑋𝐸𝑌))
646, 36, 2, 38, 40elsetchom 17712 . . . . . . . . . . 11 ((𝜑𝐹 ∈ (𝑋𝐸𝑌)) → ((𝑎𝑌 ↦ if(𝑎 ∈ ran 𝐹, 1o, ∅)) ∈ (𝑌(Hom ‘𝐶)2o) ↔ (𝑎𝑌 ↦ if(𝑎 ∈ ran 𝐹, 1o, ∅)):𝑌⟶2o))
6552, 64mpbird 256 . . . . . . . . . 10 ((𝜑𝐹 ∈ (𝑋𝐸𝑌)) → (𝑎𝑌 ↦ if(𝑎 ∈ ran 𝐹, 1o, ∅)) ∈ (𝑌(Hom ‘𝐶)2o))
666, 36, 2, 38, 40elsetchom 17712 . . . . . . . . . . 11 ((𝜑𝐹 ∈ (𝑋𝐸𝑌)) → ((𝑌 × {1o}) ∈ (𝑌(Hom ‘𝐶)2o) ↔ (𝑌 × {1o}):𝑌⟶2o))
6755, 66mpbird 256 . . . . . . . . . 10 ((𝜑𝐹 ∈ (𝑋𝐸𝑌)) → (𝑌 × {1o}) ∈ (𝑌(Hom ‘𝐶)2o))
681, 2, 3, 4, 58, 59, 60, 62, 63, 65, 67epii 17372 . . . . . . . . 9 ((𝜑𝐹 ∈ (𝑋𝐸𝑌)) → (((𝑎𝑌 ↦ if(𝑎 ∈ ran 𝐹, 1o, ∅))(⟨𝑋, 𝑌⟩(comp‘𝐶)2o)𝐹) = ((𝑌 × {1o})(⟨𝑋, 𝑌⟩(comp‘𝐶)2o)𝐹) ↔ (𝑎𝑌 ↦ if(𝑎 ∈ ran 𝐹, 1o, ∅)) = (𝑌 × {1o})))
6957, 68mpbid 231 . . . . . . . 8 ((𝜑𝐹 ∈ (𝑋𝐸𝑌)) → (𝑎𝑌 ↦ if(𝑎 ∈ ran 𝐹, 1o, ∅)) = (𝑌 × {1o}))
7069, 31eqtrdi 2795 . . . . . . 7 ((𝜑𝐹 ∈ (𝑋𝐸𝑌)) → (𝑎𝑌 ↦ if(𝑎 ∈ ran 𝐹, 1o, ∅)) = (𝑎𝑌 ↦ 1o))
7149rgenw 3075 . . . . . . . 8 𝑎𝑌 if(𝑎 ∈ ran 𝐹, 1o, ∅) ∈ 2o
72 mpteqb 6876 . . . . . . . 8 (∀𝑎𝑌 if(𝑎 ∈ ran 𝐹, 1o, ∅) ∈ 2o → ((𝑎𝑌 ↦ if(𝑎 ∈ ran 𝐹, 1o, ∅)) = (𝑎𝑌 ↦ 1o) ↔ ∀𝑎𝑌 if(𝑎 ∈ ran 𝐹, 1o, ∅) = 1o))
7371, 72ax-mp 5 . . . . . . 7 ((𝑎𝑌 ↦ if(𝑎 ∈ ran 𝐹, 1o, ∅)) = (𝑎𝑌 ↦ 1o) ↔ ∀𝑎𝑌 if(𝑎 ∈ ran 𝐹, 1o, ∅) = 1o)
7470, 73sylib 217 . . . . . 6 ((𝜑𝐹 ∈ (𝑋𝐸𝑌)) → ∀𝑎𝑌 if(𝑎 ∈ ran 𝐹, 1o, ∅) = 1o)
75 1n0 8286 . . . . . . . . . 10 1o ≠ ∅
7675nesymi 3000 . . . . . . . . 9 ¬ ∅ = 1o
77 iffalse 4465 . . . . . . . . . 10 𝑎 ∈ ran 𝐹 → if(𝑎 ∈ ran 𝐹, 1o, ∅) = ∅)
7877eqeq1d 2740 . . . . . . . . 9 𝑎 ∈ ran 𝐹 → (if(𝑎 ∈ ran 𝐹, 1o, ∅) = 1o ↔ ∅ = 1o))
7976, 78mtbiri 326 . . . . . . . 8 𝑎 ∈ ran 𝐹 → ¬ if(𝑎 ∈ ran 𝐹, 1o, ∅) = 1o)
8079con4i 114 . . . . . . 7 (if(𝑎 ∈ ran 𝐹, 1o, ∅) = 1o𝑎 ∈ ran 𝐹)
8180ralimi 3086 . . . . . 6 (∀𝑎𝑌 if(𝑎 ∈ ran 𝐹, 1o, ∅) = 1o → ∀𝑎𝑌 𝑎 ∈ ran 𝐹)
8274, 81syl 17 . . . . 5 ((𝜑𝐹 ∈ (𝑋𝐸𝑌)) → ∀𝑎𝑌 𝑎 ∈ ran 𝐹)
83 dfss3 3905 . . . . 5 (𝑌 ⊆ ran 𝐹 ↔ ∀𝑎𝑌 𝑎 ∈ ran 𝐹)
8482, 83sylibr 233 . . . 4 ((𝜑𝐹 ∈ (𝑋𝐸𝑌)) → 𝑌 ⊆ ran 𝐹)
8519, 84eqssd 3934 . . 3 ((𝜑𝐹 ∈ (𝑋𝐸𝑌)) → ran 𝐹 = 𝑌)
86 dffo2 6676 . . 3 (𝐹:𝑋onto𝑌 ↔ (𝐹:𝑋𝑌 ∧ ran 𝐹 = 𝑌))
8718, 85, 86sylanbrc 582 . 2 ((𝜑𝐹 ∈ (𝑋𝐸𝑌)) → 𝐹:𝑋onto𝑌)
88 fof 6672 . . . . 5 (𝐹:𝑋onto𝑌𝐹:𝑋𝑌)
8988adantl 481 . . . 4 ((𝜑𝐹:𝑋onto𝑌) → 𝐹:𝑋𝑌)
9016biimpar 477 . . . 4 ((𝜑𝐹:𝑋𝑌) → 𝐹 ∈ (𝑋(Hom ‘𝐶)𝑌))
9189, 90syldan 590 . . 3 ((𝜑𝐹:𝑋onto𝑌) → 𝐹 ∈ (𝑋(Hom ‘𝐶)𝑌))
9210adantr 480 . . . . . 6 ((𝜑𝐹:𝑋onto𝑌) → 𝑈 = (Base‘𝐶))
9392eleq2d 2824 . . . . 5 ((𝜑𝐹:𝑋onto𝑌) → (𝑧𝑈𝑧 ∈ (Base‘𝐶)))
945ad2antrr 722 . . . . . . . . . . 11 (((𝜑𝐹:𝑋onto𝑌) ∧ (𝑧𝑈 ∧ (𝑔 ∈ (𝑌(Hom ‘𝐶)𝑧) ∧ ∈ (𝑌(Hom ‘𝐶)𝑧)))) → 𝑈𝑉)
959ad2antrr 722 . . . . . . . . . . 11 (((𝜑𝐹:𝑋onto𝑌) ∧ (𝑧𝑈 ∧ (𝑔 ∈ (𝑌(Hom ‘𝐶)𝑧) ∧ ∈ (𝑌(Hom ‘𝐶)𝑧)))) → 𝑋𝑈)
9612ad2antrr 722 . . . . . . . . . . 11 (((𝜑𝐹:𝑋onto𝑌) ∧ (𝑧𝑈 ∧ (𝑔 ∈ (𝑌(Hom ‘𝐶)𝑧) ∧ ∈ (𝑌(Hom ‘𝐶)𝑧)))) → 𝑌𝑈)
97 simprl 767 . . . . . . . . . . 11 (((𝜑𝐹:𝑋onto𝑌) ∧ (𝑧𝑈 ∧ (𝑔 ∈ (𝑌(Hom ‘𝐶)𝑧) ∧ ∈ (𝑌(Hom ‘𝐶)𝑧)))) → 𝑧𝑈)
9889adantr 480 . . . . . . . . . . 11 (((𝜑𝐹:𝑋onto𝑌) ∧ (𝑧𝑈 ∧ (𝑔 ∈ (𝑌(Hom ‘𝐶)𝑧) ∧ ∈ (𝑌(Hom ‘𝐶)𝑧)))) → 𝐹:𝑋𝑌)
99 simprrl 777 . . . . . . . . . . . 12 (((𝜑𝐹:𝑋onto𝑌) ∧ (𝑧𝑈 ∧ (𝑔 ∈ (𝑌(Hom ‘𝐶)𝑧) ∧ ∈ (𝑌(Hom ‘𝐶)𝑧)))) → 𝑔 ∈ (𝑌(Hom ‘𝐶)𝑧))
1006, 94, 2, 96, 97elsetchom 17712 . . . . . . . . . . . 12 (((𝜑𝐹:𝑋onto𝑌) ∧ (𝑧𝑈 ∧ (𝑔 ∈ (𝑌(Hom ‘𝐶)𝑧) ∧ ∈ (𝑌(Hom ‘𝐶)𝑧)))) → (𝑔 ∈ (𝑌(Hom ‘𝐶)𝑧) ↔ 𝑔:𝑌𝑧))
10199, 100mpbid 231 . . . . . . . . . . 11 (((𝜑𝐹:𝑋onto𝑌) ∧ (𝑧𝑈 ∧ (𝑔 ∈ (𝑌(Hom ‘𝐶)𝑧) ∧ ∈ (𝑌(Hom ‘𝐶)𝑧)))) → 𝑔:𝑌𝑧)
1026, 94, 3, 95, 96, 97, 98, 101setcco 17714 . . . . . . . . . 10 (((𝜑𝐹:𝑋onto𝑌) ∧ (𝑧𝑈 ∧ (𝑔 ∈ (𝑌(Hom ‘𝐶)𝑧) ∧ ∈ (𝑌(Hom ‘𝐶)𝑧)))) → (𝑔(⟨𝑋, 𝑌⟩(comp‘𝐶)𝑧)𝐹) = (𝑔𝐹))
103 simprrr 778 . . . . . . . . . . . 12 (((𝜑𝐹:𝑋onto𝑌) ∧ (𝑧𝑈 ∧ (𝑔 ∈ (𝑌(Hom ‘𝐶)𝑧) ∧ ∈ (𝑌(Hom ‘𝐶)𝑧)))) → ∈ (𝑌(Hom ‘𝐶)𝑧))
1046, 94, 2, 96, 97elsetchom 17712 . . . . . . . . . . . 12 (((𝜑𝐹:𝑋onto𝑌) ∧ (𝑧𝑈 ∧ (𝑔 ∈ (𝑌(Hom ‘𝐶)𝑧) ∧ ∈ (𝑌(Hom ‘𝐶)𝑧)))) → ( ∈ (𝑌(Hom ‘𝐶)𝑧) ↔ :𝑌𝑧))
105103, 104mpbid 231 . . . . . . . . . . 11 (((𝜑𝐹:𝑋onto𝑌) ∧ (𝑧𝑈 ∧ (𝑔 ∈ (𝑌(Hom ‘𝐶)𝑧) ∧ ∈ (𝑌(Hom ‘𝐶)𝑧)))) → :𝑌𝑧)
1066, 94, 3, 95, 96, 97, 98, 105setcco 17714 . . . . . . . . . 10 (((𝜑𝐹:𝑋onto𝑌) ∧ (𝑧𝑈 ∧ (𝑔 ∈ (𝑌(Hom ‘𝐶)𝑧) ∧ ∈ (𝑌(Hom ‘𝐶)𝑧)))) → ((⟨𝑋, 𝑌⟩(comp‘𝐶)𝑧)𝐹) = (𝐹))
107102, 106eqeq12d 2754 . . . . . . . . 9 (((𝜑𝐹:𝑋onto𝑌) ∧ (𝑧𝑈 ∧ (𝑔 ∈ (𝑌(Hom ‘𝐶)𝑧) ∧ ∈ (𝑌(Hom ‘𝐶)𝑧)))) → ((𝑔(⟨𝑋, 𝑌⟩(comp‘𝐶)𝑧)𝐹) = ((⟨𝑋, 𝑌⟩(comp‘𝐶)𝑧)𝐹) ↔ (𝑔𝐹) = (𝐹)))
108 simplr 765 . . . . . . . . . . 11 (((𝜑𝐹:𝑋onto𝑌) ∧ (𝑧𝑈 ∧ (𝑔 ∈ (𝑌(Hom ‘𝐶)𝑧) ∧ ∈ (𝑌(Hom ‘𝐶)𝑧)))) → 𝐹:𝑋onto𝑌)
109101ffnd 6585 . . . . . . . . . . 11 (((𝜑𝐹:𝑋onto𝑌) ∧ (𝑧𝑈 ∧ (𝑔 ∈ (𝑌(Hom ‘𝐶)𝑧) ∧ ∈ (𝑌(Hom ‘𝐶)𝑧)))) → 𝑔 Fn 𝑌)
110105ffnd 6585 . . . . . . . . . . 11 (((𝜑𝐹:𝑋onto𝑌) ∧ (𝑧𝑈 ∧ (𝑔 ∈ (𝑌(Hom ‘𝐶)𝑧) ∧ ∈ (𝑌(Hom ‘𝐶)𝑧)))) → Fn 𝑌)
111 cocan2 7144 . . . . . . . . . . 11 ((𝐹:𝑋onto𝑌𝑔 Fn 𝑌 Fn 𝑌) → ((𝑔𝐹) = (𝐹) ↔ 𝑔 = ))
112108, 109, 110, 111syl3anc 1369 . . . . . . . . . 10 (((𝜑𝐹:𝑋onto𝑌) ∧ (𝑧𝑈 ∧ (𝑔 ∈ (𝑌(Hom ‘𝐶)𝑧) ∧ ∈ (𝑌(Hom ‘𝐶)𝑧)))) → ((𝑔𝐹) = (𝐹) ↔ 𝑔 = ))
113112biimpd 228 . . . . . . . . 9 (((𝜑𝐹:𝑋onto𝑌) ∧ (𝑧𝑈 ∧ (𝑔 ∈ (𝑌(Hom ‘𝐶)𝑧) ∧ ∈ (𝑌(Hom ‘𝐶)𝑧)))) → ((𝑔𝐹) = (𝐹) → 𝑔 = ))
114107, 113sylbid 239 . . . . . . . 8 (((𝜑𝐹:𝑋onto𝑌) ∧ (𝑧𝑈 ∧ (𝑔 ∈ (𝑌(Hom ‘𝐶)𝑧) ∧ ∈ (𝑌(Hom ‘𝐶)𝑧)))) → ((𝑔(⟨𝑋, 𝑌⟩(comp‘𝐶)𝑧)𝐹) = ((⟨𝑋, 𝑌⟩(comp‘𝐶)𝑧)𝐹) → 𝑔 = ))
115114anassrs 467 . . . . . . 7 ((((𝜑𝐹:𝑋onto𝑌) ∧ 𝑧𝑈) ∧ (𝑔 ∈ (𝑌(Hom ‘𝐶)𝑧) ∧ ∈ (𝑌(Hom ‘𝐶)𝑧))) → ((𝑔(⟨𝑋, 𝑌⟩(comp‘𝐶)𝑧)𝐹) = ((⟨𝑋, 𝑌⟩(comp‘𝐶)𝑧)𝐹) → 𝑔 = ))
116115ralrimivva 3114 . . . . . 6 (((𝜑𝐹:𝑋onto𝑌) ∧ 𝑧𝑈) → ∀𝑔 ∈ (𝑌(Hom ‘𝐶)𝑧)∀ ∈ (𝑌(Hom ‘𝐶)𝑧)((𝑔(⟨𝑋, 𝑌⟩(comp‘𝐶)𝑧)𝐹) = ((⟨𝑋, 𝑌⟩(comp‘𝐶)𝑧)𝐹) → 𝑔 = ))
117116ex 412 . . . . 5 ((𝜑𝐹:𝑋onto𝑌) → (𝑧𝑈 → ∀𝑔 ∈ (𝑌(Hom ‘𝐶)𝑧)∀ ∈ (𝑌(Hom ‘𝐶)𝑧)((𝑔(⟨𝑋, 𝑌⟩(comp‘𝐶)𝑧)𝐹) = ((⟨𝑋, 𝑌⟩(comp‘𝐶)𝑧)𝐹) → 𝑔 = )))
11893, 117sylbird 259 . . . 4 ((𝜑𝐹:𝑋onto𝑌) → (𝑧 ∈ (Base‘𝐶) → ∀𝑔 ∈ (𝑌(Hom ‘𝐶)𝑧)∀ ∈ (𝑌(Hom ‘𝐶)𝑧)((𝑔(⟨𝑋, 𝑌⟩(comp‘𝐶)𝑧)𝐹) = ((⟨𝑋, 𝑌⟩(comp‘𝐶)𝑧)𝐹) → 𝑔 = )))
119118ralrimiv 3106 . . 3 ((𝜑𝐹:𝑋onto𝑌) → ∀𝑧 ∈ (Base‘𝐶)∀𝑔 ∈ (𝑌(Hom ‘𝐶)𝑧)∀ ∈ (𝑌(Hom ‘𝐶)𝑧)((𝑔(⟨𝑋, 𝑌⟩(comp‘𝐶)𝑧)𝐹) = ((⟨𝑋, 𝑌⟩(comp‘𝐶)𝑧)𝐹) → 𝑔 = ))
1201, 2, 3, 4, 8, 11, 13isepi2 17370 . . . 4 (𝜑 → (𝐹 ∈ (𝑋𝐸𝑌) ↔ (𝐹 ∈ (𝑋(Hom ‘𝐶)𝑌) ∧ ∀𝑧 ∈ (Base‘𝐶)∀𝑔 ∈ (𝑌(Hom ‘𝐶)𝑧)∀ ∈ (𝑌(Hom ‘𝐶)𝑧)((𝑔(⟨𝑋, 𝑌⟩(comp‘𝐶)𝑧)𝐹) = ((⟨𝑋, 𝑌⟩(comp‘𝐶)𝑧)𝐹) → 𝑔 = ))))
121120adantr 480 . . 3 ((𝜑𝐹:𝑋onto𝑌) → (𝐹 ∈ (𝑋𝐸𝑌) ↔ (𝐹 ∈ (𝑋(Hom ‘𝐶)𝑌) ∧ ∀𝑧 ∈ (Base‘𝐶)∀𝑔 ∈ (𝑌(Hom ‘𝐶)𝑧)∀ ∈ (𝑌(Hom ‘𝐶)𝑧)((𝑔(⟨𝑋, 𝑌⟩(comp‘𝐶)𝑧)𝐹) = ((⟨𝑋, 𝑌⟩(comp‘𝐶)𝑧)𝐹) → 𝑔 = ))))
12291, 119, 121mpbir2and 709 . 2 ((𝜑𝐹:𝑋onto𝑌) → 𝐹 ∈ (𝑋𝐸𝑌))
12387, 122impbida 797 1 (𝜑 → (𝐹 ∈ (𝑋𝐸𝑌) ↔ 𝐹:𝑋onto𝑌))
Colors of variables: wff setvar class
Syntax hints:  ¬ wn 3  wi 4  wb 205  wa 395   = wceq 1539  wcel 2108  wral 3063  wss 3883  c0 4253  ifcif 4456  {csn 4558  {cpr 4560  cop 4564  cmpt 5153   × cxp 5578  ran crn 5581  ccom 5584   Fn wfn 6413  wf 6414  ontowfo 6416  cfv 6418  (class class class)co 7255  1oc1o 8260  2oc2o 8261  Basecbs 16840  Hom chom 16899  compcco 16900  Catccat 17290  Epicepi 17358  SetCatcsetc 17706
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-tpos 8013  df-frecs 8068  df-wrecs 8099  df-recs 8173  df-rdg 8212  df-1o 8267  df-2o 8268  df-er 8456  df-map 8575  df-en 8692  df-dom 8693  df-sdom 8694  df-fin 8695  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-uz 12512  df-fz 13169  df-struct 16776  df-sets 16793  df-slot 16811  df-ndx 16823  df-base 16841  df-hom 16912  df-cco 16913  df-cat 17294  df-cid 17295  df-oppc 17338  df-mon 17359  df-epi 17360  df-setc 17707
This theorem is referenced by: (None)
  Copyright terms: Public domain W3C validator