Metamath Proof Explorer


Theorem chrcong

Description: If two integers are congruent relative to the ring characteristic, their images in the ring are the same. (Contributed by Mario Carneiro, 24-Sep-2015)

Ref Expression
Hypotheses chrcl.c C=chrR
chrid.l L=ℤRHomR
chrid.z 0˙=0R
Assertion chrcong RRingMNCMNLM=LN

Proof

Step Hyp Ref Expression
1 chrcl.c C=chrR
2 chrid.l L=ℤRHomR
3 chrid.z 0˙=0R
4 eqid odR=odR
5 eqid 1R=1R
6 4 5 1 chrval odR1R=C
7 6 breq1i odR1RMNCMN
8 ringgrp RRingRGrp
9 8 3ad2ant1 RRingMNRGrp
10 eqid BaseR=BaseR
11 10 5 ringidcl RRing1RBaseR
12 11 3ad2ant1 RRingMN1RBaseR
13 simp2 RRingMNM
14 simp3 RRingMNN
15 eqid R=R
16 10 4 15 3 odcong RGrp1RBaseRMNodR1RMNMR1R=NR1R
17 9 12 13 14 16 syl112anc RRingMNodR1RMNMR1R=NR1R
18 7 17 bitr3id RRingMNCMNMR1R=NR1R
19 2 15 5 zrhmulg RRingMLM=MR1R
20 19 3adant3 RRingMNLM=MR1R
21 2 15 5 zrhmulg RRingNLN=NR1R
22 21 3adant2 RRingMNLN=NR1R
23 20 22 eqeq12d RRingMNLM=LNMR1R=NR1R
24 18 23 bitr4d RRingMNCMNLM=LN