Theorem List for Intuitionistic Logic Explorer - 11201-11300 *Has distinct variable
group(s)
| Type | Label | Description |
| Statement |
| |
| Theorem | hash1 11201 |
Size of a natural number ordinal. (Contributed by Mario Carneiro,
5-Jan-2016.)
|
♯   |
| |
| Theorem | hash2 11202 |
Size of a natural number ordinal. (Contributed by Mario Carneiro,
5-Jan-2016.)
|
♯   |
| |
| Theorem | hash3 11203 |
Size of a natural number ordinal. (Contributed by Mario Carneiro,
5-Jan-2016.)
|
♯   |
| |
| Theorem | hash4 11204 |
Size of a natural number ordinal. (Contributed by Mario Carneiro,
5-Jan-2016.)
|
♯   |
| |
| Theorem | pr0hash2ex 11205 |
There is (at least) one set with two different elements: the unordered
pair containing the empty set and the singleton containing the empty set.
(Contributed by AV, 29-Jan-2020.)
|
♯        |
| |
| Theorem | fihashss 11206 |
The size of a subset is less than or equal to the size of its superset.
(Contributed by Alexander van der Vekens, 14-Jul-2018.)
|
   ♯  ♯    |
| |
| Theorem | fiprsshashgt1 11207 |
The size of a superset of a proper unordered pair is greater than 1.
(Contributed by AV, 6-Feb-2021.)
|
    
  

♯     |
| |
| Theorem | fihashssdif 11208 |
The size of the difference of a finite set and a finite subset is the
set's size minus the subset's. (Contributed by Jim Kingdon,
31-May-2022.)
|
   ♯     ♯  ♯     |
| |
| Theorem | hashdifsn 11209 |
The size of the difference of a finite set and a singleton subset is the
set's size minus 1. (Contributed by Alexander van der Vekens,
6-Jan-2018.)
|
   ♯       ♯     |
| |
| Theorem | hashdifpr 11210 |
The size of the difference of a finite set and a proper ordered pair
subset is the set's size minus 2. (Contributed by AV, 16-Dec-2020.)
|
     ♯        ♯     |
| |
| Theorem | hashfz 11211 |
Value of the numeric cardinality of a nonempty integer range.
(Contributed by Stefan O'Rear, 12-Sep-2014.) (Proof shortened by Mario
Carneiro, 15-Apr-2015.)
|
     ♯        
   |
| |
| Theorem | hashfzo 11212 |
Cardinality of a half-open set of integers. (Contributed by Stefan
O'Rear, 15-Aug-2015.)
|
     ♯  ..^ 
    |
| |
| Theorem | hashfzo0 11213 |
Cardinality of a half-open set of integers based at zero. (Contributed by
Stefan O'Rear, 15-Aug-2015.)
|
 ♯  ..^ 
  |
| |
| Theorem | hashfzp1 11214 |
Value of the numeric cardinality of a (possibly empty) integer range.
(Contributed by AV, 19-Jun-2021.)
|
     ♯            |
| |
| Theorem | hashfz0 11215 |
Value of the numeric cardinality of a nonempty range of nonnegative
integers. (Contributed by Alexander van der Vekens, 21-Jul-2018.)
|
 ♯          |
| |
| Theorem | hashxp 11216 |
The size of the Cartesian product of two finite sets is the product of
their sizes. (Contributed by Paul Chapman, 30-Nov-2012.)
|
   ♯     ♯  ♯     |
| |
| Theorem | hashmap 11217 |
The size of the set exponential of two finite sets is the exponential of
their sizes. (This is the original motivation behind the notation for
set exponentiation.) (Contributed by Mario Carneiro, 5-Aug-2014.)
(Proof shortened by AV, 18-Jul-2022.)
|
   ♯     ♯    ♯     |
| |
| Theorem | hashpwfi 11218 |
The number of finite subsets of a finite set is two raised to the power
of the size of the set. For a similar theorem with set size expressed
using equinumerosity, see 2omapfi 7284. For the number of subsets (which
need not be finite) of a set, see pw1mapen 16896. (Contributed by Jim
Kingdon, 5-Jun-2026.)
|
 ♯        ♯     |
| |
| Theorem | fimaxq 11219* |
A finite set of rational numbers has a maximum. (Contributed by Jim
Kingdon, 6-Sep-2022.)
|
   
   |
| |
| Theorem | fiubm 11220* |
Lemma for fiubz 11221 and fiubnn 11222. A general form of those theorems.
(Contributed by Jim Kingdon, 29-Oct-2024.)
|
             |
| |
| Theorem | fiubz 11221* |
A finite set of integers has an upper bound which is an integer.
(Contributed by Jim Kingdon, 29-Oct-2024.)
|
       |
| |
| Theorem | fiubnn 11222* |
A finite set of natural numbers has an upper bound which is a a natural
number. (Contributed by Jim Kingdon, 29-Oct-2024.)
|
       |
| |
| Theorem | resunimafz0 11223 |
The union of a restriction by an image over an open range of nonnegative
integers and a singleton of an ordered pair is a restriction by an image
over an interval of nonnegative integers. (Contributed by Mario
Carneiro, 8-Apr-2015.) (Revised by AV, 20-Feb-2021.)
|
      ..^ ♯        ..^ ♯     
               ..^                       |
| |
| Theorem | fnfz0hash 11224 |
The size of a function on a finite set of sequential nonnegative integers.
(Contributed by Alexander van der Vekens, 25-Jun-2018.)
|
       ♯      |
| |
| Theorem | ffz0hash 11225 |
The size of a function on a finite set of sequential nonnegative integers
equals the upper bound of the sequence increased by 1. (Contributed by
Alexander van der Vekens, 15-Mar-2018.) (Proof shortened by AV,
11-Apr-2021.)
|
           ♯      |
| |
| Theorem | ffzo0hash 11226 |
The size of a function on a half-open range of nonnegative integers.
(Contributed by Alexander van der Vekens, 25-Mar-2018.)
|
   ..^  ♯    |
| |
| Theorem | fnfzo0hash 11227 |
The size of a function on a half-open range of nonnegative integers equals
the upper bound of this range. (Contributed by Alexander van der Vekens,
26-Jan-2018.) (Proof shortened by AV, 11-Apr-2021.)
|
     ..^    ♯    |
| |
| Theorem | sseqn 11228* |
Two ways to express the subsets of a class of a given size. It might
seem that  
♯   would suffice, but that
would require the converse of hashcl 11169 or something similar. Although
each side of the equality would be well defined if we changed
to , they
would give different results for the
(degenerate) case of a negative size, as shown at ssenneg 11229 and
sshashneg 11230. (Contributed by Jim Kingdon, 22-May-2026.)
|
 

    

   ♯     |
| |
| Theorem | ssenneg 11229* |
Subsets of a class of a negative size (a degenerate case). Together
with sshashneg 11230 this shows that sseqn 11228 could not be extended beyond
. (Contributed by Jim Kingdon,
22-May-2026.)
|
  
      
    |
| |
| Theorem | sshashneg 11230* |
Subsets of a class of a negative size (a degenerate case). Together
with ssenneg 11229 this shows that sseqn 11228 could not be extended beyond
. (Contributed by Jim Kingdon,
22-May-2026.)
|
  
    ♯ 
   |
| |
| Theorem | hashfibclem 11231* |
Lemma for hashfibc 11232: inductive step. (Contributed by Mario
Carneiro, 13-Jul-2014.)
|
    
  ♯   ♯     ♯ 
       ♯     
 ♯       
 ♯      |
| |
| Theorem | hashfibc 11232* |
The binomial coefficient counts the number of subsets of a finite set of
a given size. This is Metamath 100 proof #58 (formula for the number of
combinations). For more on the notation for subsets of a given size,
see sseqn 11228. (Contributed by Mario Carneiro,
13-Jul-2014.)
|
    ♯   ♯     ♯ 
    |
| |
| Theorem | hashfacen 11233* |
The number of bijections between two sets is a cardinal invariant.
(Contributed by Mario Carneiro, 21-Jan-2015.)
|
                 |
| |
| Theorem | leisorel 11234 |
Version of isorel 5987 for strictly increasing functions on the
reals.
(Contributed by Mario Carneiro, 6-Apr-2015.) (Revised by Mario Carneiro,
9-Sep-2015.)
|
    

   
    
       |
| |
| Theorem | zfz1isolemsplit 11235 |
Lemma for zfz1iso 11238. Removing one element from an integer
range.
(Contributed by Jim Kingdon, 8-Sep-2022.)
|
        ♯  
    ♯        ♯      |
| |
| Theorem | zfz1isolemiso 11236* |
Lemma for zfz1iso 11238. Adding one element to the order
isomorphism.
(Contributed by Jim Kingdon, 8-Sep-2022.)
|
              ♯                  ♯        ♯          ♯  
          ♯  
         |
| |
| Theorem | zfz1isolem1 11237* |
Lemma for zfz1iso 11238. Existence of an order isomorphism given
the
existence of shorter isomorphisms. (Contributed by Jim Kingdon,
7-Sep-2022.)
|
       
  
    ♯       
   
       
    ♯       |
| |
| Theorem | zfz1iso 11238* |
A finite set of integers has an order isomorphism to a one-based finite
sequence. (Contributed by Jim Kingdon, 3-Sep-2022.)
|
        ♯       |
| |
| Theorem | seq3coll 11239* |
The function contains
a sparse set of nonzero values to be summed.
The function
is an order isomorphism from the set of nonzero
values of to a
1-based finite sequence, and collects these
nonzero values together. Under these conditions, the sum over the
values in
yields the same result as the sum over the original set
. (Contributed
by Mario Carneiro, 2-Apr-2014.) (Revised by Jim
Kingdon, 9-Apr-2023.)
|
          
  
   
         ♯          ♯                
           
              ♯            
   ♯       
                     
      |
| |
| 4.6.10.1 Proper unordered pairs and triples
(sets of size 2 and 3)
|
| |
| Theorem | hash2en 11240 |
Two equivalent ways to say a set has two elements. (Contributed by Jim
Kingdon, 4-Dec-2025.)
|
 
♯     |
| |
| Theorem | hashdmprop2dom 11241 |
A class which contains two ordered pairs with different first components
has at least two elements. (Contributed by AV, 12-Nov-2021.)
|
                          |
| |
| Theorem | hashtpgim 11242 |
The size of an unordered triple of three different elements. (Contributed
by Alexander van der Vekens, 10-Nov-2017.) (Revised by AV, 18-Sep-2021.)
(Revised by Jim Kingdon, 17-Apr-2026.)
|
      ♯   
     |
| |
| Theorem | hashtpglem 11243 |
Lemma for hashtpg 11244. This is one of the three not-equal
conclusions
required for the reverse direction. (Contributed by Jim Kingdon,
18-Apr-2026.)
|
       ♯          |
| |
| Theorem | hashtpg 11244 |
The size of an unordered triple of three different elements. (Contributed
by Alexander van der Vekens, 10-Nov-2017.) (Revised by AV,
18-Sep-2021.)
|
      ♯   
     |
| |
| 4.6.10.2 Functions with a domain containing at
least two different elements
|
| |
| Theorem | fundm2domnop0 11245 |
A function with a domain containing (at least) two different elements is
not an ordered pair. This theorem (which requires that
    needs to be a function
instead of ) is useful
for proofs for extensible structures, see structn0fun 13309. (Contributed
by AV, 12-Oct-2020.) (Revised by AV, 7-Jun-2021.) (Proof shortened by
AV, 15-Nov-2021.)
|
     
     |
| |
| Theorem | fundm2domnop 11246 |
A function with a domain containing (at least) two different elements is
not an ordered pair. (Contributed by AV, 12-Oct-2020.) (Proof
shortened by AV, 9-Jun-2021.)
|
 
     |
| |
| Theorem | fun2dmnop0 11247 |
A function with a domain containing (at least) two different elements is
not an ordered pair. This stronger version of fun2dmnop 11248 (with the
less restrictive requirement that 
   needs to be a
function instead of ) is useful for proofs for extensible
structures, see structn0fun 13309. (Contributed by AV, 21-Sep-2020.)
(Revised by AV, 7-Jun-2021.)
|
              |
| |
| Theorem | fun2dmnop 11248 |
A function with a domain containing (at least) two different elements is
not an ordered pair. (Contributed by AV, 21-Sep-2020.) (Proof
shortened by AV, 9-Jun-2021.)
|
          |
| |
| 4.7 Words over a set
This section is about words (or strings) over a set (alphabet) defined
as finite sequences of symbols (or characters) being elements of the
alphabet. Although it is often required that the underlying set/alphabet be
nonempty, finite and not a proper class, these restrictions are not made in
the current definition df-word 11250. Note that the empty word (i.e.,
the empty set) is the only word over an empty alphabet, see 0wrd0 11275.
The set Word of words over is the free monoid over , where
the monoid law is concatenation and the monoid unit is the empty word.
Besides the definition of words themselves, several operations on words are
defined in this section:
| Name | Reference | Explanation | Example |
Remarks |
| Length (or size) of a word | df-ihash 11164: ♯  |
Operation which determines the number of the symbols
within the word. |
   ..^    Word ♯  |
This is not a special definition for words,
but for arbitrary sets. |
| First symbol of a word | df-fv 5365:     |
Operation which extracts the first symbol of a word. The result is the
symbol at the first place in the sequence representing the word. |
   ..^    Word     |
This is not a special definition for words,
but for arbitrary functions with a half-open range of nonnegative
integers as domain. |
| Last symbol of a word | df-lsw 11295: lastS  |
Operation which extracts the last symbol of a word. The result is the
symbol at the last place in the sequence representing the word. |
   ..^    Word lastS      |
Note that the index of the last symbol is less by 1 than the length of
the word. |
| Subword (or substring) of a word |
df-substr 11363:  substr     |
Operation which extracts a portion of a word. The result is a
consecutive, reindexed part of the sequence representing the word. |
   ..^    Word  substr     Word ♯  substr      |
Note that the last index of the range defining the subword is greater
by 1 than the index of the last symbol of the subword in the sequence
of the original word. |
| Concatenation of two words |
df-concat 11304:  ++  |
Operation combining two words to one new word. The result is a
combined, reindexed sequence build from the sequences representing
the two words. |
 Word Word  ♯  ++    ♯  ♯   |
Note that the index of the first symbol of the second concatenated
word is the length of the first word in the concatenation. |
| Singleton word |
df-s1 11329:     |
Constructor building a word of length 1 from a symbol. |
♯      |
|
Conventions:
- Words are usually represented by class variable
, or if two words
are involved, by and or by and .
- The alphabets are usually represented by class variable
(because
any arbitrary set can be an alphabet), sometimes also by (especially
as codomain of the function representing a word, because the alphabet is the
set of symbols).
- The symbols are usually represented by class variables
or ,
or if two symbols are involved, by and or by and .
- The indices of the sequence representing a word are usually represented
by class variable
, if two indices are involved (especially for
subwords) by and , or by and .
- The length of a word is usually represented by class variables
or .
- The number of positions by which to cyclically shift a word is usually
represented by class variables
or .
|
| |
| 4.7.1 Definitions and basic
theorems
|
| |
| Syntax | cword 11249 |
Syntax for the Word operator.
|
Word  |
| |
| Definition | df-word 11250* |
Define the class of words over a set. A word (sometimes also called a
string) is a finite sequence of symbols from a set (alphabet)
.
Definition in Section 9.1 of [AhoHopUll] p. 318. The domain is forced
to be an initial segment of so that two words with the same
symbols in the same order be equal. The set Word is sometimes
denoted by S*, using the Kleene star, although the Kleene star, or
Kleene closure, is sometimes reserved to denote an operation on
languages. The set Word equipped with concatenation is the free
monoid over ,
and the monoid unit is the empty word. (Contributed
by FL, 14-Jan-2014.) (Revised by Stefan O'Rear, 14-Aug-2015.) (Revised
by Mario Carneiro, 26-Feb-2016.)
|
Word
     ..^     |
| |
| Theorem | iswrd 11251* |
Property of being a word over a set with an existential quantifier over
the length. (Contributed by Stefan O'Rear, 15-Aug-2015.) (Revised by
Mario Carneiro, 26-Feb-2016.) (Proof shortened by AV, 13-May-2020.)
|
 Word     ..^     |
| |
| Theorem | wrdval 11252* |
Value of the set of words over a set. (Contributed by Stefan O'Rear,
10-Aug-2015.) (Revised by Mario Carneiro, 26-Feb-2016.)
|
 Word    ..^    |
| |
| Theorem | lencl 11253 |
The length of a word is a nonnegative integer. This corresponds to the
definition in Section 9.1 of [AhoHopUll] p. 318. (Contributed by Stefan
O'Rear, 27-Aug-2015.)
|
 Word ♯    |
| |
| Theorem | iswrdinn0 11254 |
A zero-based sequence is a word. (Contributed by Stefan O'Rear,
15-Aug-2015.) (Revised by Mario Carneiro, 26-Feb-2016.) (Revised by
Jim Kingdon, 16-Aug-2025.)
|
     ..^   
Word   |
| |
| Theorem | wrdf 11255 |
A word is a zero-based sequence with a recoverable upper limit.
(Contributed by Stefan O'Rear, 15-Aug-2015.)
|
 Word    ..^ ♯       |
| |
| Theorem | iswrdiz 11256 |
A zero-based sequence is a word. In iswrdinn0 11254 we can specify a length
as an nonnegative integer. However, it will occasionally be helpful to
allow a negative length, as well as zero, to specify an empty sequence.
(Contributed by Jim Kingdon, 18-Aug-2025.)
|
     ..^   
Word   |
| |
| Theorem | wrddm 11257 |
The indices of a word (i.e. its domain regarded as function) are elements
of an open range of nonnegative integers (of length equal to the length of
the word). (Contributed by AV, 2-May-2020.)
|
 Word  ..^ ♯     |
| |
| Theorem | sswrd 11258 |
The set of words respects ordering on the base set. (Contributed by
Stefan O'Rear, 15-Aug-2015.) (Revised by Mario Carneiro, 26-Feb-2016.)
(Proof shortened by AV, 13-May-2020.)
|
 Word
Word   |
| |
| Theorem | snopiswrd 11259 |
A singleton of an ordered pair (with 0 as first component) is a word.
(Contributed by AV, 23-Nov-2018.) (Proof shortened by AV,
18-Apr-2021.)
|
      Word
  |
| |
| Theorem | wrdexg 11260 |
The set of words over a set is a set. (Contributed by Mario Carneiro,
26-Feb-2016.) (Proof shortened by JJ, 18-Nov-2022.)
|
 Word   |
| |
| Theorem | wrdexb 11261 |
The set of words over a set is a set, bidirectional version.
(Contributed by Mario Carneiro, 26-Feb-2016.) (Proof shortened by AV,
23-Nov-2018.)
|
 Word   |
| |
| Theorem | wrdexi 11262 |
The set of words over a set is a set, inference form. (Contributed by
AV, 23-May-2021.)
|
Word
 |
| |
| Theorem | wrdsymbcl 11263 |
A symbol within a word over an alphabet belongs to the alphabet.
(Contributed by Alexander van der Vekens, 28-Jun-2018.)
|
  Word  ..^ ♯          |
| |
| Theorem | wrdfn 11264 |
A word is a function with a zero-based sequence of integers as domain.
(Contributed by Alexander van der Vekens, 13-Apr-2018.)
|
 Word  ..^ ♯     |
| |
| Theorem | wrdv 11265 |
A word over an alphabet is a word over the universal class. (Contributed
by AV, 8-Feb-2021.) (Proof shortened by JJ, 18-Nov-2022.)
|
 Word Word
  |
| |
| Theorem | wrdlndm 11266 |
The length of a word is not in the domain of the word (regarded as a
function). (Contributed by AV, 3-Mar-2021.) (Proof shortened by JJ,
18-Nov-2022.)
|
 Word ♯    |
| |
| Theorem | iswrdsymb 11267* |
An arbitrary word is a word over an alphabet if all of its symbols
belong to the alphabet. (Contributed by AV, 23-Jan-2021.)
|
  Word   ..^ ♯       
 Word   |
| |
| Theorem | wrdfin 11268 |
A word is a finite set. (Contributed by Stefan O'Rear, 2-Nov-2015.)
(Proof shortened by AV, 18-Nov-2018.)
|
 Word   |
| |
| Theorem | lennncl 11269 |
The length of a nonempty word is a positive integer. (Contributed by
Mario Carneiro, 1-Oct-2015.)
|
  Word  ♯    |
| |
| Theorem | wrdffz 11270 |
A word is a function from a finite interval of integers. (Contributed by
AV, 10-Feb-2021.)
|
 Word       ♯        |
| |
| Theorem | wrdeq 11271 |
Equality theorem for the set of words. (Contributed by Mario Carneiro,
26-Feb-2016.)
|
 Word Word
  |
| |
| Theorem | wrdeqi 11272 |
Equality theorem for the set of words, inference form. (Contributed by
AV, 23-May-2021.)
|
Word
Word  |
| |
| Theorem | iswrddm0 11273 |
A function with empty domain is a word. (Contributed by AV,
13-Oct-2018.)
|
     Word
  |
| |
| Theorem | wrd0 11274 |
The empty set is a word (the empty word, frequently denoted ε in
this context). This corresponds to the definition in Section 9.1 of
[AhoHopUll] p. 318. (Contributed by
Stefan O'Rear, 15-Aug-2015.) (Proof
shortened by AV, 13-May-2020.)
|
Word  |
| |
| Theorem | 0wrd0 11275 |
The empty word is the only word over an empty alphabet. (Contributed by
AV, 25-Oct-2018.)
|
 Word
  |
| |
| Theorem | ffz0iswrdnn0 11276 |
A sequence with zero-based indices is a word. (Contributed by AV,
31-Jan-2018.) (Proof shortened by AV, 13-Oct-2018.) (Proof shortened by
JJ, 18-Nov-2022.)
|
          
Word   |
| |
| Theorem | wrdsymb 11277 |
A word is a word over the symbols it consists of. (Contributed by AV,
1-Dec-2022.)
|
 Word Word
    ..^ ♯      |
| |
| Theorem | nfwrd 11278 |
Hypothesis builder for Word . (Contributed by Mario Carneiro,
26-Feb-2016.)
|
   Word  |
| |
| Theorem | csbwrdg 11279* |
Class substitution for the symbols of a word. (Contributed by Alexander
van der Vekens, 15-Jul-2018.)
|
   Word Word
  |
| |
| Theorem | wrdnval 11280* |
Words of a fixed length are mappings from a fixed half-open integer
interval. (Contributed by Alexander van der Vekens, 25-Mar-2018.)
(Proof shortened by AV, 13-May-2020.)
|
    Word
♯ 
   ..^    |
| |
| Theorem | wrdmap 11281 |
Words as a mapping. (Contributed by Thierry Arnoux, 4-Mar-2020.)
|
     Word
♯ 
   ..^     |
| |
| Theorem | wrdsymb0 11282 |
A symbol at a position "outside" of a word. (Contributed by
Alexander van
der Vekens, 26-May-2018.) (Proof shortened by AV, 2-May-2020.)
|
  Word    ♯  
       |
| |
| Theorem | wrdlenge1n0 11283 |
A word with length at least 1 is not empty. (Contributed by AV,
14-Oct-2018.)
|
 Word  ♯     |
| |
| Theorem | len0nnbi 11284 |
The length of a word is a positive integer iff the word is not empty.
(Contributed by AV, 22-Mar-2022.)
|
 Word  ♯     |
| |
| Theorem | wrdlenge2n0 11285 |
A word with length at least 2 is not empty. (Contributed by AV,
18-Jun-2018.) (Proof shortened by AV, 14-Oct-2018.)
|
  Word ♯     |
| |
| Theorem | wrdsymb1 11286 |
The first symbol of a nonempty word over an alphabet belongs to the
alphabet. (Contributed by Alexander van der Vekens, 28-Jun-2018.)
|
  Word ♯         |
| |
| Theorem | wrdlen1 11287* |
A word of length 1 starts with a symbol. (Contributed by AV,
20-Jul-2018.) (Proof shortened by AV, 19-Oct-2018.)
|
  Word ♯   
      |
| |
| Theorem | fstwrdne 11288 |
The first symbol of a nonempty word is element of the alphabet for the
word. (Contributed by AV, 28-Sep-2018.) (Proof shortened by AV,
14-Oct-2018.)
|
  Word        |
| |
| Theorem | fstwrdne0 11289 |
The first symbol of a nonempty word is element of the alphabet for the
word. (Contributed by AV, 29-Sep-2018.) (Proof shortened by AV,
14-Oct-2018.)
|
   Word ♯          |
| |
| Theorem | eqwrd 11290* |
Two words are equal iff they have the same length and the same symbol at
each position. (Contributed by AV, 13-Apr-2018.) (Revised by JJ,
30-Dec-2023.)
|
  Word Word    ♯ 
♯    ..^ ♯                |
| |
| Theorem | elovmpowrd 11291* |
Implications for the value of an operation defined by the maps-to
notation with a class abstraction of words as a result having an
element. Note that may depend on as well as on and
. (Contributed
by Alexander van der Vekens, 15-Jul-2018.)
|
   Word        
Word    |
| |
| Theorem | wrdred1 11292 |
A word truncated by a symbol is a word. (Contributed by AV,
29-Jan-2021.)
|
 Word   ..^ ♯     Word
  |
| |
| Theorem | wrdred1hash 11293 |
The length of a word truncated by a symbol. (Contributed by Alexander van
der Vekens, 1-Nov-2017.) (Revised by AV, 29-Jan-2021.)
|
  Word ♯   ♯   ..^ ♯       ♯     |
| |
| 4.7.2 Last symbol of a word
|
| |
| Syntax | clsw 11294 |
Extend class notation with the Last Symbol of a word.
|
lastS |
| |
| Definition | df-lsw 11295 |
Extract the last symbol of a word. May be not meaningful for other sets
which are not words. The name lastS (as abbreviation of
"lastSymbol")
is a compromise between usually used names for corresponding functions in
computer programs (as last() or lastChar()), the terminology used for
words in set.mm ("symbol" instead of "character") and
brevity ("lastS" is
shorter than "lastChar" and "lastSymbol"). Labels of
theorems about last
symbols of a word will contain the abbreviation "lsw" (Last
Symbol of a
Word). (Contributed by Alexander van der Vekens, 18-Mar-2018.)
|
lastS      ♯      |
| |
| Theorem | lswwrd 11296 |
Extract the last symbol of a word. (Contributed by Alexander van der
Vekens, 18-Mar-2018.) (Revised by Jim Kingdon, 18-Dec-2025.)
|
 Word lastS      ♯      |
| |
| Theorem | lsw0 11297 |
The last symbol of an empty word does not exist. (Contributed by
Alexander van der Vekens, 19-Mar-2018.) (Proof shortened by AV,
2-May-2020.)
|
  Word ♯   lastS    |
| |
| Theorem | lsw0g 11298 |
The last symbol of an empty word does not exist. (Contributed by
Alexander van der Vekens, 11-Nov-2018.)
|
lastS   |
| |
| Theorem | lsw1 11299 |
The last symbol of a word of length 1 is the first symbol of this word.
(Contributed by Alexander van der Vekens, 19-Mar-2018.)
|
  Word ♯   lastS        |
| |
| Theorem | lswcl 11300 |
Closure of the last symbol: the last symbol of a nonempty word belongs to
the alphabet for the word. (Contributed by AV, 2-Aug-2018.) (Proof
shortened by AV, 29-Apr-2020.)
|
  Word  lastS    |