HomeHome Intuitionistic Logic Explorer
Theorem List (p. 104 of 108)
< 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 - 10301-10400   *Has distinct variable group(s)
TypeLabelDescription
Statement
 
Theoremm1exp1 10301 Exponentiation of negative one is one iff the exponent is even. (Contributed by AV, 20-Jun-2021.)
(𝑁 ∈ ℤ → ((-1↑𝑁) = 1 ↔ 2 ∥ 𝑁))
 
Theoremnn0enne 10302 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 10303 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 10304 The half of an even positive integer is a positive integer. (Contributed by AV, 28-Jun-2021.)
((𝑁 ∈ ℕ ∧ 2 ∥ 𝑁) → (𝑁 / 2) ∈ ℕ)
 
Theoremnn0o1gt2 10305 An odd nonnegative integer is either 1 or greater than 2. (Contributed by AV, 2-Jun-2020.)
((𝑁 ∈ ℕ0 ∧ ((𝑁 + 1) / 2) ∈ ℕ0) → (𝑁 = 1 ∨ 2 < 𝑁))
 
Theoremnno 10306 An alternate characterization of an odd integer greater than 1. (Contributed by AV, 2-Jun-2020.)
((𝑁 ∈ (ℤ‘2) ∧ ((𝑁 + 1) / 2) ∈ ℕ0) → ((𝑁 − 1) / 2) ∈ ℕ)
 
Theoremnn0o 10307 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 10308 Alternate characterizations of an odd nonnegative integer. (Contributed by AV, 4-Jun-2020.)
(𝑁 ∈ ℕ0 → (((𝑁 + 1) / 2) ∈ ℕ0 ↔ ((𝑁 − 1) / 2) ∈ ℕ0))
 
Theoremnn0oddm1d2 10309 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 10310 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 10311 0 is even. (Contributed by AV, 11-Feb-2020.) (Revised by AV, 23-Jun-2021.)
2 ∥ 0
 
Theoremn2dvds1 10312 2 does not divide 1 (common case). That means 1 is odd. (Contributed by David A. Wheeler, 8-Dec-2018.)
¬ 2 ∥ 1
 
Theoremn2dvdsm1 10313 2 does not divide -1. That means -1 is odd. (Contributed by AV, 15-Aug-2021.)
¬ 2 ∥ -1
 
Theoremz2even 10314 2 is even. (Contributed by AV, 12-Feb-2020.) (Revised by AV, 23-Jun-2021.)
2 ∥ 2
 
Theoremn2dvds3 10315 2 does not divide 3, i.e. 3 is an odd number. (Contributed by AV, 28-Feb-2021.)
¬ 2 ∥ 3
 
Theoremz4even 10316 4 is an even number. (Contributed by AV, 23-Jul-2020.) (Revised by AV, 4-Jul-2021.)
2 ∥ 4
 
Theorem4dvdseven 10317 An integer which is divisible by 4 is an even integer. (Contributed by AV, 4-Jul-2021.)
(4 ∥ 𝑁 → 2 ∥ 𝑁)
 
4.1.3  The division algorithm
 
Theoremdivalglemnn 10318* Lemma for divalg 10324. Existence for a positive denominator. (Contributed by Jim Kingdon, 30-Nov-2021.)
((𝑁 ∈ ℤ ∧ 𝐷 ∈ ℕ) → ∃𝑟 ∈ ℤ ∃𝑞 ∈ ℤ (0 ≤ 𝑟𝑟 < (abs‘𝐷) ∧ 𝑁 = ((𝑞 · 𝐷) + 𝑟)))
 
Theoremdivalglemqt 10319 Lemma for divalg 10324. The 𝑄 = 𝑇 case involved in showing uniqueness. (Contributed by Jim Kingdon, 5-Dec-2021.)
(𝜑𝐷 ∈ ℤ)    &   (𝜑𝑅 ∈ ℤ)    &   (𝜑𝑆 ∈ ℤ)    &   (𝜑𝑄 ∈ ℤ)    &   (𝜑𝑇 ∈ ℤ)    &   (𝜑𝑄 = 𝑇)    &   (𝜑 → ((𝑄 · 𝐷) + 𝑅) = ((𝑇 · 𝐷) + 𝑆))       (𝜑𝑅 = 𝑆)
 
Theoremdivalglemnqt 10320 Lemma for divalg 10324. The 𝑄 < 𝑇 case involved in showing uniqueness. (Contributed by Jim Kingdon, 4-Dec-2021.)
(𝜑𝐷 ∈ ℕ)    &   (𝜑𝑅 ∈ ℤ)    &   (𝜑𝑆 ∈ ℤ)    &   (𝜑𝑄 ∈ ℤ)    &   (𝜑𝑇 ∈ ℤ)    &   (𝜑 → 0 ≤ 𝑆)    &   (𝜑𝑅 < 𝐷)    &   (𝜑 → ((𝑄 · 𝐷) + 𝑅) = ((𝑇 · 𝐷) + 𝑆))       (𝜑 → ¬ 𝑄 < 𝑇)
 
Theoremdivalglemeunn 10321* Lemma for divalg 10324. Uniqueness for a positive denominator. (Contributed by Jim Kingdon, 4-Dec-2021.)
((𝑁 ∈ ℤ ∧ 𝐷 ∈ ℕ) → ∃!𝑟 ∈ ℤ ∃𝑞 ∈ ℤ (0 ≤ 𝑟𝑟 < (abs‘𝐷) ∧ 𝑁 = ((𝑞 · 𝐷) + 𝑟)))
 
Theoremdivalglemex 10322* Lemma for divalg 10324. The quotient and remainder exist. (Contributed by Jim Kingdon, 30-Nov-2021.)
((𝑁 ∈ ℤ ∧ 𝐷 ∈ ℤ ∧ 𝐷 ≠ 0) → ∃𝑟 ∈ ℤ ∃𝑞 ∈ ℤ (0 ≤ 𝑟𝑟 < (abs‘𝐷) ∧ 𝑁 = ((𝑞 · 𝐷) + 𝑟)))
 
Theoremdivalglemeuneg 10323* Lemma for divalg 10324. Uniqueness for a negative denominator. (Contributed by Jim Kingdon, 4-Dec-2021.)
((𝑁 ∈ ℤ ∧ 𝐷 ∈ ℤ ∧ 𝐷 < 0) → ∃!𝑟 ∈ ℤ ∃𝑞 ∈ ℤ (0 ≤ 𝑟𝑟 < (abs‘𝐷) ∧ 𝑁 = ((𝑞 · 𝐷) + 𝑟)))
 
Theoremdivalg 10324* 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 10325* Express the division algorithm as stated in divalg 10324 in terms of . (Contributed by Paul Chapman, 31-Mar-2011.)
((𝑁 ∈ ℤ ∧ 𝐷 ∈ ℤ ∧ 𝐷 ≠ 0) → (∃!𝑟 ∈ ℤ ∃𝑞 ∈ ℤ (0 ≤ 𝑟𝑟 < (abs‘𝐷) ∧ 𝑁 = ((𝑞 · 𝐷) + 𝑟)) ↔ ∃!𝑟 ∈ ℕ0 (𝑟 < (abs‘𝐷) ∧ 𝐷 ∥ (𝑁𝑟))))
 
Theoremdivalg2 10326* The division algorithm (theorem) for a positive divisor. (Contributed by Paul Chapman, 21-Mar-2011.)
((𝑁 ∈ ℤ ∧ 𝐷 ∈ ℕ) → ∃!𝑟 ∈ ℕ0 (𝑟 < 𝐷𝐷 ∥ (𝑁𝑟)))
 
Theoremdivalgmod 10327 The result of the mod operator satisfies the requirements for the remainder 𝑅 in the division algorithm for a positive divisor (compare divalg2 10326 and divalgb 10325). 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 10328 The result of the mod operator satisfies the requirements for the remainder 𝑅 in the division algorithm for a positive divisor. Variant of divalgmod 10327. (Contributed by Stefan O'Rear, 17-Oct-2014.) (Proof shortened by AV, 21-Aug-2021.)
((𝑁 ∈ ℤ ∧ 𝐷 ∈ ℕ ∧ 𝑅 ∈ ℕ0) → (𝑅 = (𝑁 mod 𝐷) ↔ (𝑅 < 𝐷𝐷 ∥ (𝑁𝑅))))
 
Theoremmodremain 10329* The result of the modulo operation is the remainder of the division algorithm. (Contributed by AV, 19-Aug-2021.)
((𝑁 ∈ ℤ ∧ 𝐷 ∈ ℕ ∧ (𝑅 ∈ ℕ0𝑅 < 𝐷)) → ((𝑁 mod 𝐷) = 𝑅 ↔ ∃𝑧 ∈ ℤ ((𝑧 · 𝐷) + 𝑅) = 𝑁))
 
Theoremndvdssub 10330 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 10331 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 10332 Special case of ndvdsadd 10331. If an integer 𝐷 greater than 1 divides 𝑁, it does not divide 𝑁 + 1. (Contributed by Paul Chapman, 31-Mar-2011.)
((𝑁 ∈ ℤ ∧ 𝐷 ∈ ℕ ∧ 1 < 𝐷) → (𝐷𝑁 → ¬ 𝐷 ∥ (𝑁 + 1)))
 
Theoremndvdsi 10333 A quick test for non-divisibility. (Contributed by Mario Carneiro, 18-Feb-2014.)
𝐴 ∈ ℕ    &   𝑄 ∈ ℕ0    &   𝑅 ∈ ℕ    &   ((𝐴 · 𝑄) + 𝑅) = 𝐵    &   𝑅 < 𝐴        ¬ 𝐴𝐵
 
Theoremflodddiv4 10334 The floor of an odd integer divided by 4. (Contributed by AV, 17-Jun-2021.)
((𝑀 ∈ ℤ ∧ 𝑁 = ((2 · 𝑀) + 1)) → (⌊‘(𝑁 / 4)) = if(2 ∥ 𝑀, (𝑀 / 2), ((𝑀 − 1) / 2)))
 
Theoremfldivndvdslt 10335 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 10336 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 10337 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))
 
4.1.4  The greatest common divisor operator
 
Syntaxcgcd 10338 Extend the definition of a class to include the greatest common divisor operator.
class gcd
 
Definitiondf-gcd 10339* Define the gcd operator. For example, (-6 gcd 9) = 3 (ex-gcd 10568). (Contributed by Paul Chapman, 21-Mar-2011.)
gcd = (𝑥 ∈ ℤ, 𝑦 ∈ ℤ ↦ if((𝑥 = 0 ∧ 𝑦 = 0), 0, sup({𝑛 ∈ ℤ ∣ (𝑛𝑥𝑛𝑦)}, ℝ, < )))
 
Theoremgcdmndc 10340 Decidablity lemma used in various proofs related to gcd. (Contributed by Jim Kingdon, 12-Dec-2021.)
((𝑀 ∈ ℤ ∧ 𝑁 ∈ ℤ) → DECID (𝑀 = 0 ∧ 𝑁 = 0))
 
Theoremzsupcllemstep 10341* Lemma for zsupcl 10343. Induction step. (Contributed by Jim Kingdon, 7-Dec-2021.)
((𝜑𝑛 ∈ (ℤ𝑀)) → DECID 𝜓)       (𝐾 ∈ (ℤ𝑀) → (((𝜑 ∧ ∀𝑛 ∈ (ℤ𝐾) ¬ 𝜓) → ∃𝑥 ∈ ℤ (∀𝑦 ∈ {𝑛 ∈ ℤ ∣ 𝜓} ¬ 𝑥 < 𝑦 ∧ ∀𝑦 ∈ ℝ (𝑦 < 𝑥 → ∃𝑧 ∈ {𝑛 ∈ ℤ ∣ 𝜓}𝑦 < 𝑧))) → ((𝜑 ∧ ∀𝑛 ∈ (ℤ‘(𝐾 + 1)) ¬ 𝜓) → ∃𝑥 ∈ ℤ (∀𝑦 ∈ {𝑛 ∈ ℤ ∣ 𝜓} ¬ 𝑥 < 𝑦 ∧ ∀𝑦 ∈ ℝ (𝑦 < 𝑥 → ∃𝑧 ∈ {𝑛 ∈ ℤ ∣ 𝜓}𝑦 < 𝑧)))))
 
Theoremzsupcllemex 10342* Lemma for zsupcl 10343. Existence of the supremum. (Contributed by Jim Kingdon, 7-Dec-2021.)
(𝜑𝑀 ∈ ℤ)    &   (𝑛 = 𝑀 → (𝜓𝜒))    &   (𝜑𝜒)    &   ((𝜑𝑛 ∈ (ℤ𝑀)) → DECID 𝜓)    &   (𝜑 → ∃𝑗 ∈ (ℤ𝑀)∀𝑛 ∈ (ℤ𝑗) ¬ 𝜓)       (𝜑 → ∃𝑥 ∈ ℤ (∀𝑦 ∈ {𝑛 ∈ ℤ ∣ 𝜓} ¬ 𝑥 < 𝑦 ∧ ∀𝑦 ∈ ℝ (𝑦 < 𝑥 → ∃𝑧 ∈ {𝑛 ∈ ℤ ∣ 𝜓}𝑦 < 𝑧)))
 
Theoremzsupcl 10343* Closure of supremum for decidable integer properties. The property which defines the set we are taking the supremum of must (a) be true at 𝑀 (which corresponds to the non-empty condition of classical supremum theorems), (b) decidable at each value after 𝑀, and (c) be false after 𝑗 (which corresponds to the upper bound condition found in classical supremum theorems). (Contributed by Jim Kingdon, 7-Dec-2021.)
(𝜑𝑀 ∈ ℤ)    &   (𝑛 = 𝑀 → (𝜓𝜒))    &   (𝜑𝜒)    &   ((𝜑𝑛 ∈ (ℤ𝑀)) → DECID 𝜓)    &   (𝜑 → ∃𝑗 ∈ (ℤ𝑀)∀𝑛 ∈ (ℤ𝑗) ¬ 𝜓)       (𝜑 → sup({𝑛 ∈ ℤ ∣ 𝜓}, ℝ, < ) ∈ (ℤ𝑀))
 
Theoremzssinfcl 10344* The infimum of a set of integers is an element of the set. (Contributed by Jim Kingdon, 16-Jan-2022.)
(𝜑 → ∃𝑥 ∈ ℝ (∀𝑦𝐵 ¬ 𝑦 < 𝑥 ∧ ∀𝑦 ∈ ℝ (𝑥 < 𝑦 → ∃𝑧𝐵 𝑧 < 𝑦)))    &   (𝜑𝐵 ⊆ ℤ)    &   (𝜑 → inf(𝐵, ℝ, < ) ∈ ℤ)       (𝜑 → inf(𝐵, ℝ, < ) ∈ 𝐵)
 
Theoreminfssuzex 10345* Existence of the infimum of a subset of an upper set of integers. (Contributed by Jim Kingdon, 13-Jan-2022.)
(𝜑𝑀 ∈ ℤ)    &   𝑆 = {𝑛 ∈ (ℤ𝑀) ∣ 𝜓}    &   (𝜑𝐴𝑆)    &   ((𝜑𝑛 ∈ (𝑀...𝐴)) → DECID 𝜓)       (𝜑 → ∃𝑥 ∈ ℝ (∀𝑦𝑆 ¬ 𝑦 < 𝑥 ∧ ∀𝑦 ∈ ℝ (𝑥 < 𝑦 → ∃𝑧𝑆 𝑧 < 𝑦)))
 
Theoreminfssuzledc 10346* The infimum of a subset of an upper set of integers is less than or equal to all members of the subset. (Contributed by Jim Kingdon, 13-Jan-2022.)
(𝜑𝑀 ∈ ℤ)    &   𝑆 = {𝑛 ∈ (ℤ𝑀) ∣ 𝜓}    &   (𝜑𝐴𝑆)    &   ((𝜑𝑛 ∈ (𝑀...𝐴)) → DECID 𝜓)       (𝜑 → inf(𝑆, ℝ, < ) ≤ 𝐴)
 
Theoreminfssuzcldc 10347* The infimum of a subset of an upper set of integers belongs to the subset. (Contributed by Jim Kingdon, 20-Jan-2022.)
(𝜑𝑀 ∈ ℤ)    &   𝑆 = {𝑛 ∈ (ℤ𝑀) ∣ 𝜓}    &   (𝜑𝐴𝑆)    &   ((𝜑𝑛 ∈ (𝑀...𝐴)) → DECID 𝜓)       (𝜑 → inf(𝑆, ℝ, < ) ∈ 𝑆)
 
Theoremdvdsbnd 10348* There is an upper bound to the divisors of a nonzero integer. (Contributed by Jim Kingdon, 11-Dec-2021.)
((𝐴 ∈ ℤ ∧ 𝐴 ≠ 0) → ∃𝑛 ∈ ℕ ∀𝑚 ∈ (ℤ𝑛) ¬ 𝑚𝐴)
 
Theoremgcdsupex 10349* Existence of the supremum used in defining gcd. (Contributed by Jim Kingdon, 12-Dec-2021.)
(((𝑋 ∈ ℤ ∧ 𝑌 ∈ ℤ) ∧ ¬ (𝑋 = 0 ∧ 𝑌 = 0)) → ∃𝑥 ∈ ℤ (∀𝑦 ∈ {𝑛 ∈ ℤ ∣ (𝑛𝑋𝑛𝑌)} ¬ 𝑥 < 𝑦 ∧ ∀𝑦 ∈ ℝ (𝑦 < 𝑥 → ∃𝑧 ∈ {𝑛 ∈ ℤ ∣ (𝑛𝑋𝑛𝑌)}𝑦 < 𝑧)))
 
Theoremgcdsupcl 10350* Closure of the supremum used in defining gcd. A lemma for gcdval 10351 and gcdn0cl 10354. (Contributed by Jim Kingdon, 11-Dec-2021.)
(((𝑋 ∈ ℤ ∧ 𝑌 ∈ ℤ) ∧ ¬ (𝑋 = 0 ∧ 𝑌 = 0)) → sup({𝑛 ∈ ℤ ∣ (𝑛𝑋𝑛𝑌)}, ℝ, < ) ∈ ℕ)
 
Theoremgcdval 10351* The value of the gcd operator. (𝑀 gcd 𝑁) is the greatest common divisor of 𝑀 and 𝑁. If 𝑀 and 𝑁 are both 0, the result is defined conventionally as 0. (Contributed by Paul Chapman, 21-Mar-2011.) (Revised by Mario Carneiro, 10-Nov-2013.)
((𝑀 ∈ ℤ ∧ 𝑁 ∈ ℤ) → (𝑀 gcd 𝑁) = if((𝑀 = 0 ∧ 𝑁 = 0), 0, sup({𝑛 ∈ ℤ ∣ (𝑛𝑀𝑛𝑁)}, ℝ, < )))
 
Theoremgcd0val 10352 The value, by convention, of the gcd operator when both operands are 0. (Contributed by Paul Chapman, 21-Mar-2011.)
(0 gcd 0) = 0
 
Theoremgcdn0val 10353* The value of the gcd operator when at least one operand is nonzero. (Contributed by Paul Chapman, 21-Mar-2011.)
(((𝑀 ∈ ℤ ∧ 𝑁 ∈ ℤ) ∧ ¬ (𝑀 = 0 ∧ 𝑁 = 0)) → (𝑀 gcd 𝑁) = sup({𝑛 ∈ ℤ ∣ (𝑛𝑀𝑛𝑁)}, ℝ, < ))
 
Theoremgcdn0cl 10354 Closure of the gcd operator. (Contributed by Paul Chapman, 21-Mar-2011.)
(((𝑀 ∈ ℤ ∧ 𝑁 ∈ ℤ) ∧ ¬ (𝑀 = 0 ∧ 𝑁 = 0)) → (𝑀 gcd 𝑁) ∈ ℕ)
 
Theoremgcddvds 10355 The gcd of two integers divides each of them. (Contributed by Paul Chapman, 21-Mar-2011.)
((𝑀 ∈ ℤ ∧ 𝑁 ∈ ℤ) → ((𝑀 gcd 𝑁) ∥ 𝑀 ∧ (𝑀 gcd 𝑁) ∥ 𝑁))
 
Theoremdvdslegcd 10356 An integer which divides both operands of the gcd operator is bounded by it. (Contributed by Paul Chapman, 21-Mar-2011.)
(((𝐾 ∈ ℤ ∧ 𝑀 ∈ ℤ ∧ 𝑁 ∈ ℤ) ∧ ¬ (𝑀 = 0 ∧ 𝑁 = 0)) → ((𝐾𝑀𝐾𝑁) → 𝐾 ≤ (𝑀 gcd 𝑁)))
 
Theoremnndvdslegcd 10357 A positive integer which divides both positive operands of the gcd operator is bounded by it. (Contributed by AV, 9-Aug-2020.)
((𝐾 ∈ ℕ ∧ 𝑀 ∈ ℕ ∧ 𝑁 ∈ ℕ) → ((𝐾𝑀𝐾𝑁) → 𝐾 ≤ (𝑀 gcd 𝑁)))
 
Theoremgcdcl 10358 Closure of the gcd operator. (Contributed by Paul Chapman, 21-Mar-2011.)
((𝑀 ∈ ℤ ∧ 𝑁 ∈ ℤ) → (𝑀 gcd 𝑁) ∈ ℕ0)
 
Theoremgcdnncl 10359 Closure of the gcd operator. (Contributed by Thierry Arnoux, 2-Feb-2020.)
((𝑀 ∈ ℕ ∧ 𝑁 ∈ ℕ) → (𝑀 gcd 𝑁) ∈ ℕ)
 
Theoremgcdcld 10360 Closure of the gcd operator. (Contributed by Mario Carneiro, 29-May-2016.)
(𝜑𝑀 ∈ ℤ)    &   (𝜑𝑁 ∈ ℤ)       (𝜑 → (𝑀 gcd 𝑁) ∈ ℕ0)
 
Theoremgcd2n0cl 10361 Closure of the gcd operator if the second operand is not 0. (Contributed by AV, 10-Jul-2021.)
((𝑀 ∈ ℤ ∧ 𝑁 ∈ ℤ ∧ 𝑁 ≠ 0) → (𝑀 gcd 𝑁) ∈ ℕ)
 
Theoremzeqzmulgcd 10362* An integer is the product of an integer and the gcd of it and another integer. (Contributed by AV, 11-Jul-2021.)
((𝐴 ∈ ℤ ∧ 𝐵 ∈ ℤ) → ∃𝑛 ∈ ℤ 𝐴 = (𝑛 · (𝐴 gcd 𝐵)))
 
Theoremdivgcdz 10363 An integer divided by the gcd of it and a nonzero integer is an integer. (Contributed by AV, 11-Jul-2021.)
((𝐴 ∈ ℤ ∧ 𝐵 ∈ ℤ ∧ 𝐵 ≠ 0) → (𝐴 / (𝐴 gcd 𝐵)) ∈ ℤ)
 
Theoremgcdf 10364 Domain and codomain of the gcd operator. (Contributed by Paul Chapman, 31-Mar-2011.) (Revised by Mario Carneiro, 16-Nov-2013.)
gcd :(ℤ × ℤ)⟶ℕ0
 
Theoremgcdcom 10365 The gcd operator is commutative. Theorem 1.4(a) in [ApostolNT] p. 16. (Contributed by Paul Chapman, 21-Mar-2011.)
((𝑀 ∈ ℤ ∧ 𝑁 ∈ ℤ) → (𝑀 gcd 𝑁) = (𝑁 gcd 𝑀))
 
Theoremdivgcdnn 10366 A positive integer divided by the gcd of it and another integer is a positive integer. (Contributed by AV, 10-Jul-2021.)
((𝐴 ∈ ℕ ∧ 𝐵 ∈ ℤ) → (𝐴 / (𝐴 gcd 𝐵)) ∈ ℕ)
 
Theoremdivgcdnnr 10367 A positive integer divided by the gcd of it and another integer is a positive integer. (Contributed by AV, 10-Jul-2021.)
((𝐴 ∈ ℕ ∧ 𝐵 ∈ ℤ) → (𝐴 / (𝐵 gcd 𝐴)) ∈ ℕ)
 
Theoremgcdeq0 10368 The gcd of two integers is zero iff they are both zero. (Contributed by Paul Chapman, 21-Mar-2011.)
((𝑀 ∈ ℤ ∧ 𝑁 ∈ ℤ) → ((𝑀 gcd 𝑁) = 0 ↔ (𝑀 = 0 ∧ 𝑁 = 0)))
 
Theoremgcdn0gt0 10369 The gcd of two integers is positive (nonzero) iff they are not both zero. (Contributed by Paul Chapman, 22-Jun-2011.)
((𝑀 ∈ ℤ ∧ 𝑁 ∈ ℤ) → (¬ (𝑀 = 0 ∧ 𝑁 = 0) ↔ 0 < (𝑀 gcd 𝑁)))
 
Theoremgcd0id 10370 The gcd of 0 and an integer is the integer's absolute value. (Contributed by Paul Chapman, 21-Mar-2011.)
(𝑁 ∈ ℤ → (0 gcd 𝑁) = (abs‘𝑁))
 
Theoremgcdid0 10371 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.)
(𝑁 ∈ ℤ → (𝑁 gcd 0) = (abs‘𝑁))
 
Theoremnn0gcdid0 10372 The gcd of a nonnegative integer with 0 is itself. (Contributed by Paul Chapman, 31-Mar-2011.)
(𝑁 ∈ ℕ0 → (𝑁 gcd 0) = 𝑁)
 
Theoremgcdneg 10373 Negating one operand of the gcd operator does not alter the result. (Contributed by Paul Chapman, 21-Mar-2011.)
((𝑀 ∈ ℤ ∧ 𝑁 ∈ ℤ) → (𝑀 gcd -𝑁) = (𝑀 gcd 𝑁))
 
Theoremneggcd 10374 Negating one operand of the gcd operator does not alter the result. (Contributed by Paul Chapman, 22-Jun-2011.)
((𝑀 ∈ ℤ ∧ 𝑁 ∈ ℤ) → (-𝑀 gcd 𝑁) = (𝑀 gcd 𝑁))
 
Theoremgcdaddm 10375 Adding a multiple of one operand of the gcd operator to the other does not alter the result. (Contributed by Paul Chapman, 31-Mar-2011.)
((𝐾 ∈ ℤ ∧ 𝑀 ∈ ℤ ∧ 𝑁 ∈ ℤ) → (𝑀 gcd 𝑁) = (𝑀 gcd (𝑁 + (𝐾 · 𝑀))))
 
Theoremgcdadd 10376 The GCD of two numbers is the same as the GCD of the left and their sum. (Contributed by Scott Fenton, 20-Apr-2014.)
((𝑀 ∈ ℤ ∧ 𝑁 ∈ ℤ) → (𝑀 gcd 𝑁) = (𝑀 gcd (𝑁 + 𝑀)))
 
Theoremgcdid 10377 The gcd of a number and itself is its absolute value. (Contributed by Paul Chapman, 31-Mar-2011.)
(𝑁 ∈ ℤ → (𝑁 gcd 𝑁) = (abs‘𝑁))
 
Theoremgcd1 10378 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.)
(𝑀 ∈ ℤ → (𝑀 gcd 1) = 1)
 
Theoremgcdabs 10379 The gcd of two integers is the same as that of their absolute values. (Contributed by Paul Chapman, 31-Mar-2011.)
((𝑀 ∈ ℤ ∧ 𝑁 ∈ ℤ) → ((abs‘𝑀) gcd (abs‘𝑁)) = (𝑀 gcd 𝑁))
 
Theoremgcdabs1 10380 gcd of the absolute value of the first operator. (Contributed by Scott Fenton, 2-Apr-2014.) (Revised by Mario Carneiro, 19-Apr-2014.)
((𝑁 ∈ ℤ ∧ 𝑀 ∈ ℤ) → ((abs‘𝑁) gcd 𝑀) = (𝑁 gcd 𝑀))
 
Theoremgcdabs2 10381 gcd of the absolute value of the second operator. (Contributed by Scott Fenton, 2-Apr-2014.) (Revised by Mario Carneiro, 19-Apr-2014.)
((𝑁 ∈ ℤ ∧ 𝑀 ∈ ℤ) → (𝑁 gcd (abs‘𝑀)) = (𝑁 gcd 𝑀))
 
Theoremmodgcd 10382 The gcd remains unchanged if one operand is replaced with its remainder modulo the other. (Contributed by Paul Chapman, 31-Mar-2011.)
((𝑀 ∈ ℤ ∧ 𝑁 ∈ ℕ) → ((𝑀 mod 𝑁) gcd 𝑁) = (𝑀 gcd 𝑁))
 
Theorem1gcd 10383 The GCD of one and an integer is one. (Contributed by Scott Fenton, 17-Apr-2014.) (Revised by Mario Carneiro, 19-Apr-2014.)
(𝑀 ∈ ℤ → (1 gcd 𝑀) = 1)
 
Theorem6gcd4e2 10384 The greatest common divisor of six and four is two. To calculate this gcd, a simple form of Euclid's algorithm is used: (6 gcd 4) = ((4 + 2) gcd 4) = (2 gcd 4) and (2 gcd 4) = (2 gcd (2 + 2)) = (2 gcd 2) = 2. (Contributed by AV, 27-Aug-2020.)
(6 gcd 4) = 2
 
4.1.5  Bézout's identity
 
Theorembezoutlemnewy 10385* Lemma for Bézout's identity. The is-bezout predicate holds for (𝑦 mod 𝑊). (Contributed by Jim Kingdon, 6-Jan-2022.)
(𝜑 ↔ ∃𝑠 ∈ ℤ ∃𝑡 ∈ ℤ 𝑟 = ((𝐴 · 𝑠) + (𝐵 · 𝑡)))    &   (𝜃𝐴 ∈ ℕ0)    &   (𝜃𝐵 ∈ ℕ0)    &   (𝜃𝑊 ∈ ℕ)    &   (𝜃 → [𝑦 / 𝑟]𝜑)    &   (𝜃𝑦 ∈ ℕ0)    &   (𝜃[𝑊 / 𝑟]𝜑)       (𝜃[(𝑦 mod 𝑊) / 𝑟]𝜑)
 
Theorembezoutlemstep 10386* Lemma for Bézout's identity. This is the induction step for the proof by induction. (Contributed by Jim Kingdon, 3-Jan-2022.)
(𝜑 ↔ ∃𝑠 ∈ ℤ ∃𝑡 ∈ ℤ 𝑟 = ((𝐴 · 𝑠) + (𝐵 · 𝑡)))    &   (𝜃𝐴 ∈ ℕ0)    &   (𝜃𝐵 ∈ ℕ0)    &   (𝜃𝑊 ∈ ℕ)    &   (𝜃 → [𝑦 / 𝑟]𝜑)    &   (𝜃𝑦 ∈ ℕ0)    &   (𝜃[𝑊 / 𝑟]𝜑)    &   (𝜓 ↔ ∀𝑧 ∈ ℕ0 (𝑧𝑟 → (𝑧𝑥𝑧𝑦)))    &   ((𝜃[(𝑦 mod 𝑊) / 𝑟]𝜑) → ∃𝑟 ∈ ℕ0 ([(𝑦 mod 𝑊) / 𝑥][𝑊 / 𝑦]𝜓𝜑))    &   𝑥𝜃    &   𝑟𝜃       (𝜃 → ∃𝑟 ∈ ℕ0 ([𝑊 / 𝑥]𝜓𝜑))
 
Theorembezoutlemmain 10387* 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.)
(𝜑 ↔ ∃𝑠 ∈ ℤ ∃𝑡 ∈ ℤ 𝑟 = ((𝐴 · 𝑠) + (𝐵 · 𝑡)))    &   (𝜓 ↔ ∀𝑧 ∈ ℕ0 (𝑧𝑟 → (𝑧𝑥𝑧𝑦)))    &   (𝜃𝐴 ∈ ℕ0)    &   (𝜃𝐵 ∈ ℕ0)       (𝜃 → ∀𝑥 ∈ ℕ0 ([𝑥 / 𝑟]𝜑 → ∀𝑦 ∈ ℕ0 ([𝑦 / 𝑟]𝜑 → ∃𝑟 ∈ ℕ0 (𝜓𝜑))))
 
Theorembezoutlema 10388* Lemma for Bézout's identity. The is-bezout condition is satisfied by 𝐴. (Contributed by Jim Kingdon, 30-Dec-2021.)
(𝜑 ↔ ∃𝑠 ∈ ℤ ∃𝑡 ∈ ℤ 𝑟 = ((𝐴 · 𝑠) + (𝐵 · 𝑡)))    &   (𝜃𝐴 ∈ ℕ0)    &   (𝜃𝐵 ∈ ℕ0)       (𝜃[𝐴 / 𝑟]𝜑)
 
Theorembezoutlemb 10389* Lemma for Bézout's identity. The is-bezout condition is satisfied by 𝐵. (Contributed by Jim Kingdon, 30-Dec-2021.)
(𝜑 ↔ ∃𝑠 ∈ ℤ ∃𝑡 ∈ ℤ 𝑟 = ((𝐴 · 𝑠) + (𝐵 · 𝑡)))    &   (𝜃𝐴 ∈ ℕ0)    &   (𝜃𝐵 ∈ ℕ0)       (𝜃[𝐵 / 𝑟]𝜑)
 
Theorembezoutlemex 10390* 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.)
((𝐴 ∈ ℕ0𝐵 ∈ ℕ0) → ∃𝑑 ∈ ℕ0 (∀𝑧 ∈ ℕ0 (𝑧𝑑 → (𝑧𝐴𝑧𝐵)) ∧ ∃𝑥 ∈ ℤ ∃𝑦 ∈ ℤ 𝑑 = ((𝐴 · 𝑥) + (𝐵 · 𝑦))))
 
Theorembezoutlemzz 10391* Lemma for Bézout's identity. Like bezoutlemex 10390 but where ' z ' is any integer, not just a nonnegative one. (Contributed by Mario Carneiro and Jim Kingdon, 8-Jan-2022.)
((𝐴 ∈ ℕ0𝐵 ∈ ℕ0) → ∃𝑑 ∈ ℕ0 (∀𝑧 ∈ ℤ (𝑧𝑑 → (𝑧𝐴𝑧𝐵)) ∧ ∃𝑥 ∈ ℤ ∃𝑦 ∈ ℤ 𝑑 = ((𝐴 · 𝑥) + (𝐵 · 𝑦))))
 
Theorembezoutlemaz 10392* Lemma for Bézout's identity. Like bezoutlemzz 10391 but where ' A ' can be any integer, not just a nonnegative one. (Contributed by Mario Carneiro and Jim Kingdon, 8-Jan-2022.)
((𝐴 ∈ ℤ ∧ 𝐵 ∈ ℕ0) → ∃𝑑 ∈ ℕ0 (∀𝑧 ∈ ℤ (𝑧𝑑 → (𝑧𝐴𝑧𝐵)) ∧ ∃𝑥 ∈ ℤ ∃𝑦 ∈ ℤ 𝑑 = ((𝐴 · 𝑥) + (𝐵 · 𝑦))))
 
Theorembezoutlembz 10393* Lemma for Bézout's identity. Like bezoutlemaz 10392 but where ' B ' can be any integer, not just a nonnegative one. (Contributed by Mario Carneiro and Jim Kingdon, 8-Jan-2022.)
((𝐴 ∈ ℤ ∧ 𝐵 ∈ ℤ) → ∃𝑑 ∈ ℕ0 (∀𝑧 ∈ ℤ (𝑧𝑑 → (𝑧𝐴𝑧𝐵)) ∧ ∃𝑥 ∈ ℤ ∃𝑦 ∈ ℤ 𝑑 = ((𝐴 · 𝑥) + (𝐵 · 𝑦))))
 
Theorembezoutlembi 10394* Lemma for Bézout's identity. Like bezoutlembz 10393 but the greatest common divisor condition is a biconditional, not just an implication. (Contributed by Mario Carneiro and Jim Kingdon, 8-Jan-2022.)
((𝐴 ∈ ℤ ∧ 𝐵 ∈ ℤ) → ∃𝑑 ∈ ℕ0 (∀𝑧 ∈ ℤ (𝑧𝑑 ↔ (𝑧𝐴𝑧𝐵)) ∧ ∃𝑥 ∈ ℤ ∃𝑦 ∈ ℤ 𝑑 = ((𝐴 · 𝑥) + (𝐵 · 𝑦))))
 
Theorembezoutlemmo 10395* 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.)
(𝜑𝐴 ∈ ℤ)    &   (𝜑𝐵 ∈ ℤ)    &   (𝜑𝐷 ∈ ℕ0)    &   (𝜑 → ∀𝑧 ∈ ℤ (𝑧𝐷 ↔ (𝑧𝐴𝑧𝐵)))    &   (𝜑𝐸 ∈ ℕ0)    &   (𝜑 → ∀𝑧 ∈ ℤ (𝑧𝐸 ↔ (𝑧𝐴𝑧𝐵)))       (𝜑𝐷 = 𝐸)
 
Theorembezoutlemeu 10396* 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.)
(𝜑𝐴 ∈ ℤ)    &   (𝜑𝐵 ∈ ℤ)    &   (𝜑𝐷 ∈ ℕ0)    &   (𝜑 → ∀𝑧 ∈ ℤ (𝑧𝐷 ↔ (𝑧𝐴𝑧𝐵)))       (𝜑 → ∃!𝑑 ∈ ℕ0𝑧 ∈ ℤ (𝑧𝑑 ↔ (𝑧𝐴𝑧𝐵)))
 
Theorembezoutlemle 10397* 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.)
(𝜑𝐴 ∈ ℤ)    &   (𝜑𝐵 ∈ ℤ)    &   (𝜑𝐷 ∈ ℕ0)    &   (𝜑 → ∀𝑧 ∈ ℤ (𝑧𝐷 ↔ (𝑧𝐴𝑧𝐵)))    &   (𝜑 → ¬ (𝐴 = 0 ∧ 𝐵 = 0))       (𝜑 → ∀𝑧 ∈ ℤ ((𝑧𝐴𝑧𝐵) → 𝑧𝐷))
 
Theorembezoutlemsup 10398* Lemma for Bézout's identity. The number satisfying the greatest common divisor condition is the supremum of divisors of both 𝐴 and 𝐵. (Contributed by Mario Carneiro and Jim Kingdon, 9-Jan-2022.)
(𝜑𝐴 ∈ ℤ)    &   (𝜑𝐵 ∈ ℤ)    &   (𝜑𝐷 ∈ ℕ0)    &   (𝜑 → ∀𝑧 ∈ ℤ (𝑧𝐷 ↔ (𝑧𝐴𝑧𝐵)))    &   (𝜑 → ¬ (𝐴 = 0 ∧ 𝐵 = 0))       (𝜑𝐷 = sup({𝑧 ∈ ℤ ∣ (𝑧𝐴𝑧𝐵)}, ℝ, < ))
 
Theoremdfgcd3 10399* Alternate definition of the gcd operator. (Contributed by Jim Kingdon, 31-Dec-2021.)
((𝑀 ∈ ℤ ∧ 𝑁 ∈ ℤ) → (𝑀 gcd 𝑁) = (𝑑 ∈ ℕ0𝑧 ∈ ℤ (𝑧𝑑 ↔ (𝑧𝑀𝑧𝑁))))
 
Theorembezout 10400* Bézout's identity: For any integers 𝐴 and 𝐵, there are integers 𝑥, 𝑦 such that (𝐴 gcd 𝐵) = 𝐴 · 𝑥 + 𝐵 · 𝑦. This is Metamath 100 proof #60.

The proof is constructive, in the sense that it applies the Extended Euclidian Algorithm to constuct a number which can be shown to be (𝐴 gcd 𝐵) and which satisfies the rest of the theorem. In the presence of excluded middle, it is common to prove Bézout's identity by taking the smallest number which satisfies the Bézout condition, and showing it is the greatest common divisor. But we do not have the ability to show that number exists other than by providing a way to determine it. (Contributed by Mario Carneiro, 22-Feb-2014.)

((𝐴 ∈ ℤ ∧ 𝐵 ∈ ℤ) → ∃𝑥 ∈ ℤ ∃𝑦 ∈ ℤ (𝐴 gcd 𝐵) = ((𝐴 · 𝑥) + (𝐵 · 𝑦)))
    < 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-10795
  Copyright terms: Public domain < Previous  Next >