Users' Mathboxes Mathbox for Steven Nguyen < Previous   Next >
Nearby theorems
Mirrors  >  Home  >  MPE Home  >  Th. List  >   Mathboxes  >  nn0expgcd Structured version   Visualization version   GIF version

Theorem nn0expgcd 40256
Description: Exponentiation distributes over GCD. nn0gcdsq 16384 extended to nonnegative exponents. expgcd 40255 extended to nonnegative bases. (Contributed by Steven Nguyen, 5-Apr-2023.)
Assertion
Ref Expression
nn0expgcd ((𝐴 ∈ ℕ0𝐵 ∈ ℕ0𝑁 ∈ ℕ0) → ((𝐴 gcd 𝐵)↑𝑁) = ((𝐴𝑁) gcd (𝐵𝑁)))

Proof of Theorem nn0expgcd
StepHypRef Expression
1 elnn0 12165 . . 3 (𝐴 ∈ ℕ0 ↔ (𝐴 ∈ ℕ ∨ 𝐴 = 0))
2 elnn0 12165 . . 3 (𝐵 ∈ ℕ0 ↔ (𝐵 ∈ ℕ ∨ 𝐵 = 0))
3 expgcd 40255 . . . . 5 ((𝐴 ∈ ℕ ∧ 𝐵 ∈ ℕ ∧ 𝑁 ∈ ℕ0) → ((𝐴 gcd 𝐵)↑𝑁) = ((𝐴𝑁) gcd (𝐵𝑁)))
433expia 1119 . . . 4 ((𝐴 ∈ ℕ ∧ 𝐵 ∈ ℕ) → (𝑁 ∈ ℕ0 → ((𝐴 gcd 𝐵)↑𝑁) = ((𝐴𝑁) gcd (𝐵𝑁))))
5 elnn0 12165 . . . . 5 (𝑁 ∈ ℕ0 ↔ (𝑁 ∈ ℕ ∨ 𝑁 = 0))
6 0exp 13746 . . . . . . . . . . 11 (𝑁 ∈ ℕ → (0↑𝑁) = 0)
763ad2ant3 1133 . . . . . . . . . 10 ((𝐴 = 0 ∧ 𝐵 ∈ ℕ ∧ 𝑁 ∈ ℕ) → (0↑𝑁) = 0)
87oveq1d 7270 . . . . . . . . 9 ((𝐴 = 0 ∧ 𝐵 ∈ ℕ ∧ 𝑁 ∈ ℕ) → ((0↑𝑁) gcd (𝐵𝑁)) = (0 gcd (𝐵𝑁)))
9 simp2 1135 . . . . . . . . . . . 12 ((𝐴 = 0 ∧ 𝐵 ∈ ℕ ∧ 𝑁 ∈ ℕ) → 𝐵 ∈ ℕ)
10 nnnn0 12170 . . . . . . . . . . . . 13 (𝑁 ∈ ℕ → 𝑁 ∈ ℕ0)
11103ad2ant3 1133 . . . . . . . . . . . 12 ((𝐴 = 0 ∧ 𝐵 ∈ ℕ ∧ 𝑁 ∈ ℕ) → 𝑁 ∈ ℕ0)
129, 11nnexpcld 13888 . . . . . . . . . . 11 ((𝐴 = 0 ∧ 𝐵 ∈ ℕ ∧ 𝑁 ∈ ℕ) → (𝐵𝑁) ∈ ℕ)
1312nnzd 12354 . . . . . . . . . 10 ((𝐴 = 0 ∧ 𝐵 ∈ ℕ ∧ 𝑁 ∈ ℕ) → (𝐵𝑁) ∈ ℤ)
14 gcd0id 16154 . . . . . . . . . 10 ((𝐵𝑁) ∈ ℤ → (0 gcd (𝐵𝑁)) = (abs‘(𝐵𝑁)))
1513, 14syl 17 . . . . . . . . 9 ((𝐴 = 0 ∧ 𝐵 ∈ ℕ ∧ 𝑁 ∈ ℕ) → (0 gcd (𝐵𝑁)) = (abs‘(𝐵𝑁)))
1612nnred 11918 . . . . . . . . . 10 ((𝐴 = 0 ∧ 𝐵 ∈ ℕ ∧ 𝑁 ∈ ℕ) → (𝐵𝑁) ∈ ℝ)
17 0red 10909 . . . . . . . . . . 11 ((𝐴 = 0 ∧ 𝐵 ∈ ℕ ∧ 𝑁 ∈ ℕ) → 0 ∈ ℝ)
1812nngt0d 11952 . . . . . . . . . . 11 ((𝐴 = 0 ∧ 𝐵 ∈ ℕ ∧ 𝑁 ∈ ℕ) → 0 < (𝐵𝑁))
1917, 16, 18ltled 11053 . . . . . . . . . 10 ((𝐴 = 0 ∧ 𝐵 ∈ ℕ ∧ 𝑁 ∈ ℕ) → 0 ≤ (𝐵𝑁))
2016, 19absidd 15062 . . . . . . . . 9 ((𝐴 = 0 ∧ 𝐵 ∈ ℕ ∧ 𝑁 ∈ ℕ) → (abs‘(𝐵𝑁)) = (𝐵𝑁))
218, 15, 203eqtrrd 2783 . . . . . . . 8 ((𝐴 = 0 ∧ 𝐵 ∈ ℕ ∧ 𝑁 ∈ ℕ) → (𝐵𝑁) = ((0↑𝑁) gcd (𝐵𝑁)))
22 oveq1 7262 . . . . . . . . . . 11 (𝐴 = 0 → (𝐴 gcd 𝐵) = (0 gcd 𝐵))
23223ad2ant1 1131 . . . . . . . . . 10 ((𝐴 = 0 ∧ 𝐵 ∈ ℕ ∧ 𝑁 ∈ ℕ) → (𝐴 gcd 𝐵) = (0 gcd 𝐵))
24 nnz 12272 . . . . . . . . . . . 12 (𝐵 ∈ ℕ → 𝐵 ∈ ℤ)
25243ad2ant2 1132 . . . . . . . . . . 11 ((𝐴 = 0 ∧ 𝐵 ∈ ℕ ∧ 𝑁 ∈ ℕ) → 𝐵 ∈ ℤ)
26 gcd0id 16154 . . . . . . . . . . 11 (𝐵 ∈ ℤ → (0 gcd 𝐵) = (abs‘𝐵))
2725, 26syl 17 . . . . . . . . . 10 ((𝐴 = 0 ∧ 𝐵 ∈ ℕ ∧ 𝑁 ∈ ℕ) → (0 gcd 𝐵) = (abs‘𝐵))
28 nnre 11910 . . . . . . . . . . . 12 (𝐵 ∈ ℕ → 𝐵 ∈ ℝ)
29 0red 10909 . . . . . . . . . . . . 13 (𝐵 ∈ ℕ → 0 ∈ ℝ)
30 nngt0 11934 . . . . . . . . . . . . 13 (𝐵 ∈ ℕ → 0 < 𝐵)
3129, 28, 30ltled 11053 . . . . . . . . . . . 12 (𝐵 ∈ ℕ → 0 ≤ 𝐵)
3228, 31absidd 15062 . . . . . . . . . . 11 (𝐵 ∈ ℕ → (abs‘𝐵) = 𝐵)
33323ad2ant2 1132 . . . . . . . . . 10 ((𝐴 = 0 ∧ 𝐵 ∈ ℕ ∧ 𝑁 ∈ ℕ) → (abs‘𝐵) = 𝐵)
3423, 27, 333eqtrd 2782 . . . . . . . . 9 ((𝐴 = 0 ∧ 𝐵 ∈ ℕ ∧ 𝑁 ∈ ℕ) → (𝐴 gcd 𝐵) = 𝐵)
3534oveq1d 7270 . . . . . . . 8 ((𝐴 = 0 ∧ 𝐵 ∈ ℕ ∧ 𝑁 ∈ ℕ) → ((𝐴 gcd 𝐵)↑𝑁) = (𝐵𝑁))
36 oveq1 7262 . . . . . . . . . 10 (𝐴 = 0 → (𝐴𝑁) = (0↑𝑁))
37363ad2ant1 1131 . . . . . . . . 9 ((𝐴 = 0 ∧ 𝐵 ∈ ℕ ∧ 𝑁 ∈ ℕ) → (𝐴𝑁) = (0↑𝑁))
3837oveq1d 7270 . . . . . . . 8 ((𝐴 = 0 ∧ 𝐵 ∈ ℕ ∧ 𝑁 ∈ ℕ) → ((𝐴𝑁) gcd (𝐵𝑁)) = ((0↑𝑁) gcd (𝐵𝑁)))
3921, 35, 383eqtr4d 2788 . . . . . . 7 ((𝐴 = 0 ∧ 𝐵 ∈ ℕ ∧ 𝑁 ∈ ℕ) → ((𝐴 gcd 𝐵)↑𝑁) = ((𝐴𝑁) gcd (𝐵𝑁)))
40393expia 1119 . . . . . 6 ((𝐴 = 0 ∧ 𝐵 ∈ ℕ) → (𝑁 ∈ ℕ → ((𝐴 gcd 𝐵)↑𝑁) = ((𝐴𝑁) gcd (𝐵𝑁))))
41 1z 12280 . . . . . . . . . 10 1 ∈ ℤ
42 gcd1 16163 . . . . . . . . . 10 (1 ∈ ℤ → (1 gcd 1) = 1)
4341, 42ax-mp 5 . . . . . . . . 9 (1 gcd 1) = 1
4443eqcomi 2747 . . . . . . . 8 1 = (1 gcd 1)
45 simp1 1134 . . . . . . . . . . . 12 ((𝐴 = 0 ∧ 𝐵 ∈ ℕ ∧ 𝑁 = 0) → 𝐴 = 0)
4645oveq1d 7270 . . . . . . . . . . 11 ((𝐴 = 0 ∧ 𝐵 ∈ ℕ ∧ 𝑁 = 0) → (𝐴 gcd 𝐵) = (0 gcd 𝐵))
47 simp2 1135 . . . . . . . . . . . . 13 ((𝐴 = 0 ∧ 𝐵 ∈ ℕ ∧ 𝑁 = 0) → 𝐵 ∈ ℕ)
4847nnzd 12354 . . . . . . . . . . . 12 ((𝐴 = 0 ∧ 𝐵 ∈ ℕ ∧ 𝑁 = 0) → 𝐵 ∈ ℤ)
4948, 26syl 17 . . . . . . . . . . 11 ((𝐴 = 0 ∧ 𝐵 ∈ ℕ ∧ 𝑁 = 0) → (0 gcd 𝐵) = (abs‘𝐵))
50323ad2ant2 1132 . . . . . . . . . . 11 ((𝐴 = 0 ∧ 𝐵 ∈ ℕ ∧ 𝑁 = 0) → (abs‘𝐵) = 𝐵)
5146, 49, 503eqtrd 2782 . . . . . . . . . 10 ((𝐴 = 0 ∧ 𝐵 ∈ ℕ ∧ 𝑁 = 0) → (𝐴 gcd 𝐵) = 𝐵)
52 simp3 1136 . . . . . . . . . 10 ((𝐴 = 0 ∧ 𝐵 ∈ ℕ ∧ 𝑁 = 0) → 𝑁 = 0)
5351, 52oveq12d 7273 . . . . . . . . 9 ((𝐴 = 0 ∧ 𝐵 ∈ ℕ ∧ 𝑁 = 0) → ((𝐴 gcd 𝐵)↑𝑁) = (𝐵↑0))
5447nncnd 11919 . . . . . . . . . 10 ((𝐴 = 0 ∧ 𝐵 ∈ ℕ ∧ 𝑁 = 0) → 𝐵 ∈ ℂ)
5554exp0d 13786 . . . . . . . . 9 ((𝐴 = 0 ∧ 𝐵 ∈ ℕ ∧ 𝑁 = 0) → (𝐵↑0) = 1)
5653, 55eqtrd 2778 . . . . . . . 8 ((𝐴 = 0 ∧ 𝐵 ∈ ℕ ∧ 𝑁 = 0) → ((𝐴 gcd 𝐵)↑𝑁) = 1)
5745, 52oveq12d 7273 . . . . . . . . . 10 ((𝐴 = 0 ∧ 𝐵 ∈ ℕ ∧ 𝑁 = 0) → (𝐴𝑁) = (0↑0))
58 0exp0e1 13715 . . . . . . . . . . 11 (0↑0) = 1
5958a1i 11 . . . . . . . . . 10 ((𝐴 = 0 ∧ 𝐵 ∈ ℕ ∧ 𝑁 = 0) → (0↑0) = 1)
6057, 59eqtrd 2778 . . . . . . . . 9 ((𝐴 = 0 ∧ 𝐵 ∈ ℕ ∧ 𝑁 = 0) → (𝐴𝑁) = 1)
6152oveq2d 7271 . . . . . . . . . 10 ((𝐴 = 0 ∧ 𝐵 ∈ ℕ ∧ 𝑁 = 0) → (𝐵𝑁) = (𝐵↑0))
6261, 55eqtrd 2778 . . . . . . . . 9 ((𝐴 = 0 ∧ 𝐵 ∈ ℕ ∧ 𝑁 = 0) → (𝐵𝑁) = 1)
6360, 62oveq12d 7273 . . . . . . . 8 ((𝐴 = 0 ∧ 𝐵 ∈ ℕ ∧ 𝑁 = 0) → ((𝐴𝑁) gcd (𝐵𝑁)) = (1 gcd 1))
6444, 56, 633eqtr4a 2805 . . . . . . 7 ((𝐴 = 0 ∧ 𝐵 ∈ ℕ ∧ 𝑁 = 0) → ((𝐴 gcd 𝐵)↑𝑁) = ((𝐴𝑁) gcd (𝐵𝑁)))
65643expia 1119 . . . . . 6 ((𝐴 = 0 ∧ 𝐵 ∈ ℕ) → (𝑁 = 0 → ((𝐴 gcd 𝐵)↑𝑁) = ((𝐴𝑁) gcd (𝐵𝑁))))
6640, 65jaod 855 . . . . 5 ((𝐴 = 0 ∧ 𝐵 ∈ ℕ) → ((𝑁 ∈ ℕ ∨ 𝑁 = 0) → ((𝐴 gcd 𝐵)↑𝑁) = ((𝐴𝑁) gcd (𝐵𝑁))))
675, 66syl5bi 241 . . . 4 ((𝐴 = 0 ∧ 𝐵 ∈ ℕ) → (𝑁 ∈ ℕ0 → ((𝐴 gcd 𝐵)↑𝑁) = ((𝐴𝑁) gcd (𝐵𝑁))))
68 nnnn0 12170 . . . . . . . . . . 11 (𝐴 ∈ ℕ → 𝐴 ∈ ℕ0)
69683ad2ant1 1131 . . . . . . . . . 10 ((𝐴 ∈ ℕ ∧ 𝐵 = 0 ∧ 𝑁 ∈ ℕ) → 𝐴 ∈ ℕ0)
70103ad2ant3 1133 . . . . . . . . . 10 ((𝐴 ∈ ℕ ∧ 𝐵 = 0 ∧ 𝑁 ∈ ℕ) → 𝑁 ∈ ℕ0)
7169, 70nn0expcld 13889 . . . . . . . . 9 ((𝐴 ∈ ℕ ∧ 𝐵 = 0 ∧ 𝑁 ∈ ℕ) → (𝐴𝑁) ∈ ℕ0)
72 nn0gcdid0 16156 . . . . . . . . 9 ((𝐴𝑁) ∈ ℕ0 → ((𝐴𝑁) gcd 0) = (𝐴𝑁))
7371, 72syl 17 . . . . . . . 8 ((𝐴 ∈ ℕ ∧ 𝐵 = 0 ∧ 𝑁 ∈ ℕ) → ((𝐴𝑁) gcd 0) = (𝐴𝑁))
74 simp2 1135 . . . . . . . . . . 11 ((𝐴 ∈ ℕ ∧ 𝐵 = 0 ∧ 𝑁 ∈ ℕ) → 𝐵 = 0)
7574oveq1d 7270 . . . . . . . . . 10 ((𝐴 ∈ ℕ ∧ 𝐵 = 0 ∧ 𝑁 ∈ ℕ) → (𝐵𝑁) = (0↑𝑁))
7663ad2ant3 1133 . . . . . . . . . 10 ((𝐴 ∈ ℕ ∧ 𝐵 = 0 ∧ 𝑁 ∈ ℕ) → (0↑𝑁) = 0)
7775, 76eqtrd 2778 . . . . . . . . 9 ((𝐴 ∈ ℕ ∧ 𝐵 = 0 ∧ 𝑁 ∈ ℕ) → (𝐵𝑁) = 0)
7877oveq2d 7271 . . . . . . . 8 ((𝐴 ∈ ℕ ∧ 𝐵 = 0 ∧ 𝑁 ∈ ℕ) → ((𝐴𝑁) gcd (𝐵𝑁)) = ((𝐴𝑁) gcd 0))
7974oveq2d 7271 . . . . . . . . . 10 ((𝐴 ∈ ℕ ∧ 𝐵 = 0 ∧ 𝑁 ∈ ℕ) → (𝐴 gcd 𝐵) = (𝐴 gcd 0))
80 nn0gcdid0 16156 . . . . . . . . . . . 12 (𝐴 ∈ ℕ0 → (𝐴 gcd 0) = 𝐴)
8168, 80syl 17 . . . . . . . . . . 11 (𝐴 ∈ ℕ → (𝐴 gcd 0) = 𝐴)
82813ad2ant1 1131 . . . . . . . . . 10 ((𝐴 ∈ ℕ ∧ 𝐵 = 0 ∧ 𝑁 ∈ ℕ) → (𝐴 gcd 0) = 𝐴)
8379, 82eqtrd 2778 . . . . . . . . 9 ((𝐴 ∈ ℕ ∧ 𝐵 = 0 ∧ 𝑁 ∈ ℕ) → (𝐴 gcd 𝐵) = 𝐴)
8483oveq1d 7270 . . . . . . . 8 ((𝐴 ∈ ℕ ∧ 𝐵 = 0 ∧ 𝑁 ∈ ℕ) → ((𝐴 gcd 𝐵)↑𝑁) = (𝐴𝑁))
8573, 78, 843eqtr4rd 2789 . . . . . . 7 ((𝐴 ∈ ℕ ∧ 𝐵 = 0 ∧ 𝑁 ∈ ℕ) → ((𝐴 gcd 𝐵)↑𝑁) = ((𝐴𝑁) gcd (𝐵𝑁)))
86853expia 1119 . . . . . 6 ((𝐴 ∈ ℕ ∧ 𝐵 = 0) → (𝑁 ∈ ℕ → ((𝐴 gcd 𝐵)↑𝑁) = ((𝐴𝑁) gcd (𝐵𝑁))))
87 nncn 11911 . . . . . . . . . . . 12 (𝐴 ∈ ℕ → 𝐴 ∈ ℂ)
8887exp0d 13786 . . . . . . . . . . 11 (𝐴 ∈ ℕ → (𝐴↑0) = 1)
8988, 43eqtr4di 2797 . . . . . . . . . 10 (𝐴 ∈ ℕ → (𝐴↑0) = (1 gcd 1))
9081oveq1d 7270 . . . . . . . . . 10 (𝐴 ∈ ℕ → ((𝐴 gcd 0)↑0) = (𝐴↑0))
9158a1i 11 . . . . . . . . . . 11 (𝐴 ∈ ℕ → (0↑0) = 1)
9288, 91oveq12d 7273 . . . . . . . . . 10 (𝐴 ∈ ℕ → ((𝐴↑0) gcd (0↑0)) = (1 gcd 1))
9389, 90, 923eqtr4d 2788 . . . . . . . . 9 (𝐴 ∈ ℕ → ((𝐴 gcd 0)↑0) = ((𝐴↑0) gcd (0↑0)))
94933ad2ant1 1131 . . . . . . . 8 ((𝐴 ∈ ℕ ∧ 𝐵 = 0 ∧ 𝑁 = 0) → ((𝐴 gcd 0)↑0) = ((𝐴↑0) gcd (0↑0)))
95 simp2 1135 . . . . . . . . . 10 ((𝐴 ∈ ℕ ∧ 𝐵 = 0 ∧ 𝑁 = 0) → 𝐵 = 0)
9695oveq2d 7271 . . . . . . . . 9 ((𝐴 ∈ ℕ ∧ 𝐵 = 0 ∧ 𝑁 = 0) → (𝐴 gcd 𝐵) = (𝐴 gcd 0))
97 simp3 1136 . . . . . . . . 9 ((𝐴 ∈ ℕ ∧ 𝐵 = 0 ∧ 𝑁 = 0) → 𝑁 = 0)
9896, 97oveq12d 7273 . . . . . . . 8 ((𝐴 ∈ ℕ ∧ 𝐵 = 0 ∧ 𝑁 = 0) → ((𝐴 gcd 𝐵)↑𝑁) = ((𝐴 gcd 0)↑0))
9997oveq2d 7271 . . . . . . . . 9 ((𝐴 ∈ ℕ ∧ 𝐵 = 0 ∧ 𝑁 = 0) → (𝐴𝑁) = (𝐴↑0))
10095, 97oveq12d 7273 . . . . . . . . 9 ((𝐴 ∈ ℕ ∧ 𝐵 = 0 ∧ 𝑁 = 0) → (𝐵𝑁) = (0↑0))
10199, 100oveq12d 7273 . . . . . . . 8 ((𝐴 ∈ ℕ ∧ 𝐵 = 0 ∧ 𝑁 = 0) → ((𝐴𝑁) gcd (𝐵𝑁)) = ((𝐴↑0) gcd (0↑0)))
10294, 98, 1013eqtr4d 2788 . . . . . . 7 ((𝐴 ∈ ℕ ∧ 𝐵 = 0 ∧ 𝑁 = 0) → ((𝐴 gcd 𝐵)↑𝑁) = ((𝐴𝑁) gcd (𝐵𝑁)))
1031023expia 1119 . . . . . 6 ((𝐴 ∈ ℕ ∧ 𝐵 = 0) → (𝑁 = 0 → ((𝐴 gcd 𝐵)↑𝑁) = ((𝐴𝑁) gcd (𝐵𝑁))))
10486, 103jaod 855 . . . . 5 ((𝐴 ∈ ℕ ∧ 𝐵 = 0) → ((𝑁 ∈ ℕ ∨ 𝑁 = 0) → ((𝐴 gcd 𝐵)↑𝑁) = ((𝐴𝑁) gcd (𝐵𝑁))))
1055, 104syl5bi 241 . . . 4 ((𝐴 ∈ ℕ ∧ 𝐵 = 0) → (𝑁 ∈ ℕ0 → ((𝐴 gcd 𝐵)↑𝑁) = ((𝐴𝑁) gcd (𝐵𝑁))))
106 gcd0val 16132 . . . . . . . . . . 11 (0 gcd 0) = 0
1076, 106eqtr4di 2797 . . . . . . . . . 10 (𝑁 ∈ ℕ → (0↑𝑁) = (0 gcd 0))
108106a1i 11 . . . . . . . . . . 11 (𝑁 ∈ ℕ → (0 gcd 0) = 0)
109108oveq1d 7270 . . . . . . . . . 10 (𝑁 ∈ ℕ → ((0 gcd 0)↑𝑁) = (0↑𝑁))
1106, 6oveq12d 7273 . . . . . . . . . 10 (𝑁 ∈ ℕ → ((0↑𝑁) gcd (0↑𝑁)) = (0 gcd 0))
111107, 109, 1103eqtr4d 2788 . . . . . . . . 9 (𝑁 ∈ ℕ → ((0 gcd 0)↑𝑁) = ((0↑𝑁) gcd (0↑𝑁)))
1121113ad2ant3 1133 . . . . . . . 8 ((𝐴 = 0 ∧ 𝐵 = 0 ∧ 𝑁 ∈ ℕ) → ((0 gcd 0)↑𝑁) = ((0↑𝑁) gcd (0↑𝑁)))
113 simp1 1134 . . . . . . . . . 10 ((𝐴 = 0 ∧ 𝐵 = 0 ∧ 𝑁 ∈ ℕ) → 𝐴 = 0)
114 simp2 1135 . . . . . . . . . 10 ((𝐴 = 0 ∧ 𝐵 = 0 ∧ 𝑁 ∈ ℕ) → 𝐵 = 0)
115113, 114oveq12d 7273 . . . . . . . . 9 ((𝐴 = 0 ∧ 𝐵 = 0 ∧ 𝑁 ∈ ℕ) → (𝐴 gcd 𝐵) = (0 gcd 0))
116115oveq1d 7270 . . . . . . . 8 ((𝐴 = 0 ∧ 𝐵 = 0 ∧ 𝑁 ∈ ℕ) → ((𝐴 gcd 𝐵)↑𝑁) = ((0 gcd 0)↑𝑁))
117113oveq1d 7270 . . . . . . . . 9 ((𝐴 = 0 ∧ 𝐵 = 0 ∧ 𝑁 ∈ ℕ) → (𝐴𝑁) = (0↑𝑁))
118114oveq1d 7270 . . . . . . . . 9 ((𝐴 = 0 ∧ 𝐵 = 0 ∧ 𝑁 ∈ ℕ) → (𝐵𝑁) = (0↑𝑁))
119117, 118oveq12d 7273 . . . . . . . 8 ((𝐴 = 0 ∧ 𝐵 = 0 ∧ 𝑁 ∈ ℕ) → ((𝐴𝑁) gcd (𝐵𝑁)) = ((0↑𝑁) gcd (0↑𝑁)))
120112, 116, 1193eqtr4d 2788 . . . . . . 7 ((𝐴 = 0 ∧ 𝐵 = 0 ∧ 𝑁 ∈ ℕ) → ((𝐴 gcd 𝐵)↑𝑁) = ((𝐴𝑁) gcd (𝐵𝑁)))
1211203expia 1119 . . . . . 6 ((𝐴 = 0 ∧ 𝐵 = 0) → (𝑁 ∈ ℕ → ((𝐴 gcd 𝐵)↑𝑁) = ((𝐴𝑁) gcd (𝐵𝑁))))
12258, 43eqtr4i 2769 . . . . . . . . 9 (0↑0) = (1 gcd 1)
123106oveq1i 7265 . . . . . . . . 9 ((0 gcd 0)↑0) = (0↑0)
12458, 58oveq12i 7267 . . . . . . . . 9 ((0↑0) gcd (0↑0)) = (1 gcd 1)
125122, 123, 1243eqtr4i 2776 . . . . . . . 8 ((0 gcd 0)↑0) = ((0↑0) gcd (0↑0))
126 simp1 1134 . . . . . . . . . 10 ((𝐴 = 0 ∧ 𝐵 = 0 ∧ 𝑁 = 0) → 𝐴 = 0)
127 simp2 1135 . . . . . . . . . 10 ((𝐴 = 0 ∧ 𝐵 = 0 ∧ 𝑁 = 0) → 𝐵 = 0)
128126, 127oveq12d 7273 . . . . . . . . 9 ((𝐴 = 0 ∧ 𝐵 = 0 ∧ 𝑁 = 0) → (𝐴 gcd 𝐵) = (0 gcd 0))
129 simp3 1136 . . . . . . . . 9 ((𝐴 = 0 ∧ 𝐵 = 0 ∧ 𝑁 = 0) → 𝑁 = 0)
130128, 129oveq12d 7273 . . . . . . . 8 ((𝐴 = 0 ∧ 𝐵 = 0 ∧ 𝑁 = 0) → ((𝐴 gcd 𝐵)↑𝑁) = ((0 gcd 0)↑0))
131126, 129oveq12d 7273 . . . . . . . . 9 ((𝐴 = 0 ∧ 𝐵 = 0 ∧ 𝑁 = 0) → (𝐴𝑁) = (0↑0))
132127, 129oveq12d 7273 . . . . . . . . 9 ((𝐴 = 0 ∧ 𝐵 = 0 ∧ 𝑁 = 0) → (𝐵𝑁) = (0↑0))
133131, 132oveq12d 7273 . . . . . . . 8 ((𝐴 = 0 ∧ 𝐵 = 0 ∧ 𝑁 = 0) → ((𝐴𝑁) gcd (𝐵𝑁)) = ((0↑0) gcd (0↑0)))
134125, 130, 1333eqtr4a 2805 . . . . . . 7 ((𝐴 = 0 ∧ 𝐵 = 0 ∧ 𝑁 = 0) → ((𝐴 gcd 𝐵)↑𝑁) = ((𝐴𝑁) gcd (𝐵𝑁)))
1351343expia 1119 . . . . . 6 ((𝐴 = 0 ∧ 𝐵 = 0) → (𝑁 = 0 → ((𝐴 gcd 𝐵)↑𝑁) = ((𝐴𝑁) gcd (𝐵𝑁))))
136121, 135jaod 855 . . . . 5 ((𝐴 = 0 ∧ 𝐵 = 0) → ((𝑁 ∈ ℕ ∨ 𝑁 = 0) → ((𝐴 gcd 𝐵)↑𝑁) = ((𝐴𝑁) gcd (𝐵𝑁))))
1375, 136syl5bi 241 . . . 4 ((𝐴 = 0 ∧ 𝐵 = 0) → (𝑁 ∈ ℕ0 → ((𝐴 gcd 𝐵)↑𝑁) = ((𝐴𝑁) gcd (𝐵𝑁))))
1384, 67, 105, 137ccase 1034 . . 3 (((𝐴 ∈ ℕ ∨ 𝐴 = 0) ∧ (𝐵 ∈ ℕ ∨ 𝐵 = 0)) → (𝑁 ∈ ℕ0 → ((𝐴 gcd 𝐵)↑𝑁) = ((𝐴𝑁) gcd (𝐵𝑁))))
1391, 2, 138syl2anb 597 . 2 ((𝐴 ∈ ℕ0𝐵 ∈ ℕ0) → (𝑁 ∈ ℕ0 → ((𝐴 gcd 𝐵)↑𝑁) = ((𝐴𝑁) gcd (𝐵𝑁))))
1401393impia 1115 1 ((𝐴 ∈ ℕ0𝐵 ∈ ℕ0𝑁 ∈ ℕ0) → ((𝐴 gcd 𝐵)↑𝑁) = ((𝐴𝑁) gcd (𝐵𝑁)))
Colors of variables: wff setvar class
Syntax hints:  wi 4  wa 395  wo 843  w3a 1085   = wceq 1539  wcel 2108  cfv 6418  (class class class)co 7255  0cc0 10802  1c1 10803  cn 11903  0cn0 12163  cz 12249  cexp 13710  abscabs 14873   gcd cgcd 16129
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1799  ax-4 1813  ax-5 1914  ax-6 1972  ax-7 2012  ax-8 2110  ax-9 2118  ax-10 2139  ax-11 2156  ax-12 2173  ax-ext 2709  ax-sep 5218  ax-nul 5225  ax-pow 5283  ax-pr 5347  ax-un 7566  ax-cnex 10858  ax-resscn 10859  ax-1cn 10860  ax-icn 10861  ax-addcl 10862  ax-addrcl 10863  ax-mulcl 10864  ax-mulrcl 10865  ax-mulcom 10866  ax-addass 10867  ax-mulass 10868  ax-distr 10869  ax-i2m1 10870  ax-1ne0 10871  ax-1rid 10872  ax-rnegex 10873  ax-rrecex 10874  ax-cnre 10875  ax-pre-lttri 10876  ax-pre-lttrn 10877  ax-pre-ltadd 10878  ax-pre-mulgt0 10879  ax-pre-sup 10880
This theorem depends on definitions:  df-bi 206  df-an 396  df-or 844  df-3or 1086  df-3an 1087  df-tru 1542  df-fal 1552  df-ex 1784  df-nf 1788  df-sb 2069  df-mo 2540  df-eu 2569  df-clab 2716  df-cleq 2730  df-clel 2817  df-nfc 2888  df-ne 2943  df-nel 3049  df-ral 3068  df-rex 3069  df-reu 3070  df-rmo 3071  df-rab 3072  df-v 3424  df-sbc 3712  df-csb 3829  df-dif 3886  df-un 3888  df-in 3890  df-ss 3900  df-pss 3902  df-nul 4254  df-if 4457  df-pw 4532  df-sn 4559  df-pr 4561  df-tp 4563  df-op 4565  df-uni 4837  df-iun 4923  df-br 5071  df-opab 5133  df-mpt 5154  df-tr 5188  df-id 5480  df-eprel 5486  df-po 5494  df-so 5495  df-fr 5535  df-we 5537  df-xp 5586  df-rel 5587  df-cnv 5588  df-co 5589  df-dm 5590  df-rn 5591  df-res 5592  df-ima 5593  df-pred 6191  df-ord 6254  df-on 6255  df-lim 6256  df-suc 6257  df-iota 6376  df-fun 6420  df-fn 6421  df-f 6422  df-f1 6423  df-fo 6424  df-f1o 6425  df-fv 6426  df-riota 7212  df-ov 7258  df-oprab 7259  df-mpo 7260  df-om 7688  df-2nd 7805  df-frecs 8068  df-wrecs 8099  df-recs 8173  df-rdg 8212  df-er 8456  df-en 8692  df-dom 8693  df-sdom 8694  df-sup 9131  df-inf 9132  df-pnf 10942  df-mnf 10943  df-xr 10944  df-ltxr 10945  df-le 10946  df-sub 11137  df-neg 11138  df-div 11563  df-nn 11904  df-2 11966  df-3 11967  df-n0 12164  df-z 12250  df-uz 12512  df-rp 12660  df-fl 13440  df-mod 13518  df-seq 13650  df-exp 13711  df-cj 14738  df-re 14739  df-im 14740  df-sqrt 14874  df-abs 14875  df-dvds 15892  df-gcd 16130
This theorem is referenced by:  zexpgcd  40257
  Copyright terms: Public domain W3C validator