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

Theorem termopropd 49276
Description: Two structures with the same base, hom-sets and composition operation have the same terminal objects. (Contributed by Zhi Wang, 26-Oct-2025.)
Hypotheses
Ref Expression
initopropd.1 (𝜑 → (Homf𝐶) = (Homf𝐷))
initopropd.2 (𝜑 → (compf𝐶) = (compf𝐷))
Assertion
Ref Expression
termopropd (𝜑 → (TermO‘𝐶) = (TermO‘𝐷))

Proof of Theorem termopropd
Dummy variables 𝑎 𝑏 are mutually distinct and distinct from all other variables.
StepHypRef Expression
1 initopropd.1 . . . 4 (𝜑 → (Homf𝐶) = (Homf𝐷))
21adantr 480 . . 3 ((𝜑 ∧ ¬ 𝐶 ∈ V) → (Homf𝐶) = (Homf𝐷))
3 initopropd.2 . . . 4 (𝜑 → (compf𝐶) = (compf𝐷))
43adantr 480 . . 3 ((𝜑 ∧ ¬ 𝐶 ∈ V) → (compf𝐶) = (compf𝐷))
5 simpr 484 . . 3 ((𝜑 ∧ ¬ 𝐶 ∈ V) → ¬ 𝐶 ∈ V)
62, 4, 5termopropdlem 49273 . 2 ((𝜑 ∧ ¬ 𝐶 ∈ V) → (TermO‘𝐶) = (TermO‘𝐷))
71adantr 480 . . . . 5 ((𝜑 ∧ ¬ 𝐷 ∈ V) → (Homf𝐶) = (Homf𝐷))
87eqcomd 2737 . . . 4 ((𝜑 ∧ ¬ 𝐷 ∈ V) → (Homf𝐷) = (Homf𝐶))
93adantr 480 . . . . 5 ((𝜑 ∧ ¬ 𝐷 ∈ V) → (compf𝐶) = (compf𝐷))
109eqcomd 2737 . . . 4 ((𝜑 ∧ ¬ 𝐷 ∈ V) → (compf𝐷) = (compf𝐶))
11 simpr 484 . . . 4 ((𝜑 ∧ ¬ 𝐷 ∈ V) → ¬ 𝐷 ∈ V)
128, 10, 11termopropdlem 49273 . . 3 ((𝜑 ∧ ¬ 𝐷 ∈ V) → (TermO‘𝐷) = (TermO‘𝐶))
1312eqcomd 2737 . 2 ((𝜑 ∧ ¬ 𝐷 ∈ V) → (TermO‘𝐶) = (TermO‘𝐷))
141adantr 480 . . . . . . . . . . . . . 14 ((𝜑 ∧ (𝐶 ∈ V ∧ 𝐷 ∈ V)) → (Homf𝐶) = (Homf𝐷))
1514adantr 480 . . . . . . . . . . . . 13 (((𝜑 ∧ (𝐶 ∈ V ∧ 𝐷 ∈ V)) ∧ 𝐶 ∈ Cat) → (Homf𝐶) = (Homf𝐷))
16 eqid 2731 . . . . . . . . . . . . . . 15 (Hom ‘𝐶) = (Hom ‘𝐶)
17 eqid 2731 . . . . . . . . . . . . . . 15 (Hom ‘𝐷) = (Hom ‘𝐷)
18 eqidd 2732 . . . . . . . . . . . . . . 15 (((𝜑 ∧ (𝐶 ∈ V ∧ 𝐷 ∈ V)) ∧ 𝐶 ∈ Cat) → (Base‘𝐶) = (Base‘𝐶))
1915homfeqbas 17597 . . . . . . . . . . . . . . 15 (((𝜑 ∧ (𝐶 ∈ V ∧ 𝐷 ∈ V)) ∧ 𝐶 ∈ Cat) → (Base‘𝐶) = (Base‘𝐷))
2016, 17, 18, 19homfeq 17595 . . . . . . . . . . . . . 14 (((𝜑 ∧ (𝐶 ∈ V ∧ 𝐷 ∈ V)) ∧ 𝐶 ∈ Cat) → ((Homf𝐶) = (Homf𝐷) ↔ ∀𝑏 ∈ (Base‘𝐶)∀𝑎 ∈ (Base‘𝐶)(𝑏(Hom ‘𝐶)𝑎) = (𝑏(Hom ‘𝐷)𝑎)))
21 ralcom 3260 . . . . . . . . . . . . . 14 (∀𝑏 ∈ (Base‘𝐶)∀𝑎 ∈ (Base‘𝐶)(𝑏(Hom ‘𝐶)𝑎) = (𝑏(Hom ‘𝐷)𝑎) ↔ ∀𝑎 ∈ (Base‘𝐶)∀𝑏 ∈ (Base‘𝐶)(𝑏(Hom ‘𝐶)𝑎) = (𝑏(Hom ‘𝐷)𝑎))
2220, 21bitrdi 287 . . . . . . . . . . . . 13 (((𝜑 ∧ (𝐶 ∈ V ∧ 𝐷 ∈ V)) ∧ 𝐶 ∈ Cat) → ((Homf𝐶) = (Homf𝐷) ↔ ∀𝑎 ∈ (Base‘𝐶)∀𝑏 ∈ (Base‘𝐶)(𝑏(Hom ‘𝐶)𝑎) = (𝑏(Hom ‘𝐷)𝑎)))
2315, 22mpbid 232 . . . . . . . . . . . 12 (((𝜑 ∧ (𝐶 ∈ V ∧ 𝐷 ∈ V)) ∧ 𝐶 ∈ Cat) → ∀𝑎 ∈ (Base‘𝐶)∀𝑏 ∈ (Base‘𝐶)(𝑏(Hom ‘𝐶)𝑎) = (𝑏(Hom ‘𝐷)𝑎))
2423r19.21bi 3224 . . . . . . . . . . 11 ((((𝜑 ∧ (𝐶 ∈ V ∧ 𝐷 ∈ V)) ∧ 𝐶 ∈ Cat) ∧ 𝑎 ∈ (Base‘𝐶)) → ∀𝑏 ∈ (Base‘𝐶)(𝑏(Hom ‘𝐶)𝑎) = (𝑏(Hom ‘𝐷)𝑎))
2524r19.21bi 3224 . . . . . . . . . 10 (((((𝜑 ∧ (𝐶 ∈ V ∧ 𝐷 ∈ V)) ∧ 𝐶 ∈ Cat) ∧ 𝑎 ∈ (Base‘𝐶)) ∧ 𝑏 ∈ (Base‘𝐶)) → (𝑏(Hom ‘𝐶)𝑎) = (𝑏(Hom ‘𝐷)𝑎))
2625eleq2d 2817 . . . . . . . . 9 (((((𝜑 ∧ (𝐶 ∈ V ∧ 𝐷 ∈ V)) ∧ 𝐶 ∈ Cat) ∧ 𝑎 ∈ (Base‘𝐶)) ∧ 𝑏 ∈ (Base‘𝐶)) → ( ∈ (𝑏(Hom ‘𝐶)𝑎) ↔ ∈ (𝑏(Hom ‘𝐷)𝑎)))
2726eubidv 2581 . . . . . . . 8 (((((𝜑 ∧ (𝐶 ∈ V ∧ 𝐷 ∈ V)) ∧ 𝐶 ∈ Cat) ∧ 𝑎 ∈ (Base‘𝐶)) ∧ 𝑏 ∈ (Base‘𝐶)) → (∃! ∈ (𝑏(Hom ‘𝐶)𝑎) ↔ ∃! ∈ (𝑏(Hom ‘𝐷)𝑎)))
2827ralbidva 3153 . . . . . . 7 ((((𝜑 ∧ (𝐶 ∈ V ∧ 𝐷 ∈ V)) ∧ 𝐶 ∈ Cat) ∧ 𝑎 ∈ (Base‘𝐶)) → (∀𝑏 ∈ (Base‘𝐶)∃! ∈ (𝑏(Hom ‘𝐶)𝑎) ↔ ∀𝑏 ∈ (Base‘𝐶)∃! ∈ (𝑏(Hom ‘𝐷)𝑎)))
2928pm5.32da 579 . . . . . 6 (((𝜑 ∧ (𝐶 ∈ V ∧ 𝐷 ∈ V)) ∧ 𝐶 ∈ Cat) → ((𝑎 ∈ (Base‘𝐶) ∧ ∀𝑏 ∈ (Base‘𝐶)∃! ∈ (𝑏(Hom ‘𝐶)𝑎)) ↔ (𝑎 ∈ (Base‘𝐶) ∧ ∀𝑏 ∈ (Base‘𝐶)∃! ∈ (𝑏(Hom ‘𝐷)𝑎))))
3019eleq2d 2817 . . . . . . 7 (((𝜑 ∧ (𝐶 ∈ V ∧ 𝐷 ∈ V)) ∧ 𝐶 ∈ Cat) → (𝑎 ∈ (Base‘𝐶) ↔ 𝑎 ∈ (Base‘𝐷)))
3119raleqdv 3292 . . . . . . 7 (((𝜑 ∧ (𝐶 ∈ V ∧ 𝐷 ∈ V)) ∧ 𝐶 ∈ Cat) → (∀𝑏 ∈ (Base‘𝐶)∃! ∈ (𝑏(Hom ‘𝐷)𝑎) ↔ ∀𝑏 ∈ (Base‘𝐷)∃! ∈ (𝑏(Hom ‘𝐷)𝑎)))
3230, 31anbi12d 632 . . . . . 6 (((𝜑 ∧ (𝐶 ∈ V ∧ 𝐷 ∈ V)) ∧ 𝐶 ∈ Cat) → ((𝑎 ∈ (Base‘𝐶) ∧ ∀𝑏 ∈ (Base‘𝐶)∃! ∈ (𝑏(Hom ‘𝐷)𝑎)) ↔ (𝑎 ∈ (Base‘𝐷) ∧ ∀𝑏 ∈ (Base‘𝐷)∃! ∈ (𝑏(Hom ‘𝐷)𝑎))))
3329, 32bitrd 279 . . . . 5 (((𝜑 ∧ (𝐶 ∈ V ∧ 𝐷 ∈ V)) ∧ 𝐶 ∈ Cat) → ((𝑎 ∈ (Base‘𝐶) ∧ ∀𝑏 ∈ (Base‘𝐶)∃! ∈ (𝑏(Hom ‘𝐶)𝑎)) ↔ (𝑎 ∈ (Base‘𝐷) ∧ ∀𝑏 ∈ (Base‘𝐷)∃! ∈ (𝑏(Hom ‘𝐷)𝑎))))
3433rabbidva2 3397 . . . 4 (((𝜑 ∧ (𝐶 ∈ V ∧ 𝐷 ∈ V)) ∧ 𝐶 ∈ Cat) → {𝑎 ∈ (Base‘𝐶) ∣ ∀𝑏 ∈ (Base‘𝐶)∃! ∈ (𝑏(Hom ‘𝐶)𝑎)} = {𝑎 ∈ (Base‘𝐷) ∣ ∀𝑏 ∈ (Base‘𝐷)∃! ∈ (𝑏(Hom ‘𝐷)𝑎)})
35 simpr 484 . . . . 5 (((𝜑 ∧ (𝐶 ∈ V ∧ 𝐷 ∈ V)) ∧ 𝐶 ∈ Cat) → 𝐶 ∈ Cat)
36 eqid 2731 . . . . 5 (Base‘𝐶) = (Base‘𝐶)
3735, 36, 16termoval 17896 . . . 4 (((𝜑 ∧ (𝐶 ∈ V ∧ 𝐷 ∈ V)) ∧ 𝐶 ∈ Cat) → (TermO‘𝐶) = {𝑎 ∈ (Base‘𝐶) ∣ ∀𝑏 ∈ (Base‘𝐶)∃! ∈ (𝑏(Hom ‘𝐶)𝑎)})
383adantr 480 . . . . . . 7 ((𝜑 ∧ (𝐶 ∈ V ∧ 𝐷 ∈ V)) → (compf𝐶) = (compf𝐷))
39 simprl 770 . . . . . . 7 ((𝜑 ∧ (𝐶 ∈ V ∧ 𝐷 ∈ V)) → 𝐶 ∈ V)
40 simprr 772 . . . . . . 7 ((𝜑 ∧ (𝐶 ∈ V ∧ 𝐷 ∈ V)) → 𝐷 ∈ V)
4114, 38, 39, 40catpropd 17610 . . . . . 6 ((𝜑 ∧ (𝐶 ∈ V ∧ 𝐷 ∈ V)) → (𝐶 ∈ Cat ↔ 𝐷 ∈ Cat))
4241biimpa 476 . . . . 5 (((𝜑 ∧ (𝐶 ∈ V ∧ 𝐷 ∈ V)) ∧ 𝐶 ∈ Cat) → 𝐷 ∈ Cat)
43 eqid 2731 . . . . 5 (Base‘𝐷) = (Base‘𝐷)
4442, 43, 17termoval 17896 . . . 4 (((𝜑 ∧ (𝐶 ∈ V ∧ 𝐷 ∈ V)) ∧ 𝐶 ∈ Cat) → (TermO‘𝐷) = {𝑎 ∈ (Base‘𝐷) ∣ ∀𝑏 ∈ (Base‘𝐷)∃! ∈ (𝑏(Hom ‘𝐷)𝑎)})
4534, 37, 443eqtr4d 2776 . . 3 (((𝜑 ∧ (𝐶 ∈ V ∧ 𝐷 ∈ V)) ∧ 𝐶 ∈ Cat) → (TermO‘𝐶) = (TermO‘𝐷))
4641pm5.32i 574 . . . 4 (((𝜑 ∧ (𝐶 ∈ V ∧ 𝐷 ∈ V)) ∧ 𝐶 ∈ Cat) ↔ ((𝜑 ∧ (𝐶 ∈ V ∧ 𝐷 ∈ V)) ∧ 𝐷 ∈ Cat))
4746, 45sylbir 235 . . 3 (((𝜑 ∧ (𝐶 ∈ V ∧ 𝐷 ∈ V)) ∧ 𝐷 ∈ Cat) → (TermO‘𝐶) = (TermO‘𝐷))
48 termofn 17890 . . . . . . . 8 TermO Fn Cat
4948fndmi 6580 . . . . . . 7 dom TermO = Cat
5049eleq2i 2823 . . . . . 6 (𝐶 ∈ dom TermO ↔ 𝐶 ∈ Cat)
51 ndmfv 6849 . . . . . 6 𝐶 ∈ dom TermO → (TermO‘𝐶) = ∅)
5250, 51sylnbir 331 . . . . 5 𝐶 ∈ Cat → (TermO‘𝐶) = ∅)
5352ad2antrl 728 . . . 4 (((𝜑 ∧ (𝐶 ∈ V ∧ 𝐷 ∈ V)) ∧ (¬ 𝐶 ∈ Cat ∧ ¬ 𝐷 ∈ Cat)) → (TermO‘𝐶) = ∅)
5449eleq2i 2823 . . . . . 6 (𝐷 ∈ dom TermO ↔ 𝐷 ∈ Cat)
55 ndmfv 6849 . . . . . 6 𝐷 ∈ dom TermO → (TermO‘𝐷) = ∅)
5654, 55sylnbir 331 . . . . 5 𝐷 ∈ Cat → (TermO‘𝐷) = ∅)
5756ad2antll 729 . . . 4 (((𝜑 ∧ (𝐶 ∈ V ∧ 𝐷 ∈ V)) ∧ (¬ 𝐶 ∈ Cat ∧ ¬ 𝐷 ∈ Cat)) → (TermO‘𝐷) = ∅)
5853, 57eqtr4d 2769 . . 3 (((𝜑 ∧ (𝐶 ∈ V ∧ 𝐷 ∈ V)) ∧ (¬ 𝐶 ∈ Cat ∧ ¬ 𝐷 ∈ Cat)) → (TermO‘𝐶) = (TermO‘𝐷))
5945, 47, 58pm2.61ddan 813 . 2 ((𝜑 ∧ (𝐶 ∈ V ∧ 𝐷 ∈ V)) → (TermO‘𝐶) = (TermO‘𝐷))
606, 13, 59pm2.61dda 814 1 (𝜑 → (TermO‘𝐶) = (TermO‘𝐷))
Colors of variables: wff setvar class
Syntax hints:  ¬ wn 3  wi 4  wa 395   = wceq 1541  wcel 2111  ∃!weu 2563  wral 3047  {crab 3395  Vcvv 3436  c0 4278  dom cdm 5611  cfv 6476  (class class class)co 7341  Basecbs 17115  Hom chom 17167  Catccat 17565  Homf chomf 17567  compfccomf 17568  TermOctermo 17884
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1796  ax-4 1810  ax-5 1911  ax-6 1968  ax-7 2009  ax-8 2113  ax-9 2121  ax-10 2144  ax-11 2160  ax-12 2180  ax-ext 2703  ax-rep 5212  ax-sep 5229  ax-nul 5239  ax-pow 5298  ax-pr 5365  ax-un 7663
This theorem depends on definitions:  df-bi 207  df-an 396  df-or 848  df-3an 1088  df-tru 1544  df-fal 1554  df-ex 1781  df-nf 1785  df-sb 2068  df-mo 2535  df-eu 2564  df-clab 2710  df-cleq 2723  df-clel 2806  df-nfc 2881  df-ne 2929  df-ral 3048  df-rex 3057  df-reu 3347  df-rab 3396  df-v 3438  df-sbc 3737  df-csb 3846  df-dif 3900  df-un 3902  df-in 3904  df-ss 3914  df-nul 4279  df-if 4471  df-pw 4547  df-sn 4572  df-pr 4574  df-op 4578  df-uni 4855  df-iun 4938  df-br 5087  df-opab 5149  df-mpt 5168  df-id 5506  df-xp 5617  df-rel 5618  df-cnv 5619  df-co 5620  df-dm 5621  df-rn 5622  df-res 5623  df-ima 5624  df-iota 6432  df-fun 6478  df-fn 6479  df-f 6480  df-f1 6481  df-fo 6482  df-f1o 6483  df-fv 6484  df-ov 7344  df-oprab 7345  df-mpo 7346  df-1st 7916  df-2nd 7917  df-cat 17569  df-homf 17571  df-comf 17572  df-termo 17887
This theorem is referenced by:  zeroopropd  49277
  Copyright terms: Public domain W3C validator