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

Theorem catideu 16647
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 16646 . 2 (𝜑 → ∃𝑔 ∈ (𝑋𝐻𝑋)∀𝑦𝐵 (∀𝑓 ∈ (𝑦𝐻𝑋)(𝑔(⟨𝑦, 𝑋· 𝑋)𝑓) = 𝑓 ∧ ∀𝑓 ∈ (𝑋𝐻𝑦)(𝑓(⟨𝑋, 𝑋· 𝑦)𝑔) = 𝑓))
7 oveq1 6883 . . . . . . . 8 (𝑦 = 𝑋 → (𝑦𝐻𝑋) = (𝑋𝐻𝑋))
8 opeq1 4591 . . . . . . . . . . 11 (𝑦 = 𝑋 → ⟨𝑦, 𝑋⟩ = ⟨𝑋, 𝑋⟩)
98oveq1d 6891 . . . . . . . . . 10 (𝑦 = 𝑋 → (⟨𝑦, 𝑋· 𝑋) = (⟨𝑋, 𝑋· 𝑋))
109oveqd 6893 . . . . . . . . 9 (𝑦 = 𝑋 → (𝑔(⟨𝑦, 𝑋· 𝑋)𝑓) = (𝑔(⟨𝑋, 𝑋· 𝑋)𝑓))
1110eqeq1d 2799 . . . . . . . 8 (𝑦 = 𝑋 → ((𝑔(⟨𝑦, 𝑋· 𝑋)𝑓) = 𝑓 ↔ (𝑔(⟨𝑋, 𝑋· 𝑋)𝑓) = 𝑓))
127, 11raleqbidv 3333 . . . . . . 7 (𝑦 = 𝑋 → (∀𝑓 ∈ (𝑦𝐻𝑋)(𝑔(⟨𝑦, 𝑋· 𝑋)𝑓) = 𝑓 ↔ ∀𝑓 ∈ (𝑋𝐻𝑋)(𝑔(⟨𝑋, 𝑋· 𝑋)𝑓) = 𝑓))
13 oveq2 6884 . . . . . . . 8 (𝑦 = 𝑋 → (𝑋𝐻𝑦) = (𝑋𝐻𝑋))
14 oveq2 6884 . . . . . . . . . 10 (𝑦 = 𝑋 → (⟨𝑋, 𝑋· 𝑦) = (⟨𝑋, 𝑋· 𝑋))
1514oveqd 6893 . . . . . . . . 9 (𝑦 = 𝑋 → (𝑓(⟨𝑋, 𝑋· 𝑦)𝑔) = (𝑓(⟨𝑋, 𝑋· 𝑋)𝑔))
1615eqeq1d 2799 . . . . . . . 8 (𝑦 = 𝑋 → ((𝑓(⟨𝑋, 𝑋· 𝑦)𝑔) = 𝑓 ↔ (𝑓(⟨𝑋, 𝑋· 𝑋)𝑔) = 𝑓))
1713, 16raleqbidv 3333 . . . . . . 7 (𝑦 = 𝑋 → (∀𝑓 ∈ (𝑋𝐻𝑦)(𝑓(⟨𝑋, 𝑋· 𝑦)𝑔) = 𝑓 ↔ ∀𝑓 ∈ (𝑋𝐻𝑋)(𝑓(⟨𝑋, 𝑋· 𝑋)𝑔) = 𝑓))
1812, 17anbi12d 625 . . . . . 6 (𝑦 = 𝑋 → ((∀𝑓 ∈ (𝑦𝐻𝑋)(𝑔(⟨𝑦, 𝑋· 𝑋)𝑓) = 𝑓 ∧ ∀𝑓 ∈ (𝑋𝐻𝑦)(𝑓(⟨𝑋, 𝑋· 𝑦)𝑔) = 𝑓) ↔ (∀𝑓 ∈ (𝑋𝐻𝑋)(𝑔(⟨𝑋, 𝑋· 𝑋)𝑓) = 𝑓 ∧ ∀𝑓 ∈ (𝑋𝐻𝑋)(𝑓(⟨𝑋, 𝑋· 𝑋)𝑔) = 𝑓)))
1918rspcv 3491 . . . . 5 (𝑋𝐵 → (∀𝑦𝐵 (∀𝑓 ∈ (𝑦𝐻𝑋)(𝑔(⟨𝑦, 𝑋· 𝑋)𝑓) = 𝑓 ∧ ∀𝑓 ∈ (𝑋𝐻𝑦)(𝑓(⟨𝑋, 𝑋· 𝑦)𝑔) = 𝑓) → (∀𝑓 ∈ (𝑋𝐻𝑋)(𝑔(⟨𝑋, 𝑋· 𝑋)𝑓) = 𝑓 ∧ ∀𝑓 ∈ (𝑋𝐻𝑋)(𝑓(⟨𝑋, 𝑋· 𝑋)𝑔) = 𝑓)))
205, 19syl 17 . . . 4 (𝜑 → (∀𝑦𝐵 (∀𝑓 ∈ (𝑦𝐻𝑋)(𝑔(⟨𝑦, 𝑋· 𝑋)𝑓) = 𝑓 ∧ ∀𝑓 ∈ (𝑋𝐻𝑦)(𝑓(⟨𝑋, 𝑋· 𝑦)𝑔) = 𝑓) → (∀𝑓 ∈ (𝑋𝐻𝑋)(𝑔(⟨𝑋, 𝑋· 𝑋)𝑓) = 𝑓 ∧ ∀𝑓 ∈ (𝑋𝐻𝑋)(𝑓(⟨𝑋, 𝑋· 𝑋)𝑔) = 𝑓)))
2120ralrimivw 3146 . . 3 (𝜑 → ∀𝑔 ∈ (𝑋𝐻𝑋)(∀𝑦𝐵 (∀𝑓 ∈ (𝑦𝐻𝑋)(𝑔(⟨𝑦, 𝑋· 𝑋)𝑓) = 𝑓 ∧ ∀𝑓 ∈ (𝑋𝐻𝑦)(𝑓(⟨𝑋, 𝑋· 𝑦)𝑔) = 𝑓) → (∀𝑓 ∈ (𝑋𝐻𝑋)(𝑔(⟨𝑋, 𝑋· 𝑋)𝑓) = 𝑓 ∧ ∀𝑓 ∈ (𝑋𝐻𝑋)(𝑓(⟨𝑋, 𝑋· 𝑋)𝑔) = 𝑓)))
22 an3 650 . . . . . . 7 (((∀𝑓 ∈ (𝑋𝐻𝑋)(𝑔(⟨𝑋, 𝑋· 𝑋)𝑓) = 𝑓 ∧ ∀𝑓 ∈ (𝑋𝐻𝑋)(𝑓(⟨𝑋, 𝑋· 𝑋)𝑔) = 𝑓) ∧ (∀𝑓 ∈ (𝑋𝐻𝑋)((⟨𝑋, 𝑋· 𝑋)𝑓) = 𝑓 ∧ ∀𝑓 ∈ (𝑋𝐻𝑋)(𝑓(⟨𝑋, 𝑋· 𝑋)) = 𝑓)) → (∀𝑓 ∈ (𝑋𝐻𝑋)(𝑔(⟨𝑋, 𝑋· 𝑋)𝑓) = 𝑓 ∧ ∀𝑓 ∈ (𝑋𝐻𝑋)(𝑓(⟨𝑋, 𝑋· 𝑋)) = 𝑓))
23 oveq2 6884 . . . . . . . . . 10 (𝑓 = → (𝑔(⟨𝑋, 𝑋· 𝑋)𝑓) = (𝑔(⟨𝑋, 𝑋· 𝑋)))
24 id 22 . . . . . . . . . 10 (𝑓 = 𝑓 = )
2523, 24eqeq12d 2812 . . . . . . . . 9 (𝑓 = → ((𝑔(⟨𝑋, 𝑋· 𝑋)𝑓) = 𝑓 ↔ (𝑔(⟨𝑋, 𝑋· 𝑋)) = ))
2625rspcv 3491 . . . . . . . 8 ( ∈ (𝑋𝐻𝑋) → (∀𝑓 ∈ (𝑋𝐻𝑋)(𝑔(⟨𝑋, 𝑋· 𝑋)𝑓) = 𝑓 → (𝑔(⟨𝑋, 𝑋· 𝑋)) = ))
27 oveq1 6883 . . . . . . . . . 10 (𝑓 = 𝑔 → (𝑓(⟨𝑋, 𝑋· 𝑋)) = (𝑔(⟨𝑋, 𝑋· 𝑋)))
28 id 22 . . . . . . . . . 10 (𝑓 = 𝑔𝑓 = 𝑔)
2927, 28eqeq12d 2812 . . . . . . . . 9 (𝑓 = 𝑔 → ((𝑓(⟨𝑋, 𝑋· 𝑋)) = 𝑓 ↔ (𝑔(⟨𝑋, 𝑋· 𝑋)) = 𝑔))
3029rspcv 3491 . . . . . . . 8 (𝑔 ∈ (𝑋𝐻𝑋) → (∀𝑓 ∈ (𝑋𝐻𝑋)(𝑓(⟨𝑋, 𝑋· 𝑋)) = 𝑓 → (𝑔(⟨𝑋, 𝑋· 𝑋)) = 𝑔))
3126, 30im2anan9r 615 . . . . . . 7 ((𝑔 ∈ (𝑋𝐻𝑋) ∧ ∈ (𝑋𝐻𝑋)) → ((∀𝑓 ∈ (𝑋𝐻𝑋)(𝑔(⟨𝑋, 𝑋· 𝑋)𝑓) = 𝑓 ∧ ∀𝑓 ∈ (𝑋𝐻𝑋)(𝑓(⟨𝑋, 𝑋· 𝑋)) = 𝑓) → ((𝑔(⟨𝑋, 𝑋· 𝑋)) = ∧ (𝑔(⟨𝑋, 𝑋· 𝑋)) = 𝑔)))
32 eqtr2 2817 . . . . . . . 8 (((𝑔(⟨𝑋, 𝑋· 𝑋)) = ∧ (𝑔(⟨𝑋, 𝑋· 𝑋)) = 𝑔) → = 𝑔)
3332equcomd 2118 . . . . . . 7 (((𝑔(⟨𝑋, 𝑋· 𝑋)) = ∧ (𝑔(⟨𝑋, 𝑋· 𝑋)) = 𝑔) → 𝑔 = )
3422, 31, 33syl56 36 . . . . . 6 ((𝑔 ∈ (𝑋𝐻𝑋) ∧ ∈ (𝑋𝐻𝑋)) → (((∀𝑓 ∈ (𝑋𝐻𝑋)(𝑔(⟨𝑋, 𝑋· 𝑋)𝑓) = 𝑓 ∧ ∀𝑓 ∈ (𝑋𝐻𝑋)(𝑓(⟨𝑋, 𝑋· 𝑋)𝑔) = 𝑓) ∧ (∀𝑓 ∈ (𝑋𝐻𝑋)((⟨𝑋, 𝑋· 𝑋)𝑓) = 𝑓 ∧ ∀𝑓 ∈ (𝑋𝐻𝑋)(𝑓(⟨𝑋, 𝑋· 𝑋)) = 𝑓)) → 𝑔 = ))
3534rgen2a 3156 . . . . 5 𝑔 ∈ (𝑋𝐻𝑋)∀ ∈ (𝑋𝐻𝑋)(((∀𝑓 ∈ (𝑋𝐻𝑋)(𝑔(⟨𝑋, 𝑋· 𝑋)𝑓) = 𝑓 ∧ ∀𝑓 ∈ (𝑋𝐻𝑋)(𝑓(⟨𝑋, 𝑋· 𝑋)𝑔) = 𝑓) ∧ (∀𝑓 ∈ (𝑋𝐻𝑋)((⟨𝑋, 𝑋· 𝑋)𝑓) = 𝑓 ∧ ∀𝑓 ∈ (𝑋𝐻𝑋)(𝑓(⟨𝑋, 𝑋· 𝑋)) = 𝑓)) → 𝑔 = )
3635a1i 11 . . . 4 (𝜑 → ∀𝑔 ∈ (𝑋𝐻𝑋)∀ ∈ (𝑋𝐻𝑋)(((∀𝑓 ∈ (𝑋𝐻𝑋)(𝑔(⟨𝑋, 𝑋· 𝑋)𝑓) = 𝑓 ∧ ∀𝑓 ∈ (𝑋𝐻𝑋)(𝑓(⟨𝑋, 𝑋· 𝑋)𝑔) = 𝑓) ∧ (∀𝑓 ∈ (𝑋𝐻𝑋)((⟨𝑋, 𝑋· 𝑋)𝑓) = 𝑓 ∧ ∀𝑓 ∈ (𝑋𝐻𝑋)(𝑓(⟨𝑋, 𝑋· 𝑋)) = 𝑓)) → 𝑔 = ))
37 oveq1 6883 . . . . . . . 8 (𝑔 = → (𝑔(⟨𝑋, 𝑋· 𝑋)𝑓) = ((⟨𝑋, 𝑋· 𝑋)𝑓))
3837eqeq1d 2799 . . . . . . 7 (𝑔 = → ((𝑔(⟨𝑋, 𝑋· 𝑋)𝑓) = 𝑓 ↔ ((⟨𝑋, 𝑋· 𝑋)𝑓) = 𝑓))
3938ralbidv 3165 . . . . . 6 (𝑔 = → (∀𝑓 ∈ (𝑋𝐻𝑋)(𝑔(⟨𝑋, 𝑋· 𝑋)𝑓) = 𝑓 ↔ ∀𝑓 ∈ (𝑋𝐻𝑋)((⟨𝑋, 𝑋· 𝑋)𝑓) = 𝑓))
40 oveq2 6884 . . . . . . . 8 (𝑔 = → (𝑓(⟨𝑋, 𝑋· 𝑋)𝑔) = (𝑓(⟨𝑋, 𝑋· 𝑋)))
4140eqeq1d 2799 . . . . . . 7 (𝑔 = → ((𝑓(⟨𝑋, 𝑋· 𝑋)𝑔) = 𝑓 ↔ (𝑓(⟨𝑋, 𝑋· 𝑋)) = 𝑓))
4241ralbidv 3165 . . . . . 6 (𝑔 = → (∀𝑓 ∈ (𝑋𝐻𝑋)(𝑓(⟨𝑋, 𝑋· 𝑋)𝑔) = 𝑓 ↔ ∀𝑓 ∈ (𝑋𝐻𝑋)(𝑓(⟨𝑋, 𝑋· 𝑋)) = 𝑓))
4339, 42anbi12d 625 . . . . 5 (𝑔 = → ((∀𝑓 ∈ (𝑋𝐻𝑋)(𝑔(⟨𝑋, 𝑋· 𝑋)𝑓) = 𝑓 ∧ ∀𝑓 ∈ (𝑋𝐻𝑋)(𝑓(⟨𝑋, 𝑋· 𝑋)𝑔) = 𝑓) ↔ (∀𝑓 ∈ (𝑋𝐻𝑋)((⟨𝑋, 𝑋· 𝑋)𝑓) = 𝑓 ∧ ∀𝑓 ∈ (𝑋𝐻𝑋)(𝑓(⟨𝑋, 𝑋· 𝑋)) = 𝑓)))
4443rmo4 3593 . . . 4 (∃*𝑔 ∈ (𝑋𝐻𝑋)(∀𝑓 ∈ (𝑋𝐻𝑋)(𝑔(⟨𝑋, 𝑋· 𝑋)𝑓) = 𝑓 ∧ ∀𝑓 ∈ (𝑋𝐻𝑋)(𝑓(⟨𝑋, 𝑋· 𝑋)𝑔) = 𝑓) ↔ ∀𝑔 ∈ (𝑋𝐻𝑋)∀ ∈ (𝑋𝐻𝑋)(((∀𝑓 ∈ (𝑋𝐻𝑋)(𝑔(⟨𝑋, 𝑋· 𝑋)𝑓) = 𝑓 ∧ ∀𝑓 ∈ (𝑋𝐻𝑋)(𝑓(⟨𝑋, 𝑋· 𝑋)𝑔) = 𝑓) ∧ (∀𝑓 ∈ (𝑋𝐻𝑋)((⟨𝑋, 𝑋· 𝑋)𝑓) = 𝑓 ∧ ∀𝑓 ∈ (𝑋𝐻𝑋)(𝑓(⟨𝑋, 𝑋· 𝑋)) = 𝑓)) → 𝑔 = ))
4536, 44sylibr 226 . . 3 (𝜑 → ∃*𝑔 ∈ (𝑋𝐻𝑋)(∀𝑓 ∈ (𝑋𝐻𝑋)(𝑔(⟨𝑋, 𝑋· 𝑋)𝑓) = 𝑓 ∧ ∀𝑓 ∈ (𝑋𝐻𝑋)(𝑓(⟨𝑋, 𝑋· 𝑋)𝑔) = 𝑓))
46 rmoim 3603 . . 3 (∀𝑔 ∈ (𝑋𝐻𝑋)(∀𝑦𝐵 (∀𝑓 ∈ (𝑦𝐻𝑋)(𝑔(⟨𝑦, 𝑋· 𝑋)𝑓) = 𝑓 ∧ ∀𝑓 ∈ (𝑋𝐻𝑦)(𝑓(⟨𝑋, 𝑋· 𝑦)𝑔) = 𝑓) → (∀𝑓 ∈ (𝑋𝐻𝑋)(𝑔(⟨𝑋, 𝑋· 𝑋)𝑓) = 𝑓 ∧ ∀𝑓 ∈ (𝑋𝐻𝑋)(𝑓(⟨𝑋, 𝑋· 𝑋)𝑔) = 𝑓)) → (∃*𝑔 ∈ (𝑋𝐻𝑋)(∀𝑓 ∈ (𝑋𝐻𝑋)(𝑔(⟨𝑋, 𝑋· 𝑋)𝑓) = 𝑓 ∧ ∀𝑓 ∈ (𝑋𝐻𝑋)(𝑓(⟨𝑋, 𝑋· 𝑋)𝑔) = 𝑓) → ∃*𝑔 ∈ (𝑋𝐻𝑋)∀𝑦𝐵 (∀𝑓 ∈ (𝑦𝐻𝑋)(𝑔(⟨𝑦, 𝑋· 𝑋)𝑓) = 𝑓 ∧ ∀𝑓 ∈ (𝑋𝐻𝑦)(𝑓(⟨𝑋, 𝑋· 𝑦)𝑔) = 𝑓)))
4721, 45, 46sylc 65 . 2 (𝜑 → ∃*𝑔 ∈ (𝑋𝐻𝑋)∀𝑦𝐵 (∀𝑓 ∈ (𝑦𝐻𝑋)(𝑔(⟨𝑦, 𝑋· 𝑋)𝑓) = 𝑓 ∧ ∀𝑓 ∈ (𝑋𝐻𝑦)(𝑓(⟨𝑋, 𝑋· 𝑦)𝑔) = 𝑓))
48 reu5 3340 . 2 (∃!𝑔 ∈ (𝑋𝐻𝑋)∀𝑦𝐵 (∀𝑓 ∈ (𝑦𝐻𝑋)(𝑔(⟨𝑦, 𝑋· 𝑋)𝑓) = 𝑓 ∧ ∀𝑓 ∈ (𝑋𝐻𝑦)(𝑓(⟨𝑋, 𝑋· 𝑦)𝑔) = 𝑓) ↔ (∃𝑔 ∈ (𝑋𝐻𝑋)∀𝑦𝐵 (∀𝑓 ∈ (𝑦𝐻𝑋)(𝑔(⟨𝑦, 𝑋· 𝑋)𝑓) = 𝑓 ∧ ∀𝑓 ∈ (𝑋𝐻𝑦)(𝑓(⟨𝑋, 𝑋· 𝑦)𝑔) = 𝑓) ∧ ∃*𝑔 ∈ (𝑋𝐻𝑋)∀𝑦𝐵 (∀𝑓 ∈ (𝑦𝐻𝑋)(𝑔(⟨𝑦, 𝑋· 𝑋)𝑓) = 𝑓 ∧ ∀𝑓 ∈ (𝑋𝐻𝑦)(𝑓(⟨𝑋, 𝑋· 𝑦)𝑔) = 𝑓)))
496, 47, 48sylanbrc 579 1 (𝜑 → ∃!𝑔 ∈ (𝑋𝐻𝑋)∀𝑦𝐵 (∀𝑓 ∈ (𝑦𝐻𝑋)(𝑔(⟨𝑦, 𝑋· 𝑋)𝑓) = 𝑓 ∧ ∀𝑓 ∈ (𝑋𝐻𝑦)(𝑓(⟨𝑋, 𝑋· 𝑦)𝑔) = 𝑓))
Colors of variables: wff setvar class
Syntax hints:  wi 4  wa 385   = wceq 1653  wcel 2157  wral 3087  wrex 3088  ∃!wreu 3089  ∃*wrmo 3090  cop 4372  cfv 6099  (class class class)co 6876  Basecbs 16181  Hom chom 16275  compcco 16276  Catccat 16636
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1891  ax-4 1905  ax-5 2006  ax-6 2072  ax-7 2107  ax-9 2166  ax-10 2185  ax-11 2200  ax-12 2213  ax-13 2354  ax-ext 2775  ax-nul 4981
This theorem depends on definitions:  df-bi 199  df-an 386  df-or 875  df-3an 1110  df-tru 1657  df-ex 1876  df-nf 1880  df-sb 2065  df-mo 2590  df-eu 2607  df-clab 2784  df-cleq 2790  df-clel 2793  df-nfc 2928  df-ral 3092  df-rex 3093  df-reu 3094  df-rmo 3095  df-rab 3096  df-v 3385  df-sbc 3632  df-dif 3770  df-un 3772  df-in 3774  df-ss 3781  df-nul 4114  df-if 4276  df-sn 4367  df-pr 4369  df-op 4373  df-uni 4627  df-br 4842  df-iota 6062  df-fv 6107  df-ov 6879  df-cat 16640
This theorem is referenced by:  catidd  16652  catidcl  16654  catlid  16655  catrid  16656
  Copyright terms: Public domain W3C validator