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 49206
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 49203 . 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 49203 . . 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 17633 . . . . . . . . . . . . . . 15 (((𝜑 ∧ (𝐶 ∈ V ∧ 𝐷 ∈ V)) ∧ 𝐶 ∈ Cat) → (Base‘𝐶) = (Base‘𝐷))
2016, 17, 18, 19homfeq 17631 . . . . . . . . . . . . . 14 (((𝜑 ∧ (𝐶 ∈ V ∧ 𝐷 ∈ V)) ∧ 𝐶 ∈ Cat) → ((Homf𝐶) = (Homf𝐷) ↔ ∀𝑏 ∈ (Base‘𝐶)∀𝑎 ∈ (Base‘𝐶)(𝑏(Hom ‘𝐶)𝑎) = (𝑏(Hom ‘𝐷)𝑎)))
21 ralcom 3263 . . . . . . . . . . . . . 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 3227 . . . . . . . . . . 11 ((((𝜑 ∧ (𝐶 ∈ V ∧ 𝐷 ∈ V)) ∧ 𝐶 ∈ Cat) ∧ 𝑎 ∈ (Base‘𝐶)) → ∀𝑏 ∈ (Base‘𝐶)(𝑏(Hom ‘𝐶)𝑎) = (𝑏(Hom ‘𝐷)𝑎))
2524r19.21bi 3227 . . . . . . . . . 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 3154 . . . . . . 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 3296 . . . . . . 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 3404 . . . 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 17932 . . . 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 17646 . . . . . 6 ((𝜑 ∧ (𝐶 ∈ V ∧ 𝐷 ∈ V)) → (𝐶 ∈ Cat ↔ 𝐷 ∈ Cat))
4241biimpa 476 . . . . 5 (((𝜑 ∧ (𝐶 ∈ V ∧ 𝐷 ∈ V)) ∧ 𝐶 ∈ Cat) → 𝐷 ∈ Cat)
43 eqid 2729 . . . . 5 (Base‘𝐷) = (Base‘𝐷)
4442, 43, 17termoval 17932 . . . 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 17926 . . . . . . . 8 TermO Fn Cat
4948fndmi 6604 . . . . . . 7 dom TermO = Cat
5049eleq2i 2820 . . . . . 6 (𝐶 ∈ dom TermO ↔ 𝐶 ∈ Cat)
51 ndmfv 6875 . . . . . 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 6875 . . . . . 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 3402  Vcvv 3444  c0 4292  dom cdm 5631  cfv 6499  (class class class)co 7369  Basecbs 17155  Hom chom 17207  Catccat 17601  Homf chomf 17603  compfccomf 17604  TermOctermo 17920
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 5229  ax-sep 5246  ax-nul 5256  ax-pow 5315  ax-pr 5382  ax-un 7691
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 3352  df-rab 3403  df-v 3446  df-sbc 3751  df-csb 3860  df-dif 3914  df-un 3916  df-in 3918  df-ss 3928  df-nul 4293  df-if 4485  df-pw 4561  df-sn 4586  df-pr 4588  df-op 4592  df-uni 4868  df-iun 4953  df-br 5103  df-opab 5165  df-mpt 5184  df-id 5526  df-xp 5637  df-rel 5638  df-cnv 5639  df-co 5640  df-dm 5641  df-rn 5642  df-res 5643  df-ima 5644  df-iota 6452  df-fun 6501  df-fn 6502  df-f 6503  df-f1 6504  df-fo 6505  df-f1o 6506  df-fv 6507  df-ov 7372  df-oprab 7373  df-mpo 7374  df-1st 7947  df-2nd 7948  df-cat 17605  df-homf 17607  df-comf 17608  df-termo 17923
This theorem is referenced by:  zeroopropd  49207
  Copyright terms: Public domain W3C validator