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 40335
Description: Exponentiation distributes over GCD. nn0gcdsq 16456 extended to nonnegative exponents. expgcd 40334 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 12235 . . 3 (𝐴 ∈ ℕ0 ↔ (𝐴 ∈ ℕ ∨ 𝐴 = 0))
2 elnn0 12235 . . 3 (𝐵 ∈ ℕ0 ↔ (𝐵 ∈ ℕ ∨ 𝐵 = 0))
3 expgcd 40334 . . . . 5 ((𝐴 ∈ ℕ ∧ 𝐵 ∈ ℕ ∧ 𝑁 ∈ ℕ0) → ((𝐴 gcd 𝐵)↑𝑁) = ((𝐴𝑁) gcd (𝐵𝑁)))
433expia 1120 . . . 4 ((𝐴 ∈ ℕ ∧ 𝐵 ∈ ℕ) → (𝑁 ∈ ℕ0 → ((𝐴 gcd 𝐵)↑𝑁) = ((𝐴𝑁) gcd (𝐵𝑁))))
5 elnn0 12235 . . . . 5 (𝑁 ∈ ℕ0 ↔ (𝑁 ∈ ℕ ∨ 𝑁 = 0))
6 0exp 13818 . . . . . . . . . . 11 (𝑁 ∈ ℕ → (0↑𝑁) = 0)
763ad2ant3 1134 . . . . . . . . . 10 ((𝐴 = 0 ∧ 𝐵 ∈ ℕ ∧ 𝑁 ∈ ℕ) → (0↑𝑁) = 0)
87oveq1d 7290 . . . . . . . . 9 ((𝐴 = 0 ∧ 𝐵 ∈ ℕ ∧ 𝑁 ∈ ℕ) → ((0↑𝑁) gcd (𝐵𝑁)) = (0 gcd (𝐵𝑁)))
9 simp2 1136 . . . . . . . . . . . 12 ((𝐴 = 0 ∧ 𝐵 ∈ ℕ ∧ 𝑁 ∈ ℕ) → 𝐵 ∈ ℕ)
10 nnnn0 12240 . . . . . . . . . . . . 13 (𝑁 ∈ ℕ → 𝑁 ∈ ℕ0)
11103ad2ant3 1134 . . . . . . . . . . . 12 ((𝐴 = 0 ∧ 𝐵 ∈ ℕ ∧ 𝑁 ∈ ℕ) → 𝑁 ∈ ℕ0)
129, 11nnexpcld 13960 . . . . . . . . . . 11 ((𝐴 = 0 ∧ 𝐵 ∈ ℕ ∧ 𝑁 ∈ ℕ) → (𝐵𝑁) ∈ ℕ)
1312nnzd 12425 . . . . . . . . . 10 ((𝐴 = 0 ∧ 𝐵 ∈ ℕ ∧ 𝑁 ∈ ℕ) → (𝐵𝑁) ∈ ℤ)
14 gcd0id 16226 . . . . . . . . . 10 ((𝐵𝑁) ∈ ℤ → (0 gcd (𝐵𝑁)) = (abs‘(𝐵𝑁)))
1513, 14syl 17 . . . . . . . . 9 ((𝐴 = 0 ∧ 𝐵 ∈ ℕ ∧ 𝑁 ∈ ℕ) → (0 gcd (𝐵𝑁)) = (abs‘(𝐵𝑁)))
1612nnred 11988 . . . . . . . . . 10 ((𝐴 = 0 ∧ 𝐵 ∈ ℕ ∧ 𝑁 ∈ ℕ) → (𝐵𝑁) ∈ ℝ)
17 0red 10978 . . . . . . . . . . 11 ((𝐴 = 0 ∧ 𝐵 ∈ ℕ ∧ 𝑁 ∈ ℕ) → 0 ∈ ℝ)
1812nngt0d 12022 . . . . . . . . . . 11 ((𝐴 = 0 ∧ 𝐵 ∈ ℕ ∧ 𝑁 ∈ ℕ) → 0 < (𝐵𝑁))
1917, 16, 18ltled 11123 . . . . . . . . . 10 ((𝐴 = 0 ∧ 𝐵 ∈ ℕ ∧ 𝑁 ∈ ℕ) → 0 ≤ (𝐵𝑁))
2016, 19absidd 15134 . . . . . . . . 9 ((𝐴 = 0 ∧ 𝐵 ∈ ℕ ∧ 𝑁 ∈ ℕ) → (abs‘(𝐵𝑁)) = (𝐵𝑁))
218, 15, 203eqtrrd 2783 . . . . . . . 8 ((𝐴 = 0 ∧ 𝐵 ∈ ℕ ∧ 𝑁 ∈ ℕ) → (𝐵𝑁) = ((0↑𝑁) gcd (𝐵𝑁)))
22 oveq1 7282 . . . . . . . . . . 11 (𝐴 = 0 → (𝐴 gcd 𝐵) = (0 gcd 𝐵))
23223ad2ant1 1132 . . . . . . . . . 10 ((𝐴 = 0 ∧ 𝐵 ∈ ℕ ∧ 𝑁 ∈ ℕ) → (𝐴 gcd 𝐵) = (0 gcd 𝐵))
24 nnz 12342 . . . . . . . . . . . 12 (𝐵 ∈ ℕ → 𝐵 ∈ ℤ)
25243ad2ant2 1133 . . . . . . . . . . 11 ((𝐴 = 0 ∧ 𝐵 ∈ ℕ ∧ 𝑁 ∈ ℕ) → 𝐵 ∈ ℤ)
26 gcd0id 16226 . . . . . . . . . . 11 (𝐵 ∈ ℤ → (0 gcd 𝐵) = (abs‘𝐵))
2725, 26syl 17 . . . . . . . . . 10 ((𝐴 = 0 ∧ 𝐵 ∈ ℕ ∧ 𝑁 ∈ ℕ) → (0 gcd 𝐵) = (abs‘𝐵))
28 nnre 11980 . . . . . . . . . . . 12 (𝐵 ∈ ℕ → 𝐵 ∈ ℝ)
29 0red 10978 . . . . . . . . . . . . 13 (𝐵 ∈ ℕ → 0 ∈ ℝ)
30 nngt0 12004 . . . . . . . . . . . . 13 (𝐵 ∈ ℕ → 0 < 𝐵)
3129, 28, 30ltled 11123 . . . . . . . . . . . 12 (𝐵 ∈ ℕ → 0 ≤ 𝐵)
3228, 31absidd 15134 . . . . . . . . . . 11 (𝐵 ∈ ℕ → (abs‘𝐵) = 𝐵)
33323ad2ant2 1133 . . . . . . . . . 10 ((𝐴 = 0 ∧ 𝐵 ∈ ℕ ∧ 𝑁 ∈ ℕ) → (abs‘𝐵) = 𝐵)
3423, 27, 333eqtrd 2782 . . . . . . . . 9 ((𝐴 = 0 ∧ 𝐵 ∈ ℕ ∧ 𝑁 ∈ ℕ) → (𝐴 gcd 𝐵) = 𝐵)
3534oveq1d 7290 . . . . . . . 8 ((𝐴 = 0 ∧ 𝐵 ∈ ℕ ∧ 𝑁 ∈ ℕ) → ((𝐴 gcd 𝐵)↑𝑁) = (𝐵𝑁))
36 oveq1 7282 . . . . . . . . . 10 (𝐴 = 0 → (𝐴𝑁) = (0↑𝑁))
37363ad2ant1 1132 . . . . . . . . 9 ((𝐴 = 0 ∧ 𝐵 ∈ ℕ ∧ 𝑁 ∈ ℕ) → (𝐴𝑁) = (0↑𝑁))
3837oveq1d 7290 . . . . . . . 8 ((𝐴 = 0 ∧ 𝐵 ∈ ℕ ∧ 𝑁 ∈ ℕ) → ((𝐴𝑁) gcd (𝐵𝑁)) = ((0↑𝑁) gcd (𝐵𝑁)))
3921, 35, 383eqtr4d 2788 . . . . . . 7 ((𝐴 = 0 ∧ 𝐵 ∈ ℕ ∧ 𝑁 ∈ ℕ) → ((𝐴 gcd 𝐵)↑𝑁) = ((𝐴𝑁) gcd (𝐵𝑁)))
40393expia 1120 . . . . . 6 ((𝐴 = 0 ∧ 𝐵 ∈ ℕ) → (𝑁 ∈ ℕ → ((𝐴 gcd 𝐵)↑𝑁) = ((𝐴𝑁) gcd (𝐵𝑁))))
41 1z 12350 . . . . . . . . . 10 1 ∈ ℤ
42 gcd1 16235 . . . . . . . . . 10 (1 ∈ ℤ → (1 gcd 1) = 1)
4341, 42ax-mp 5 . . . . . . . . 9 (1 gcd 1) = 1
4443eqcomi 2747 . . . . . . . 8 1 = (1 gcd 1)
45 simp1 1135 . . . . . . . . . . . 12 ((𝐴 = 0 ∧ 𝐵 ∈ ℕ ∧ 𝑁 = 0) → 𝐴 = 0)
4645oveq1d 7290 . . . . . . . . . . 11 ((𝐴 = 0 ∧ 𝐵 ∈ ℕ ∧ 𝑁 = 0) → (𝐴 gcd 𝐵) = (0 gcd 𝐵))
47 simp2 1136 . . . . . . . . . . . . 13 ((𝐴 = 0 ∧ 𝐵 ∈ ℕ ∧ 𝑁 = 0) → 𝐵 ∈ ℕ)
4847nnzd 12425 . . . . . . . . . . . 12 ((𝐴 = 0 ∧ 𝐵 ∈ ℕ ∧ 𝑁 = 0) → 𝐵 ∈ ℤ)
4948, 26syl 17 . . . . . . . . . . 11 ((𝐴 = 0 ∧ 𝐵 ∈ ℕ ∧ 𝑁 = 0) → (0 gcd 𝐵) = (abs‘𝐵))
50323ad2ant2 1133 . . . . . . . . . . 11 ((𝐴 = 0 ∧ 𝐵 ∈ ℕ ∧ 𝑁 = 0) → (abs‘𝐵) = 𝐵)
5146, 49, 503eqtrd 2782 . . . . . . . . . 10 ((𝐴 = 0 ∧ 𝐵 ∈ ℕ ∧ 𝑁 = 0) → (𝐴 gcd 𝐵) = 𝐵)
52 simp3 1137 . . . . . . . . . 10 ((𝐴 = 0 ∧ 𝐵 ∈ ℕ ∧ 𝑁 = 0) → 𝑁 = 0)
5351, 52oveq12d 7293 . . . . . . . . 9 ((𝐴 = 0 ∧ 𝐵 ∈ ℕ ∧ 𝑁 = 0) → ((𝐴 gcd 𝐵)↑𝑁) = (𝐵↑0))
5447nncnd 11989 . . . . . . . . . 10 ((𝐴 = 0 ∧ 𝐵 ∈ ℕ ∧ 𝑁 = 0) → 𝐵 ∈ ℂ)
5554exp0d 13858 . . . . . . . . 9 ((𝐴 = 0 ∧ 𝐵 ∈ ℕ ∧ 𝑁 = 0) → (𝐵↑0) = 1)
5653, 55eqtrd 2778 . . . . . . . 8 ((𝐴 = 0 ∧ 𝐵 ∈ ℕ ∧ 𝑁 = 0) → ((𝐴 gcd 𝐵)↑𝑁) = 1)
5745, 52oveq12d 7293 . . . . . . . . . 10 ((𝐴 = 0 ∧ 𝐵 ∈ ℕ ∧ 𝑁 = 0) → (𝐴𝑁) = (0↑0))
58 0exp0e1 13787 . . . . . . . . . . 11 (0↑0) = 1
5958a1i 11 . . . . . . . . . 10 ((𝐴 = 0 ∧ 𝐵 ∈ ℕ ∧ 𝑁 = 0) → (0↑0) = 1)
6057, 59eqtrd 2778 . . . . . . . . 9 ((𝐴 = 0 ∧ 𝐵 ∈ ℕ ∧ 𝑁 = 0) → (𝐴𝑁) = 1)
6152oveq2d 7291 . . . . . . . . . 10 ((𝐴 = 0 ∧ 𝐵 ∈ ℕ ∧ 𝑁 = 0) → (𝐵𝑁) = (𝐵↑0))
6261, 55eqtrd 2778 . . . . . . . . 9 ((𝐴 = 0 ∧ 𝐵 ∈ ℕ ∧ 𝑁 = 0) → (𝐵𝑁) = 1)
6360, 62oveq12d 7293 . . . . . . . 8 ((𝐴 = 0 ∧ 𝐵 ∈ ℕ ∧ 𝑁 = 0) → ((𝐴𝑁) gcd (𝐵𝑁)) = (1 gcd 1))
6444, 56, 633eqtr4a 2804 . . . . . . 7 ((𝐴 = 0 ∧ 𝐵 ∈ ℕ ∧ 𝑁 = 0) → ((𝐴 gcd 𝐵)↑𝑁) = ((𝐴𝑁) gcd (𝐵𝑁)))
65643expia 1120 . . . . . 6 ((𝐴 = 0 ∧ 𝐵 ∈ ℕ) → (𝑁 = 0 → ((𝐴 gcd 𝐵)↑𝑁) = ((𝐴𝑁) gcd (𝐵𝑁))))
6640, 65jaod 856 . . . . 5 ((𝐴 = 0 ∧ 𝐵 ∈ ℕ) → ((𝑁 ∈ ℕ ∨ 𝑁 = 0) → ((𝐴 gcd 𝐵)↑𝑁) = ((𝐴𝑁) gcd (𝐵𝑁))))
675, 66syl5bi 241 . . . 4 ((𝐴 = 0 ∧ 𝐵 ∈ ℕ) → (𝑁 ∈ ℕ0 → ((𝐴 gcd 𝐵)↑𝑁) = ((𝐴𝑁) gcd (𝐵𝑁))))
68 nnnn0 12240 . . . . . . . . . . 11 (𝐴 ∈ ℕ → 𝐴 ∈ ℕ0)
69683ad2ant1 1132 . . . . . . . . . 10 ((𝐴 ∈ ℕ ∧ 𝐵 = 0 ∧ 𝑁 ∈ ℕ) → 𝐴 ∈ ℕ0)
70103ad2ant3 1134 . . . . . . . . . 10 ((𝐴 ∈ ℕ ∧ 𝐵 = 0 ∧ 𝑁 ∈ ℕ) → 𝑁 ∈ ℕ0)
7169, 70nn0expcld 13961 . . . . . . . . 9 ((𝐴 ∈ ℕ ∧ 𝐵 = 0 ∧ 𝑁 ∈ ℕ) → (𝐴𝑁) ∈ ℕ0)
72 nn0gcdid0 16228 . . . . . . . . 9 ((𝐴𝑁) ∈ ℕ0 → ((𝐴𝑁) gcd 0) = (𝐴𝑁))
7371, 72syl 17 . . . . . . . 8 ((𝐴 ∈ ℕ ∧ 𝐵 = 0 ∧ 𝑁 ∈ ℕ) → ((𝐴𝑁) gcd 0) = (𝐴𝑁))
74 simp2 1136 . . . . . . . . . . 11 ((𝐴 ∈ ℕ ∧ 𝐵 = 0 ∧ 𝑁 ∈ ℕ) → 𝐵 = 0)
7574oveq1d 7290 . . . . . . . . . 10 ((𝐴 ∈ ℕ ∧ 𝐵 = 0 ∧ 𝑁 ∈ ℕ) → (𝐵𝑁) = (0↑𝑁))
7663ad2ant3 1134 . . . . . . . . . 10 ((𝐴 ∈ ℕ ∧ 𝐵 = 0 ∧ 𝑁 ∈ ℕ) → (0↑𝑁) = 0)
7775, 76eqtrd 2778 . . . . . . . . 9 ((𝐴 ∈ ℕ ∧ 𝐵 = 0 ∧ 𝑁 ∈ ℕ) → (𝐵𝑁) = 0)
7877oveq2d 7291 . . . . . . . 8 ((𝐴 ∈ ℕ ∧ 𝐵 = 0 ∧ 𝑁 ∈ ℕ) → ((𝐴𝑁) gcd (𝐵𝑁)) = ((𝐴𝑁) gcd 0))
7974oveq2d 7291 . . . . . . . . . 10 ((𝐴 ∈ ℕ ∧ 𝐵 = 0 ∧ 𝑁 ∈ ℕ) → (𝐴 gcd 𝐵) = (𝐴 gcd 0))
80 nn0gcdid0 16228 . . . . . . . . . . . 12 (𝐴 ∈ ℕ0 → (𝐴 gcd 0) = 𝐴)
8168, 80syl 17 . . . . . . . . . . 11 (𝐴 ∈ ℕ → (𝐴 gcd 0) = 𝐴)
82813ad2ant1 1132 . . . . . . . . . 10 ((𝐴 ∈ ℕ ∧ 𝐵 = 0 ∧ 𝑁 ∈ ℕ) → (𝐴 gcd 0) = 𝐴)
8379, 82eqtrd 2778 . . . . . . . . 9 ((𝐴 ∈ ℕ ∧ 𝐵 = 0 ∧ 𝑁 ∈ ℕ) → (𝐴 gcd 𝐵) = 𝐴)
8483oveq1d 7290 . . . . . . . 8 ((𝐴 ∈ ℕ ∧ 𝐵 = 0 ∧ 𝑁 ∈ ℕ) → ((𝐴 gcd 𝐵)↑𝑁) = (𝐴𝑁))
8573, 78, 843eqtr4rd 2789 . . . . . . 7 ((𝐴 ∈ ℕ ∧ 𝐵 = 0 ∧ 𝑁 ∈ ℕ) → ((𝐴 gcd 𝐵)↑𝑁) = ((𝐴𝑁) gcd (𝐵𝑁)))
86853expia 1120 . . . . . 6 ((𝐴 ∈ ℕ ∧ 𝐵 = 0) → (𝑁 ∈ ℕ → ((𝐴 gcd 𝐵)↑𝑁) = ((𝐴𝑁) gcd (𝐵𝑁))))
87 nncn 11981 . . . . . . . . . . . 12 (𝐴 ∈ ℕ → 𝐴 ∈ ℂ)
8887exp0d 13858 . . . . . . . . . . 11 (𝐴 ∈ ℕ → (𝐴↑0) = 1)
8988, 43eqtr4di 2796 . . . . . . . . . 10 (𝐴 ∈ ℕ → (𝐴↑0) = (1 gcd 1))
9081oveq1d 7290 . . . . . . . . . 10 (𝐴 ∈ ℕ → ((𝐴 gcd 0)↑0) = (𝐴↑0))
9158a1i 11 . . . . . . . . . . 11 (𝐴 ∈ ℕ → (0↑0) = 1)
9288, 91oveq12d 7293 . . . . . . . . . 10 (𝐴 ∈ ℕ → ((𝐴↑0) gcd (0↑0)) = (1 gcd 1))
9389, 90, 923eqtr4d 2788 . . . . . . . . 9 (𝐴 ∈ ℕ → ((𝐴 gcd 0)↑0) = ((𝐴↑0) gcd (0↑0)))
94933ad2ant1 1132 . . . . . . . 8 ((𝐴 ∈ ℕ ∧ 𝐵 = 0 ∧ 𝑁 = 0) → ((𝐴 gcd 0)↑0) = ((𝐴↑0) gcd (0↑0)))
95 simp2 1136 . . . . . . . . . 10 ((𝐴 ∈ ℕ ∧ 𝐵 = 0 ∧ 𝑁 = 0) → 𝐵 = 0)
9695oveq2d 7291 . . . . . . . . 9 ((𝐴 ∈ ℕ ∧ 𝐵 = 0 ∧ 𝑁 = 0) → (𝐴 gcd 𝐵) = (𝐴 gcd 0))
97 simp3 1137 . . . . . . . . 9 ((𝐴 ∈ ℕ ∧ 𝐵 = 0 ∧ 𝑁 = 0) → 𝑁 = 0)
9896, 97oveq12d 7293 . . . . . . . 8 ((𝐴 ∈ ℕ ∧ 𝐵 = 0 ∧ 𝑁 = 0) → ((𝐴 gcd 𝐵)↑𝑁) = ((𝐴 gcd 0)↑0))
9997oveq2d 7291 . . . . . . . . 9 ((𝐴 ∈ ℕ ∧ 𝐵 = 0 ∧ 𝑁 = 0) → (𝐴𝑁) = (𝐴↑0))
10095, 97oveq12d 7293 . . . . . . . . 9 ((𝐴 ∈ ℕ ∧ 𝐵 = 0 ∧ 𝑁 = 0) → (𝐵𝑁) = (0↑0))
10199, 100oveq12d 7293 . . . . . . . 8 ((𝐴 ∈ ℕ ∧ 𝐵 = 0 ∧ 𝑁 = 0) → ((𝐴𝑁) gcd (𝐵𝑁)) = ((𝐴↑0) gcd (0↑0)))
10294, 98, 1013eqtr4d 2788 . . . . . . 7 ((𝐴 ∈ ℕ ∧ 𝐵 = 0 ∧ 𝑁 = 0) → ((𝐴 gcd 𝐵)↑𝑁) = ((𝐴𝑁) gcd (𝐵𝑁)))
1031023expia 1120 . . . . . 6 ((𝐴 ∈ ℕ ∧ 𝐵 = 0) → (𝑁 = 0 → ((𝐴 gcd 𝐵)↑𝑁) = ((𝐴𝑁) gcd (𝐵𝑁))))
10486, 103jaod 856 . . . . 5 ((𝐴 ∈ ℕ ∧ 𝐵 = 0) → ((𝑁 ∈ ℕ ∨ 𝑁 = 0) → ((𝐴 gcd 𝐵)↑𝑁) = ((𝐴𝑁) gcd (𝐵𝑁))))
1055, 104syl5bi 241 . . . 4 ((𝐴 ∈ ℕ ∧ 𝐵 = 0) → (𝑁 ∈ ℕ0 → ((𝐴 gcd 𝐵)↑𝑁) = ((𝐴𝑁) gcd (𝐵𝑁))))
106 gcd0val 16204 . . . . . . . . . . 11 (0 gcd 0) = 0
1076, 106eqtr4di 2796 . . . . . . . . . 10 (𝑁 ∈ ℕ → (0↑𝑁) = (0 gcd 0))
108106a1i 11 . . . . . . . . . . 11 (𝑁 ∈ ℕ → (0 gcd 0) = 0)
109108oveq1d 7290 . . . . . . . . . 10 (𝑁 ∈ ℕ → ((0 gcd 0)↑𝑁) = (0↑𝑁))
1106, 6oveq12d 7293 . . . . . . . . . 10 (𝑁 ∈ ℕ → ((0↑𝑁) gcd (0↑𝑁)) = (0 gcd 0))
111107, 109, 1103eqtr4d 2788 . . . . . . . . 9 (𝑁 ∈ ℕ → ((0 gcd 0)↑𝑁) = ((0↑𝑁) gcd (0↑𝑁)))
1121113ad2ant3 1134 . . . . . . . 8 ((𝐴 = 0 ∧ 𝐵 = 0 ∧ 𝑁 ∈ ℕ) → ((0 gcd 0)↑𝑁) = ((0↑𝑁) gcd (0↑𝑁)))
113 simp1 1135 . . . . . . . . . 10 ((𝐴 = 0 ∧ 𝐵 = 0 ∧ 𝑁 ∈ ℕ) → 𝐴 = 0)
114 simp2 1136 . . . . . . . . . 10 ((𝐴 = 0 ∧ 𝐵 = 0 ∧ 𝑁 ∈ ℕ) → 𝐵 = 0)
115113, 114oveq12d 7293 . . . . . . . . 9 ((𝐴 = 0 ∧ 𝐵 = 0 ∧ 𝑁 ∈ ℕ) → (𝐴 gcd 𝐵) = (0 gcd 0))
116115oveq1d 7290 . . . . . . . 8 ((𝐴 = 0 ∧ 𝐵 = 0 ∧ 𝑁 ∈ ℕ) → ((𝐴 gcd 𝐵)↑𝑁) = ((0 gcd 0)↑𝑁))
117113oveq1d 7290 . . . . . . . . 9 ((𝐴 = 0 ∧ 𝐵 = 0 ∧ 𝑁 ∈ ℕ) → (𝐴𝑁) = (0↑𝑁))
118114oveq1d 7290 . . . . . . . . 9 ((𝐴 = 0 ∧ 𝐵 = 0 ∧ 𝑁 ∈ ℕ) → (𝐵𝑁) = (0↑𝑁))
119117, 118oveq12d 7293 . . . . . . . 8 ((𝐴 = 0 ∧ 𝐵 = 0 ∧ 𝑁 ∈ ℕ) → ((𝐴𝑁) gcd (𝐵𝑁)) = ((0↑𝑁) gcd (0↑𝑁)))
120112, 116, 1193eqtr4d 2788 . . . . . . 7 ((𝐴 = 0 ∧ 𝐵 = 0 ∧ 𝑁 ∈ ℕ) → ((𝐴 gcd 𝐵)↑𝑁) = ((𝐴𝑁) gcd (𝐵𝑁)))
1211203expia 1120 . . . . . 6 ((𝐴 = 0 ∧ 𝐵 = 0) → (𝑁 ∈ ℕ → ((𝐴 gcd 𝐵)↑𝑁) = ((𝐴𝑁) gcd (𝐵𝑁))))
12258, 43eqtr4i 2769 . . . . . . . . 9 (0↑0) = (1 gcd 1)
123106oveq1i 7285 . . . . . . . . 9 ((0 gcd 0)↑0) = (0↑0)
12458, 58oveq12i 7287 . . . . . . . . 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 1135 . . . . . . . . . 10 ((𝐴 = 0 ∧ 𝐵 = 0 ∧ 𝑁 = 0) → 𝐴 = 0)
127 simp2 1136 . . . . . . . . . 10 ((𝐴 = 0 ∧ 𝐵 = 0 ∧ 𝑁 = 0) → 𝐵 = 0)
128126, 127oveq12d 7293 . . . . . . . . 9 ((𝐴 = 0 ∧ 𝐵 = 0 ∧ 𝑁 = 0) → (𝐴 gcd 𝐵) = (0 gcd 0))
129 simp3 1137 . . . . . . . . 9 ((𝐴 = 0 ∧ 𝐵 = 0 ∧ 𝑁 = 0) → 𝑁 = 0)
130128, 129oveq12d 7293 . . . . . . . 8 ((𝐴 = 0 ∧ 𝐵 = 0 ∧ 𝑁 = 0) → ((𝐴 gcd 𝐵)↑𝑁) = ((0 gcd 0)↑0))
131126, 129oveq12d 7293 . . . . . . . . 9 ((𝐴 = 0 ∧ 𝐵 = 0 ∧ 𝑁 = 0) → (𝐴𝑁) = (0↑0))
132127, 129oveq12d 7293 . . . . . . . . 9 ((𝐴 = 0 ∧ 𝐵 = 0 ∧ 𝑁 = 0) → (𝐵𝑁) = (0↑0))
133131, 132oveq12d 7293 . . . . . . . 8 ((𝐴 = 0 ∧ 𝐵 = 0 ∧ 𝑁 = 0) → ((𝐴𝑁) gcd (𝐵𝑁)) = ((0↑0) gcd (0↑0)))
134125, 130, 1333eqtr4a 2804 . . . . . . 7 ((𝐴 = 0 ∧ 𝐵 = 0 ∧ 𝑁 = 0) → ((𝐴 gcd 𝐵)↑𝑁) = ((𝐴𝑁) gcd (𝐵𝑁)))
1351343expia 1120 . . . . . 6 ((𝐴 = 0 ∧ 𝐵 = 0) → (𝑁 = 0 → ((𝐴 gcd 𝐵)↑𝑁) = ((𝐴𝑁) gcd (𝐵𝑁))))
136121, 135jaod 856 . . . . 5 ((𝐴 = 0 ∧ 𝐵 = 0) → ((𝑁 ∈ ℕ ∨ 𝑁 = 0) → ((𝐴 gcd 𝐵)↑𝑁) = ((𝐴𝑁) gcd (𝐵𝑁))))
1375, 136syl5bi 241 . . . 4 ((𝐴 = 0 ∧ 𝐵 = 0) → (𝑁 ∈ ℕ0 → ((𝐴 gcd 𝐵)↑𝑁) = ((𝐴𝑁) gcd (𝐵𝑁))))
1384, 67, 105, 137ccase 1035 . . 3 (((𝐴 ∈ ℕ ∨ 𝐴 = 0) ∧ (𝐵 ∈ ℕ ∨ 𝐵 = 0)) → (𝑁 ∈ ℕ0 → ((𝐴 gcd 𝐵)↑𝑁) = ((𝐴𝑁) gcd (𝐵𝑁))))
1391, 2, 138syl2anb 598 . 2 ((𝐴 ∈ ℕ0𝐵 ∈ ℕ0) → (𝑁 ∈ ℕ0 → ((𝐴 gcd 𝐵)↑𝑁) = ((𝐴𝑁) gcd (𝐵𝑁))))
1401393impia 1116 1 ((𝐴 ∈ ℕ0𝐵 ∈ ℕ0𝑁 ∈ ℕ0) → ((𝐴 gcd 𝐵)↑𝑁) = ((𝐴𝑁) gcd (𝐵𝑁)))
Colors of variables: wff setvar class
Syntax hints:  wi 4  wa 396  wo 844  w3a 1086   = wceq 1539  wcel 2106  cfv 6433  (class class class)co 7275  0cc0 10871  1c1 10872  cn 11973  0cn0 12233  cz 12319  cexp 13782  abscabs 14945   gcd cgcd 16201
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1798  ax-4 1812  ax-5 1913  ax-6 1971  ax-7 2011  ax-8 2108  ax-9 2116  ax-10 2137  ax-11 2154  ax-12 2171  ax-ext 2709  ax-sep 5223  ax-nul 5230  ax-pow 5288  ax-pr 5352  ax-un 7588  ax-cnex 10927  ax-resscn 10928  ax-1cn 10929  ax-icn 10930  ax-addcl 10931  ax-addrcl 10932  ax-mulcl 10933  ax-mulrcl 10934  ax-mulcom 10935  ax-addass 10936  ax-mulass 10937  ax-distr 10938  ax-i2m1 10939  ax-1ne0 10940  ax-1rid 10941  ax-rnegex 10942  ax-rrecex 10943  ax-cnre 10944  ax-pre-lttri 10945  ax-pre-lttrn 10946  ax-pre-ltadd 10947  ax-pre-mulgt0 10948  ax-pre-sup 10949
This theorem depends on definitions:  df-bi 206  df-an 397  df-or 845  df-3or 1087  df-3an 1088  df-tru 1542  df-fal 1552  df-ex 1783  df-nf 1787  df-sb 2068  df-mo 2540  df-eu 2569  df-clab 2716  df-cleq 2730  df-clel 2816  df-nfc 2889  df-ne 2944  df-nel 3050  df-ral 3069  df-rex 3070  df-rmo 3071  df-reu 3072  df-rab 3073  df-v 3434  df-sbc 3717  df-csb 3833  df-dif 3890  df-un 3892  df-in 3894  df-ss 3904  df-pss 3906  df-nul 4257  df-if 4460  df-pw 4535  df-sn 4562  df-pr 4564  df-op 4568  df-uni 4840  df-iun 4926  df-br 5075  df-opab 5137  df-mpt 5158  df-tr 5192  df-id 5489  df-eprel 5495  df-po 5503  df-so 5504  df-fr 5544  df-we 5546  df-xp 5595  df-rel 5596  df-cnv 5597  df-co 5598  df-dm 5599  df-rn 5600  df-res 5601  df-ima 5602  df-pred 6202  df-ord 6269  df-on 6270  df-lim 6271  df-suc 6272  df-iota 6391  df-fun 6435  df-fn 6436  df-f 6437  df-f1 6438  df-fo 6439  df-f1o 6440  df-fv 6441  df-riota 7232  df-ov 7278  df-oprab 7279  df-mpo 7280  df-om 7713  df-2nd 7832  df-frecs 8097  df-wrecs 8128  df-recs 8202  df-rdg 8241  df-er 8498  df-en 8734  df-dom 8735  df-sdom 8736  df-sup 9201  df-inf 9202  df-pnf 11011  df-mnf 11012  df-xr 11013  df-ltxr 11014  df-le 11015  df-sub 11207  df-neg 11208  df-div 11633  df-nn 11974  df-2 12036  df-3 12037  df-n0 12234  df-z 12320  df-uz 12583  df-rp 12731  df-fl 13512  df-mod 13590  df-seq 13722  df-exp 13783  df-cj 14810  df-re 14811  df-im 14812  df-sqrt 14946  df-abs 14947  df-dvds 15964  df-gcd 16202
This theorem is referenced by:  zexpgcd  40336
  Copyright terms: Public domain W3C validator