Metamath Proof Explorer


Theorem dvdsrzring

Description: Ring divisibility in the ring of integers corresponds to ordinary divisibility in ZZ . (Contributed by Stefan O'Rear, 3-Jan-2015) (Revised by AV, 9-Jun-2019)

Ref Expression
Assertion dvdsrzring ⊢ ∥ = ∥ r ⁡ ℤ ring

Proof

Step Hyp Ref Expression
1 simpl ⊢ x ∈ ℤ ∧ y ∈ ℤ → x ∈ ℤ
2 1 anim1i ⊢ x ∈ ℤ ∧ y ∈ ℤ ∧ ∃ z ∈ ℤ z ⁢ x = y → x ∈ ℤ ∧ ∃ z ∈ ℤ z ⁢ x = y
3 simpl ⊢ x ∈ ℤ ∧ ∃ z ∈ ℤ z ⁢ x = y → x ∈ ℤ
4 zmulcl ⊢ z ∈ ℤ ∧ x ∈ ℤ → z ⁢ x ∈ ℤ
5 4 ancoms ⊢ x ∈ ℤ ∧ z ∈ ℤ → z ⁢ x ∈ ℤ
6 eleq1 ⊢ z ⁢ x = y → z ⁢ x ∈ ℤ ↔ y ∈ ℤ
7 5 6 syl5ibcom ⊢ x ∈ ℤ ∧ z ∈ ℤ → z ⁢ x = y → y ∈ ℤ
8 7 rexlimdva ⊢ x ∈ ℤ → ∃ z ∈ ℤ z ⁢ x = y → y ∈ ℤ
9 8 imp ⊢ x ∈ ℤ ∧ ∃ z ∈ ℤ z ⁢ x = y → y ∈ ℤ
10 simpr ⊢ x ∈ ℤ ∧ ∃ z ∈ ℤ z ⁢ x = y → ∃ z ∈ ℤ z ⁢ x = y
11 3 9 10 jca31 ⊢ x ∈ ℤ ∧ ∃ z ∈ ℤ z ⁢ x = y → x ∈ ℤ ∧ y ∈ ℤ ∧ ∃ z ∈ ℤ z ⁢ x = y
12 2 11 impbii ⊢ x ∈ ℤ ∧ y ∈ ℤ ∧ ∃ z ∈ ℤ z ⁢ x = y ↔ x ∈ ℤ ∧ ∃ z ∈ ℤ z ⁢ x = y
13 12 opabbii ⊢ x y | x ∈ ℤ ∧ y ∈ ℤ ∧ ∃ z ∈ ℤ z ⁢ x = y = x y | x ∈ ℤ ∧ ∃ z ∈ ℤ z ⁢ x = y
14 df-dvds ⊢ ∥ = x y | x ∈ ℤ ∧ y ∈ ℤ ∧ ∃ z ∈ ℤ z ⁢ x = y
15 zringbas ⊢ ℤ = Base ℤ ring
16 eqid ⊢ ∥ r ⁡ ℤ ring = ∥ r ⁡ ℤ ring
17 zringmulr ⊢ × = ⋅ ℤ ring
18 15 16 17 dvdsrval ⊢ ∥ r ⁡ ℤ ring = x y | x ∈ ℤ ∧ ∃ z ∈ ℤ z ⁢ x = y
19 13 14 18 3eqtr4i ⊢ ∥ = ∥ r ⁡ ℤ ring