| Metamath Proof Explorer |
< Previous
Next >
Nearby theorems |
||
| Mirrors > Home > MPE Home > Th. List > lsw | Structured version Visualization version GIF version | ||
| Description: Extract the last symbol of a word. May be not meaningful for other sets which are not words. (Contributed by Alexander van der Vekens, 18-Mar-2018.) |
| Ref | Expression |
|---|---|
| lsw | ⊢ (𝑊 ∈ 𝑋 → (lastS‘𝑊) = (𝑊‘((♯‘𝑊) − 1))) |
| Step | Hyp | Ref | Expression |
|---|---|---|---|
| 1 | elex 3482 | . 2 ⊢ (𝑊 ∈ 𝑋 → 𝑊 ∈ V) | |
| 2 | fvex 6947 | . 2 ⊢ (𝑊‘((♯‘𝑊) − 1)) ∈ V | |
| 3 | id 23 | . . . 4 ⊢ (𝑤 = 𝑊 → 𝑤 = 𝑊) | |
| 4 | fveq2 6934 | . . . . 5 ⊢ (𝑤 = 𝑊 → (♯‘𝑤) = (♯‘𝑊)) | |
| 5 | 4 | oveq1d 7485 | . . . 4 ⊢ (𝑤 = 𝑊 → ((♯‘𝑤) − 1) = ((♯‘𝑊) − 1)) |
| 6 | 3, 5 | fveq12d 6941 | . . 3 ⊢ (𝑤 = 𝑊 → (𝑤‘((♯‘𝑤) − 1)) = (𝑊‘((♯‘𝑊) − 1))) |
| 7 | df-lsw 14770 | . . 3 ⊢ lastS = (𝑤 ∈ V ↦ (𝑤‘((♯‘𝑤) − 1))) | |
| 8 | 6, 7 | fvmptg 7040 | . 2 ⊢ ((𝑊 ∈ V ∧ (𝑊‘((♯‘𝑊) − 1)) ∈ V) → (lastS‘𝑊) = (𝑊‘((♯‘𝑊) − 1))) |
| 9 | 1, 2, 8 | sylancl 598 | 1 ⊢ (𝑊 ∈ 𝑋 → (lastS‘𝑊) = (𝑊‘((♯‘𝑊) − 1))) |
| Colors of variables: wff setvar class |
| This proof depends on syntax axioms: → wi 4 = wceq 1572 ∈ wcel 2156 Vcvv 3461 ‘cfv 6579 (class class class)co 7470 1c1 11259 − cmin 11599 ♯chash 14536 lastSclsw 14769 |
| This proof depends on axioms: ax-mp 5 ax-1 6 ax-2 7 ax-3 8 ax-gen 1834 ax-4 1848 ax-5 1951 ax-6 2009 ax-7 2050 ax-8 2158 ax-9 2166 ax-10 2189 ax-11 2206 ax-12 2225 ax-ext 2746 ax-sep 5263 ax-nul 5274 ax-pr 5406 |
| This proof depends on definitions: df-bi 210 df-an 402 df-or 862 df-3an 1106 df-tru 1575 df-fal 1585 df-ex 1819 df-nf 1823 df-sb 2110 df-mo 2576 df-eu 2606 df-clab 2753 df-cleq 2766 df-clel 2850 df-nfc 2924 df-ne 2971 df-ral 3092 df-rex 3102 df-rab 3424 df-v 3463 df-ss 3908 df-dif 4057 df-in 4101 df-un 4161 df-nul 4289 df-if 4493 df-sn 4596 df-pr 4598 df-op 4849 df-uni 4881 df-br 5117 df-opab 5182 df-mpt 5201 df-id 5561 df-xp 5672 df-rel 5673 df-cnv 5674 df-co 5675 df-dm 5676 df-iota 6533 df-fun 6581 df-fv 6587 df-ov 7473 df-lsw 14770 |
| This theorem is used by: lsw0 14772 lsw1 14774 lswcl 14775 ccatval1lsw 14792 lswccatn0lsw 14800 swrdlsw 14880 pfxfvlsw 14907 repswlsw 14996 lswcshw 15029 lswco 15053 lsws2 15119 lsws3 15120 lsws4 15121 wrdl2exs2 15161 swrd2lsw 15169 chnind 18873 chnub 18874 chnccats1 18877 chnccat 18878 psgnunilem5 19789 wlkonwlk1l 30406 wwlknlsw 30600 wwlksnext 30646 wwlksnredwwlkn 30648 wwlksnextproplem2 30663 clwlkclwwlklem2a1 30747 clwlkclwwlklem2a3 30749 clwlkclwwlklem2a4 30752 clwlkclwwlklem2 30755 clwwisshclwwslem 30769 clwwlknlbonbgr1 30794 clwwlkn2 30799 clwwlkel 30801 clwwlkf 30802 clwwlkwwlksb 30809 clwwlknonex2lem2 30863 2clwwlk2clwwlklem 31111 numclwwlk1lem2f1 31122 pfxlsw2ccat 33745 wrdpmtrlast 33885 iwrdsplit 35221 signsvtn0 35401 signstfveq0 35408 numtowerdt 48348 lswn0 48956 grtriclwlk3 49473 |
| Copyright terms: Public domain | W3C validator |