Theorem List for Intuitionistic Logic Explorer - 11101-11200 *Has distinct variable
group(s)
| Type | Label | Description |
| Statement |
| |
| Theorem | s1leng 11101 |
Length of a singleton word. (Contributed by Stefan O'Rear, 15-Aug-2015.)
(Revised by Mario Carneiro, 26-Feb-2016.)
|
 ♯        |
| |
| Theorem | s1dmg 11102 |
The domain of a singleton word is a singleton. (Contributed by AV,
9-Jan-2020.)
|
         |
| |
| Theorem | s1fv 11103 |
Sole symbol of a singleton word. (Contributed by Stefan O'Rear,
15-Aug-2015.) (Revised by Mario Carneiro, 26-Feb-2016.)
|
           |
| |
| Theorem | lsws1 11104 |
The last symbol of a singleton word is its symbol. (Contributed by AV,
22-Oct-2018.)
|
 lastS        |
| |
| Theorem | eqs1 11105 |
A word of length 1 is a singleton word. (Contributed by Stefan O'Rear,
23-Aug-2015.) (Proof shortened by AV, 1-May-2020.)
|
  Word ♯  
          |
| |
| Theorem | wrdl1exs1 11106* |
A word of length 1 is a singleton word. (Contributed by AV,
24-Jan-2021.)
|
  Word ♯   
      |
| |
| Theorem | wrdl1s1 11107 |
A word of length 1 is a singleton word consisting of the first symbol of
the word. (Contributed by AV, 22-Jul-2018.) (Proof shortened by AV,
14-Oct-2018.)
|
       Word ♯ 
        |
| |
| Theorem | s111 11108 |
The singleton word function is injective. (Contributed by Mario Carneiro,
1-Oct-2015.) (Revised by Mario Carneiro, 26-Feb-2016.)
|
               |
| |
| 4.7.5 Concatenations with singleton
words
|
| |
| Theorem | ccatws1cl 11109 |
The concatenation of a word with a singleton word is a word. (Contributed
by Alexander van der Vekens, 22-Sep-2018.)
|
  Word   ++      Word   |
| |
| Theorem | ccat2s1cl 11110 |
The concatenation of two singleton words is a word. (Contributed by
Alexander van der Vekens, 22-Sep-2018.)
|
        ++      Word
  |
| |
| Theorem | ccatws1leng 11111 |
The length of the concatenation of a word with a singleton word.
(Contributed by Alexander van der Vekens, 22-Sep-2018.) (Revised by AV,
4-Mar-2022.)
|
  Word  ♯  ++        ♯     |
| |
| Theorem | ccatws1lenp1bg 11112 |
The length of a word is iff the length of the concatenation of the
word with a singleton word is . (Contributed by AV,
4-Mar-2022.)
|
  Word   ♯  ++         ♯     |
| |
| Theorem | ccatw2s1cl 11113 |
The concatenation of a word with two singleton words is a word.
(Contributed by Alexander van der Vekens, 22-Sep-2018.)
|
  Word    ++      ++      Word   |
| |
| Theorem | ccats1val1g 11114 |
Value of a symbol in the left half of a word concatenated with a single
symbol. (Contributed by Alexander van der Vekens, 5-Aug-2018.) (Revised
by JJ, 20-Jan-2024.)
|
  Word
 ..^ ♯      ++               |
| |
| Theorem | ccats1val2 11115 |
Value of the symbol concatenated with a word. (Contributed by Alexander
van der Vekens, 5-Aug-2018.) (Proof shortened by Alexander van der
Vekens, 14-Oct-2018.)
|
  Word
♯     ++           |
| |
| Theorem | ccat1st1st 11116 |
The first symbol of a word concatenated with its first symbol is the first
symbol of the word. This theorem holds even if is the empty word.
(Contributed by AV, 26-Mar-2022.)
|
 Word   ++                   |
| |
| Theorem | ccatws1ls 11117 |
The last symbol of the concatenation of a word with a singleton word is
the symbol of the singleton word. (Contributed by AV, 29-Sep-2018.)
(Proof shortened by AV, 14-Oct-2018.)
|
  Word    ++        ♯  
  |
| |
| Theorem | lswccats1 11118 |
The last symbol of a word concatenated with a singleton word is the symbol
of the singleton word. (Contributed by AV, 6-Aug-2018.)
|
  Word  lastS  ++         |
| |
| Theorem | lswccats1fst 11119 |
The last symbol of a nonempty word concatenated with its first symbol is
the first symbol. (Contributed by AV, 28-Jun-2018.) (Proof shortened by
AV, 1-May-2020.)
|
  Word ♯   lastS  ++             ++               |
| |
| Theorem | ccatw2s1p2 11120 |
Extract the second of two single symbols concatenated with a word.
(Contributed by Alexander van der Vekens, 22-Sep-2018.) (Proof shortened
by AV, 1-May-2020.)
|
   Word
♯ 
   
   ++      ++        
    |
| |
| 4.7.6 Subwords/substrings
|
| |
| Syntax | csubstr 11121 |
Syntax for the subword operator.
|
substr |
| |
| Definition | df-substr 11122* |
Define an operation which extracts portions (called subwords or
substrings) of words. Definition in Section 9.1 of [AhoHopUll]
p. 318. (Contributed by Stefan O'Rear, 15-Aug-2015.)
|
substr  
         ..^        ..^              
           |
| |
| Theorem | fzowrddc 11123 |
Decidability of whether a range of integers is a subset of a word's
domain. (Contributed by Jim Kingdon, 23-Dec-2025.)
|
  Word  DECID  ..^   |
| |
| Theorem | swrdval 11124* |
Value of a subword. (Contributed by Stefan O'Rear, 15-Aug-2015.)
|
    substr
       ..^
 
 ..^              |
| |
| Theorem | swrd00g 11125 |
A zero length substring. (Contributed by Stefan O'Rear,
27-Aug-2015.)
|
    substr       |
| |
| Theorem | swrdclg 11126 |
Closure of the subword extractor. (Contributed by Stefan O'Rear,
16-Aug-2015.) (Revised by Mario Carneiro, 26-Feb-2016.)
|
  Word   substr
    Word   |
| |
| Theorem | swrdval2 11127* |
Value of the subword extractor in its intended domain. (Contributed by
Stefan O'Rear, 15-Aug-2015.) (Proof shortened by AV, 2-May-2020.)
|
  Word    
   ♯     substr       ..^      
     |
| |
| Theorem | swrdlen 11128 |
Length of an extracted subword. (Contributed by Stefan O'Rear,
16-Aug-2015.)
|
  Word    
   ♯    ♯  substr
         |
| |
| Theorem | swrdfv 11129 |
A symbol in an extracted subword, indexed using the subword's indices.
(Contributed by Stefan O'Rear, 16-Aug-2015.)
|
   Word
       ♯   
 ..^
     substr       
        |
| |
| Theorem | swrdfv0 11130 |
The first symbol in an extracted subword. (Contributed by AV,
27-Apr-2022.)
|
  Word  ..^
   ♯      substr
             |
| |
| Theorem | swrdf 11131 |
A subword of a word is a function from a half-open range of nonnegative
integers of the same length as the subword to the set of symbols for the
original word. (Contributed by AV, 13-Nov-2018.)
|
  Word    
   ♯     substr        ..^       |
| |
| Theorem | swrdvalfn 11132 |
Value of the subword extractor as function with domain. (Contributed by
Alexander van der Vekens, 28-Mar-2018.) (Proof shortened by AV,
2-May-2020.)
|
  Word    
   ♯     substr      ..^     |
| |
| Theorem | swrdrn 11133 |
The range of a subword of a word is a subset of the set of symbols for the
word. (Contributed by AV, 13-Nov-2018.)
|
  Word    
   ♯     substr       |
| |
| Theorem | swrdlend 11134 |
The value of the subword extractor is the empty set (undefined) if the
range is not valid. (Contributed by Alexander van der Vekens,
16-Mar-2018.) (Proof shortened by AV, 2-May-2020.)
|
  Word    substr
       |
| |
| Theorem | swrdnd 11135 |
The value of the subword extractor is the empty set (undefined) if the
range is not valid. (Contributed by Alexander van der Vekens,
16-Mar-2018.) (Proof shortened by AV, 2-May-2020.)
|
  Word    ♯    substr        |
| |
| Theorem | swrd0g 11136 |
A subword of an empty set is always the empty set. (Contributed by AV,
31-Mar-2018.) (Revised by AV, 20-Oct-2018.) (Proof shortened by AV,
2-May-2020.)
|
    substr       |
| |
| Theorem | swrdrlen 11137 |
Length of a right-anchored subword. (Contributed by Alexander van der
Vekens, 5-Apr-2018.)
|
  Word    ♯    ♯  substr   ♯      ♯     |
| |
| Theorem | swrdlen2 11138 |
Length of an extracted subword. (Contributed by AV, 5-May-2020.)
|
  Word       ♯  
♯  substr          |
| |
| Theorem | swrdfv2 11139 |
A symbol in an extracted subword, indexed using the word's indices.
(Contributed by AV, 5-May-2020.)
|
   Word

    
♯  
 ..^    substr                |
| |
| Theorem | swrdwrdsymbg 11140 |
A subword is a word over the symbols it consists of. (Contributed by
AV, 2-Dec-2022.)
|
  Word    
   ♯     substr     Word     ..^    |
| |
| Theorem | swrdsb0eq 11141 |
Two subwords with the same bounds are equal if the range is not valid.
(Contributed by AV, 4-May-2020.)
|
   Word
Word  
 
 substr  
   substr       |
| |
| Theorem | swrdsbslen 11142 |
Two subwords with the same bounds have the same length. (Contributed by
AV, 4-May-2020.)
|
   Word
Word  
  ♯ 
♯    ♯  substr      ♯  substr  
     |
| |
| Theorem | swrdspsleq 11143* |
Two words have a common subword (starting at the same position with the
same length) iff they have the same symbols at each position.
(Contributed by Alexander van der Vekens, 7-Aug-2018.) (Proof shortened
by AV, 7-May-2020.)
|
   Word
Word  
  ♯ 
♯      substr      substr       ..^             |
| |
| Theorem | swrds1 11144 |
Extract a single symbol from a word. (Contributed by Stefan O'Rear,
23-Aug-2015.)
|
  Word  ..^ ♯     substr                 |
| |
| Theorem | swrdlsw 11145 |
Extract the last single symbol from a word. (Contributed by Alexander van
der Vekens, 23-Sep-2018.)
|
  Word  
substr   ♯    ♯      lastS      |
| |
| Theorem | ccatswrd 11146 |
Joining two adjacent subwords makes a longer subword. (Contributed by
Stefan O'Rear, 20-Aug-2015.)
|
  Word         
   ♯       substr     ++  substr       substr       |
| |
| Theorem | swrdccat2 11147 |
Recover the right half of a concatenated word. (Contributed by Mario
Carneiro, 27-Sep-2015.)
|
  Word Word    ++  substr
 ♯  
 ♯  ♯       |
| |
| 4.7.7 Prefixes of a word
|
| |
| Syntax | cpfx 11148 |
Syntax for the prefix operator.
|
prefix |
| |
| Definition | df-pfx 11149* |
Define an operation which extracts prefixes of words, i.e. subwords (or
substrings) starting at the beginning of a word (or string). In other
words,  prefix  is the prefix of the word of length
. Definition
in Section 9.1 of [AhoHopUll] p. 318. See
also
Wikipedia "Substring" https://en.wikipedia.org/wiki/Substring#Prefix.
(Contributed by AV, 2-May-2020.)
|
prefix  
 substr       |
| |
| Theorem | pfxval 11150 |
Value of a prefix operation. (Contributed by AV, 2-May-2020.)
|
    prefix 
 substr       |
| |
| Theorem | pfx00g 11151 |
The zero length prefix is the empty set. (Contributed by AV,
2-May-2020.)
|
  prefix
   |
| |
| Theorem | pfx0g 11152 |
A prefix of an empty set is always the empty set. (Contributed by AV,
3-May-2020.)
|
  prefix    |
| |
| Theorem | fnpfx 11153 |
The domain of the prefix extractor. (Contributed by Jim Kingdon,
8-Jan-2026.)
|
prefix    |
| |
| Theorem | pfxclg 11154 |
Closure of the prefix extractor. (Contributed by AV, 2-May-2020.)
|
  Word   prefix 
Word   |
| |
| Theorem | pfxclz 11155 |
Closure of the prefix extractor. This extends pfxclg 11154 from to
(negative
lengths are trivial, resulting in the empty word).
(Contributed by Jim Kingdon, 8-Jan-2026.)
|
  Word   prefix 
Word   |
| |
| Theorem | pfxmpt 11156* |
Value of the prefix extractor as a mapping. (Contributed by AV,
2-May-2020.)
|
  Word    ♯    
prefix    ..^        |
| |
| Theorem | pfxres 11157 |
Value of the prefix extractor as the restriction of a word.
(Contributed by Stefan O'Rear, 24-Aug-2015.) (Revised by AV,
2-May-2020.)
|
  Word    ♯    
prefix    ..^    |
| |
| Theorem | pfxf 11158 |
A prefix of a word is a function from a half-open range of nonnegative
integers of the same length as the prefix to the set of symbols for the
original word. (Contributed by AV, 2-May-2020.)
|
  Word    ♯    
prefix     ..^     |
| |
| Theorem | pfxfn 11159 |
Value of the prefix extractor as function with domain. (Contributed by
AV, 2-May-2020.)
|
  Word    ♯    
prefix   ..^   |
| |
| Theorem | pfxfv 11160 |
A symbol in a prefix of a word, indexed using the prefix' indices.
(Contributed by Alexander van der Vekens, 16-Jun-2018.) (Revised by AV,
3-May-2020.)
|
  Word    ♯  
 ..^ 
  prefix           |
| |
| Theorem | pfxlen 11161 |
Length of a prefix. (Contributed by Stefan O'Rear, 24-Aug-2015.)
(Revised by AV, 2-May-2020.)
|
  Word    ♯    ♯  prefix  
  |
| |
| Theorem | pfxid 11162 |
A word is a prefix of itself. (Contributed by Stefan O'Rear,
16-Aug-2015.) (Revised by AV, 2-May-2020.)
|
 Word  prefix
♯  
  |
| |
| Theorem | pfxrn 11163 |
The range of a prefix of a word is a subset of the set of symbols for the
word. (Contributed by AV, 2-May-2020.)
|
  Word    ♯     prefix
   |
| |
| Theorem | pfxn0 11164 |
A prefix consisting of at least one symbol is not empty. (Contributed by
Alexander van der Vekens, 4-Aug-2018.) (Revised by AV, 2-May-2020.)
|
  Word
♯  
 prefix 
  |
| |
| Theorem | pfxnd 11165 |
The value of a prefix operation for a length argument larger than the word
length is the empty set. (This is due to our definition of function
values for out-of-domain arguments, see ndmfvg 5620). (Contributed by AV,
3-May-2020.)
|
  Word ♯    prefix    |
| |
| Theorem | pfxwrdsymbg 11166 |
A prefix of a word is a word over the symbols it consists of.
(Contributed by AV, 3-Dec-2022.)
|
  Word   prefix 
Word     ..^    |
| |
| Theorem | addlenpfx 11167 |
The sum of the lengths of two parts of a word is the length of the word.
(Contributed by AV, 21-Oct-2018.) (Revised by AV, 3-May-2020.)
|
  Word    ♯     ♯  prefix   ♯  substr
  ♯      ♯    |
| |
| Theorem | pfxfv0 11168 |
The first symbol of a prefix is the first symbol of the word.
(Contributed by Alexander van der Vekens, 16-Jun-2018.) (Revised by AV,
3-May-2020.)
|
  Word    ♯      prefix           |
| |
| Theorem | pfxtrcfv 11169 |
A symbol in a word truncated by one symbol. (Contributed by Alexander van
der Vekens, 16-Jun-2018.) (Revised by AV, 3-May-2020.)
|
  Word  ..^ ♯       prefix  ♯      
      |
| |
| Theorem | pfxtrcfv0 11170 |
The first symbol in a word truncated by one symbol. (Contributed by
Alexander van der Vekens, 16-Jun-2018.) (Revised by AV, 3-May-2020.)
|
  Word ♯     prefix  ♯      
      |
| |
| Theorem | pfxfvlsw 11171 |
The last symbol in a nonempty prefix of a word. (Contributed by Alexander
van der Vekens, 24-Jun-2018.) (Revised by AV, 3-May-2020.)
|
  Word    ♯    lastS  prefix  
        |
| |
| Theorem | pfxeq 11172* |
The prefixes of two words are equal iff they have the same length and
the same symbols at each position. (Contributed by Alexander van der
Vekens, 7-Aug-2018.) (Revised by AV, 4-May-2020.)
|
   Word
Word  
  ♯ 
♯      prefix 
 prefix     ..^              |
| |
| Theorem | pfxtrcfvl 11173 |
The last symbol in a word truncated by one symbol. (Contributed by AV,
16-Jun-2018.) (Revised by AV, 5-May-2020.)
|
  Word ♯   lastS  prefix  ♯         ♯      |
| |
| Theorem | pfxsuffeqwrdeq 11174 |
Two words are equal if and only if they have the same prefix and the
same suffix. (Contributed by Alexander van der Vekens, 23-Sep-2018.)
(Revised by AV, 5-May-2020.)
|
  Word Word
 ..^ ♯    
 ♯ 
♯    prefix 
 prefix   substr   ♯     substr   ♯         |
| |
| Theorem | pfxsuff1eqwrdeq 11175 |
Two (nonempty) words are equal if and only if they have the same prefix
and the same single symbol suffix. (Contributed by Alexander van der
Vekens, 23-Sep-2018.) (Revised by AV, 6-May-2020.)
|
  Word Word
♯  
  ♯ 
♯    prefix  ♯     prefix  ♯    lastS  lastS       |
| |
| Theorem | disjwrdpfx 11176* |
Sets of words are disjoint if each set contains exactly the extensions
of distinct words of a fixed length. Remark: A word is called an
"extension" of a word if is a prefix of .
(Contributed by AV, 29-Jul-2018.) (Revised by AV, 6-May-2020.)
|
Disj  Word  prefix 
  |
| |
| Theorem | ccatpfx 11177 |
Concatenating a prefix with an adjacent subword makes a longer prefix.
(Contributed by AV, 7-May-2020.)
|
  Word    
   ♯      prefix
 ++ 
substr       prefix
   |
| |
| Theorem | pfxccat1 11178 |
Recover the left half of a concatenated word. (Contributed by Mario
Carneiro, 27-Sep-2015.) (Revised by AV, 6-May-2020.)
|
  Word Word    ++  prefix
♯  
  |
| |
| Theorem | pfx1 11179 |
The prefix of length one of a nonempty word expressed as a singleton word.
(Contributed by AV, 15-May-2020.)
|
  Word  
prefix            |
| |
| 4.7.8 Subwords of subwords
|
| |
| Theorem | swrdswrdlem 11180 |
Lemma for swrdswrd 11181. (Contributed by Alexander van der Vekens,
4-Apr-2018.)
|
   Word
   ♯  
     
     
         Word  
     
     ♯      |
| |
| Theorem | swrdswrd 11181 |
A subword of a subword is a subword. (Contributed by Alexander van der
Vekens, 4-Apr-2018.)
|
  Word    ♯  
    
       
         substr     substr
     substr     
      |
| |
| Theorem | pfxswrd 11182 |
A prefix of a subword is a subword. (Contributed by AV, 2-Apr-2018.)
(Revised by AV, 8-May-2020.)
|
  Word    ♯  
    
      
  substr     prefix   substr   
      |
| |
| Theorem | swrdpfx 11183 |
A subword of a prefix is a subword. (Contributed by Alexander van der
Vekens, 6-Apr-2018.) (Revised by AV, 8-May-2020.)
|
  Word    ♯                 prefix  substr      substr        |
| |
| Theorem | pfxpfx 11184 |
A prefix of a prefix is a prefix. (Contributed by Alexander van der
Vekens, 7-Apr-2018.) (Revised by AV, 8-May-2020.)
|
  Word    ♯  
    
  prefix  prefix   prefix    |
| |
| Theorem | pfxpfxid 11185 |
A prefix of a prefix with the same length is the original prefix. In
other words, the operation "prefix of length " is idempotent.
(Contributed by AV, 5-Apr-2018.) (Revised by AV, 8-May-2020.)
|
  Word    ♯      prefix  prefix   prefix    |
| |
| 4.7.9 Subwords and concatenations
|
| |
| Theorem | pfxcctswrd 11186 |
The concatenation of the prefix of a word and the rest of the word yields
the word itself. (Contributed by AV, 21-Oct-2018.) (Revised by AV,
9-May-2020.)
|
  Word    ♯      prefix  ++  substr
  ♯       |
| |
| Theorem | lenpfxcctswrd 11187 |
The length of the concatenation of the prefix of a word and the rest of
the word is the length of the word. (Contributed by AV, 21-Oct-2018.)
(Revised by AV, 9-May-2020.)
|
  Word    ♯    ♯   prefix  ++
 substr  
♯      ♯    |
| |
| Theorem | lenrevpfxcctswrd 11188 |
The length of the concatenation of the rest of a word and the prefix of
the word is the length of the word. (Contributed by Alexander van der
Vekens, 1-Apr-2018.) (Revised by AV, 9-May-2020.)
|
  Word    ♯    ♯   substr   ♯    ++  prefix    ♯    |
| |
| Theorem | pfxlswccat 11189 |
Reconstruct a nonempty word from its prefix and last symbol. (Contributed
by Alexander van der Vekens, 5-Aug-2018.) (Revised by AV, 9-May-2020.)
|
  Word    prefix  ♯    ++   lastS       |
| |
| Theorem | ccats1pfxeq 11190 |
The last symbol of a word concatenated with the word with the last symbol
removed results in the word itself. (Contributed by Alexander van der
Vekens, 24-Oct-2018.) (Revised by AV, 9-May-2020.)
|
  Word Word ♯   ♯ 
 
  prefix
♯  

++   lastS        |
| |
| Theorem | ccats1pfxeqrex 11191* |
There exists a symbol such that its concatenation after the prefix
obtained by deleting the last symbol of a nonempty word results in the
word itself. (Contributed by AV, 5-Oct-2018.) (Revised by AV,
9-May-2020.)
|
  Word Word ♯   ♯ 
 
  prefix
♯  
  ++         |
| |
| Theorem | ccatopth 11192 |
An opth 4289-like theorem for recovering the two halves of
a concatenated
word. (Contributed by Mario Carneiro, 1-Oct-2015.) (Proof shortened by
AV, 12-Oct-2022.)
|
   Word
Word   Word
Word  ♯ 
♯  
  ++   ++       |
| |
| Theorem | ccatopth2 11193 |
An opth 4289-like theorem for recovering the two halves of
a concatenated
word. (Contributed by Mario Carneiro, 1-Oct-2015.)
|
   Word
Word   Word
Word  ♯ 
♯  
  ++   ++       |
| |
| Theorem | ccatlcan 11194 |
Concatenation of words is left-cancellative. (Contributed by Mario
Carneiro, 2-Oct-2015.)
|
  Word Word Word
   ++ 
 ++ 
   |
| |
| Theorem | ccatrcan 11195 |
Concatenation of words is right-cancellative. (Contributed by Mario
Carneiro, 2-Oct-2015.)
|
  Word Word Word
   ++ 
 ++ 
   |
| |
| Theorem | wrdeqs1cat 11196 |
Decompose a nonempty word by separating off the first symbol.
(Contributed by Stefan O'Rear, 25-Aug-2015.) (Revised by Mario Carneiro,
1-Oct-2015.) (Proof shortened by AV, 12-Oct-2022.)
|
  Word 
         ++  substr   ♯       |
| |
| Theorem | cats1un 11197 |
Express a word with an extra symbol as the union of the word and the new
value. (Contributed by Mario Carneiro, 28-Feb-2016.)
|
  Word   ++         ♯        |
| |
| Theorem | wrdind 11198* |
Perform induction over the structure of a word. (Contributed by Mario
Carneiro, 27-Sep-2015.) (Revised by Mario Carneiro, 26-Feb-2016.)
(Proof shortened by AV, 12-Oct-2022.)
|
    
   
 ++         
     Word
     Word   |
| |
| Theorem | wrd2ind 11199* |
Perform induction over the structure of two words of the same length.
(Contributed by AV, 23-Jan-2019.) (Proof shortened by AV,
12-Oct-2022.)
|
        
      ++     
 ++          
   
      Word   Word  ♯  ♯  
     Word
Word ♯  ♯  
  |
| |
| 4.8 Elementary real and complex
functions
|
| |
| 4.8.1 The "shift" operation
|
| |
| Syntax | cshi 11200 |
Extend class notation with function shifter.
|
 |