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

Theorem setcepi 18224
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 2760 . . . . . 6 (Base‘𝐶) = (Base‘𝐶)
2 eqid 2760 . . . . . 6 (Hom ‘𝐶) = (Hom ‘𝐶)
3 eqid 2760 . . . . . 6 (comp‘𝐶) = (comp‘𝐶)
4 setcepi.h . . . . . 6 𝐸 = (Epi‘𝐶)
5 setcmon.u . . . . . . 7 (𝜑 → 𝑈 ∈ 𝑉)
6 setcmon.c . . . . . . . 8 𝐶 = (SetCat‘𝑈)
76setccat 18221 . . . . . . 7 (𝑈 ∈ 𝑉 → 𝐶 ∈ Cat)
85, 7syl 18 . . . . . 6 (𝜑 → 𝐶 ∈ Cat)
9 setcmon.x . . . . . . 7 (𝜑 → 𝑋 ∈ 𝑈)
106, 5setcbas 18214 . . . . . . 7 (𝜑 → 𝑈 = (Base‘𝐶))
119, 10eleqtrd 2862 . . . . . 6 (𝜑 → 𝑋 ∈ (Base‘𝐶))
12 setcmon.y . . . . . . 7 (𝜑 → 𝑌 ∈ 𝑈)
1312, 10eleqtrd 2862 . . . . . 6 (𝜑 → 𝑌 ∈ (Base‘𝐶))
141, 2, 3, 4, 8, 11, 13epihom 17878 . . . . 5 (𝜑 → (𝑋𝐸𝑌) ⊆ (𝑋(Hom ‘𝐶)𝑌))
1514sselda 3930 . . . 4 ((𝜑 ∧ 𝐹 ∈ (𝑋𝐸𝑌)) → 𝐹 ∈ (𝑋(Hom ‘𝐶)𝑌))
166, 5, 2, 9, 12elsetchom 18217 . . . . 5 (𝜑 → (𝐹 ∈ (𝑋(Hom ‘𝐶)𝑌) ↔ 𝐹:𝑋⟶𝑌))
1716biimpa 482 . . . 4 ((𝜑 ∧ 𝐹 ∈ (𝑋(Hom ‘𝐶)𝑌)) → 𝐹:𝑋⟶𝑌)
1815, 17syldan 603 . . 3 ((𝜑 ∧ 𝐹 ∈ (𝑋𝐸𝑌)) → 𝐹:𝑋⟶𝑌)
1918frnd 6706 . . . 4 ((𝜑 ∧ 𝐹 ∈ (𝑋𝐸𝑌)) → ran 𝐹 ⊆ 𝑌)
2018ffnd 6698 . . . . . . . . . . . . . 14 ((𝜑 ∧ 𝐹 ∈ (𝑋𝐸𝑌)) → 𝐹 Fn 𝑋)
21 fnfvelrn 7068 . . . . . . . . . . . . . 14 ((𝐹 Fn 𝑋 ∧ 𝑥 ∈ 𝑋) → (𝐹‘𝑥) ∈ ran 𝐹)
2220, 21sylan 592 . . . . . . . . . . . . 13 (((𝜑 ∧ 𝐹 ∈ (𝑋𝐸𝑌)) ∧ 𝑥 ∈ 𝑋) → (𝐹‘𝑥) ∈ ran 𝐹)
2322iftrued 4489 . . . . . . . . . . . 12 (((𝜑 ∧ 𝐹 ∈ (𝑋𝐸𝑌)) ∧ 𝑥 ∈ 𝑋) → if((𝐹‘𝑥) ∈ ran 𝐹, 1o, ∅) = 1o)
2423mpteq2dva 5197 . . . . . . . . . . 11 ((𝜑 ∧ 𝐹 ∈ (𝑋𝐸𝑌)) → (𝑥 ∈ 𝑋 ↦ if((𝐹‘𝑥) ∈ ran 𝐹, 1o, ∅)) = (𝑥 ∈ 𝑋 ↦ 1o))
2518ffvelcdmda 7072 . . . . . . . . . . . 12 (((𝜑 ∧ 𝐹 ∈ (𝑋𝐸𝑌)) ∧ 𝑥 ∈ 𝑋) → (𝐹‘𝑥) ∈ 𝑌)
2618feqmptd 6941 . . . . . . . . . . . 12 ((𝜑 ∧ 𝐹 ∈ (𝑋𝐸𝑌)) → 𝐹 = (𝑥 ∈ 𝑋 ↦ (𝐹‘𝑥)))
27 eqidd 2761 . . . . . . . . . . . 12 ((𝜑 ∧ 𝐹 ∈ (𝑋𝐸𝑌)) → (𝑎 ∈ 𝑌 ↦ if(𝑎 ∈ ran 𝐹, 1o, ∅)) = (𝑎 ∈ 𝑌 ↦ if(𝑎 ∈ ran 𝐹, 1o, ∅)))
28 eleq1 2848 . . . . . . . . . . . . 13 (𝑎 = (𝐹‘𝑥) → (𝑎 ∈ ran 𝐹 ↔ (𝐹‘𝑥) ∈ ran 𝐹))
2928ifbid 4505 . . . . . . . . . . . 12 (𝑎 = (𝐹‘𝑥) → if(𝑎 ∈ ran 𝐹, 1o, ∅) = if((𝐹‘𝑥) ∈ ran 𝐹, 1o, ∅))
3025, 26, 27, 29fmptco 7118 . . . . . . . . . . 11 ((𝜑 ∧ 𝐹 ∈ (𝑋𝐸𝑌)) → ((𝑎 ∈ 𝑌 ↦ if(𝑎 ∈ ran 𝐹, 1o, ∅)) ∘ 𝐹) = (𝑥 ∈ 𝑋 ↦ if((𝐹‘𝑥) ∈ ran 𝐹, 1o, ∅)))
31 fconstmpt 5709 . . . . . . . . . . . . 13 (𝑌 × {1o}) = (𝑎 ∈ 𝑌 ↦ 1o)
3231a1i 11 . . . . . . . . . . . 12 ((𝜑 ∧ 𝐹 ∈ (𝑋𝐸𝑌)) → (𝑌 × {1o}) = (𝑎 ∈ 𝑌 ↦ 1o))
33 eqidd 2761 . . . . . . . . . . . 12 (𝑎 = (𝐹‘𝑥) → 1o = 1o)
3425, 26, 32, 33fmptco 7118 . . . . . . . . . . 11 ((𝜑 ∧ 𝐹 ∈ (𝑋𝐸𝑌)) → ((𝑌 × {1o}) ∘ 𝐹) = (𝑥 ∈ 𝑋 ↦ 1o))
3524, 30, 343eqtr4d 2805 . . . . . . . . . 10 ((𝜑 ∧ 𝐹 ∈ (𝑋𝐸𝑌)) → ((𝑎 ∈ 𝑌 ↦ if(𝑎 ∈ ran 𝐹, 1o, ∅)) ∘ 𝐹) = ((𝑌 × {1o}) ∘ 𝐹))
365adantr 486 . . . . . . . . . . 11 ((𝜑 ∧ 𝐹 ∈ (𝑋𝐸𝑌)) → 𝑈 ∈ 𝑉)
379adantr 486 . . . . . . . . . . 11 ((𝜑 ∧ 𝐹 ∈ (𝑋𝐸𝑌)) → 𝑋 ∈ 𝑈)
3812adantr 486 . . . . . . . . . . 11 ((𝜑 ∧ 𝐹 ∈ (𝑋𝐸𝑌)) → 𝑌 ∈ 𝑈)
39 setcepi.2 . . . . . . . . . . . 12 (𝜑 → 2o ∈ 𝑈)
4039adantr 486 . . . . . . . . . . 11 ((𝜑 ∧ 𝐹 ∈ (𝑋𝐸𝑌)) → 2o ∈ 𝑈)
41 eqid 2760 . . . . . . . . . . . . 13 (𝑎 ∈ 𝑌 ↦ if(𝑎 ∈ ran 𝐹, 1o, ∅)) = (𝑎 ∈ 𝑌 ↦ if(𝑎 ∈ ran 𝐹, 1o, ∅))
42 1oelpr 8465 . . . . . . . . . . . . . . . 16 1o ∈ {∅, 1o}
43 df2o3 8462 . . . . . . . . . . . . . . . 16 2o = {∅, 1o}
4442, 43eleqtrri 2859 . . . . . . . . . . . . . . 15 1o ∈ 2o
45 0ex 5260 . . . . . . . . . . . . . . . . 17 ∅ ∈ V
4645prid1 4722 . . . . . . . . . . . . . . . 16 ∅ ∈ {∅, 1o}
4746, 43eleqtrri 2859 . . . . . . . . . . . . . . 15 ∅ ∈ 2o
4844, 47ifcli 4529 . . . . . . . . . . . . . 14 if(𝑎 ∈ ran 𝐹, 1o, ∅) ∈ 2o
4948a1i 11 . . . . . . . . . . . . 13 (𝑎 ∈ 𝑌 → if(𝑎 ∈ ran 𝐹, 1o, ∅) ∈ 2o)
5041, 49fmpti 7100 . . . . . . . . . . . 12 (𝑎 ∈ 𝑌 ↦ if(𝑎 ∈ ran 𝐹, 1o, ∅)):𝑌⟶2o
5150a1i 11 . . . . . . . . . . 11 ((𝜑 ∧ 𝐹 ∈ (𝑋𝐸𝑌)) → (𝑎 ∈ 𝑌 ↦ if(𝑎 ∈ ran 𝐹, 1o, ∅)):𝑌⟶2o)
526, 36, 3, 37, 38, 40, 18, 51setcco 18219 . . . . . . . . . 10 ((𝜑 ∧ 𝐹 ∈ (𝑋𝐸𝑌)) → ((𝑎 ∈ 𝑌 ↦ if(𝑎 ∈ ran 𝐹, 1o, ∅))(⟨𝑋, 𝑌⟩(comp‘𝐶)2o)𝐹) = ((𝑎 ∈ 𝑌 ↦ if(𝑎 ∈ ran 𝐹, 1o, ∅)) ∘ 𝐹))
53 fconst6g 6759 . . . . . . . . . . . 12 (1o ∈ 2o → (𝑌 × {1o}):𝑌⟶2o)
5444, 53mp1i 14 . . . . . . . . . . 11 ((𝜑 ∧ 𝐹 ∈ (𝑋𝐸𝑌)) → (𝑌 × {1o}):𝑌⟶2o)
556, 36, 3, 37, 38, 40, 18, 54setcco 18219 . . . . . . . . . 10 ((𝜑 ∧ 𝐹 ∈ (𝑋𝐸𝑌)) → ((𝑌 × {1o})(⟨𝑋, 𝑌⟩(comp‘𝐶)2o)𝐹) = ((𝑌 × {1o}) ∘ 𝐹))
5635, 52, 553eqtr4d 2805 . . . . . . . . 9 ((𝜑 ∧ 𝐹 ∈ (𝑋𝐸𝑌)) → ((𝑎 ∈ 𝑌 ↦ if(𝑎 ∈ ran 𝐹, 1o, ∅))(⟨𝑋, 𝑌⟩(comp‘𝐶)2o)𝐹) = ((𝑌 × {1o})(⟨𝑋, 𝑌⟩(comp‘𝐶)2o)𝐹))
578adantr 486 . . . . . . . . . 10 ((𝜑 ∧ 𝐹 ∈ (𝑋𝐸𝑌)) → 𝐶 ∈ Cat)
5811adantr 486 . . . . . . . . . 10 ((𝜑 ∧ 𝐹 ∈ (𝑋𝐸𝑌)) → 𝑋 ∈ (Base‘𝐶))
5913adantr 486 . . . . . . . . . 10 ((𝜑 ∧ 𝐹 ∈ (𝑋𝐸𝑌)) → 𝑌 ∈ (Base‘𝐶))
6039, 10eleqtrd 2862 . . . . . . . . . . 11 (𝜑 → 2o ∈ (Base‘𝐶))
6160adantr 486 . . . . . . . . . 10 ((𝜑 ∧ 𝐹 ∈ (𝑋𝐸𝑌)) → 2o ∈ (Base‘𝐶))
62 simpr 490 . . . . . . . . . 10 ((𝜑 ∧ 𝐹 ∈ (𝑋𝐸𝑌)) → 𝐹 ∈ (𝑋𝐸𝑌))
636, 36, 2, 38, 40elsetchom 18217 . . . . . . . . . . 11 ((𝜑 ∧ 𝐹 ∈ (𝑋𝐸𝑌)) → ((𝑎 ∈ 𝑌 ↦ if(𝑎 ∈ ran 𝐹, 1o, ∅)) ∈ (𝑌(Hom ‘𝐶)2o) ↔ (𝑎 ∈ 𝑌 ↦ if(𝑎 ∈ ran 𝐹, 1o, ∅)):𝑌⟶2o))
6451, 63mpbird 260 . . . . . . . . . 10 ((𝜑 ∧ 𝐹 ∈ (𝑋𝐸𝑌)) → (𝑎 ∈ 𝑌 ↦ if(𝑎 ∈ ran 𝐹, 1o, ∅)) ∈ (𝑌(Hom ‘𝐶)2o))
656, 36, 2, 38, 40elsetchom 18217 . . . . . . . . . . 11 ((𝜑 ∧ 𝐹 ∈ (𝑋𝐸𝑌)) → ((𝑌 × {1o}) ∈ (𝑌(Hom ‘𝐶)2o) ↔ (𝑌 × {1o}):𝑌⟶2o))
6654, 65mpbird 260 . . . . . . . . . 10 ((𝜑 ∧ 𝐹 ∈ (𝑋𝐸𝑌)) → (𝑌 × {1o}) ∈ (𝑌(Hom ‘𝐶)2o))
671, 2, 3, 4, 57, 58, 59, 61, 62, 64, 66epii 17879 . . . . . . . . 9 ((𝜑 ∧ 𝐹 ∈ (𝑋𝐸𝑌)) → (((𝑎 ∈ 𝑌 ↦ if(𝑎 ∈ ran 𝐹, 1o, ∅))(⟨𝑋, 𝑌⟩(comp‘𝐶)2o)𝐹) = ((𝑌 × {1o})(⟨𝑋, 𝑌⟩(comp‘𝐶)2o)𝐹) ↔ (𝑎 ∈ 𝑌 ↦ if(𝑎 ∈ ran 𝐹, 1o, ∅)) = (𝑌 × {1o})))
6856, 67mpbid 235 . . . . . . . 8 ((𝜑 ∧ 𝐹 ∈ (𝑋𝐸𝑌)) → (𝑎 ∈ 𝑌 ↦ if(𝑎 ∈ ran 𝐹, 1o, ∅)) = (𝑌 × {1o}))
6968, 31eqtrdi 2811 . . . . . . 7 ((𝜑 ∧ 𝐹 ∈ (𝑋𝐸𝑌)) → (𝑎 ∈ 𝑌 ↦ if(𝑎 ∈ ran 𝐹, 1o, ∅)) = (𝑎 ∈ 𝑌 ↦ 1o))
7048rgenw 3080 . . . . . . . 8 ∀𝑎 ∈ 𝑌 if(𝑎 ∈ ran 𝐹, 1o, ∅) ∈ 2o
71 mpteqb 7001 . . . . . . . 8 (∀𝑎 ∈ 𝑌 if(𝑎 ∈ ran 𝐹, 1o, ∅) ∈ 2o → ((𝑎 ∈ 𝑌 ↦ if(𝑎 ∈ ran 𝐹, 1o, ∅)) = (𝑎 ∈ 𝑌 ↦ 1o) ↔ ∀𝑎 ∈ 𝑌 if(𝑎 ∈ ran 𝐹, 1o, ∅) = 1o))
7270, 71ax-mp 5 . . . . . . 7 ((𝑎 ∈ 𝑌 ↦ if(𝑎 ∈ ran 𝐹, 1o, ∅)) = (𝑎 ∈ 𝑌 ↦ 1o) ↔ ∀𝑎 ∈ 𝑌 if(𝑎 ∈ ran 𝐹, 1o, ∅) = 1o)
7369, 72sylib 221 . . . . . 6 ((𝜑 ∧ 𝐹 ∈ (𝑋𝐸𝑌)) → ∀𝑎 ∈ 𝑌 if(𝑎 ∈ ran 𝐹, 1o, ∅) = 1o)
74 1n0 8473 . . . . . . . . . 10 1o ≠ ∅
7574nesymi 3012 . . . . . . . . 9 ¬ ∅ = 1o
76 iffalse 4490 . . . . . . . . . 10 (¬ 𝑎 ∈ ran 𝐹 → if(𝑎 ∈ ran 𝐹, 1o, ∅) = ∅)
7776eqeq1d 2762 . . . . . . . . 9 (¬ 𝑎 ∈ ran 𝐹 → (if(𝑎 ∈ ran 𝐹, 1o, ∅) = 1o ↔ ∅ = 1o))
7875, 77mtbiri 330 . . . . . . . 8 (¬ 𝑎 ∈ ran 𝐹 → ¬ if(𝑎 ∈ ran 𝐹, 1o, ∅) = 1o)
7978con4i 115 . . . . . . 7 (if(𝑎 ∈ ran 𝐹, 1o, ∅) = 1o → 𝑎 ∈ ran 𝐹)
8079ralimi 3099 . . . . . 6 (∀𝑎 ∈ 𝑌 if(𝑎 ∈ ran 𝐹, 1o, ∅) = 1o → ∀𝑎 ∈ 𝑌 𝑎 ∈ ran 𝐹)
8173, 80syl 18 . . . . 5 ((𝜑 ∧ 𝐹 ∈ (𝑋𝐸𝑌)) → ∀𝑎 ∈ 𝑌 𝑎 ∈ ran 𝐹)
82 dfss3 3919 . . . . 5 (𝑌 ⊆ ran 𝐹 ↔ ∀𝑎 ∈ 𝑌 𝑎 ∈ ran 𝐹)
8381, 82sylibr 237 . . . 4 ((𝜑 ∧ 𝐹 ∈ (𝑋𝐸𝑌)) → 𝑌 ⊆ ran 𝐹)
8419, 83eqssd 3947 . . 3 ((𝜑 ∧ 𝐹 ∈ (𝑋𝐸𝑌)) → ran 𝐹 = 𝑌)
85 dffo2 6788 . . 3 (𝐹:𝑋–onto→𝑌 ↔ (𝐹:𝑋⟶𝑌 ∧ ran 𝐹 = 𝑌))
8618, 84, 85sylanbrc 595 . 2 ((𝜑 ∧ 𝐹 ∈ (𝑋𝐸𝑌)) → 𝐹:𝑋–onto→𝑌)
87 fof 6784 . . . . 5 (𝐹:𝑋–onto→𝑌 → 𝐹:𝑋⟶𝑌)
8887adantl 487 . . . 4 ((𝜑 ∧ 𝐹:𝑋–onto→𝑌) → 𝐹:𝑋⟶𝑌)
8916biimpar 483 . . . 4 ((𝜑 ∧ 𝐹:𝑋⟶𝑌) → 𝐹 ∈ (𝑋(Hom ‘𝐶)𝑌))
9088, 89syldan 603 . . 3 ((𝜑 ∧ 𝐹:𝑋–onto→𝑌) → 𝐹 ∈ (𝑋(Hom ‘𝐶)𝑌))
9110adantr 486 . . . . . 6 ((𝜑 ∧ 𝐹:𝑋–onto→𝑌) → 𝑈 = (Base‘𝐶))
9291eleq2d 2846 . . . . 5 ((𝜑 ∧ 𝐹:𝑋–onto→𝑌) → (𝑧 ∈ 𝑈 ↔ 𝑧 ∈ (Base‘𝐶)))
935ad2antrr 739 . . . . . . . . . . 11 (((𝜑 ∧ 𝐹:𝑋–onto→𝑌) ∧ (𝑧 ∈ 𝑈 ∧ (𝑔 ∈ (𝑌(Hom ‘𝐶)𝑧) ∧ ℎ ∈ (𝑌(Hom ‘𝐶)𝑧)))) → 𝑈 ∈ 𝑉)
949ad2antrr 739 . . . . . . . . . . 11 (((𝜑 ∧ 𝐹:𝑋–onto→𝑌) ∧ (𝑧 ∈ 𝑈 ∧ (𝑔 ∈ (𝑌(Hom ‘𝐶)𝑧) ∧ ℎ ∈ (𝑌(Hom ‘𝐶)𝑧)))) → 𝑋 ∈ 𝑈)
9512ad2antrr 739 . . . . . . . . . . 11 (((𝜑 ∧ 𝐹:𝑋–onto→𝑌) ∧ (𝑧 ∈ 𝑈 ∧ (𝑔 ∈ (𝑌(Hom ‘𝐶)𝑧) ∧ ℎ ∈ (𝑌(Hom ‘𝐶)𝑧)))) → 𝑌 ∈ 𝑈)
96 simprl 783 . . . . . . . . . . 11 (((𝜑 ∧ 𝐹:𝑋–onto→𝑌) ∧ (𝑧 ∈ 𝑈 ∧ (𝑔 ∈ (𝑌(Hom ‘𝐶)𝑧) ∧ ℎ ∈ (𝑌(Hom ‘𝐶)𝑧)))) → 𝑧 ∈ 𝑈)
9788adantr 486 . . . . . . . . . . 11 (((𝜑 ∧ 𝐹:𝑋–onto→𝑌) ∧ (𝑧 ∈ 𝑈 ∧ (𝑔 ∈ (𝑌(Hom ‘𝐶)𝑧) ∧ ℎ ∈ (𝑌(Hom ‘𝐶)𝑧)))) → 𝐹:𝑋⟶𝑌)
98 simprrl 793 . . . . . . . . . . . 12 (((𝜑 ∧ 𝐹:𝑋–onto→𝑌) ∧ (𝑧 ∈ 𝑈 ∧ (𝑔 ∈ (𝑌(Hom ‘𝐶)𝑧) ∧ ℎ ∈ (𝑌(Hom ‘𝐶)𝑧)))) → 𝑔 ∈ (𝑌(Hom ‘𝐶)𝑧))
996, 93, 2, 95, 96elsetchom 18217 . . . . . . . . . . . 12 (((𝜑 ∧ 𝐹:𝑋–onto→𝑌) ∧ (𝑧 ∈ 𝑈 ∧ (𝑔 ∈ (𝑌(Hom ‘𝐶)𝑧) ∧ ℎ ∈ (𝑌(Hom ‘𝐶)𝑧)))) → (𝑔 ∈ (𝑌(Hom ‘𝐶)𝑧) ↔ 𝑔:𝑌⟶𝑧))
10098, 99mpbid 235 . . . . . . . . . . 11 (((𝜑 ∧ 𝐹:𝑋–onto→𝑌) ∧ (𝑧 ∈ 𝑈 ∧ (𝑔 ∈ (𝑌(Hom ‘𝐶)𝑧) ∧ ℎ ∈ (𝑌(Hom ‘𝐶)𝑧)))) → 𝑔:𝑌⟶𝑧)
1016, 93, 3, 94, 95, 96, 97, 100setcco 18219 . . . . . . . . . 10 (((𝜑 ∧ 𝐹:𝑋–onto→𝑌) ∧ (𝑧 ∈ 𝑈 ∧ (𝑔 ∈ (𝑌(Hom ‘𝐶)𝑧) ∧ ℎ ∈ (𝑌(Hom ‘𝐶)𝑧)))) → (𝑔(⟨𝑋, 𝑌⟩(comp‘𝐶)𝑧)𝐹) = (𝑔 ∘ 𝐹))
102 simprrr 794 . . . . . . . . . . . 12 (((𝜑 ∧ 𝐹:𝑋–onto→𝑌) ∧ (𝑧 ∈ 𝑈 ∧ (𝑔 ∈ (𝑌(Hom ‘𝐶)𝑧) ∧ ℎ ∈ (𝑌(Hom ‘𝐶)𝑧)))) → ℎ ∈ (𝑌(Hom ‘𝐶)𝑧))
1036, 93, 2, 95, 96elsetchom 18217 . . . . . . . . . . . 12 (((𝜑 ∧ 𝐹:𝑋–onto→𝑌) ∧ (𝑧 ∈ 𝑈 ∧ (𝑔 ∈ (𝑌(Hom ‘𝐶)𝑧) ∧ ℎ ∈ (𝑌(Hom ‘𝐶)𝑧)))) → (ℎ ∈ (𝑌(Hom ‘𝐶)𝑧) ↔ ℎ:𝑌⟶𝑧))
104102, 103mpbid 235 . . . . . . . . . . 11 (((𝜑 ∧ 𝐹:𝑋–onto→𝑌) ∧ (𝑧 ∈ 𝑈 ∧ (𝑔 ∈ (𝑌(Hom ‘𝐶)𝑧) ∧ ℎ ∈ (𝑌(Hom ‘𝐶)𝑧)))) → ℎ:𝑌⟶𝑧)
1056, 93, 3, 94, 95, 96, 97, 104setcco 18219 . . . . . . . . . 10 (((𝜑 ∧ 𝐹:𝑋–onto→𝑌) ∧ (𝑧 ∈ 𝑈 ∧ (𝑔 ∈ (𝑌(Hom ‘𝐶)𝑧) ∧ ℎ ∈ (𝑌(Hom ‘𝐶)𝑧)))) → (ℎ(⟨𝑋, 𝑌⟩(comp‘𝐶)𝑧)𝐹) = (ℎ ∘ 𝐹))
106101, 105eqeq12d 2776 . . . . . . . . 9 (((𝜑 ∧ 𝐹:𝑋–onto→𝑌) ∧ (𝑧 ∈ 𝑈 ∧ (𝑔 ∈ (𝑌(Hom ‘𝐶)𝑧) ∧ ℎ ∈ (𝑌(Hom ‘𝐶)𝑧)))) → ((𝑔(⟨𝑋, 𝑌⟩(comp‘𝐶)𝑧)𝐹) = (ℎ(⟨𝑋, 𝑌⟩(comp‘𝐶)𝑧)𝐹) ↔ (𝑔 ∘ 𝐹) = (ℎ ∘ 𝐹)))
107 simplr 781 . . . . . . . . . . 11 (((𝜑 ∧ 𝐹:𝑋–onto→𝑌) ∧ (𝑧 ∈ 𝑈 ∧ (𝑔 ∈ (𝑌(Hom ‘𝐶)𝑧) ∧ ℎ ∈ (𝑌(Hom ‘𝐶)𝑧)))) → 𝐹:𝑋–onto→𝑌)
108100ffnd 6698 . . . . . . . . . . 11 (((𝜑 ∧ 𝐹:𝑋–onto→𝑌) ∧ (𝑧 ∈ 𝑈 ∧ (𝑔 ∈ (𝑌(Hom ‘𝐶)𝑧) ∧ ℎ ∈ (𝑌(Hom ‘𝐶)𝑧)))) → 𝑔 Fn 𝑌)
109104ffnd 6698 . . . . . . . . . . 11 (((𝜑 ∧ 𝐹:𝑋–onto→𝑌) ∧ (𝑧 ∈ 𝑈 ∧ (𝑔 ∈ (𝑌(Hom ‘𝐶)𝑧) ∧ ℎ ∈ (𝑌(Hom ‘𝐶)𝑧)))) → ℎ Fn 𝑌)
110 cocan2 7288 . . . . . . . . . . 11 ((𝐹:𝑋–onto→𝑌 ∧ 𝑔 Fn 𝑌 ∧ ℎ Fn 𝑌) → ((𝑔 ∘ 𝐹) = (ℎ ∘ 𝐹) ↔ 𝑔 = ℎ))
111107, 108, 109, 110syl3anc 1398 . . . . . . . . . 10 (((𝜑 ∧ 𝐹:𝑋–onto→𝑌) ∧ (𝑧 ∈ 𝑈 ∧ (𝑔 ∈ (𝑌(Hom ‘𝐶)𝑧) ∧ ℎ ∈ (𝑌(Hom ‘𝐶)𝑧)))) → ((𝑔 ∘ 𝐹) = (ℎ ∘ 𝐹) ↔ 𝑔 = ℎ))
112111biimpd 232 . . . . . . . . 9 (((𝜑 ∧ 𝐹:𝑋–onto→𝑌) ∧ (𝑧 ∈ 𝑈 ∧ (𝑔 ∈ (𝑌(Hom ‘𝐶)𝑧) ∧ ℎ ∈ (𝑌(Hom ‘𝐶)𝑧)))) → ((𝑔 ∘ 𝐹) = (ℎ ∘ 𝐹) → 𝑔 = ℎ))
113106, 112sylbid 243 . . . . . . . 8 (((𝜑 ∧ 𝐹:𝑋–onto→𝑌) ∧ (𝑧 ∈ 𝑈 ∧ (𝑔 ∈ (𝑌(Hom ‘𝐶)𝑧) ∧ ℎ ∈ (𝑌(Hom ‘𝐶)𝑧)))) → ((𝑔(⟨𝑋, 𝑌⟩(comp‘𝐶)𝑧)𝐹) = (ℎ(⟨𝑋, 𝑌⟩(comp‘𝐶)𝑧)𝐹) → 𝑔 = ℎ))
114113anassrs 473 . . . . . . 7 ((((𝜑 ∧ 𝐹:𝑋–onto→𝑌) ∧ 𝑧 ∈ 𝑈) ∧ (𝑔 ∈ (𝑌(Hom ‘𝐶)𝑧) ∧ ℎ ∈ (𝑌(Hom ‘𝐶)𝑧))) → ((𝑔(⟨𝑋, 𝑌⟩(comp‘𝐶)𝑧)𝐹) = (ℎ(⟨𝑋, 𝑌⟩(comp‘𝐶)𝑧)𝐹) → 𝑔 = ℎ))
115114ralrimivva 3205 . . . . . 6 (((𝜑 ∧ 𝐹:𝑋–onto→𝑌) ∧ 𝑧 ∈ 𝑈) → ∀𝑔 ∈ (𝑌(Hom ‘𝐶)𝑧)∀ℎ ∈ (𝑌(Hom ‘𝐶)𝑧)((𝑔(⟨𝑋, 𝑌⟩(comp‘𝐶)𝑧)𝐹) = (ℎ(⟨𝑋, 𝑌⟩(comp‘𝐶)𝑧)𝐹) → 𝑔 = ℎ))
116115ex 418 . . . . 5 ((𝜑 ∧ 𝐹:𝑋–onto→𝑌) → (𝑧 ∈ 𝑈 → ∀𝑔 ∈ (𝑌(Hom ‘𝐶)𝑧)∀ℎ ∈ (𝑌(Hom ‘𝐶)𝑧)((𝑔(⟨𝑋, 𝑌⟩(comp‘𝐶)𝑧)𝐹) = (ℎ(⟨𝑋, 𝑌⟩(comp‘𝐶)𝑧)𝐹) → 𝑔 = ℎ)))
11792, 116sylbird 263 . . . 4 ((𝜑 ∧ 𝐹:𝑋–onto→𝑌) → (𝑧 ∈ (Base‘𝐶) → ∀𝑔 ∈ (𝑌(Hom ‘𝐶)𝑧)∀ℎ ∈ (𝑌(Hom ‘𝐶)𝑧)((𝑔(⟨𝑋, 𝑌⟩(comp‘𝐶)𝑧)𝐹) = (ℎ(⟨𝑋, 𝑌⟩(comp‘𝐶)𝑧)𝐹) → 𝑔 = ℎ)))
118117ralrimiv 3153 . . 3 ((𝜑 ∧ 𝐹:𝑋–onto→𝑌) → ∀𝑧 ∈ (Base‘𝐶)∀𝑔 ∈ (𝑌(Hom ‘𝐶)𝑧)∀ℎ ∈ (𝑌(Hom ‘𝐶)𝑧)((𝑔(⟨𝑋, 𝑌⟩(comp‘𝐶)𝑧)𝐹) = (ℎ(⟨𝑋, 𝑌⟩(comp‘𝐶)𝑧)𝐹) → 𝑔 = ℎ))
1191, 2, 3, 4, 8, 11, 13isepi2 17877 . . . 4 (𝜑 → (𝐹 ∈ (𝑋𝐸𝑌) ↔ (𝐹 ∈ (𝑋(Hom ‘𝐶)𝑌) ∧ ∀𝑧 ∈ (Base‘𝐶)∀𝑔 ∈ (𝑌(Hom ‘𝐶)𝑧)∀ℎ ∈ (𝑌(Hom ‘𝐶)𝑧)((𝑔(⟨𝑋, 𝑌⟩(comp‘𝐶)𝑧)𝐹) = (ℎ(⟨𝑋, 𝑌⟩(comp‘𝐶)𝑧)𝐹) → 𝑔 = ℎ))))
120119adantr 486 . . 3 ((𝜑 ∧ 𝐹:𝑋–onto→𝑌) → (𝐹 ∈ (𝑋𝐸𝑌) ↔ (𝐹 ∈ (𝑋(Hom ‘𝐶)𝑌) ∧ ∀𝑧 ∈ (Base‘𝐶)∀𝑔 ∈ (𝑌(Hom ‘𝐶)𝑧)∀ℎ ∈ (𝑌(Hom ‘𝐶)𝑧)((𝑔(⟨𝑋, 𝑌⟩(comp‘𝐶)𝑧)𝐹) = (ℎ(⟨𝑋, 𝑌⟩(comp‘𝐶)𝑧)𝐹) → 𝑔 = ℎ))))
12190, 118, 120mpbir2and 726 . 2 ((𝜑 ∧ 𝐹:𝑋–onto→𝑌) → 𝐹 ∈ (𝑋𝐸𝑌))
12286, 121impbida 813 1 (𝜑 → (𝐹 ∈ (𝑋𝐸𝑌) ↔ 𝐹:𝑋–onto→𝑌))
Colors of variables:    wff setvar class
This proof depends on syntax axioms:  ¬ wn 3   → wi 4   ↔ wb 209   ∧ wa 401   = wceq 1570   ∈ wcel 2145  ∀wral 3076   ⊆ wss 3898  ∅c0 4278  ifcif 4481  {csn 4583  {cpr 4585  ⟨cop 4589   ↦ cmpt 5185   × cxp 5645  ran crn 5648   ∘ ccom 5651   Fn wfn 6522  ⟶wf 6523  –onto→wfo 6525  ‘cfv 6527  (class class class)co 7408  1oc1o 8447  2oc2o 8448  Basecbs 17348  Hom chom 17400  compcco 17401  Catccat 17799  Epicepi 17865  SetCatcsetc 18211
This proof depends on axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1828  ax-4 1842  ax-5 1943  ax-6 2000  ax-7 2041  ax-8 2147  ax-9 2155  ax-10 2178  ax-11 2194  ax-12 2213  ax-ext 2732  ax-rep 5231  ax-sep 5248  ax-nul 5259  ax-pow 5326  ax-pr 5390  ax-un 7734  ax-cnex 11227  ax-resscn 11228  ax-1cn 11229  ax-icn 11230  ax-addcl 11231  ax-addrcl 11232  ax-mulcl 11233  ax-mulrcl 11234  ax-mulcom 11235  ax-addass 11236  ax-mulass 11237  ax-distr 11238  ax-i2m1 11239  ax-1ne0 11240  ax-1rid 11241  ax-rnegex 11242  ax-rrecex 11243  ax-cnre 11244  ax-pre-lttri 11245  ax-pre-lttrn 11246  ax-pre-ltadd 11247  ax-pre-mulgt0 11248
This proof depends on definitions:  df-bi 210  df-an 402  df-or 862  df-3or 1104  df-3an 1105  df-tru 1573  df-fal 1583  df-ex 1813  df-nf 1817  df-sb 2100  df-mo 2564  df-eu 2594  df-clab 2739  df-cleq 2752  df-clel 2835  df-nfc 2909  df-ne 2956  df-nel 3062  df-ral 3077  df-rex 3087  df-rmo 3365  df-reu 3366  df-rab 3413  df-v 3452  df-sbc 3739  df-csb 3847  df-dif 3901  df-un 3903  df-in 3905  df-ss 3915  df-pss 3918  df-nul 4279  df-if 4482  df-pw 4558  df-sn 4584  df-pr 4586  df-tp 4588  df-op 4590  df-uni 4867  df-iun 4952  df-br 5103  df-opab 5167  df-mpt 5186  df-tr 5212  df-id 5542  df-eprel 5547  df-po 5555  df-so 5556  df-fr 5600  df-we 5602  df-xp 5653  df-rel 5654  df-cnv 5655  df-co 5656  df-dm 5657  df-rn 5658  df-res 5659  df-ima 5660  df-pred 6293  df-ord 6354  df-on 6355  df-lim 6356  df-suc 6357  df-iota 6483  df-fun 6529  df-fn 6530  df-f 6531  df-f1 6532  df-fo 6533  df-f1o 6534  df-fv 6535  df-riota 7365  df-ov 7411  df-oprab 7412  df-mpo 7413  df-om 7861  df-1st 7984  df-2nd 7985  df-tpos 8221  df-frecs 8277  df-wrecs 8308  df-recs 8357  df-rdg 8396  df-1o 8454  df-2o 8455  df-er 8695  df-map 8827  df-en 8952  df-dom 8953  df-sdom 8954  df-fin 8955  df-pnf 11316  df-mnf 11317  df-xr 11318  df-ltxr 11319  df-le 11320  df-sub 11514  df-neg 11515  df-nn 12305  df-2 12374  df-3 12375  df-4 12376  df-5 12377  df-6 12378  df-7 12379  df-8 12380  df-9 12381  df-n0 12576  df-z 12663  df-dec 12784  df-uz 12935  df-fz 13609  df-struct 17286  df-sets 17303  df-slot 17321  df-ndx 17333  df-base 17349  df-hom 17413  df-cco 17414  df-cat 17803  df-cid 17804  df-oppc 17847  df-mon 17866  df-epi 17867  df-setc 18212
This theorem is used by: (None)
  Copyright terms: Public domain W3C validator