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

Theorem expval 14233
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 2765 . . 3 ((𝑥 = 𝐴 ∧ 𝑦 = 𝑁) → (𝑦 = 0 ↔ 𝑁 = 0))
31breq2d 5118 . . . 4 ((𝑥 = 𝐴 ∧ 𝑦 = 𝑁) → (0 < 𝑦 ↔ 0 < 𝑁))
4 simpl 488 . . . . . . . 8 ((𝑥 = 𝐴 ∧ 𝑦 = 𝑁) → 𝑥 = 𝐴)
54sneqd 4596 . . . . . . 7 ((𝑥 = 𝐴 ∧ 𝑦 = 𝑁) → {𝑥} = {𝐴})
65xpeq2d 5685 . . . . . 6 ((𝑥 = 𝐴 ∧ 𝑦 = 𝑁) → (ℕ × {𝑥}) = (ℕ × {𝐴}))
76seqeq3d 14179 . . . . 5 ((𝑥 = 𝐴 ∧ 𝑦 = 𝑁) → seq1( · , (ℕ × {𝑥})) = seq1( · , (ℕ × {𝐴})))
87, 1fveq12d 6915 . . . 4 ((𝑥 = 𝐴 ∧ 𝑦 = 𝑁) → (seq1( · , (ℕ × {𝑥}))‘𝑦) = (seq1( · , (ℕ × {𝐴}))‘𝑁))
91negeqd 11578 . . . . . 6 ((𝑥 = 𝐴 ∧ 𝑦 = 𝑁) → -𝑦 = -𝑁)
107, 9fveq12d 6915 . . . . 5 ((𝑥 = 𝐴 ∧ 𝑦 = 𝑁) → (seq1( · , (ℕ × {𝑥}))‘ -𝑦) = (seq1( · , (ℕ × {𝐴}))‘ -𝑁))
1110oveq2d 7459 . . . 4 ((𝑥 = 𝐴 ∧ 𝑦 = 𝑁) → (1 / (seq1( · , (ℕ × {𝑥}))‘ -𝑦)) = (1 / (seq1( · , (ℕ × {𝐴}))‘ -𝑁)))
123, 8, 11ifbieq12d 4514 . . 3 ((𝑥 = 𝐴 ∧ 𝑦 = 𝑁) → if(0 < 𝑦, (seq1( · , (ℕ × {𝑥}))‘𝑦), (1 / (seq1( · , (ℕ × {𝑥}))‘ -𝑦))) = if(0 < 𝑁, (seq1( · , (ℕ × {𝐴}))‘𝑁), (1 / (seq1( · , (ℕ × {𝐴}))‘ -𝑁))))
132, 12ifbieq2d 4512 . 2 ((𝑥 = 𝐴 ∧ 𝑦 = 𝑁) → if(𝑦 = 0, 1, if(0 < 𝑦, (seq1( · , (ℕ × {𝑥}))‘𝑦), (1 / (seq1( · , (ℕ × {𝑥}))‘ -𝑦)))) = if(𝑁 = 0, 1, if(0 < 𝑁, (seq1( · , (ℕ × {𝐴}))‘𝑁), (1 / (seq1( · , (ℕ × {𝐴}))‘ -𝑁)))))
14 df-exp 14232 . 2 ↑ = (𝑥 ∈ ℂ, 𝑦 ∈ ℤ ↦ if(𝑦 = 0, 1, if(0 < 𝑦, (seq1( · , (ℕ × {𝑥}))‘𝑦), (1 / (seq1( · , (ℕ × {𝑥}))‘ -𝑦)))))
15 1ex 11330 . . 3 1 ∈ V
16 fvex 6921 . . . 4 (seq1( · , (ℕ × {𝐴}))‘𝑁) ∈ V
17 ovex 7476 . . . 4 (1 / (seq1( · , (ℕ × {𝐴}))‘ -𝑁)) ∈ V
1816, 17ifex 4536 . . 3 if(0 < 𝑁, (seq1( · , (ℕ × {𝐴}))‘𝑁), (1 / (seq1( · , (ℕ × {𝐴}))‘ -𝑁))) ∈ V
1915, 18ifex 4536 . 2 if(𝑁 = 0, 1, if(0 < 𝑁, (seq1( · , (ℕ × {𝐴}))‘𝑁), (1 / (seq1( · , (ℕ × {𝐴}))‘ -𝑁)))) ∈ V
2013, 14, 19ovmpoa 7599 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 1570   ∈ wcel 2147  ifcif 4485  {csn 4588   class class class wbr 5106   × cxp 5653  ‘cfv 6558  (class class class)co 7443  ℂcc 11225  0cc0 11227  1c1 11228   · cmul 11232   < clt 11370   -cneg 11569   / cdiv 12000  ℕcn 12362  ℤcz 12720  seqcseq 14171  ↑cexp 14231
This proof depends on axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1828  ax-4 1842  ax-5 1945  ax-6 2002  ax-7 2043  ax-8 2149  ax-9 2157  ax-10 2180  ax-11 2197  ax-12 2216  ax-ext 2735  ax-sep 5252  ax-nul 5263  ax-pr 5395  ax-1cn 11285
This proof depends on definitions:  df-bi 210  df-an 402  df-or 862  df-3an 1105  df-tru 1573  df-fal 1583  df-ex 1813  df-nf 1817  df-sb 2102  df-mo 2567  df-eu 2597  df-clab 2742  df-cleq 2755  df-clel 2839  df-nfc 2913  df-ne 2960  df-ral 3081  df-rex 3091  df-rab 3417  df-v 3456  df-sbc 3743  df-ss 3901  df-dif 4050  df-in 4094  df-un 4154  df-nul 4282  df-if 4486  df-sn 4589  df-pr 4591  df-op 4839  df-uni 4871  df-br 5107  df-opab 5171  df-mpt 5190  df-id 5550  df-xp 5661  df-rel 5662  df-cnv 5663  df-co 5664  df-dm 5665  df-rn 5666  df-res 5667  df-ima 5668  df-pred 6322  df-iota 6512  df-fun 6560  df-fv 6566  df-ov 7446  df-oprab 7447  df-mpo 7448  df-frecs 8327  df-wrecs 8358  df-recs 8407  df-rdg 8446  df-neg 11571  df-seq 14172  df-exp 14232
This theorem is used by:  expnnval  14234  exp0  14235  expneg  14239
  Copyright terms: Public domain W3C validator