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

Theorem expval 14209
Description: Value of exponentiation to integer powers. (Contributed by NM, 20-May-2004.) (Revised by Mario Carneiro, 4-Jun-2014.)
Assertion
Ref Expression
expval ((𝐴 ∈ ℂ ∧ 𝑁 ∈ ℤ) → (𝐴↑𝑁) = if(𝑁 = 0, 1, if(0 < 𝑁, (seq1( · , (ℕ × {𝐴}))‘𝑁), (1 / (seq1( · , (ℕ × {𝐴}))‘ -𝑁)))))

Proof of Theorem expval
Dummy variables 𝑥 𝑦 are mutually distinct and distinct from all other variables.
StepHypRef Expression
1 simpr 490 . . . 4 ((𝑥 = 𝐴 ∧ 𝑦 = 𝑁) → 𝑦 = 𝑁)
21eqeq1d 2762 . . 3 ((𝑥 = 𝐴 ∧ 𝑦 = 𝑁) → (𝑦 = 0 ↔ 𝑁 = 0))
31breq2d 5114 . . . 4 ((𝑥 = 𝐴 ∧ 𝑦 = 𝑁) → (0 < 𝑦 ↔ 0 < 𝑁))
4 simpl 488 . . . . . . . 8 ((𝑥 = 𝐴 ∧ 𝑦 = 𝑁) → 𝑥 = 𝐴)
54sneqd 4592 . . . . . . 7 ((𝑥 = 𝐴 ∧ 𝑦 = 𝑁) → {𝑥} = {𝐴})
65xpeq2d 5680 . . . . . 6 ((𝑥 = 𝐴 ∧ 𝑦 = 𝑁) → (ℕ × {𝑥}) = (ℕ × {𝐴}))
76seqeq3d 14155 . . . . 5 ((𝑥 = 𝐴 ∧ 𝑦 = 𝑁) → seq1( · , (ℕ × {𝑥})) = seq1( · , (ℕ × {𝐴})))
87, 1fveq12d 6892 . . . 4 ((𝑥 = 𝐴 ∧ 𝑦 = 𝑁) → (seq1( · , (ℕ × {𝑥}))‘𝑦) = (seq1( · , (ℕ × {𝐴}))‘𝑁))
91negeqd 11554 . . . . . 6 ((𝑥 = 𝐴 ∧ 𝑦 = 𝑁) → -𝑦 = -𝑁)
107, 9fveq12d 6892 . . . . 5 ((𝑥 = 𝐴 ∧ 𝑦 = 𝑁) → (seq1( · , (ℕ × {𝑥}))‘ -𝑦) = (seq1( · , (ℕ × {𝐴}))‘ -𝑁))
1110oveq2d 7436 . . . 4 ((𝑥 = 𝐴 ∧ 𝑦 = 𝑁) → (1 / (seq1( · , (ℕ × {𝑥}))‘ -𝑦)) = (1 / (seq1( · , (ℕ × {𝐴}))‘ -𝑁)))
123, 8, 11ifbieq12d 4510 . . 3 ((𝑥 = 𝐴 ∧ 𝑦 = 𝑁) → if(0 < 𝑦, (seq1( · , (ℕ × {𝑥}))‘𝑦), (1 / (seq1( · , (ℕ × {𝑥}))‘ -𝑦))) = if(0 < 𝑁, (seq1( · , (ℕ × {𝐴}))‘𝑁), (1 / (seq1( · , (ℕ × {𝐴}))‘ -𝑁))))
132, 12ifbieq2d 4508 . 2 ((𝑥 = 𝐴 ∧ 𝑦 = 𝑁) → if(𝑦 = 0, 1, if(0 < 𝑦, (seq1( · , (ℕ × {𝑥}))‘𝑦), (1 / (seq1( · , (ℕ × {𝑥}))‘ -𝑦)))) = if(𝑁 = 0, 1, if(0 < 𝑁, (seq1( · , (ℕ × {𝐴}))‘𝑁), (1 / (seq1( · , (ℕ × {𝐴}))‘ -𝑁)))))
14 df-exp 14208 . 2 ↑ = (𝑥 ∈ ℂ, 𝑦 ∈ ℤ ↦ if(𝑦 = 0, 1, if(0 < 𝑦, (seq1( · , (ℕ × {𝑥}))‘𝑦), (1 / (seq1( · , (ℕ × {𝑥}))‘ -𝑦)))))
15 1ex 11306 . . 3 1 ∈ V
16 fvex 6898 . . . 4 (seq1( · , (ℕ × {𝐴}))‘𝑁) ∈ V
17 ovex 7453 . . . 4 (1 / (seq1( · , (ℕ × {𝐴}))‘ -𝑁)) ∈ V
1816, 17ifex 4532 . . 3 if(0 < 𝑁, (seq1( · , (ℕ × {𝐴}))‘𝑁), (1 / (seq1( · , (ℕ × {𝐴}))‘ -𝑁))) ∈ V
1915, 18ifex 4532 . 2 if(𝑁 = 0, 1, if(0 < 𝑁, (seq1( · , (ℕ × {𝐴}))‘𝑁), (1 / (seq1( · , (ℕ × {𝐴}))‘ -𝑁)))) ∈ V
2013, 14, 19ovmpoa 7575 1 ((𝐴 ∈ ℂ ∧ 𝑁 ∈ ℤ) → (𝐴↑𝑁) = if(𝑁 = 0, 1, if(0 < 𝑁, (seq1( · , (ℕ × {𝐴}))‘𝑁), (1 / (seq1( · , (ℕ × {𝐴}))‘ -𝑁)))))
Colors of variables:    wff setvar class
This proof depends on syntax axioms:   → wi 4   ∧ wa 401   = wceq 1569   ∈ wcel 2144  ifcif 4481  {csn 4584   class class class wbr 5102   × cxp 5648  ‘cfv 6538  (class class class)co 7420  ℂcc 11201  0cc0 11203  1c1 11204   · cmul 11208   < clt 11346   -cneg 11545   / cdiv 11976  ℕcn 12338  ℤcz 12696  seqcseq 14147  ↑cexp 14207
This proof depends on axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1827  ax-4 1841  ax-5 1942  ax-6 1999  ax-7 2040  ax-8 2146  ax-9 2154  ax-10 2177  ax-11 2193  ax-12 2212  ax-ext 2732  ax-sep 5248  ax-nul 5259  ax-pr 5390  ax-1cn 11261
This proof depends on definitions:  df-bi 210  df-an 402  df-or 862  df-3an 1105  df-tru 1572  df-fal 1582  df-ex 1812  df-nf 1816  df-sb 2099  df-mo 2564  df-eu 2594  df-clab 2739  df-cleq 2752  df-clel 2835  df-nfc 2909  df-ne 2956  df-ral 3077  df-rex 3087  df-rab 3413  df-v 3452  df-sbc 3739  df-ss 3896  df-dif 4047  df-in 4091  df-un 4151  df-nul 4279  df-if 4482  df-sn 4585  df-pr 4587  df-op 4835  df-uni 4867  df-br 5103  df-opab 5167  df-mpt 5186  df-id 5545  df-xp 5656  df-rel 5657  df-cnv 5658  df-co 5659  df-dm 5660  df-rn 5661  df-res 5662  df-ima 5663  df-pred 6304  df-iota 6494  df-fun 6540  df-fv 6546  df-ov 7423  df-oprab 7424  df-mpo 7425  df-frecs 8302  df-wrecs 8333  df-recs 8382  df-rdg 8421  df-neg 11547  df-seq 14148  df-exp 14208
This theorem is used by:  expnnval  14210  exp0  14211  expneg  14215
  Copyright terms: Public domain W3C validator