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

Theorem catideu 17301
Description: Each object in a category has a unique identity arrow. (Contributed by Mario Carneiro, 2-Jan-2017.)
Hypotheses
Ref Expression
catidex.b 𝐵 = (Base‘𝐶)
catidex.h 𝐻 = (Hom ‘𝐶)
catidex.o · = (comp‘𝐶)
catidex.c (𝜑𝐶 ∈ Cat)
catidex.x (𝜑𝑋𝐵)
Assertion
Ref Expression
catideu (𝜑 → ∃!𝑔 ∈ (𝑋𝐻𝑋)∀𝑦𝐵 (∀𝑓 ∈ (𝑦𝐻𝑋)(𝑔(⟨𝑦, 𝑋· 𝑋)𝑓) = 𝑓 ∧ ∀𝑓 ∈ (𝑋𝐻𝑦)(𝑓(⟨𝑋, 𝑋· 𝑦)𝑔) = 𝑓))
Distinct variable groups:   𝑓,𝑔,𝑦,𝐵   𝐶,𝑓,𝑔,𝑦   𝜑,𝑔   𝑓,𝑋,𝑔,𝑦   𝑓,𝐻,𝑔,𝑦   · ,𝑓,𝑔,𝑦
Allowed substitution hints:   𝜑(𝑦,𝑓)

Proof of Theorem catideu
Dummy variable is distinct from all other variables.
StepHypRef Expression
1 catidex.b . . 3 𝐵 = (Base‘𝐶)
2 catidex.h . . 3 𝐻 = (Hom ‘𝐶)
3 catidex.o . . 3 · = (comp‘𝐶)
4 catidex.c . . 3 (𝜑𝐶 ∈ Cat)
5 catidex.x . . 3 (𝜑𝑋𝐵)
61, 2, 3, 4, 5catidex 17300 . 2 (𝜑 → ∃𝑔 ∈ (𝑋𝐻𝑋)∀𝑦𝐵 (∀𝑓 ∈ (𝑦𝐻𝑋)(𝑔(⟨𝑦, 𝑋· 𝑋)𝑓) = 𝑓 ∧ ∀𝑓 ∈ (𝑋𝐻𝑦)(𝑓(⟨𝑋, 𝑋· 𝑦)𝑔) = 𝑓))
7 oveq1 7262 . . . . . . . 8 (𝑦 = 𝑋 → (𝑦𝐻𝑋) = (𝑋𝐻𝑋))
8 opeq1 4801 . . . . . . . . . . 11 (𝑦 = 𝑋 → ⟨𝑦, 𝑋⟩ = ⟨𝑋, 𝑋⟩)
98oveq1d 7270 . . . . . . . . . 10 (𝑦 = 𝑋 → (⟨𝑦, 𝑋· 𝑋) = (⟨𝑋, 𝑋· 𝑋))
109oveqd 7272 . . . . . . . . 9 (𝑦 = 𝑋 → (𝑔(⟨𝑦, 𝑋· 𝑋)𝑓) = (𝑔(⟨𝑋, 𝑋· 𝑋)𝑓))
1110eqeq1d 2740 . . . . . . . 8 (𝑦 = 𝑋 → ((𝑔(⟨𝑦, 𝑋· 𝑋)𝑓) = 𝑓 ↔ (𝑔(⟨𝑋, 𝑋· 𝑋)𝑓) = 𝑓))
127, 11raleqbidv 3327 . . . . . . 7 (𝑦 = 𝑋 → (∀𝑓 ∈ (𝑦𝐻𝑋)(𝑔(⟨𝑦, 𝑋· 𝑋)𝑓) = 𝑓 ↔ ∀𝑓 ∈ (𝑋𝐻𝑋)(𝑔(⟨𝑋, 𝑋· 𝑋)𝑓) = 𝑓))
13 oveq2 7263 . . . . . . . 8 (𝑦 = 𝑋 → (𝑋𝐻𝑦) = (𝑋𝐻𝑋))
14 oveq2 7263 . . . . . . . . . 10 (𝑦 = 𝑋 → (⟨𝑋, 𝑋· 𝑦) = (⟨𝑋, 𝑋· 𝑋))
1514oveqd 7272 . . . . . . . . 9 (𝑦 = 𝑋 → (𝑓(⟨𝑋, 𝑋· 𝑦)𝑔) = (𝑓(⟨𝑋, 𝑋· 𝑋)𝑔))
1615eqeq1d 2740 . . . . . . . 8 (𝑦 = 𝑋 → ((𝑓(⟨𝑋, 𝑋· 𝑦)𝑔) = 𝑓 ↔ (𝑓(⟨𝑋, 𝑋· 𝑋)𝑔) = 𝑓))
1713, 16raleqbidv 3327 . . . . . . 7 (𝑦 = 𝑋 → (∀𝑓 ∈ (𝑋𝐻𝑦)(𝑓(⟨𝑋, 𝑋· 𝑦)𝑔) = 𝑓 ↔ ∀𝑓 ∈ (𝑋𝐻𝑋)(𝑓(⟨𝑋, 𝑋· 𝑋)𝑔) = 𝑓))
1812, 17anbi12d 630 . . . . . 6 (𝑦 = 𝑋 → ((∀𝑓 ∈ (𝑦𝐻𝑋)(𝑔(⟨𝑦, 𝑋· 𝑋)𝑓) = 𝑓 ∧ ∀𝑓 ∈ (𝑋𝐻𝑦)(𝑓(⟨𝑋, 𝑋· 𝑦)𝑔) = 𝑓) ↔ (∀𝑓 ∈ (𝑋𝐻𝑋)(𝑔(⟨𝑋, 𝑋· 𝑋)𝑓) = 𝑓 ∧ ∀𝑓 ∈ (𝑋𝐻𝑋)(𝑓(⟨𝑋, 𝑋· 𝑋)𝑔) = 𝑓)))
1918rspcv 3547 . . . . 5 (𝑋𝐵 → (∀𝑦𝐵 (∀𝑓 ∈ (𝑦𝐻𝑋)(𝑔(⟨𝑦, 𝑋· 𝑋)𝑓) = 𝑓 ∧ ∀𝑓 ∈ (𝑋𝐻𝑦)(𝑓(⟨𝑋, 𝑋· 𝑦)𝑔) = 𝑓) → (∀𝑓 ∈ (𝑋𝐻𝑋)(𝑔(⟨𝑋, 𝑋· 𝑋)𝑓) = 𝑓 ∧ ∀𝑓 ∈ (𝑋𝐻𝑋)(𝑓(⟨𝑋, 𝑋· 𝑋)𝑔) = 𝑓)))
205, 19syl 17 . . . 4 (𝜑 → (∀𝑦𝐵 (∀𝑓 ∈ (𝑦𝐻𝑋)(𝑔(⟨𝑦, 𝑋· 𝑋)𝑓) = 𝑓 ∧ ∀𝑓 ∈ (𝑋𝐻𝑦)(𝑓(⟨𝑋, 𝑋· 𝑦)𝑔) = 𝑓) → (∀𝑓 ∈ (𝑋𝐻𝑋)(𝑔(⟨𝑋, 𝑋· 𝑋)𝑓) = 𝑓 ∧ ∀𝑓 ∈ (𝑋𝐻𝑋)(𝑓(⟨𝑋, 𝑋· 𝑋)𝑔) = 𝑓)))
2120ralrimivw 3108 . . 3 (𝜑 → ∀𝑔 ∈ (𝑋𝐻𝑋)(∀𝑦𝐵 (∀𝑓 ∈ (𝑦𝐻𝑋)(𝑔(⟨𝑦, 𝑋· 𝑋)𝑓) = 𝑓 ∧ ∀𝑓 ∈ (𝑋𝐻𝑦)(𝑓(⟨𝑋, 𝑋· 𝑦)𝑔) = 𝑓) → (∀𝑓 ∈ (𝑋𝐻𝑋)(𝑔(⟨𝑋, 𝑋· 𝑋)𝑓) = 𝑓 ∧ ∀𝑓 ∈ (𝑋𝐻𝑋)(𝑓(⟨𝑋, 𝑋· 𝑋)𝑔) = 𝑓)))
22 an3 655 . . . . . . 7 (((∀𝑓 ∈ (𝑋𝐻𝑋)(𝑔(⟨𝑋, 𝑋· 𝑋)𝑓) = 𝑓 ∧ ∀𝑓 ∈ (𝑋𝐻𝑋)(𝑓(⟨𝑋, 𝑋· 𝑋)𝑔) = 𝑓) ∧ (∀𝑓 ∈ (𝑋𝐻𝑋)((⟨𝑋, 𝑋· 𝑋)𝑓) = 𝑓 ∧ ∀𝑓 ∈ (𝑋𝐻𝑋)(𝑓(⟨𝑋, 𝑋· 𝑋)) = 𝑓)) → (∀𝑓 ∈ (𝑋𝐻𝑋)(𝑔(⟨𝑋, 𝑋· 𝑋)𝑓) = 𝑓 ∧ ∀𝑓 ∈ (𝑋𝐻𝑋)(𝑓(⟨𝑋, 𝑋· 𝑋)) = 𝑓))
23 oveq2 7263 . . . . . . . . . 10 (𝑓 = → (𝑔(⟨𝑋, 𝑋· 𝑋)𝑓) = (𝑔(⟨𝑋, 𝑋· 𝑋)))
24 id 22 . . . . . . . . . 10 (𝑓 = 𝑓 = )
2523, 24eqeq12d 2754 . . . . . . . . 9 (𝑓 = → ((𝑔(⟨𝑋, 𝑋· 𝑋)𝑓) = 𝑓 ↔ (𝑔(⟨𝑋, 𝑋· 𝑋)) = ))
2625rspcv 3547 . . . . . . . 8 ( ∈ (𝑋𝐻𝑋) → (∀𝑓 ∈ (𝑋𝐻𝑋)(𝑔(⟨𝑋, 𝑋· 𝑋)𝑓) = 𝑓 → (𝑔(⟨𝑋, 𝑋· 𝑋)) = ))
27 oveq1 7262 . . . . . . . . . 10 (𝑓 = 𝑔 → (𝑓(⟨𝑋, 𝑋· 𝑋)) = (𝑔(⟨𝑋, 𝑋· 𝑋)))
28 id 22 . . . . . . . . . 10 (𝑓 = 𝑔𝑓 = 𝑔)
2927, 28eqeq12d 2754 . . . . . . . . 9 (𝑓 = 𝑔 → ((𝑓(⟨𝑋, 𝑋· 𝑋)) = 𝑓 ↔ (𝑔(⟨𝑋, 𝑋· 𝑋)) = 𝑔))
3029rspcv 3547 . . . . . . . 8 (𝑔 ∈ (𝑋𝐻𝑋) → (∀𝑓 ∈ (𝑋𝐻𝑋)(𝑓(⟨𝑋, 𝑋· 𝑋)) = 𝑓 → (𝑔(⟨𝑋, 𝑋· 𝑋)) = 𝑔))
3126, 30im2anan9r 620 . . . . . . 7 ((𝑔 ∈ (𝑋𝐻𝑋) ∧ ∈ (𝑋𝐻𝑋)) → ((∀𝑓 ∈ (𝑋𝐻𝑋)(𝑔(⟨𝑋, 𝑋· 𝑋)𝑓) = 𝑓 ∧ ∀𝑓 ∈ (𝑋𝐻𝑋)(𝑓(⟨𝑋, 𝑋· 𝑋)) = 𝑓) → ((𝑔(⟨𝑋, 𝑋· 𝑋)) = ∧ (𝑔(⟨𝑋, 𝑋· 𝑋)) = 𝑔)))
32 eqtr2 2762 . . . . . . . 8 (((𝑔(⟨𝑋, 𝑋· 𝑋)) = ∧ (𝑔(⟨𝑋, 𝑋· 𝑋)) = 𝑔) → = 𝑔)
3332equcomd 2023 . . . . . . 7 (((𝑔(⟨𝑋, 𝑋· 𝑋)) = ∧ (𝑔(⟨𝑋, 𝑋· 𝑋)) = 𝑔) → 𝑔 = )
3422, 31, 33syl56 36 . . . . . 6 ((𝑔 ∈ (𝑋𝐻𝑋) ∧ ∈ (𝑋𝐻𝑋)) → (((∀𝑓 ∈ (𝑋𝐻𝑋)(𝑔(⟨𝑋, 𝑋· 𝑋)𝑓) = 𝑓 ∧ ∀𝑓 ∈ (𝑋𝐻𝑋)(𝑓(⟨𝑋, 𝑋· 𝑋)𝑔) = 𝑓) ∧ (∀𝑓 ∈ (𝑋𝐻𝑋)((⟨𝑋, 𝑋· 𝑋)𝑓) = 𝑓 ∧ ∀𝑓 ∈ (𝑋𝐻𝑋)(𝑓(⟨𝑋, 𝑋· 𝑋)) = 𝑓)) → 𝑔 = ))
3534rgen2 3126 . . . . 5 𝑔 ∈ (𝑋𝐻𝑋)∀ ∈ (𝑋𝐻𝑋)(((∀𝑓 ∈ (𝑋𝐻𝑋)(𝑔(⟨𝑋, 𝑋· 𝑋)𝑓) = 𝑓 ∧ ∀𝑓 ∈ (𝑋𝐻𝑋)(𝑓(⟨𝑋, 𝑋· 𝑋)𝑔) = 𝑓) ∧ (∀𝑓 ∈ (𝑋𝐻𝑋)((⟨𝑋, 𝑋· 𝑋)𝑓) = 𝑓 ∧ ∀𝑓 ∈ (𝑋𝐻𝑋)(𝑓(⟨𝑋, 𝑋· 𝑋)) = 𝑓)) → 𝑔 = )
3635a1i 11 . . . 4 (𝜑 → ∀𝑔 ∈ (𝑋𝐻𝑋)∀ ∈ (𝑋𝐻𝑋)(((∀𝑓 ∈ (𝑋𝐻𝑋)(𝑔(⟨𝑋, 𝑋· 𝑋)𝑓) = 𝑓 ∧ ∀𝑓 ∈ (𝑋𝐻𝑋)(𝑓(⟨𝑋, 𝑋· 𝑋)𝑔) = 𝑓) ∧ (∀𝑓 ∈ (𝑋𝐻𝑋)((⟨𝑋, 𝑋· 𝑋)𝑓) = 𝑓 ∧ ∀𝑓 ∈ (𝑋𝐻𝑋)(𝑓(⟨𝑋, 𝑋· 𝑋)) = 𝑓)) → 𝑔 = ))
37 oveq1 7262 . . . . . . . 8 (𝑔 = → (𝑔(⟨𝑋, 𝑋· 𝑋)𝑓) = ((⟨𝑋, 𝑋· 𝑋)𝑓))
3837eqeq1d 2740 . . . . . . 7 (𝑔 = → ((𝑔(⟨𝑋, 𝑋· 𝑋)𝑓) = 𝑓 ↔ ((⟨𝑋, 𝑋· 𝑋)𝑓) = 𝑓))
3938ralbidv 3120 . . . . . 6 (𝑔 = → (∀𝑓 ∈ (𝑋𝐻𝑋)(𝑔(⟨𝑋, 𝑋· 𝑋)𝑓) = 𝑓 ↔ ∀𝑓 ∈ (𝑋𝐻𝑋)((⟨𝑋, 𝑋· 𝑋)𝑓) = 𝑓))
40 oveq2 7263 . . . . . . . 8 (𝑔 = → (𝑓(⟨𝑋, 𝑋· 𝑋)𝑔) = (𝑓(⟨𝑋, 𝑋· 𝑋)))
4140eqeq1d 2740 . . . . . . 7 (𝑔 = → ((𝑓(⟨𝑋, 𝑋· 𝑋)𝑔) = 𝑓 ↔ (𝑓(⟨𝑋, 𝑋· 𝑋)) = 𝑓))
4241ralbidv 3120 . . . . . 6 (𝑔 = → (∀𝑓 ∈ (𝑋𝐻𝑋)(𝑓(⟨𝑋, 𝑋· 𝑋)𝑔) = 𝑓 ↔ ∀𝑓 ∈ (𝑋𝐻𝑋)(𝑓(⟨𝑋, 𝑋· 𝑋)) = 𝑓))
4339, 42anbi12d 630 . . . . 5 (𝑔 = → ((∀𝑓 ∈ (𝑋𝐻𝑋)(𝑔(⟨𝑋, 𝑋· 𝑋)𝑓) = 𝑓 ∧ ∀𝑓 ∈ (𝑋𝐻𝑋)(𝑓(⟨𝑋, 𝑋· 𝑋)𝑔) = 𝑓) ↔ (∀𝑓 ∈ (𝑋𝐻𝑋)((⟨𝑋, 𝑋· 𝑋)𝑓) = 𝑓 ∧ ∀𝑓 ∈ (𝑋𝐻𝑋)(𝑓(⟨𝑋, 𝑋· 𝑋)) = 𝑓)))
4443rmo4 3660 . . . 4 (∃*𝑔 ∈ (𝑋𝐻𝑋)(∀𝑓 ∈ (𝑋𝐻𝑋)(𝑔(⟨𝑋, 𝑋· 𝑋)𝑓) = 𝑓 ∧ ∀𝑓 ∈ (𝑋𝐻𝑋)(𝑓(⟨𝑋, 𝑋· 𝑋)𝑔) = 𝑓) ↔ ∀𝑔 ∈ (𝑋𝐻𝑋)∀ ∈ (𝑋𝐻𝑋)(((∀𝑓 ∈ (𝑋𝐻𝑋)(𝑔(⟨𝑋, 𝑋· 𝑋)𝑓) = 𝑓 ∧ ∀𝑓 ∈ (𝑋𝐻𝑋)(𝑓(⟨𝑋, 𝑋· 𝑋)𝑔) = 𝑓) ∧ (∀𝑓 ∈ (𝑋𝐻𝑋)((⟨𝑋, 𝑋· 𝑋)𝑓) = 𝑓 ∧ ∀𝑓 ∈ (𝑋𝐻𝑋)(𝑓(⟨𝑋, 𝑋· 𝑋)) = 𝑓)) → 𝑔 = ))
4536, 44sylibr 233 . . 3 (𝜑 → ∃*𝑔 ∈ (𝑋𝐻𝑋)(∀𝑓 ∈ (𝑋𝐻𝑋)(𝑔(⟨𝑋, 𝑋· 𝑋)𝑓) = 𝑓 ∧ ∀𝑓 ∈ (𝑋𝐻𝑋)(𝑓(⟨𝑋, 𝑋· 𝑋)𝑔) = 𝑓))
46 rmoim 3670 . . 3 (∀𝑔 ∈ (𝑋𝐻𝑋)(∀𝑦𝐵 (∀𝑓 ∈ (𝑦𝐻𝑋)(𝑔(⟨𝑦, 𝑋· 𝑋)𝑓) = 𝑓 ∧ ∀𝑓 ∈ (𝑋𝐻𝑦)(𝑓(⟨𝑋, 𝑋· 𝑦)𝑔) = 𝑓) → (∀𝑓 ∈ (𝑋𝐻𝑋)(𝑔(⟨𝑋, 𝑋· 𝑋)𝑓) = 𝑓 ∧ ∀𝑓 ∈ (𝑋𝐻𝑋)(𝑓(⟨𝑋, 𝑋· 𝑋)𝑔) = 𝑓)) → (∃*𝑔 ∈ (𝑋𝐻𝑋)(∀𝑓 ∈ (𝑋𝐻𝑋)(𝑔(⟨𝑋, 𝑋· 𝑋)𝑓) = 𝑓 ∧ ∀𝑓 ∈ (𝑋𝐻𝑋)(𝑓(⟨𝑋, 𝑋· 𝑋)𝑔) = 𝑓) → ∃*𝑔 ∈ (𝑋𝐻𝑋)∀𝑦𝐵 (∀𝑓 ∈ (𝑦𝐻𝑋)(𝑔(⟨𝑦, 𝑋· 𝑋)𝑓) = 𝑓 ∧ ∀𝑓 ∈ (𝑋𝐻𝑦)(𝑓(⟨𝑋, 𝑋· 𝑦)𝑔) = 𝑓)))
4721, 45, 46sylc 65 . 2 (𝜑 → ∃*𝑔 ∈ (𝑋𝐻𝑋)∀𝑦𝐵 (∀𝑓 ∈ (𝑦𝐻𝑋)(𝑔(⟨𝑦, 𝑋· 𝑋)𝑓) = 𝑓 ∧ ∀𝑓 ∈ (𝑋𝐻𝑦)(𝑓(⟨𝑋, 𝑋· 𝑦)𝑔) = 𝑓))
48 reu5 3351 . 2 (∃!𝑔 ∈ (𝑋𝐻𝑋)∀𝑦𝐵 (∀𝑓 ∈ (𝑦𝐻𝑋)(𝑔(⟨𝑦, 𝑋· 𝑋)𝑓) = 𝑓 ∧ ∀𝑓 ∈ (𝑋𝐻𝑦)(𝑓(⟨𝑋, 𝑋· 𝑦)𝑔) = 𝑓) ↔ (∃𝑔 ∈ (𝑋𝐻𝑋)∀𝑦𝐵 (∀𝑓 ∈ (𝑦𝐻𝑋)(𝑔(⟨𝑦, 𝑋· 𝑋)𝑓) = 𝑓 ∧ ∀𝑓 ∈ (𝑋𝐻𝑦)(𝑓(⟨𝑋, 𝑋· 𝑦)𝑔) = 𝑓) ∧ ∃*𝑔 ∈ (𝑋𝐻𝑋)∀𝑦𝐵 (∀𝑓 ∈ (𝑦𝐻𝑋)(𝑔(⟨𝑦, 𝑋· 𝑋)𝑓) = 𝑓 ∧ ∀𝑓 ∈ (𝑋𝐻𝑦)(𝑓(⟨𝑋, 𝑋· 𝑦)𝑔) = 𝑓)))
496, 47, 48sylanbrc 582 1 (𝜑 → ∃!𝑔 ∈ (𝑋𝐻𝑋)∀𝑦𝐵 (∀𝑓 ∈ (𝑦𝐻𝑋)(𝑔(⟨𝑦, 𝑋· 𝑋)𝑓) = 𝑓 ∧ ∀𝑓 ∈ (𝑋𝐻𝑦)(𝑓(⟨𝑋, 𝑋· 𝑦)𝑔) = 𝑓))
Colors of variables: wff setvar class
Syntax hints:  wi 4  wa 395   = wceq 1539  wcel 2108  wral 3063  wrex 3064  ∃!wreu 3065  ∃*wrmo 3066  cop 4564  cfv 6418  (class class class)co 7255  Basecbs 16840  Hom chom 16899  compcco 16900  Catccat 17290
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1799  ax-4 1813  ax-5 1914  ax-6 1972  ax-7 2012  ax-8 2110  ax-9 2118  ax-10 2139  ax-11 2156  ax-12 2173  ax-ext 2709  ax-nul 5225
This theorem depends on definitions:  df-bi 206  df-an 396  df-or 844  df-3an 1087  df-tru 1542  df-fal 1552  df-ex 1784  df-nf 1788  df-sb 2069  df-mo 2540  df-eu 2569  df-clab 2716  df-cleq 2730  df-clel 2817  df-ral 3068  df-rex 3069  df-reu 3070  df-rmo 3071  df-rab 3072  df-v 3424  df-sbc 3712  df-dif 3886  df-un 3888  df-in 3890  df-ss 3900  df-nul 4254  df-if 4457  df-sn 4559  df-pr 4561  df-op 4565  df-uni 4837  df-br 5071  df-iota 6376  df-fv 6426  df-ov 7258  df-cat 17294
This theorem is referenced by:  catidd  17306  catidcl  17308  catlid  17309  catrid  17310
  Copyright terms: Public domain W3C validator