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

Theorem repswrevw 14979
Description: The reverse of a "repeated symbol word". (Contributed by AV, 6-Nov-2018.)
Assertion
Ref Expression
repswrevw ((𝑆 ∈ 𝑉 ∧ 𝑁 ∈ ℕ0) → (reverse‘(𝑆 repeatS 𝑁)) = (𝑆 repeatS 𝑁))

Proof of Theorem repswrevw
Dummy variable 𝑥 is distinct from all other variables.
StepHypRef Expression
1 repswlen 14968 . . . . 5 ((𝑆 ∈ 𝑉 ∧ 𝑁 ∈ ℕ0) → (♯‘(𝑆 repeatS 𝑁)) = 𝑁)
21oveq2d 7466 . . . 4 ((𝑆 ∈ 𝑉 ∧ 𝑁 ∈ ℕ0) → (0..^(♯‘(𝑆 repeatS 𝑁))) = (0..^𝑁))
32mpteq1d 5200 . . 3 ((𝑆 ∈ 𝑉 ∧ 𝑁 ∈ ℕ0) → (𝑥 ∈ (0..^(♯‘(𝑆 repeatS 𝑁))) ↦ ((𝑆 repeatS 𝑁)‘(((♯‘(𝑆 repeatS 𝑁)) − 1) − 𝑥))) = (𝑥 ∈ (0..^𝑁) ↦ ((𝑆 repeatS 𝑁)‘(((♯‘(𝑆 repeatS 𝑁)) − 1) − 𝑥))))
4 simpll 779 . . . . 5 (((𝑆 ∈ 𝑉 ∧ 𝑁 ∈ ℕ0) ∧ 𝑥 ∈ (0..^𝑁)) → 𝑆 ∈ 𝑉)
5 simplr 781 . . . . 5 (((𝑆 ∈ 𝑉 ∧ 𝑁 ∈ ℕ0) ∧ 𝑥 ∈ (0..^𝑁)) → 𝑁 ∈ ℕ0)
61adantr 486 . . . . . . . 8 (((𝑆 ∈ 𝑉 ∧ 𝑁 ∈ ℕ0) ∧ 𝑥 ∈ (0..^𝑁)) → (♯‘(𝑆 repeatS 𝑁)) = 𝑁)
76oveq1d 7465 . . . . . . 7 (((𝑆 ∈ 𝑉 ∧ 𝑁 ∈ ℕ0) ∧ 𝑥 ∈ (0..^𝑁)) → ((♯‘(𝑆 repeatS 𝑁)) − 1) = (𝑁 − 1))
87oveq1d 7465 . . . . . 6 (((𝑆 ∈ 𝑉 ∧ 𝑁 ∈ ℕ0) ∧ 𝑥 ∈ (0..^𝑁)) → (((♯‘(𝑆 repeatS 𝑁)) − 1) − 𝑥) = ((𝑁 − 1) − 𝑥))
9 ubmelm1fzo 13937 . . . . . . . 8 (𝑥 ∈ (0..^𝑁) → ((𝑁 − 𝑥) − 1) ∈ (0..^𝑁))
10 elfzoelz 13832 . . . . . . . . 9 (𝑥 ∈ (0..^𝑁) → 𝑥 ∈ ℤ)
11 nn0cn 12655 . . . . . . . . . . . . . 14 (𝑁 ∈ ℕ0 → 𝑁 ∈ ℂ)
1211ad2antll 742 . . . . . . . . . . . . 13 ((𝑥 ∈ ℤ ∧ (𝑆 ∈ 𝑉 ∧ 𝑁 ∈ ℕ0)) → 𝑁 ∈ ℂ)
13 zcn 12737 . . . . . . . . . . . . . 14 (𝑥 ∈ ℤ → 𝑥 ∈ ℂ)
1413adantr 486 . . . . . . . . . . . . 13 ((𝑥 ∈ ℤ ∧ (𝑆 ∈ 𝑉 ∧ 𝑁 ∈ ℕ0)) → 𝑥 ∈ ℂ)
15 1cnd 11340 . . . . . . . . . . . . 13 ((𝑥 ∈ ℤ ∧ (𝑆 ∈ 𝑉 ∧ 𝑁 ∈ ℕ0)) → 1 ∈ ℂ)
1612, 14, 15sub32d 11739 . . . . . . . . . . . 12 ((𝑥 ∈ ℤ ∧ (𝑆 ∈ 𝑉 ∧ 𝑁 ∈ ℕ0)) → ((𝑁 − 𝑥) − 1) = ((𝑁 − 1) − 𝑥))
1716eleq1d 2852 . . . . . . . . . . 11 ((𝑥 ∈ ℤ ∧ (𝑆 ∈ 𝑉 ∧ 𝑁 ∈ ℕ0)) → (((𝑁 − 𝑥) − 1) ∈ (0..^𝑁) ↔ ((𝑁 − 1) − 𝑥) ∈ (0..^𝑁)))
1817biimpd 232 . . . . . . . . . 10 ((𝑥 ∈ ℤ ∧ (𝑆 ∈ 𝑉 ∧ 𝑁 ∈ ℕ0)) → (((𝑁 − 𝑥) − 1) ∈ (0..^𝑁) → ((𝑁 − 1) − 𝑥) ∈ (0..^𝑁)))
1918ex 418 . . . . . . . . 9 (𝑥 ∈ ℤ → ((𝑆 ∈ 𝑉 ∧ 𝑁 ∈ ℕ0) → (((𝑁 − 𝑥) − 1) ∈ (0..^𝑁) → ((𝑁 − 1) − 𝑥) ∈ (0..^𝑁))))
2010, 19syl 18 . . . . . . . 8 (𝑥 ∈ (0..^𝑁) → ((𝑆 ∈ 𝑉 ∧ 𝑁 ∈ ℕ0) → (((𝑁 − 𝑥) − 1) ∈ (0..^𝑁) → ((𝑁 − 1) − 𝑥) ∈ (0..^𝑁))))
219, 20mpid 45 . . . . . . 7 (𝑥 ∈ (0..^𝑁) → ((𝑆 ∈ 𝑉 ∧ 𝑁 ∈ ℕ0) → ((𝑁 − 1) − 𝑥) ∈ (0..^𝑁)))
2221impcom 413 . . . . . 6 (((𝑆 ∈ 𝑉 ∧ 𝑁 ∈ ℕ0) ∧ 𝑥 ∈ (0..^𝑁)) → ((𝑁 − 1) − 𝑥) ∈ (0..^𝑁))
238, 22eqeltrd 2867 . . . . 5 (((𝑆 ∈ 𝑉 ∧ 𝑁 ∈ ℕ0) ∧ 𝑥 ∈ (0..^𝑁)) → (((♯‘(𝑆 repeatS 𝑁)) − 1) − 𝑥) ∈ (0..^𝑁))
24 repswsymb 14966 . . . . 5 ((𝑆 ∈ 𝑉 ∧ 𝑁 ∈ ℕ0 ∧ (((♯‘(𝑆 repeatS 𝑁)) − 1) − 𝑥) ∈ (0..^𝑁)) → ((𝑆 repeatS 𝑁)‘(((♯‘(𝑆 repeatS 𝑁)) − 1) − 𝑥)) = 𝑆)
254, 5, 23, 24syl3anc 1401 . . . 4 (((𝑆 ∈ 𝑉 ∧ 𝑁 ∈ ℕ0) ∧ 𝑥 ∈ (0..^𝑁)) → ((𝑆 repeatS 𝑁)‘(((♯‘(𝑆 repeatS 𝑁)) − 1) − 𝑥)) = 𝑆)
2625mpteq2dva 5203 . . 3 ((𝑆 ∈ 𝑉 ∧ 𝑁 ∈ ℕ0) → (𝑥 ∈ (0..^𝑁) ↦ ((𝑆 repeatS 𝑁)‘(((♯‘(𝑆 repeatS 𝑁)) − 1) − 𝑥))) = (𝑥 ∈ (0..^𝑁) ↦ 𝑆))
273, 26eqtrd 2801 . 2 ((𝑆 ∈ 𝑉 ∧ 𝑁 ∈ ℕ0) → (𝑥 ∈ (0..^(♯‘(𝑆 repeatS 𝑁))) ↦ ((𝑆 repeatS 𝑁)‘(((♯‘(𝑆 repeatS 𝑁)) − 1) − 𝑥))) = (𝑥 ∈ (0..^𝑁) ↦ 𝑆))
28 ovex 7483 . . 3 (𝑆 repeatS 𝑁) ∈ V
29 revval 14950 . . 3 ((𝑆 repeatS 𝑁) ∈ V → (reverse‘(𝑆 repeatS 𝑁)) = (𝑥 ∈ (0..^(♯‘(𝑆 repeatS 𝑁))) ↦ ((𝑆 repeatS 𝑁)‘(((♯‘(𝑆 repeatS 𝑁)) − 1) − 𝑥))))
3028, 29mp1i 14 . 2 ((𝑆 ∈ 𝑉 ∧ 𝑁 ∈ ℕ0) → (reverse‘(𝑆 repeatS 𝑁)) = (𝑥 ∈ (0..^(♯‘(𝑆 repeatS 𝑁))) ↦ ((𝑆 repeatS 𝑁)‘(((♯‘(𝑆 repeatS 𝑁)) − 1) − 𝑥))))
31 reps 14962 . 2 ((𝑆 ∈ 𝑉 ∧ 𝑁 ∈ ℕ0) → (𝑆 repeatS 𝑁) = (𝑥 ∈ (0..^𝑁) ↦ 𝑆))
3227, 30, 313eqtr4d 2811 1 ((𝑆 ∈ 𝑉 ∧ 𝑁 ∈ ℕ0) → (reverse‘(𝑆 repeatS 𝑁)) = (𝑆 repeatS 𝑁))
Colors of variables:    wff setvar class
This proof depends on syntax axioms:   → wi 4   ∧ wa 401   = wceq 1572   ∈ wcel 2150  Vcvv 3453   ↦ cmpt 5191  ‘cfv 6565  (class class class)co 7450  ℂcc 11236  0cc0 11238  1c1 11239   − cmin 11579  ℕ0cn0 12645  ℤcz 12732  ..^cfzo 13827  ♯chash 14514  reversecreverse 14948   repeatS creps 14960
This proof depends on axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1830  ax-4 1844  ax-5 1947  ax-6 2004  ax-7 2045  ax-8 2152  ax-9 2160  ax-10 2183  ax-11 2200  ax-12 2219  ax-ext 2738  ax-rep 5237  ax-sep 5254  ax-nul 5265  ax-pow 5333  ax-pr 5397  ax-un 7782  ax-cnex 11294  ax-resscn 11295  ax-1cn 11296  ax-icn 11297  ax-addcl 11298  ax-addrcl 11299  ax-mulcl 11300  ax-mulrcl 11301  ax-mulcom 11302  ax-addass 11303  ax-mulass 11304  ax-distr 11305  ax-i2m1 11306  ax-1ne0 11307  ax-1rid 11308  ax-rnegex 11309  ax-rrecex 11310  ax-cnre 11311  ax-pre-lttri 11312  ax-pre-lttrn 11313  ax-pre-ltadd 11314  ax-pre-mulgt0 11315
This proof depends on definitions:  df-bi 210  df-an 402  df-or 862  df-3or 1105  df-3an 1106  df-tru 1575  df-fal 1585  df-ex 1815  df-nf 1819  df-sb 2104  df-mo 2570  df-eu 2600  df-clab 2745  df-cleq 2758  df-clel 2842  df-nfc 2916  df-ne 2963  df-nel 3069  df-ral 3084  df-rex 3094  df-reu 3369  df-rab 3416  df-v 3455  df-sbc 3742  df-csb 3851  df-ss 3900  df-pss 4016  df-dif 4049  df-in 4093  df-un 4153  df-nul 4281  df-if 4485  df-pw 4561  df-sn 4588  df-pr 4590  df-op 4840  df-uni 4872  df-int 4912  df-iun 4957  df-br 5108  df-opab 5173  df-mpt 5192  df-tr 5218  df-id 5552  df-eprel 5557  df-po 5565  df-so 5566  df-fr 5610  df-we 5612  df-xp 5663  df-rel 5664  df-cnv 5665  df-co 5666  df-dm 5667  df-rn 5668  df-res 5669  df-ima 5670  df-pred 6329  df-ord 6390  df-on 6391  df-lim 6392  df-suc 6393  df-iota 6519  df-fun 6567  df-fn 6568  df-f 6569  df-f1 6570  df-fo 6571  df-f1o 6572  df-fv 6573  df-riota 7407  df-ov 7453  df-oprab 7454  df-mpo 7455  df-om 7911  df-1st 8034  df-2nd 8035  df-frecs 8336  df-wrecs 8367  df-recs 8416  df-rdg 8455  df-1o 8513  df-er 8754  df-en 9011  df-dom 9012  df-sdom 9013  df-fin 9014  df-card 10056  df-pnf 11383  df-mnf 11384  df-xr 11385  df-ltxr 11386  df-le 11387  df-sub 11581  df-neg 11582  df-nn 12375  df-n0 12646  df-z 12733  df-uz 13005  df-fz 13679  df-fzo 13828  df-hash 14515  df-reverse 14949  df-reps 14961
This theorem is used by: (None)
  Copyright terms: Public domain W3C validator