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

Theorem setcepi 18292
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 2763 . . . . . 6 (Base‘𝐶) = (Base‘𝐶)
2 eqid 2763 . . . . . 6 (Hom ‘𝐶) = (Hom ‘𝐶)
3 eqid 2763 . . . . . 6 (comp‘𝐶) = (comp‘𝐶)
4 setcepi.h . . . . . 6 𝐸 = (Epi‘𝐶)
5 setcmon.u . . . . . . 7 (𝜑 → 𝑈 ∈ 𝑉)
6 setcmon.c . . . . . . . 8 𝐶 = (SetCat‘𝑈)
76setccat 18289 . . . . . . 7 (𝑈 ∈ 𝑉 → 𝐶 ∈ Cat)
85, 7syl 18 . . . . . 6 (𝜑 → 𝐶 ∈ Cat)
9 setcmon.x . . . . . . 7 (𝜑 → 𝑋 ∈ 𝑈)
106, 5setcbas 18282 . . . . . . 7 (𝜑 → 𝑈 = (Base‘𝐶))
119, 10eleqtrd 2866 . . . . . 6 (𝜑 → 𝑋 ∈ (Base‘𝐶))
12 setcmon.y . . . . . . 7 (𝜑 → 𝑌 ∈ 𝑈)
1312, 10eleqtrd 2866 . . . . . 6 (𝜑 → 𝑌 ∈ (Base‘𝐶))
141, 2, 3, 4, 8, 11, 13epihom 17946 . . . . 5 (𝜑 → (𝑋𝐸𝑌) ⊆ (𝑋(Hom ‘𝐶)𝑌))
1514sselda 3913 . . . 4 ((𝜑 ∧ 𝐹 ∈ (𝑋𝐸𝑌)) → 𝐹 ∈ (𝑋(Hom ‘𝐶)𝑌))
166, 5, 2, 9, 12elsetchom 18285 . . . . 5 (𝜑 → (𝐹 ∈ (𝑋(Hom ‘𝐶)𝑌) ↔ 𝐹:𝑋⟶𝑌))
1716biimpa 482 . . . 4 ((𝜑 ∧ 𝐹 ∈ (𝑋(Hom ‘𝐶)𝑌)) → 𝐹:𝑋⟶𝑌)
1815, 17syldan 603 . . 3 ((𝜑 ∧ 𝐹 ∈ (𝑋𝐸𝑌)) → 𝐹:𝑋⟶𝑌)
1918frnd 6740 . . . 4 ((𝜑 ∧ 𝐹 ∈ (𝑋𝐸𝑌)) → ran 𝐹 ⊆ 𝑌)
2018ffnd 6732 . . . . . . . . . . . . . 14 ((𝜑 ∧ 𝐹 ∈ (𝑋𝐸𝑌)) → 𝐹 Fn 𝑋)
21 fnfvelrn 7104 . . . . . . . . . . . . . 14 ((𝐹 Fn 𝑋 ∧ 𝑥 ∈ 𝑋) → (𝐹‘𝑥) ∈ ran 𝐹)
2220, 21sylan 592 . . . . . . . . . . . . 13 (((𝜑 ∧ 𝐹 ∈ (𝑋𝐸𝑌)) ∧ 𝑥 ∈ 𝑋) → (𝐹‘𝑥) ∈ ran 𝐹)
2322iftrued 4493 . . . . . . . . . . . 12 (((𝜑 ∧ 𝐹 ∈ (𝑋𝐸𝑌)) ∧ 𝑥 ∈ 𝑋) → if((𝐹‘𝑥) ∈ ran 𝐹, 1o, ∅) = 1o)
2423mpteq2dva 5201 . . . . . . . . . . 11 ((𝜑 ∧ 𝐹 ∈ (𝑋𝐸𝑌)) → (𝑥 ∈ 𝑋 ↦ if((𝐹‘𝑥) ∈ ran 𝐹, 1o, ∅)) = (𝑥 ∈ 𝑋 ↦ 1o))
2518ffvelcdmda 7108 . . . . . . . . . . . 12 (((𝜑 ∧ 𝐹 ∈ (𝑋𝐸𝑌)) ∧ 𝑥 ∈ 𝑋) → (𝐹‘𝑥) ∈ 𝑌)
2618feqmptd 6976 . . . . . . . . . . . 12 ((𝜑 ∧ 𝐹 ∈ (𝑋𝐸𝑌)) → 𝐹 = (𝑥 ∈ 𝑋 ↦ (𝐹‘𝑥)))
27 eqidd 2764 . . . . . . . . . . . 12 ((𝜑 ∧ 𝐹 ∈ (𝑋𝐸𝑌)) → (𝑎 ∈ 𝑌 ↦ if(𝑎 ∈ ran 𝐹, 1o, ∅)) = (𝑎 ∈ 𝑌 ↦ if(𝑎 ∈ ran 𝐹, 1o, ∅)))
28 eleq1 2852 . . . . . . . . . . . . 13 (𝑎 = (𝐹‘𝑥) → (𝑎 ∈ ran 𝐹 ↔ (𝐹‘𝑥) ∈ ran 𝐹))
2928ifbid 4509 . . . . . . . . . . . 12 (𝑎 = (𝐹‘𝑥) → if(𝑎 ∈ ran 𝐹, 1o, ∅) = if((𝐹‘𝑥) ∈ ran 𝐹, 1o, ∅))
3025, 26, 27, 29fmptco 7154 . . . . . . . . . . 11 ((𝜑 ∧ 𝐹 ∈ (𝑋𝐸𝑌)) → ((𝑎 ∈ 𝑌 ↦ if(𝑎 ∈ ran 𝐹, 1o, ∅)) ∘ 𝐹) = (𝑥 ∈ 𝑋 ↦ if((𝐹‘𝑥) ∈ ran 𝐹, 1o, ∅)))
31 fconstmpt 5717 . . . . . . . . . . . . 13 (𝑌 × {1o}) = (𝑎 ∈ 𝑌 ↦ 1o)
3231a1i 11 . . . . . . . . . . . 12 ((𝜑 ∧ 𝐹 ∈ (𝑋𝐸𝑌)) → (𝑌 × {1o}) = (𝑎 ∈ 𝑌 ↦ 1o))
33 eqidd 2764 . . . . . . . . . . . 12 (𝑎 = (𝐹‘𝑥) → 1o = 1o)
3425, 26, 32, 33fmptco 7154 . . . . . . . . . . 11 ((𝜑 ∧ 𝐹 ∈ (𝑋𝐸𝑌)) → ((𝑌 × {1o}) ∘ 𝐹) = (𝑥 ∈ 𝑋 ↦ 1o))
3524, 30, 343eqtr4d 2808 . . . . . . . . . 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 2763 . . . . . . . . . . . . 13 (𝑎 ∈ 𝑌 ↦ if(𝑎 ∈ ran 𝐹, 1o, ∅)) = (𝑎 ∈ 𝑌 ↦ if(𝑎 ∈ ran 𝐹, 1o, ∅))
42 1oelpr 8515 . . . . . . . . . . . . . . . 16 1o ∈ {∅, 1o}
43 df2o3 8512 . . . . . . . . . . . . . . . 16 2o = {∅, 1o}
4442, 43eleqtrri 2863 . . . . . . . . . . . . . . 15 1o ∈ 2o
45 0ex 5264 . . . . . . . . . . . . . . . . 17 ∅ ∈ V
4645prid1 4723 . . . . . . . . . . . . . . . 16 ∅ ∈ {∅, 1o}
4746, 43eleqtrri 2863 . . . . . . . . . . . . . . 15 ∅ ∈ 2o
4844, 47ifcli 4533 . . . . . . . . . . . . . 14 if(𝑎 ∈ ran 𝐹, 1o, ∅) ∈ 2o
4948a1i 11 . . . . . . . . . . . . 13 (𝑎 ∈ 𝑌 → if(𝑎 ∈ ran 𝐹, 1o, ∅) ∈ 2o)
5041, 49fmpti 7136 . . . . . . . . . . . 12 (𝑎 ∈ 𝑌 ↦ if(𝑎 ∈ ran 𝐹, 1o, ∅)):𝑌⟶2o
5150a1i 11 . . . . . . . . . . 11 ((𝜑 ∧ 𝐹 ∈ (𝑋𝐸𝑌)) → (𝑎 ∈ 𝑌 ↦ if(𝑎 ∈ ran 𝐹, 1o, ∅)):𝑌⟶2o)
526, 36, 3, 37, 38, 40, 18, 51setcco 18287 . . . . . . . . . 10 ((𝜑 ∧ 𝐹 ∈ (𝑋𝐸𝑌)) → ((𝑎 ∈ 𝑌 ↦ if(𝑎 ∈ ran 𝐹, 1o, ∅))(⟨𝑋, 𝑌⟩(comp‘𝐶)2o)𝐹) = ((𝑎 ∈ 𝑌 ↦ if(𝑎 ∈ ran 𝐹, 1o, ∅)) ∘ 𝐹))
53 fconst6g 6793 . . . . . . . . . . . 12 (1o ∈ 2o → (𝑌 × {1o}):𝑌⟶2o)
5444, 53mp1i 14 . . . . . . . . . . 11 ((𝜑 ∧ 𝐹 ∈ (𝑋𝐸𝑌)) → (𝑌 × {1o}):𝑌⟶2o)
556, 36, 3, 37, 38, 40, 18, 54setcco 18287 . . . . . . . . . 10 ((𝜑 ∧ 𝐹 ∈ (𝑋𝐸𝑌)) → ((𝑌 × {1o})(⟨𝑋, 𝑌⟩(comp‘𝐶)2o)𝐹) = ((𝑌 × {1o}) ∘ 𝐹))
5635, 52, 553eqtr4d 2808 . . . . . . . . 9 ((𝜑 ∧ 𝐹 ∈ (𝑋𝐸𝑌)) → ((𝑎 ∈ 𝑌 ↦ if(𝑎 ∈ ran 𝐹, 1o, ∅))(⟨𝑋, 𝑌⟩(comp‘𝐶)2o)𝐹) = ((𝑌 × {1o})(⟨𝑋, 𝑌⟩(comp‘𝐶)2o)𝐹))
578adantr 486 . . . . . . . . . 10 ((𝜑 ∧ 𝐹 ∈ (𝑋𝐸𝑌)) → 𝐶 ∈ Cat)
5811adantr 486 . . . . . . . . . 10 ((𝜑 ∧ 𝐹 ∈ (𝑋𝐸𝑌)) → 𝑋 ∈ (Base‘𝐶))
5913adantr 486 . . . . . . . . . 10 ((𝜑 ∧ 𝐹 ∈ (𝑋𝐸𝑌)) → 𝑌 ∈ (Base‘𝐶))
6039, 10eleqtrd 2866 . . . . . . . . . . 11 (𝜑 → 2o ∈ (Base‘𝐶))
6160adantr 486 . . . . . . . . . 10 ((𝜑 ∧ 𝐹 ∈ (𝑋𝐸𝑌)) → 2o ∈ (Base‘𝐶))
62 simpr 490 . . . . . . . . . 10 ((𝜑 ∧ 𝐹 ∈ (𝑋𝐸𝑌)) → 𝐹 ∈ (𝑋𝐸𝑌))
636, 36, 2, 38, 40elsetchom 18285 . . . . . . . . . . 11 ((𝜑 ∧ 𝐹 ∈ (𝑋𝐸𝑌)) → ((𝑎 ∈ 𝑌 ↦ if(𝑎 ∈ ran 𝐹, 1o, ∅)) ∈ (𝑌(Hom ‘𝐶)2o) ↔ (𝑎 ∈ 𝑌 ↦ if(𝑎 ∈ ran 𝐹, 1o, ∅)):𝑌⟶2o))
6451, 63mpbird 260 . . . . . . . . . 10 ((𝜑 ∧ 𝐹 ∈ (𝑋𝐸𝑌)) → (𝑎 ∈ 𝑌 ↦ if(𝑎 ∈ ran 𝐹, 1o, ∅)) ∈ (𝑌(Hom ‘𝐶)2o))
656, 36, 2, 38, 40elsetchom 18285 . . . . . . . . . . 11 ((𝜑 ∧ 𝐹 ∈ (𝑋𝐸𝑌)) → ((𝑌 × {1o}) ∈ (𝑌(Hom ‘𝐶)2o) ↔ (𝑌 × {1o}):𝑌⟶2o))
6654, 65mpbird 260 . . . . . . . . . 10 ((𝜑 ∧ 𝐹 ∈ (𝑋𝐸𝑌)) → (𝑌 × {1o}) ∈ (𝑌(Hom ‘𝐶)2o))
671, 2, 3, 4, 57, 58, 59, 61, 62, 64, 66epii 17947 . . . . . . . . 9 ((𝜑 ∧ 𝐹 ∈ (𝑋𝐸𝑌)) → (((𝑎 ∈ 𝑌 ↦ if(𝑎 ∈ ran 𝐹, 1o, ∅))(⟨𝑋, 𝑌⟩(comp‘𝐶)2o)𝐹) = ((𝑌 × {1o})(⟨𝑋, 𝑌⟩(comp‘𝐶)2o)𝐹) ↔ (𝑎 ∈ 𝑌 ↦ if(𝑎 ∈ ran 𝐹, 1o, ∅)) = (𝑌 × {1o})))
6856, 67mpbid 235 . . . . . . . 8 ((𝜑 ∧ 𝐹 ∈ (𝑋𝐸𝑌)) → (𝑎 ∈ 𝑌 ↦ if(𝑎 ∈ ran 𝐹, 1o, ∅)) = (𝑌 × {1o}))
6968, 31eqtrdi 2814 . . . . . . 7 ((𝜑 ∧ 𝐹 ∈ (𝑋𝐸𝑌)) → (𝑎 ∈ 𝑌 ↦ if(𝑎 ∈ ran 𝐹, 1o, ∅)) = (𝑎 ∈ 𝑌 ↦ 1o))
7048rgenw 3084 . . . . . . . 8 ∀𝑎 ∈ 𝑌 if(𝑎 ∈ ran 𝐹, 1o, ∅) ∈ 2o
71 mpteqb 7036 . . . . . . . 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 8523 . . . . . . . . . 10 1o ≠ ∅
7574nesymi 3016 . . . . . . . . 9 ¬ ∅ = 1o
76 iffalse 4494 . . . . . . . . . 10 (¬ 𝑎 ∈ ran 𝐹 → if(𝑎 ∈ ran 𝐹, 1o, ∅) = ∅)
7776eqeq1d 2765 . . . . . . . . 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 3103 . . . . . 6 (∀𝑎 ∈ 𝑌 if(𝑎 ∈ ran 𝐹, 1o, ∅) = 1o → ∀𝑎 ∈ 𝑌 𝑎 ∈ ran 𝐹)
8173, 80syl 18 . . . . 5 ((𝜑 ∧ 𝐹 ∈ (𝑋𝐸𝑌)) → ∀𝑎 ∈ 𝑌 𝑎 ∈ ran 𝐹)
82 dfss3 3902 . . . . 5 (𝑌 ⊆ ran 𝐹 ↔ ∀𝑎 ∈ 𝑌 𝑎 ∈ ran 𝐹)
8381, 82sylibr 237 . . . 4 ((𝜑 ∧ 𝐹 ∈ (𝑋𝐸𝑌)) → 𝑌 ⊆ ran 𝐹)
8419, 83eqssd 3930 . . 3 ((𝜑 ∧ 𝐹 ∈ (𝑋𝐸𝑌)) → ran 𝐹 = 𝑌)
85 dffo2 6822 . . 3 (𝐹:𝑋⟶onto𝑌 ↔ (𝐹:𝑋⟶𝑌 ∧ ran 𝐹 = 𝑌))
8618, 84, 85sylanbrc 595 . 2 ((𝜑 ∧ 𝐹 ∈ (𝑋𝐸𝑌)) → 𝐹:𝑋⟶onto𝑌)
87 fof 6818 . . . . 5 (𝐹:𝑋⟶onto𝑌 → 𝐹:𝑋⟶𝑌)
8887adantl 487 . . . 4 ((𝜑 ∧ 𝐹:𝑋⟶onto𝑌) → 𝐹:𝑋⟶𝑌)
8916biimpar 483 . . . 4 ((𝜑 ∧ 𝐹:𝑋⟶𝑌) → 𝐹 ∈ (𝑋(Hom ‘𝐶)𝑌))
9088, 89syldan 603 . . 3 ((𝜑 ∧ 𝐹:𝑋⟶onto𝑌) → 𝐹 ∈ (𝑋(Hom ‘𝐶)𝑌))
9110adantr 486 . . . . . 6 ((𝜑 ∧ 𝐹:𝑋⟶onto𝑌) → 𝑈 = (Base‘𝐶))
9291eleq2d 2850 . . . . 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 18285 . . . . . . . . . . . 12 (((𝜑 ∧ 𝐹:𝑋⟶onto𝑌) ∧ (𝑧 ∈ 𝑈 ∧ (𝑔 ∈ (𝑌(Hom ‘𝐶)𝑧) ∧ ℎ ∈ (𝑌(Hom ‘𝐶)𝑧)))) → (𝑔 ∈ (𝑌(Hom ‘𝐶)𝑧) ↔ 𝑔:𝑌⟶𝑧))
10098, 99mpbid 235 . . . . . . . . . . 11 (((𝜑 ∧ 𝐹:𝑋⟶onto𝑌) ∧ (𝑧 ∈ 𝑈 ∧ (𝑔 ∈ (𝑌(Hom ‘𝐶)𝑧) ∧ ℎ ∈ (𝑌(Hom ‘𝐶)𝑧)))) → 𝑔:𝑌⟶𝑧)
1016, 93, 3, 94, 95, 96, 97, 100setcco 18287 . . . . . . . . . 10 (((𝜑 ∧ 𝐹:𝑋⟶onto𝑌) ∧ (𝑧 ∈ 𝑈 ∧ (𝑔 ∈ (𝑌(Hom ‘𝐶)𝑧) ∧ ℎ ∈ (𝑌(Hom ‘𝐶)𝑧)))) → (𝑔(⟨𝑋, 𝑌⟩(comp‘𝐶)𝑧)𝐹) = (𝑔 ∘ 𝐹))
102 simprrr 794 . . . . . . . . . . . 12 (((𝜑 ∧ 𝐹:𝑋⟶onto𝑌) ∧ (𝑧 ∈ 𝑈 ∧ (𝑔 ∈ (𝑌(Hom ‘𝐶)𝑧) ∧ ℎ ∈ (𝑌(Hom ‘𝐶)𝑧)))) → ℎ ∈ (𝑌(Hom ‘𝐶)𝑧))
1036, 93, 2, 95, 96elsetchom 18285 . . . . . . . . . . . 12 (((𝜑 ∧ 𝐹:𝑋⟶onto𝑌) ∧ (𝑧 ∈ 𝑈 ∧ (𝑔 ∈ (𝑌(Hom ‘𝐶)𝑧) ∧ ℎ ∈ (𝑌(Hom ‘𝐶)𝑧)))) → (ℎ ∈ (𝑌(Hom ‘𝐶)𝑧) ↔ ℎ:𝑌⟶𝑧))
104102, 103mpbid 235 . . . . . . . . . . 11 (((𝜑 ∧ 𝐹:𝑋⟶onto𝑌) ∧ (𝑧 ∈ 𝑈 ∧ (𝑔 ∈ (𝑌(Hom ‘𝐶)𝑧) ∧ ℎ ∈ (𝑌(Hom ‘𝐶)𝑧)))) → ℎ:𝑌⟶𝑧)
1056, 93, 3, 94, 95, 96, 97, 104setcco 18287 . . . . . . . . . 10 (((𝜑 ∧ 𝐹:𝑋⟶onto𝑌) ∧ (𝑧 ∈ 𝑈 ∧ (𝑔 ∈ (𝑌(Hom ‘𝐶)𝑧) ∧ ℎ ∈ (𝑌(Hom ‘𝐶)𝑧)))) → (ℎ(⟨𝑋, 𝑌⟩(comp‘𝐶)𝑧)𝐹) = (ℎ ∘ 𝐹))
106101, 105eqeq12d 2779 . . . . . . . . 9 (((𝜑 ∧ 𝐹:𝑋⟶onto𝑌) ∧ (𝑧 ∈ 𝑈 ∧ (𝑔 ∈ (𝑌(Hom ‘𝐶)𝑧) ∧ ℎ ∈ (𝑌(Hom ‘𝐶)𝑧)))) → ((𝑔(⟨𝑋, 𝑌⟩(comp‘𝐶)𝑧)𝐹) = (ℎ(⟨𝑋, 𝑌⟩(comp‘𝐶)𝑧)𝐹) ↔ (𝑔 ∘ 𝐹) = (ℎ ∘ 𝐹)))
107 simplr 781 . . . . . . . . . . 11 (((𝜑 ∧ 𝐹:𝑋⟶onto𝑌) ∧ (𝑧 ∈ 𝑈 ∧ (𝑔 ∈ (𝑌(Hom ‘𝐶)𝑧) ∧ ℎ ∈ (𝑌(Hom ‘𝐶)𝑧)))) → 𝐹:𝑋⟶onto𝑌)
108100ffnd 6732 . . . . . . . . . . 11 (((𝜑 ∧ 𝐹:𝑋⟶onto𝑌) ∧ (𝑧 ∈ 𝑈 ∧ (𝑔 ∈ (𝑌(Hom ‘𝐶)𝑧) ∧ ℎ ∈ (𝑌(Hom ‘𝐶)𝑧)))) → 𝑔 Fn 𝑌)
109104ffnd 6732 . . . . . . . . . . 11 (((𝜑 ∧ 𝐹:𝑋⟶onto𝑌) ∧ (𝑧 ∈ 𝑈 ∧ (𝑔 ∈ (𝑌(Hom ‘𝐶)𝑧) ∧ ℎ ∈ (𝑌(Hom ‘𝐶)𝑧)))) → ℎ Fn 𝑌)
110 cocan2 7323 . . . . . . . . . . 11 ((𝐹:𝑋⟶onto𝑌 ∧ 𝑔 Fn 𝑌 ∧ ℎ Fn 𝑌) → ((𝑔 ∘ 𝐹) = (ℎ ∘ 𝐹) ↔ 𝑔 = ℎ))
111107, 108, 109, 110syl3anc 1399 . . . . . . . . . 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 3209 . . . . . 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 3157 . . 3 ((𝜑 ∧ 𝐹:𝑋⟶onto𝑌) → ∀𝑧 ∈ (Base‘𝐶)∀𝑔 ∈ (𝑌(Hom ‘𝐶)𝑧)∀ℎ ∈ (𝑌(Hom ‘𝐶)𝑧)((𝑔(⟨𝑋, 𝑌⟩(comp‘𝐶)𝑧)𝐹) = (ℎ(⟨𝑋, 𝑌⟩(comp‘𝐶)𝑧)𝐹) → 𝑔 = ℎ))
1191, 2, 3, 4, 8, 11, 13isepi2 17945 . . . 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 2147  ∀wral 3080   ⊆ wss 3900  ∅c0 4281  ifcif 4485  {csn 4588  {cpr 4590  ⟨cop 4838   ↦ cmpt 5189   × cxp 5653  ran crn 5656   ∘ ccom 5659   Fn wfn 6553  ⟶wf 6554  ⟶ontowfo 6556  ‘cfv 6558  (class class class)co 7443  1oc1o 8497  2oc2o 8498  Basecbs 17416  Hom chom 17468  compcco 17469  Catccat 17867  Epicepi 17933  SetCatcsetc 18279
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 1945  ax-6 2002  ax-7 2043  ax-8 2149  ax-9 2157  ax-10 2180  ax-11 2197  ax-12 2216  ax-ext 2735  ax-rep 5235  ax-sep 5252  ax-nul 5263  ax-pow 5331  ax-pr 5395  ax-un 7775  ax-cnex 11283  ax-resscn 11284  ax-1cn 11285  ax-icn 11286  ax-addcl 11287  ax-addrcl 11288  ax-mulcl 11289  ax-mulrcl 11290  ax-mulcom 11291  ax-addass 11292  ax-mulass 11293  ax-distr 11294  ax-i2m1 11295  ax-1ne0 11296  ax-1rid 11297  ax-rnegex 11298  ax-rrecex 11299  ax-cnre 11300  ax-pre-lttri 11301  ax-pre-lttrn 11302  ax-pre-ltadd 11303  ax-pre-mulgt0 11304
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 2102  df-mo 2567  df-eu 2597  df-clab 2742  df-cleq 2755  df-clel 2839  df-nfc 2913  df-ne 2960  df-nel 3066  df-ral 3081  df-rex 3091  df-rmo 3369  df-reu 3370  df-rab 3417  df-v 3456  df-sbc 3743  df-csb 3852  df-ss 3901  df-pss 4017  df-dif 4050  df-in 4094  df-un 4154  df-nul 4282  df-if 4486  df-pw 4562  df-sn 4589  df-pr 4591  df-tp 4593  df-op 4839  df-uni 4871  df-iun 4956  df-br 5107  df-opab 5171  df-mpt 5190  df-tr 5216  df-id 5550  df-eprel 5555  df-po 5563  df-so 5564  df-fr 5608  df-we 5610  df-xp 5661  df-rel 5662  df-cnv 5663  df-co 5664  df-dm 5665  df-rn 5666  df-res 5667  df-ima 5668  df-pred 6322  df-ord 6383  df-on 6384  df-lim 6385  df-suc 6386  df-iota 6512  df-fun 6560  df-fn 6561  df-f 6562  df-f1 6563  df-fo 6564  df-f1o 6565  df-fv 6566  df-riota 7400  df-ov 7446  df-oprab 7447  df-mpo 7448  df-om 7902  df-1st 8025  df-2nd 8026  df-tpos 8271  df-frecs 8327  df-wrecs 8358  df-recs 8407  df-rdg 8446  df-1o 8504  df-2o 8505  df-er 8745  df-map 8877  df-en 9002  df-dom 9003  df-sdom 9004  df-fin 9005  df-pnf 11372  df-mnf 11373  df-xr 11374  df-ltxr 11375  df-le 11376  df-sub 11570  df-neg 11571  df-nn 12363  df-2 12432  df-3 12433  df-4 12434  df-5 12435  df-6 12436  df-7 12437  df-8 12438  df-9 12439  df-n0 12634  df-z 12721  df-dec 12842  df-uz 12993  df-fz 13667  df-struct 17354  df-sets 17371  df-slot 17389  df-ndx 17401  df-base 17417  df-hom 17481  df-cco 17482  df-cat 17871  df-cid 17872  df-oppc 17915  df-mon 17934  df-epi 17935  df-setc 18280
This theorem is used by: (None)
  Copyright terms: Public domain W3C validator