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

Theorem revval 14731
Description: Value of the word reversing function. (Contributed by Stefan O'Rear, 26-Aug-2015.)
Assertion
Ref Expression
revval (𝑊𝑉 → (reverse‘𝑊) = (𝑥 ∈ (0..^(♯‘𝑊)) ↦ (𝑊‘(((♯‘𝑊) − 1) − 𝑥))))
Distinct variable group:   𝑥,𝑊
Allowed substitution hint:   𝑉(𝑥)

Proof of Theorem revval
Dummy variable 𝑤 is distinct from all other variables.
StepHypRef Expression
1 elex 3471 . 2 (𝑊𝑉𝑊 ∈ V)
2 fveq2 6860 . . . . 5 (𝑤 = 𝑊 → (♯‘𝑤) = (♯‘𝑊))
32oveq2d 7405 . . . 4 (𝑤 = 𝑊 → (0..^(♯‘𝑤)) = (0..^(♯‘𝑊)))
4 id 22 . . . . 5 (𝑤 = 𝑊𝑤 = 𝑊)
52oveq1d 7404 . . . . . 6 (𝑤 = 𝑊 → ((♯‘𝑤) − 1) = ((♯‘𝑊) − 1))
65oveq1d 7404 . . . . 5 (𝑤 = 𝑊 → (((♯‘𝑤) − 1) − 𝑥) = (((♯‘𝑊) − 1) − 𝑥))
74, 6fveq12d 6867 . . . 4 (𝑤 = 𝑊 → (𝑤‘(((♯‘𝑤) − 1) − 𝑥)) = (𝑊‘(((♯‘𝑊) − 1) − 𝑥)))
83, 7mpteq12dv 5196 . . 3 (𝑤 = 𝑊 → (𝑥 ∈ (0..^(♯‘𝑤)) ↦ (𝑤‘(((♯‘𝑤) − 1) − 𝑥))) = (𝑥 ∈ (0..^(♯‘𝑊)) ↦ (𝑊‘(((♯‘𝑊) − 1) − 𝑥))))
9 df-reverse 14730 . . 3 reverse = (𝑤 ∈ V ↦ (𝑥 ∈ (0..^(♯‘𝑤)) ↦ (𝑤‘(((♯‘𝑤) − 1) − 𝑥))))
10 ovex 7422 . . . 4 (0..^(♯‘𝑊)) ∈ V
1110mptex 7199 . . 3 (𝑥 ∈ (0..^(♯‘𝑊)) ↦ (𝑊‘(((♯‘𝑊) − 1) − 𝑥))) ∈ V
128, 9, 11fvmpt 6970 . 2 (𝑊 ∈ V → (reverse‘𝑊) = (𝑥 ∈ (0..^(♯‘𝑊)) ↦ (𝑊‘(((♯‘𝑊) − 1) − 𝑥))))
131, 12syl 17 1 (𝑊𝑉 → (reverse‘𝑊) = (𝑥 ∈ (0..^(♯‘𝑊)) ↦ (𝑊‘(((♯‘𝑊) − 1) − 𝑥))))
Colors of variables: wff setvar class
Syntax hints:  wi 4   = wceq 1540  wcel 2109  Vcvv 3450  cmpt 5190  cfv 6513  (class class class)co 7389  0cc0 11074  1c1 11075  cmin 11411  ..^cfzo 13621  chash 14301  reversecreverse 14729
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1795  ax-4 1809  ax-5 1910  ax-6 1967  ax-7 2008  ax-8 2111  ax-9 2119  ax-10 2142  ax-11 2158  ax-12 2178  ax-ext 2702  ax-rep 5236  ax-sep 5253  ax-nul 5263  ax-pr 5389
This theorem depends on definitions:  df-bi 207  df-an 396  df-or 848  df-3an 1088  df-tru 1543  df-fal 1553  df-ex 1780  df-nf 1784  df-sb 2066  df-mo 2534  df-eu 2563  df-clab 2709  df-cleq 2722  df-clel 2804  df-nfc 2879  df-ne 2927  df-ral 3046  df-rex 3055  df-reu 3357  df-rab 3409  df-v 3452  df-sbc 3756  df-csb 3865  df-dif 3919  df-un 3921  df-in 3923  df-ss 3933  df-nul 4299  df-if 4491  df-sn 4592  df-pr 4594  df-op 4598  df-uni 4874  df-iun 4959  df-br 5110  df-opab 5172  df-mpt 5191  df-id 5535  df-xp 5646  df-rel 5647  df-cnv 5648  df-co 5649  df-dm 5650  df-rn 5651  df-res 5652  df-ima 5653  df-iota 6466  df-fun 6515  df-fn 6516  df-f 6517  df-f1 6518  df-fo 6519  df-f1o 6520  df-fv 6521  df-ov 7392  df-reverse 14730
This theorem is referenced by:  revcl  14732  revlen  14733  revfv  14734  repswrevw  14758  revco  14806
  Copyright terms: Public domain W3C validator