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

Theorem setcepi 18263
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 18260 . . . . . . 7 (𝑈 ∈ 𝑉 → 𝐶 ∈ Cat)
85, 7syl 18 . . . . . 6 (𝜑 → 𝐶 ∈ Cat)
9 setcmon.x . . . . . . 7 (𝜑 → 𝑋 ∈ 𝑈)
106, 5setcbas 18253 . . . . . . 7 (𝜑 → 𝑈 = (Base‘𝐶))
119, 10eleqtrd 2862 . . . . . 6 (𝜑 → 𝑋 ∈ (Base‘𝐶))
12 setcmon.y . . . . . . 7 (𝜑 → 𝑌 ∈ 𝑈)
1312, 10eleqtrd 2862 . . . . . 6 (𝜑 → 𝑌 ∈ (Base‘𝐶))
141, 2, 3, 4, 8, 11, 13epihom 17917 . . . . 5 (𝜑 → (𝑋𝐸𝑌) ⊆ (𝑋(Hom ‘𝐶)𝑌))
1514sselda 3908 . . . 4 ((𝜑 ∧ 𝐹 ∈ (𝑋𝐸𝑌)) → 𝐹 ∈ (𝑋(Hom ‘𝐶)𝑌))
166, 5, 2, 9, 12elsetchom 18256 . . . . 5 (𝜑 → (𝐹 ∈ (𝑋(Hom ‘𝐶)𝑌) ↔ 𝐹:𝑋⟶𝑌))
1716biimpa 482 . . . 4 ((𝜑 ∧ 𝐹 ∈ (𝑋(Hom ‘𝐶)𝑌)) → 𝐹:𝑋⟶𝑌)
1815, 17syldan 603 . . 3 ((𝜑 ∧ 𝐹 ∈ (𝑋𝐸𝑌)) → 𝐹:𝑋⟶𝑌)
1918frnd 6718 . . . 4 ((𝜑 ∧ 𝐹 ∈ (𝑋𝐸𝑌)) → ran 𝐹 ⊆ 𝑌)
2018ffnd 6710 . . . . . . . . . . . . . 14 ((𝜑 ∧ 𝐹 ∈ (𝑋𝐸𝑌)) → 𝐹 Fn 𝑋)
21 fnfvelrn 7080 . . . . . . . . . . . . . 14 ((𝐹 Fn 𝑋 ∧ 𝑥 ∈ 𝑋) → (𝐹‘𝑥) ∈ ran 𝐹)
2220, 21sylan 592 . . . . . . . . . . . . 13 (((𝜑 ∧ 𝐹 ∈ (𝑋𝐸𝑌)) ∧ 𝑥 ∈ 𝑋) → (𝐹‘𝑥) ∈ ran 𝐹)
2322iftrued 4489 . . . . . . . . . . . 12 (((𝜑 ∧ 𝐹 ∈ (𝑋𝐸𝑌)) ∧ 𝑥 ∈ 𝑋) → if((𝐹‘𝑥) ∈ ran 𝐹, 1o, ∅) = 1o)
2423mpteq2dva 5197 . . . . . . . . . . 11 ((𝜑 ∧ 𝐹 ∈ (𝑋𝐸𝑌)) → (𝑥 ∈ 𝑋 ↦ if((𝐹‘𝑥) ∈ ran 𝐹, 1o, ∅)) = (𝑥 ∈ 𝑋 ↦ 1o))
2518ffvelcdmda 7084 . . . . . . . . . . . 12 (((𝜑 ∧ 𝐹 ∈ (𝑋𝐸𝑌)) ∧ 𝑥 ∈ 𝑋) → (𝐹‘𝑥) ∈ 𝑌)
2618feqmptd 6953 . . . . . . . . . . . 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 7130 . . . . . . . . . . 11 ((𝜑 ∧ 𝐹 ∈ (𝑋𝐸𝑌)) → ((𝑎 ∈ 𝑌 ↦ if(𝑎 ∈ ran 𝐹, 1o, ∅)) ∘ 𝐹) = (𝑥 ∈ 𝑋 ↦ if((𝐹‘𝑥) ∈ ran 𝐹, 1o, ∅)))
31 fconstmpt 5712 . . . . . . . . . . . . 13 (𝑌 × {1o}) = (𝑎 ∈ 𝑌 ↦ 1o)
3231a1i 11 . . . . . . . . . . . 12 ((𝜑 ∧ 𝐹 ∈ (𝑋𝐸𝑌)) → (𝑌 × {1o}) = (𝑎 ∈ 𝑌 ↦ 1o))
33 eqidd 2761 . . . . . . . . . . . 12 (𝑎 = (𝐹‘𝑥) → 1o = 1o)
3425, 26, 32, 33fmptco 7130 . . . . . . . . . . 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 8487 . . . . . . . . . . . . . . . 16 1o ∈ {∅, 1o}
43 df2o3 8484 . . . . . . . . . . . . . . . 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 7112 . . . . . . . . . . . 12 (𝑎 ∈ 𝑌 ↦ if(𝑎 ∈ ran 𝐹, 1o, ∅)):𝑌⟶2o
5150a1i 11 . . . . . . . . . . 11 ((𝜑 ∧ 𝐹 ∈ (𝑋𝐸𝑌)) → (𝑎 ∈ 𝑌 ↦ if(𝑎 ∈ ran 𝐹, 1o, ∅)):𝑌⟶2o)
526, 36, 3, 37, 38, 40, 18, 51setcco 18258 . . . . . . . . . 10 ((𝜑 ∧ 𝐹 ∈ (𝑋𝐸𝑌)) → ((𝑎 ∈ 𝑌 ↦ if(𝑎 ∈ ran 𝐹, 1o, ∅))(⟨𝑋, 𝑌⟩(comp‘𝐶)2o)𝐹) = ((𝑎 ∈ 𝑌 ↦ if(𝑎 ∈ ran 𝐹, 1o, ∅)) ∘ 𝐹))
53 fconst6g 6771 . . . . . . . . . . . 12 (1o ∈ 2o → (𝑌 × {1o}):𝑌⟶2o)
5444, 53mp1i 14 . . . . . . . . . . 11 ((𝜑 ∧ 𝐹 ∈ (𝑋𝐸𝑌)) → (𝑌 × {1o}):𝑌⟶2o)
556, 36, 3, 37, 38, 40, 18, 54setcco 18258 . . . . . . . . . 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 18256 . . . . . . . . . . 11 ((𝜑 ∧ 𝐹 ∈ (𝑋𝐸𝑌)) → ((𝑎 ∈ 𝑌 ↦ if(𝑎 ∈ ran 𝐹, 1o, ∅)) ∈ (𝑌(Hom ‘𝐶)2o) ↔ (𝑎 ∈ 𝑌 ↦ if(𝑎 ∈ ran 𝐹, 1o, ∅)):𝑌⟶2o))
6451, 63mpbird 260 . . . . . . . . . 10 ((𝜑 ∧ 𝐹 ∈ (𝑋𝐸𝑌)) → (𝑎 ∈ 𝑌 ↦ if(𝑎 ∈ ran 𝐹, 1o, ∅)) ∈ (𝑌(Hom ‘𝐶)2o))
656, 36, 2, 38, 40elsetchom 18256 . . . . . . . . . . 11 ((𝜑 ∧ 𝐹 ∈ (𝑋𝐸𝑌)) → ((𝑌 × {1o}) ∈ (𝑌(Hom ‘𝐶)2o) ↔ (𝑌 × {1o}):𝑌⟶2o))
6654, 65mpbird 260 . . . . . . . . . 10 ((𝜑 ∧ 𝐹 ∈ (𝑋𝐸𝑌)) → (𝑌 × {1o}) ∈ (𝑌(Hom ‘𝐶)2o))
671, 2, 3, 4, 57, 58, 59, 61, 62, 64, 66epii 17918 . . . . . . . . 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 7013 . . . . . . . 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 8495 . . . . . . . . . 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 3897 . . . . 5 (𝑌 ⊆ ran 𝐹 ↔ ∀𝑎 ∈ 𝑌 𝑎 ∈ ran 𝐹)
8381, 82sylibr 237 . . . 4 ((𝜑 ∧ 𝐹 ∈ (𝑋𝐸𝑌)) → 𝑌 ⊆ ran 𝐹)
8419, 83eqssd 3925 . . 3 ((𝜑 ∧ 𝐹 ∈ (𝑋𝐸𝑌)) → ran 𝐹 = 𝑌)
85 dffo2 6800 . . 3 (𝐹:𝑋–onto→𝑌 ↔ (𝐹:𝑋⟶𝑌 ∧ ran 𝐹 = 𝑌))
8618, 84, 85sylanbrc 595 . 2 ((𝜑 ∧ 𝐹 ∈ (𝑋𝐸𝑌)) → 𝐹:𝑋–onto→𝑌)
87 fof 6796 . . . . 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 18256 . . . . . . . . . . . 12 (((𝜑 ∧ 𝐹:𝑋–onto→𝑌) ∧ (𝑧 ∈ 𝑈 ∧ (𝑔 ∈ (𝑌(Hom ‘𝐶)𝑧) ∧ ℎ ∈ (𝑌(Hom ‘𝐶)𝑧)))) → (𝑔 ∈ (𝑌(Hom ‘𝐶)𝑧) ↔ 𝑔:𝑌⟶𝑧))
10098, 99mpbid 235 . . . . . . . . . . 11 (((𝜑 ∧ 𝐹:𝑋–onto→𝑌) ∧ (𝑧 ∈ 𝑈 ∧ (𝑔 ∈ (𝑌(Hom ‘𝐶)𝑧) ∧ ℎ ∈ (𝑌(Hom ‘𝐶)𝑧)))) → 𝑔:𝑌⟶𝑧)
1016, 93, 3, 94, 95, 96, 97, 100setcco 18258 . . . . . . . . . 10 (((𝜑 ∧ 𝐹:𝑋–onto→𝑌) ∧ (𝑧 ∈ 𝑈 ∧ (𝑔 ∈ (𝑌(Hom ‘𝐶)𝑧) ∧ ℎ ∈ (𝑌(Hom ‘𝐶)𝑧)))) → (𝑔(⟨𝑋, 𝑌⟩(comp‘𝐶)𝑧)𝐹) = (𝑔 ∘ 𝐹))
102 simprrr 794 . . . . . . . . . . . 12 (((𝜑 ∧ 𝐹:𝑋–onto→𝑌) ∧ (𝑧 ∈ 𝑈 ∧ (𝑔 ∈ (𝑌(Hom ‘𝐶)𝑧) ∧ ℎ ∈ (𝑌(Hom ‘𝐶)𝑧)))) → ℎ ∈ (𝑌(Hom ‘𝐶)𝑧))
1036, 93, 2, 95, 96elsetchom 18256 . . . . . . . . . . . 12 (((𝜑 ∧ 𝐹:𝑋–onto→𝑌) ∧ (𝑧 ∈ 𝑈 ∧ (𝑔 ∈ (𝑌(Hom ‘𝐶)𝑧) ∧ ℎ ∈ (𝑌(Hom ‘𝐶)𝑧)))) → (ℎ ∈ (𝑌(Hom ‘𝐶)𝑧) ↔ ℎ:𝑌⟶𝑧))
104102, 103mpbid 235 . . . . . . . . . . 11 (((𝜑 ∧ 𝐹:𝑋–onto→𝑌) ∧ (𝑧 ∈ 𝑈 ∧ (𝑔 ∈ (𝑌(Hom ‘𝐶)𝑧) ∧ ℎ ∈ (𝑌(Hom ‘𝐶)𝑧)))) → ℎ:𝑌⟶𝑧)
1056, 93, 3, 94, 95, 96, 97, 104setcco 18258 . . . . . . . . . 10 (((𝜑 ∧ 𝐹:𝑋–onto→𝑌) ∧ (𝑧 ∈ 𝑈 ∧ (𝑔 ∈ (𝑌(Hom ‘𝐶)𝑧) ∧ ℎ ∈ (𝑌(Hom ‘𝐶)𝑧)))) → (ℎ(⟨𝑋, 𝑌⟩(comp‘𝐶)𝑧)𝐹) = (ℎ ∘ 𝐹))
106101, 105eqeq12d 2776 . . . . . . . . 9 (((𝜑 ∧ 𝐹:𝑋–onto→𝑌) ∧ (𝑧 ∈ 𝑈 ∧ (𝑔 ∈ (𝑌(Hom ‘𝐶)𝑧) ∧ ℎ ∈ (𝑌(Hom ‘𝐶)𝑧)))) → ((𝑔(⟨𝑋, 𝑌⟩(comp‘𝐶)𝑧)𝐹) = (ℎ(⟨𝑋, 𝑌⟩(comp‘𝐶)𝑧)𝐹) ↔ (𝑔 ∘ 𝐹) = (ℎ ∘ 𝐹)))
107 simplr 781 . . . . . . . . . . 11 (((𝜑 ∧ 𝐹:𝑋–onto→𝑌) ∧ (𝑧 ∈ 𝑈 ∧ (𝑔 ∈ (𝑌(Hom ‘𝐶)𝑧) ∧ ℎ ∈ (𝑌(Hom ‘𝐶)𝑧)))) → 𝐹:𝑋–onto→𝑌)
108100ffnd 6710 . . . . . . . . . . 11 (((𝜑 ∧ 𝐹:𝑋–onto→𝑌) ∧ (𝑧 ∈ 𝑈 ∧ (𝑔 ∈ (𝑌(Hom ‘𝐶)𝑧) ∧ ℎ ∈ (𝑌(Hom ‘𝐶)𝑧)))) → 𝑔 Fn 𝑌)
109104ffnd 6710 . . . . . . . . . . 11 (((𝜑 ∧ 𝐹:𝑋–onto→𝑌) ∧ (𝑧 ∈ 𝑈 ∧ (𝑔 ∈ (𝑌(Hom ‘𝐶)𝑧) ∧ ℎ ∈ (𝑌(Hom ‘𝐶)𝑧)))) → ℎ Fn 𝑌)
110 cocan2 7300 . . . . . . . . . . 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 17916 . . . 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 1569   ∈ wcel 2144  ∀wral 3076   ⊆ wss 3895  ∅c0 4278  ifcif 4481  {csn 4583  {cpr 4585  ⟨cop 4589   ↦ cmpt 5185   × cxp 5648  ran crn 5651   ∘ ccom 5654   Fn wfn 6533  ⟶wf 6534  –onto→wfo 6536  ‘cfv 6538  (class class class)co 7420  1oc1o 8469  2oc2o 8470  Basecbs 17387  Hom chom 17439  compcco 17440  Catccat 17838  Epicepi 17904  SetCatcsetc 18250
This proof depends on axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1827  ax-4 1841  ax-5 1942  ax-6 1999  ax-7 2040  ax-8 2146  ax-9 2154  ax-10 2177  ax-11 2193  ax-12 2212  ax-ext 2732  ax-rep 5231  ax-sep 5248  ax-nul 5259  ax-pow 5326  ax-pr 5390  ax-un 7751  ax-cnex 11256  ax-resscn 11257  ax-1cn 11258  ax-icn 11259  ax-addcl 11260  ax-addrcl 11261  ax-mulcl 11262  ax-mulrcl 11263  ax-mulcom 11264  ax-addass 11265  ax-mulass 11266  ax-distr 11267  ax-i2m1 11268  ax-1ne0 11269  ax-1rid 11270  ax-rnegex 11271  ax-rrecex 11272  ax-cnre 11273  ax-pre-lttri 11274  ax-pre-lttrn 11275  ax-pre-ltadd 11276  ax-pre-mulgt0 11277
This proof depends on definitions:  df-bi 210  df-an 402  df-or 862  df-3or 1104  df-3an 1105  df-tru 1572  df-fal 1582  df-ex 1812  df-nf 1816  df-sb 2099  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-ss 3896  df-pss 4014  df-dif 4047  df-in 4091  df-un 4151  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 5545  df-eprel 5550  df-po 5558  df-so 5559  df-fr 5603  df-we 5605  df-xp 5656  df-rel 5657  df-cnv 5658  df-co 5659  df-dm 5660  df-rn 5661  df-res 5662  df-ima 5663  df-pred 6304  df-ord 6365  df-on 6366  df-lim 6367  df-suc 6368  df-iota 6494  df-fun 6540  df-fn 6541  df-f 6542  df-f1 6543  df-fo 6544  df-f1o 6545  df-fv 6546  df-riota 7377  df-ov 7423  df-oprab 7424  df-mpo 7425  df-om 7878  df-1st 8001  df-2nd 8002  df-tpos 8243  df-frecs 8299  df-wrecs 8330  df-recs 8379  df-rdg 8418  df-1o 8476  df-2o 8477  df-er 8717  df-map 8849  df-en 8974  df-dom 8975  df-sdom 8976  df-fin 8977  df-pnf 11345  df-mnf 11346  df-xr 11347  df-ltxr 11348  df-le 11349  df-sub 11543  df-neg 11544  df-nn 12336  df-2 12405  df-3 12406  df-4 12407  df-5 12408  df-6 12409  df-7 12410  df-8 12411  df-9 12412  df-n0 12607  df-z 12694  df-dec 12815  df-uz 12966  df-fz 13640  df-struct 17325  df-sets 17342  df-slot 17360  df-ndx 17372  df-base 17388  df-hom 17452  df-cco 17453  df-cat 17842  df-cid 17843  df-oppc 17886  df-mon 17905  df-epi 17906  df-setc 18251
This theorem is used by: (None)
  Copyright terms: Public domain W3C validator