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 49229
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 49226 . 2 ((𝜑 ∧ ¬ 𝐶 ∈ V) → (TermO‘𝐶) = (TermO‘𝐷))
71adantr 480 . . . . 5 ((𝜑 ∧ ¬ 𝐷 ∈ V) → (Homf𝐶) = (Homf𝐷))
87eqcomd 2735 . . . 4 ((𝜑 ∧ ¬ 𝐷 ∈ V) → (Homf𝐷) = (Homf𝐶))
93adantr 480 . . . . 5 ((𝜑 ∧ ¬ 𝐷 ∈ V) → (compf𝐶) = (compf𝐷))
109eqcomd 2735 . . . 4 ((𝜑 ∧ ¬ 𝐷 ∈ V) → (compf𝐷) = (compf𝐶))
11 simpr 484 . . . 4 ((𝜑 ∧ ¬ 𝐷 ∈ V) → ¬ 𝐷 ∈ V)
128, 10, 11termopropdlem 49226 . . 3 ((𝜑 ∧ ¬ 𝐷 ∈ V) → (TermO‘𝐷) = (TermO‘𝐶))
1312eqcomd 2735 . 2 ((𝜑 ∧ ¬ 𝐷 ∈ V) → (TermO‘𝐶) = (TermO‘𝐷))
141adantr 480 . . . . . . . . . . . . . 14 ((𝜑 ∧ (𝐶 ∈ V ∧ 𝐷 ∈ V)) → (Homf𝐶) = (Homf𝐷))
1514adantr 480 . . . . . . . . . . . . 13 (((𝜑 ∧ (𝐶 ∈ V ∧ 𝐷 ∈ V)) ∧ 𝐶 ∈ Cat) → (Homf𝐶) = (Homf𝐷))
16 eqid 2729 . . . . . . . . . . . . . . 15 (Hom ‘𝐶) = (Hom ‘𝐶)
17 eqid 2729 . . . . . . . . . . . . . . 15 (Hom ‘𝐷) = (Hom ‘𝐷)
18 eqidd 2730 . . . . . . . . . . . . . . 15 (((𝜑 ∧ (𝐶 ∈ V ∧ 𝐷 ∈ V)) ∧ 𝐶 ∈ Cat) → (Base‘𝐶) = (Base‘𝐶))
1915homfeqbas 17602 . . . . . . . . . . . . . . 15 (((𝜑 ∧ (𝐶 ∈ V ∧ 𝐷 ∈ V)) ∧ 𝐶 ∈ Cat) → (Base‘𝐶) = (Base‘𝐷))
2016, 17, 18, 19homfeq 17600 . . . . . . . . . . . . . 14 (((𝜑 ∧ (𝐶 ∈ V ∧ 𝐷 ∈ V)) ∧ 𝐶 ∈ Cat) → ((Homf𝐶) = (Homf𝐷) ↔ ∀𝑏 ∈ (Base‘𝐶)∀𝑎 ∈ (Base‘𝐶)(𝑏(Hom ‘𝐶)𝑎) = (𝑏(Hom ‘𝐷)𝑎)))
21 ralcom 3257 . . . . . . . . . . . . . 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 3221 . . . . . . . . . . 11 ((((𝜑 ∧ (𝐶 ∈ V ∧ 𝐷 ∈ V)) ∧ 𝐶 ∈ Cat) ∧ 𝑎 ∈ (Base‘𝐶)) → ∀𝑏 ∈ (Base‘𝐶)(𝑏(Hom ‘𝐶)𝑎) = (𝑏(Hom ‘𝐷)𝑎))
2524r19.21bi 3221 . . . . . . . . . 10 (((((𝜑 ∧ (𝐶 ∈ V ∧ 𝐷 ∈ V)) ∧ 𝐶 ∈ Cat) ∧ 𝑎 ∈ (Base‘𝐶)) ∧ 𝑏 ∈ (Base‘𝐶)) → (𝑏(Hom ‘𝐶)𝑎) = (𝑏(Hom ‘𝐷)𝑎))
2625eleq2d 2814 . . . . . . . . 9 (((((𝜑 ∧ (𝐶 ∈ V ∧ 𝐷 ∈ V)) ∧ 𝐶 ∈ Cat) ∧ 𝑎 ∈ (Base‘𝐶)) ∧ 𝑏 ∈ (Base‘𝐶)) → ( ∈ (𝑏(Hom ‘𝐶)𝑎) ↔ ∈ (𝑏(Hom ‘𝐷)𝑎)))
2726eubidv 2579 . . . . . . . 8 (((((𝜑 ∧ (𝐶 ∈ V ∧ 𝐷 ∈ V)) ∧ 𝐶 ∈ Cat) ∧ 𝑎 ∈ (Base‘𝐶)) ∧ 𝑏 ∈ (Base‘𝐶)) → (∃! ∈ (𝑏(Hom ‘𝐶)𝑎) ↔ ∃! ∈ (𝑏(Hom ‘𝐷)𝑎)))
2827ralbidva 3150 . . . . . . 7 ((((𝜑 ∧ (𝐶 ∈ V ∧ 𝐷 ∈ V)) ∧ 𝐶 ∈ Cat) ∧ 𝑎 ∈ (Base‘𝐶)) → (∀𝑏 ∈ (Base‘𝐶)∃! ∈ (𝑏(Hom ‘𝐶)𝑎) ↔ ∀𝑏 ∈ (Base‘𝐶)∃! ∈ (𝑏(Hom ‘𝐷)𝑎)))
2928pm5.32da 579 . . . . . 6 (((𝜑 ∧ (𝐶 ∈ V ∧ 𝐷 ∈ V)) ∧ 𝐶 ∈ Cat) → ((𝑎 ∈ (Base‘𝐶) ∧ ∀𝑏 ∈ (Base‘𝐶)∃! ∈ (𝑏(Hom ‘𝐶)𝑎)) ↔ (𝑎 ∈ (Base‘𝐶) ∧ ∀𝑏 ∈ (Base‘𝐶)∃! ∈ (𝑏(Hom ‘𝐷)𝑎))))
3019eleq2d 2814 . . . . . . 7 (((𝜑 ∧ (𝐶 ∈ V ∧ 𝐷 ∈ V)) ∧ 𝐶 ∈ Cat) → (𝑎 ∈ (Base‘𝐶) ↔ 𝑎 ∈ (Base‘𝐷)))
3119raleqdv 3289 . . . . . . 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 3396 . . . 4 (((𝜑 ∧ (𝐶 ∈ V ∧ 𝐷 ∈ V)) ∧ 𝐶 ∈ Cat) → {𝑎 ∈ (Base‘𝐶) ∣ ∀𝑏 ∈ (Base‘𝐶)∃! ∈ (𝑏(Hom ‘𝐶)𝑎)} = {𝑎 ∈ (Base‘𝐷) ∣ ∀𝑏 ∈ (Base‘𝐷)∃! ∈ (𝑏(Hom ‘𝐷)𝑎)})
35 simpr 484 . . . . 5 (((𝜑 ∧ (𝐶 ∈ V ∧ 𝐷 ∈ V)) ∧ 𝐶 ∈ Cat) → 𝐶 ∈ Cat)
36 eqid 2729 . . . . 5 (Base‘𝐶) = (Base‘𝐶)
3735, 36, 16termoval 17901 . . . 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 17615 . . . . . 6 ((𝜑 ∧ (𝐶 ∈ V ∧ 𝐷 ∈ V)) → (𝐶 ∈ Cat ↔ 𝐷 ∈ Cat))
4241biimpa 476 . . . . 5 (((𝜑 ∧ (𝐶 ∈ V ∧ 𝐷 ∈ V)) ∧ 𝐶 ∈ Cat) → 𝐷 ∈ Cat)
43 eqid 2729 . . . . 5 (Base‘𝐷) = (Base‘𝐷)
4442, 43, 17termoval 17901 . . . 4 (((𝜑 ∧ (𝐶 ∈ V ∧ 𝐷 ∈ V)) ∧ 𝐶 ∈ Cat) → (TermO‘𝐷) = {𝑎 ∈ (Base‘𝐷) ∣ ∀𝑏 ∈ (Base‘𝐷)∃! ∈ (𝑏(Hom ‘𝐷)𝑎)})
4534, 37, 443eqtr4d 2774 . . 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 17895 . . . . . . . 8 TermO Fn Cat
4948fndmi 6586 . . . . . . 7 dom TermO = Cat
5049eleq2i 2820 . . . . . 6 (𝐶 ∈ dom TermO ↔ 𝐶 ∈ Cat)
51 ndmfv 6855 . . . . . 6 𝐶 ∈ dom TermO → (TermO‘𝐶) = ∅)
5250, 51sylnbir 331 . . . . 5 𝐶 ∈ Cat → (TermO‘𝐶) = ∅)
5352ad2antrl 728 . . . 4 (((𝜑 ∧ (𝐶 ∈ V ∧ 𝐷 ∈ V)) ∧ (¬ 𝐶 ∈ Cat ∧ ¬ 𝐷 ∈ Cat)) → (TermO‘𝐶) = ∅)
5449eleq2i 2820 . . . . . 6 (𝐷 ∈ dom TermO ↔ 𝐷 ∈ Cat)
55 ndmfv 6855 . . . . . 6 𝐷 ∈ dom TermO → (TermO‘𝐷) = ∅)
5654, 55sylnbir 331 . . . . 5 𝐷 ∈ Cat → (TermO‘𝐷) = ∅)
5756ad2antll 729 . . . 4 (((𝜑 ∧ (𝐶 ∈ V ∧ 𝐷 ∈ V)) ∧ (¬ 𝐶 ∈ Cat ∧ ¬ 𝐷 ∈ Cat)) → (TermO‘𝐷) = ∅)
5853, 57eqtr4d 2767 . . 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 1540  wcel 2109  ∃!weu 2561  wral 3044  {crab 3394  Vcvv 3436  c0 4284  dom cdm 5619  cfv 6482  (class class class)co 7349  Basecbs 17120  Hom chom 17172  Catccat 17570  Homf chomf 17572  compfccomf 17573  TermOctermo 17889
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1795  ax-4 1809  ax-5 1910  ax-6 1967  ax-7 2008  ax-8 2111  ax-9 2119  ax-10 2142  ax-11 2158  ax-12 2178  ax-ext 2701  ax-rep 5218  ax-sep 5235  ax-nul 5245  ax-pow 5304  ax-pr 5371  ax-un 7671
This theorem depends on definitions:  df-bi 207  df-an 396  df-or 848  df-3an 1088  df-tru 1543  df-fal 1553  df-ex 1780  df-nf 1784  df-sb 2066  df-mo 2533  df-eu 2562  df-clab 2708  df-cleq 2721  df-clel 2803  df-nfc 2878  df-ne 2926  df-ral 3045  df-rex 3054  df-reu 3344  df-rab 3395  df-v 3438  df-sbc 3743  df-csb 3852  df-dif 3906  df-un 3908  df-in 3910  df-ss 3920  df-nul 4285  df-if 4477  df-pw 4553  df-sn 4578  df-pr 4580  df-op 4584  df-uni 4859  df-iun 4943  df-br 5093  df-opab 5155  df-mpt 5174  df-id 5514  df-xp 5625  df-rel 5626  df-cnv 5627  df-co 5628  df-dm 5629  df-rn 5630  df-res 5631  df-ima 5632  df-iota 6438  df-fun 6484  df-fn 6485  df-f 6486  df-f1 6487  df-fo 6488  df-f1o 6489  df-fv 6490  df-ov 7352  df-oprab 7353  df-mpo 7354  df-1st 7924  df-2nd 7925  df-cat 17574  df-homf 17576  df-comf 17577  df-termo 17892
This theorem is referenced by:  zeroopropd  49230
  Copyright terms: Public domain W3C validator