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

Theorem catideu 17384
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 17383 . 2 (𝜑 → ∃𝑔 ∈ (𝑋𝐻𝑋)∀𝑦𝐵 (∀𝑓 ∈ (𝑦𝐻𝑋)(𝑔(⟨𝑦, 𝑋· 𝑋)𝑓) = 𝑓 ∧ ∀𝑓 ∈ (𝑋𝐻𝑦)(𝑓(⟨𝑋, 𝑋· 𝑦)𝑔) = 𝑓))
7 oveq1 7282 . . . . . . . 8 (𝑦 = 𝑋 → (𝑦𝐻𝑋) = (𝑋𝐻𝑋))
8 opeq1 4804 . . . . . . . . . . 11 (𝑦 = 𝑋 → ⟨𝑦, 𝑋⟩ = ⟨𝑋, 𝑋⟩)
98oveq1d 7290 . . . . . . . . . 10 (𝑦 = 𝑋 → (⟨𝑦, 𝑋· 𝑋) = (⟨𝑋, 𝑋· 𝑋))
109oveqd 7292 . . . . . . . . 9 (𝑦 = 𝑋 → (𝑔(⟨𝑦, 𝑋· 𝑋)𝑓) = (𝑔(⟨𝑋, 𝑋· 𝑋)𝑓))
1110eqeq1d 2740 . . . . . . . 8 (𝑦 = 𝑋 → ((𝑔(⟨𝑦, 𝑋· 𝑋)𝑓) = 𝑓 ↔ (𝑔(⟨𝑋, 𝑋· 𝑋)𝑓) = 𝑓))
127, 11raleqbidv 3336 . . . . . . 7 (𝑦 = 𝑋 → (∀𝑓 ∈ (𝑦𝐻𝑋)(𝑔(⟨𝑦, 𝑋· 𝑋)𝑓) = 𝑓 ↔ ∀𝑓 ∈ (𝑋𝐻𝑋)(𝑔(⟨𝑋, 𝑋· 𝑋)𝑓) = 𝑓))
13 oveq2 7283 . . . . . . . 8 (𝑦 = 𝑋 → (𝑋𝐻𝑦) = (𝑋𝐻𝑋))
14 oveq2 7283 . . . . . . . . . 10 (𝑦 = 𝑋 → (⟨𝑋, 𝑋· 𝑦) = (⟨𝑋, 𝑋· 𝑋))
1514oveqd 7292 . . . . . . . . 9 (𝑦 = 𝑋 → (𝑓(⟨𝑋, 𝑋· 𝑦)𝑔) = (𝑓(⟨𝑋, 𝑋· 𝑋)𝑔))
1615eqeq1d 2740 . . . . . . . 8 (𝑦 = 𝑋 → ((𝑓(⟨𝑋, 𝑋· 𝑦)𝑔) = 𝑓 ↔ (𝑓(⟨𝑋, 𝑋· 𝑋)𝑔) = 𝑓))
1713, 16raleqbidv 3336 . . . . . . 7 (𝑦 = 𝑋 → (∀𝑓 ∈ (𝑋𝐻𝑦)(𝑓(⟨𝑋, 𝑋· 𝑦)𝑔) = 𝑓 ↔ ∀𝑓 ∈ (𝑋𝐻𝑋)(𝑓(⟨𝑋, 𝑋· 𝑋)𝑔) = 𝑓))
1812, 17anbi12d 631 . . . . . 6 (𝑦 = 𝑋 → ((∀𝑓 ∈ (𝑦𝐻𝑋)(𝑔(⟨𝑦, 𝑋· 𝑋)𝑓) = 𝑓 ∧ ∀𝑓 ∈ (𝑋𝐻𝑦)(𝑓(⟨𝑋, 𝑋· 𝑦)𝑔) = 𝑓) ↔ (∀𝑓 ∈ (𝑋𝐻𝑋)(𝑔(⟨𝑋, 𝑋· 𝑋)𝑓) = 𝑓 ∧ ∀𝑓 ∈ (𝑋𝐻𝑋)(𝑓(⟨𝑋, 𝑋· 𝑋)𝑔) = 𝑓)))
1918rspcv 3557 . . . . 5 (𝑋𝐵 → (∀𝑦𝐵 (∀𝑓 ∈ (𝑦𝐻𝑋)(𝑔(⟨𝑦, 𝑋· 𝑋)𝑓) = 𝑓 ∧ ∀𝑓 ∈ (𝑋𝐻𝑦)(𝑓(⟨𝑋, 𝑋· 𝑦)𝑔) = 𝑓) → (∀𝑓 ∈ (𝑋𝐻𝑋)(𝑔(⟨𝑋, 𝑋· 𝑋)𝑓) = 𝑓 ∧ ∀𝑓 ∈ (𝑋𝐻𝑋)(𝑓(⟨𝑋, 𝑋· 𝑋)𝑔) = 𝑓)))
205, 19syl 17 . . . 4 (𝜑 → (∀𝑦𝐵 (∀𝑓 ∈ (𝑦𝐻𝑋)(𝑔(⟨𝑦, 𝑋· 𝑋)𝑓) = 𝑓 ∧ ∀𝑓 ∈ (𝑋𝐻𝑦)(𝑓(⟨𝑋, 𝑋· 𝑦)𝑔) = 𝑓) → (∀𝑓 ∈ (𝑋𝐻𝑋)(𝑔(⟨𝑋, 𝑋· 𝑋)𝑓) = 𝑓 ∧ ∀𝑓 ∈ (𝑋𝐻𝑋)(𝑓(⟨𝑋, 𝑋· 𝑋)𝑔) = 𝑓)))
2120ralrimivw 3104 . . 3 (𝜑 → ∀𝑔 ∈ (𝑋𝐻𝑋)(∀𝑦𝐵 (∀𝑓 ∈ (𝑦𝐻𝑋)(𝑔(⟨𝑦, 𝑋· 𝑋)𝑓) = 𝑓 ∧ ∀𝑓 ∈ (𝑋𝐻𝑦)(𝑓(⟨𝑋, 𝑋· 𝑦)𝑔) = 𝑓) → (∀𝑓 ∈ (𝑋𝐻𝑋)(𝑔(⟨𝑋, 𝑋· 𝑋)𝑓) = 𝑓 ∧ ∀𝑓 ∈ (𝑋𝐻𝑋)(𝑓(⟨𝑋, 𝑋· 𝑋)𝑔) = 𝑓)))
22 an3 656 . . . . . . 7 (((∀𝑓 ∈ (𝑋𝐻𝑋)(𝑔(⟨𝑋, 𝑋· 𝑋)𝑓) = 𝑓 ∧ ∀𝑓 ∈ (𝑋𝐻𝑋)(𝑓(⟨𝑋, 𝑋· 𝑋)𝑔) = 𝑓) ∧ (∀𝑓 ∈ (𝑋𝐻𝑋)((⟨𝑋, 𝑋· 𝑋)𝑓) = 𝑓 ∧ ∀𝑓 ∈ (𝑋𝐻𝑋)(𝑓(⟨𝑋, 𝑋· 𝑋)) = 𝑓)) → (∀𝑓 ∈ (𝑋𝐻𝑋)(𝑔(⟨𝑋, 𝑋· 𝑋)𝑓) = 𝑓 ∧ ∀𝑓 ∈ (𝑋𝐻𝑋)(𝑓(⟨𝑋, 𝑋· 𝑋)) = 𝑓))
23 oveq2 7283 . . . . . . . . . 10 (𝑓 = → (𝑔(⟨𝑋, 𝑋· 𝑋)𝑓) = (𝑔(⟨𝑋, 𝑋· 𝑋)))
24 id 22 . . . . . . . . . 10 (𝑓 = 𝑓 = )
2523, 24eqeq12d 2754 . . . . . . . . 9 (𝑓 = → ((𝑔(⟨𝑋, 𝑋· 𝑋)𝑓) = 𝑓 ↔ (𝑔(⟨𝑋, 𝑋· 𝑋)) = ))
2625rspcv 3557 . . . . . . . 8 ( ∈ (𝑋𝐻𝑋) → (∀𝑓 ∈ (𝑋𝐻𝑋)(𝑔(⟨𝑋, 𝑋· 𝑋)𝑓) = 𝑓 → (𝑔(⟨𝑋, 𝑋· 𝑋)) = ))
27 oveq1 7282 . . . . . . . . . 10 (𝑓 = 𝑔 → (𝑓(⟨𝑋, 𝑋· 𝑋)) = (𝑔(⟨𝑋, 𝑋· 𝑋)))
28 id 22 . . . . . . . . . 10 (𝑓 = 𝑔𝑓 = 𝑔)
2927, 28eqeq12d 2754 . . . . . . . . 9 (𝑓 = 𝑔 → ((𝑓(⟨𝑋, 𝑋· 𝑋)) = 𝑓 ↔ (𝑔(⟨𝑋, 𝑋· 𝑋)) = 𝑔))
3029rspcv 3557 . . . . . . . 8 (𝑔 ∈ (𝑋𝐻𝑋) → (∀𝑓 ∈ (𝑋𝐻𝑋)(𝑓(⟨𝑋, 𝑋· 𝑋)) = 𝑓 → (𝑔(⟨𝑋, 𝑋· 𝑋)) = 𝑔))
3126, 30im2anan9r 621 . . . . . . 7 ((𝑔 ∈ (𝑋𝐻𝑋) ∧ ∈ (𝑋𝐻𝑋)) → ((∀𝑓 ∈ (𝑋𝐻𝑋)(𝑔(⟨𝑋, 𝑋· 𝑋)𝑓) = 𝑓 ∧ ∀𝑓 ∈ (𝑋𝐻𝑋)(𝑓(⟨𝑋, 𝑋· 𝑋)) = 𝑓) → ((𝑔(⟨𝑋, 𝑋· 𝑋)) = ∧ (𝑔(⟨𝑋, 𝑋· 𝑋)) = 𝑔)))
32 eqtr2 2762 . . . . . . . 8 (((𝑔(⟨𝑋, 𝑋· 𝑋)) = ∧ (𝑔(⟨𝑋, 𝑋· 𝑋)) = 𝑔) → = 𝑔)
3332equcomd 2022 . . . . . . 7 (((𝑔(⟨𝑋, 𝑋· 𝑋)) = ∧ (𝑔(⟨𝑋, 𝑋· 𝑋)) = 𝑔) → 𝑔 = )
3422, 31, 33syl56 36 . . . . . 6 ((𝑔 ∈ (𝑋𝐻𝑋) ∧ ∈ (𝑋𝐻𝑋)) → (((∀𝑓 ∈ (𝑋𝐻𝑋)(𝑔(⟨𝑋, 𝑋· 𝑋)𝑓) = 𝑓 ∧ ∀𝑓 ∈ (𝑋𝐻𝑋)(𝑓(⟨𝑋, 𝑋· 𝑋)𝑔) = 𝑓) ∧ (∀𝑓 ∈ (𝑋𝐻𝑋)((⟨𝑋, 𝑋· 𝑋)𝑓) = 𝑓 ∧ ∀𝑓 ∈ (𝑋𝐻𝑋)(𝑓(⟨𝑋, 𝑋· 𝑋)) = 𝑓)) → 𝑔 = ))
3534rgen2 3120 . . . . 5 𝑔 ∈ (𝑋𝐻𝑋)∀ ∈ (𝑋𝐻𝑋)(((∀𝑓 ∈ (𝑋𝐻𝑋)(𝑔(⟨𝑋, 𝑋· 𝑋)𝑓) = 𝑓 ∧ ∀𝑓 ∈ (𝑋𝐻𝑋)(𝑓(⟨𝑋, 𝑋· 𝑋)𝑔) = 𝑓) ∧ (∀𝑓 ∈ (𝑋𝐻𝑋)((⟨𝑋, 𝑋· 𝑋)𝑓) = 𝑓 ∧ ∀𝑓 ∈ (𝑋𝐻𝑋)(𝑓(⟨𝑋, 𝑋· 𝑋)) = 𝑓)) → 𝑔 = )
3635a1i 11 . . . 4 (𝜑 → ∀𝑔 ∈ (𝑋𝐻𝑋)∀ ∈ (𝑋𝐻𝑋)(((∀𝑓 ∈ (𝑋𝐻𝑋)(𝑔(⟨𝑋, 𝑋· 𝑋)𝑓) = 𝑓 ∧ ∀𝑓 ∈ (𝑋𝐻𝑋)(𝑓(⟨𝑋, 𝑋· 𝑋)𝑔) = 𝑓) ∧ (∀𝑓 ∈ (𝑋𝐻𝑋)((⟨𝑋, 𝑋· 𝑋)𝑓) = 𝑓 ∧ ∀𝑓 ∈ (𝑋𝐻𝑋)(𝑓(⟨𝑋, 𝑋· 𝑋)) = 𝑓)) → 𝑔 = ))
37 oveq1 7282 . . . . . . . 8 (𝑔 = → (𝑔(⟨𝑋, 𝑋· 𝑋)𝑓) = ((⟨𝑋, 𝑋· 𝑋)𝑓))
3837eqeq1d 2740 . . . . . . 7 (𝑔 = → ((𝑔(⟨𝑋, 𝑋· 𝑋)𝑓) = 𝑓 ↔ ((⟨𝑋, 𝑋· 𝑋)𝑓) = 𝑓))
3938ralbidv 3112 . . . . . 6 (𝑔 = → (∀𝑓 ∈ (𝑋𝐻𝑋)(𝑔(⟨𝑋, 𝑋· 𝑋)𝑓) = 𝑓 ↔ ∀𝑓 ∈ (𝑋𝐻𝑋)((⟨𝑋, 𝑋· 𝑋)𝑓) = 𝑓))
40 oveq2 7283 . . . . . . . 8 (𝑔 = → (𝑓(⟨𝑋, 𝑋· 𝑋)𝑔) = (𝑓(⟨𝑋, 𝑋· 𝑋)))
4140eqeq1d 2740 . . . . . . 7 (𝑔 = → ((𝑓(⟨𝑋, 𝑋· 𝑋)𝑔) = 𝑓 ↔ (𝑓(⟨𝑋, 𝑋· 𝑋)) = 𝑓))
4241ralbidv 3112 . . . . . 6 (𝑔 = → (∀𝑓 ∈ (𝑋𝐻𝑋)(𝑓(⟨𝑋, 𝑋· 𝑋)𝑔) = 𝑓 ↔ ∀𝑓 ∈ (𝑋𝐻𝑋)(𝑓(⟨𝑋, 𝑋· 𝑋)) = 𝑓))
4339, 42anbi12d 631 . . . . 5 (𝑔 = → ((∀𝑓 ∈ (𝑋𝐻𝑋)(𝑔(⟨𝑋, 𝑋· 𝑋)𝑓) = 𝑓 ∧ ∀𝑓 ∈ (𝑋𝐻𝑋)(𝑓(⟨𝑋, 𝑋· 𝑋)𝑔) = 𝑓) ↔ (∀𝑓 ∈ (𝑋𝐻𝑋)((⟨𝑋, 𝑋· 𝑋)𝑓) = 𝑓 ∧ ∀𝑓 ∈ (𝑋𝐻𝑋)(𝑓(⟨𝑋, 𝑋· 𝑋)) = 𝑓)))
4443rmo4 3665 . . . 4 (∃*𝑔 ∈ (𝑋𝐻𝑋)(∀𝑓 ∈ (𝑋𝐻𝑋)(𝑔(⟨𝑋, 𝑋· 𝑋)𝑓) = 𝑓 ∧ ∀𝑓 ∈ (𝑋𝐻𝑋)(𝑓(⟨𝑋, 𝑋· 𝑋)𝑔) = 𝑓) ↔ ∀𝑔 ∈ (𝑋𝐻𝑋)∀ ∈ (𝑋𝐻𝑋)(((∀𝑓 ∈ (𝑋𝐻𝑋)(𝑔(⟨𝑋, 𝑋· 𝑋)𝑓) = 𝑓 ∧ ∀𝑓 ∈ (𝑋𝐻𝑋)(𝑓(⟨𝑋, 𝑋· 𝑋)𝑔) = 𝑓) ∧ (∀𝑓 ∈ (𝑋𝐻𝑋)((⟨𝑋, 𝑋· 𝑋)𝑓) = 𝑓 ∧ ∀𝑓 ∈ (𝑋𝐻𝑋)(𝑓(⟨𝑋, 𝑋· 𝑋)) = 𝑓)) → 𝑔 = ))
4536, 44sylibr 233 . . 3 (𝜑 → ∃*𝑔 ∈ (𝑋𝐻𝑋)(∀𝑓 ∈ (𝑋𝐻𝑋)(𝑔(⟨𝑋, 𝑋· 𝑋)𝑓) = 𝑓 ∧ ∀𝑓 ∈ (𝑋𝐻𝑋)(𝑓(⟨𝑋, 𝑋· 𝑋)𝑔) = 𝑓))
46 rmoim 3675 . . 3 (∀𝑔 ∈ (𝑋𝐻𝑋)(∀𝑦𝐵 (∀𝑓 ∈ (𝑦𝐻𝑋)(𝑔(⟨𝑦, 𝑋· 𝑋)𝑓) = 𝑓 ∧ ∀𝑓 ∈ (𝑋𝐻𝑦)(𝑓(⟨𝑋, 𝑋· 𝑦)𝑔) = 𝑓) → (∀𝑓 ∈ (𝑋𝐻𝑋)(𝑔(⟨𝑋, 𝑋· 𝑋)𝑓) = 𝑓 ∧ ∀𝑓 ∈ (𝑋𝐻𝑋)(𝑓(⟨𝑋, 𝑋· 𝑋)𝑔) = 𝑓)) → (∃*𝑔 ∈ (𝑋𝐻𝑋)(∀𝑓 ∈ (𝑋𝐻𝑋)(𝑔(⟨𝑋, 𝑋· 𝑋)𝑓) = 𝑓 ∧ ∀𝑓 ∈ (𝑋𝐻𝑋)(𝑓(⟨𝑋, 𝑋· 𝑋)𝑔) = 𝑓) → ∃*𝑔 ∈ (𝑋𝐻𝑋)∀𝑦𝐵 (∀𝑓 ∈ (𝑦𝐻𝑋)(𝑔(⟨𝑦, 𝑋· 𝑋)𝑓) = 𝑓 ∧ ∀𝑓 ∈ (𝑋𝐻𝑦)(𝑓(⟨𝑋, 𝑋· 𝑦)𝑔) = 𝑓)))
4721, 45, 46sylc 65 . 2 (𝜑 → ∃*𝑔 ∈ (𝑋𝐻𝑋)∀𝑦𝐵 (∀𝑓 ∈ (𝑦𝐻𝑋)(𝑔(⟨𝑦, 𝑋· 𝑋)𝑓) = 𝑓 ∧ ∀𝑓 ∈ (𝑋𝐻𝑦)(𝑓(⟨𝑋, 𝑋· 𝑦)𝑔) = 𝑓))
48 reu5 3361 . 2 (∃!𝑔 ∈ (𝑋𝐻𝑋)∀𝑦𝐵 (∀𝑓 ∈ (𝑦𝐻𝑋)(𝑔(⟨𝑦, 𝑋· 𝑋)𝑓) = 𝑓 ∧ ∀𝑓 ∈ (𝑋𝐻𝑦)(𝑓(⟨𝑋, 𝑋· 𝑦)𝑔) = 𝑓) ↔ (∃𝑔 ∈ (𝑋𝐻𝑋)∀𝑦𝐵 (∀𝑓 ∈ (𝑦𝐻𝑋)(𝑔(⟨𝑦, 𝑋· 𝑋)𝑓) = 𝑓 ∧ ∀𝑓 ∈ (𝑋𝐻𝑦)(𝑓(⟨𝑋, 𝑋· 𝑦)𝑔) = 𝑓) ∧ ∃*𝑔 ∈ (𝑋𝐻𝑋)∀𝑦𝐵 (∀𝑓 ∈ (𝑦𝐻𝑋)(𝑔(⟨𝑦, 𝑋· 𝑋)𝑓) = 𝑓 ∧ ∀𝑓 ∈ (𝑋𝐻𝑦)(𝑓(⟨𝑋, 𝑋· 𝑦)𝑔) = 𝑓)))
496, 47, 48sylanbrc 583 1 (𝜑 → ∃!𝑔 ∈ (𝑋𝐻𝑋)∀𝑦𝐵 (∀𝑓 ∈ (𝑦𝐻𝑋)(𝑔(⟨𝑦, 𝑋· 𝑋)𝑓) = 𝑓 ∧ ∀𝑓 ∈ (𝑋𝐻𝑦)(𝑓(⟨𝑋, 𝑋· 𝑦)𝑔) = 𝑓))
Colors of variables: wff setvar class
Syntax hints:  wi 4  wa 396   = wceq 1539  wcel 2106  wral 3064  wrex 3065  ∃!wreu 3066  ∃*wrmo 3067  cop 4567  cfv 6433  (class class class)co 7275  Basecbs 16912  Hom chom 16973  compcco 16974  Catccat 17373
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1798  ax-4 1812  ax-5 1913  ax-6 1971  ax-7 2011  ax-8 2108  ax-9 2116  ax-10 2137  ax-11 2154  ax-12 2171  ax-ext 2709  ax-nul 5230
This theorem depends on definitions:  df-bi 206  df-an 397  df-or 845  df-3an 1088  df-tru 1542  df-fal 1552  df-ex 1783  df-nf 1787  df-sb 2068  df-mo 2540  df-eu 2569  df-clab 2716  df-cleq 2730  df-clel 2816  df-ral 3069  df-rex 3070  df-rmo 3071  df-reu 3072  df-rab 3073  df-v 3434  df-sbc 3717  df-dif 3890  df-un 3892  df-in 3894  df-ss 3904  df-nul 4257  df-if 4460  df-sn 4562  df-pr 4564  df-op 4568  df-uni 4840  df-br 5075  df-iota 6391  df-fv 6441  df-ov 7278  df-cat 17377
This theorem is referenced by:  catidd  17389  catidcl  17391  catlid  17392  catrid  17393
  Copyright terms: Public domain W3C validator