:: Rational Numbers, Irrational Roots and Numeral Representations
:: by Rafa{\l} Ziobro
::
:: Received July 2, 2026
:: Copyright (c) 2026 Association of Mizar Users
:: (Stowarzyszenie Uzytkownikow Mizara, Bialystok, Poland).
:: This code can be distributed under the GNU General Public Licence
:: version 3.0 or later, or the Creative Commons Attribution-ShareAlike
:: License version 4.0 or later, subject to the binding interpretation
:: detailed in file COPYING.interpretation.
:: See COPYING.GPL and COPYING.CC-BY-SA for the full text of these
:: licenses, or see http://www.gnu.org/licenses/gpl.html and
:: http://creativecommons.org/licenses/by-sa/4.0/.
environ
vocabularies ABIAN, NUMBERS, NAT_1, INT_1, FINSEQ_1, ARYTM_3, XXREAL_0,
CARD_1, ARYTM_1, COMPLEX1, RELAT_1, REAL_1, XCMPLX_0, ORDINAL1, ORDINAL4,
NEWTON, POWER, FUNCT_1, CARD_3, RFINSEQ, XBOOLE_0, ABSVALUE, ZFMISC_1,
COMPLEX3, NUMERAL1, AFINSQ_1, JORDAN3, VALUED_0, FUNCOP_1, INT_2,
PYTHTRIP, MOEBIUS1, NAT_3, IRRAT_1, RAT_1, SQUARE_1, NEWTON05;
notations ORDINAL1, XCMPLX_0, XREAL_0, NUMBERS, XXREAL_0, POWER, INT_1, ABIAN,
TARSKI, XBOOLE_0, NAT_D, COMPLEX3, NUMERAL1, AFINSQ_1, VALUED_0,
AFINSQ_2, CARD_1, RELAT_1, VALUED_1, FUNCT_1, RELSET_1, FUNCOP_1,
COMSEQ_3, ABSVALUE, INT_2, IRRAT_1, PYTHTRIP, MOEBIUS1, NEWTON03, RAT_1,
SQUARE_1, NEWTON05;
constructors NAT_D, ABIAN, RELSET_1, COMPLEX3, NUMERAL1, RECDEF_1, AFINSQ_2,
RVSUM_4, PARTFUN3, ABSVALUE, MOEBIUS1, NEWTON03, PYTHTRIP, PEPIN,
NEWTON05;
registrations AFINSQ_1, ABIAN, ORDINAL1, XXREAL_0, XREAL_0, NAT_1, INT_1,
NEWTON, XCMPLX_0, WSIERP_1, POWER, NAT_6, NEWTON01, NEWTON02, NEWTON03,
NEWTON04, NEWTON05, REAL_3, VALUED_0, COMPLEX3, RVSUM_4, RELAT_1,
AFINSQ_2, HILB10_2, FUNCOP_1, FUNCT_1, VALUED_1, MEMBERED, ABSVALUE,
NEWTON06, NUMBER11, PARTFUN3, FOMODEL0, SQUARE_1, MOEBIUS1, RAT_1,
BORSUK_5, IRRAT_1;
requirements REAL, NUMERALS, SUBSET, ARITHM, BOOLE;
begin :: Preliminaries
registration ::: partially present in COMPLEX3, move there
let a
be heavy positive Real, n
be non zero Nat;
cluster n-root a -> heavy positive;
end;
registration ::: move to NEWTON06
let a
be Integer, n
be Nat;
reduce a|^(n +
1) div a|^n to a;
end;
registration
let a
be even Nat;
reduce a/
2 mod a to a/
2;
end;
registration ::: to NEWTON06?
let a
be even Nat;
let n
be non trivial Nat;
cluster a|^n mod (
2*a) -> zero;
end;
registration
let a
be odd Nat;
reduce ((a -
1)/
2) mod a to (a -
1)/
2;
let n
be non zero Nat;
reduce a|^n mod (
2*a) to a;
end;
registration ::: NEWTON06
let a
be Nat, b
be non trivial Nat;
reduce a mod (a*b) to a;
end;
registration ::: NEWTON06
let a
be Nat, b
be non trivial Nat;
cluster a div (a*b) -> zero;
end;
registration ::: similar present in NEWTON06
let a
be Nat, b
be Nat;
let c
be non zero Nat;
reduce (a mod b) mod (b*c) to a mod b;
end;
registration
let a
be non trivial odd Nat;
reduce ((a +
1)/
2) mod a to (a +
1)/
2;
end;
:: Subsequent integers
theorem :: NUMERAL3:1 ::: generalization of NAT_1:62 for integers
for a,b
be Integer, n
be Nat
holds a <= b <= a + n
implies
b = a +
0 or ...
or b = a + n;
theorem :: NUMERAL3:2 ::: kind of INT_1:7
for a,b
be Integer
holds a <= b <= a +
1 iff b = a
or b = a +
1;
:: Use of sgn for identifying classes of numbers
registration
let a
be non integer Real;
cluster sgn frac a -> weightless positive;
end;
registration
let a
be non integer Real;
reduce a*(sgn (frac a)) to a;
end;
registration ::: for positive present in NEWTON06
let a
be light non negative Real;
reduce frac a to a;
end;
theorem :: NUMERAL3:3 :: see ABSVALUE:17
for r
be Real
holds
r*(sgn r) = |.r.| & r/(sgn r) = |.r.| & r = |.r.|/(sgn r);
theorem :: NUMERAL3:4
for r
be Real
holds [\|.r.|/] + frac |.r.| = r*(sgn r);
theorem :: NUMERAL3:5
for r
be heavy Real
holds sgn r = sgn [\r/] & sgn r = sgn [/r\];
theorem :: NUMERAL3:6
for a
be Real
holds sgn (frac a) = sgn (frac -a);
theorem :: NUMERAL3:7
for a
be Real
holds [\a/] + [\-a/] + sgn (frac a) =
0;
theorem :: NUMERAL3:8
for a
be non integer Real
holds [\a/] + [\-a/] = -
1;
theorem :: NUMERAL3:9
for a
be non integer Real
holds frac a + (frac (-a)) =
1;
theorem :: NUMERAL3:10
for r
be Real
holds
frac |.r.| = sgn(frac r)*(
1/
2 + (sgn r)*((frac r) -
1/
2));
theorem :: NUMERAL3:11
for r
be Real
holds [/r\] = [\r/] + sgn frac r;
theorem :: NUMERAL3:12 ::: NAT_D:21, move there
for a,b,c
be Integer
holds a mod b = (b*c + a) mod b;
theorem :: NUMERAL3:13
for a,b
be non zero Nat, c
be Nat
holds
c mod (a*b) mod b = (c mod b) mod (a*b);
theorem :: NUMERAL3:14
for a
be Real
holds [\a/] = -[/-a\];
theorem :: NUMERAL3:15
for a
be Real
holds [/a\] = -[\-a/];
theorem :: NUMERAL3:16
for a
be weightless negative Real
holds [\a/] = -
1;
theorem :: NUMERAL3:17
for a
be weightless positive Real
holds [/a\] =
1;
theorem :: NUMERAL3:18
for a
be Real
holds frac a = frac (-a) iff
2*a
is integer;
theorem :: NUMERAL3:19
for a,b
be Integer
holds a div (-b) = (-a) div b;
theorem :: NUMERAL3:20 :: see NAT_D:1
for a
be Real, b
be non zero Nat
holds (frac (a/b)) * b < b;
theorem :: NUMERAL3:21
for a,b
be Integer st
not b divides a
holds a mod b + ((-a) mod b) = b;
theorem :: NUMERAL3:22
for a,b
be Integer
holds a mod b = -((-a) mod (-b));
theorem :: NUMERAL3:23
for a,b
be Integer
holds
a mod (-b) = -((-a) mod b) & (-a) mod b = -(a mod (-b));
theorem :: NUMERAL3:24
for a,b
be Integer st
not b divides a
holds a mod b - (a mod (-b)) = b;
theorem :: NUMERAL3:25
for a,b
be Real
holds
[\a + b/] = [\a/] + [\b/] + [\(frac a) + (frac b)/];
theorem :: NUMERAL3:26
for a,b
be Real
holds [\a*b/] = [\a/]*[\b/] +
[\ [\a/]*(frac b) + [\b/]*(frac a) + (frac a)*(frac b) /];
theorem :: NUMERAL3:27
for a
be Real, b
be Integer
holds [\a*b/] = [\a/]*b + [\(frac a)*b/];
theorem :: NUMERAL3:28
for a,b
be Real st a <= b
holds [/a\] <= [\b/] +
1;
theorem :: NUMERAL3:29
for a,b
be Real st a <= b
holds [\a/] < [\b/] +
1;
theorem :: NUMERAL3:30
for a,b
be Real
holds
[\a/b/] = [\[\a/]/b/] + [\frac ([\a/]/b) + (frac a)/b/];
theorem :: NUMERAL3:31
for a
be Real, b
be non zero Nat
holds
frac ([\a/]/b) + (frac a)/b <
1;
theorem :: NUMERAL3:32
for a
be Real, b
be positive Integer
holds [\a/b/] = [\[\a/]/b/];
theorem :: NUMERAL3:33
for a
be Real, b
be negative Integer
holds [\a/b/] = [\[/a\]/b/];
theorem :: NUMERAL3:34
for a
be Real, b
be positive Real
holds -[\a/-b/] >= [\a/b/];
theorem :: NUMERAL3:35
for a,b
be Real
holds
[\a/] <= b <= [/a\]
implies [\a/] = [\b/]
or [/a\] = [/b\];
theorem :: NUMERAL3:36
for a
be Real, b
be non integer Real st [\a/] <= b <= [/a\]
holds
[\a/] = [\b/] & [/a\] = [/b\];
theorem :: NUMERAL3:37 :: see NAT_2:27
for a,b
be Integer, c
be Nat
holds [\a/(b*c)/] = [\[\a/b/]/c/];
theorem :: NUMERAL3:38
for a
be Integer, b
be non zero Integer, c
be negative Integer
holds
[\a/(b*c)/] = [\[\-a/b/]/(-c)/];
theorem :: NUMERAL3:39
for a
be Integer, b
be non zero Integer
holds
[\a/b/] = -[\-a/b/]
implies b divides a;
theorem :: NUMERAL3:40
for a
be Integer, b
be negative Integer
holds
[\a/b/] = - ([\a/-b/] + sgn frac (a/b));
theorem :: NUMERAL3:41
for a
be Integer, b
be non zero Integer, c
be non zero Nat
holds
a mod (b*c) = a mod b + b*((a div b) mod c);
theorem :: NUMERAL3:42
for a
be Nat, b,c
be non zero Nat
holds
a div c = ((a div c) mod b) + b*(a div (b*c));
theorem :: NUMERAL3:43
for a
be Integer, b
be non zero Nat, k,l
be Nat
holds (a mod b|^(k+l)) =
(a mod b|^k) + ((a div b|^k) mod b|^l)*b|^k;
theorem :: NUMERAL3:44
for a,n
be Nat, b
be non zero Nat
holds a mod b|^n = a - b|^n*(a div b|^n);
theorem :: NUMERAL3:45
for a,b,n,k
be Nat
holds a div b|^(n + k) = (a div b|^n) div b|^k;
theorem :: NUMERAL3:46
for a,n,k
be Nat, b
be non zero Nat
holds
b|^n*((a div b|^n)-(a div b|^(n + k))*b|^k) = (a mod b|^(n+k)) - (a mod b|^n)
;
theorem :: NUMERAL3:47
for a,n,k
be Nat, b
be non zero Nat
holds
a div b|^n = (a div b|^(n + k))*b|^k + ((a div b|^n) mod b|^k);
theorem :: NUMERAL3:48
for a,n,k
be Nat, b
be non zero Nat
holds
(a div b|^n) - (a div b|^(n + k))*b|^k =
((a mod b|^(n+k)) - (a mod b|^n)) div b|^n;
theorem :: NUMERAL3:49
for a,n
be Nat, b
be non zero Nat
holds
(a div b|^n) - (a div b|^(n +
1))*b|^
1 =
(a mod b|^(n +
1) - (a mod b|^n)) div b|^n;
theorem :: NUMERAL3:50
for a,n
be Nat, b
be non zero Nat
holds
a mod b|^(n+
1) div b|^n < b;
theorem :: NUMERAL3:51
for a,n
be Nat, b
be non zero Nat
holds
(a mod b|^(n +
1)) - (a mod b|^n) =
b|^n*((a div b|^n) - b*(a div b|^(n +
1)));
theorem :: NUMERAL3:52
for a,n,k
be Nat, b
be non zero Nat
holds
(a mod b|^(n + k)) - (a mod b|^n) =
b|^n*((a div b|^n) - b|^k*(a div b|^(n + k)));
theorem :: NUMERAL3:53
for a,n,k
be Nat, b
be non zero Nat
holds
(a mod b|^(n+k)) - (a mod b|^n) = b|^n*((a div b|^n) mod b|^k);
theorem :: NUMERAL3:54
for a,n,k
be Nat, b
be non zero Nat
holds
b|^n divides (a mod b|^(n + k)) - (a mod b|^n);
theorem :: NUMERAL3:55
for a,n,k
be Nat, b
be non zero Nat
holds
((a mod b|^(n+k)) - (a mod b|^n)) mod b|^n =
0;
theorem :: NUMERAL3:56
for a,n,k
be Nat, b
be non zero Nat
holds
a mod b|^(n + k) + b|^(n + k)*(a div b|^(n + k)) =
a mod b|^n + b|^n *(a div b|^n);
theorem :: NUMERAL3:57
for a,b,n
be Nat
holds a mod b|^n <= a mod b|^(n +
1);
registration
let a,b,n
be Nat;
cluster (a mod b|^(n +
1)) - (a mod b|^n) -> natural;
end;
theorem :: NUMERAL3:58
for a
be Nat, b
be Nat
holds a div b|^
2 = (a div b) div b;
theorem :: NUMERAL3:59
for a
be Nat, b
be non trivial Nat
holds
(a div b) = ((a div b|^
0) - (a mod b|^
1)) div b;
theorem :: NUMERAL3:60
for a
be Nat, b
be non trivial Nat
holds
a div b|^
2 = ((a div b|^
0) - (a mod b|^
2)) div b|^
2;
theorem :: NUMERAL3:61
for a,n
be Nat, b
be non zero Nat
holds
(a mod b|^(n +
1))-(a mod b|^n) =
((a mod b|^(n +
1))-(a mod b|^n) div b|^n)*b|^n;
theorem :: NUMERAL3:62
for a
be Nat, b
be non trivial Nat
holds
ex n
be Nat st a < b|^n;
theorem :: NUMERAL3:63
for a,b
be non trivial Nat
holds
ex n
be Nat st b|^n <= a < b|^(n +
1);
begin :: Some registrations for (X)FinSequences
registration ::: AFINSQ_1
let n,k
be Nat;
let f
be (n+k)-element complex-valued XFinSequence;
cluster (f|n)^<%
0%> -> complex-valued;
end;
registration ::: AFINSQ_1
let n
be Nat;
let f
be (n+
1)-element complex-valued XFinSequence;
reduce (f|n)^<%f.n%> to f;
end;
registration ::: AFINSQ_1
let k
be Complex, f
be complex-valued XFinSequence;
cluster f^<%k%> -> complex-valued;
end;
registration ::: AFINSQ_1
let m,n
be Nat, D
be non empty set;
let f
be m-element D-valued XFinSequence,
g
be n-element D-valued XFinSequence;
reduce (f^g)|m to f;
end;
theorem :: NUMERAL3:64
for n,i
be Nat, k
be Complex st n <> i
holds ((n -->
0)^<%k%>).i =
0;
theorem :: NUMERAL3:65
for n
be Nat, f
be (n+
1)-element complex-valued XFinSequence
holds
f = ((f|n)^<%
0%>) + ((n -->
0)^<%f.n%>);
registration
let n
be Nat, f
be (n+
1)-element complex-valued XFinSequence;
reduce ((f|n)^<%
0%>) + ((n -->
0)^<%f.n%>) to f;
end;
begin :: Digits and Values
registration
let f
be empty-yielding XFinSequence
of NAT;
let b
be Nat;
cluster value (f,b) -> zero;
end;
registration
let n
be Nat, b
be non trivial Nat;
reduce value (digits (n,b),b) to n;
end;
theorem :: NUMERAL3:66
for n,k
be Nat, b
be non trivial Nat
holds digits (n,b).k < b;
theorem :: NUMERAL3:67
for b,n
be Nat, f,g
be n-element XFinSequence
of NAT
holds
value (f + g,b) = value (f,b) + value (g,b);
theorem :: NUMERAL3:68
for b,k,n
be Nat, f
be k-element XFinSequence
of NAT
holds
value (f^<%n%>,b) = value (f,b) + n*b|^k;
theorem :: NUMERAL3:69
for b,k
be Nat, f
be k-element XFinSequence
of NAT
holds
value ((f^<%
0%>),b) = value (f,b);
theorem :: NUMERAL3:70
for k,n,b
be Nat
holds value(<%n,k%>,b) = k*b + n;
theorem :: NUMERAL3:71
for k,n
be Nat, b
be Nat
holds value ((k -->
0)^<%n%>,b) = n*b|^k;
theorem :: NUMERAL3:72
for k,m,n
be Nat, b
be Nat
holds value (<%n,m,k%>,b) = k*b|^
2 + m*b + n;
theorem :: NUMERAL3:73
for b
be non zero Nat, f
be XFinSequence
of NAT
holds
value (f,b) =
0 implies f
is empty-yielding;
theorem :: NUMERAL3:74
for n
be Nat, b
be non trivial Nat
holds digits (n,b) = <%n%>
implies n < b;
theorem :: NUMERAL3:75
for n
be Nat, b
be non trivial Nat
holds
n >= b
implies len digits (n,b) >
1;
theorem :: NUMERAL3:76
for n
be Nat, b
be non trivial Nat
holds (digits (n,b)).
0 = n mod b;
theorem :: NUMERAL3:77
for n
be Nat, b
be non trivial Nat
holds
n div b = value(mid(digits(n,b),
2,len(digits(n,b))),b);
theorem :: NUMERAL3:78
for a
be Nat, b
be non trivial Nat, c
be non zero Nat
holds
(value (digits (a,b),b)) mod c = value (digits ((a mod c),b),b);
theorem :: NUMERAL3:79
for a
be Nat, b
be non trivial Nat, n
be non zero Nat
holds
(value (digits (a,b|^n),b|^n)) mod b =
value (digits ((a mod b),b|^n),b|^n);
begin :: On Integer Numbers
registration ::: to SQUARE_1
let a
be non negative Real;
reduce sqrt a^
2 to a;
reduce (sqrt a)^
2 to a;
reduce (sqrt a)|^
2 to a;
reduce (sqrt a)*(sqrt a) to a;
end;
registration let a
be Nat, b
be Integer;
cluster a / (a gcd b) -> natural;
end;
registration let a
be Nat, b
be Integer;
::: to NEWTON03
reduce a*b gcd a to a;
end;
theorem :: NUMERAL3:80
for a
be Integer, b
be non zero Integer
holds
a/(b gcd a), b/(a gcd b) are_coprime;
theorem :: NUMERAL3:81
for a,n
be Nat, b
be Real st (a+
1)|^n > b|^n > a|^n
holds
not b
is integer;
theorem :: NUMERAL3:82
for a
be non integer Real
holds [\a/] + [\-a/] = -
1;
registration
let a
be non integer Real;
cluster [\a/] + [\-a/] -> weightless negative;
end;
theorem :: NUMERAL3:83
for a
be Real
holds [\a/] + [\-a/]
is weightless;
begin
registration
cluster light non integer
for positive Rational;
end;
theorem :: NUMERAL3:84
for a,b
be non zero Nat
holds denominator (a/b) <= b & numerator (a/b) <= a;
theorem :: NUMERAL3:85
for a
be Rational
holds denominator denominator a =
1;
theorem :: NUMERAL3:86
for a
be Rational
holds denominator numerator a =
1;
theorem :: NUMERAL3:87
for a
be non trivial Nat, b,c
be non zero Nat
holds
a divides b & a divides c
implies
denominator (b/c) < c & numerator (b/c) < b;
registration
let a
be Rational;
cluster (denominator a) gcd (numerator a) -> trivial non zero;
end;
theorem :: NUMERAL3:88
for a
be Integer, b
be non zero Integer
holds
denominator (a/b) divides b & numerator (a/b) divides a;
theorem :: NUMERAL3:89
for a
be Integer, b
be non zero Nat st a,b are_coprime
holds
denominator (a/b) = b;
theorem :: NUMERAL3:90
for a
be non zero light Rational
holds
not denominator a divides numerator a;
theorem :: NUMERAL3:91 :: see REAL_3:3
for a
be Rational
holds [\a/] = (numerator a) div (denominator a);
theorem :: NUMERAL3:92 :: see REAL_3:6
for a
be Rational
holds
frac a = ((numerator a) mod (denominator a))/(denominator a);
theorem :: NUMERAL3:93
for a
be Rational
holds
(frac a)*denominator a = (numerator a) mod (denominator a);
registration
let a
be Rational;
cluster frac a -> rational;
cluster (frac a)*(denominator a) -> natural;
end;
theorem :: NUMERAL3:94
for a
be Rational
holds
numerator (frac a), denominator (frac a) are_coprime;
theorem :: NUMERAL3:95
for a
be Rational
holds
(numerator frac a) mod (denominator frac a) = numerator frac a;
theorem :: NUMERAL3:96
for a
be Rational
holds
(numerator a) mod (denominator a), denominator a are_coprime;
theorem :: NUMERAL3:97
for a
be Rational
holds denominator (frac a) = denominator (frac -a);
theorem :: NUMERAL3:98
for a
be Rational
holds denominator a = denominator frac a;
theorem :: NUMERAL3:99
for a
be Rational, b
be Integer
holds denominator (a + b) = denominator a;
theorem :: NUMERAL3:100
for a
be negative non integer Rational
holds
frac a =
1 - ((numerator (-a)) mod (denominator a))/(denominator a);
theorem :: NUMERAL3:101
for a
be positive Rational
holds numerator a = denominator (a") &
denominator a = numerator (a");
registration
let a
be positive Nat;
cluster numerator (a") -> weightless positive;
end;
registration
let a
be positive Nat;
reduce denominator (a") to a;
end;
theorem :: NUMERAL3:102
for a
be positive Rational
holds
(numerator a)*(numerator (a")) = (denominator a)*(denominator (a"));
theorem :: NUMERAL3:103
for a,b
be Rational
holds
(numerator (a*b))/(denominator (a*b)) =
((numerator a)*(numerator b))/((denominator a)*(denominator b));
theorem :: NUMERAL3:104
for a,b
be Rational
holds
(numerator (a*b))*(denominator a)*(denominator b) =
(denominator (a*b))*(numerator a)*(numerator b);
theorem :: NUMERAL3:105
for a,b
be Rational
holds
numerator (a*b) divides (numerator a)*(numerator b);
theorem :: NUMERAL3:106
for a,b
be Rational
holds
denominator (a*b) divides (denominator a)*(denominator b);
theorem :: NUMERAL3:107
for a,b
be non zero Rational
holds
(denominator a)*(denominator b)/(denominator (a*b)) =
(numerator a)*(numerator b)/(numerator (a*b));
theorem :: NUMERAL3:108
for a,b
be Rational
holds a*b
is integer
implies
denominator b divides numerator a;
theorem :: NUMERAL3:109
for a,b
be Rational
holds a*b
is integer iff
denominator b divides numerator a & denominator a divides numerator b;
theorem :: NUMERAL3:110
for a,b
be non negative Rational
holds
(numerator a)*(numerator b) >= numerator (a*b);
theorem :: NUMERAL3:111
for a,b
be Rational
holds
(denominator a)*(denominator b) >= denominator (a*b);
theorem :: NUMERAL3:112
for a
be Rational, k
be non zero Nat
holds a*k
is integer
implies
k >= denominator a;
theorem :: NUMERAL3:113
for a,b
be non zero Rational
holds
numerator(a + b)*(denominator a)*(denominator b) =
((numerator b)*(denominator a) +
(numerator a)*(denominator b))*(denominator (a + b));
begin :: On Irrational Numbers
theorem :: NUMERAL3:114
for n
be non zero Nat, a
be non integer Rational
holds a|^n
is non integer;
theorem :: NUMERAL3:115
for a,b,n
be Nat st (a+
1)|^n > b > a|^n
holds n-root b
is irrational;
theorem :: NUMERAL3:116
for a
be Nat, n
be non zero Nat
holds
n-root a
is irrational iff n-root a
is non integer;
registration
let a
be non square Nat;
cluster 2-root a -> irrational;
let n
be non zero even Nat;
cluster n-root a -> irrational;
end;
theorem :: NUMERAL3:117
for a
be prime Nat, n,m
be non zero Nat
holds
(n+m)-root (a|^m)
is irrational;
theorem :: NUMERAL3:118
for n
be non zero Nat, a,b
be Nat st a,b are_coprime
holds
n-root (a*b)
is Nat
implies n-root a
is Nat;
theorem :: NUMERAL3:119
for n
be non zero Nat, a,b
be Nat st a,b are_coprime
holds
n-root (a*b)
is rational
implies n-root a
is rational;
theorem :: NUMERAL3:120
for a
be prime Nat, b,n,m
be non zero Nat st
not a divides b
holds
(n+m)-root (a|^m*b)
is irrational;
theorem :: NUMERAL3:121
for n
be non trivial Nat, a
be prime Nat, b
be Nat st a divides b &
not a|^n divides b
holds n-root b
is irrational;
registration
let a
be non trivial square-free Nat;
let n
be non trivial Nat;
cluster n-root a -> irrational;
end;
registration
let a
be prime Nat;
let b
be non zero rational number;
cluster (sqrt a)*(sqrt a + b) -> irrational;
end;
theorem :: NUMERAL3:122
for a
be prime Nat, b,c
be rational number
holds
((sqrt a)+b)*((sqrt a)+c)
is rational iff b = -c;
registration
let a
be prime Nat, b
be rational number;
cluster ((sqrt a)+b)*((sqrt a)-b) -> rational;
end;
registration
let a
be prime Nat, b
be non zero rational number;
cluster ((sqrt a)+b)*((sqrt a)+b) -> irrational;
end;
registration
let a
be prime Nat, b,c
be positive rational number;
cluster ((sqrt a)+b)*((sqrt a)+c) -> irrational;
cluster ((sqrt a)-b)*((sqrt a)-c) -> irrational;
end;
theorem :: NUMERAL3:123
for n
be non zero Nat, a
be non negative Real st
a >
1 holds n-root a >
1;
registration ::: revise: MOVE to NAT_2
let n
be non zero Nat, a
be trivial Nat;
cluster n-root a -> natural;
end;
begin :: Square-free Numbers and Radicals
registration let a
be non trivial square-free Nat, n,m
be non zero Nat;
cluster (n+m)-root (a|^m) -> irrational;
end;
registration
let a
be non trivial square-free Nat,
b
be non zero rational number,
n,m
be non zero Nat;
cluster ((n+m)-root (a|^n))*(((n+m)-root (a|^m))+ b) -> irrational;
end;
registration
let a
be non trivial square-free Nat;
cluster sqrt a -> irrational;
end;
registration
let a
be non trivial square-free Nat,
b
be non zero rational number;
cluster (sqrt a)*(sqrt a + b) -> irrational;
end;
theorem :: NUMERAL3:124
for a,b
be Nat
holds
a*b = (a gcd b)|^
2*((a lcm b)/(a gcd b));
registration
let a
be non zero Nat;
cluster a/(Radical a) -> natural;
end;
registration
let a
be Integer, b
be square-free Nat;
cluster a gcd b -> square-free;
end;
theorem :: NUMERAL3:125
for a
be non zero square-containing Nat
holds a > Radical a;
registration
let a
be non zero square-containing Nat;
cluster a/(Radical a) -> non trivial;
end;
theorem :: NUMERAL3:126 ::: revise NEWTON03:29
for a
be Integer
holds a <>
1 & a <> -
1 implies
ex p
be prime Nat st p divides a;
registration
let a
be non trivial square Nat, b
be Nat;
cluster a*b -> square-containing;
end;
registration
let a
be Nat, b
be square-containing Nat;
cluster a lcm b -> square-containing;
end;
theorem :: NUMERAL3:127
for a,b
be Nat st
not a,b are_coprime
holds a*b
is square-containing;
theorem :: NUMERAL3:128
for a
be square-free Nat, b
be Nat
holds
(a gcd b), a/(a gcd b) are_coprime;
theorem :: NUMERAL3:129
for b
be square-free Nat, a
be Nat
holds not b divides a
implies ex p
be prime Nat st
not p divides a & p divides b;
begin :: Irrational Roots
theorem :: NUMERAL3:130
for a
be square-free Nat, b,n,m
be non zero Nat st
not a divides b
holds
(n+m)-root (a|^m*b)
is irrational;
theorem :: NUMERAL3:131
for a
be square-free Nat, b
be non zero Nat, n
be non trivial Nat st
b < a|^n & a divides b
holds n-root b
is irrational;
registration
let a
be non zero Nat, n
be non trivial Nat;
cluster n-root(a|^n+
1) -> irrational;
end;
registration
let a,n
be non trivial Nat;
cluster n-root (a|^n -
1) -> irrational;
end;
theorem :: NUMERAL3:132
for b
be Nat, n
be non zero Nat st n-root b
is irrational
holds
ex a
be Nat st a|^n < b < (a+
1)|^n;
theorem :: NUMERAL3:133
for a,b
be Nat, n
be non zero Nat st n-root b
is irrational & n-root b > a
holds ex c
be Nat st a|^n < b < (a+
2*c)|^n;
theorem :: NUMERAL3:134
for a
be Nat, n
be non zero Nat st n-root a
is irrational
holds ex b
be Nat st
1 < a < (
2*b +
1)|^n;
theorem :: NUMERAL3:135
for a
be non zero Nat, n
be non trivial Nat, m
be Nat
holds
n-root (a|^(n*m) +
1)
is irrational;
theorem :: NUMERAL3:136
for a,n
be non trivial Nat, m
be non zero Nat
holds
n-root (a|^(n*m) -
1)
is irrational;
theorem :: NUMERAL3:137
for b
be non zero Nat, n
be non trivial Nat st
2-root b
is natural
holds 2-root (b+
2)
is irrational;
theorem :: NUMERAL3:138
for b
be non zero Nat st
2-root (b+
2)
is natural
holds 2-root b
is irrational;
theorem :: NUMERAL3:139
for a
be prime Nat, m
be Nat, n
be non trivial Nat
holds
n-root (a|^m)
is rational iff n divides m;
theorem :: NUMERAL3:140
for a
be non trivial square-free odd Nat, b
be non zero Nat st
a,b are_coprime
holds 2-root (a*(
2*b+a))
is irrational;
theorem :: NUMERAL3:141
for a
be square-free odd Nat, b
be non zero Nat st a,b are_coprime &
2-root (a*(
2*b+a))
is rational
holds a
is trivial;
theorem :: NUMERAL3:142 ::: obvious for the checker
for a
be non trivial square-free Nat, n
be non trivial Nat
holds
n-root a
is irrational;
theorem :: NUMERAL3:143 ::: obvious for the checker
for a
be prime Nat, n
be non trivial Nat
holds n-root a
is irrational;
theorem :: NUMERAL3:144
for b
be non zero Nat
holds
2-root (b|^
2 +
2)
is irrational;
theorem :: NUMERAL3:145
for a,b
be non zero Nat st
b <=
2*a
holds 2-root (a|^
2 + b)
is irrational;
theorem :: NUMERAL3:146
for a,b
be non zero Nat
holds
2-root (a|^
2 + b|^
2)
is natural
implies b|^
2 >
2*a;
theorem :: NUMERAL3:147
for a,b
be Nat st a > b
holds 2-root (a|^
2 +
2*b +
1)
is irrational;
theorem :: NUMERAL3:148
for a,b
be non zero Nat st
b <=
2*a
holds 2-root ((a+
1)|^
2 - b)
is irrational;
theorem :: NUMERAL3:149
for a
be prime Nat, b
be non zero Nat, n
be non trivial Nat
holds
b < a|^n & a divides b
implies n-root b
is irrational;
theorem :: NUMERAL3:150
for a,b
be non zero Nat, n
be non trivial Nat
holds
b < (Radical a)|^n & (Radical a) divides b
implies
n-root b
is irrational;
theorem :: NUMERAL3:151
for a
be prime Nat, n
be non trivial Nat, b, m
be Nat st
not a divides b &
not n divides m
holds n-root (a|^m*b)
is irrational;
theorem :: NUMERAL3:152
for a
be square-free Nat, n
be non trivial Nat
holds
n-root a
is Rational iff a =
1;
theorem :: NUMERAL3:153
for a
be Nat, n
be non zero Nat
holds n-root a
is rational
implies
n-root (Parity a)
is rational & n-root (Oddity a)
is rational;
theorem :: NUMERAL3:154
for a,b
be Nat
holds
(a+(sqrt
2)*(
1+sqrt
2)*b)*(a+(sqrt
2)*(sqrt
2-
1)*b)
is rational;
:: Examples of concrete facts
theorem :: NUMERAL3:155
2-root (
123|^
4 -
1)
is irrational;
theorem :: NUMERAL3:156
3-root (
678|^
9 +
1)
is irrational;