MPE Home Metamath Proof Explorer < Previous   Next >
Nearby theorems
Mirrors  >  Home  >  MPE Home  >  Th. List  >  rplpwr Structured version   Visualization version   GIF version

Theorem rplpwr 16147
Description: If 𝐴 and 𝐵 are relatively prime, then so are 𝐴𝑁 and 𝐵. (Contributed by Scott Fenton, 12-Apr-2014.) (Revised by Mario Carneiro, 19-Apr-2014.)
Assertion
Ref Expression
rplpwr ((𝐴 ∈ ℕ ∧ 𝐵 ∈ ℕ ∧ 𝑁 ∈ ℕ) → ((𝐴 gcd 𝐵) = 1 → ((𝐴𝑁) gcd 𝐵) = 1))

Proof of Theorem rplpwr
Dummy variables 𝑛 𝑘 are mutually distinct and distinct from all other variables.
StepHypRef Expression
1 oveq2 7240 . . . . . . . 8 (𝑘 = 1 → (𝐴𝑘) = (𝐴↑1))
21oveq1d 7247 . . . . . . 7 (𝑘 = 1 → ((𝐴𝑘) gcd 𝐵) = ((𝐴↑1) gcd 𝐵))
32eqeq1d 2740 . . . . . 6 (𝑘 = 1 → (((𝐴𝑘) gcd 𝐵) = 1 ↔ ((𝐴↑1) gcd 𝐵) = 1))
43imbi2d 344 . . . . 5 (𝑘 = 1 → ((((𝐴 ∈ ℕ ∧ 𝐵 ∈ ℕ) ∧ (𝐴 gcd 𝐵) = 1) → ((𝐴𝑘) gcd 𝐵) = 1) ↔ (((𝐴 ∈ ℕ ∧ 𝐵 ∈ ℕ) ∧ (𝐴 gcd 𝐵) = 1) → ((𝐴↑1) gcd 𝐵) = 1)))
5 oveq2 7240 . . . . . . . 8 (𝑘 = 𝑛 → (𝐴𝑘) = (𝐴𝑛))
65oveq1d 7247 . . . . . . 7 (𝑘 = 𝑛 → ((𝐴𝑘) gcd 𝐵) = ((𝐴𝑛) gcd 𝐵))
76eqeq1d 2740 . . . . . 6 (𝑘 = 𝑛 → (((𝐴𝑘) gcd 𝐵) = 1 ↔ ((𝐴𝑛) gcd 𝐵) = 1))
87imbi2d 344 . . . . 5 (𝑘 = 𝑛 → ((((𝐴 ∈ ℕ ∧ 𝐵 ∈ ℕ) ∧ (𝐴 gcd 𝐵) = 1) → ((𝐴𝑘) gcd 𝐵) = 1) ↔ (((𝐴 ∈ ℕ ∧ 𝐵 ∈ ℕ) ∧ (𝐴 gcd 𝐵) = 1) → ((𝐴𝑛) gcd 𝐵) = 1)))
9 oveq2 7240 . . . . . . . 8 (𝑘 = (𝑛 + 1) → (𝐴𝑘) = (𝐴↑(𝑛 + 1)))
109oveq1d 7247 . . . . . . 7 (𝑘 = (𝑛 + 1) → ((𝐴𝑘) gcd 𝐵) = ((𝐴↑(𝑛 + 1)) gcd 𝐵))
1110eqeq1d 2740 . . . . . 6 (𝑘 = (𝑛 + 1) → (((𝐴𝑘) gcd 𝐵) = 1 ↔ ((𝐴↑(𝑛 + 1)) gcd 𝐵) = 1))
1211imbi2d 344 . . . . 5 (𝑘 = (𝑛 + 1) → ((((𝐴 ∈ ℕ ∧ 𝐵 ∈ ℕ) ∧ (𝐴 gcd 𝐵) = 1) → ((𝐴𝑘) gcd 𝐵) = 1) ↔ (((𝐴 ∈ ℕ ∧ 𝐵 ∈ ℕ) ∧ (𝐴 gcd 𝐵) = 1) → ((𝐴↑(𝑛 + 1)) gcd 𝐵) = 1)))
13 oveq2 7240 . . . . . . . 8 (𝑘 = 𝑁 → (𝐴𝑘) = (𝐴𝑁))
1413oveq1d 7247 . . . . . . 7 (𝑘 = 𝑁 → ((𝐴𝑘) gcd 𝐵) = ((𝐴𝑁) gcd 𝐵))
1514eqeq1d 2740 . . . . . 6 (𝑘 = 𝑁 → (((𝐴𝑘) gcd 𝐵) = 1 ↔ ((𝐴𝑁) gcd 𝐵) = 1))
1615imbi2d 344 . . . . 5 (𝑘 = 𝑁 → ((((𝐴 ∈ ℕ ∧ 𝐵 ∈ ℕ) ∧ (𝐴 gcd 𝐵) = 1) → ((𝐴𝑘) gcd 𝐵) = 1) ↔ (((𝐴 ∈ ℕ ∧ 𝐵 ∈ ℕ) ∧ (𝐴 gcd 𝐵) = 1) → ((𝐴𝑁) gcd 𝐵) = 1)))
17 nncn 11863 . . . . . . . . . 10 (𝐴 ∈ ℕ → 𝐴 ∈ ℂ)
1817exp1d 13739 . . . . . . . . 9 (𝐴 ∈ ℕ → (𝐴↑1) = 𝐴)
1918oveq1d 7247 . . . . . . . 8 (𝐴 ∈ ℕ → ((𝐴↑1) gcd 𝐵) = (𝐴 gcd 𝐵))
2019adantr 484 . . . . . . 7 ((𝐴 ∈ ℕ ∧ 𝐵 ∈ ℕ) → ((𝐴↑1) gcd 𝐵) = (𝐴 gcd 𝐵))
2120eqeq1d 2740 . . . . . 6 ((𝐴 ∈ ℕ ∧ 𝐵 ∈ ℕ) → (((𝐴↑1) gcd 𝐵) = 1 ↔ (𝐴 gcd 𝐵) = 1))
2221biimpar 481 . . . . 5 (((𝐴 ∈ ℕ ∧ 𝐵 ∈ ℕ) ∧ (𝐴 gcd 𝐵) = 1) → ((𝐴↑1) gcd 𝐵) = 1)
23 df-3an 1091 . . . . . . . . 9 ((𝐴 ∈ ℕ ∧ 𝐵 ∈ ℕ ∧ 𝑛 ∈ ℕ) ↔ ((𝐴 ∈ ℕ ∧ 𝐵 ∈ ℕ) ∧ 𝑛 ∈ ℕ))
24 simpl1 1193 . . . . . . . . . . . . . . . . 17 (((𝐴 ∈ ℕ ∧ 𝐵 ∈ ℕ ∧ 𝑛 ∈ ℕ) ∧ (𝐴 gcd 𝐵) = 1) → 𝐴 ∈ ℕ)
2524nncnd 11871 . . . . . . . . . . . . . . . 16 (((𝐴 ∈ ℕ ∧ 𝐵 ∈ ℕ ∧ 𝑛 ∈ ℕ) ∧ (𝐴 gcd 𝐵) = 1) → 𝐴 ∈ ℂ)
26 simpl3 1195 . . . . . . . . . . . . . . . . 17 (((𝐴 ∈ ℕ ∧ 𝐵 ∈ ℕ ∧ 𝑛 ∈ ℕ) ∧ (𝐴 gcd 𝐵) = 1) → 𝑛 ∈ ℕ)
2726nnnn0d 12175 . . . . . . . . . . . . . . . 16 (((𝐴 ∈ ℕ ∧ 𝐵 ∈ ℕ ∧ 𝑛 ∈ ℕ) ∧ (𝐴 gcd 𝐵) = 1) → 𝑛 ∈ ℕ0)
2825, 27expp1d 13745 . . . . . . . . . . . . . . 15 (((𝐴 ∈ ℕ ∧ 𝐵 ∈ ℕ ∧ 𝑛 ∈ ℕ) ∧ (𝐴 gcd 𝐵) = 1) → (𝐴↑(𝑛 + 1)) = ((𝐴𝑛) · 𝐴))
29 simp1 1138 . . . . . . . . . . . . . . . . . . . 20 ((𝐴 ∈ ℕ ∧ 𝐵 ∈ ℕ ∧ 𝑛 ∈ ℕ) → 𝐴 ∈ ℕ)
30 nnnn0 12122 . . . . . . . . . . . . . . . . . . . . 21 (𝑛 ∈ ℕ → 𝑛 ∈ ℕ0)
31303ad2ant3 1137 . . . . . . . . . . . . . . . . . . . 20 ((𝐴 ∈ ℕ ∧ 𝐵 ∈ ℕ ∧ 𝑛 ∈ ℕ) → 𝑛 ∈ ℕ0)
3229, 31nnexpcld 13840 . . . . . . . . . . . . . . . . . . 19 ((𝐴 ∈ ℕ ∧ 𝐵 ∈ ℕ ∧ 𝑛 ∈ ℕ) → (𝐴𝑛) ∈ ℕ)
3332nnzd 12306 . . . . . . . . . . . . . . . . . 18 ((𝐴 ∈ ℕ ∧ 𝐵 ∈ ℕ ∧ 𝑛 ∈ ℕ) → (𝐴𝑛) ∈ ℤ)
3433adantr 484 . . . . . . . . . . . . . . . . 17 (((𝐴 ∈ ℕ ∧ 𝐵 ∈ ℕ ∧ 𝑛 ∈ ℕ) ∧ (𝐴 gcd 𝐵) = 1) → (𝐴𝑛) ∈ ℤ)
3534zcnd 12308 . . . . . . . . . . . . . . . 16 (((𝐴 ∈ ℕ ∧ 𝐵 ∈ ℕ ∧ 𝑛 ∈ ℕ) ∧ (𝐴 gcd 𝐵) = 1) → (𝐴𝑛) ∈ ℂ)
3635, 25mulcomd 10879 . . . . . . . . . . . . . . 15 (((𝐴 ∈ ℕ ∧ 𝐵 ∈ ℕ ∧ 𝑛 ∈ ℕ) ∧ (𝐴 gcd 𝐵) = 1) → ((𝐴𝑛) · 𝐴) = (𝐴 · (𝐴𝑛)))
3728, 36eqtrd 2778 . . . . . . . . . . . . . 14 (((𝐴 ∈ ℕ ∧ 𝐵 ∈ ℕ ∧ 𝑛 ∈ ℕ) ∧ (𝐴 gcd 𝐵) = 1) → (𝐴↑(𝑛 + 1)) = (𝐴 · (𝐴𝑛)))
3837oveq2d 7248 . . . . . . . . . . . . 13 (((𝐴 ∈ ℕ ∧ 𝐵 ∈ ℕ ∧ 𝑛 ∈ ℕ) ∧ (𝐴 gcd 𝐵) = 1) → (𝐵 gcd (𝐴↑(𝑛 + 1))) = (𝐵 gcd (𝐴 · (𝐴𝑛))))
39 simpl2 1194 . . . . . . . . . . . . . 14 (((𝐴 ∈ ℕ ∧ 𝐵 ∈ ℕ ∧ 𝑛 ∈ ℕ) ∧ (𝐴 gcd 𝐵) = 1) → 𝐵 ∈ ℕ)
4032adantr 484 . . . . . . . . . . . . . 14 (((𝐴 ∈ ℕ ∧ 𝐵 ∈ ℕ ∧ 𝑛 ∈ ℕ) ∧ (𝐴 gcd 𝐵) = 1) → (𝐴𝑛) ∈ ℕ)
41 nnz 12224 . . . . . . . . . . . . . . . . . 18 (𝐴 ∈ ℕ → 𝐴 ∈ ℤ)
42413ad2ant1 1135 . . . . . . . . . . . . . . . . 17 ((𝐴 ∈ ℕ ∧ 𝐵 ∈ ℕ ∧ 𝑛 ∈ ℕ) → 𝐴 ∈ ℤ)
43 nnz 12224 . . . . . . . . . . . . . . . . . 18 (𝐵 ∈ ℕ → 𝐵 ∈ ℤ)
44433ad2ant2 1136 . . . . . . . . . . . . . . . . 17 ((𝐴 ∈ ℕ ∧ 𝐵 ∈ ℕ ∧ 𝑛 ∈ ℕ) → 𝐵 ∈ ℤ)
4542, 44gcdcomd 16101 . . . . . . . . . . . . . . . 16 ((𝐴 ∈ ℕ ∧ 𝐵 ∈ ℕ ∧ 𝑛 ∈ ℕ) → (𝐴 gcd 𝐵) = (𝐵 gcd 𝐴))
4645eqeq1d 2740 . . . . . . . . . . . . . . 15 ((𝐴 ∈ ℕ ∧ 𝐵 ∈ ℕ ∧ 𝑛 ∈ ℕ) → ((𝐴 gcd 𝐵) = 1 ↔ (𝐵 gcd 𝐴) = 1))
4746biimpa 480 . . . . . . . . . . . . . 14 (((𝐴 ∈ ℕ ∧ 𝐵 ∈ ℕ ∧ 𝑛 ∈ ℕ) ∧ (𝐴 gcd 𝐵) = 1) → (𝐵 gcd 𝐴) = 1)
48 rpmulgcd 16146 . . . . . . . . . . . . . 14 (((𝐵 ∈ ℕ ∧ 𝐴 ∈ ℕ ∧ (𝐴𝑛) ∈ ℕ) ∧ (𝐵 gcd 𝐴) = 1) → (𝐵 gcd (𝐴 · (𝐴𝑛))) = (𝐵 gcd (𝐴𝑛)))
4939, 24, 40, 47, 48syl31anc 1375 . . . . . . . . . . . . 13 (((𝐴 ∈ ℕ ∧ 𝐵 ∈ ℕ ∧ 𝑛 ∈ ℕ) ∧ (𝐴 gcd 𝐵) = 1) → (𝐵 gcd (𝐴 · (𝐴𝑛))) = (𝐵 gcd (𝐴𝑛)))
5038, 49eqtrd 2778 . . . . . . . . . . . 12 (((𝐴 ∈ ℕ ∧ 𝐵 ∈ ℕ ∧ 𝑛 ∈ ℕ) ∧ (𝐴 gcd 𝐵) = 1) → (𝐵 gcd (𝐴↑(𝑛 + 1))) = (𝐵 gcd (𝐴𝑛)))
51 peano2nn 11867 . . . . . . . . . . . . . . . . . 18 (𝑛 ∈ ℕ → (𝑛 + 1) ∈ ℕ)
52513ad2ant3 1137 . . . . . . . . . . . . . . . . 17 ((𝐴 ∈ ℕ ∧ 𝐵 ∈ ℕ ∧ 𝑛 ∈ ℕ) → (𝑛 + 1) ∈ ℕ)
5352adantr 484 . . . . . . . . . . . . . . . 16 (((𝐴 ∈ ℕ ∧ 𝐵 ∈ ℕ ∧ 𝑛 ∈ ℕ) ∧ (𝐴 gcd 𝐵) = 1) → (𝑛 + 1) ∈ ℕ)
5453nnnn0d 12175 . . . . . . . . . . . . . . 15 (((𝐴 ∈ ℕ ∧ 𝐵 ∈ ℕ ∧ 𝑛 ∈ ℕ) ∧ (𝐴 gcd 𝐵) = 1) → (𝑛 + 1) ∈ ℕ0)
5524, 54nnexpcld 13840 . . . . . . . . . . . . . 14 (((𝐴 ∈ ℕ ∧ 𝐵 ∈ ℕ ∧ 𝑛 ∈ ℕ) ∧ (𝐴 gcd 𝐵) = 1) → (𝐴↑(𝑛 + 1)) ∈ ℕ)
5655nnzd 12306 . . . . . . . . . . . . 13 (((𝐴 ∈ ℕ ∧ 𝐵 ∈ ℕ ∧ 𝑛 ∈ ℕ) ∧ (𝐴 gcd 𝐵) = 1) → (𝐴↑(𝑛 + 1)) ∈ ℤ)
5744adantr 484 . . . . . . . . . . . . 13 (((𝐴 ∈ ℕ ∧ 𝐵 ∈ ℕ ∧ 𝑛 ∈ ℕ) ∧ (𝐴 gcd 𝐵) = 1) → 𝐵 ∈ ℤ)
5856, 57gcdcomd 16101 . . . . . . . . . . . 12 (((𝐴 ∈ ℕ ∧ 𝐵 ∈ ℕ ∧ 𝑛 ∈ ℕ) ∧ (𝐴 gcd 𝐵) = 1) → ((𝐴↑(𝑛 + 1)) gcd 𝐵) = (𝐵 gcd (𝐴↑(𝑛 + 1))))
5934, 57gcdcomd 16101 . . . . . . . . . . . 12 (((𝐴 ∈ ℕ ∧ 𝐵 ∈ ℕ ∧ 𝑛 ∈ ℕ) ∧ (𝐴 gcd 𝐵) = 1) → ((𝐴𝑛) gcd 𝐵) = (𝐵 gcd (𝐴𝑛)))
6050, 58, 593eqtr4d 2788 . . . . . . . . . . 11 (((𝐴 ∈ ℕ ∧ 𝐵 ∈ ℕ ∧ 𝑛 ∈ ℕ) ∧ (𝐴 gcd 𝐵) = 1) → ((𝐴↑(𝑛 + 1)) gcd 𝐵) = ((𝐴𝑛) gcd 𝐵))
6160eqeq1d 2740 . . . . . . . . . 10 (((𝐴 ∈ ℕ ∧ 𝐵 ∈ ℕ ∧ 𝑛 ∈ ℕ) ∧ (𝐴 gcd 𝐵) = 1) → (((𝐴↑(𝑛 + 1)) gcd 𝐵) = 1 ↔ ((𝐴𝑛) gcd 𝐵) = 1))
6261biimprd 251 . . . . . . . . 9 (((𝐴 ∈ ℕ ∧ 𝐵 ∈ ℕ ∧ 𝑛 ∈ ℕ) ∧ (𝐴 gcd 𝐵) = 1) → (((𝐴𝑛) gcd 𝐵) = 1 → ((𝐴↑(𝑛 + 1)) gcd 𝐵) = 1))
6323, 62sylanbr 585 . . . . . . . 8 ((((𝐴 ∈ ℕ ∧ 𝐵 ∈ ℕ) ∧ 𝑛 ∈ ℕ) ∧ (𝐴 gcd 𝐵) = 1) → (((𝐴𝑛) gcd 𝐵) = 1 → ((𝐴↑(𝑛 + 1)) gcd 𝐵) = 1))
6463an32s 652 . . . . . . 7 ((((𝐴 ∈ ℕ ∧ 𝐵 ∈ ℕ) ∧ (𝐴 gcd 𝐵) = 1) ∧ 𝑛 ∈ ℕ) → (((𝐴𝑛) gcd 𝐵) = 1 → ((𝐴↑(𝑛 + 1)) gcd 𝐵) = 1))
6564expcom 417 . . . . . 6 (𝑛 ∈ ℕ → (((𝐴 ∈ ℕ ∧ 𝐵 ∈ ℕ) ∧ (𝐴 gcd 𝐵) = 1) → (((𝐴𝑛) gcd 𝐵) = 1 → ((𝐴↑(𝑛 + 1)) gcd 𝐵) = 1)))
6665a2d 29 . . . . 5 (𝑛 ∈ ℕ → ((((𝐴 ∈ ℕ ∧ 𝐵 ∈ ℕ) ∧ (𝐴 gcd 𝐵) = 1) → ((𝐴𝑛) gcd 𝐵) = 1) → (((𝐴 ∈ ℕ ∧ 𝐵 ∈ ℕ) ∧ (𝐴 gcd 𝐵) = 1) → ((𝐴↑(𝑛 + 1)) gcd 𝐵) = 1)))
674, 8, 12, 16, 22, 66nnind 11873 . . . 4 (𝑁 ∈ ℕ → (((𝐴 ∈ ℕ ∧ 𝐵 ∈ ℕ) ∧ (𝐴 gcd 𝐵) = 1) → ((𝐴𝑁) gcd 𝐵) = 1))
6867expd 419 . . 3 (𝑁 ∈ ℕ → ((𝐴 ∈ ℕ ∧ 𝐵 ∈ ℕ) → ((𝐴 gcd 𝐵) = 1 → ((𝐴𝑁) gcd 𝐵) = 1)))
6968com12 32 . 2 ((𝐴 ∈ ℕ ∧ 𝐵 ∈ ℕ) → (𝑁 ∈ ℕ → ((𝐴 gcd 𝐵) = 1 → ((𝐴𝑁) gcd 𝐵) = 1)))
70693impia 1119 1 ((𝐴 ∈ ℕ ∧ 𝐵 ∈ ℕ ∧ 𝑁 ∈ ℕ) → ((𝐴 gcd 𝐵) = 1 → ((𝐴𝑁) gcd 𝐵) = 1))
Colors of variables: wff setvar class
Syntax hints:  wi 4  wa 399  w3a 1089   = wceq 1543  wcel 2111  (class class class)co 7232  1c1 10755   + caddc 10757   · cmul 10759  cn 11855  0cn0 12115  cz 12201  cexp 13662   gcd cgcd 16081
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1803  ax-4 1817  ax-5 1918  ax-6 1976  ax-7 2016  ax-8 2113  ax-9 2121  ax-10 2142  ax-11 2159  ax-12 2176  ax-ext 2709  ax-sep 5207  ax-nul 5214  ax-pow 5273  ax-pr 5337  ax-un 7542  ax-cnex 10810  ax-resscn 10811  ax-1cn 10812  ax-icn 10813  ax-addcl 10814  ax-addrcl 10815  ax-mulcl 10816  ax-mulrcl 10817  ax-mulcom 10818  ax-addass 10819  ax-mulass 10820  ax-distr 10821  ax-i2m1 10822  ax-1ne0 10823  ax-1rid 10824  ax-rnegex 10825  ax-rrecex 10826  ax-cnre 10827  ax-pre-lttri 10828  ax-pre-lttrn 10829  ax-pre-ltadd 10830  ax-pre-mulgt0 10831  ax-pre-sup 10832
This theorem depends on definitions:  df-bi 210  df-an 400  df-or 848  df-3or 1090  df-3an 1091  df-tru 1546  df-fal 1556  df-ex 1788  df-nf 1792  df-sb 2072  df-mo 2540  df-eu 2569  df-clab 2716  df-cleq 2730  df-clel 2817  df-nfc 2887  df-ne 2942  df-nel 3048  df-ral 3067  df-rex 3068  df-reu 3069  df-rmo 3070  df-rab 3071  df-v 3423  df-sbc 3710  df-csb 3827  df-dif 3884  df-un 3886  df-in 3888  df-ss 3898  df-pss 3900  df-nul 4253  df-if 4455  df-pw 4530  df-sn 4557  df-pr 4559  df-tp 4561  df-op 4563  df-uni 4835  df-iun 4921  df-br 5069  df-opab 5131  df-mpt 5151  df-tr 5177  df-id 5470  df-eprel 5475  df-po 5483  df-so 5484  df-fr 5524  df-we 5526  df-xp 5572  df-rel 5573  df-cnv 5574  df-co 5575  df-dm 5576  df-rn 5577  df-res 5578  df-ima 5579  df-pred 6176  df-ord 6234  df-on 6235  df-lim 6236  df-suc 6237  df-iota 6356  df-fun 6400  df-fn 6401  df-f 6402  df-f1 6403  df-fo 6404  df-f1o 6405  df-fv 6406  df-riota 7189  df-ov 7235  df-oprab 7236  df-mpo 7237  df-om 7664  df-2nd 7781  df-wrecs 8068  df-recs 8129  df-rdg 8167  df-er 8412  df-en 8648  df-dom 8649  df-sdom 8650  df-sup 9083  df-inf 9084  df-pnf 10894  df-mnf 10895  df-xr 10896  df-ltxr 10897  df-le 10898  df-sub 11089  df-neg 11090  df-div 11515  df-nn 11856  df-2 11918  df-3 11919  df-n0 12116  df-z 12202  df-uz 12464  df-rp 12612  df-fl 13392  df-mod 13470  df-seq 13602  df-exp 13663  df-cj 14690  df-re 14691  df-im 14692  df-sqrt 14826  df-abs 14827  df-dvds 15844  df-gcd 16082
This theorem is referenced by:  rprpwr  16148  rppwr  16149  logbgcd1irr  25704  lgsne0  26243  2sqlem8  26334  flt4lem5a  40225  flt4lem5b  40226  flt4lem5c  40227  flt4lem5d  40228  flt4lem5e  40229
  Copyright terms: Public domain W3C validator