![]() |
Intuitionistic Logic Explorer Theorem List (p. 122 of 149) | < Previous Next > |
Bad symbols? Try the
GIF version. |
||
Mirrors > Metamath Home Page > ILE Home Page > Theorem List Contents > Recent Proofs This page: Page List |
Type | Label | Description |
---|---|---|
Statement | ||
Theorem | divgcdcoprm0 12101 | Integers divided by gcd are coprime. (Contributed by AV, 12-Jul-2021.) |
β’ ((π΄ β β€ β§ π΅ β β€ β§ π΅ β 0) β ((π΄ / (π΄ gcd π΅)) gcd (π΅ / (π΄ gcd π΅))) = 1) | ||
Theorem | divgcdcoprmex 12102* | Integers divided by gcd are coprime (see ProofWiki "Integers Divided by GCD are Coprime", 11-Jul-2021, https://proofwiki.org/wiki/Integers_Divided_by_GCD_are_Coprime): Any pair of integers, not both zero, can be reduced to a pair of coprime ones by dividing them by their gcd. (Contributed by AV, 12-Jul-2021.) |
β’ ((π΄ β β€ β§ (π΅ β β€ β§ π΅ β 0) β§ π = (π΄ gcd π΅)) β βπ β β€ βπ β β€ (π΄ = (π Β· π) β§ π΅ = (π Β· π) β§ (π gcd π) = 1)) | ||
Theorem | cncongr1 12103 | One direction of the bicondition in cncongr 12105. Theorem 5.4 in [ApostolNT] p. 109. (Contributed by AV, 13-Jul-2021.) |
β’ (((π΄ β β€ β§ π΅ β β€ β§ πΆ β β€) β§ (π β β β§ π = (π / (πΆ gcd π)))) β (((π΄ Β· πΆ) mod π) = ((π΅ Β· πΆ) mod π) β (π΄ mod π) = (π΅ mod π))) | ||
Theorem | cncongr2 12104 | The other direction of the bicondition in cncongr 12105. (Contributed by AV, 11-Jul-2021.) |
β’ (((π΄ β β€ β§ π΅ β β€ β§ πΆ β β€) β§ (π β β β§ π = (π / (πΆ gcd π)))) β ((π΄ mod π) = (π΅ mod π) β ((π΄ Β· πΆ) mod π) = ((π΅ Β· πΆ) mod π))) | ||
Theorem | cncongr 12105 | Cancellability of Congruences (see ProofWiki "Cancellability of Congruences, https://proofwiki.org/wiki/Cancellability_of_Congruences, 10-Jul-2021): Two products with a common factor are congruent modulo a positive integer iff the other factors are congruent modulo the integer divided by the greates common divisor of the integer and the common factor. See also Theorem 5.4 "Cancellation law" in [ApostolNT] p. 109. (Contributed by AV, 13-Jul-2021.) |
β’ (((π΄ β β€ β§ π΅ β β€ β§ πΆ β β€) β§ (π β β β§ π = (π / (πΆ gcd π)))) β (((π΄ Β· πΆ) mod π) = ((π΅ Β· πΆ) mod π) β (π΄ mod π) = (π΅ mod π))) | ||
Theorem | cncongrcoprm 12106 | Corollary 1 of Cancellability of Congruences: Two products with a common factor are congruent modulo an integer being coprime to the common factor iff the other factors are congruent modulo the integer. (Contributed by AV, 13-Jul-2021.) |
β’ (((π΄ β β€ β§ π΅ β β€ β§ πΆ β β€) β§ (π β β β§ (πΆ gcd π) = 1)) β (((π΄ Β· πΆ) mod π) = ((π΅ Β· πΆ) mod π) β (π΄ mod π) = (π΅ mod π))) | ||
Remark: to represent odd prime numbers, i.e., all prime numbers except 2, the idiom π β (β β {2}) is used. It is a little bit shorter than (π β β β§ π β 2). Both representations can be converted into each other by eldifsn 3720. | ||
Syntax | cprime 12107 | Extend the definition of a class to include the set of prime numbers. |
class β | ||
Definition | df-prm 12108* | Define the set of prime numbers. (Contributed by Paul Chapman, 22-Jun-2011.) |
β’ β = {π β β β£ {π β β β£ π β₯ π} β 2o} | ||
Theorem | isprm 12109* | The predicate "is a prime number". A prime number is a positive integer with exactly two positive divisors. (Contributed by Paul Chapman, 22-Jun-2011.) |
β’ (π β β β (π β β β§ {π β β β£ π β₯ π} β 2o)) | ||
Theorem | prmnn 12110 | A prime number is a positive integer. (Contributed by Paul Chapman, 22-Jun-2011.) |
β’ (π β β β π β β) | ||
Theorem | prmz 12111 | A prime number is an integer. (Contributed by Paul Chapman, 22-Jun-2011.) (Proof shortened by Jonathan Yan, 16-Jul-2017.) |
β’ (π β β β π β β€) | ||
Theorem | prmssnn 12112 | The prime numbers are a subset of the positive integers. (Contributed by AV, 22-Jul-2020.) |
β’ β β β | ||
Theorem | prmex 12113 | The set of prime numbers exists. (Contributed by AV, 22-Jul-2020.) |
β’ β β V | ||
Theorem | 1nprm 12114 | 1 is not a prime number. (Contributed by Paul Chapman, 22-Jun-2011.) (Proof shortened by Fan Zheng, 3-Jul-2016.) |
β’ Β¬ 1 β β | ||
Theorem | 1idssfct 12115* | The positive divisors of a positive integer include 1 and itself. (Contributed by Paul Chapman, 22-Jun-2011.) |
β’ (π β β β {1, π} β {π β β β£ π β₯ π}) | ||
Theorem | isprm2lem 12116* | Lemma for isprm2 12117. (Contributed by Paul Chapman, 22-Jun-2011.) |
β’ ((π β β β§ π β 1) β ({π β β β£ π β₯ π} β 2o β {π β β β£ π β₯ π} = {1, π})) | ||
Theorem | isprm2 12117* | The predicate "is a prime number". A prime number is an integer greater than or equal to 2 whose only positive divisors are 1 and itself. Definition in [ApostolNT] p. 16. (Contributed by Paul Chapman, 26-Oct-2012.) |
β’ (π β β β (π β (β€β₯β2) β§ βπ§ β β (π§ β₯ π β (π§ = 1 β¨ π§ = π)))) | ||
Theorem | isprm3 12118* | The predicate "is a prime number". A prime number is an integer greater than or equal to 2 with no divisors strictly between 1 and itself. (Contributed by Paul Chapman, 26-Oct-2012.) |
β’ (π β β β (π β (β€β₯β2) β§ βπ§ β (2...(π β 1)) Β¬ π§ β₯ π)) | ||
Theorem | isprm4 12119* | The predicate "is a prime number". A prime number is an integer greater than or equal to 2 whose only divisor greater than or equal to 2 is itself. (Contributed by Paul Chapman, 26-Oct-2012.) |
β’ (π β β β (π β (β€β₯β2) β§ βπ§ β (β€β₯β2)(π§ β₯ π β π§ = π))) | ||
Theorem | prmind2 12120* | A variation on prmind 12121 assuming complete induction for primes. (Contributed by Mario Carneiro, 20-Jun-2015.) |
β’ (π₯ = 1 β (π β π)) & β’ (π₯ = π¦ β (π β π)) & β’ (π₯ = π§ β (π β π)) & β’ (π₯ = (π¦ Β· π§) β (π β π)) & β’ (π₯ = π΄ β (π β π)) & β’ π & β’ ((π₯ β β β§ βπ¦ β (1...(π₯ β 1))π) β π) & β’ ((π¦ β (β€β₯β2) β§ π§ β (β€β₯β2)) β ((π β§ π) β π)) β β’ (π΄ β β β π) | ||
Theorem | prmind 12121* | Perform induction over the multiplicative structure of β. If a property π(π₯) holds for the primes and 1 and is preserved under multiplication, then it holds for every positive integer. (Contributed by Mario Carneiro, 20-Jun-2015.) |
β’ (π₯ = 1 β (π β π)) & β’ (π₯ = π¦ β (π β π)) & β’ (π₯ = π§ β (π β π)) & β’ (π₯ = (π¦ Β· π§) β (π β π)) & β’ (π₯ = π΄ β (π β π)) & β’ π & β’ (π₯ β β β π) & β’ ((π¦ β (β€β₯β2) β§ π§ β (β€β₯β2)) β ((π β§ π) β π)) β β’ (π΄ β β β π) | ||
Theorem | dvdsprime 12122 | If π divides a prime, then π is either the prime or one. (Contributed by Scott Fenton, 8-Apr-2014.) |
β’ ((π β β β§ π β β) β (π β₯ π β (π = π β¨ π = 1))) | ||
Theorem | nprm 12123 | A product of two integers greater than one is composite. (Contributed by Mario Carneiro, 20-Jun-2015.) |
β’ ((π΄ β (β€β₯β2) β§ π΅ β (β€β₯β2)) β Β¬ (π΄ Β· π΅) β β) | ||
Theorem | nprmi 12124 | An inference for compositeness. (Contributed by Mario Carneiro, 18-Feb-2014.) (Revised by Mario Carneiro, 20-Jun-2015.) |
β’ π΄ β β & β’ π΅ β β & β’ 1 < π΄ & β’ 1 < π΅ & β’ (π΄ Β· π΅) = π β β’ Β¬ π β β | ||
Theorem | dvdsnprmd 12125 | If a number is divisible by an integer greater than 1 and less then the number, the number is not prime. (Contributed by AV, 24-Jul-2021.) |
β’ (π β 1 < π΄) & β’ (π β π΄ < π) & β’ (π β π΄ β₯ π) β β’ (π β Β¬ π β β) | ||
Theorem | prm2orodd 12126 | A prime number is either 2 or odd. (Contributed by AV, 19-Jun-2021.) |
β’ (π β β β (π = 2 β¨ Β¬ 2 β₯ π)) | ||
Theorem | 2prm 12127 | 2 is a prime number. (Contributed by Paul Chapman, 22-Jun-2011.) (Proof shortened by Fan Zheng, 16-Jun-2016.) |
β’ 2 β β | ||
Theorem | 3prm 12128 | 3 is a prime number. (Contributed by Paul Chapman, 22-Jun-2011.) |
β’ 3 β β | ||
Theorem | 4nprm 12129 | 4 is not a prime number. (Contributed by Paul Chapman, 22-Jun-2011.) (Proof shortened by Mario Carneiro, 18-Feb-2014.) |
β’ Β¬ 4 β β | ||
Theorem | prmdc 12130 | Primality is decidable. (Contributed by Jim Kingdon, 30-Sep-2024.) |
β’ (π β β β DECID π β β) | ||
Theorem | prmuz2 12131 | A prime number is an integer greater than or equal to 2. (Contributed by Paul Chapman, 17-Nov-2012.) |
β’ (π β β β π β (β€β₯β2)) | ||
Theorem | prmgt1 12132 | A prime number is an integer greater than 1. (Contributed by Alexander van der Vekens, 17-May-2018.) |
β’ (π β β β 1 < π) | ||
Theorem | prmm2nn0 12133 | Subtracting 2 from a prime number results in a nonnegative integer. (Contributed by Alexander van der Vekens, 30-Aug-2018.) |
β’ (π β β β (π β 2) β β0) | ||
Theorem | oddprmgt2 12134 | An odd prime is greater than 2. (Contributed by AV, 20-Aug-2021.) |
β’ (π β (β β {2}) β 2 < π) | ||
Theorem | oddprmge3 12135 | An odd prime is greater than or equal to 3. (Contributed by Alexander van der Vekens, 7-Oct-2018.) (Revised by AV, 20-Aug-2021.) |
β’ (π β (β β {2}) β π β (β€β₯β3)) | ||
Theorem | sqnprm 12136 | A square is never prime. (Contributed by Mario Carneiro, 20-Jun-2015.) |
β’ (π΄ β β€ β Β¬ (π΄β2) β β) | ||
Theorem | dvdsprm 12137 | An integer greater than or equal to 2 divides a prime number iff it is equal to it. (Contributed by Paul Chapman, 26-Oct-2012.) |
β’ ((π β (β€β₯β2) β§ π β β) β (π β₯ π β π = π)) | ||
Theorem | exprmfct 12138* | Every integer greater than or equal to 2 has a prime factor. (Contributed by Paul Chapman, 26-Oct-2012.) (Proof shortened by Mario Carneiro, 20-Jun-2015.) |
β’ (π β (β€β₯β2) β βπ β β π β₯ π) | ||
Theorem | prmdvdsfz 12139* | Each integer greater than 1 and less then or equal to a fixed number is divisible by a prime less then or equal to this fixed number. (Contributed by AV, 15-Aug-2020.) |
β’ ((π β β β§ πΌ β (2...π)) β βπ β β (π β€ π β§ π β₯ πΌ)) | ||
Theorem | nprmdvds1 12140 | No prime number divides 1. (Contributed by Paul Chapman, 17-Nov-2012.) (Proof shortened by Mario Carneiro, 2-Jul-2015.) |
β’ (π β β β Β¬ π β₯ 1) | ||
Theorem | isprm5lem 12141* | Lemma for isprm5 12142. The interesting direction (showing that one only needs to check prime divisors up to the square root of π). (Contributed by Jim Kingdon, 20-Oct-2024.) |
β’ (π β π β (β€β₯β2)) & β’ (π β βπ§ β β ((π§β2) β€ π β Β¬ π§ β₯ π)) & β’ (π β π β (2...(π β 1))) β β’ (π β Β¬ π β₯ π) | ||
Theorem | isprm5 12142* | One need only check prime divisors of π up to βπ in order to ensure primality. (Contributed by Mario Carneiro, 18-Feb-2014.) |
β’ (π β β β (π β (β€β₯β2) β§ βπ§ β β ((π§β2) β€ π β Β¬ π§ β₯ π))) | ||
Theorem | divgcdodd 12143 | Either π΄ / (π΄ gcd π΅) is odd or π΅ / (π΄ gcd π΅) is odd. (Contributed by Scott Fenton, 19-Apr-2014.) |
β’ ((π΄ β β β§ π΅ β β) β (Β¬ 2 β₯ (π΄ / (π΄ gcd π΅)) β¨ Β¬ 2 β₯ (π΅ / (π΄ gcd π΅)))) | ||
This section is about coprimality with respect to primes, and a special version of Euclid's lemma for primes is provided, see euclemma 12146. | ||
Theorem | coprm 12144 | A prime number either divides an integer or is coprime to it, but not both. Theorem 1.8 in [ApostolNT] p. 17. (Contributed by Paul Chapman, 22-Jun-2011.) |
β’ ((π β β β§ π β β€) β (Β¬ π β₯ π β (π gcd π) = 1)) | ||
Theorem | prmrp 12145 | Unequal prime numbers are relatively prime. (Contributed by Mario Carneiro, 23-Feb-2014.) |
β’ ((π β β β§ π β β) β ((π gcd π) = 1 β π β π)) | ||
Theorem | euclemma 12146 | Euclid's lemma. A prime number divides the product of two integers iff it divides at least one of them. Theorem 1.9 in [ApostolNT] p. 17. (Contributed by Paul Chapman, 17-Nov-2012.) |
β’ ((π β β β§ π β β€ β§ π β β€) β (π β₯ (π Β· π) β (π β₯ π β¨ π β₯ π))) | ||
Theorem | isprm6 12147* | A number is prime iff it satisfies Euclid's lemma euclemma 12146. (Contributed by Mario Carneiro, 6-Sep-2015.) |
β’ (π β β β (π β (β€β₯β2) β§ βπ₯ β β€ βπ¦ β β€ (π β₯ (π₯ Β· π¦) β (π β₯ π₯ β¨ π β₯ π¦)))) | ||
Theorem | prmdvdsexp 12148 | A prime divides a positive power of an integer iff it divides the integer. (Contributed by Mario Carneiro, 24-Feb-2014.) (Revised by Mario Carneiro, 17-Jul-2014.) |
β’ ((π β β β§ π΄ β β€ β§ π β β) β (π β₯ (π΄βπ) β π β₯ π΄)) | ||
Theorem | prmdvdsexpb 12149 | A prime divides a positive power of another iff they are equal. (Contributed by Paul Chapman, 30-Nov-2012.) (Revised by Mario Carneiro, 24-Feb-2014.) |
β’ ((π β β β§ π β β β§ π β β) β (π β₯ (πβπ) β π = π)) | ||
Theorem | prmdvdsexpr 12150 | If a prime divides a nonnegative power of another, then they are equal. (Contributed by Mario Carneiro, 16-Jan-2015.) |
β’ ((π β β β§ π β β β§ π β β0) β (π β₯ (πβπ) β π = π)) | ||
Theorem | prmexpb 12151 | Two positive prime powers are equal iff the primes and the powers are equal. (Contributed by Paul Chapman, 30-Nov-2012.) |
β’ (((π β β β§ π β β) β§ (π β β β§ π β β)) β ((πβπ) = (πβπ) β (π = π β§ π = π))) | ||
Theorem | prmfac1 12152 | The factorial of a number only contains primes less than the base. (Contributed by Mario Carneiro, 6-Mar-2014.) |
β’ ((π β β0 β§ π β β β§ π β₯ (!βπ)) β π β€ π) | ||
Theorem | rpexp 12153 | If two numbers π΄ and π΅ are relatively prime, then they are still relatively prime if raised to a power. (Contributed by Mario Carneiro, 24-Feb-2014.) |
β’ ((π΄ β β€ β§ π΅ β β€ β§ π β β) β (((π΄βπ) gcd π΅) = 1 β (π΄ gcd π΅) = 1)) | ||
Theorem | rpexp1i 12154 | Relative primality passes to asymmetric powers. (Contributed by Stefan O'Rear, 27-Sep-2014.) |
β’ ((π΄ β β€ β§ π΅ β β€ β§ π β β0) β ((π΄ gcd π΅) = 1 β ((π΄βπ) gcd π΅) = 1)) | ||
Theorem | rpexp12i 12155 | Relative primality passes to symmetric powers. (Contributed by Stefan O'Rear, 27-Sep-2014.) |
β’ ((π΄ β β€ β§ π΅ β β€ β§ (π β β0 β§ π β β0)) β ((π΄ gcd π΅) = 1 β ((π΄βπ) gcd (π΅βπ)) = 1)) | ||
Theorem | prmndvdsfaclt 12156 | A prime number does not divide the factorial of a nonnegative integer less than the prime number. (Contributed by AV, 13-Jul-2021.) |
β’ ((π β β β§ π β β0) β (π < π β Β¬ π β₯ (!βπ))) | ||
Theorem | cncongrprm 12157 | Corollary 2 of Cancellability of Congruences: Two products with a common factor are congruent modulo a prime number not dividing the common factor iff the other factors are congruent modulo the prime number. (Contributed by AV, 13-Jul-2021.) |
β’ (((π΄ β β€ β§ π΅ β β€ β§ πΆ β β€) β§ (π β β β§ Β¬ π β₯ πΆ)) β (((π΄ Β· πΆ) mod π) = ((π΅ Β· πΆ) mod π) β (π΄ mod π) = (π΅ mod π))) | ||
Theorem | isevengcd2 12158 | The predicate "is an even number". An even number and 2 have 2 as greatest common divisor. (Contributed by AV, 1-Jul-2020.) (Revised by AV, 8-Aug-2021.) |
β’ (π β β€ β (2 β₯ π β (2 gcd π) = 2)) | ||
Theorem | isoddgcd1 12159 | The predicate "is an odd number". An odd number and 2 have 1 as greatest common divisor. (Contributed by AV, 1-Jul-2020.) (Revised by AV, 8-Aug-2021.) |
β’ (π β β€ β (Β¬ 2 β₯ π β (2 gcd π) = 1)) | ||
Theorem | 3lcm2e6 12160 | The least common multiple of three and two is six. The operands are unequal primes and thus coprime, so the result is (the absolute value of) their product. (Contributed by Steve Rodriguez, 20-Jan-2020.) (Proof shortened by AV, 27-Aug-2020.) |
β’ (3 lcm 2) = 6 | ||
Theorem | sqrt2irrlem 12161 | Lemma for sqrt2irr 12162. This is the core of the proof: - if π΄ / π΅ = β(2), then π΄ and π΅ are even, so π΄ / 2 and π΅ / 2 are smaller representatives, which is absurd by the method of infinite descent (here implemented by strong induction). (Contributed by NM, 20-Aug-2001.) (Revised by Mario Carneiro, 12-Sep-2015.) |
β’ (π β π΄ β β€) & β’ (π β π΅ β β) & β’ (π β (ββ2) = (π΄ / π΅)) β β’ (π β ((π΄ / 2) β β€ β§ (π΅ / 2) β β)) | ||
Theorem | sqrt2irr 12162 |
The square root of 2 is not rational. That is, for any rational number,
(ββ2) does not equal it. However,
if we were to say "the
square root of 2 is irrational" that would mean something stronger:
"for any rational number, (ββ2)
is apart from it" (the two
statements are equivalent given excluded middle). See sqrt2irrap 12180 for
the proof that the square root of two is irrational.
The proof's core is proven in sqrt2irrlem 12161, which shows that if π΄ / π΅ = β(2), then π΄ and π΅ are even, so π΄ / 2 and π΅ / 2 are smaller representatives, which is absurd. (Contributed by NM, 8-Jan-2002.) (Proof shortened by Mario Carneiro, 12-Sep-2015.) |
β’ (ββ2) β β | ||
Theorem | sqrt2re 12163 | The square root of 2 exists and is a real number. (Contributed by NM, 3-Dec-2004.) |
β’ (ββ2) β β | ||
Theorem | sqrt2irr0 12164 | The square root of 2 is not rational. (Contributed by AV, 23-Dec-2022.) |
β’ (ββ2) β (β β β) | ||
Theorem | pw2dvdslemn 12165* | Lemma for pw2dvds 12166. If a natural number has some power of two which does not divide it, there is a highest power of two which does divide it. (Contributed by Jim Kingdon, 14-Nov-2021.) |
β’ ((π β β β§ π΄ β β β§ Β¬ (2βπ΄) β₯ π) β βπ β β0 ((2βπ) β₯ π β§ Β¬ (2β(π + 1)) β₯ π)) | ||
Theorem | pw2dvds 12166* | A natural number has a highest power of two which divides it. (Contributed by Jim Kingdon, 14-Nov-2021.) |
β’ (π β β β βπ β β0 ((2βπ) β₯ π β§ Β¬ (2β(π + 1)) β₯ π)) | ||
Theorem | pw2dvdseulemle 12167 | Lemma for pw2dvdseu 12168. Powers of two which do and do not divide a natural number. (Contributed by Jim Kingdon, 17-Nov-2021.) |
β’ (π β π β β) & β’ (π β π΄ β β0) & β’ (π β π΅ β β0) & β’ (π β (2βπ΄) β₯ π) & β’ (π β Β¬ (2β(π΅ + 1)) β₯ π) β β’ (π β π΄ β€ π΅) | ||
Theorem | pw2dvdseu 12168* | A natural number has a unique highest power of two which divides it. (Contributed by Jim Kingdon, 16-Nov-2021.) |
β’ (π β β β β!π β β0 ((2βπ) β₯ π β§ Β¬ (2β(π + 1)) β₯ π)) | ||
Theorem | oddpwdclemxy 12169* | Lemma for oddpwdc 12174. Another way of stating that decomposing a natural number into a power of two and an odd number is unique. (Contributed by Jim Kingdon, 16-Nov-2021.) |
β’ ((((π β β β§ Β¬ 2 β₯ π) β§ π β β0) β§ π΄ = ((2βπ) Β· π)) β (π = (π΄ / (2β(β©π§ β β0 ((2βπ§) β₯ π΄ β§ Β¬ (2β(π§ + 1)) β₯ π΄)))) β§ π = (β©π§ β β0 ((2βπ§) β₯ π΄ β§ Β¬ (2β(π§ + 1)) β₯ π΄)))) | ||
Theorem | oddpwdclemdvds 12170* | Lemma for oddpwdc 12174. A natural number is divisible by the highest power of two which divides it. (Contributed by Jim Kingdon, 17-Nov-2021.) |
β’ (π΄ β β β (2β(β©π§ β β0 ((2βπ§) β₯ π΄ β§ Β¬ (2β(π§ + 1)) β₯ π΄))) β₯ π΄) | ||
Theorem | oddpwdclemndvds 12171* | Lemma for oddpwdc 12174. A natural number is not divisible by one more than the highest power of two which divides it. (Contributed by Jim Kingdon, 17-Nov-2021.) |
β’ (π΄ β β β Β¬ (2β((β©π§ β β0 ((2βπ§) β₯ π΄ β§ Β¬ (2β(π§ + 1)) β₯ π΄)) + 1)) β₯ π΄) | ||
Theorem | oddpwdclemodd 12172* | Lemma for oddpwdc 12174. Removing the powers of two from a natural number produces an odd number. (Contributed by Jim Kingdon, 16-Nov-2021.) |
β’ (π΄ β β β Β¬ 2 β₯ (π΄ / (2β(β©π§ β β0 ((2βπ§) β₯ π΄ β§ Β¬ (2β(π§ + 1)) β₯ π΄))))) | ||
Theorem | oddpwdclemdc 12173* | Lemma for oddpwdc 12174. Decomposing a number into odd and even parts. (Contributed by Jim Kingdon, 16-Nov-2021.) |
β’ ((((π β β β§ Β¬ 2 β₯ π) β§ π β β0) β§ π΄ = ((2βπ) Β· π)) β (π΄ β β β§ (π = (π΄ / (2β(β©π§ β β0 ((2βπ§) β₯ π΄ β§ Β¬ (2β(π§ + 1)) β₯ π΄)))) β§ π = (β©π§ β β0 ((2βπ§) β₯ π΄ β§ Β¬ (2β(π§ + 1)) β₯ π΄))))) | ||
Theorem | oddpwdc 12174* | The function πΉ that decomposes a number into its "odd" and "even" parts, which is to say the largest power of two and largest odd divisor of a number, is a bijection from pairs of a nonnegative integer and an odd number to positive integers. (Contributed by Thierry Arnoux, 15-Aug-2017.) |
β’ π½ = {π§ β β β£ Β¬ 2 β₯ π§} & β’ πΉ = (π₯ β π½, π¦ β β0 β¦ ((2βπ¦) Β· π₯)) β β’ πΉ:(π½ Γ β0)β1-1-ontoββ | ||
Theorem | sqpweven 12175* | The greatest power of two dividing the square of an integer is an even power of two. (Contributed by Jim Kingdon, 17-Nov-2021.) |
β’ π½ = {π§ β β β£ Β¬ 2 β₯ π§} & β’ πΉ = (π₯ β π½, π¦ β β0 β¦ ((2βπ¦) Β· π₯)) β β’ (π΄ β β β 2 β₯ (2nd β(β‘πΉβ(π΄β2)))) | ||
Theorem | 2sqpwodd 12176* | The greatest power of two dividing twice the square of an integer is an odd power of two. (Contributed by Jim Kingdon, 17-Nov-2021.) |
β’ π½ = {π§ β β β£ Β¬ 2 β₯ π§} & β’ πΉ = (π₯ β π½, π¦ β β0 β¦ ((2βπ¦) Β· π₯)) β β’ (π΄ β β β Β¬ 2 β₯ (2nd β(β‘πΉβ(2 Β· (π΄β2))))) | ||
Theorem | sqne2sq 12177 | The square of a natural number can never be equal to two times the square of a natural number. (Contributed by Jim Kingdon, 17-Nov-2021.) |
β’ ((π΄ β β β§ π΅ β β) β (π΄β2) β (2 Β· (π΅β2))) | ||
Theorem | znege1 12178 | The absolute value of the difference between two unequal integers is at least one. (Contributed by Jim Kingdon, 31-Jan-2022.) |
β’ ((π΄ β β€ β§ π΅ β β€ β§ π΄ β π΅) β 1 β€ (absβ(π΄ β π΅))) | ||
Theorem | sqrt2irraplemnn 12179 | Lemma for sqrt2irrap 12180. The square root of 2 is apart from a positive rational expressed as a numerator and denominator. (Contributed by Jim Kingdon, 2-Oct-2021.) |
β’ ((π΄ β β β§ π΅ β β) β (ββ2) # (π΄ / π΅)) | ||
Theorem | sqrt2irrap 12180 | The square root of 2 is irrational. That is, for any rational number, (ββ2) is apart from it. In the absence of excluded middle, we can distinguish between this and "the square root of 2 is not rational" which is sqrt2irr 12162. (Contributed by Jim Kingdon, 2-Oct-2021.) |
β’ (π β β β (ββ2) # π) | ||
Syntax | cnumer 12181 | Extend class notation to include canonical numerator function. |
class numer | ||
Syntax | cdenom 12182 | Extend class notation to include canonical denominator function. |
class denom | ||
Definition | df-numer 12183* | The canonical numerator of a rational is the numerator of the rational's reduced fraction representation (no common factors, denominator positive). (Contributed by Stefan O'Rear, 13-Sep-2014.) |
β’ numer = (π¦ β β β¦ (1st β(β©π₯ β (β€ Γ β)(((1st βπ₯) gcd (2nd βπ₯)) = 1 β§ π¦ = ((1st βπ₯) / (2nd βπ₯)))))) | ||
Definition | df-denom 12184* | The canonical denominator of a rational is the denominator of the rational's reduced fraction representation (no common factors, denominator positive). (Contributed by Stefan O'Rear, 13-Sep-2014.) |
β’ denom = (π¦ β β β¦ (2nd β(β©π₯ β (β€ Γ β)(((1st βπ₯) gcd (2nd βπ₯)) = 1 β§ π¦ = ((1st βπ₯) / (2nd βπ₯)))))) | ||
Theorem | qnumval 12185* | Value of the canonical numerator function. (Contributed by Stefan O'Rear, 13-Sep-2014.) |
β’ (π΄ β β β (numerβπ΄) = (1st β(β©π₯ β (β€ Γ β)(((1st βπ₯) gcd (2nd βπ₯)) = 1 β§ π΄ = ((1st βπ₯) / (2nd βπ₯)))))) | ||
Theorem | qdenval 12186* | Value of the canonical denominator function. (Contributed by Stefan O'Rear, 13-Sep-2014.) |
β’ (π΄ β β β (denomβπ΄) = (2nd β(β©π₯ β (β€ Γ β)(((1st βπ₯) gcd (2nd βπ₯)) = 1 β§ π΄ = ((1st βπ₯) / (2nd βπ₯)))))) | ||
Theorem | qnumdencl 12187 | Lemma for qnumcl 12188 and qdencl 12189. (Contributed by Stefan O'Rear, 13-Sep-2014.) |
β’ (π΄ β β β ((numerβπ΄) β β€ β§ (denomβπ΄) β β)) | ||
Theorem | qnumcl 12188 | The canonical numerator of a rational is an integer. (Contributed by Stefan O'Rear, 13-Sep-2014.) |
β’ (π΄ β β β (numerβπ΄) β β€) | ||
Theorem | qdencl 12189 | The canonical denominator is a positive integer. (Contributed by Stefan O'Rear, 13-Sep-2014.) |
β’ (π΄ β β β (denomβπ΄) β β) | ||
Theorem | fnum 12190 | Canonical numerator defines a function. (Contributed by Stefan O'Rear, 13-Sep-2014.) |
β’ numer:ββΆβ€ | ||
Theorem | fden 12191 | Canonical denominator defines a function. (Contributed by Stefan O'Rear, 13-Sep-2014.) |
β’ denom:ββΆβ | ||
Theorem | qnumdenbi 12192 | Two numbers are the canonical representation of a rational iff they are coprime and have the right quotient. (Contributed by Stefan O'Rear, 13-Sep-2014.) |
β’ ((π΄ β β β§ π΅ β β€ β§ πΆ β β) β (((π΅ gcd πΆ) = 1 β§ π΄ = (π΅ / πΆ)) β ((numerβπ΄) = π΅ β§ (denomβπ΄) = πΆ))) | ||
Theorem | qnumdencoprm 12193 | The canonical representation of a rational is fully reduced. (Contributed by Stefan O'Rear, 13-Sep-2014.) |
β’ (π΄ β β β ((numerβπ΄) gcd (denomβπ΄)) = 1) | ||
Theorem | qeqnumdivden 12194 | Recover a rational number from its canonical representation. (Contributed by Stefan O'Rear, 13-Sep-2014.) |
β’ (π΄ β β β π΄ = ((numerβπ΄) / (denomβπ΄))) | ||
Theorem | qmuldeneqnum 12195 | Multiplying a rational by its denominator results in an integer. (Contributed by Stefan O'Rear, 13-Sep-2014.) |
β’ (π΄ β β β (π΄ Β· (denomβπ΄)) = (numerβπ΄)) | ||
Theorem | divnumden 12196 | Calculate the reduced form of a quotient using gcd. (Contributed by Stefan O'Rear, 13-Sep-2014.) |
β’ ((π΄ β β€ β§ π΅ β β) β ((numerβ(π΄ / π΅)) = (π΄ / (π΄ gcd π΅)) β§ (denomβ(π΄ / π΅)) = (π΅ / (π΄ gcd π΅)))) | ||
Theorem | divdenle 12197 | Reducing a quotient never increases the denominator. (Contributed by Stefan O'Rear, 13-Sep-2014.) |
β’ ((π΄ β β€ β§ π΅ β β) β (denomβ(π΄ / π΅)) β€ π΅) | ||
Theorem | qnumgt0 12198 | A rational is positive iff its canonical numerator is. (Contributed by Stefan O'Rear, 15-Sep-2014.) |
β’ (π΄ β β β (0 < π΄ β 0 < (numerβπ΄))) | ||
Theorem | qgt0numnn 12199 | A rational is positive iff its canonical numerator is a positive integer. (Contributed by Stefan O'Rear, 15-Sep-2014.) |
β’ ((π΄ β β β§ 0 < π΄) β (numerβπ΄) β β) | ||
Theorem | nn0gcdsq 12200 | Squaring commutes with GCD, in particular two coprime numbers have coprime squares. (Contributed by Stefan O'Rear, 15-Sep-2014.) |
β’ ((π΄ β β0 β§ π΅ β β0) β ((π΄ gcd π΅)β2) = ((π΄β2) gcd (π΅β2))) |
< Previous Next > |
Copyright terms: Public domain | < Previous Next > |