Metamath Proof Explorer


Theorem dvrfval

Description: Division operation in a ring. (Contributed by Mario Carneiro, 2-Jul-2014) (Revised by Mario Carneiro, 2-Dec-2014) (Proof shortened by AV, 2-Mar-2024)

Ref Expression
Hypotheses dvrval.b 𝐵 = ( Base ‘ 𝑅 )
dvrval.t · = ( .r𝑅 )
dvrval.u 𝑈 = ( Unit ‘ 𝑅 )
dvrval.i 𝐼 = ( invr𝑅 )
dvrval.d / = ( /r𝑅 )
Assertion dvrfval / = ( 𝑥𝐵 , 𝑦𝑈 ↦ ( 𝑥 · ( 𝐼𝑦 ) ) )

Proof

Step Hyp Ref Expression
1 dvrval.b 𝐵 = ( Base ‘ 𝑅 )
2 dvrval.t · = ( .r𝑅 )
3 dvrval.u 𝑈 = ( Unit ‘ 𝑅 )
4 dvrval.i 𝐼 = ( invr𝑅 )
5 dvrval.d / = ( /r𝑅 )
6 fveq2 ( 𝑟 = 𝑅 → ( Base ‘ 𝑟 ) = ( Base ‘ 𝑅 ) )
7 6 1 eqtr4di ( 𝑟 = 𝑅 → ( Base ‘ 𝑟 ) = 𝐵 )
8 fveq2 ( 𝑟 = 𝑅 → ( Unit ‘ 𝑟 ) = ( Unit ‘ 𝑅 ) )
9 8 3 eqtr4di ( 𝑟 = 𝑅 → ( Unit ‘ 𝑟 ) = 𝑈 )
10 fveq2 ( 𝑟 = 𝑅 → ( .r𝑟 ) = ( .r𝑅 ) )
11 10 2 eqtr4di ( 𝑟 = 𝑅 → ( .r𝑟 ) = · )
12 eqidd ( 𝑟 = 𝑅𝑥 = 𝑥 )
13 fveq2 ( 𝑟 = 𝑅 → ( invr𝑟 ) = ( invr𝑅 ) )
14 13 4 eqtr4di ( 𝑟 = 𝑅 → ( invr𝑟 ) = 𝐼 )
15 14 fveq1d ( 𝑟 = 𝑅 → ( ( invr𝑟 ) ‘ 𝑦 ) = ( 𝐼𝑦 ) )
16 11 12 15 oveq123d ( 𝑟 = 𝑅 → ( 𝑥 ( .r𝑟 ) ( ( invr𝑟 ) ‘ 𝑦 ) ) = ( 𝑥 · ( 𝐼𝑦 ) ) )
17 7 9 16 mpoeq123dv ( 𝑟 = 𝑅 → ( 𝑥 ∈ ( Base ‘ 𝑟 ) , 𝑦 ∈ ( Unit ‘ 𝑟 ) ↦ ( 𝑥 ( .r𝑟 ) ( ( invr𝑟 ) ‘ 𝑦 ) ) ) = ( 𝑥𝐵 , 𝑦𝑈 ↦ ( 𝑥 · ( 𝐼𝑦 ) ) ) )
18 df-dvr /r = ( 𝑟 ∈ V ↦ ( 𝑥 ∈ ( Base ‘ 𝑟 ) , 𝑦 ∈ ( Unit ‘ 𝑟 ) ↦ ( 𝑥 ( .r𝑟 ) ( ( invr𝑟 ) ‘ 𝑦 ) ) ) )
19 1 fvexi 𝐵 ∈ V
20 3 fvexi 𝑈 ∈ V
21 19 20 mpoex ( 𝑥𝐵 , 𝑦𝑈 ↦ ( 𝑥 · ( 𝐼𝑦 ) ) ) ∈ V
22 17 18 21 fvmpt ( 𝑅 ∈ V → ( /r𝑅 ) = ( 𝑥𝐵 , 𝑦𝑈 ↦ ( 𝑥 · ( 𝐼𝑦 ) ) ) )
23 fvprc ( ¬ 𝑅 ∈ V → ( /r𝑅 ) = ∅ )
24 fvprc ( ¬ 𝑅 ∈ V → ( Base ‘ 𝑅 ) = ∅ )
25 1 24 eqtrid ( ¬ 𝑅 ∈ V → 𝐵 = ∅ )
26 25 orcd ( ¬ 𝑅 ∈ V → ( 𝐵 = ∅ ∨ 𝑈 = ∅ ) )
27 0mpo0 ( ( 𝐵 = ∅ ∨ 𝑈 = ∅ ) → ( 𝑥𝐵 , 𝑦𝑈 ↦ ( 𝑥 · ( 𝐼𝑦 ) ) ) = ∅ )
28 26 27 syl ( ¬ 𝑅 ∈ V → ( 𝑥𝐵 , 𝑦𝑈 ↦ ( 𝑥 · ( 𝐼𝑦 ) ) ) = ∅ )
29 23 28 eqtr4d ( ¬ 𝑅 ∈ V → ( /r𝑅 ) = ( 𝑥𝐵 , 𝑦𝑈 ↦ ( 𝑥 · ( 𝐼𝑦 ) ) ) )
30 22 29 pm2.61i ( /r𝑅 ) = ( 𝑥𝐵 , 𝑦𝑈 ↦ ( 𝑥 · ( 𝐼𝑦 ) ) )
31 5 30 eqtri / = ( 𝑥𝐵 , 𝑦𝑈 ↦ ( 𝑥 · ( 𝐼𝑦 ) ) )