Users' Mathboxes Mathbox for Zhi Wang < Previous   Next >
Nearby theorems
Mirrors  >  Home  >  MPE Home  >  Th. List  >   Mathboxes  >  euendfunc Structured version   Visualization version   GIF version

Theorem euendfunc 51082
Description: If there exists a unique endofunctor (a functor from a category to itself) for a non-empty category, then the category is terminal. This partially explains why two categories are sufficient in termc2 51074. (Contributed by Zhi Wang, 20-Oct-2025.)
Hypotheses
Ref Expression
euendfunc.f (𝜑 → ∃!𝑓 𝑓 ∈ (𝐶 Func 𝐶))
euendfunc.b 𝐵 = (Base‘𝐶)
euendfunc.0 (𝜑 → 𝐵 ≠ ∅)
Assertion
Ref Expression
euendfunc (𝜑 → 𝐶 ∈ TermCat)
Distinct variable group:   𝐶,𝑓
Allowed substitution hints:   𝜑(𝑓)   𝐵(𝑓)

Proof of Theorem euendfunc
Dummy variables 𝑔 𝑥 are mutually distinct and distinct from all other variables.
StepHypRef Expression
1 euendfunc.0 . . 3 (𝜑 → 𝐵 ≠ ∅)
2 n0 4302 . . 3 (𝐵 ≠ ∅ ↔ ∃𝑥 𝑥 ∈ 𝐵)
31, 2sylib 221 . 2 (𝜑 → ∃𝑥 𝑥 ∈ 𝐵)
4 eqid 2766 . . 3 (idfunc‘𝐶) = (idfunc‘𝐶)
5 eqid 2766 . . 3 (𝐶Δfunc𝐶) = (𝐶Δfunc𝐶)
6 euendfunc.f . . . . . 6 (𝜑 → ∃!𝑓 𝑓 ∈ (𝐶 Func 𝐶))
76adantr 486 . . . . 5 ((𝜑 ∧ 𝑥 ∈ 𝐵) → ∃!𝑓 𝑓 ∈ (𝐶 Func 𝐶))
8 euex 2608 . . . . 5 (∃!𝑓 𝑓 ∈ (𝐶 Func 𝐶) → ∃𝑓 𝑓 ∈ (𝐶 Func 𝐶))
97, 8syl 18 . . . 4 ((𝜑 ∧ 𝑥 ∈ 𝐵) → ∃𝑓 𝑓 ∈ (𝐶 Func 𝐶))
10 funcrcl 18091 . . . . . 6 (𝑓 ∈ (𝐶 Func 𝐶) → (𝐶 ∈ Cat ∧ 𝐶 ∈ Cat))
1110simpld 500 . . . . 5 (𝑓 ∈ (𝐶 Func 𝐶) → 𝐶 ∈ Cat)
1211exlimiv 1967 . . . 4 (∃𝑓 𝑓 ∈ (𝐶 Func 𝐶) → 𝐶 ∈ Cat)
139, 12syl 18 . . 3 ((𝜑 ∧ 𝑥 ∈ 𝐵) → 𝐶 ∈ Cat)
14 euendfunc.b . . 3 𝐵 = (Base‘𝐶)
15 simpr 490 . . 3 ((𝜑 ∧ 𝑥 ∈ 𝐵) → 𝑥 ∈ 𝐵)
16 eqid 2766 . . 3 ((1st ‘(𝐶Δfunc𝐶))‘𝑥) = ((1st ‘(𝐶Δfunc𝐶))‘𝑥)
174idfucl 18109 . . . . 5 (𝐶 ∈ Cat → (idfunc‘𝐶) ∈ (𝐶 Func 𝐶))
1813, 17syl 18 . . . 4 ((𝜑 ∧ 𝑥 ∈ 𝐵) → (idfunc‘𝐶) ∈ (𝐶 Func 𝐶))
195, 13, 13, 14, 15, 16diag1cl 18469 . . . 4 ((𝜑 ∧ 𝑥 ∈ 𝐵) → ((1st ‘(𝐶Δfunc𝐶))‘𝑥) ∈ (𝐶 Func 𝐶))
20 eumo 2609 . . . . . . 7 (∃!𝑓 𝑓 ∈ (𝐶 Func 𝐶) → ∃*𝑓 𝑓 ∈ (𝐶 Func 𝐶))
217, 20syl 18 . . . . . 6 ((𝜑 ∧ 𝑥 ∈ 𝐵) → ∃*𝑓 𝑓 ∈ (𝐶 Func 𝐶))
22 eleq1w 2850 . . . . . . 7 (𝑓 = 𝑔 → (𝑓 ∈ (𝐶 Func 𝐶) ↔ 𝑔 ∈ (𝐶 Func 𝐶)))
2322mo4 2597 . . . . . 6 (∃*𝑓 𝑓 ∈ (𝐶 Func 𝐶) ↔ ∀𝑓∀𝑔((𝑓 ∈ (𝐶 Func 𝐶) ∧ 𝑔 ∈ (𝐶 Func 𝐶)) → 𝑓 = 𝑔))
2421, 23sylib 221 . . . . 5 ((𝜑 ∧ 𝑥 ∈ 𝐵) → ∀𝑓∀𝑔((𝑓 ∈ (𝐶 Func 𝐶) ∧ 𝑔 ∈ (𝐶 Func 𝐶)) → 𝑓 = 𝑔))
25 fvex 6929 . . . . . 6 (idfunc‘𝐶) ∈ V
26 fvex 6929 . . . . . 6 ((1st ‘(𝐶Δfunc𝐶))‘𝑥) ∈ V
27 simpl 488 . . . . . . . . . 10 ((𝑓 = (idfunc‘𝐶) ∧ 𝑔 = ((1st ‘(𝐶Δfunc𝐶))‘𝑥)) → 𝑓 = (idfunc‘𝐶))
2827eleq1d 2852 . . . . . . . . 9 ((𝑓 = (idfunc‘𝐶) ∧ 𝑔 = ((1st ‘(𝐶Δfunc𝐶))‘𝑥)) → (𝑓 ∈ (𝐶 Func 𝐶) ↔ (idfunc‘𝐶) ∈ (𝐶 Func 𝐶)))
29 simpr 490 . . . . . . . . . 10 ((𝑓 = (idfunc‘𝐶) ∧ 𝑔 = ((1st ‘(𝐶Δfunc𝐶))‘𝑥)) → 𝑔 = ((1st ‘(𝐶Δfunc𝐶))‘𝑥))
3029eleq1d 2852 . . . . . . . . 9 ((𝑓 = (idfunc‘𝐶) ∧ 𝑔 = ((1st ‘(𝐶Δfunc𝐶))‘𝑥)) → (𝑔 ∈ (𝐶 Func 𝐶) ↔ ((1st ‘(𝐶Δfunc𝐶))‘𝑥) ∈ (𝐶 Func 𝐶)))
3128, 30anbi12d 644 . . . . . . . 8 ((𝑓 = (idfunc‘𝐶) ∧ 𝑔 = ((1st ‘(𝐶Δfunc𝐶))‘𝑥)) → ((𝑓 ∈ (𝐶 Func 𝐶) ∧ 𝑔 ∈ (𝐶 Func 𝐶)) ↔ ((idfunc‘𝐶) ∈ (𝐶 Func 𝐶) ∧ ((1st ‘(𝐶Δfunc𝐶))‘𝑥) ∈ (𝐶 Func 𝐶))))
32 eqeq12 2783 . . . . . . . 8 ((𝑓 = (idfunc‘𝐶) ∧ 𝑔 = ((1st ‘(𝐶Δfunc𝐶))‘𝑥)) → (𝑓 = 𝑔 ↔ (idfunc‘𝐶) = ((1st ‘(𝐶Δfunc𝐶))‘𝑥)))
3331, 32imbi12d 347 . . . . . . 7 ((𝑓 = (idfunc‘𝐶) ∧ 𝑔 = ((1st ‘(𝐶Δfunc𝐶))‘𝑥)) → (((𝑓 ∈ (𝐶 Func 𝐶) ∧ 𝑔 ∈ (𝐶 Func 𝐶)) → 𝑓 = 𝑔) ↔ (((idfunc‘𝐶) ∈ (𝐶 Func 𝐶) ∧ ((1st ‘(𝐶Δfunc𝐶))‘𝑥) ∈ (𝐶 Func 𝐶)) → (idfunc‘𝐶) = ((1st ‘(𝐶Δfunc𝐶))‘𝑥))))
3433spc2gv 3557 . . . . . 6 (((idfunc‘𝐶) ∈ V ∧ ((1st ‘(𝐶Δfunc𝐶))‘𝑥) ∈ V) → (∀𝑓∀𝑔((𝑓 ∈ (𝐶 Func 𝐶) ∧ 𝑔 ∈ (𝐶 Func 𝐶)) → 𝑓 = 𝑔) → (((idfunc‘𝐶) ∈ (𝐶 Func 𝐶) ∧ ((1st ‘(𝐶Δfunc𝐶))‘𝑥) ∈ (𝐶 Func 𝐶)) → (idfunc‘𝐶) = ((1st ‘(𝐶Δfunc𝐶))‘𝑥))))
3525, 26, 34mp2an 705 . . . . 5 (∀𝑓∀𝑔((𝑓 ∈ (𝐶 Func 𝐶) ∧ 𝑔 ∈ (𝐶 Func 𝐶)) → 𝑓 = 𝑔) → (((idfunc‘𝐶) ∈ (𝐶 Func 𝐶) ∧ ((1st ‘(𝐶Δfunc𝐶))‘𝑥) ∈ (𝐶 Func 𝐶)) → (idfunc‘𝐶) = ((1st ‘(𝐶Δfunc𝐶))‘𝑥)))
3624, 35syl 18 . . . 4 ((𝜑 ∧ 𝑥 ∈ 𝐵) → (((idfunc‘𝐶) ∈ (𝐶 Func 𝐶) ∧ ((1st ‘(𝐶Δfunc𝐶))‘𝑥) ∈ (𝐶 Func 𝐶)) → (idfunc‘𝐶) = ((1st ‘(𝐶Δfunc𝐶))‘𝑥)))
3718, 19, 36mp2and 712 . . 3 ((𝜑 ∧ 𝑥 ∈ 𝐵) → (idfunc‘𝐶) = ((1st ‘(𝐶Δfunc𝐶))‘𝑥))
384, 5, 13, 14, 15, 16, 37idfudiag1 51081 . 2 ((𝜑 ∧ 𝑥 ∈ 𝐵) → 𝐶 ∈ TermCat)
393, 38exlimddv 1972 1 (𝜑 → 𝐶 ∈ TermCat)
Colors of variables:    wff setvar class
This proof depends on syntax axioms:   → wi 4   ∧ wa 401  ∀wal 1570   = wceq 1572  ∃wex 1814   ∈ wcel 2150  ∃*wmo 2568  ∃!weu 2599   ≠ wne 2962  Vcvv 3453  ∅c0 4280  ‘cfv 6566  (class class class)co 7451  1st c1st 8033  Basecbs 17434  Catccat 17891   Func cfunc 18082  idfunccidfu 18083  Δfunccdiag 18439  TermCatctermc 51028
This proof depends on axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1830  ax-4 1844  ax-5 1947  ax-6 2004  ax-7 2045  ax-8 2152  ax-9 2160  ax-10 2183  ax-11 2200  ax-12 2219  ax-ext 2738  ax-rep 5237  ax-sep 5254  ax-nul 5265  ax-pow 5333  ax-pr 5397  ax-un 7783  ax-cnex 11295  ax-resscn 11296  ax-1cn 11297  ax-icn 11298  ax-addcl 11299  ax-addrcl 11300  ax-mulcl 11301  ax-mulrcl 11302  ax-mulcom 11303  ax-addass 11304  ax-mulass 11305  ax-distr 11306  ax-i2m1 11307  ax-1ne0 11308  ax-1rid 11309  ax-rnegex 11310  ax-rrecex 11311  ax-cnre 11312  ax-pre-lttri 11313  ax-pre-lttrn 11314  ax-pre-ltadd 11315  ax-pre-mulgt0 11316
This proof depends on definitions:  df-bi 210  df-an 402  df-or 862  df-3or 1105  df-3an 1106  df-tru 1575  df-fal 1585  df-ex 1815  df-nf 1819  df-sb 2104  df-mo 2570  df-eu 2600  df-clab 2745  df-cleq 2758  df-clel 2842  df-nfc 2916  df-ne 2963  df-nel 3069  df-ral 3084  df-rex 3094  df-rmo 3368  df-reu 3369  df-rab 3416  df-v 3455  df-sbc 3742  df-csb 3851  df-ss 3900  df-pss 4016  df-dif 4049  df-in 4093  df-un 4153  df-nul 4281  df-if 4485  df-pw 4561  df-sn 4588  df-pr 4590  df-tp 4592  df-op 4840  df-uni 4872  df-iun 4957  df-br 5108  df-opab 5173  df-mpt 5192  df-tr 5218  df-id 5552  df-eprel 5557  df-po 5565  df-so 5566  df-fr 5610  df-we 5612  df-xp 5663  df-rel 5664  df-cnv 5665  df-co 5666  df-dm 5667  df-rn 5668  df-res 5669  df-ima 5670  df-pred 6330  df-ord 6391  df-on 6392  df-lim 6393  df-suc 6394  df-iota 6520  df-fun 6568  df-fn 6569  df-f 6570  df-f1 6571  df-fo 6572  df-f1o 6573  df-fv 6574  df-riota 7408  df-ov 7454  df-oprab 7455  df-mpo 7456  df-om 7912  df-1st 8035  df-2nd 8036  df-frecs 8337  df-wrecs 8368  df-recs 8417  df-rdg 8456  df-1o 8514  df-er 8755  df-map 8887  df-ixp 8964  df-en 9012  df-dom 9013  df-sdom 9014  df-fin 9015  df-pnf 11384  df-mnf 11385  df-xr 11386  df-ltxr 11387  df-le 11388  df-sub 11582  df-neg 11583  df-nn 12376  df-2 12445  df-3 12446  df-4 12447  df-5 12448  df-6 12449  df-7 12450  df-8 12451  df-9 12452  df-n0 12647  df-z 12734  df-dec 12855  df-uz 13006  df-fz 13680  df-struct 17372  df-slot 17407  df-ndx 17419  df-base 17435  df-hom 17500  df-cco 17501  df-cat 17895  df-cid 17896  df-func 18086  df-idfu 18087  df-nat 18174  df-fuc 18175  df-xpc 18399  df-1stf 18400  df-curf 18441  df-diag 18443  df-thinc 50974  df-termc 51029
This theorem is used by:  euendfunc2  51083
  Copyright terms: Public domain W3C validator