Metamath Proof Explorer


Theorem subrgunit

Description: An element of a ring is a unit of a subring iff it is a unit of the parent ring and both it and its inverse are in the subring. (Contributed by Mario Carneiro, 4-Dec-2014)

Ref Expression
Hypotheses subrgugrp.1 𝑆 = ( 𝑅s 𝐴 )
subrgugrp.2 𝑈 = ( Unit ‘ 𝑅 )
subrgugrp.3 𝑉 = ( Unit ‘ 𝑆 )
subrgunit.4 𝐼 = ( invr𝑅 )
Assertion subrgunit ( 𝐴 ∈ ( SubRing ‘ 𝑅 ) → ( 𝑋𝑉 ↔ ( 𝑋𝑈𝑋𝐴 ∧ ( 𝐼𝑋 ) ∈ 𝐴 ) ) )

Proof

Step Hyp Ref Expression
1 subrgugrp.1 𝑆 = ( 𝑅s 𝐴 )
2 subrgugrp.2 𝑈 = ( Unit ‘ 𝑅 )
3 subrgugrp.3 𝑉 = ( Unit ‘ 𝑆 )
4 subrgunit.4 𝐼 = ( invr𝑅 )
5 1 2 3 subrguss ( 𝐴 ∈ ( SubRing ‘ 𝑅 ) → 𝑉𝑈 )
6 5 sselda ( ( 𝐴 ∈ ( SubRing ‘ 𝑅 ) ∧ 𝑋𝑉 ) → 𝑋𝑈 )
7 eqid ( Base ‘ 𝑆 ) = ( Base ‘ 𝑆 )
8 7 3 unitcl ( 𝑋𝑉𝑋 ∈ ( Base ‘ 𝑆 ) )
9 8 adantl ( ( 𝐴 ∈ ( SubRing ‘ 𝑅 ) ∧ 𝑋𝑉 ) → 𝑋 ∈ ( Base ‘ 𝑆 ) )
10 1 subrgbas ( 𝐴 ∈ ( SubRing ‘ 𝑅 ) → 𝐴 = ( Base ‘ 𝑆 ) )
11 10 adantr ( ( 𝐴 ∈ ( SubRing ‘ 𝑅 ) ∧ 𝑋𝑉 ) → 𝐴 = ( Base ‘ 𝑆 ) )
12 9 11 eleqtrrd ( ( 𝐴 ∈ ( SubRing ‘ 𝑅 ) ∧ 𝑋𝑉 ) → 𝑋𝐴 )
13 1 subrgring ( 𝐴 ∈ ( SubRing ‘ 𝑅 ) → 𝑆 ∈ Ring )
14 eqid ( invr𝑆 ) = ( invr𝑆 )
15 3 14 7 ringinvcl ( ( 𝑆 ∈ Ring ∧ 𝑋𝑉 ) → ( ( invr𝑆 ) ‘ 𝑋 ) ∈ ( Base ‘ 𝑆 ) )
16 13 15 sylan ( ( 𝐴 ∈ ( SubRing ‘ 𝑅 ) ∧ 𝑋𝑉 ) → ( ( invr𝑆 ) ‘ 𝑋 ) ∈ ( Base ‘ 𝑆 ) )
17 1 4 3 14 subrginv ( ( 𝐴 ∈ ( SubRing ‘ 𝑅 ) ∧ 𝑋𝑉 ) → ( 𝐼𝑋 ) = ( ( invr𝑆 ) ‘ 𝑋 ) )
18 16 17 11 3eltr4d ( ( 𝐴 ∈ ( SubRing ‘ 𝑅 ) ∧ 𝑋𝑉 ) → ( 𝐼𝑋 ) ∈ 𝐴 )
19 6 12 18 3jca ( ( 𝐴 ∈ ( SubRing ‘ 𝑅 ) ∧ 𝑋𝑉 ) → ( 𝑋𝑈𝑋𝐴 ∧ ( 𝐼𝑋 ) ∈ 𝐴 ) )
20 simpr2 ( ( 𝐴 ∈ ( SubRing ‘ 𝑅 ) ∧ ( 𝑋𝑈𝑋𝐴 ∧ ( 𝐼𝑋 ) ∈ 𝐴 ) ) → 𝑋𝐴 )
21 10 adantr ( ( 𝐴 ∈ ( SubRing ‘ 𝑅 ) ∧ ( 𝑋𝑈𝑋𝐴 ∧ ( 𝐼𝑋 ) ∈ 𝐴 ) ) → 𝐴 = ( Base ‘ 𝑆 ) )
22 20 21 eleqtrd ( ( 𝐴 ∈ ( SubRing ‘ 𝑅 ) ∧ ( 𝑋𝑈𝑋𝐴 ∧ ( 𝐼𝑋 ) ∈ 𝐴 ) ) → 𝑋 ∈ ( Base ‘ 𝑆 ) )
23 simpr3 ( ( 𝐴 ∈ ( SubRing ‘ 𝑅 ) ∧ ( 𝑋𝑈𝑋𝐴 ∧ ( 𝐼𝑋 ) ∈ 𝐴 ) ) → ( 𝐼𝑋 ) ∈ 𝐴 )
24 23 21 eleqtrd ( ( 𝐴 ∈ ( SubRing ‘ 𝑅 ) ∧ ( 𝑋𝑈𝑋𝐴 ∧ ( 𝐼𝑋 ) ∈ 𝐴 ) ) → ( 𝐼𝑋 ) ∈ ( Base ‘ 𝑆 ) )
25 eqid ( ∥r𝑆 ) = ( ∥r𝑆 )
26 eqid ( .r𝑆 ) = ( .r𝑆 )
27 7 25 26 dvdsrmul ( ( 𝑋 ∈ ( Base ‘ 𝑆 ) ∧ ( 𝐼𝑋 ) ∈ ( Base ‘ 𝑆 ) ) → 𝑋 ( ∥r𝑆 ) ( ( 𝐼𝑋 ) ( .r𝑆 ) 𝑋 ) )
28 22 24 27 syl2anc ( ( 𝐴 ∈ ( SubRing ‘ 𝑅 ) ∧ ( 𝑋𝑈𝑋𝐴 ∧ ( 𝐼𝑋 ) ∈ 𝐴 ) ) → 𝑋 ( ∥r𝑆 ) ( ( 𝐼𝑋 ) ( .r𝑆 ) 𝑋 ) )
29 subrgrcl ( 𝐴 ∈ ( SubRing ‘ 𝑅 ) → 𝑅 ∈ Ring )
30 29 adantr ( ( 𝐴 ∈ ( SubRing ‘ 𝑅 ) ∧ ( 𝑋𝑈𝑋𝐴 ∧ ( 𝐼𝑋 ) ∈ 𝐴 ) ) → 𝑅 ∈ Ring )
31 simpr1 ( ( 𝐴 ∈ ( SubRing ‘ 𝑅 ) ∧ ( 𝑋𝑈𝑋𝐴 ∧ ( 𝐼𝑋 ) ∈ 𝐴 ) ) → 𝑋𝑈 )
32 eqid ( .r𝑅 ) = ( .r𝑅 )
33 eqid ( 1r𝑅 ) = ( 1r𝑅 )
34 2 4 32 33 unitlinv ( ( 𝑅 ∈ Ring ∧ 𝑋𝑈 ) → ( ( 𝐼𝑋 ) ( .r𝑅 ) 𝑋 ) = ( 1r𝑅 ) )
35 30 31 34 syl2anc ( ( 𝐴 ∈ ( SubRing ‘ 𝑅 ) ∧ ( 𝑋𝑈𝑋𝐴 ∧ ( 𝐼𝑋 ) ∈ 𝐴 ) ) → ( ( 𝐼𝑋 ) ( .r𝑅 ) 𝑋 ) = ( 1r𝑅 ) )
36 1 32 ressmulr ( 𝐴 ∈ ( SubRing ‘ 𝑅 ) → ( .r𝑅 ) = ( .r𝑆 ) )
37 36 adantr ( ( 𝐴 ∈ ( SubRing ‘ 𝑅 ) ∧ ( 𝑋𝑈𝑋𝐴 ∧ ( 𝐼𝑋 ) ∈ 𝐴 ) ) → ( .r𝑅 ) = ( .r𝑆 ) )
38 37 oveqd ( ( 𝐴 ∈ ( SubRing ‘ 𝑅 ) ∧ ( 𝑋𝑈𝑋𝐴 ∧ ( 𝐼𝑋 ) ∈ 𝐴 ) ) → ( ( 𝐼𝑋 ) ( .r𝑅 ) 𝑋 ) = ( ( 𝐼𝑋 ) ( .r𝑆 ) 𝑋 ) )
39 1 33 subrg1 ( 𝐴 ∈ ( SubRing ‘ 𝑅 ) → ( 1r𝑅 ) = ( 1r𝑆 ) )
40 39 adantr ( ( 𝐴 ∈ ( SubRing ‘ 𝑅 ) ∧ ( 𝑋𝑈𝑋𝐴 ∧ ( 𝐼𝑋 ) ∈ 𝐴 ) ) → ( 1r𝑅 ) = ( 1r𝑆 ) )
41 35 38 40 3eqtr3d ( ( 𝐴 ∈ ( SubRing ‘ 𝑅 ) ∧ ( 𝑋𝑈𝑋𝐴 ∧ ( 𝐼𝑋 ) ∈ 𝐴 ) ) → ( ( 𝐼𝑋 ) ( .r𝑆 ) 𝑋 ) = ( 1r𝑆 ) )
42 28 41 breqtrd ( ( 𝐴 ∈ ( SubRing ‘ 𝑅 ) ∧ ( 𝑋𝑈𝑋𝐴 ∧ ( 𝐼𝑋 ) ∈ 𝐴 ) ) → 𝑋 ( ∥r𝑆 ) ( 1r𝑆 ) )
43 eqid ( oppr𝑆 ) = ( oppr𝑆 )
44 43 7 opprbas ( Base ‘ 𝑆 ) = ( Base ‘ ( oppr𝑆 ) )
45 eqid ( ∥r ‘ ( oppr𝑆 ) ) = ( ∥r ‘ ( oppr𝑆 ) )
46 eqid ( .r ‘ ( oppr𝑆 ) ) = ( .r ‘ ( oppr𝑆 ) )
47 44 45 46 dvdsrmul ( ( 𝑋 ∈ ( Base ‘ 𝑆 ) ∧ ( 𝐼𝑋 ) ∈ ( Base ‘ 𝑆 ) ) → 𝑋 ( ∥r ‘ ( oppr𝑆 ) ) ( ( 𝐼𝑋 ) ( .r ‘ ( oppr𝑆 ) ) 𝑋 ) )
48 22 24 47 syl2anc ( ( 𝐴 ∈ ( SubRing ‘ 𝑅 ) ∧ ( 𝑋𝑈𝑋𝐴 ∧ ( 𝐼𝑋 ) ∈ 𝐴 ) ) → 𝑋 ( ∥r ‘ ( oppr𝑆 ) ) ( ( 𝐼𝑋 ) ( .r ‘ ( oppr𝑆 ) ) 𝑋 ) )
49 7 26 43 46 opprmul ( ( 𝐼𝑋 ) ( .r ‘ ( oppr𝑆 ) ) 𝑋 ) = ( 𝑋 ( .r𝑆 ) ( 𝐼𝑋 ) )
50 2 4 32 33 unitrinv ( ( 𝑅 ∈ Ring ∧ 𝑋𝑈 ) → ( 𝑋 ( .r𝑅 ) ( 𝐼𝑋 ) ) = ( 1r𝑅 ) )
51 30 31 50 syl2anc ( ( 𝐴 ∈ ( SubRing ‘ 𝑅 ) ∧ ( 𝑋𝑈𝑋𝐴 ∧ ( 𝐼𝑋 ) ∈ 𝐴 ) ) → ( 𝑋 ( .r𝑅 ) ( 𝐼𝑋 ) ) = ( 1r𝑅 ) )
52 37 oveqd ( ( 𝐴 ∈ ( SubRing ‘ 𝑅 ) ∧ ( 𝑋𝑈𝑋𝐴 ∧ ( 𝐼𝑋 ) ∈ 𝐴 ) ) → ( 𝑋 ( .r𝑅 ) ( 𝐼𝑋 ) ) = ( 𝑋 ( .r𝑆 ) ( 𝐼𝑋 ) ) )
53 51 52 40 3eqtr3d ( ( 𝐴 ∈ ( SubRing ‘ 𝑅 ) ∧ ( 𝑋𝑈𝑋𝐴 ∧ ( 𝐼𝑋 ) ∈ 𝐴 ) ) → ( 𝑋 ( .r𝑆 ) ( 𝐼𝑋 ) ) = ( 1r𝑆 ) )
54 49 53 eqtrid ( ( 𝐴 ∈ ( SubRing ‘ 𝑅 ) ∧ ( 𝑋𝑈𝑋𝐴 ∧ ( 𝐼𝑋 ) ∈ 𝐴 ) ) → ( ( 𝐼𝑋 ) ( .r ‘ ( oppr𝑆 ) ) 𝑋 ) = ( 1r𝑆 ) )
55 48 54 breqtrd ( ( 𝐴 ∈ ( SubRing ‘ 𝑅 ) ∧ ( 𝑋𝑈𝑋𝐴 ∧ ( 𝐼𝑋 ) ∈ 𝐴 ) ) → 𝑋 ( ∥r ‘ ( oppr𝑆 ) ) ( 1r𝑆 ) )
56 eqid ( 1r𝑆 ) = ( 1r𝑆 )
57 3 56 25 43 45 isunit ( 𝑋𝑉 ↔ ( 𝑋 ( ∥r𝑆 ) ( 1r𝑆 ) ∧ 𝑋 ( ∥r ‘ ( oppr𝑆 ) ) ( 1r𝑆 ) ) )
58 42 55 57 sylanbrc ( ( 𝐴 ∈ ( SubRing ‘ 𝑅 ) ∧ ( 𝑋𝑈𝑋𝐴 ∧ ( 𝐼𝑋 ) ∈ 𝐴 ) ) → 𝑋𝑉 )
59 19 58 impbida ( 𝐴 ∈ ( SubRing ‘ 𝑅 ) → ( 𝑋𝑉 ↔ ( 𝑋𝑈𝑋𝐴 ∧ ( 𝐼𝑋 ) ∈ 𝐴 ) ) )