Theorem List for Intuitionistic Logic Explorer - 12101-12200 *Has distinct variable
group(s)
| Type | Label | Description |
| Statement |
| |
| Theorem | divalglemqt 12101 |
Lemma for divalg 12106. The
case involved in
showing uniqueness.
(Contributed by Jim Kingdon, 5-Dec-2021.)
|
               
   
     |
| |
| Theorem | divalglemnqt 12102 |
Lemma for divalg 12106. The case
involved in showing uniqueness.
(Contributed by Jim Kingdon, 4-Dec-2021.)
|
                 
   
     |
| |
| Theorem | divalglemeunn 12103* |
Lemma for divalg 12106. Uniqueness for a positive denominator.
(Contributed by Jim Kingdon, 4-Dec-2021.)
|
     
           |
| |
| Theorem | divalglemex 12104* |
Lemma for divalg 12106. The quotient and remainder exist.
(Contributed by
Jim Kingdon, 30-Nov-2021.)
|
     
      
    |
| |
| Theorem | divalglemeuneg 12105* |
Lemma for divalg 12106. Uniqueness for a negative denominator.
(Contributed by Jim Kingdon, 4-Dec-2021.)
|
     
      
    |
| |
| Theorem | divalg 12106* |
The division algorithm (theorem). Dividing an integer by a
nonzero integer produces a (unique) quotient and a unique
remainder     . Theorem 1.14 in [ApostolNT]
p. 19. (Contributed by Paul Chapman, 21-Mar-2011.)
|
     
      
    |
| |
| Theorem | divalgb 12107* |
Express the division algorithm as stated in divalg 12106 in terms of
.
(Contributed by Paul Chapman, 31-Mar-2011.)
|
      
          
          |
| |
| Theorem | divalg2 12108* |
The division algorithm (theorem) for a positive divisor. (Contributed
by Paul Chapman, 21-Mar-2011.)
|
          |
| |
| Theorem | divalgmod 12109 |
The result of the operator satisfies the requirements for the
remainder in
the division algorithm for a positive divisor
(compare divalg2 12108 and divalgb 12107). This demonstration theorem
justifies the use of to yield an explicit remainder from this
point forward. (Contributed by Paul Chapman, 31-Mar-2011.) (Revised by
AV, 21-Aug-2021.)
|
    
  
       |
| |
| Theorem | divalgmodcl 12110 |
The result of the operator satisfies the requirements for the
remainder in the
division algorithm for a positive divisor. Variant
of divalgmod 12109. (Contributed by Stefan O'Rear,
17-Oct-2014.) (Proof
shortened by AV, 21-Aug-2021.)
|
      
      |
| |
| Theorem | modremain 12111* |
The result of the modulo operation is the remainder of the division
algorithm. (Contributed by AV, 19-Aug-2021.)
|
    
       
   |
| |
| Theorem | ndvdssub 12112 |
Corollary of the division algorithm. If an integer greater than
divides , then it does not divide
any of ,
...   . (Contributed by Paul
Chapman,
31-Mar-2011.)
|
    


    |
| |
| Theorem | ndvdsadd 12113 |
Corollary of the division algorithm. If an integer greater than
divides , then it does not divide
any of ,
...   . (Contributed by Paul
Chapman,
31-Mar-2011.)
|
    


    |
| |
| Theorem | ndvdsp1 12114 |
Special case of ndvdsadd 12113. If an integer greater than
divides , it does
not divide . (Contributed by Paul
Chapman, 31-Mar-2011.)
|
    
    |
| |
| Theorem | ndvdsi 12115 |
A quick test for non-divisibility. (Contributed by Mario Carneiro,
18-Feb-2014.)
|
  
  |
| |
| Theorem | 5ndvds3 12116 |
5 does not divide 3. (Contributed by AV, 8-Sep-2025.)
|
 |
| |
| Theorem | 5ndvds6 12117 |
5 does not divide 6. (Contributed by AV, 8-Sep-2025.)
|
 |
| |
| Theorem | flodddiv4 12118 |
The floor of an odd integer divided by 4. (Contributed by AV,
17-Jun-2021.)
|
    
 
                   |
| |
| Theorem | fldivndvdslt 12119 |
The floor of an integer divided by a nonzero integer not dividing the
first integer is less than the integer divided by the positive integer.
(Contributed by AV, 4-Jul-2021.)
|
   

     
    |
| |
| Theorem | flodddiv4lt 12120 |
The floor of an odd number divided by 4 is less than the odd number
divided by 4. (Contributed by AV, 4-Jul-2021.)
|
  
          |
| |
| Theorem | flodddiv4t2lthalf 12121 |
The floor of an odd number divided by 4, multiplied by 2 is less than the
half of the odd number. (Contributed by AV, 4-Jul-2021.)
|
  
            |
| |
| 5.1.4 Bit sequences
|
| |
| Syntax | cbits 12122 |
Define the binary bits of an integer.
|
bits |
| |
| Definition | df-bits 12123* |
Define the binary bits of an integer. The expression
bits  means that
the -th bit of is 1 (and
its negation means the bit is 0). (Contributed by Mario Carneiro,
4-Sep-2016.)
|
bits  
             |
| |
| Theorem | bitsfval 12124* |
Expand the definition of the bits of an integer. (Contributed by Mario
Carneiro, 5-Sep-2016.)
|
 bits                |
| |
| Theorem | bitsval 12125 |
Expand the definition of the bits of an integer. (Contributed by Mario
Carneiro, 5-Sep-2016.)
|
 bits                |
| |
| Theorem | bitsval2 12126 |
Expand the definition of the bits of an integer. (Contributed by Mario
Carneiro, 5-Sep-2016.)
|
    bits               |
| |
| Theorem | bitsss 12127 |
The set of bits of an integer is a subset of . (Contributed by
Mario Carneiro, 5-Sep-2016.)
|
bits   |
| |
| Theorem | bitsf 12128 |
The bits function is a function from integers to subsets of
nonnegative integers. (Contributed by Mario Carneiro, 5-Sep-2016.)
|
bits     |
| |
| Theorem | bitsdc 12129 |
Whether a bit is set is decidable. (Contributed by Jim Kingdon,
31-Oct-2025.)
|
   DECID
bits    |
| |
| Theorem | bits0 12130 |
Value of the zeroth bit. (Contributed by Mario Carneiro, 5-Sep-2016.)
|
  bits     |
| |
| Theorem | bits0e 12131 |
The zeroth bit of an even number is zero. (Contributed by Mario Carneiro,
5-Sep-2016.)
|
 bits      |
| |
| Theorem | bits0o 12132 |
The zeroth bit of an odd number is one. (Contributed by Mario Carneiro,
5-Sep-2016.)
|
 bits        |
| |
| Theorem | bitsp1 12133 |
The -th bit of is the -th bit of    .
(Contributed by Mario Carneiro, 5-Sep-2016.)
|
      bits  bits           |
| |
| Theorem | bitsp1e 12134 |
The -th bit of  is
the -th bit of .
(Contributed by Mario Carneiro, 5-Sep-2016.)
|
      bits   
bits     |
| |
| Theorem | bitsp1o 12135 |
The -th bit of 
is the -th bit of .
(Contributed by Mario Carneiro, 5-Sep-2016.)
|
      bits     
bits     |
| |
| Theorem | bitsfzolem 12136* |
Lemma for bitsfzo 12137. (Contributed by Mario Carneiro,
5-Sep-2016.)
(Revised by AV, 1-Oct-2020.)
|
     bits   ..^ 
inf           ..^       |
| |
| Theorem | bitsfzo 12137 |
The bits of a number are all at positions less than iff the number
is nonnegative and less than   . (Contributed by Mario
Carneiro, 5-Sep-2016.) (Proof shortened by AV, 1-Oct-2020.)
|
     ..^     bits   ..^    |
| |
| Theorem | bitsmod 12138 |
Truncating the bit sequence after some is equivalent to reducing
the argument   . (Contributed by Mario Carneiro,
6-Sep-2016.)
|
   bits         bits 
 ..^    |
| |
| Theorem | bitsfi 12139 |
Every number is associated with a finite set of bits. (Contributed by
Mario Carneiro, 5-Sep-2016.)
|
 bits    |
| |
| Theorem | bitscmp 12140 |
The bit complement of
is  . (Thus, by bitsfi 12139, all
negative numbers have cofinite bits representations.) (Contributed
by Mario Carneiro, 5-Sep-2016.)
|
  bits   bits       |
| |
| Theorem | 0bits 12141 |
The bits of zero. (Contributed by Mario Carneiro, 6-Sep-2016.)
|
bits   |
| |
| Theorem | m1bits 12142 |
The bits of negative one. (Contributed by Mario Carneiro, 5-Sep-2016.)
|
bits    |
| |
| Theorem | bitsinv1lem 12143 |
Lemma for bitsinv1 12144. (Contributed by Mario Carneiro,
22-Sep-2016.)
|
       
           
bits  
         |
| |
| Theorem | bitsinv1 12144* |
There is an explicit inverse to the bits function for nonnegative
integers (which can be extended to negative integers using bitscmp 12140),
part 1. (Contributed by Mario Carneiro, 7-Sep-2016.)
|
  bits         |
| |
| 5.1.5 The greatest common divisor
operator
|
| |
| Syntax | cgcd 12145 |
Extend the definition of a class to include the greatest common divisor
operator.
|
 |
| |
| Definition | df-gcd 12146* |
Define the
operator. For example,   
(ex-gcd 15461). (Contributed by Paul Chapman,
21-Mar-2011.)
|
          

       |
| |
| Theorem | gcdmndc 12147 |
Decidablity lemma used in various proofs related to .
(Contributed by Jim Kingdon, 12-Dec-2021.)
|
   DECID     |
| |
| Theorem | dvdsbnd 12148* |
There is an upper bound to the divisors of a nonzero integer.
(Contributed by Jim Kingdon, 11-Dec-2021.)
|
  
     
  |
| |
| Theorem | gcdsupex 12149* |
Existence of the supremum used in defining . (Contributed by
Jim Kingdon, 12-Dec-2021.)
|
    
 
    
 
 
  
       |
| |
| Theorem | gcdsupcl 12150* |
Closure of the supremum used in defining . A lemma for gcdval 12151
and gcdn0cl 12154. (Contributed by Jim Kingdon, 11-Dec-2021.)
|
    
 
  

      |
| |
| Theorem | gcdval 12151* |
The value of the
operator.   is the greatest
common divisor of and . If
and are both ,
the result is defined conventionally as . (Contributed by Paul
Chapman, 21-Mar-2011.) (Revised by Mario Carneiro, 10-Nov-2013.)
|
                      |
| |
| Theorem | gcd0val 12152 |
The value, by convention, of the operator when both operands are
0. (Contributed by Paul Chapman, 21-Mar-2011.)
|
   |
| |
| Theorem | gcdn0val 12153* |
The value of the
operator when at least one operand is nonzero.
(Contributed by Paul Chapman, 21-Mar-2011.)
|
    
 
     
      |
| |
| Theorem | gcdn0cl 12154 |
Closure of the
operator. (Contributed by Paul Chapman,
21-Mar-2011.)
|
    
 
    |
| |
| Theorem | gcddvds 12155 |
The gcd of two integers divides each of them. (Contributed by Paul
Chapman, 21-Mar-2011.)
|
           |
| |
| Theorem | dvdslegcd 12156 |
An integer which divides both operands of the operator is
bounded by it. (Contributed by Paul Chapman, 21-Mar-2011.)
|
   

 
        |
| |
| Theorem | nndvdslegcd 12157 |
A positive integer which divides both positive operands of the
operator is bounded by it. (Contributed by AV, 9-Aug-2020.)
|
           |
| |
| Theorem | gcdcl 12158 |
Closure of the
operator. (Contributed by Paul Chapman,
21-Mar-2011.)
|
       |
| |
| Theorem | gcdnncl 12159 |
Closure of the
operator. (Contributed by Thierry Arnoux,
2-Feb-2020.)
|
       |
| |
| Theorem | gcdcld 12160 |
Closure of the
operator. (Contributed by Mario Carneiro,
29-May-2016.)
|
         |
| |
| Theorem | gcd2n0cl 12161 |
Closure of the
operator if the second operand is not 0.
(Contributed by AV, 10-Jul-2021.)
|
    
  |
| |
| Theorem | zeqzmulgcd 12162* |
An integer is the product of an integer and the gcd of it and another
integer. (Contributed by AV, 11-Jul-2021.)
|
   
      |
| |
| Theorem | divgcdz 12163 |
An integer divided by the gcd of it and a nonzero integer is an integer.
(Contributed by AV, 11-Jul-2021.)
|
         |
| |
| Theorem | gcdf 12164 |
Domain and codomain of the operator. (Contributed by Paul
Chapman, 31-Mar-2011.) (Revised by Mario Carneiro, 16-Nov-2013.)
|
      |
| |
| Theorem | gcdcom 12165 |
The operator is
commutative. Theorem 1.4(a) in [ApostolNT]
p. 16. (Contributed by Paul Chapman, 21-Mar-2011.)
|
         |
| |
| Theorem | gcdcomd 12166 |
The operator is
commutative, deduction version. (Contributed by
SN, 24-Aug-2024.)
|
           |
| |
| Theorem | divgcdnn 12167 |
A positive integer divided by the gcd of it and another integer is a
positive integer. (Contributed by AV, 10-Jul-2021.)
|
    
    |
| |
| Theorem | divgcdnnr 12168 |
A positive integer divided by the gcd of it and another integer is a
positive integer. (Contributed by AV, 10-Jul-2021.)
|
    
    |
| |
| Theorem | gcdeq0 12169 |
The gcd of two integers is zero iff they are both zero. (Contributed by
Paul Chapman, 21-Mar-2011.)
|
           |
| |
| Theorem | gcdn0gt0 12170 |
The gcd of two integers is positive (nonzero) iff they are not both zero.
(Contributed by Paul Chapman, 22-Jun-2011.)
|
    
      |
| |
| Theorem | gcd0id 12171 |
The gcd of 0 and an integer is the integer's absolute value. (Contributed
by Paul Chapman, 21-Mar-2011.)
|
  
      |
| |
| Theorem | gcdid0 12172 |
The gcd of an integer and 0 is the integer's absolute value. Theorem
1.4(d)2 in [ApostolNT] p. 16.
(Contributed by Paul Chapman,
31-Mar-2011.)
|
         |
| |
| Theorem | nn0gcdid0 12173 |
The gcd of a nonnegative integer with 0 is itself. (Contributed by Paul
Chapman, 31-Mar-2011.)
|
 
   |
| |
| Theorem | gcdneg 12174 |
Negating one operand of the operator does not alter the result.
(Contributed by Paul Chapman, 21-Mar-2011.)
|
          |
| |
| Theorem | neggcd 12175 |
Negating one operand of the operator does not alter the result.
(Contributed by Paul Chapman, 22-Jun-2011.)
|
          |
| |
| Theorem | gcdaddm 12176 |
Adding a multiple of one operand of the operator to the other does
not alter the result. (Contributed by Paul Chapman, 31-Mar-2011.)
|
    
        |
| |
| Theorem | gcdadd 12177 |
The GCD of two numbers is the same as the GCD of the left and their sum.
(Contributed by Scott Fenton, 20-Apr-2014.)
|
           |
| |
| Theorem | gcdid 12178 |
The gcd of a number and itself is its absolute value. (Contributed by
Paul Chapman, 31-Mar-2011.)
|
  
      |
| |
| Theorem | gcd1 12179 |
The gcd of a number with 1 is 1. Theorem 1.4(d)1 in [ApostolNT] p. 16.
(Contributed by Mario Carneiro, 19-Feb-2014.)
|
     |
| |
| Theorem | gcdabs 12180 |
The gcd of two integers is the same as that of their absolute values.
(Contributed by Paul Chapman, 31-Mar-2011.)
|
                 |
| |
| Theorem | gcdabs1 12181 |
of the absolute
value of the first operator. (Contributed by
Scott Fenton, 2-Apr-2014.) (Revised by Mario Carneiro, 19-Apr-2014.)
|
        
    |
| |
| Theorem | gcdabs2 12182 |
of the absolute
value of the second operator. (Contributed by
Scott Fenton, 2-Apr-2014.) (Revised by Mario Carneiro, 19-Apr-2014.)
|
             |
| |
| Theorem | modgcd 12183 |
The gcd remains unchanged if one operand is replaced with its remainder
modulo the other. (Contributed by Paul Chapman, 31-Mar-2011.)
|
      
    |
| |
| Theorem | 1gcd 12184 |
The GCD of one and an integer is one. (Contributed by Scott Fenton,
17-Apr-2014.) (Revised by Mario Carneiro, 19-Apr-2014.)
|
  
  |
| |
| Theorem | gcdmultipled 12185 |
The greatest common divisor of a nonnegative integer and a
multiple of it is itself. (Contributed by Rohan Ridenour,
3-Aug-2023.)
|
           |
| |
| Theorem | dvdsgcdidd 12186 |
The greatest common divisor of a positive integer and another integer it
divides is itself. (Contributed by Rohan Ridenour, 3-Aug-2023.)
|
           |
| |
| Theorem | 6gcd4e2 12187 |
The greatest common divisor of six and four is two. To calculate this
gcd, a simple form of Euclid's algorithm is used:
        and
        . (Contributed by
AV, 27-Aug-2020.)
|
   |
| |
| 5.1.6 Bézout's identity
|
| |
| Theorem | bezoutlemnewy 12188* |
Lemma for Bézout's identity. The is-bezout predicate holds for
  .
(Contributed by Jim Kingdon, 6-Jan-2022.)
|
     
             ![] ]](rbrack.gif)       ![]. ].](_drbrack.gif)       ![]. ].](_drbrack.gif)   |
| |
| Theorem | bezoutlemstep 12189* |
Lemma for Bézout's identity. This is the induction step for
the proof by induction. (Contributed by Jim Kingdon, 3-Jan-2022.)
|
     
             ![] ]](rbrack.gif)       ![]. ].](_drbrack.gif)    

         ![]. ].](_drbrack.gif)        ![]. ].](_drbrack.gif)   ![]. ].](_drbrack.gif)            ![]. ].](_drbrack.gif)
   |
| |
| Theorem | bezoutlemmain 12190* |
Lemma for Bézout's identity. This is the main result which we
prove by induction and which represents the application of the Extended
Euclidean algorithm. (Contributed by Jim Kingdon, 30-Dec-2021.)
|
     
      

            ![] ]](rbrack.gif)   
 ![] ]](rbrack.gif)
       |
| |
| Theorem | bezoutlema 12191* |
Lemma for Bézout's identity. The is-bezout condition is
satisfied by .
(Contributed by Jim Kingdon, 30-Dec-2021.)
|
     
           ![]. ].](_drbrack.gif)   |
| |
| Theorem | bezoutlemb 12192* |
Lemma for Bézout's identity. The is-bezout condition is
satisfied by .
(Contributed by Jim Kingdon, 30-Dec-2021.)
|
     
           ![]. ].](_drbrack.gif)   |
| |
| Theorem | bezoutlemex 12193* |
Lemma for Bézout's identity. Existence of a number which we will
later show to be the greater common divisor and its decomposition into
cofactors. (Contributed by Mario Carneiro and Jim Kingdon,
3-Jan-2022.)
|
      

      
      |
| |
| Theorem | bezoutlemzz 12194* |
Lemma for Bézout's identity. Like bezoutlemex 12193 but
where ' z ' is any integer, not just a nonnegative one. (Contributed by
Mario Carneiro and Jim Kingdon, 8-Jan-2022.)
|
      

      
      |
| |
| Theorem | bezoutlemaz 12195* |
Lemma for Bézout's identity. Like bezoutlemzz 12194 but
where ' A ' can be any integer, not just a nonnegative one.
(Contributed by Mario Carneiro and Jim Kingdon, 8-Jan-2022.)
|
      

      
      |
| |
| Theorem | bezoutlembz 12196* |
Lemma for Bézout's identity. Like bezoutlemaz 12195 but
where ' B ' can be any integer, not just a nonnegative one.
(Contributed by Mario Carneiro and Jim Kingdon, 8-Jan-2022.)
|
      

      
      |
| |
| Theorem | bezoutlembi 12197* |
Lemma for Bézout's identity. Like bezoutlembz 12196 but the greatest
common divisor condition is a biconditional, not just an implication.
(Contributed by Mario Carneiro and Jim Kingdon, 8-Jan-2022.)
|
      
  
    
      |
| |
| Theorem | bezoutlemmo 12198* |
Lemma for Bézout's identity. There is at most one
nonnegative integer meeting the greatest common divisor condition.
(Contributed by Mario Carneiro and Jim Kingdon, 9-Jan-2022.)
|
         
       
       |
| |
| Theorem | bezoutlemeu 12199* |
Lemma for Bézout's identity. There is exactly one
nonnegative integer meeting the greatest common divisor condition.
(Contributed by Mario Carneiro and Jim Kingdon, 9-Jan-2022.)
|
         
    
  
    |
| |
| Theorem | bezoutlemle 12200* |
Lemma for Bézout's identity. The number satisfying the
greatest common divisor condition is the largest number which
divides both and .
(Contributed by Mario Carneiro and
Jim Kingdon, 9-Jan-2022.)
|
         
               |