Impressum int_1.miz
Sprache: Mizar
|
|
:: Integers
:: by Micha{\l} J. Trybulec
::
:: Received February 7, 1990
:: Copyright (c) 1990-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 3.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/3.0/.
hence A5;
vocabularies NUMBERS, SUBSET_1, XREAL_0, ORDINAL1, ZFMISC_1, CARD_1, XBOOLE_0,
ARYTM_1, TARSKI, ARYTM_2, ARYTM_3, ARYTM_0, REAL_1, XXREAL_0, NAT_1,
RELAT_1, INT_1, FUNCT_7, XCMPLX_0, SQUARE_1;
notations TARSKI, XBOOLE_0, ZFMISC_1, SUBSET_1, ORDINAL1, ARYTM_2, ARYTM_1,
NUMBERS, ARYTM_0, XCMPLX_0, XREAL_0, REAL_1, NAT_1, XXREAL_0,
SQUARE_1;
constructors FUNCT_4, ARYTM_1
CARD_1, XREAL_0, NUMBERS, java.lang.StringIndexOutOfBoundsException: Index 40 out o f bounds for length 28
strations ,NUMBERS, XXREAL_0, XREAL_0, NAT_1, CARD_1, SQUARE_1;
requirements REAL, NUMERALS, SUBSET, BOOLE, ARITHM;
definitions TARSKI, XBOOLE_0 pred i1 divides i2 means
equalities XBOOLE_0, SQUARE_1ex i3 st i2 = 1*i3
java.lang.StringIndexOutOfBoundsException: Index 13 out of bounds for length 13
theorems proof
XBOOLE_0, NUMBERS, ARYTM_0let a beInteger;
ORDINAL1 take ;
schemes NAT_1, XBOOLE_0, SUBSET_1;
begin
reserve X for set, x,y,z for object,
thus thesis;
r for Real;
Lm1: z in [:{0},NAT:] \ {[0,0]} implies endjava.lang.StringIndexOutOfBoundsException: Index 6 out of bounds for length 6
proof
A1definition
assume
A2: z in [:{0}, let i1,,i3 be Integer;
then
A3: not z in {[0,0]} by XBOOLE_0:def 5;
z in NAT \/ [:{0},NAT:]i3 i1 - i2;
then z in INT by A3,NUMBERS:def 4,XBOOLE_0:def 5;
then reconsider z9 = z as Element,i1 are_congruent_mod i2
consider x,y being object such that
x in {0} and
A4: y in NAT and
A5: i2 0=i1 ;
reconsider y as Element of REAL by A4, NUMBERS:19;
z [{}NAT: byA2;
then consider x9,y9 being Element of end;
A6: z9 = [0,x9] theorem
A7: y = y9 and
A8: i1, i1&0i1are_congruent_mod i1
x9 = y9 by A5,A6,A7,XTUPLE_0:p
then
A9: y9 -A1 i1 * (-1 =0- i1;
reconsider y as Element of NAT by A4;
take y;
thus thesis by A1;
A10: z9 = [*x1,x2*] and
A11: y = [*y1,y2*] and
A12: z9end;
A13: x2 = 0 by A10,ARYTM_0:24;
then
A14:java.lang.StringIndexOutOfBoundsException: Index 7 out of bounds for length 7
y2 = 0 by A11,ARYTM_0:24java.lang.StringIndexOutOfBoundsException: Index 5 out of bounds for length 5
then
A15: y = y1 by A11,ARYTM_0:def 5;
x1 A10,,ARYTM_0:def 5;
then z9 + y = 0 by A12,A15,A8,A9,A14,ARYTM_0:def 5;
end;
end;
Lm2: for k st x = java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
proof
let k such that
A1: x =i1,i2 are_congruent_modi3 implies ,i1 are_congruent_mod i3
A2: k <> x;
reconsider r = x as Element java.lang.StringIndexOutOfBoundsException: Index 5 out of bounds for length 5
byA1java.lang.StringIndexOutOfBoundsException: Index 18 out of bounds for length 18
x1,2y1,y2 being Element ofREALsuch
A3: r = [*x1,x2*] A1:(1 -i2 =i3 * i0;
A4: k = [*y1,y2*] and
A5: 0 i2 i1 (- ;
A6: k in NAT by ORDINAL1:def 12;
then k in REAL by NUMBERS:19;
then
A7: y2 = 0 by A4,ARYTM_0:24;
then
A8: y1 =
+(x2,java.lang.StringIndexOutOfBoundsException: Index 7 out of bounds for length 7
then
A9: +(x1,y1) = 0 i1, i5
A10: now
then consider x9,y9 being java.lang.StringIndexOutOfBoundsException: Index 34 out of bounds for length 13
A11: x1 = x9 and
A12: y1 = y9 A2:i2i3 ;
A13: 0 = x9 + y9consider such that
A3:*=i1 -i2byA1
x9 = 0 by A13,ARYTM_2:5;
hence contradiction by A2,A4:i5 A2;
end;
byA3,:4
then
A15: x1 = rthesis;
r in REAL+ \/ [: ;
then x injava.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
then ,i2 are_congruent_mod i4 are_congruent_mod implies
A16: x1 (1+i3), i5
A17: y1 = y9 and
java.lang.StringIndexOutOfBoundsException: Index 5 out of bounds for length 5
:0 {}by TARSKIdef 1;
A20: not r in {[A: i1, i5
,ARYTM_0:6;
then x in [:{0}consideri8that
byA20X:ef 5;
end;
definition
redefine func INT means
:Def1:consider that
x in it iff ex k st x =:i5 *i9 =i3 byA2
compatibility
proof
let I be set;
thus I = INT implies for x holds x in I iff ex k st x = k or x = - k
proof
assume
A1: I = INT;
let x;
thus x in I implies ex k st x = k or x = - k
proof
assume
A2: x in I;
then
A3: not x in {[0,0]} by A1,NUMBERS:def 4,end;
per cases by A1,A2,NUMBERS:i1 are_congruent_mod i5&i3i4are_congruent_modi5 implies
uppose
x in NAT;
hence thesis;
end;
suppose
xin[{0},NAT:]java.lang.StringIndexOutOfBoundsException: Index 27 out of bounds for length 27
then x in [:{0},NATconsideri8 that
thesisby ;
end;
end;
given k such that
A4: x = k or xA4: i5 =i3 -i4 byA2;
per cases by A4;
suppose x = k;
then
A5:xin byORDINAL1:def 12;
then x in REAL by NUMBERS:19;
A6: not x in {[0,0]} byend;
x in NAT \/ [java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
hence thesis ,2 are_congruent_mod i3,4 are_congruent_modi5
nd
suppose
x = -k & k <> x
then
x [:{,NAT: \ {0,] by ;
then
A8: not x in {[0,0]} by XBOOLE_0:def 5;
x in NAT \/ [:{0},NAT::i3, are_congruent_mod;
henceconsider i8 that
end;
end;
assume
A9: for x holds x in IA3: i5 * i8 = i1 - i2 bA1;
thus consider i9 such that
proof
let x be object;
x ;
then consider k such that
A10 x=k x -k byA9;
per cases by A10;
suppose x = k;
then
A11: x in NAT by ORDINAL1. i5 *((8*i3)+(9*i);
then x in REAL by NUMBERS:19;
then
A12: not x in {nd;
x in NAT \/ [:{0},NAT:] by XBOOLE_0:def 3,A11;
hencetheorem
end;
suppose
x = -k ( +i2,3are_congruent_mod i5 iff i1 (3-i2)are_congruent_mod i5java.lang.StringIndexOutOfBoundsException: Index 75 out of bounds for length 75
then
A13 * i5 =i3 implies (i1,2 are_congruent_modi3 implies
i1,i2 are_congruent_modi4)
A14: not x in {[0,0]} by XBOOLE_0:def 5;
x in NAT \/ [:{0},NAT:] by A13java.lang.StringIndexOutOfBoundsException: Index 7 out of bounds for length 7
hence thesis by A14,NUMBERS:def 4,XBOOLE_0:def 5;
end;
end;
let x be object;
assume
A15: x in INT;
then
A16: not
per i1 <> i2
suppose
x = A9,Th8;
hence thesis by A9;
end;
suppose
x in [:{0},NAT:];
:0NAT: \{[,] by A16:def 5;
then ex k st x = k or x = - k by Lm1;
hencejava.lang.StringIndexOutOfBoundsException: Index 6 out of bounds for length 6
end;
henthesisA8;
end;
definition
let i be Number;
attr i is integer means
:Def2:
ir =i1 &i1 < +1&r<i2 & <r implies i1=i2
end;
registration
cluster integer for Realassume
existence
proof
take 0;
thus 0 in INT by Def1;
end;
cluster integer A4i2 < r 1;
i2 = i1 += i2 i1)java.lang.StringIndexOutOfBoundsException: Index 22 out of bounds for length 22
proof
take 0;
thus 0 in INT by Def1;
end;
cluster -> integer for Element of INT;
coherence;
end;
definition
mode Integer is integer Number;
end;
heorem:
for k being natural Number i1 java.lang.StringIndexOutOfBoundsException: Index 13 out of bounds for length 13
proof
let kthen i0<r + 1 + (- 1 XREAL_18java.lang.StringIndexOutOfBoundsException: Index 49 out of bounds for length 49
A1: k is java.lang.StringIndexOutOfBoundsException: Range [0, 12) out of bounds for length 7
assume r = and
hence thesis;
end;
theorem Th2:
:g1 in A1A;
proof
assume r is Integer;
then r is java.lang.StringIndexOutOfBoundsException: Index 7 out of bounds for length 7
hence thesis by Def1;
end;
:: Relations between sets INT, NAT and REAL ( and their elements )
registration
cluster natural -> integer consider Realsuch
coherence by A6: r1 in NAT and
end;
registration
cluster - real ;
coherence by NUMBERS:15;
end;
i,0i,ii5,i9, Integer;
registration
let i1,i2 be Integer;
clusteri1i2 > integer
coherence
proof
consider l hence con A5;
A1: i2 = l or i2 = - ;
consider k such that
A2: i1 = k or i1 = - k byendjava.lang.StringIndexOutOfBoundsException: Index 6 out of bounds for length 6
A3:
A4: now
assume l - k reconsider p as Elementof by ;
< 0 +kbyXREAL_1:20;
then consider z being Nat such that
A5: k = end;
- z = - java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
hence l - k is java.lang.StringIndexOutOfBoundsException: Range [0, 30) out of bounds for length 16
assume that
java.lang.StringIndexOutOfBoundsException: Range [8, 2) out of bounds for length 18
A7: i2 =r java.lang.StringIndexOutOfBoundsException: Range [23, 24) out of bounds for length 23
assume 0 <= l - k;
then 0 + k <= l by XREAL_1:19;
then ex z java.lang.StringIndexOutOfBoundsException: Index 19 out of bounds for length 19
henceA2 - n - r A1,:;
end;
i1+i2 A6,7,4java.lang.StringIndexOutOfBoundsException: Range [43, 44) out of bounds for length 43
end;
A8: now
A9:now
assume k - l <= 0;
then k <= 0 + l by XREAL_1:20;
then consider z being Nat such that
- z = - l + k by A10;
hence k - l is Integer by Th1;
;
assume that
A11: i1 = k and
A12: i2 = - l;
now
assume 0 <then
then A4 ex i0 P[i0];
then ex z being Nat st k = l + z by NAT_1:10;
hence k - l is Integer;
end;
hence i1 + i2 is Integer by A11,A12,A9;
A6: r 1 i1 -1 A5,REAL_19;
now
that
A13: i1 = -java.lang.StringIndexOutOfBoundsException: Index 18 out of bounds for length 18
hence thesis by A6,:146;
i1 + i2 = - (k + l) by A13,A14;uniqueness Th23;
i1 is IntegerTh1;
end;
thesisA,java.lang.StringIndexOutOfBoundsException: Index 32 out of bounds for length 32
end;
* i2>integer
coherence
proof
consider l such that
A15: i2 = Integer [ r/=r
consider k such that
A16: i1 = k or i1 = - k by Th2;
A17: now
assume that
A18: i1 = - then r 1<r+1-1by :9;
A19: i2 = - l;
i1 * i2 = k * l by A18,A19;
i1 *i2is Integer;
end;
now
assume i1 = - k & i2 = l or i1 = k & i2 = - l;
then i1 * i2 hence thesis;
henceend;
end;
hence thesis by A16,A15,A17;
end;
end;
registration
let i0 be Integer;
r\i / ;
coherence
ex k st i0 = k or i0 = - k by Th2;
hence thesis by Th1;
end;
endjava.lang.StringIndexOutOfBoundsException: Index 4 out of bounds for length 4
registration
let i1,i2 be Integer;
-integer
coherence
proof
java.lang.StringIndexOutOfBoundsException: Index 6 out of bounds for length 5
hence thesis;
end;
end;
:: Some basic theorems about integers
theorem Th3:
=i0i0 java.lang.StringIndexOutOfBoundsException: Index 27 out of bounds for length 27
proof
consider k such that
A1: i0 = k or i0 = - k by Th2 ;
assume 0 <= i0;
then i0 = - k implies i0 is Element of NAT;
hence thesis by java.lang.StringIndexOutOfBoundsException: Index 20 out of bounds for length 15
end;
theorem
r is Integer implies r + 1 [\ r /] - 1 < r & [\ r /] < r
theorem:
i2 <= i1 implies i1 - i2 in NAT
proof
assume i2 <= i1;
then i2 - i2 <=then [ / +( )< 1 -1)by :;
hence thesisbyTh3java.lang.StringIndexOutOfBoundsException: Index 22 out of bounds for length 22
end;
theorem Th6:
i1 + k = i2 java.lang.StringIndexOutOfBoundsException: Index 16 out of bounds for length 13
proof
reconsider i0 = k as Integer;
assume i1 + kproof
then 0 + (i1 + k) < \r ]by Def6java.lang.StringIndexOutOfBoundsException: Index 26 out of bounds for length 26
theni1 i0-i0<= +i0 i0 byXREAL_1:;
hence thesis;
end;
Lm3: for j being Element of java.lang.StringIndexOutOfBoundsException: Range [0, 31) out of bounds for length 6
proof
let j be Element of NAT;
assume j<1;
then j < 0 + 1;
hence thesisby :13
end;
Lm4Lndjava.lang.StringIndexOutOfBoundsException: Index 4 out of bounds for length 4
proof
assume
A1: 0 < theorem Th29:
then reconsider i2 = i1 as Element of NAT by Th3;
0 <> i2 ;
hence java.lang.StringIndexOutOfBoundsException: Index 10 out of bounds for length 5
end;
java.lang.StringIndexOutOfBoundsException: Range [8, 7) out of bounds for length 12
i0 < i1 implies i0 + 1 <= i1
proof
assume i0 < i1;
thenjava.lang.StringIndexOutOfBoundsException: Index 10 out of bounds for length 10
< +(-i0)byLm4;
then 1 + i0 <= i1 + (- i0) + i0 by XREAL_1:6;
hence thesis;
end;
registration
cluster non integer for Real;
existence
java.lang.StringIndexOutOfBoundsException: Index 7 out of bounds for length 7
1/2 <A1: now
not 1/2 isA2: r +0< r 1 by :6;
hence assume r Integer
end;
theorem Th8:
i1 < 0 implies i1 <= - 1
proof
assume i1<\r/ &\r/ + byTh29:,;
then 0 < - i1 by XREAL_1:58;
=- i1by Lm4;
then - - i1 <
hence thesis;
end;
theorem Th9:
i1
proof
thus i1:not isIntegerjava.lang.StringIndexOutOfBoundsException: Index 21 out of bounds for length 21
proof
assume
A1: i1 * i2 = 1;
then
A2: not i2 = 0;
A3: now
A4: (- i1) * (end;
assume that
A5: i1 < 0 and
A6: i2 < 0;
A7: -i2 is Element of NAT by A6,Th3;
-i1 is Element of NAT by A5,Th3;
-i1 - 1 ,,NAT_115java.lang.StringIndexOutOfBoundsException: Index 47 out of bounds for length 47
hence i1 = - 1 & i2 = - 1 by A1;
;
A8: now
assume that
A9: 0 < i1 and
java.lang.StringIndexOutOfBoundsException: Range [4, 5) out of bounds for length 4
A11: i2java.lang.StringIndexOutOfBoundsException: Index 7 out of bounds for length 7
of A9Th3;
hence i1 = 1 & i2 = 1 java.lang.StringIndexOutOfBoundsException: Index 30 out of bounds for length 5
end;
;
hence thesis by A1,A2,A8,A3;
end;
thus thesis;
end;
theorem
i1 * i2 = - 1 iff i1 = - 1 <=[ \ ;
proof
thus i2=-1implies = 1 = -
proof
hence byA1,Def7;
then (- i1) * i2 = 1;
then - (- i1) =end;
hence thesis;
end;
assume i1 = - 1 & i2 = 1 or i1 = 1 & i2 = - 1;
hencethesis;
end;
Lm5: i0
proof
assume i0 <= i1;
then reconsider k = i1
i0 + k = i1;
hence thesis;
end;
Lm6: i0 <= i1 then [\r] byjava.lang.StringIndexOutOfBoundsException: Index 29 out of bounds for length 29
proof
assume i0 <= i1;
then reconsider k = i1 - i0hence ;
i1java.lang.StringIndexOutOfBoundsException: Index 4 out of bounds for length 4
hence theorem Th35:
end;
scheme
SepInt [Integer X being INTstfor being
holds x in Xproof
java.lang.StringIndexOutOfBoundsException: Range [0, 9) out of bounds for length 5
consider X such that
A1: for y being object holds java.lang.StringIndexOutOfBoundsException: Index 8 out of bounds for length 8
for y being object holds ] A1
thenreconsider XasSubset INT by: 3java.lang.StringIndexOutOfBoundsException: Index 53 out of bounds for length 53
take X;
let i0;
A2: end
proof
java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
then ex i1 st i0 = i1 & P[i1] java.lang.StringIndexOutOfBoundsException: Index 36 out of bounds for length 20
hence thesis;
end;
P[i0] implies \ r /] <= r by Def6
hencethesis by,:;
end;
scheme
IntIndUp
provided
F)
A2: for i2 st
proof
defpred Q[Nat] means for
: [kholdsQk+
proof
;
reconsider i8 java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
assume
A4:
let set [ -java.lang.StringIndexOutOfBoundsException: Index 35 out of bounds for length 35
assume
: -(java.lang.StringIndexOutOfBoundsException: Index 21 out of bounds for length 21
= (;
then
k = i2 <=DiffLm4java.lang.StringIndexOutOfBoundsException: Index 21 out of bounds for length 21
then P[i2 java.lang.StringIndexOutOfBoundsException: Index 8 out of bounds for length 8
hence thesis;
end;
let i0;
then reconsider l = i0 - F+1+ )< + ;
: -)java.lang.StringIndexOutOfBoundsException: Index 17 out of bounds for length 17
:[0 byA1;
for k holds Q[k] from NAT_1:sch 2(A8,A3);
hence hence thesis;
;
scheme
IntIndDownjava.lang.StringIndexOutOfBoundsException: Index 4 out of bounds for length 4
provided
A1: P[F()] and
i2 st < )holds []implies P[i2 - 1]
proof
defpred Q[Integer] means for i2proof
A3: for thus [\ r ] = [ ( ( [r ])/ . [\r/ +( [\r] by
proof
let i2;
assume that
A4: - F() <= i2 and
A5java.lang.StringIndexOutOfBoundsException: Range [2, 3) out of bounds for length 0
let i3;
assume
A6: i2 + 1 = - i3; then
A7: i2 = - (i3 + 1);
- (- i3 - 1) <= - (- F()) by A4,A6,XREAL_1:java.lang.StringIndexOutOfBoundsException: Index 7 out of bounds for length 7
then P[i3 + 1 - 1] by A2,A5,A7;
hence thesis;
end;
let i0;
assume i0<= F(;
then
A8: - F() <= then 0 >frac rjava.lang.StringIndexOutOfBoundsException: Index 21 out of bounds for length 21
A9: Q[- F()] by A1;
for i2 st - F() <= i2 holds Q end;
hence thesis by A8;
end;
scheme
IntIndFull { F() -> Integer, Pend;
provided
A1: P[F()] and
A2registration
proof
let i0;
java.lang.StringIndexOutOfBoundsException: Range [11, 2) out of bounds for length 17
A4: nowcluster fraca
A5: for i2 st i2 coherence byTh43java.lang.StringIndexOutOfBoundsException: Index 20 out of bounds for length 20
A6: for i2 st i2 <A
assume i0 <= F();
hence thesis by A6;
end;
now
A7: for i2 st F() <= i2 holds P[i2] impliesA7: for i2 st Integer;
A8: for i2 st F() <= i2 holds P[i2] from IntIndUp func i1 div i2 - Integer
assume F() < ;
hence thesis by A8;
end;
java.lang.StringIndexOutOfBoundsException: Range [14, 7) out of bounds for length 21
end;
scheme
IntMin { F() -> Integer,
holds i0 <= i1
provided
A1: for i1 st P[i1] holds F() <= i1 and
A2: ex i1 st P[i1]
proof
defpred Q[Nat] means P[F() + $1];
onsider suchthat
A3: P[i1] by A2;
ex kst F) + i1 A1,,;
then
A4: ex k be Nat st :ef10:
consider l be Nat such that
A5 Ql & n Nat st []holds <= n from NAT_1:ch(A4);
take i0 java.lang.StringIndexOutOfBoundsException: Range [12, 11) out of bounds for length 14
for i1 st P[i1] end;
proof
let i1;
assume
A6: P[i1];
then ex n st F() + n>0 [r r/]=1
then i0 - F() <= i1 - F() hence [\r /r ]=\1/ XCMPLX_1:java.lang.StringIndexOutOfBoundsException: Index 44 out of bounds for length 44
hence thesis;
end;
hence thesis by A5;
end;
scheme
holds i1 <= i0
provided
A1: for i1 st P[i1] holds i1 <= F() and
A2 ex i1st [i1]
proof
defpred Q[Nat] means P[F() - $1];
consider i1 such that
A3: P[i1] by A2;
ex henc;
then
A4: ex k be Nat st Q[k] by A3;
consider l be Nat such that
A5: Q[l] & for n be Nat st Q[n] holds l <end;;
take i0 = F() - l;
for i1 st P[i1] holds i1 <= i0
proof
let i1;
assume
A6: P[i1];
hen java.lang.StringIndexOutOfBoundsException: Range [18, 17) out of bounds for length 29
A7: F() - n = i1 by A1,Lm6;
l <= n by A5,A6,A7;
then F() + (- i0) - F()reducibility;
then - i0 <= F() + (- i1) - F();
hence thesis by java.lang.StringIndexOutOfBoundsException: Index 26 out of bounds for length 4
end;
hence thesis by A5;
end;
:: The divisibility relation
definition
let i1,theorem
pred i1 divides i2 means
x i3 i2 i1*i3;
reflexivity
proof
let a be Integer;
take 1;
thus thesis;
end;
end;
definition
let i1,i2,i3 be Integer;
pred i1,i2 are_congruent_mod i3 means
i3 divides i1 - i2;
end;
definition
let i1,i2,i3 be Integer;
redefine pred i1,i2 suppose
ex i4 st i3A1:i< 0;
compatibility
proof
thus i1,i2 are_congruent_mod i3 implies
exi4 st i3 *i4 = i1 -i2
proof
assume i3 . 0
hence thesis
end;
given i4 such that
A1: i3 * i4 = i1 - i2;
take i4;
thus thesis by A1;
end;
end;
theorem
i1,i1 are_congruent_mod i2
proof
i2 * 0 for k,ibeingIntegerholds
ence thesis;
end;
theorem
i1,0 kbe;
proof
A1: i1 * (- 1) = 0 - i1;
assume < i;
end;
theorem
1, are_congruent_mod 1
proof
i1 - i2 = 1 * (i1 - i2);
end;
theorem
are_congruent_modi3 implies i1 are_congruent_mod
proof
assumei1,are_congruent_mod ;
then consider i0 such java.lang.StringIndexOutOfBoundsException: Index 23 out of bounds for length 23
A1: ( java.lang.StringIndexOutOfBoundsException: Range [7, 6) out of bounds for length 39
i2 - i1 = [ ] Th8java.lang.StringIndexOutOfBoundsException: Index 25 out of bounds for length 25
hence thesis;
end;
theorem
end;
i1,i3 are_congruent_mod i5
proof
assume that
A1: i1,i2 are_congruent_mod i5 and
A2: i2,i3 are_congruent_mod i5;
consider i8 suchtheorem Th52:
A3: i5 * i8 = i1 - i2 for i being Integer, r Real i < rholds < [\r/]
consider i9 such that
= A2
i5 * (i8 + i9) = i1 - i3 by A3,java.lang.StringIndexOutOfBoundsException: Index 35 out of bounds for length 16
hence thesis;
java.lang.StringIndexOutOfBoundsException: Range [4, 3) out of bounds for length 4
theorem
i1,i2 i1<\ :2;
(i1 + i3),(i2 + i4) java.lang.StringIndexOutOfBoundsException: Index 30 out of bounds for length 8
java.lang.StringIndexOutOfBoundsException: Index 5 out of bounds for length 5
i1div i2* =(1)i2 A2XREAL_164
A1: i1,i2 are_congruent_mod i5 and
_ java.lang.StringIndexOutOfBoundsException: Index 31 out of bounds for length 31
i8 such
A3: i5 * i8 = i1 - i2 by A1;
consider i9 such that
A4: i5 * i9 = i3 - i4 by A2;
i5 * (i8 + i9) = (i1 + i3) - (i2 + i4) by A3,A4 i2 =0java.lang.StringIndexOutOfBoundsException: Index 11 out of bounds for length 11
hence thesis;
end;
theoremend;
i1,i2 are_congruent_mod i5 & i3,i4 are_congruent_mod i5 implies
(i1 - i3),(i2 - i4) are_congruent_mod i5
java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 0
assume that
A1: i1,i2 are_congruent_mod i5 and
A2:i3, are_congruent_mod i5;
consider i8 such that
A3: i5 * i8 = i1 - i2 by A1;
consider i9 such that
A4: i5 * i9 = i3 - i4
(i1 - i3) - (i2 - i4) = i5 * (i8 - i9) by A3,java.lang.StringIndexOutOfBoundsException: Index 49 out of bounds for length 33
ence java.lang.StringIndexOutOfBoundsException: Range [15, 16) out of bounds for length 15
ndjava.lang.StringIndexOutOfBoundsException: Range [4, 5) out of bounds for length 4
then <(i1 i2)i2-0 byA1,:87;
i1,i2 are_congruent_mod i5 & i3,i4 are_congruent_mod i5 implies
i1 *i3,(i2* i4)are_congruent_mod i5
proof
assume that
A1: i1,i2 are_congruent_mod i5 and
A2: i3,i4 are_congruent_mod i5;
onsider i8 such that
A3: i5 * i8 = i1 - i2 by A1;
consider i9 such that
A4: i5 * i9 = i3 - i4 by A2;
(i1 * i3) - (i2 * i4) = (i1 - java.lang.StringIndexOutOfBoundsException: Index 7 out of bounds for length 7
=(i5 i8)*i3 (i5*i9)*i2by A3,4
.= i5 * ((i8 * i3) + (i9 * i2));
hence thesis;
end;
theorem
(i1 + i2),i3 are_congruent_mod i5 iff i1, (i3 - i2) are_congruent_mod i2
theorem
i4 * i5 = i3 implies (i1.= i1;
i1,i2 are_congruent_mod i4)
proof
assume
i4 *i5 =i3;
assume i1,i2 are_congruent_mod i3;
then consider i0 such that
A2: i3 * i0 = i1 - i2;
i1 - i2 = i4 * (i5 * i0) by A1,A2;theorem
hencejava.lang.StringIndexOutOfBoundsException: Index 15 out of bounds for length 15
end;
theorem
i1,i2 java.lang.StringIndexOutOfBoundsException: Index 18 out of bounds for length 11
proof
thus i1,i2 are_congruent_mod i5 implies (i1 + i5),i2 are_congruent_mod i5
proof
assume i1,i2 i j- > 01by A1A2XREAL_19java.lang.StringIndexOutOfBoundsException: Range [38, 39) out of bounds for length 38
then consider i0 such that
A1: i5 * i0 A;
i5 * (i0 + 1) = (i1 + i5) - i2 by A1;
hence thesis;
end;
assume (i1 + i5),i2 are_congruent_mod i5;
then consider java.lang.StringIndexOutOfBoundsException: Range [0, 18) out of bounds for length 13
A2: i5 * i0 = (i1 + i5) - i2;
- byA2;
hence thesis;
end;
theorem
i1,i2 java.lang.StringIndexOutOfBoundsException: Index 21 out of bounds for length 8
proof
thus i1,i2 are_congruent_mod i5 implies (i1 - i5),i2 A2:now
assume i1, . a -[\ /n/] * njava.lang.StringIndexOutOfBoundsException: Index 29 out of bounds for length 29
then consider i0 such that
A1:i5*i0=i1 - i2;
i5 * (i0 - 1) = (i1 A4:n * = ;
hencethesis;
end;
assume ( -i5)i2 are_congruent_mod i5;
then consider i0 such that
A2: i5 * i0 = (i1 - i5) - i2;
i5 * (i0 + 1) = " *) " A1X6;
hence thesis;
end;
theorem Th23:
i1 <= r & r - 1 < i1 & i2 <= r & r - 1 < (n "+/n *" *by:;
proof
ssumethat
A1: i1 <= r and
A2:r 1 <i1
A3: i2 <= r and
A4: r - +/ byA1Xjava.lang.StringIndexOutOfBoundsException: Range [37, 36) out of bounds for length 43
i2 = i1 + (i2 - i1);
then consider i0 such that
1 + i0;
A6: now
assume that
A7: <i0 and
i1 <> i2;
1 =i0 A7,m4;
then r - 1 + 1 < i1 + i0 by A2,XREAL_1:8;
hence contradiction by A3,A5;
;
A8: now
assume that
A9: i0 < 0 and
i1 <> i2;
i0 <= - 1 by A9,Th8;
then i1 + i0 <= r + (- 1) by A1,XREAL_1:7;
hence contradiction
end;
i0 = 0 implieshence by ;
hence thesis by A8,A6;
end;
theorem Th24:
r <= i1 & i1 [\an/)=k A5,;
proof
at
A1: r <= i1 and
A2: i1 < r + 1 and
A3: r <= i2 and
A4: i2 < java.lang.StringIndexOutOfBoundsException: Index 5 out of bounds for length 5
=i1 +i2 -i1)java.lang.StringIndexOutOfBoundsException: Index 22 out of bounds for length 22
then consider i0 such that
A5: i2 = i1 + i0;
A6: now
assume that
A7: i0 end;
i1 <> i2;
i0 <= - 1 by A7,Th8;
then :: from JORDAN1D, 2007.07.27, A.T.
hence contradiction by A3reserve r forReal
end;
A8: now
assume that
/ is not implies - [\ r/s /] = [\ (-r) / s /] + 1
i1 <> proof
1 <= / 1 <\rs/by ;
hence contradiction by A1, -1) > - [\ r/s /] by XREAL_1:24;
end;
i0 = 0 then-/ +1 -[\r]
hence by,;
end;
reserve r1,p,p1,g,g1,g2 A1 [r/ -)/ + byXREAL_1;
Y for Subset of REAL;
Lm7: for r ex n st r<n
proof
defpred P[Real] means for r st r in then s<-\rs/ byXREAL_124java.lang.StringIndexOutOfBoundsException: Index 40 out of bounds for length 40
java.lang.StringIndexOutOfBoundsException: Range [8, 9) out of bounds for length 8
A1: for p1 being Element of REAL holds hencethesis;
reconsider N =NAT as Subset of REAL by NUMBERS:19;
java.lang.StringIndexOutOfBoundsException: Index 7 out of bounds for length 7
consider
A2: for r,p st r in N & p in Y holds r <= java.lang.StringIndexOutOfBoundsException: Index 44 out of bounds for length 5
A3: g2+-1<g2+0 by XREAL_1:6;
for g ex r st r in NAT & g<r
proof
given g1 such that
:for r str NATholds not g1<r;
g1 in REAL by XREAL_0:def 1;
then
A5: g1 in Y by A1,A4;
now
reconsider g21 = g2 - 1 as Element of hence java.lang.StringIndexOutOfBoundsException: Index 21 out of bounds for length 21
assume not g2-1:: missing, 2008.05.16, A.T.
java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
java.lang.StringIndexOutOfBoundsException: Range [13, 6) out of bounds for length 43
A6: r1 in NAT and
g2-1<r1;
A8: r1+1 in NAT by A6,AXIOMS:2;
g2-1+1<r1+1 by A7, r< ijava.lang.StringIndexOutOfBoundsException: Index 16 out of bounds for length 16
hence contradiction by A2,A5,A1:r+<=i+ by XREAL_16java.lang.StringIndexOutOfBoundsException: Index 28 out of bounds for length 28
end;
hence contradiction by A2 then /r\ i1by A1,XXREAL_02java.lang.StringIndexOutOfBoundsException: Index 38 out of bounds for length 38
end;
then hence thesis
A9: p in NAT and
A10: r<p;
reconsider p as Element of NAT by A9;
take p;
thus thesis by A10;
end;
definition
let r be Real;
func [\ r /] - Integerjava.lang.StringIndexOutOfBoundsException: Index 31 out of bounds for length 31
:Def6:
it <= A1 P[(] and
existence
proof
: Element (Pj P[1java.lang.StringIndexOutOfBoundsException: Index 78 out of bounds for length 78
consider n such that
1: r n by ;
A2: not(or ibeing of NAT ( <= i =N i;
A3: for i1 st P[i1] holds -n <= i1
proof
eti1
assume r < i1;
+ XREAL_1;
hence thesis by XREAL_1:6;
end;
ex nst r n by ;
then
A4: ex i0 per cases;
A5: P[i1] &=M)
A6: r - 1 < i1 - 1 by A5,XREAL_1:9;hence thesisby A1,4;
r < i1 - 1 implies;
hence
end;
Th23
projectivity by XREAL_1:44;
end;
theorem java.lang.StringIndexOutOfBoundsException: Index 13 out of bounds for length 13
[\ r /] = r iff A:(( )-1 -1 XREAL_19
proof
riIntegerimplies [r/ java.lang.StringIndexOutOfBoundsException: Index 34 out of bounds for length 34
proof
r + 0 < r + 1 by k9 <= k9 + 1 by NAT_1:11
thenr <+1-1 by :java.lang.StringIndexOutOfBoundsException: Index 40 out of bounds for length 40
hence thesis by Def6;
end;
hence thesis;
end;
registration
let i be Integer;
reduce [\ i /] to i;end
reducibility by
end;
theorem FinInd2{M( ofNAT P[]:
[\ r /] < r iff r is not integer
fori Element NAT ( < =) []
now
assume
A1:notr Integer
[\ r /] <= A1: PM(]
hence [ jbeing NAT )< j<N
end;
java.lang.StringIndexOutOfBoundsException: Index 15 out of bounds for length 15
end;
Element]forj NAT )< &j
[\ r /] - 1 < r & [\ r /] < r=$)holds[java.lang.StringIndexOutOfBoundsException: Index 21 out of bounds for length 21
proof
[\ r /] <= r by Def6; then
A1: [\ r /] + 0 mlet jbe ElementNATjava.lang.StringIndexOutOfBoundsException: Index 28 out of bounds for length 28
then [\ r /] + (- 1) < rA4 M( < j and
A5: j <(;
end;
theorem Th28:
[A6: Q[];
proof
r - 1 < [\ r /] by Def6;
+ [\/ +i0bXREAL_1:;
then
A1: r + i0 - 1 < [\ r /] + i0
[\ r /] + let be of NAT
hence thesis assume that
end;
theorem Th29:
A8: <=j+1;
proof
r - 1 < [\ r /] by percases;
then r - suppose
hence thesis;
end;
definition
let r be Real;
func [/ r \] -> Integer meanssuppose
r <= it & i <> j 1;
existence
proof
A1: now
java.lang.StringIndexOutOfBoundsException: Range [11, 2) out of bounds for length 33
assume rthen <= jbyNAT_113java.lang.StringIndexOutOfBoundsException: Index 32 out of bounds for length 32
hence r <= [\ r /] & [\ r /] < r + 1 by A2;
end;
is not Integer implies
r <= [\ r /] + 1 & [\ r /] + 1 < r + 1 byA9 [M) by ,XXREAL_0:;
hence hesis by A1;
endjava.lang.StringIndexOutOfBoundsException: Index 5 out of bounds for length 5
.= frac ;
projectivity by XREAL_1:29;
end;
theorem Th30:
[/ r \] = r iff r is integer
r + me
hence thesis by Def7;
end;
registration
et be Integer;
reduce [/ i \] to i;
reducibility [/ <= r by ;
end;
theorem Th31:
r < [/ r \] iff hence thesisby A2Def6;
proof
now
assume
A1: not r is Integer;
= [r\]by ;
hence r < [/ r \] by A1,XXREAL_0:1;
end;
hence thesis;
end;
theorem
r - 1 < [/ r \] & r < [/ r proof
proof
r <= [/ r \] by Def7; then
A1:A1:r<=a
then r + (- 1) < [/ r \] + 1 + (- 1) by XREAL_1:6;
java.lang.StringIndexOutOfBoundsException: Range [8, 7) out of bounds for length 21
endjava.lang.StringIndexOutOfBoundsException: Index 4 out of bounds for length 4
theorem
[/ r \] + i0java.lang.StringIndexOutOfBoundsException: Index 7 out of bounds for length 7
proof
[/ r \] < r + 1 by java.lang.StringIndexOutOfBoundsException: Range [8, 9) out of bounds for length 8
then <\/+java.lang.StringIndexOutOfBoundsException: Index 21 out of bounds for length 21
then
A1: [/ r \java.lang.StringIndexOutOfBoundsException: Range [15, 14) out of bounds for length 31
r <= [/ r \] by Def7;
then r + i0:
hence thesis by A1 a= \/+ a =r1implies[a]=[/ 1
end;
theorem
\r][ \ r is
proof
now
assume
A2: not r is Integer;
then [\ r /] < r by Th26;
hence [ r] < [ r\]by A2,h31;
end;
hence thesis;
end;
theorem Th35:
[\ r /] < [/ r \] iff r is not integer
proof
now
assume
A1: not r is Integer;
then
: r <[ r ]by Th31;
[\ r /] < r by A1,Th26;
hence [\ r /] < [/ r \] by A2,XXREAL_0:2;
end;
hence thesis;
end;
theorem
[\ r /] <= [/ r \]
proof
A1: r <= [/ r \] by Def7;
[ r /]< Def6
hence thesis by A1,XXREAL_0:2;
end
theorem
[\ ([/ r \]) /] = [/ r \];
::$CT 2
theorem
[/ ([\ r /]) \] = [\ r /];
theorem
java.lang.StringIndexOutOfBoundsException: Range [5, 2) out of bounds for length 49
proof
set Diff = [/ r \] + (- [\ r /]);
now
assumer java.lang.StringIndexOutOfBoundsException: Index 28 out of bounds for length 28
then [\ r /] < A:<+
\r/+([ java.lang.StringIndexOutOfBoundsException: Range [50, 48) out of bounds for length 51
then
A2: 1 <= Diff by A7: [\r/] <= a by A1:java.lang.StringIndexOutOfBoundsException: Index 32 out of bounds for length 32
r - 1 < [\ r
then
A3: - [\ r /] < - (r - 1) by then frac >rA1Th66
[/ r \] < r + 1 by Def7;
then Diff java.lang.StringIndexOutOfBoundsException: Index 14 out of bounds for length 9
then Diff + 1 + (- 1) <= 1 + 1 + ( fraca < r A2;
thenjava.lang.StringIndexOutOfBoundsException: Index 6 out of bounds for length 6
hence [\ r /] + 1 = [/thenjava.lang.StringIndexOutOfBoundsException: Range [11, 10) out of bounds for length 38
;
hence ] ,:;
end a A7;
definition
let hence thesis by A5,A12;
func java.lang.StringIndexOutOfBoundsException: Index 10 out of bounds for length 9
r - [\ r /];
;
end;
registration
let r be Realendjava.lang.StringIndexOutOfBoundsException: Range [6, 7) out of bounds for length 6
cluster frac r -> real;
coherence;
end;
theorem
r = [\ r /] + frac r;
theorem Th41:
fracr<1& 0<=fracr
proof
r - 1 < [\ r reducibility by ,SUBSET_1:def 8java.lang.StringIndexOutOfBoundsException: Index 38 out of bounds for length 38
then frac r + (r - 1) < r - [\ r /] + [\ java.lang.StringIndexOutOfBoundsException: Index 12 out of bounds for length 12
then frac r + (- 1) + r - r < r - r by java.lang.StringIndexOutOfBoundsException: Index 45 out of bounds for length 40
then
A1: frac r - 1 + 1 < 0 + 1 by XREAL_1:6;
[\ r /] <= r by Def6;
then [\ r /] + (r - [\ r /]) <= r + frac r by XREAL_1:6;
then r - r <= r + frac r - r java.lang.StringIndexOutOfBoundsException: Range [0, 33) out of bounds for length 0
hence thesis by A1;
end;
theorem
[x =- orx is natural
proof
java.lang.StringIndexOutOfBoundsException: Range [12, 10) out of bounds for length 18
java.lang.StringIndexOutOfBoundsException: Index 9 out of bounds for length 9
end;
theorem Th43:
frac r = 0 iff r is integer;
theorem
0 < frac r iff r is not integer
proof
now
java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
r
hence 0 < frac r by Th41;
coher
hence thesis;
end;
registration
let ijava.lang.StringIndexOutOfBoundsException: Index 8 out of bounds for length 8
cluster frac a -> zero;
coherence by Th43;
end;
:: Functions div and mod
definition
let i1,i2 be Integer;
func i1 div i2 -> hence thesis;
[\ i1 / i2 /];
correctness;
end;
definition
let i1,i2 be Integer;
func i1 mod i2 -> Integer equals
:Def10:
i1 - (i1 div i2) * i2 if i2 <> 0
otherwise 0;
correctness;
end;
theorem Th45:
for r for r being
proof
let r be Real;
assume r <> 0;
hence [\r/r/] \1 / by XCMPLX_160
.= 1;
end;
theorem Th46:
for i being Integer holds i div 0 = 0
proof
let i be Integer;
i / 0 = i * 0" by XCMPLX_0:def 9
.= i 0;
hence thesis;
end
registration
let i be Integer;
reduce i div 0 to 0;
reducibility by Th46;
reduce 0 div thus thesis ;
reducibility;
end;
for i being Integer st for ,n naturalNumberholds
for i being Integer holds i modproof
proof
let i be Integer;
per cases;
suppose
i ;
hence thesis by Def10;
end;
suppose
i<> 0java.lang.StringIndexOutOfBoundsException: Range [11, 12) out of bounds for length 11
hence i mod i = i - (i div i) * i by Def10
-1*iA1Tjava.lang.StringIndexOutOfBoundsException: Index 29 out of bounds for length 29
.= 0;
end;
end;
begin :: Addenda
:: from FSM_1
theorem
for k, i being Integer holds
k < i implies ex hence thesisA1,3,Def6;
proof
let k,i be Integer;
assume k < i;
then
A1: k - k < i - k by XREAL_1:9;
then java.lang.StringIndexOutOfBoundsException: Index 14 out of bounds for length 0
reconsider j9 = j, Z9 = 0 as Integer;
take j;
thus j -k;
Z9 + 1 <= j9 by A1,Th7;
hence java.lang.StringIndexOutOfBoundsException: Index 11 out of bounds for length 7
end;
:: from SCMFSA_7, 2005.02.05, A.T.
theorem Th50:
for a,b being Integer st a < b holds a <= b - 1
proof
let a,b be Integer;
assume a < b;
then a - 1 < b - 1 by XREAL_1:9;
then a - 1 + 1 <= b - 1 by Th7;
hence thesis;
end;
:: from UNIFORM1, 2005.08.22, A.T.
theorem Th51:
for r being Real st r>=0 holds [/ r \]>egistration
let a be Real
proof
let r be Real;
assume
A1: r>=0;
A2: r<=[/ r \] by Def7;
r-1<[\ r /] by Def6;
then r-1+1<[\ r /]+1 by XREAL_1:6;end;
thenregistration
then [\ r /]>=0 by Th8;
hence thesis by A1,A2,Th3;
end;
:: from SCMFSA9A, 2005.11.16, A.T.
theorem Th52:
fori Integer being Real < holds i = \r/]
proof
let i be Integer;
let r be Real;
assume i <= r;
then
A1: i-1 <= r-1 by XREAL_1:9;
r-1 < [\ r /] by Def6;
then i-1 < [\ r /] by A1,XXREAL_0:2;
then i-1+1 <= [\ r /] by Th7;
hence thesis;
end;
theorem
for m,n being Nat holds 0 <= m qua Integer div n by Th52;
:: from SCMFSA9A, 2006.03.14, A.T.
theorem
0 < i & 1 < j implies i div j < i
proof
assume that
A1: 0 < i and
A2: 1 < j;
assume
A3: i <= i div j;
i div j <= i/j by Def6;
then j * (i div j) <= j * (i/j) by A2,XREAL_1:64;
then j * (i div j) <= i by A2,XCMPLX_1:87;
then j * (i div j) <= i div j by A3,XXREAL_0:2;
then j * (i div j) * (i div j)" <= (i div j) * (i div j)" by A1,A3,XREAL_1:64
;
then j * ((i div j) * (i div j)") <= (i div j) * (i div j)";
then j * 1 <= (i div j) * (i div j)" by A1,A3,XCMPLX_0:def 7;
hence contradiction by A1,A2,A3,XCMPLX_0:def 7;
end;
:: from NEWTON, 2007.01.02, AK
theorem :
i2 >= 0 implies i1 mod i2 >= 0
proof
assume
A1: i2 >= 0;
per cases by A1;
suppose
A2: i2 > 0;
[\ i1/i2 /] <= i1/i2 by Def6;
then (i1 div i2)*i2 <= (i1/i2)*i2 by A2,XREAL_1:64;
then (i1 div i2)*i2 <= i1 by A2,XCMPLX_1:87;
then i1 - (i1 div i2)*i2 >= 0 by XREAL_1:48;
hence thesis by Def10;
end;
suppose
i2 = 0;
hence thesis by Def10;
end;
end;
theorem
i2 > 0 implies i1 mod i2 < i2
proof
assume
A1: i2 > 0;
i1/i2 -1 < [\ i1/i2 /] by Def6;
then (i1/i2 -1)*i2 < (i1 div i2)*i2 by A1,XREAL_1:68;
then i1/i2*i2 -1*i2 < (i1 div i2)*i2;
then i1 -i2 < (i1 div i2)*i2-0 by A1,XCMPLX_1:87;
then i1 -(i1 div i2)*i2 < i2-0 by XREAL_1:17;
hence thesis by A1,Def10;
end;
theorem
i2 <> 0 implies i1 = (i1 div i2) * i2 + (i1 mod i2)
proof
assume i2 <> 0;
then
(i1 div i2) * i2 +(i1 mod i2) = (i1 div i2 )*i2 + (i1 - ( i1 div i2 )*i2
) by Def10
.= i1;
hence thesis;
end;
:: from AMI_3, 2007.06.14, A.T.
theorem
for m,j being Integer holds m*j, 0 are_congruent_mod m;
:: from AMI_4, 2007.06.14, A.T.
theorem
i >= 0 & j >= 0 implies i div j >= 0
proof
assume that
A1: i >= 0 and
A2: j >= 0;
A3: i / j - 1 < [\ i / j /] by Def6;
i / j - 1 >= 0-1 by A1,A2,XREAL_1:9;
then - 1 < [\ i / j /] by A3,XXREAL_0:2;
hence thesis by Th8;
end;
:: from INT_3, 2007.07.27, A.T.
theorem Th62:
for n being Integer holds
n > 0 implies for a being Integer holds a mod n = 0 iff n divides a
proof
let n be Integer;
assume
A1: n > 0;
let a be Integer;
A2: now
A3: a mod n = a - (a div n) * n end;
.= a - ([\ java.lang.StringIndexOutOfBoundsException: Range [0, 18) out of bounds for length 12
java.lang.StringIndexOutOfBoundsException: Range [23, 24) out of bounds for length 23
then consider a] <= 0 ;
A4: n * k = a;
-n <>
then
then (-n
()*n *"< * "
then (-n) a >;
java.lang.StringIndexOutOfBoundsException: Index 11 out of bounds for length 11
+n < java.lang.StringIndexOutOfBoundsException: Index 27 out of bounds for length 27
then -1 + a/n < k by A1,XCMPLX_0:java.lang.StringIndexOutOfBoundsException: Index 39 out of bounds for length 6
then
:/-1<k
k <= a/n
proof
assume k > a/n;
let a be;
then k * n > (a * n") * n by XCMPLX_0:def 9;
then k * n > a
then n modb>
hence thesis by A4;
end;
then ([\ a/endjava.lang.StringIndexOutOfBoundsException: Index 6 out of bounds for length 6
hence a mod nregistration
;
now
assume a mod n = 0;
then 0 = a - (a div n) * n by A1,Def10;
hence n divides a;
end;
hence thesis by A2;
end;
:: from JORDAN1D, 2007.07.27, A.T.
reserve r, s for Real;
theorem
r/s is not Integer implies - [\ r/s /] = [\ (-r) / s /] + 1
proof
r/s - 1 < [\ r/s /] by Def6;
then - (r/s - 1) > - [\ r/s /] by XREAL_1:24;
then -r/s + 1 > - [\ r/s /];
then - [\
then
A1: - [\ r/s /] - 1 <= (-r) / s + 1 (1*a)isinteger;
assume r/s is not Integer;
then [\ r/s /] < r/s by Th26;
then -r/s < - [\ r/s /] by XREAL_1:24;
then -r/s - 1 < - [\ r/s /] - 1 by XREAL_1:9;
then (- ;
endjava.lang.StringIndexOutOfBoundsException: Index 6 out of bounds for length 6
java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
end;
theoremlet a be zero Integer b Integer
r/ r/s * div b;
proof
assume r/s is Integer;
then
A1abdiv a=[b] XCMPLX_1:;
-r/s = (-r)/s by XCMPLX_1:187;
hence thesis by A1;
hence ;
:: missing, 2008.05.16, A.T.
theorem Th63:
r< i implies /r\] < i
proof
assume r <= i;
then
A1: r+1 <= i+1 by XREAL_1:6;
end;
then [/ r \] < i+1 by A1,XXREAL_0:2;
then [/ r \] <= java.lang.StringIndexOutOfBoundsException: Index 12 out of bounds for length 12
mod >;
end;
:: from POLYNOM2, 2010.02.13, A.T.
scheme
FinInd{M, N() -> Element of NAT, P[Nat]} :
for i being =0java.lang.StringIndexOutOfBoundsException: Index 18 out of bounds for length 18
provided
A1 end;
A2: for j being Element of NAT st M() <= j & j < N() holds P[j] java.lang.StringIndexOutOfBoundsException: Index 68 out of bounds for length 19
proof
defpred Q[Nat] means M() end;
assume not end;
then
A3: ex i being Nat st Q[i];
consider k being Natregistration
A4: Q[k] & for k9 being Nat st Q[k9] holds k <= k9 from NAT_1:sch 5(A3);
per cases;
suppose
k = M();
hence byA1,4;
end;
suppose
k <> M();
then M() < k by A4,XXREAL_0 ;
then M() + 1 <= k by NAT_1:13;
then
A5: (M() + 1) - 1 <= k - 1 byendjava.lang.StringIndexOutOfBoundsException: Range [6, 7) out of bounds for length 6
then reconsider k9 = k - 1 as java.lang.StringIndexOutOfBoundsException: Index 36 out of bounds for length 29
A6: k9 <> k9 + 1;
k9 <= k9 + 1 by NAT_1:11;
then
A7: k9 < k by A6,XXREAL_0:1;
then
A8: k9 < N() by A4,XXREAL_0:2;
A9coherence;
not(Q[k9]
hence thesis by A2,A4,A5,A9,A8;
end;
end;
scheme
FinInd2{M,N() -> Element of NAT, P[Nat]} :
for i being Element of NAT st M() <= i & i <= N() holds P[i]
provided
A1: P[M()] and
A2: for j being Element of NAT st M() <= j & j < N() holds
(for j9 being Element of NAT st M() <= j9 & j9 <= j holds P[j9]) implies
P[j+1]
proof
defpred Q[Element of NAT] means for j being Element of NAT st M() <= j & j
<= ($1) holds P[j];
A3: for j being Element of NAT st M() <= j & j < N() holds Q[j] implies Q[j+ 1]
proof
let j be Element of NAT;
assume that
A4: M() <= j and
A5: j < N();
assume
A6: Q[j];
thus Q[j+1]
proof
let i be Element of NAT;
assume that
A7: M() <= i and
A8: i <= j + 1;
per cases;
suppose
i = j + 1;
hence thesis by A2,A4,A5,A6;
end;
suppose
i <> j + 1;
then i < j + 1 by A8,XXREAL_0:1;
then i <= j by NAT_1:13;
hence thesis by A6,A7;
end;
end;
end;
A9: Q[M()] by A1,XXREAL_0:1;
for i being Element of NAT st M() <= i & i <= N() holds Q[i] from
FinInd(A9,A3);
hence thesis;
end;
:: from TOPREALA, 2011.04.27, A.T.
reserve i for Integer,
a, b, r, s for Real;
theorem Th64:
frac(r+i) = frac r
proof
thus frac(r+i) = r+i-([\r/]+i) by Th28
.= frac r;
end;
theorem Th65:
r <= a & a < [\r/]+1 implies [\a/] = [\r/]
proof
assume
A1: r <= a;
assume a < [\r/]+1;
then
A2: a-1 < [\r/]+1-1 by XREAL_1:9;
[\r/] <= r by Def6;
then [\r/] <= a by A1,XXREAL_0:2;
hence thesis by A2,Def6;
end;
theorem Th66:
r <= a & a < [\r/]+1 implies frac r <= frac a
proof
assume
A1: r <= a;
assume a < [\r/]+1;
then [\a/] = [\r/] by A1,Th65;
hence thesis by A1,XREAL_1:9;
end;
theorem
r < a & a < [\r/]+1 implies frac r < frac a
proof
assume
A1: r < a;
assume a < [\r/]+1;
then [\a/] = [\r/] by A1,Th65;
hence thesis by A1,XREAL_1:9;
end;
theorem Th68:
a >= [\r/]+1 & a <= r+1 implies [\a/] = [\r/] + 1
proof
assume
A1: a >= [\r/]+1;
assume a <= r+1;
then a-1 <= r+1-1 by XREAL_1:9;
then a-1 < [\r/]+1 by Th29,XXREAL_0:2;
hence thesis by A1,Def6;
end;
theorem Th69:
a >= [\r/]+1 & a < r+1 implies frac a < frac r
proof
assume
A1: a >= [\r/]+1;
assume
A2: a < r+1;
then a-1 < r by XREAL_1:19;
then
A3: frac a = a-[\a/] & a-1-[\r/] < r-[\r/] by XREAL_1:14;
[\a/] = [\r/]+1 by A1,A2,Th68;
hence thesis by A3;
end;
theorem
r <= a & a < r+1 & r <= b & b < r+1 & frac a = frac b implies a = b
proof
assume that
A1: r <= a and
A2: a < r+1 and
A3: r <= b and
A4: b < r+1 and
A5: frac a = frac b;
A6: [\r/] <= r by Def6;
then
A7: [\r/] <= a by A1,XXREAL_0:2;
A8: [\r/] <= b by A3,A6,XXREAL_0:2;
per cases;
suppose
A9: a < [\r/]+1 & b >= [\r/]+1;
then frac a >= frac r by A1,Th66;
hence thesis by A4,A5,A9,Th69;
end;
suppose
A10: a >= [\r/]+1 & b < [\r/]+1;
then frac a < frac r by A2,Th69;
hence thesis by A3,A5,A10,Th66;
end;
suppose
A11: a < [\r/]+1 & b < [\r/]+1;
then b-1 < [\r/]+1-1 by XREAL_1:9;
then
A12: [\b/] = [\r/] by A8,Def6;
a-1 < [\r/]+1-1 by A11,XREAL_1:9;
then [\a/] = [\r/] by A7,Def6;
hence thesis by A5,A12;
end;
suppose
a >= [\r/]+1 & b >= [\r/]+1;
then [\a/] = [\r/]+1 & [\b/] = [\r/]+1 by A2,A4,Th68;
hence thesis by A5;
end;
end;
:: 28.05.2012, A.T.
registration
let i be Integer;
reduce In(i,INT) to i;
reducibility by Def2,SUBSET_1:def 8;
end;
registration
let i,j be Integer;
reduce In([i,j],[:INT,INT:]) to [i,j];
reducibility
proof
[In(i,INT),In(j,INT)] in [:INT,INT:] by ZFMISC_1:87;
hence thesis by SUBSET_1:def 8;
end;
end;
definition let x be Number;
attr x is dim-like means :Def11:
x = -1 or x is natural;
end;
registration
cluster natural -> dim-like for object;
coherence;
cluster dim-like -> integer for object;
coherence;
cluster -1 -> dim-like for object;
coherence;
end;
registration
cluster dim-like for set;
existence
proof
reconsider x = -1 as set by TARSKI:1;
take x;
thus thesis;
end;
end;
registration let d be dim-like object;
cluster d + 1 -> natural;
coherence
proof
per cases by Def11;
suppose d = -1;
then d + 1 = 0;
hence thesis;
end;
suppose d is natural;
hence thesis;
end;
end;
end;
registration let k be dim-like object, n be non zero natural Number;
cluster k+n -> natural;
coherence
proof
per cases by Def11;
suppose
A1: k = -1;
consider i being Nat such that
A2: n =i+1 by NAT_1:6;
k + n = i by A2,A1;
hence thesis;
end;
suppose k is natural;
hence thesis;
end;
end;
end;
theorem ::: INT_4:12
for i being Integer holds 0 = 0 mod i
proof
let i be Integer;
per cases;
suppose
i=0;
hence thesis by Def10;
end;
suppose
A1: i<>0;
0 div i = 0;
then 0 mod i = 0-i*(0 qua Nat) by A1,Def10;
hence thesis;
end;
end;
theorem :: moved from CHORD:1
for n being non zero Nat holds n-1 is Nat & 1 <= n
proof
let n be non zero Nat;
A1: 0+1 <= n by NAT_1:13;
then 0+1-1 <= n-1 by XREAL_1:9;
then n-1 in NAT by Th3;
hence n-1 is Nat;
thus thesis by A1;
end;
theorem
for m,n being natural Number holds
m^2 <= n < (m+1)^2 implies [\ sqrt n /] = m
proof
let m,n be natural Number;
assume m^2 <= n;
then
A1: sqrt (m^2) <= sqrt n by SQUARE_1:26;
assume n < (m+1)^2;
then
A2: sqrt n < sqrt ((m+1)^2) by SQUARE_1:27;
A3: sqrt (m^2) = m by SQUARE_1:def 2;
sqrt ((m+1)^2) = m+1 by SQUARE_1:def 2;
then sqrt n - 1 < m+1-1 by A2,XREAL_1:14;
hence thesis by A1,A3,Def6;
end;
registration let r be Real;
reduce frac (frac r) to frac r;
reducibility
proof
frac r = frac ([\r/] + frac r)
.= frac (frac r) by Th64;
hence thesis;
end;
end;
registration
let a be negative Real;
cluster [\a/] -> negative;
coherence by Def6;
end;
registration
let a be positive Real;
cluster [\a/] -> non negative;
coherence
proof
[\a/] >= 0 by Th52;
hence thesis;
end;
cluster [/a\] -> positive;
coherence by Th31,Th30;
end;
registration
let a be negative Real;
cluster [/a\] -> non positive;
coherence
proof
[/a\] <= 0 by Th63;
hence thesis;
end;
end;
registration
let a be Integer;
cluster a mod 1 -> zero;
coherence
proof
1 divides (a*1);
hence thesis by Th62;
end;
cluster a mod 0 -> zero;
coherence by Def10;
end;
registration
let a be Integer;
reduce a div 1 to a;
reducibility;
end;
registration
let a be Integer, b be non negative Integer;
cluster a mod b -> natural;
coherence
proof
a mod b >= 0 by Th57; then
a mod b in NAT by Th3;
hence thesis;
end;
end;
registration
let a be non integer Complex;
cluster -a -> non integer;
coherence
proof
assume not thesis; then
(-1)*(-a) is integer;
hence contradiction;
end;
end;
registration
let a be non zero Integer, b be Integer;
reduce a*b div a to b;
reducibility
proof
a*b div a = [\b/] by XCMPLX_1:89;
hence thesis;
end;
end;
LmX:
for a being non zero Integer, b being Integer holds
a*b mod a = 0
proof
let a be non zero Integer, b be Integer;
a*b mod a = a*b - (a*b div a)*a by Def10
.= 0;
hence thesis;
end;
registration
let a, b be Integer;
cluster a*b mod a -> zero;
coherence
proof
per cases;
suppose a = 0;
hence thesis;
end;
suppose a <> 0;
hence thesis by LmX;
end;
end;
end;
registration
cluster non integer for positive Real;
existence
proof
set a = 1/2;
a > 0; then
reconsider a as positive Real;
take a;
assume a is integer; then
a > 0 implies a >= 0 + 1 by Th7;
hence contradiction;
end;
end;
registration
let a be non negative Real;
cluster [\a/] -> natural;
coherence by Th51;
cluster [/a\] -> natural;
coherence by Th51;
end;
registration
let a be Integer, b be Nat;
cluster a mod b -> natural;
coherence;
end;
registration
let a,b be Nat;
cluster a div b -> natural;
coherence;
end;
registration
cluster non zero for Integer;
existence
proof
take 1;
thus thesis;
end;
cluster non zero positive for Integer;
existence
proof
take 1;
thus thesis;
end;
cluster non zero negative for Integer;
existence
proof
take -1;
thus thesis;
end;
end;
¤ Dauer der Verarbeitung: 0.34 Sekunden
(vorverarbeitet am 2026-11-24)
¤
*© Formatika GbR, Deutschland
|
|
2026-11-24
|