HomeHome Intuitionistic Logic Explorer
Theorem List (p. 123 of 161)
< Previous  Next >
Bad symbols? Try the
GIF version.

Mirrors  >  Metamath Home Page  >  ILE Home Page  >  Theorem List Contents  >  Recent Proofs       This page: Page List

Theorem List for Intuitionistic Logic Explorer - 12201-12300   *Has distinct variable group(s)
TypeLabelDescription
Statement
 
Theoremdvdsleabs2 12201 Transfer divisibility to an order constraint on absolute values. (Contributed by Stefan O'Rear, 24-Sep-2014.)
((𝑀 ∈ ℤ ∧ 𝑁 ∈ ℤ ∧ 𝑁 ≠ 0) → (𝑀𝑁 → (abs‘𝑀) ≤ (abs‘𝑁)))
 
Theoremdvdsabseq 12202 If two integers divide each other, they must be equal, up to a difference in sign. Theorem 1.1(j) in [ApostolNT] p. 14. (Contributed by Mario Carneiro, 30-May-2014.) (Revised by AV, 7-Aug-2021.)
((𝑀𝑁𝑁𝑀) → (abs‘𝑀) = (abs‘𝑁))
 
Theoremdvdseq 12203 If two nonnegative integers divide each other, they must be equal. (Contributed by Mario Carneiro, 30-May-2014.) (Proof shortened by AV, 7-Aug-2021.)
(((𝑀 ∈ ℕ0𝑁 ∈ ℕ0) ∧ (𝑀𝑁𝑁𝑀)) → 𝑀 = 𝑁)
 
Theoremdivconjdvds 12204 If a nonzero integer 𝑀 divides another integer 𝑁, the other integer 𝑁 divided by the nonzero integer 𝑀 (i.e. the divisor conjugate of 𝑁 to 𝑀) divides the other integer 𝑁. Theorem 1.1(k) in [ApostolNT] p. 14. (Contributed by AV, 7-Aug-2021.)
((𝑀𝑁𝑀 ≠ 0) → (𝑁 / 𝑀) ∥ 𝑁)
 
Theoremdvdsdivcl 12205* The complement of a divisor of 𝑁 is also a divisor of 𝑁. (Contributed by Mario Carneiro, 2-Jul-2015.) (Proof shortened by AV, 9-Aug-2021.)
((𝑁 ∈ ℕ ∧ 𝐴 ∈ {𝑥 ∈ ℕ ∣ 𝑥𝑁}) → (𝑁 / 𝐴) ∈ {𝑥 ∈ ℕ ∣ 𝑥𝑁})
 
Theoremdvdsflip 12206* An involution of the divisors of a number. (Contributed by Stefan O'Rear, 12-Sep-2015.) (Proof shortened by Mario Carneiro, 13-May-2016.)
𝐴 = {𝑥 ∈ ℕ ∣ 𝑥𝑁}    &   𝐹 = (𝑦𝐴 ↦ (𝑁 / 𝑦))       (𝑁 ∈ ℕ → 𝐹:𝐴1-1-onto𝐴)
 
Theoremdvdsssfz1 12207* The set of divisors of a number is a subset of a finite set. (Contributed by Mario Carneiro, 22-Sep-2014.)
(𝐴 ∈ ℕ → {𝑝 ∈ ℕ ∣ 𝑝𝐴} ⊆ (1...𝐴))
 
Theoremdvds1 12208 The only nonnegative integer that divides 1 is 1. (Contributed by Mario Carneiro, 2-Jul-2015.)
(𝑀 ∈ ℕ0 → (𝑀 ∥ 1 ↔ 𝑀 = 1))
 
Theoremalzdvds 12209* Only 0 is divisible by all integers. (Contributed by Paul Chapman, 21-Mar-2011.)
(𝑁 ∈ ℤ → (∀𝑥 ∈ ℤ 𝑥𝑁𝑁 = 0))
 
Theoremdvdsext 12210* Poset extensionality for division. (Contributed by Stefan O'Rear, 6-Sep-2015.)
((𝐴 ∈ ℕ0𝐵 ∈ ℕ0) → (𝐴 = 𝐵 ↔ ∀𝑥 ∈ ℕ0 (𝐴𝑥𝐵𝑥)))
 
Theoremfzm1ndvds 12211 No number between 1 and 𝑀 − 1 divides 𝑀. (Contributed by Mario Carneiro, 24-Jan-2015.)
((𝑀 ∈ ℕ ∧ 𝑁 ∈ (1...(𝑀 − 1))) → ¬ 𝑀𝑁)
 
Theoremfzo0dvdseq 12212 Zero is the only one of the first 𝐴 nonnegative integers that is divisible by 𝐴. (Contributed by Stefan O'Rear, 6-Sep-2015.)
(𝐵 ∈ (0..^𝐴) → (𝐴𝐵𝐵 = 0))
 
Theoremfzocongeq 12213 Two different elements of a half-open range are not congruent mod its length. (Contributed by Stefan O'Rear, 6-Sep-2015.)
((𝐴 ∈ (𝐶..^𝐷) ∧ 𝐵 ∈ (𝐶..^𝐷)) → ((𝐷𝐶) ∥ (𝐴𝐵) ↔ 𝐴 = 𝐵))
 
TheoremaddmodlteqALT 12214 Two nonnegative integers less than the modulus are equal iff the sums of these integer with another integer are equal modulo the modulus. Shorter proof of addmodlteq 10550 based on the "divides" relation. (Contributed by AV, 14-Mar-2021.) (New usage is discouraged.) (Proof modification is discouraged.)
((𝐼 ∈ (0..^𝑁) ∧ 𝐽 ∈ (0..^𝑁) ∧ 𝑆 ∈ ℤ) → (((𝐼 + 𝑆) mod 𝑁) = ((𝐽 + 𝑆) mod 𝑁) ↔ 𝐼 = 𝐽))
 
Theoremdvdsfac 12215 A positive integer divides any greater factorial. (Contributed by Paul Chapman, 28-Nov-2012.)
((𝐾 ∈ ℕ ∧ 𝑁 ∈ (ℤ𝐾)) → 𝐾 ∥ (!‘𝑁))
 
Theoremdvdsexp 12216 A power divides a power with a greater exponent. (Contributed by Mario Carneiro, 23-Feb-2014.)
((𝐴 ∈ ℤ ∧ 𝑀 ∈ ℕ0𝑁 ∈ (ℤ𝑀)) → (𝐴𝑀) ∥ (𝐴𝑁))
 
Theoremdvdsmod 12217 Any number 𝐾 whose mod base 𝑁 is divisible by a divisor 𝑃 of the base is also divisible by 𝑃. This means that primes will also be relatively prime to the base when reduced mod 𝑁 for any base. (Contributed by Mario Carneiro, 13-Mar-2014.)
(((𝑃 ∈ ℕ ∧ 𝑁 ∈ ℕ ∧ 𝐾 ∈ ℤ) ∧ 𝑃𝑁) → (𝑃 ∥ (𝐾 mod 𝑁) ↔ 𝑃𝐾))
 
Theoremmulmoddvds 12218 If an integer is divisible by a positive integer, the product of this integer with another integer modulo the positive integer is 0. (Contributed by Alexander van der Vekens, 30-Aug-2018.)
((𝑁 ∈ ℕ ∧ 𝐴 ∈ ℤ ∧ 𝐵 ∈ ℤ) → (𝑁𝐴 → ((𝐴 · 𝐵) mod 𝑁) = 0))
 
Theorem3dvds 12219* A rule for divisibility by 3 of a number written in base 10. This is Metamath 100 proof #85. (Contributed by Mario Carneiro, 14-Jul-2014.) (Revised by Mario Carneiro, 17-Jan-2015.) (Revised by AV, 8-Sep-2021.)
((𝑁 ∈ ℕ0𝐹:(0...𝑁)⟶ℤ) → (3 ∥ Σ𝑘 ∈ (0...𝑁)((𝐹𝑘) · (10↑𝑘)) ↔ 3 ∥ Σ𝑘 ∈ (0...𝑁)(𝐹𝑘)))
 
Theorem3dvdsdec 12220 A decimal number is divisible by three iff the sum of its two "digits" is divisible by three. The term "digits" in its narrow sense is only correct if 𝐴 and 𝐵 actually are digits (i.e. nonnegative integers less than 10). However, this theorem holds for arbitrary nonnegative integers 𝐴 and 𝐵, especially if 𝐴 is itself a decimal number, e.g., 𝐴 = 𝐶𝐷. (Contributed by AV, 14-Jun-2021.) (Revised by AV, 8-Sep-2021.)
𝐴 ∈ ℕ0    &   𝐵 ∈ ℕ0       (3 ∥ 𝐴𝐵 ↔ 3 ∥ (𝐴 + 𝐵))
 
Theorem3dvds2dec 12221 A decimal number is divisible by three iff the sum of its three "digits" is divisible by three. The term "digits" in its narrow sense is only correct if 𝐴, 𝐵 and 𝐶 actually are digits (i.e. nonnegative integers less than 10). However, this theorem holds for arbitrary nonnegative integers 𝐴, 𝐵 and 𝐶. (Contributed by AV, 14-Jun-2021.) (Revised by AV, 1-Aug-2021.)
𝐴 ∈ ℕ0    &   𝐵 ∈ ℕ0    &   𝐶 ∈ ℕ0       (3 ∥ 𝐴𝐵𝐶 ↔ 3 ∥ ((𝐴 + 𝐵) + 𝐶))
 
5.1.2  Even and odd numbers

The set of integers can be partitioned into the set of even numbers and the set of odd numbers, see zeo4 12225. Instead of defining new class variables Even and Odd to represent these sets, we use the idiom 2 ∥ 𝑁 to say that "𝑁 is even" (which implies 𝑁 ∈ ℤ, see evenelz 12222) and ¬ 2 ∥ 𝑁 to say that "𝑁 is odd" (under the assumption that 𝑁 ∈ ℤ). The previously proven theorems about even and odd numbers, like zneo 9481, zeo 9485, zeo2 9486, etc. use different representations, which are equivalent with the representations using the divides relation, see evend2 12244 and oddp1d2 12245. The corresponding theorems are zeneo 12226, zeo3 12223 and zeo4 12225.

 
Theoremevenelz 12222 An even number is an integer. This follows immediately from the reverse closure of the divides relation, see dvdszrcl 12147. (Contributed by AV, 22-Jun-2021.)
(2 ∥ 𝑁𝑁 ∈ ℤ)
 
Theoremzeo3 12223 An integer is even or odd. (Contributed by AV, 17-Jun-2021.)
(𝑁 ∈ ℤ → (2 ∥ 𝑁 ∨ ¬ 2 ∥ 𝑁))
 
Theoremzeoxor 12224 An integer is even or odd but not both. (Contributed by Jim Kingdon, 10-Nov-2021.)
(𝑁 ∈ ℤ → (2 ∥ 𝑁 ⊻ ¬ 2 ∥ 𝑁))
 
Theoremzeo4 12225 An integer is even or odd but not both. (Contributed by AV, 17-Jun-2021.)
(𝑁 ∈ ℤ → (2 ∥ 𝑁 ↔ ¬ ¬ 2 ∥ 𝑁))
 
Theoremzeneo 12226 No even integer equals an odd integer (i.e. no integer can be both even and odd). Exercise 10(a) of [Apostol] p. 28. This variant of zneo 9481 follows immediately from the fact that a contradiction implies anything, see pm2.21i 647. (Contributed by AV, 22-Jun-2021.)
((𝐴 ∈ ℤ ∧ 𝐵 ∈ ℤ) → ((2 ∥ 𝐴 ∧ ¬ 2 ∥ 𝐵) → 𝐴𝐵))
 
Theoremodd2np1lem 12227* Lemma for odd2np1 12228. (Contributed by Scott Fenton, 3-Apr-2014.) (Revised by Mario Carneiro, 19-Apr-2014.)
(𝑁 ∈ ℕ0 → (∃𝑛 ∈ ℤ ((2 · 𝑛) + 1) = 𝑁 ∨ ∃𝑘 ∈ ℤ (𝑘 · 2) = 𝑁))
 
Theoremodd2np1 12228* An integer is odd iff it is one plus twice another integer. (Contributed by Scott Fenton, 3-Apr-2014.) (Revised by Mario Carneiro, 19-Apr-2014.)
(𝑁 ∈ ℤ → (¬ 2 ∥ 𝑁 ↔ ∃𝑛 ∈ ℤ ((2 · 𝑛) + 1) = 𝑁))
 
Theoremeven2n 12229* An integer is even iff it is twice another integer. (Contributed by AV, 25-Jun-2020.)
(2 ∥ 𝑁 ↔ ∃𝑛 ∈ ℤ (2 · 𝑛) = 𝑁)
 
Theoremoddm1even 12230 An integer is odd iff its predecessor is even. (Contributed by Mario Carneiro, 5-Sep-2016.)
(𝑁 ∈ ℤ → (¬ 2 ∥ 𝑁 ↔ 2 ∥ (𝑁 − 1)))
 
Theoremoddp1even 12231 An integer is odd iff its successor is even. (Contributed by Mario Carneiro, 5-Sep-2016.)
(𝑁 ∈ ℤ → (¬ 2 ∥ 𝑁 ↔ 2 ∥ (𝑁 + 1)))
 
Theoremoexpneg 12232 The exponential of the negative of a number, when the exponent is odd. (Contributed by Mario Carneiro, 25-Apr-2015.)
((𝐴 ∈ ℂ ∧ 𝑁 ∈ ℕ ∧ ¬ 2 ∥ 𝑁) → (-𝐴𝑁) = -(𝐴𝑁))
 
Theoremmod2eq0even 12233 An integer is 0 modulo 2 iff it is even (i.e. divisible by 2), see example 2 in [ApostolNT] p. 107. (Contributed by AV, 21-Jul-2021.)
(𝑁 ∈ ℤ → ((𝑁 mod 2) = 0 ↔ 2 ∥ 𝑁))
 
Theoremmod2eq1n2dvds 12234 An integer is 1 modulo 2 iff it is odd (i.e. not divisible by 2), see example 3 in [ApostolNT] p. 107. (Contributed by AV, 24-May-2020.)
(𝑁 ∈ ℤ → ((𝑁 mod 2) = 1 ↔ ¬ 2 ∥ 𝑁))
 
Theoremoddnn02np1 12235* A nonnegative integer is odd iff it is one plus twice another nonnegative integer. (Contributed by AV, 19-Jun-2021.)
(𝑁 ∈ ℕ0 → (¬ 2 ∥ 𝑁 ↔ ∃𝑛 ∈ ℕ0 ((2 · 𝑛) + 1) = 𝑁))
 
Theoremoddge22np1 12236* An integer greater than one is odd iff it is one plus twice a positive integer. (Contributed by AV, 16-Aug-2021.)
(𝑁 ∈ (ℤ‘2) → (¬ 2 ∥ 𝑁 ↔ ∃𝑛 ∈ ℕ ((2 · 𝑛) + 1) = 𝑁))
 
Theoremevennn02n 12237* A nonnegative integer is even iff it is twice another nonnegative integer. (Contributed by AV, 12-Aug-2021.)
(𝑁 ∈ ℕ0 → (2 ∥ 𝑁 ↔ ∃𝑛 ∈ ℕ0 (2 · 𝑛) = 𝑁))
 
Theoremevennn2n 12238* A positive integer is even iff it is twice another positive integer. (Contributed by AV, 12-Aug-2021.)
(𝑁 ∈ ℕ → (2 ∥ 𝑁 ↔ ∃𝑛 ∈ ℕ (2 · 𝑛) = 𝑁))
 
Theorem2tp1odd 12239 A number which is twice an integer increased by 1 is odd. (Contributed by AV, 16-Jul-2021.)
((𝐴 ∈ ℤ ∧ 𝐵 = ((2 · 𝐴) + 1)) → ¬ 2 ∥ 𝐵)
 
Theoremmulsucdiv2z 12240 An integer multiplied with its successor divided by 2 yields an integer, i.e. an integer multiplied with its successor is even. (Contributed by AV, 19-Jul-2021.)
(𝑁 ∈ ℤ → ((𝑁 · (𝑁 + 1)) / 2) ∈ ℤ)
 
Theoremsqoddm1div8z 12241 A squared odd number minus 1 divided by 8 is an integer. (Contributed by AV, 19-Jul-2021.)
((𝑁 ∈ ℤ ∧ ¬ 2 ∥ 𝑁) → (((𝑁↑2) − 1) / 8) ∈ ℤ)
 
Theorem2teven 12242 A number which is twice an integer is even. (Contributed by AV, 16-Jul-2021.)
((𝐴 ∈ ℤ ∧ 𝐵 = (2 · 𝐴)) → 2 ∥ 𝐵)
 
Theoremzeo5 12243 An integer is either even or odd, version of zeo3 12223 avoiding the negation of the representation of an odd number. (Proposed by BJ, 21-Jun-2021.) (Contributed by AV, 26-Jun-2020.)
(𝑁 ∈ ℤ → (2 ∥ 𝑁 ∨ 2 ∥ (𝑁 + 1)))
 
Theoremevend2 12244 An integer is even iff its quotient with 2 is an integer. This is a representation of even numbers without using the divides relation, see zeo 9485 and zeo2 9486. (Contributed by AV, 22-Jun-2021.)
(𝑁 ∈ ℤ → (2 ∥ 𝑁 ↔ (𝑁 / 2) ∈ ℤ))
 
Theoremoddp1d2 12245 An integer is odd iff its successor divided by 2 is an integer. This is a representation of odd numbers without using the divides relation, see zeo 9485 and zeo2 9486. (Contributed by AV, 22-Jun-2021.)
(𝑁 ∈ ℤ → (¬ 2 ∥ 𝑁 ↔ ((𝑁 + 1) / 2) ∈ ℤ))
 
Theoremzob 12246 Alternate characterizations of an odd number. (Contributed by AV, 7-Jun-2020.)
(𝑁 ∈ ℤ → (((𝑁 + 1) / 2) ∈ ℤ ↔ ((𝑁 − 1) / 2) ∈ ℤ))
 
Theoremoddm1d2 12247 An integer is odd iff its predecessor divided by 2 is an integer. This is another representation of odd numbers without using the divides relation. (Contributed by AV, 18-Jun-2021.) (Proof shortened by AV, 22-Jun-2021.)
(𝑁 ∈ ℤ → (¬ 2 ∥ 𝑁 ↔ ((𝑁 − 1) / 2) ∈ ℤ))
 
Theoremltoddhalfle 12248 An integer is less than half of an odd number iff it is less than or equal to the half of the predecessor of the odd number (which is an even number). (Contributed by AV, 29-Jun-2021.)
((𝑁 ∈ ℤ ∧ ¬ 2 ∥ 𝑁𝑀 ∈ ℤ) → (𝑀 < (𝑁 / 2) ↔ 𝑀 ≤ ((𝑁 − 1) / 2)))
 
Theoremhalfleoddlt 12249 An integer is greater than half of an odd number iff it is greater than or equal to the half of the odd number. (Contributed by AV, 1-Jul-2021.)
((𝑁 ∈ ℤ ∧ ¬ 2 ∥ 𝑁𝑀 ∈ ℤ) → ((𝑁 / 2) ≤ 𝑀 ↔ (𝑁 / 2) < 𝑀))
 
Theoremopoe 12250 The sum of two odds is even. (Contributed by Scott Fenton, 7-Apr-2014.) (Revised by Mario Carneiro, 19-Apr-2014.)
(((𝐴 ∈ ℤ ∧ ¬ 2 ∥ 𝐴) ∧ (𝐵 ∈ ℤ ∧ ¬ 2 ∥ 𝐵)) → 2 ∥ (𝐴 + 𝐵))
 
Theoremomoe 12251 The difference of two odds is even. (Contributed by Scott Fenton, 7-Apr-2014.) (Revised by Mario Carneiro, 19-Apr-2014.)
(((𝐴 ∈ ℤ ∧ ¬ 2 ∥ 𝐴) ∧ (𝐵 ∈ ℤ ∧ ¬ 2 ∥ 𝐵)) → 2 ∥ (𝐴𝐵))
 
Theoremopeo 12252 The sum of an odd and an even is odd. (Contributed by Scott Fenton, 7-Apr-2014.) (Revised by Mario Carneiro, 19-Apr-2014.)
(((𝐴 ∈ ℤ ∧ ¬ 2 ∥ 𝐴) ∧ (𝐵 ∈ ℤ ∧ 2 ∥ 𝐵)) → ¬ 2 ∥ (𝐴 + 𝐵))
 
Theoremomeo 12253 The difference of an odd and an even is odd. (Contributed by Scott Fenton, 7-Apr-2014.) (Revised by Mario Carneiro, 19-Apr-2014.)
(((𝐴 ∈ ℤ ∧ ¬ 2 ∥ 𝐴) ∧ (𝐵 ∈ ℤ ∧ 2 ∥ 𝐵)) → ¬ 2 ∥ (𝐴𝐵))
 
Theoremm1expe 12254 Exponentiation of -1 by an even power. Variant of m1expeven 10738. (Contributed by AV, 25-Jun-2021.)
(2 ∥ 𝑁 → (-1↑𝑁) = 1)
 
Theoremm1expo 12255 Exponentiation of -1 by an odd power. (Contributed by AV, 26-Jun-2021.)
((𝑁 ∈ ℤ ∧ ¬ 2 ∥ 𝑁) → (-1↑𝑁) = -1)
 
Theoremm1exp1 12256 Exponentiation of negative one is one iff the exponent is even. (Contributed by AV, 20-Jun-2021.)
(𝑁 ∈ ℤ → ((-1↑𝑁) = 1 ↔ 2 ∥ 𝑁))
 
Theoremnn0enne 12257 A positive integer is an even nonnegative integer iff it is an even positive integer. (Contributed by AV, 30-May-2020.)
(𝑁 ∈ ℕ → ((𝑁 / 2) ∈ ℕ0 ↔ (𝑁 / 2) ∈ ℕ))
 
Theoremnn0ehalf 12258 The half of an even nonnegative integer is a nonnegative integer. (Contributed by AV, 22-Jun-2020.) (Revised by AV, 28-Jun-2021.)
((𝑁 ∈ ℕ0 ∧ 2 ∥ 𝑁) → (𝑁 / 2) ∈ ℕ0)
 
Theoremnnehalf 12259 The half of an even positive integer is a positive integer. (Contributed by AV, 28-Jun-2021.)
((𝑁 ∈ ℕ ∧ 2 ∥ 𝑁) → (𝑁 / 2) ∈ ℕ)
 
Theoremnn0o1gt2 12260 An odd nonnegative integer is either 1 or greater than 2. (Contributed by AV, 2-Jun-2020.)
((𝑁 ∈ ℕ0 ∧ ((𝑁 + 1) / 2) ∈ ℕ0) → (𝑁 = 1 ∨ 2 < 𝑁))
 
Theoremnno 12261 An alternate characterization of an odd integer greater than 1. (Contributed by AV, 2-Jun-2020.)
((𝑁 ∈ (ℤ‘2) ∧ ((𝑁 + 1) / 2) ∈ ℕ0) → ((𝑁 − 1) / 2) ∈ ℕ)
 
Theoremnn0o 12262 An alternate characterization of an odd nonnegative integer. (Contributed by AV, 28-May-2020.) (Proof shortened by AV, 2-Jun-2020.)
((𝑁 ∈ ℕ0 ∧ ((𝑁 + 1) / 2) ∈ ℕ0) → ((𝑁 − 1) / 2) ∈ ℕ0)
 
Theoremnn0ob 12263 Alternate characterizations of an odd nonnegative integer. (Contributed by AV, 4-Jun-2020.)
(𝑁 ∈ ℕ0 → (((𝑁 + 1) / 2) ∈ ℕ0 ↔ ((𝑁 − 1) / 2) ∈ ℕ0))
 
Theoremnn0oddm1d2 12264 A positive integer is odd iff its predecessor divided by 2 is a positive integer. (Contributed by AV, 28-Jun-2021.)
(𝑁 ∈ ℕ0 → (¬ 2 ∥ 𝑁 ↔ ((𝑁 − 1) / 2) ∈ ℕ0))
 
Theoremnnoddm1d2 12265 A positive integer is odd iff its successor divided by 2 is a positive integer. (Contributed by AV, 28-Jun-2021.)
(𝑁 ∈ ℕ → (¬ 2 ∥ 𝑁 ↔ ((𝑁 + 1) / 2) ∈ ℕ))
 
Theoremz0even 12266 0 is even. (Contributed by AV, 11-Feb-2020.) (Revised by AV, 23-Jun-2021.)
2 ∥ 0
 
Theoremn2dvds1 12267 2 does not divide 1 (common case). That means 1 is odd. (Contributed by David A. Wheeler, 8-Dec-2018.)
¬ 2 ∥ 1
 
Theoremn2dvdsm1 12268 2 does not divide -1. That means -1 is odd. (Contributed by AV, 15-Aug-2021.)
¬ 2 ∥ -1
 
Theoremz2even 12269 2 is even. (Contributed by AV, 12-Feb-2020.) (Revised by AV, 23-Jun-2021.)
2 ∥ 2
 
Theoremn2dvds3 12270 2 does not divide 3, i.e. 3 is an odd number. (Contributed by AV, 28-Feb-2021.)
¬ 2 ∥ 3
 
Theoremz4even 12271 4 is an even number. (Contributed by AV, 23-Jul-2020.) (Revised by AV, 4-Jul-2021.)
2 ∥ 4
 
Theorem4dvdseven 12272 An integer which is divisible by 4 is an even integer. (Contributed by AV, 4-Jul-2021.)
(4 ∥ 𝑁 → 2 ∥ 𝑁)
 
5.1.3  The division algorithm
 
Theoremdivalglemnn 12273* Lemma for divalg 12279. Existence for a positive denominator. (Contributed by Jim Kingdon, 30-Nov-2021.)
((𝑁 ∈ ℤ ∧ 𝐷 ∈ ℕ) → ∃𝑟 ∈ ℤ ∃𝑞 ∈ ℤ (0 ≤ 𝑟𝑟 < (abs‘𝐷) ∧ 𝑁 = ((𝑞 · 𝐷) + 𝑟)))
 
Theoremdivalglemqt 12274 Lemma for divalg 12279. The 𝑄 = 𝑇 case involved in showing uniqueness. (Contributed by Jim Kingdon, 5-Dec-2021.)
(𝜑𝐷 ∈ ℤ)    &   (𝜑𝑅 ∈ ℤ)    &   (𝜑𝑆 ∈ ℤ)    &   (𝜑𝑄 ∈ ℤ)    &   (𝜑𝑇 ∈ ℤ)    &   (𝜑𝑄 = 𝑇)    &   (𝜑 → ((𝑄 · 𝐷) + 𝑅) = ((𝑇 · 𝐷) + 𝑆))       (𝜑𝑅 = 𝑆)
 
Theoremdivalglemnqt 12275 Lemma for divalg 12279. The 𝑄 < 𝑇 case involved in showing uniqueness. (Contributed by Jim Kingdon, 4-Dec-2021.)
(𝜑𝐷 ∈ ℕ)    &   (𝜑𝑅 ∈ ℤ)    &   (𝜑𝑆 ∈ ℤ)    &   (𝜑𝑄 ∈ ℤ)    &   (𝜑𝑇 ∈ ℤ)    &   (𝜑 → 0 ≤ 𝑆)    &   (𝜑𝑅 < 𝐷)    &   (𝜑 → ((𝑄 · 𝐷) + 𝑅) = ((𝑇 · 𝐷) + 𝑆))       (𝜑 → ¬ 𝑄 < 𝑇)
 
Theoremdivalglemeunn 12276* Lemma for divalg 12279. Uniqueness for a positive denominator. (Contributed by Jim Kingdon, 4-Dec-2021.)
((𝑁 ∈ ℤ ∧ 𝐷 ∈ ℕ) → ∃!𝑟 ∈ ℤ ∃𝑞 ∈ ℤ (0 ≤ 𝑟𝑟 < (abs‘𝐷) ∧ 𝑁 = ((𝑞 · 𝐷) + 𝑟)))
 
Theoremdivalglemex 12277* Lemma for divalg 12279. The quotient and remainder exist. (Contributed by Jim Kingdon, 30-Nov-2021.)
((𝑁 ∈ ℤ ∧ 𝐷 ∈ ℤ ∧ 𝐷 ≠ 0) → ∃𝑟 ∈ ℤ ∃𝑞 ∈ ℤ (0 ≤ 𝑟𝑟 < (abs‘𝐷) ∧ 𝑁 = ((𝑞 · 𝐷) + 𝑟)))
 
Theoremdivalglemeuneg 12278* Lemma for divalg 12279. Uniqueness for a negative denominator. (Contributed by Jim Kingdon, 4-Dec-2021.)
((𝑁 ∈ ℤ ∧ 𝐷 ∈ ℤ ∧ 𝐷 < 0) → ∃!𝑟 ∈ ℤ ∃𝑞 ∈ ℤ (0 ≤ 𝑟𝑟 < (abs‘𝐷) ∧ 𝑁 = ((𝑞 · 𝐷) + 𝑟)))
 
Theoremdivalg 12279* The division algorithm (theorem). Dividing an integer 𝑁 by a nonzero integer 𝐷 produces a (unique) quotient 𝑞 and a unique remainder 0 ≤ 𝑟 < (abs‘𝐷). Theorem 1.14 in [ApostolNT] p. 19. (Contributed by Paul Chapman, 21-Mar-2011.)
((𝑁 ∈ ℤ ∧ 𝐷 ∈ ℤ ∧ 𝐷 ≠ 0) → ∃!𝑟 ∈ ℤ ∃𝑞 ∈ ℤ (0 ≤ 𝑟𝑟 < (abs‘𝐷) ∧ 𝑁 = ((𝑞 · 𝐷) + 𝑟)))
 
Theoremdivalgb 12280* Express the division algorithm as stated in divalg 12279 in terms of . (Contributed by Paul Chapman, 31-Mar-2011.)
((𝑁 ∈ ℤ ∧ 𝐷 ∈ ℤ ∧ 𝐷 ≠ 0) → (∃!𝑟 ∈ ℤ ∃𝑞 ∈ ℤ (0 ≤ 𝑟𝑟 < (abs‘𝐷) ∧ 𝑁 = ((𝑞 · 𝐷) + 𝑟)) ↔ ∃!𝑟 ∈ ℕ0 (𝑟 < (abs‘𝐷) ∧ 𝐷 ∥ (𝑁𝑟))))
 
Theoremdivalg2 12281* The division algorithm (theorem) for a positive divisor. (Contributed by Paul Chapman, 21-Mar-2011.)
((𝑁 ∈ ℤ ∧ 𝐷 ∈ ℕ) → ∃!𝑟 ∈ ℕ0 (𝑟 < 𝐷𝐷 ∥ (𝑁𝑟)))
 
Theoremdivalgmod 12282 The result of the mod operator satisfies the requirements for the remainder 𝑅 in the division algorithm for a positive divisor (compare divalg2 12281 and divalgb 12280). This demonstration theorem justifies the use of mod to yield an explicit remainder from this point forward. (Contributed by Paul Chapman, 31-Mar-2011.) (Revised by AV, 21-Aug-2021.)
((𝑁 ∈ ℤ ∧ 𝐷 ∈ ℕ) → (𝑅 = (𝑁 mod 𝐷) ↔ (𝑅 ∈ ℕ0 ∧ (𝑅 < 𝐷𝐷 ∥ (𝑁𝑅)))))
 
Theoremdivalgmodcl 12283 The result of the mod operator satisfies the requirements for the remainder 𝑅 in the division algorithm for a positive divisor. Variant of divalgmod 12282. (Contributed by Stefan O'Rear, 17-Oct-2014.) (Proof shortened by AV, 21-Aug-2021.)
((𝑁 ∈ ℤ ∧ 𝐷 ∈ ℕ ∧ 𝑅 ∈ ℕ0) → (𝑅 = (𝑁 mod 𝐷) ↔ (𝑅 < 𝐷𝐷 ∥ (𝑁𝑅))))
 
Theoremmodremain 12284* The result of the modulo operation is the remainder of the division algorithm. (Contributed by AV, 19-Aug-2021.)
((𝑁 ∈ ℤ ∧ 𝐷 ∈ ℕ ∧ (𝑅 ∈ ℕ0𝑅 < 𝐷)) → ((𝑁 mod 𝐷) = 𝑅 ↔ ∃𝑧 ∈ ℤ ((𝑧 · 𝐷) + 𝑅) = 𝑁))
 
Theoremndvdssub 12285 Corollary of the division algorithm. If an integer 𝐷 greater than 1 divides 𝑁, then it does not divide any of 𝑁 − 1, 𝑁 − 2... 𝑁 − (𝐷 − 1). (Contributed by Paul Chapman, 31-Mar-2011.)
((𝑁 ∈ ℤ ∧ 𝐷 ∈ ℕ ∧ (𝐾 ∈ ℕ ∧ 𝐾 < 𝐷)) → (𝐷𝑁 → ¬ 𝐷 ∥ (𝑁𝐾)))
 
Theoremndvdsadd 12286 Corollary of the division algorithm. If an integer 𝐷 greater than 1 divides 𝑁, then it does not divide any of 𝑁 + 1, 𝑁 + 2... 𝑁 + (𝐷 − 1). (Contributed by Paul Chapman, 31-Mar-2011.)
((𝑁 ∈ ℤ ∧ 𝐷 ∈ ℕ ∧ (𝐾 ∈ ℕ ∧ 𝐾 < 𝐷)) → (𝐷𝑁 → ¬ 𝐷 ∥ (𝑁 + 𝐾)))
 
Theoremndvdsp1 12287 Special case of ndvdsadd 12286. If an integer 𝐷 greater than 1 divides 𝑁, it does not divide 𝑁 + 1. (Contributed by Paul Chapman, 31-Mar-2011.)
((𝑁 ∈ ℤ ∧ 𝐷 ∈ ℕ ∧ 1 < 𝐷) → (𝐷𝑁 → ¬ 𝐷 ∥ (𝑁 + 1)))
 
Theoremndvdsi 12288 A quick test for non-divisibility. (Contributed by Mario Carneiro, 18-Feb-2014.)
𝐴 ∈ ℕ    &   𝑄 ∈ ℕ0    &   𝑅 ∈ ℕ    &   ((𝐴 · 𝑄) + 𝑅) = 𝐵    &   𝑅 < 𝐴        ¬ 𝐴𝐵
 
Theorem5ndvds3 12289 5 does not divide 3. (Contributed by AV, 8-Sep-2025.)
¬ 5 ∥ 3
 
Theorem5ndvds6 12290 5 does not divide 6. (Contributed by AV, 8-Sep-2025.)
¬ 5 ∥ 6
 
Theoremflodddiv4 12291 The floor of an odd integer divided by 4. (Contributed by AV, 17-Jun-2021.)
((𝑀 ∈ ℤ ∧ 𝑁 = ((2 · 𝑀) + 1)) → (⌊‘(𝑁 / 4)) = if(2 ∥ 𝑀, (𝑀 / 2), ((𝑀 − 1) / 2)))
 
Theoremfldivndvdslt 12292 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.)
((𝐾 ∈ ℤ ∧ (𝐿 ∈ ℤ ∧ 𝐿 ≠ 0) ∧ ¬ 𝐿𝐾) → (⌊‘(𝐾 / 𝐿)) < (𝐾 / 𝐿))
 
Theoremflodddiv4lt 12293 The floor of an odd number divided by 4 is less than the odd number divided by 4. (Contributed by AV, 4-Jul-2021.)
((𝑁 ∈ ℤ ∧ ¬ 2 ∥ 𝑁) → (⌊‘(𝑁 / 4)) < (𝑁 / 4))
 
Theoremflodddiv4t2lthalf 12294 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.)
((𝑁 ∈ ℤ ∧ ¬ 2 ∥ 𝑁) → ((⌊‘(𝑁 / 4)) · 2) < (𝑁 / 2))
 
5.1.4  Bit sequences
 
Syntaxcbits 12295 Define the binary bits of an integer.
class bits
 
Definitiondf-bits 12296* 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 = (𝑛 ∈ ℤ ↦ {𝑚 ∈ ℕ0 ∣ ¬ 2 ∥ (⌊‘(𝑛 / (2↑𝑚)))})
 
Theorembitsfval 12297* Expand the definition of the bits of an integer. (Contributed by Mario Carneiro, 5-Sep-2016.)
(𝑁 ∈ ℤ → (bits‘𝑁) = {𝑚 ∈ ℕ0 ∣ ¬ 2 ∥ (⌊‘(𝑁 / (2↑𝑚)))})
 
Theorembitsval 12298 Expand the definition of the bits of an integer. (Contributed by Mario Carneiro, 5-Sep-2016.)
(𝑀 ∈ (bits‘𝑁) ↔ (𝑁 ∈ ℤ ∧ 𝑀 ∈ ℕ0 ∧ ¬ 2 ∥ (⌊‘(𝑁 / (2↑𝑀)))))
 
Theorembitsval2 12299 Expand the definition of the bits of an integer. (Contributed by Mario Carneiro, 5-Sep-2016.)
((𝑁 ∈ ℤ ∧ 𝑀 ∈ ℕ0) → (𝑀 ∈ (bits‘𝑁) ↔ ¬ 2 ∥ (⌊‘(𝑁 / (2↑𝑀)))))
 
Theorembitsss 12300 The set of bits of an integer is a subset of 0. (Contributed by Mario Carneiro, 5-Sep-2016.)
(bits‘𝑁) ⊆ ℕ0
    < Previous  Next >

Page List
Jump to page: Contents  1 1-100 2 101-200 3 201-300 4 301-400 5 401-500 6 501-600 7 601-700 8 701-800 9 801-900 10 901-1000 11 1001-1100 12 1101-1200 13 1201-1300 14 1301-1400 15 1401-1500 16 1501-1600 17 1601-1700 18 1701-1800 19 1801-1900 20 1901-2000 21 2001-2100 22 2101-2200 23 2201-2300 24 2301-2400 25 2401-2500 26 2501-2600 27 2601-2700 28 2701-2800 29 2801-2900 30 2901-3000 31 3001-3100 32 3101-3200 33 3201-3300 34 3301-3400 35 3401-3500 36 3501-3600 37 3601-3700 38 3701-3800 39 3801-3900 40 3901-4000 41 4001-4100 42 4101-4200 43 4201-4300 44 4301-4400 45 4401-4500 46 4501-4600 47 4601-4700 48 4701-4800 49 4801-4900 50 4901-5000 51 5001-5100 52 5101-5200 53 5201-5300 54 5301-5400 55 5401-5500 56 5501-5600 57 5601-5700 58 5701-5800 59 5801-5900 60 5901-6000 61 6001-6100 62 6101-6200 63 6201-6300 64 6301-6400 65 6401-6500 66 6501-6600 67 6601-6700 68 6701-6800 69 6801-6900 70 6901-7000 71 7001-7100 72 7101-7200 73 7201-7300 74 7301-7400 75 7401-7500 76 7501-7600 77 7601-7700 78 7701-7800 79 7801-7900 80 7901-8000 81 8001-8100 82 8101-8200 83 8201-8300 84 8301-8400 85 8401-8500 86 8501-8600 87 8601-8700 88 8701-8800 89 8801-8900 90 8901-9000 91 9001-9100 92 9101-9200 93 9201-9300 94 9301-9400 95 9401-9500 96 9501-9600 97 9601-9700 98 9701-9800 99 9801-9900 100 9901-10000 101 10001-10100 102 10101-10200 103 10201-10300 104 10301-10400 105 10401-10500 106 10501-10600 107 10601-10700 108 10701-10800 109 10801-10900 110 10901-11000 111 11001-11100 112 11101-11200 113 11201-11300 114 11301-11400 115 11401-11500 116 11501-11600 117 11601-11700 118 11701-11800 119 11801-11900 120 11901-12000 121 12001-12100 122 12101-12200 123 12201-12300 124 12301-12400 125 12401-12500 126 12501-12600 127 12601-12700 128 12701-12800 129 12801-12900 130 12901-13000 131 13001-13100 132 13101-13200 133 13201-13300 134 13301-13400 135 13401-13500 136 13501-13600 137 13601-13700 138 13701-13800 139 13801-13900 140 13901-14000 141 14001-14100 142 14101-14200 143 14201-14300 144 14301-14400 145 14401-14500 146 14501-14600 147 14601-14700 148 14701-14800 149 14801-14900 150 14901-15000 151 15001-15100 152 15101-15200 153 15201-15300 154 15301-15400 155 15401-15500 156 15501-15600 157 15601-15700 158 15701-15800 159 15801-15900 160 15901-16000 161 16001-16097
  Copyright terms: Public domain < Previous  Next >