Metamath Proof Explorer


Theorem thincepi

Description: In a thin category, all morphisms are epimorphisms. The converse does not hold. See grptcepi . (Contributed by Zhi Wang, 24-Sep-2024)

Ref Expression
Hypotheses thincid.c ( 𝜑𝐶 ∈ ThinCat )
thincid.b 𝐵 = ( Base ‘ 𝐶 )
thincid.h 𝐻 = ( Hom ‘ 𝐶 )
thincid.x ( 𝜑𝑋𝐵 )
thincmon.y ( 𝜑𝑌𝐵 )
thincepi.e 𝐸 = ( Epi ‘ 𝐶 )
Assertion thincepi ( 𝜑 → ( 𝑋 𝐸 𝑌 ) = ( 𝑋 𝐻 𝑌 ) )

Proof

Step Hyp Ref Expression
1 thincid.c ( 𝜑𝐶 ∈ ThinCat )
2 thincid.b 𝐵 = ( Base ‘ 𝐶 )
3 thincid.h 𝐻 = ( Hom ‘ 𝐶 )
4 thincid.x ( 𝜑𝑋𝐵 )
5 thincmon.y ( 𝜑𝑌𝐵 )
6 thincepi.e 𝐸 = ( Epi ‘ 𝐶 )
7 5 adantr ( ( 𝜑 ∧ ( 𝑧𝐵𝑔 ∈ ( 𝑌 𝐻 𝑧 ) ∧ ∈ ( 𝑌 𝐻 𝑧 ) ) ) → 𝑌𝐵 )
8 simpr1 ( ( 𝜑 ∧ ( 𝑧𝐵𝑔 ∈ ( 𝑌 𝐻 𝑧 ) ∧ ∈ ( 𝑌 𝐻 𝑧 ) ) ) → 𝑧𝐵 )
9 simpr2 ( ( 𝜑 ∧ ( 𝑧𝐵𝑔 ∈ ( 𝑌 𝐻 𝑧 ) ∧ ∈ ( 𝑌 𝐻 𝑧 ) ) ) → 𝑔 ∈ ( 𝑌 𝐻 𝑧 ) )
10 simpr3 ( ( 𝜑 ∧ ( 𝑧𝐵𝑔 ∈ ( 𝑌 𝐻 𝑧 ) ∧ ∈ ( 𝑌 𝐻 𝑧 ) ) ) → ∈ ( 𝑌 𝐻 𝑧 ) )
11 1 adantr ( ( 𝜑 ∧ ( 𝑧𝐵𝑔 ∈ ( 𝑌 𝐻 𝑧 ) ∧ ∈ ( 𝑌 𝐻 𝑧 ) ) ) → 𝐶 ∈ ThinCat )
12 7 8 9 10 2 3 11 thincmo2 ( ( 𝜑 ∧ ( 𝑧𝐵𝑔 ∈ ( 𝑌 𝐻 𝑧 ) ∧ ∈ ( 𝑌 𝐻 𝑧 ) ) ) → 𝑔 = )
13 12 a1d ( ( 𝜑 ∧ ( 𝑧𝐵𝑔 ∈ ( 𝑌 𝐻 𝑧 ) ∧ ∈ ( 𝑌 𝐻 𝑧 ) ) ) → ( ( 𝑔 ( ⟨ 𝑋 , 𝑌 ⟩ ( comp ‘ 𝐶 ) 𝑧 ) 𝑓 ) = ( ( ⟨ 𝑋 , 𝑌 ⟩ ( comp ‘ 𝐶 ) 𝑧 ) 𝑓 ) → 𝑔 = ) )
14 13 ralrimivvva ( 𝜑 → ∀ 𝑧𝐵𝑔 ∈ ( 𝑌 𝐻 𝑧 ) ∀ ∈ ( 𝑌 𝐻 𝑧 ) ( ( 𝑔 ( ⟨ 𝑋 , 𝑌 ⟩ ( comp ‘ 𝐶 ) 𝑧 ) 𝑓 ) = ( ( ⟨ 𝑋 , 𝑌 ⟩ ( comp ‘ 𝐶 ) 𝑧 ) 𝑓 ) → 𝑔 = ) )
15 eqid ( comp ‘ 𝐶 ) = ( comp ‘ 𝐶 )
16 1 thinccd ( 𝜑𝐶 ∈ Cat )
17 2 3 15 6 16 4 5 isepi2 ( 𝜑 → ( 𝑓 ∈ ( 𝑋 𝐸 𝑌 ) ↔ ( 𝑓 ∈ ( 𝑋 𝐻 𝑌 ) ∧ ∀ 𝑧𝐵𝑔 ∈ ( 𝑌 𝐻 𝑧 ) ∀ ∈ ( 𝑌 𝐻 𝑧 ) ( ( 𝑔 ( ⟨ 𝑋 , 𝑌 ⟩ ( comp ‘ 𝐶 ) 𝑧 ) 𝑓 ) = ( ( ⟨ 𝑋 , 𝑌 ⟩ ( comp ‘ 𝐶 ) 𝑧 ) 𝑓 ) → 𝑔 = ) ) ) )
18 14 17 mpbiran2d ( 𝜑 → ( 𝑓 ∈ ( 𝑋 𝐸 𝑌 ) ↔ 𝑓 ∈ ( 𝑋 𝐻 𝑌 ) ) )
19 18 eqrdv ( 𝜑 → ( 𝑋 𝐸 𝑌 ) = ( 𝑋 𝐻 𝑌 ) )