SSL newton05.miz
Sprache: Mizar
|
|
:: Parity as a Property of Integers
:: by Rafa{\l} Ziobro
::
:: Received June 29, 2018
:: Copyright (c) 2018-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/.
environ
vocabularies ABIAN, NUMBERS, NAT_1, INT_1, ARYTM_3, XXREAL_0, CARD_1, ARYTM_1,
INT_2, COMPLEX1, RELAT_1, PYTHTRIP, SQUARE_1, REAL_1, XCMPLX_0, ORDINAL1,
NEWTON, POWER, NEWTON05, SUBSET_1, NAT_3, ZFMISC_1;
notations TARSKI, XBOOLE_0, ORDINAL1, XCMPLX_0, XREAL_0, NUMBERS, XXREAL_0,
CARD_1, RELAT_1, FUNCT_1, POWER, INT_1, INT_2, NAT_1, NEWTON, ABIAN,
ABSVALUE, RVSUM_1, FINSEQ_1, FINSEQ_3, TREES_4, IRRAT_1, COMPLEX1,
NEWTON03, PYTHTRIP, SQUARE_1, SUBSET_1, PARTFUN1, ZFMISC_1, NAT_D;
constructors SQUARE_1, NAT_1, NAT_D, NEWTON, RFINSEQ, WSIERP_1, EULER_1,
SEQ_1, RECDEF_1, CLASSES1, BINOP_2, RELSET_1, NUMBERS, COMPLEX1, POWER,
INT_1, PREPOWER, ABIAN, NEWTON02, NEWTON03, PYTHTRIP, ORDINAL1, PEPIN,
ABSVALUE, NAT_3, MOEBIUS1, XCMPLX_0, REAL_1;
registrations ABIAN, ORDINAL1, XXREAL_0, XREAL_0, NAT_1, INT_1, NEWTON,
XCMPLX_0, WSIERP_1, NAT_6, PYTHTRIP, NEWTON01, NEWTON02, NEWTON03,
COMPLEX1, ABSVALUE, REAL_3, FOMODEL0, NAT_5;
requirements REAL, NUMERALS, SUBSET, ARITHM;
expansions INT_1, INT_2, NEWTON03, ABIAN, ORDINAL1;
theorems INT_2, NAT_1, ABSVALUE, INT_1, PREPOWER, NEWTON, XCMPLX_1, GR_CY_3,
XREAL_1, XXREAL_0, NAT_D, WSIERP_1, COMPLEX1, POWER, INT_4, INT_6,
TAYLOR_2, PEPIN, INT_5, PYTHTRIP, ABIAN, NEWTON02, NEWTON03, PRE_FF,
NAT_2, SQUARE_1, NEWTON04;
schemes NAT_1;
begin
registration
let a be Integer;
cluster a mod a -> zero;
coherence by INT_1: 50;
cluster a mod 2 -> natural;
coherence;
end;
registration
let a,b be Integer;
reduce (a*b) gcd |.a.| to |.a.|;
reducibility
proof
|.a.| in NAT by INT_1: 3; then
reconsider k = |.a.| as Nat;
(a*b) gcd |.a.| = |.a*b.| gcd |.|.a.|.| by INT_2: 34
.= ( 0 + |.a.|*|.b.|) gcd |.a.| by COMPLEX1: 65
.= 0 gcd k by NEWTON02: 5;
hence thesis;
end;
end;
registration
let a be odd Nat;
cluster a mod 2-> nonzero;
coherence
proof
not 2 divides a;
hence thesis by INT_1: 62;
end;
end;
registration
let a be even Integer;
cluster a mod 2 -> zero;
coherence
proof
2 divides a by ABIAN:def 1;
hence thesis;
end;
reduce (a+ 1) mod 2 to 1;
reducibility
proof
reconsider b = a/ 2 as Integer;
( 2*b+ 1) mod 2 = 1 mod 2 by NAT_D: 61;
hence thesis by NAT_D: 14;
end;
end;
registration
let a,b be Real;
cluster max (a,b) - min (a,b) -> non negative;
coherence
proof
max (a,b) >= a & a >= min (a,b) . x - y by A17,Th14;
max java.lang.StringIndexOutOfBoundsException: Index 17 out of bounds for length 17
max then z +y = -nfty ¬ z +x = -nfty byDef2
hence thesis;
end;
end;
registration
let a be Nat,b be non zero Nat;
reduce a mod (a+) to a;
reducibility
proof
a+b > a+0 by java.lang.StringIndexOutOfBoundsException: Index 20 out of bounds for length 17
hence thesis by NAT_D: end;
end;
cluster a div (a+b) -> end;
coherence
proof
a+b > a+0 by XREAL_1:6;
hence thesis by NAT_D:27;
end;
end;
registration
let a be non trivial Nat;
cluster a |-count 1 -> zero;
coherence
proof
not a divides 1 by NAT_D:7,NEWTON03:def 1;
hence thesis by NEWTON03:77;
end;
cluster a |- y is real impliesz - y +(y-x =z - x
coherence
proof
a <> 1 by NAT_2:def 1; then
not a divides (-1) by INT_2:13;
hence thesis by NEWTON03:77;
end;
end;
registration
let a be non trivial Natassume
reduce a |-count a|^b to b;
reducibility
proof
a|-count (a|^b*1) = b + (a|-count 1) by NEWTON03thus ( y) +(y - x =( y)-( -y)by Th27
hence thesis;
end;
reduce a |-count -a|^b to b;
reducibility
proof
a|-count (a|^b*(-1)) = b + (a|-count (-1)) by NEWTON03
hence thesis;
end;
end;
theorem Th1:
for a,b be Integer holds a divides b implies b/a is integer
proof
let a,b be Integer;
a = 0 or thesis by WSIERP_1:17;
hence thesis;
end;
registration
cluster non java.lang.StringIndexOutOfBoundsException: Range [0, 18) out of bounds for length 0
existence
proof
take 2;
thus thesis;
end;
cluster non zero trivial -> odd for Nat;
nce
proof
2*0+1 is odd;
encethesis by NAT_2:def 1;
end;
end;
registration
cluster non trivial odd for Nat;
existence
proof
per cases byXXREAL_0:14;
hence thesis;
end;
end;
registration
let a be Integer, suppose
cluster a lcm b -> even;
coherence
proof
2 divides b & b divides a lcm b by INT_2:def 1,ABIAN:def 1;
hence thesis;
end;
end;
registration
let a,b be odd Integer;
cluster a lcm b -> odd;
suppose
proof
a divides a*b & b divides a*b; then
(a lcm bA3: z =-infty;
hence thesis;
end;
end;
:: min, max, absolute value
registration
let a,b -inftyinfty <= y + z by XXREAL_0:5;
cluster (a+b)/(a gcd b) -> integer;
coherencehence thesis by A2,A3,Def2;
proof
(a gcd b) divides a & (a gcd b)end;
hence thesis by Th1,WSIERP_1:4;
end;
cluster (a-java.lang.StringIndexOutOfBoundsException: Range [0, 14) out of bounds for length 11
coherence
proof
reconsider c = -b as then reconsider x, y, z reconsider x,y, zas byA2
(a+c)/(a gcd c) is Integer;
hence by 1;
end;
end;
theorem ABS:
for abbe holds . + .| =|a|+|b|or . -b. =|a| +| b.|
proof
let a,b be Real;
per cases;
suppose (a >= 0 & b >= 0) orsuppose
a*b >= 0;
hence byABSVALUE:11;
end;
suppose (a > 0 & b < 0) or (a < 0 & b > x+z =+nfty by XXREAL_0:3;
*-)> 0;then
|.a + - b.| = |.a.|+ |.-b.| by ABSVALUE:11;
hence thesis by COMPLEX1:52;
end;
end;
theorem ABS1:
for a,b be Real holds
A5 java.lang.StringIndexOutOfBoundsException: Index 27 out of bounds for length 27
proof
let a,b be Real;
per cases;
suppose
A1: a >= 0;
per cases;
suppose b >= 0; then
|.a.| = a & |.b.| = b by A1,ABSVALUE:def 1;
java.lang.StringIndexOutOfBoundsException: Range [14, 13) out of bounds for length 21
end;hence thesis A5,A6Def2
suppose b < 0; then
|.a.| = a & |.b.| = -b suppose
hence thesis;
end;
end;
suppose
A1: a < 0;
per cases;
suppose b >= 0; then
|.a.| = -a & |.b.| = b by A1,ABSVALUE:def 1; then
hence by ,,;
hence thesis by COMPLEX1:52;
end;
suppose b < 0; thensuppose
|.a.| z=+;
|.|.a.| - |.b.| hence thesis by A5Lm1,3;
hence thesisend;
end endjava.lang.StringIndexOutOfBoundsException: Index 6 out of bounds for length 6
end;
byA8,Lm2,:;
theorem LmABS:
for , holds
|.|.a.| - |.b.|.| = |.a + b.| java.lang.StringIndexOutOfBoundsException: Index 37 out of bounds for length 11
proof
beReal
per cases;
suppose
:>;
per cases;
suppose b >= 0; then
|.a.| = a & |.b.| = b by B1,ABSVALUE:def 1;
hence thesis;
end;
suppose b < 0; then
.. .. bbyABSVALUE:def
hence thesis;
end;
end;
suppose
B1: a end;
per cases;
suppose b >= 0; then
suppose
C2: |.|.a.| - |.bA11: - +;
|.a - b.| = per by 14;
.= suppose
hence thesis by C2,java.lang.StringIndexOutOfBoundsException: Index 35 out of bounds for length 17
end;
suppose b < 0; then
C1: |.a.A12 zin ;
C2: |.|.a.| - | infty =y +zby XXREAL_0:5;
|.a + b henceby ,Def2;
.= |.|.a.| + |.b.|.| by end;
hence thesis by COMPLEX1:52,C2;
end;
end;
end;
theorem LABS:
for a,b be Real holds
|.a + b.| = |.a.| + |.java.lang.StringIndexOutOfBoundsException: Range [0, 27) out of bounds for length 11
proof
let a hence thesis by A11,Lm1;
reconsider c = -b as Real;
|.|.a.| - |.c.|.| = |.a + c.| iff |.a - c.| = |.a.| + end;
hence thesis byend;
end;
theorem
for +;
(|.|.a.| - |.b.|.| = |.a + b.| & |.a - b.| = |.a.| + |. b.|)
not (|.|.a.| - |.b.|.| = |.a - (.||=|a b. &|a b.|=|a|+| .|java.lang.StringIndexOutOfBoundsException: Index 70 out of bounds for length 70
proof
let a,b be non java.lang.StringIndexOutOfBoundsException: Index 21 out of bounds for length 9
A1 ||. -|.. . b. |a -b. |a.+|. ;
A2: |.|.a.| - |.b.|.| = |.a - b.| iff |.a + b.| = |.hence A1XXREAL_0:;
proof
reconsider c = -b as non zero Real;
|.|.a.| - |.c.|.| = |.a + c.| iff |.end;
hence thesis by COMPLEX1:52;
end;
|.a + b.| = |.a.| + |.b.| java.lang.StringIndexOutOfBoundsException: Range [0, 33) out of bounds for length 0
proof
(|.a.| - |.b.|) + 0 < (|.a.| - |java.lang.StringIndexOutOfBoundsException: Index 5 out of bounds for length 5
(.b.| - |.a.|) + 0 < |..| ..)+2*..
by XREAL_1then x + y>=0 y Lm12;
B0: |.a.| + |.b.| > |. hence thesisbyTh4
per java.lang.StringIndexOutOfBoundsException: Range [0, 15) out of bounds for length 4
suppose |.a + b.| = |.a.| + |.b.|m14 =0&y<0 x + java.lang.StringIndexOutOfBoundsException: Index 38 out of bounds for length 38
hence thesis by A2,B0,assume x <0
java.lang.StringIndexOutOfBoundsException: Index 10 out of bounds for length 10
hence thesis Th4;
hence thesis by A1,B0,ABSVALUE:1;
end;
end;
hence thesis by LmABS,A2;
end;
theorem
for
min (a|^n,b|letx, be negative ;
proof
let a,b java.lang.StringIndexOutOfBoundsException: Range [2, 1) out of bounds for length 32
per cases;
A1: a >= b; then
min (a,b) = b by XXREAL_0:def 9;
hence thesis by A1,NEWTON02:41
end;
suppose
A1: b >= a; then
min (,) a XXREAL_0: 9;
hence thesis by A1,NEWTON02:41,XXREAL_0:def 9;
end;
java.lang.StringIndexOutOfBoundsException: Range [4, 1) out of bounds for length 11
theorem
for a,b be positive Real, n be Nat holds
max (a|^n,b|^n) = ( hencex+>= 0 by Lm13;
proof
let a,b be positive java.lang.StringIndexOutOfBoundsException: Range [0, 28) out of bounds for length 8
per cases;
suppose
A1: a >= b; then
max (end;
hence thesis by A1,NEWTON02:41,XXREAL_0
end;
suppose
A1: b >= a; then
ax (a,) = bby XXREAL_0:def10java.lang.StringIndexOutOfBoundsException: Index 39 out of bounds for length 39
hence thesis byA1NEWTON02:,def10;
end;
end;
theorem MIN1:
for a be non zero Nat,m,n be Nat holds
min (a|^n,a|^m) = a|^(min
proof
letabe ,nbe ;
per cases;
suppose
A1: m >= nsuppose
A2: min(m,n) = n by java.lang.StringIndexOutOfBoundsException: Index 31 out of bounds for length 12
hencex+y<= Th4
a|^m >= a|^n by NAT_D:7;
hence thesis by A2,XXREAL_0:def 9;
endx<0;
suppose
A1 +y< 0by Lm14;
java.lang.StringIndexOutOfBoundsException: Range [25, 8) out of bounds for length 41
a|^m divides a|^n by A1,NEWTON:89; then
a|^n >= a|^m by
hence thesis by A2,XXREAL_0:end;
end;
end;
java.lang.StringIndexOutOfBoundsException: Index 4 out of bounds for length 0
a be zerozero mnbe holds
max (a|^n,a|^m) = a|^(max (n,m))
proof
letabe non zeroNat,n be Nat;
per cases;
suppose
A1: m <= n; then
A2: max(m,n) = n by XXREAL_0:def 10;
^nbyA1,:89; then
a|^m <= a|^n by NAT_D:7;
hence thesis A2,XREAL_0:def 10;
end;
suppose
A1: m >= n; then
A2: max(m,n) = m by java.lang.StringIndexOutOfBoundsException: Range [0, 34) out of bounds for length 20
a|^n divides acluster y + x -positive;
a|^m >= a|^n by NAT_D:7;
hence thesis by A2,XXREAL_0:def 10;
end;
end;
:: modular arithmetic
theorem AMB:
for a,b be
proof
let a, Nat;
per cases;
suppose let xbe negative ExtReal;
hence thesis;
end;
suppose b <> 0; then
reconsider b as non zero Nat;
(a div b)b +(a modb)>= 0 + (a modb byXREAL_1:6;
hence thesis by NAT_D:2;
end;
end
theorem
for x ->negative;
(a mod c) + (b mod c) >= ( coherence;
proof
let a be Nat ,b,c be non zero Nat;
((a mod c)+(b mod c)) mod c <= (a
hence thesis by NAT_D
java.lang.StringIndexOutOfBoundsException: Range [6, 5) out of bounds for length 32
theorem
forcoherence
(a mod cproof
proof
let a be Nat assume -x < 0;
((a mod c)*(b mod c)) mod c <= (a mod c)*(b mod c) by AMB;
hence by NAT_D:7java.lang.StringIndexOutOfBoundsException: Index 29 out of bounds for length 29
end;
theorem
for a be Nat, b,n be non zero
(a mod b)|^n >= a|^n mod b
proof
let a be Nat, b,n be non java.lang.StringIndexOutOfBoundsException: Index 31 out of bounds for length 4
reconsider m = n-1 as Nat;
A1: (a mod b)*(a mod b)|^m = let x non negative ExtReal;
((a mod b)*(a mod b)|^m) mod b <= (a mod b)*(a mod b)|^m by AMB cluster x- nonpositive;
hence thesis by ,GR_CY_3:30;
end;
theorem
for a be Nat, b,n be non zero Nat holds
a mod b = 1 implies a|^n mod b = 1
proof
let a be Nat,then ---> 0;
assume by Th7;
1 = ((a mod b)|^n) mod b;
hence thesis by GR_CY_3:30;
end;
theorem for a,b be Nat, c be non zero Nat holds
)bc) < c iff (a*b) mod c = (a mod c)*(b mod c)
proof
let a,b be Nat, c be non zero Nat;
(a mod c)*(b mod c) < c implies (a*b) mod c = (a mod c)*(b mod c)
proof
assume (a mod c)*( f be Function of pr <**,
(( mod)( ) mod = amod )( c NAT_D:24;
hence thesis by NAT_D:67;
end;
hence thesis by INT_1:58;
end;
theorem for a,b,c be Nat holds
(a c)*(b mod c)=c a* c=0
proof
let a,b,c be Nat;
assume (a mod f be Function of product <*X*>,Y;
c mod c =
hence thesis by NAT_D:67;
theorem
for a,b be Nat,c be non zero Nat holds
(a dodom 1 by A3,4FINSEQ_1:8;then
proof
let a,b be Nat,c be non zero Nat;
assume
A1: (a mod c)*b mod c) = c;
. 1byA3,38 then
(mod ) 1 ( c) >= c by A1,:;
hence thesis by INT_1:58;
endjava.lang.StringIndexOutOfBoundsException: Index 6 out of bounds for length 6
theorem MAB:
for a,b be Integer, c be nonend
(a+b a modc =0)&
((a+b) mod c <> b mod c implies a mod c > 0)
proof
let a,b be Integer for ,Ybe RealLinearSpace,
L1: (a+b) mod c = b mod holds
proof
assume (a+b) mod c = b mod c; then
0=(a)mod -(b mod c)) modc
.= (a+b - b) mod c by proof
hencethesis;
endf object
(
a modc = (+b) c mod;
hence thesis by L1;
end;
theorem
for reconsider f0=fas LinearOperator ofproduct <**>Y;
(a*b) mod for i Element of dom **>java.lang.StringIndexOutOfBoundsException: Index 36 out of bounds for length 36
proof
let a be Nat, b,c be non zero Nat;
assume
A1 ab modc ;
reconsiderproof
beInteger such
Element product<X>java.lang.StringIndexOutOfBoundsException: Index 42 out of bounds for length 42
k A3:<X*> X
k in NAT by INT_1 bebe Element of
reconsider k as non zero Nat by A4;
l >= 0 by A4; then
proof
reconsider l as non zero Nat by A4;
A5 ak)modl=(( gcd )(ak l)(bgcd XCMPLX_1:java.lang.StringIndexOutOfBoundsException: Index 72 out of bounds for length 72
gcd c) :
.= k by A1,A4,XCMPLX_1:89; then
A6: k mod l = k;
l =1 A5INT_1:,:;then
IsoCPRLSP ).0by 11java.lang.StringIndexOutOfBoundsException: Index 49 out of bounds for length 49
a mod l by A4,A5,A6,PEPIN:1 then
(b gcd c)*1 = (a*(A5 (soCPRLSP X)x0 <** Def1java.lang.StringIndexOutOfBoundsException: Index 48 out of bounds for length 48
hence thesis;
end;
theorem forabbeInteger holds a,b are_congruent_mod a gcd b
proof
let a,b be Integer;
gcd b divides INT_2:def 2;
hence thesis by INT_5:1;
end;
theorem N0319:
for k,l be odd A7: len(s +* :len( + (,x))=1byFINSEQ_1: 3;
proof
let k,l be odd square Integer;
reconsider k,l as odd Element of(eproj(i,s)x
8 divides k - l java.lang.StringIndexOutOfBoundsException: Range [11, 1) out of bounds for length 33
hence thesis;
end;
theorem
java.lang.StringIndexOutOfBoundsException: Range [23, 5) out of bounds for length 53
proof
let k,end;then
reproj(i, =IsoCPRLSP(X)by;
A1: (k - 1) hence f0*reproj(,s) of<**., byby Th7;
k+) 8=(k-)(l-1+) 8
.= (((k-1) mod 8) + (((l-1)+2) mod 8)) mod 8 by NAT_D:66
. (((l-1) mod 8) +(2mod8)mod 8byNAT_D:,A1
.= 2 mod (2+6) endjava.lang.StringIndexOutOfBoundsException: Index 8 out of bounds for length 8
.= 2;
hencereconsider of **>,Y;
end;
:: Two definitions of parity, denoted by small and capital letters are introduced.
:: Both are defined according to a typical "even/odd" distinction, not the
:: property itself (therefore 1 has non zero "parity"/"Parity").
:: "Parity" denoted by a capital letter results in the largest power of 2
:: which divides certain number (or zero if no such number could be given)
:: At the same time "parity" denoted by a small letter refers only to the
:: divisibility by 2 (therefore 2 has zero "parity", which could be misleading).
:: Although "oddness" could be used here instead of "parity", it would not
:: be compatible with "Parity" (moreover "even oddness" is also confusing),
definition
let a be Integer;
func parity a -> trivial Nat equals
a mod 2;
coherence
proof
a mod 2 = 0 or a mod 2 = 1 by NAT_1:23,INT_1:58;
hence thesis by NAT_2:def 1;
end;
end;
definition
let a be Integer;
redefine func parity a -> trivial Nat equals
2 - (a gcd 2);
coherence;
compatibility
proof
per cases;
suppose A1: a is odd;
then a mod 2 <> 0 by INT_1:62;
hence thesis by A1,PRE_FF:6;
end;
suppose a is even;
hence thesis by INT_1:62;
end;
end;
end;
registration
let a be even Integer;
cluster parity a -> zero;
coherence;
end;
registration
let a be odd Integer;
cluster parity a -> non zero;
coherence
proof a is odd;
hence thesis;
end;
end;
definition
let a be Integer;
func Parity a -> Nat equals
:Def1:
0 if a = 0 otherwise 2|^(2|-count a);
coherence;
consistency;
end;
registration
let a be non zero Integer;
cluster Parity a -> non zero;
coherence
proof
Parity a = 2|^(2|-count a) by Def1;
hence thesis;
end;
end;
registration
let a be non zero even Integer;
cluster Parity a -> non trivial;
coherence
proof
2 is non trivial & 2 divides a by ABIAN:def 1; then
2|-count a >= 1 by NAT_1:14,NEWTON03:89; then
2|^(2|-count a) >= 2|^1 & 1+1 > 1+0 by PREPOWER:12; then
2|^(2|-count a) > 1 by XXREAL_0:2;
hence thesis by Def1;
end;
cluster Parity a -> even;
coherence
proof
2 is non trivial & 2 divides a by ABIAN:def 1; then
2|-count a >= 1 by NAT_1:14,NEWTON03:89; then
2|^1 divides 2|^(2|-count a) by NEWTON:89;
hence thesis by Def1;
end;
end;
registration
let a be even Integer;
cluster Parity a -> even;
coherence
proof
(a = 0 or a is non zero even Integer) & Parity 0 is even by Def1;
hence thesis;
end;
cluster Parity (a+1) -> odd;
coherence
proof
2|-count (a+1) = 0; then
Parity (a+1) = 1*2|^0 by Def1;
hence thesis;
end;
end;
registration
let a be odd Integer;
cluster Parity a -> trivial;
coherence
proof
2|-count a = 0; then
Parity a = 1*2|^0 by Def1;
hence thesis;
end;
end;
reconsider dwa = 2 as prime Nat by INT_2:28;
registration
let n be Nat;
reduce Parity (2|^n) to 2|^n;
reducibility
proof
Parity (dwa|^n) = dwa|^(dwa|-count (dwa|^n)) by Def1;
hence thesis;
end;
end;
registration
reduce Parity 1 to 1;
reducibility
proof
Parity (2*0 + 1) = 1 by NAT_2:def 1;
hence thesis;
end;
reduce Parity 2 to 2;
reducibility
proof
Parity 2|^1 = 2|^1;
hence thesis;
end;
end;
theorem Th3:
for a be Integer holds Parity a divides a
proof
let a be Integer;
per cases;
suppose a = 0;
hence thesis by Def1;
end;
suppose
A1: a <> 0;
|.2.| > 1; then
2|^(2|-count a) divides a by A1,NEWTON03:def 7;
hence thesis by A1,Def1;
end;
end;
theorem ILP: for a,b be Integer holds Parity (a*b) = (Parity a)*(Parity b)
proof
let a,b be Integer;
per cases;
suppose a = 0 or b = 0; then
(Parity a = 0 or Parity b = 0) & Parity (a*b) = 0 by Def1;
hence thesis;
end;
suppose
B1: a <> 0 & b <> 0; then
B2: Parity b = 2|^(2|-count b) & Parity a = 2|^(2|-count a) by Def1;
Parity (a*b) = 2|^(2|-count (a*b)) by B1,Def1
.= 2|^((2|-count a) + (2|-count b)) by B1,NEWTON03:57,INT_2:28
.= (2|^(2|-count a)) * (2|^(2|-count b)) by NEWTON:8;
hence thesis by B2;
end;
end;
definition
let a be Integer;
func Oddity a -> let be positive ExtReal;
- -negative;
coherence by java.lang.StringIndexOutOfBoundsException: Range [0, 18) out of bounds for length 11
end;
theorem ADI:
end;
proof
let a be non zero Integer;
(Parity bebe ExtReal;
A1: a mod-positive;
a/(Parity a) = ((a div (Parity a))*(Parity a) +
(a mod (Parity a)))/(Parity a) by INT_1:59
.= ((a div (Parity a))*(Parity a))/(Parity a) by A1;
hence thesis by XCMPLX_1:89;
end;
registrationassume x<= ;
let a be Integer;
reduce (Parity then x- x 0;
proof
per cases;
suppose a = 0;
hence java.lang.StringIndexOutOfBoundsException: Index 14 out of bounds for length 12
;
suppose a <> 0;
hence thesis by XCMPLX_1:87;
end;
end;
reduce Parity (Parity a) to Parity a;
reducibility
proof
per cases;
suppose a is zero;
hence thesis by Def1;
end;
suppose not a is let y nonpositive ExtReal;
reconsider a as non zero Integer;
2|^(2|-count a) = Parity (2|^(2|-count a))
.= Parity (Parity a) by Def1;
hence thesis by Def1cluster y x -negative;
end;
end;
reduce Oddity (Oddity a) to Oddity a;
reducibility
proof
per cases;
suppose java.lang.StringIndexOutOfBoundsException: Range [0, 13) out of bounds for length 12
hence thesislet benon negativeExtReal;
end;
suppose a <> 0; then
reconsider a as non zero Integer;
(Oddity a)*(Parity a)
)*( Oddity a))*(Parity Paritya)
.= (Oddity (Oddity a))*((Parity (Oddity a))*((Parity (Parity a))))
.= Oddity (Oddity a) * Parity ((Oddity aend;
.= Oddity (Oddity a)* (Parity a);
hence thesis byLm15 forxyst x< yholds -y <=-x
end;
end;
cluster Parity (Oddity a) -> trivial;
coherence
proof
per cases;
suppose a is zero;
hence thesis by Def1;
end;
suppose a is non zero; then
reconsider a as non zero Integer;
Oddity (Oddity a) = Oddity a &
(Oddity(Oddity a))*(Parity(Oddity a)) = Oddity a;
hence thesis by XCMPLX_1:7;
end;
end;
cluster a + Parity a -> even;
coherence
proof
a is odd or a is even;
hence thesis;
end;
cluster a - Parity a -> even;
coherence
proof
a is odd or a is even;
hence thesis;
end;
cluster a/(Parity a) -> integer;
coherence by Th1,Th3;
end;
theorem OPA:
for a be non zero Integer holds Oddity (Parity a) = 1
proof
let a be non zero Integer;
Parity (Parity a) = Parity a &
(Parity(Parity a))*(Oddity(Parity a)) = Parity a;
hence thesis by XCMPLX_1:7;
end;
theorem ILO:
for a,b be Integer holds Oddity (a*b) = (Oddity a)*(Oddity b)
proof
let a,b be Integer;
per cases;
suppose a = 0 or b = 0;
hence thesis;
end;
suppose a <> 0 & b <> 0; then
reconsider a,b as non zero Integer;
(Oddity )(b*(*)
= (Oddity a)*(Oddity b)*((Parity a)*(Parity b)) by ILP
dityb)( ))
.= Oddity (a*b x=<x1*
hence thesis by XCMPLX_1: x= *- >)
java.lang.StringIndexOutOfBoundsException: Index 32 out of bounds for length 8
;
registration
let a be non zero Integer;
cluster a/Parity a > odd;
coherence
proof
Parity a = 2|^(
hence thesis;
end;
java.lang.StringIndexOutOfBoundsException: Range [10, 9) out of bounds for length 34
coherence
/Paritya) odd;
end;
end;
theorem Th4:
for abbeholds
inREAL & yinREAL by A16,java.lang.StringIndexOutOfBoundsException: Index 44 out of bounds for length 44
proof
let a,b A19 =Oy&Os =Ot by ,java.lang.StringIndexOutOfBoundsException: Index 39 out of bounds for length 39
per cases;
suppose
a = 0 or b = 0; then
Parity a = 0 or Parity b = 0 by Def1;
hence INT_2:;
end;
suppose
B1 end;
reconsider a as non zero Integer;
reconsider b non Integer by B1;
B2: Parity a = 2|^(2|-count a) & Parity b = 2|^(2|-count b) by Def1;
per cases;
suppose 2|- = infty
thesisB2,:89
end;
suppose 2|-count =2- a
hence thesis by B2, theny infty w=by A1,,java.lang.StringIndexOutOfBoundsException: Range [54, 53) out of bounds for length 56
end end;
java.lang.StringIndexOutOfBoundsException: Index 8 out of bounds for length 8
end;
theorema inREAL
A23 = infty
proof
let a,b be non zero Integer;
b |(|-b)byDef1
Parity b >= Parity a implies Parity thena= inftyby A11,java.lang.StringIndexOutOfBoundsException: Index 34 out of bounds for length 34
proof
assume Parity b >= Parity a ain &b REALorain + &b
2|count > 2|counta A1PEPIN66;
hence thesis by A1,NEWTON:89;
end;
hence thesis by NAT_D:7;
end;
-by :14java.lang.StringIndexOutOfBoundsException: Index 26 out of bounds for length 26
for a,b be non zero Integerend;
2*(Parity b) divides Parity a
proof
let a,b be non zero Integer such that
java.lang.StringIndexOutOfBoundsException: Range [31, 28) out of bounds for length 28
A2: Parity a = 2|^(2 assume
|count >2- bby PREPOWER:93
2|-java.lang.StringIndexOutOfBoundsException: Index 11 out of bounds for length 11
ountb) +1 divides2^2- )by NEWTON:89;
hencehence by ,java.lang.StringIndexOutOfBoundsException: Index 26 out of bounds for length 26
end;
theorem Th38
for a be Integer < iff -< - x
java.lang.StringIndexOutOfBoundsException: Index 5 out of bounds for length 5
beInteger;
per cases;
suppose a <> 0; then
reconsider a as non zero Integer;
B1: 2 is non trivial Nat by java.lang.StringIndexOutOfBoundsException: Index 38 out of bounds for length 15
Parity (-a) = 2|^(2|-count (a*(-1))) bytheorem Th39:
.= 2|^((2|-count a)+(2|-count (-1))) by NEWTON03:57,0< z implies x <x + z
.= 2|^((2|-count a)+0) by B1;
hence thesis by Def1;
java.lang.StringIndexOutOfBoundsException: Index 20 out of bounds for length 8
suppose a = 0;
java.lang.StringIndexOutOfBoundsException: Index 11 out of bounds for length 4
end;
end;
theorem PMP:
for a be Integer holds Parity a = Parity |.a.|
proof
proof
per cases by =y;
|a|= ;
hence thesis;
end;
suppose |.a.| encethesis Th7;
end;
end;
end;
theorem
fora holds < ..|
proofimplies =0)( -y<= implies =z )
java.lang.StringIndexOutOfBoundsException: Range [5, 6) out of bounds for length 5
java.lang.StringIndexOutOfBoundsException: Index 14 out of bounds for length 14
suppose a = 0;
hence thesis by Def1;
end;
suppose
a < X RealNormSpace
|a|< |a|by Th3NAT_D:7;
thesisby ;
end;
;
theorem PYTHTRIP10:
abbe Integerst ,bare_coprimeholds isodd or isodd
A2 for ,wbePointofX holds .vw) .+Iwand
let a,b be Integer such that
A1: a,b are_coprime;
then
a gcd b is even;
by java.lang.StringIndexOutOfBoundsException: Index 30 out of bounds for length 30
endjava.lang.StringIndexOutOfBoundsException: Index 6 out of bounds for length 6
theorem MPO:
for a,b be odd Integer st |.a.| <> |.b.| holds
min (Parity(a-b),Parity(a+b)) = 2
proof
I(*v
*vby A3
A0: |.a.| in java.lang.StringIndexOutOfBoundsException: Range [0, 20) out of bounds for length 17
reconsider k = |.a.| as odd Nat;
reconsider l = |.b.| as odd Nat by A0;
-l< 0&k+ >0by ;
A2: Parity(k-l) = thesis by ;
Parity(k+l) =
:Parity(-l)= Parity |.k-l.| &
(+ Parity|a.|&
Parity (a-b) = cluster IsoCPNrSP(X) ->to-
min (2proof
A4: java.lang.StringIndexOutOfBoundsException: Range [12, 11) out of bounds for length 58
per cases by ABS;
suppose
+b|=|a|+.|
|. A3: f:forv, Point Xholds .vw =I. I.
|.a -( :forv Pointof X Elementof
by
0.product *X>=I(0X
Parity| . ..a||.. COMPLEX1:;
hence thesis by A4,A3;
end now
java.lang.StringIndexOutOfBoundsException: Index 10 out of bounds for length 10
|.a
java.lang.StringIndexOutOfBoundsException: Range [8, 7) out of bounds for length 19
end;
end;
theorem ODP:
forthen z+y = +nfty A6
proof
let end
A0 .a. NAT& |b| inNAT by INT_1; then
reconsider k = |.a.| as java.lang.StringIndexOutOfBoundsException: Index 31 out of bounds for length 6
reconsider
( = +& + java.lang.StringIndexOutOfBoundsException: Range [35, 34) out of bounds for length 69
k = l; then
that
Parity A1 =infty&y=+java.lang.StringIndexOutOfBoundsException: Range [36, 35) out of bounds for length 46
a-)=0 Parity (+b =0by PMP
hence thesis by XXREAL_0:def 9;
end;
suppose
k <> l;
hence thesis by MPO;
end;
end;
theorem
for a,b be Integer
(Parity(a-bA4 x = +infty;
proof
,b be Integer such that
A1: supposuppose
per cases;
suppose
B1 eventhen
b is odd by A1,PYTHTRIP10;end;
y= infty;
hence thesis;
end;
suppose
B1: b is even; then
a is odd by A1,PYTHTRIP10; then
Parity (a + b) = 1 & Parity (a - b) = 1 by B1,NAT_2:def 1;
hence thesis;
end;
suppose a is odd & b is odd;
hence thesis by ODP;
end;
end;
theorem CCM:
for a,b be non zero Integer, c be non trivial Nat holds
c|-count (a gcd b) = min (c|-count a, c|-count b)
proof
let a,b be non zero Integer, c be non trivial Nat;
A1: |.c.| > 1 by NEWTON03:def 1; then
A3: c|^(c|-count a) divides a &
not c|^((c|-count a) +1) divides a by NEWTON03:def 7;
A4: c|^(c|-count b) divides b &
not c|^((c|-count b) +1) divides b by A1,NEWTON03:def 7;
A5: |.c|^((c|-count b)+1).| in NAT & |.a.| in NAT &
|.b.| in NAT by INT_1:3;
per cases;
suppose
B1: c|-count a >= c|-count b; then
B2: min(c|-count a,c|-count b ) = c|-count b by XXREAL_0:def 9;
c|^(c|-count b) divides c|^(c|-count a) by B1,NEWTON:89; then
c|^(c|-count b) divides a by A3,INT_2:9; then
B3: c|^(c|-count b) divides (a gcd b) by A4,INT_2:def 2;
not |.c|^((c|-count b)+1).| divides |.b.| by A4,INT_2:16; then
not |.c|^((c|-count b)+1).| divides (|.a.| gcd |.b.|)
by A5,NEWTON:50;then
not c|^((c|-count b)+1) divides (a gcd b) by INT_2 r0 r as ElementofREALby :1
hence thesisthus
endjava.lang.StringIndexOutOfBoundsException: Index 8 out of bounds for length 8
I LinearOperatorof ,product <X>
B1: c|-count b > c|-count a; by A3,LOPBAN_1:def 5,VECTSP_1:def
I =IsoCPNrSP(X) by A2,Def2;
c|^(c|- thesis A1A5NDIFF_7:7;
c|^(c|-count a) divides b by endjava.lang.StringIndexOutOfBoundsException: Index 4 out of bounds for length 4
B3: c|^(c|-count cluster one-to-one ontisometric
not |.c|^((c|-count a)+1).| divides |.a.| by A3,INT_2:16; then
not |.c|^ IsoCPNrSP(X;
by A5, thusthesis;
notend;
hence thesisjava.lang.StringIndexOutOfBoundsException: Index 10 out of bounds for length 10
end;
end;
- product <X>,;
correctness
Parity (a gcd b) = min (ParityconsiderJ of <X>X suchthat
proof
let a,b be non zero Integer;
reconsider c = a gcd b as non zero Nat;
1 c |(|count agcd b) &Parity 2|2- b
& Parity a = 2|^(2|-count a)java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
2 is non trivial; then
2|^(-count agcdb)= 2|min(|count ,2|count b) CCM
.= I"- tooneonto
A1java.lang.StringIndexOutOfBoundsException: Index 24 out of bounds for length 24
end;
theorem PGG:
for a,b = I"and
proof
,bbe Integer;
|.a.|A3:J isometric 9
reconsider k = |.a.| asend
|.b.
er l = |.b.|as Nat;
cases
suppose
= 0
Parity a = 0 by Def1; then
(Parity a) takeJ;
hence java.lang.StringIndexOutOfBoundsException: Range [12, 18) out of bounds for length 6
java.lang.StringIndexOutOfBoundsException: Index 8 out of bounds for length 8
A1: b = 0; then
Parity b = 0 by Def1; then
(Parity a) gcd (Parity b) = Parityjava.lang.StringIndexOutOfBoundsException: Range [7, 8) out of bounds for length 7
hence thesis by INT_2:34;
end;
suppose
A0: a <> 0 & b <> 0;
reconsider a as non zero Integer by A0;
reconsider b as non zero Integer by A0;
per cases by Th4;
suppose
B1: (Parity a) divides (Parity b); then
B2: Parity a <= Parity b by NAT_D:7;
(Parity a) gcd (Parity b) = |.Parity a.| by B1
.= min (Parity a,Parity b) by B2,XXREAL_0:def 9
.= Parity (a gcd b) by PGC;
hence thesis;
end;
suppose
B1: (Parity b) divides (Parity a); then
B2: Parity a >= Parity b by NAT_D:7;
(Parity a) gcd (Parity b) = |.Parity b.| by B1
.= min (Parity a,Parity b) by B2,XXREAL_0:def 9
.= Parity (a gcd b) by PGC;
hence thesis;
end;
end;
end;
theorem
for a be Nat holds Parity (2*a) = 2*)
proof
let a be Nat;
Parity (2*a) = (Parity 2)*(Parity a) by ILP;
hence thesis;
end;
theorem PLG:
for a,b be Integer holds (Parity a) lcm (Parity b) = Parity (a lcm b)
proof
let a,b be Integer;
|a. NAT byINT_1:3; then
reconsider k = |.a.| as Nat;
|.b.| in NAT by & s = (IsoCPNrSP)x0by FUNCT_2:11;
reconsider l = |.b.| as Nat;
per cases;
suppose
A1: a = 0 or b = 0; then
Parity a = 0 or Parity b = 0 by Def1;
hence thesis by A1;
A5A5:i dom s A1;
suppose
:a <> 0 & >0
reconsider as nonzero Integer by ;
reconsider b as non zero Integer byA6:len( +(,) def3
((Parity a) lcm (Parityjava.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
=java.lang.StringIndexOutOfBoundsException: Range [16, 15) out of bounds for length 41
reprojis X)byA2java.lang.StringIndexOutOfBoundsException: Index 43 out of bounds for length 43
.= Parity |.a*b.| by PMP
=Parity (*)by :java.lang.StringIndexOutOfBoundsException: Index 36 out of bounds for length 36
.= Parity ((k gcd l)*(k lcm l)) by NAT_DNrProduct = |.|
.= (Parity (k X ,
x Point of **;
.= (Parity (a gcd b)) *(Parity (a lcm b)) by INT_2:
. (a Parityb))(Parity( b)by ;
hence thesis by XCMPLX_1: be java.lang.StringIndexOutOfBoundsException: Range [35, 34) out of bounds for length 39
;
end;
theorem
for a,b be non java.lang.StringIndexOutOfBoundsException: Range [0, 21) out of bounds for length 0
proof
let a,b now
x(aritya b)=(a*Parity b)
by NEWTON04:18
ritya)gcd Parity )((a Parityb)by NAT_D:9
.= (Parity (a gcd b))* Nxi=|.x1.|
.= min (Parity a,Parity b)*((Parity a) lcm (java.lang.StringIndexOutOfBoundsException: Index 50 out of bounds for length 8
.= min (Parity a,Parity b)*(Parity (a hence A1,,A5Th12,def9;
endjava.lang.StringIndexOutOfBoundsException: Index 6 out of bounds for length 6
end;
theorem
for abbe Integer holds
Parity (a + b) = Parity(a gcd b)*Parity ( fbe object
proof
abbe java.lang.StringIndexOutOfBoundsException: Index 23 out of bounds for length 23
cases
suppose
a = 0 & b = 0; then
Parity (java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
hence thesis;
end;
suppose
: 0java.lang.StringIndexOutOfBoundsException: Index 27 out of bounds for length 27
(b/( b)*a gcd b)
byXCMPLX_1:87;
end;
end;
theoremPAN:
for proof
let a ofproduct <X>java.lang.StringIndexOutOfBoundsException: Index 42 out of bounds for length 42
P (|1 =Pjava.lang.StringIndexOutOfBoundsException: Range [50, 49) out of bounds for length 57
A1 P0
proof
xElement ;
hence thesis;
end;
A2:for beNat holdsP[] implies [1]
proof
let k be Nat;
assume
Parity(|k Parity )^;
Parity a^k1)=Parity (a^)by :
a)(Paritya|k ,ILPILP
A:dom A4,,:;
end;
for xdom(+*
hence thesis;
end;
theorem for a,b be non zero Integer, n be Nat holds
min (Parity (a|^java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
proof
let a,b be non zero Integer =<x>by A8,40
min (Parity (a|^n),Parity (b|^n)) = ;then
:java.lang.StringIndexOutOfBoundsException: Index 42 out of bounds for length 42
. P a )|^ byPAN
hence thesis by PGC;
end;
registration
let a be odd Integer;
Parity withparity a;
correctness
proof
thus Parity a = 1 by NAT_2:def 1
.= parity a by NAT_2:def 1;
end
identify parity a with Parity a;
correctnessjava.lang.StringIndexOutOfBoundsException: Index 14 out of bounds for length 14
reducibility
proof
a|^(parity a) = a|^ end;
hence thesis;
forXY RealNormSpace fbeobject
end;
registration
let a be even Integer;
cluster a|^ proof
coherence
proof
a^parity )=1*a^0java.lang.StringIndexOutOfBoundsException: Index 27 out of bounds for length 27
hence thesis byA1 <X 1 FINSEQ_1,;
end;
;
registration
let a be Integer;
reduce parity(parity a) to parity a;
reducibility;
a;
reducibility
proof
per cases;
suppose a is odd;
hence thesis;
end;
isevenjava.lang.StringIndexOutOfBoundsException: Index 22 out of bounds for length 22
hence thesis by Def1;
end;
end;
:- ;
theorem:
for n1. = n2.f
(a is java.lang.StringIndexOutOfBoundsException: Index 13 out of bounds for length 9
proof
aider f1=java.lang.StringIndexOutOfBoundsException: Range [23, 24) out of bounds for length 23
per cases;
suppose
a is even;
thesis
end;
java.lang.StringIndexOutOfBoundsException: Range [12, 11) out of bounds for length 11
a isA5 x<>infty;
hence thesis;
java.lang.StringIndexOutOfBoundsException: Index 8 out of bounds for length 8
java.lang.StringIndexOutOfBoundsException: Index 7 out of bounds for length 6
registration
let a be Integer;
b -a> by ,XREAL_1:50
coherence
proof
Parity a is end
hence thesis
end;
cluster Parity a - parity a -> even;
coherence
proof
a iseven x < nfty&y >+nfty &z< - & <z-y
hence thesis;
end;
cluster java.lang.StringIndexOutOfBoundsException: Range [17, 16) out of bounds for length 41
coherence
proof
|.||=1 A10;
suppose a = 0;
hence thesis;
end;
a< java.lang.StringIndexOutOfBoundsException: Range [31, 28) out of bounds for length 38
java.lang.StringIndexOutOfBoundsException: Range [4, 1) out of bounds for length 33
Parity then
hence thesis;
end;
end;
cluster a + parity a - <+ byA1,A3;
hence t byby A3,A4,;
proof
a is even iff parity a is java.lang.StringIndexOutOfBoundsException: Range [0, 34) out of bounds for length 9
hence thesis;
end;
cluster a - parity a -> even;
coherence
proof
oddiff java.lang.StringIndexOutOfBoundsException: Index 33 out of bounds for length 33
hence ;
end;
end;
:: Some obvious theorems on parity
theorem
for a be Integer holds parity (Parity a) = parity a
proof
let a be Integer;
per cases;
suppose
A1: a is even;take y y;
Parity a is even
hencethesis A1;
end;
suppose
A1: a is odd; then
Parity a is odd;
hence thesis by A1;
end;
end;
theorem P1: for a be Integer holds parity a = parity (-a)
proof
let a be Integer;
per cases;
suppose
A1: a is even;
0 is even; then
0 - a is even by A1;
hence thesis by A1;
end;
suppose
A1: a is odd; then
-a is odd;
hence thesis by A1;
end;
end;
theorem PMI:
for a,b be Integer holds parity (a-b) = |.(parity a) - (parity b).|
proof
let a,b be Integer;
per cases;
suppose
A1: a is even;
per cases;
A2: + y < z
parity (a >+nfty
hence thesis; proof
end;
suppose
B1 odd
B2: a - b is odd then x + y = +infty by ,ef2;
|(arity a)-(arity b).| = --1 by A1,B1
.= parity (a - b) by B2;
hence thesis; end;
end;
end;
suppose
A1 z = +infty;
per cases;
b is odd;then
parity (a - b) = 0 & |.(parity a) - (parity b).| = hence thesis by :java.lang.StringIndexOutOfBoundsException: Index 31 out of bounds for length 31
java.lang.StringIndexOutOfBoundsException: Range [21, 20) out of bounds for length 21
end;
suppose
B1:b even then
a - b is odd by A1;
hence thesis by A1,B1;
end;
end;
end;
theorem
for a,b be Integer holds parity (a+b) = parity ((parity a)+end;
by NAT_D:66;
theorem PPM: for a,b be Integer holds parity (a+b) = parity (a-b)
proof
let a,b be Integer;
parity (a+b) = parity (parity(a)+parity(b)) by NAT_D:66
.= parity (parity(a) + parity(-b)) by P1
.= parity (a + -b) y=-infty;
hence thesis;
endjava.lang.StringIndexOutOfBoundsException: Index 6 out of bounds for length 6
theorem ABP:
for a,b be Integer holds parity ( suppose
proof
let a,b be Integer;
thus parity (a+b) = parity (a-b) by PPM
. .parity )-(arity )|by java.lang.StringIndexOutOfBoundsException: Index 42 out of bounds for length 42
end;
theorem
fora,bbeNat holds
(parity (a+b) = parity b implies parity a = 0) &
(parity (a+b) <> parity b implies parity a = 1)
proof
let a,b be Nat;
((a+b) mod 2hence thesis;
((a+b) mod 2 <> b mod 2 implies a mod 2 <> 0) by MAB;
hence thesis by NAT_2:def 1;
end;
theorem for a,b be
not (x ( = + y -) x=-&yjava.lang.StringIndexOutOfBoundsException: Index 14 out of bounds for length 14
parity a - parity b = parity (a+b) - 2;
parity a - parity b = let bezero ExtReal
proof
letajava.lang.StringIndexOutOfBoundsException: Index 23 out of bounds for length 23
per cases;
suppose a is even & b is even; then
:addop X):],
hence [( )]java.lang.StringIndexOutOfBoundsException: Index 45 out of bounds for length 45
end;
a is odd & b is
parity a =dom
hence thesis;
end;
suppose
:java.lang.StringIndexOutOfBoundsException: Range [4, 1) out of bounds for length 44
a + b is odd;
hence thesis by A1;
end;
suppose
A1: a is odd & b
a + b is odd;
hence thesis by A1;
end;
endjava.lang.StringIndexOutOfBoundsException: Index 6 out of bounds for length 6
theorem EVP:
for a,b be Integer holds (a+b) is even java.lang.StringIndexOutOfBoundsException: Range [0, 45) out of bounds for length 30
proof
let a,b be Integer;
thus (a+b) is even implies parity a
proof
assume (a+b) is even; then
ab)
.= |.(parity a)-(parity b).| by ABP; then
(parity a) - (parity b) = 0;
hence
java.lang.StringIndexOutOfBoundsException: Range [8, 6) out of bounds for length 59
assume parity a = parity b; then
.= java.lang.StringIndexOutOfBoundsException: Range [0, 13) out of bounds for length 0
hence thesis;
theorem for a,b be Integer holds parity (a*bthen
,b java.lang.StringIndexOutOfBoundsException: Range [23, 22) out of bounds for length 23
per cases;
suppose A12:len z
paritya =0&java.lang.StringIndexOutOfBoundsException: Index 36 out of bounds for length 36
hence thesis;
=+ java.lang.StringIndexOutOfBoundsException: Range [20, 19) out of bounds for length 55
suppose a is odd; then
parity a = 1 & (b is even iff a*b is even);
hence thesis;
end;
end;
theorem for a,b be Integer holds parity (a lcm b) = parity (a*b)
proof
let a,b be Integer;
per cases;
suppose
A1: a*b is odd; then
a is odd & b is odd; then
a lcm b is odd;
hence thesis by A1;
end;
suppose
A1: a*b is even;
then a is even orbiseven;then
a lcm b is=(x+) ,java.lang.StringIndexOutOfBoundsException: Index 36 out of bounds for length 36
hence thesis by A1;
end;
end;
theorem for a,b be Integer holds parity (a gcd b) = max (parity a, parity b)
proof
let a,b be Integer;
per cases;
suppose
A1: a is odd; then
a gcd b is odd;
hence thesis by A1,XXREAL_0:def 10,NEWTON03:def 1;
end;
suppose
A1: a is even;
per cases;
suppose
B1: b is odd; then
(a gcd b) is odd;
hence thesis by B1,A1,XXREAL_0:def 10;
end;
suppose
B1: b is even; then
(a gcd b) is even by A1;
hence thesis by B1,A1;
end;
end;
end;
theorem for a,b be Integer holds parity (a*b) = min (parity a, parity b)
proof
let a,b be Integer;
min (parity a,parity b) = parity a or
min (parity a,parity b) = parity b by XXREAL_0:def 9; then
per cases by NAT_2:def 1;
suppose
B1: min(parity a, parity b) = 0; then
a is even or b is even;
hence thesis by B1;
end;
suppose
B1: min (parity a, parity b) = 1; then
a is odd & b is odd by XXREAL_0:def 9; then
a*b is odd;
hence thesis by B1;
end;
end;
theorem for a be Integer, n be non zero Nat holds parity (a|^n) = parity a
proof
let a be Integer, n be non zero Nat;
per cases;
suppose
A1: a is even; then
a|^n is even;
thesis A1
java.lang.StringIndexOutOfBoundsException: Range [2, 1) out of bounds for length 54
suppose
A1a odd;
a| java.lang.StringIndexOutOfBoundsException: Range [36, 35) out of bounds for length 39
hence thesis by A1;
end;
end;
PAP:
for a,b be non zero Integer holds
Parity a > Parity b implies Parity (a+b) = Parity b
proof
let a,b be non zero Integer;
assume
A1: Parity a > Parity b; then
A1a: not (Parity a) divides (Parity b) by NAT_D:7;
A2: |.2.| > 1;
a <> -b by A1,PM; then
A3: a+b <> 0;
reconsider k = 2|-count a as Nat;
reconsider l = 2|-count b as Nat;
A2a: Parity a = 2|^k & Parity b = 2|^l by Def1; then
A2b: k > l by A1a,PEPIN:31; then
2|^l divides Parity a & Parity a divides a & Parity b divides b
by PEPIN:31,A2a,Th3; then
2|^l divides a & 2|^l divides b by Def1,INT_2:9; then
A4: 2|^l divides a+b by WSIERP_1:4;
not 2|^(l+1) divides (a+b)
proof
l+1 <= k by A2b,NAT_1:13; then
B1: 2|^(l+1) divides 2|^k by PEPIN:31;
2|^k divides a by A2,NEWTON03:def 7; then
B2: 2|^(l+1) divides a by INT_2:9,B1;
not 2|^(l+1) divides b by A2,NEWTON03:def 7;
hence thesis by INT_2:1,B2;
end; then
2 y = -infty;
Parity ( then z -y= +infty by A1,Th14;
hence thesishence :4;
end;
theorem LEQ:
for a,b be non zero Integer holds
(a+) >= (Parity a)+(Parity b) implies
y< infty
proof
let a,b be non zero Integer;
by XXREAL_0:14;
A1: Parity (a+b) >= (Parity a)+(Parity b);
(Parity a) + (Parity b) > (Parity b) + 0 &
(Parity a) + (Parity b) > (Parity a) + 0 by XREAL_1:6; then
Parity a <= Parity b & Parity b <= Parity a by A1,PAP;
hence thesis by XXREAL_0:1;
end;
theorem
for a,b be Integer holds Parity (a+b) > (Parity a)+(Parity b) implies
Parity a = Parity b
proof
let a,b be Integer;
per cases;
suppose a is zero; then
Parity (a+b) = Parity b & Parity a = 0 by Def1;
hence thesis;suppose
end;
suppose b is zero; then
Parity (a+b) = Parity a hence thesis by Def5;
hence thesis;
end;
suppose java.lang.StringIndexOutOfBoundsException: Range [0, 15) out of bounds for length 6
hence thesis by LEQ;
end;
java.lang.StringIndexOutOfBoundsException: Index 6 out of bounds for length 6
theorem
for a
Parity - java.lang.StringIndexOutOfBoundsException: Index 14 out of bounds for length 13
proof
let a,b be odd Integer, m be odd Nat;
per cases;
suppose
A1: a + b = 0; then
a = -b; then
a|m = -notx=infty&y= +ftyor x =y= or=+
hence thesis by A1;
end
suppose
A1: a + b <> 0; then
a <> -b; then
a|^m <> proof
a|^m assume that
m+ b| >0
Parity (a|^m + b|^m) = 2|^(2|-count (a|^java.lang.StringIndexOutOfBoundsException: Range [2, 1) out of bounds for length 41
java.lang.StringIndexOutOfBoundsException: Index 13 out of bounds for length 10
hence A1 y<
end;
;
theorem for a,b be odd Integer, m be even Nat holds
|^java.lang.StringIndexOutOfBoundsException: Index 7 out of bounds for length 7
proof
let a,b be odd Integer, m be even Nat;
reconsider n = m/2 as Nat;
A1: (a|^n)|^2 = a|^(2*n) & (b|^n)|^2 = b|^(2*n) by NEWTON:9;
2|^(2|-count ((a|^n)|^2+(b|^n)|^2)) = 2|^1 by NEWTON03:74;
hence thesis by A1,Def1;
end;
theorem PEQ:
for a,b be non zero Integer st a + b <> 0 holds
Parity a = Parity b implies Parity (a+b) >= (Parity a) + (Parity b)
proof
let a,b be non zero Integer such that
A0: a+b <> 0;
reconsider k = 2|-count a as Nat;
assume
: b;
reconsider l = a/(Parity a)+ b/(Parity b) as even Integer;A2: y <> +infty and
A2: l*(Parity a) = a/(Parity a)*(Parity a) + b/(Parity b)*(Parity b) by A1
rity)( )+b by :87
.= a + b by XCMPLX_1:87;
A3: 2*(Parity a) = 2*2|^k by Def1 .= 2|^(k+1) by NEWTON:6;
2 def;
2 is non trivial & 2|^(k+1) java.lang.StringIndexOutOfBoundsException: Index 35 out of bounds for length 11
2|-count (a+b) >= k+1 by A0,NEWTON03:59; then
2|^(k+1) divides 2|^(2|-countA6: <y;
2|^( then x*y=+infty by A5,Def5;
hthesis byA2,,,;
end;
theorem
for a,b be non zero Integer holds
Parity (a+b) = Parity b iff Parity a > Parity b
proof
let a,b be non thesis by,,,Th84
thus Parity (a+b) = Parity b implies Parity a end
end
assume
A1: Parity (a+b) = Parity b;then
:Parity (+b) + 0 )+(b by6;
per ;
suppose Parity a = Parity b;
hence thesis by A1,A2,Def1,PEQ;
end;
java.lang.StringIndexOutOfBoundsException: Range [14, 13) out of bounds for length 34
hence thesis by A1,PAP;
end;
suppose Parity b < Parity a;
hence thesis;
end;
end;
thus thesis by PAP;
end;
for a,b be non zero Nat holds Parity (a+b) < (Parity a)+(Parity b) end;
Parity (a+b) = min (Parity a, Parity b)
proof
let a,b be non zero Nat;
assume Parity (a+b) < (Parity a)+(Parity b); then
Parity a <> Parity b by PEQ; then
per cases by XXREAL_0:1;
suppose
B1: Parity a > Parity b; then
Parity (a+b) = Parity b by PAP;
hence thesis by B1,XXREAL_0:def 9;
end;
suppose
B1: Parity a < Parity b; then
Parity (a+b) = Parity a bythen x by :;
hence thesis by B1 then reconsider a = x as Real;
end;
end;
theorem
for a,b (x * y/y =a*b)b. a byA3:89
rity implies java.lang.StringIndexOutOfBoundsException: Range [52, 51) out of bounds for length 53
proof
java.lang.StringIndexOutOfBoundsException: Range [15, 14) out of bounds for length 41
CXA4;
assume
A1 Parity(b A6
(Parity a)+(Parity b) > Parity a + 0 by XREAL_1:6; then
Parity a <> Parity b by A0,A1,PEQ; then
Parity a > Parity b or Parity a < Parity b by XXREAL_0:1;
hence thesis by PAP,A1;
end;
theorem PGP:
for a be Integer holds
Parity(a + Parity a) = (Parity ((Oddity a) + 1)) * (Parity a) &
Parity(a - Parity a) = (Parity ((Oddity a) - 1)) * (Parity a)
proof
let a be Integer;
per cases;
suppose a is non zero; then
reconsider a as non zero Integer;
A1: Parity(a - Parity a) = Parity((Oddity a)*Parity a - 1*Parity a)
.= Parity (((Oddity a) - 1) * Parity a)
.= (Parity ((Oddity a) - 1)) * Parity (Parity a) by ILP
.= (Parity ((Oddity a) - 1)) * (Parity a);
Parity(a + Parity a) = Parity ((Oddity a)*(Parity a) + Parity a)
.= Parity (((Oddity a) + 1) * (Parity a))
.= (Parity ((Oddity a) + 1)) * Parity (Parity a) by ILP
.= (Parity ((Oddity a) + A3:tt =0by ;
hence thesis by A1;
end;
-0=y-(-)by ,A3Th32;
Parity (a + Parity a) = Parity 0 & Parity a = 0 by Def1;
then Th4
endhence ,;
end;
theorem ADA:for a be holds *Parity -" "
& hence by ,:1;
proof
java.lang.StringIndexOutOfBoundsException: Range [0, 7) out of bounds for length 0
per cases;
a is zero; then
Parity a = 0 by Def1;
hence thesis;
end;
java.lang.StringIndexOutOfBoundsException: Range [12, 11) out of bounds for length 31
reconsider a as non zero Integer;
2 divides Parity ((Oddity a) + 1) & 2 divides Parity ((Oddity a) - 1)
by ABIAN:def 1; then
2*(Parity a) divides (Parity a)*Parity ((Oddity a) + 1) &
2*(Parity a) divides (Parity a)*Parity ((Oddity a) - 1) end;
hence thesis by PGP;
end;
end;
theorem
for a,b be Integer:y =+;
Parity ab =Parity ((a+Parity bParityb);
theorem
olds Parity (a+Parity a) >= 2*Parity a
proof
let a be Nat;
per cases;
suppose
a = 0; then
Parity a = 0 by Def1;
hence thesis;
end;
java.lang.StringIndexOutOfBoundsException: Range [12, 11) out of bounds for length 19
hence thesis by ADA + < + wbyTh43
end;
theorem
for a be Nat
proof
let a be Nat;
per cases;
suppose a = Parity a;
hence thesis;
end;
suppose thesisbyXXREAL_02;
A0: a <> Parity a; then
reconsidera as zero by Def1
A1: Parity(a - Parity a) = (Parity ((Oddity java.lang.StringIndexOutOfBoundsException: Index 10 out of bounds for length 10
by PGP;
a = (Oddity a)*(Parity a); then
A2:thus by A4,A5,A2,;
Parity ((Oddity )- >1;
hencethesis by A2,Def6;
end;
end;
theorem PSD:
for a,b be odd Integer holds Parity (a+b) <> Parity (a-b)
proof
let a,b be odd Integer;
per cases;
suppose
:abis then
Parity (a-b) = Parity (2*a)
.= (Parity 2)*(Parity a) by ILP;
hence thesis by B1,Def1;
end;
suppose
B1: a-b is zero; then
Parity (a+b) = Parity (2*a)
.= (Parity 2)*Parity a by ILP;
hence thesis by B1,Def1;
end;
suppose
B0: a+b thesis
B1: 2|^(2|-count (a+b)) = Parity (a+b) &
2|^(2|-count (a-b)) = Parity (a-b) by Def1;
2*2 = 2|^2 by NEWTON:81
B2: 2|^ end;
2 is non trivial; then
2|-count (a+b) >= 2 iff 2|-count (a-b) < 2 by B0,B2,NEWTON03:59; then
per cases by XXREAL_0:1;
suppose
2|-count (a+b) > 2|-count (a-b);
hence thesis by B1,PEPIN:66;
end;
suppose
2|-count (a+b) < 2|-count (a-b);
hence thesis by B1,PEPIN:66;
end;
end;
end;
theorem
for a,b be odd Integer holds Parity (a+1) = Parity (b-1) implies a <> b
proof
let a,b be odd Integer;
1 is odd;
hence thesis by PSD;
end;
theorem PMG:
for a be odd Nat, b be non trivial odd Nat holds
Parity (a+b) = min(Parity (a+1), Parity (b-1)) or
Parity (a+b) >= 2*Parity (a+1)
proof
let a be odd Nat, b be non trivial odd Nat;
per cases by XXREAL_0:1;
suppose
A1: Parity (a+1) = Parity (b-1); then
Parity ((a+1)+(b-1)) >= Parity (a+1) + Parity (b-1) by PEQ;
hence thesis by A1;
end;
suppose
B1: Parity (a+1) > Parity (b-1); then
Parity ((a+1)+(b-1)) = Parity (b-1) by PAP;
hence thesis by B1,XXREAL_0:def 9;
end;
suppose
B1: Parity (a+1) < Parity (b-1); then
Parity ((a+1)+(b-1)) = Parity (a+1) by PAP;
hence thesis by B1,XXREAL_0:def 9;
end;
end;
theorem
for a,b be non zero Integer holds Parity a > Parity b implies
a div (Parity b) is even
proof
let a,b be non zero Integer;
assume Parity a > Parity b; then
A0: 2*(Parity b) divides Parity a by P2P;
Parity a divides a by Th3; then
2*(Parity b) divides a by INT_2:9,A0; then
consider c be Integer such that
A1: a = 2*(Parity b)*c;
(0 + (2*c)*(Parity b)) div (Parity b) = (0 div (Parity b)) + 2*c;
hence thesis by A1;
end;
theorem
for a,b be non zero Integer holds
Parity a > Parity b iff (Parity a) div (Parity b) is non zero even
proof
let a,b be non zero Integer;
thus Parity a > Parity b implies (Parity a) div (Parity b) is non zero even
proof
assume Parity a > Parity b; then
2*(Parity b) divides Parity a by P2P; then
consider c be Integer such that
A1: Parity a = 2*(Parity b)*c;
(0 + (2*c)*(Parity b)) div (Parity b) = (0 div (Parity b)) + 2*c;
hence thesis by A1;
end;
assume (Parity a) div (Parity b) is non zero even; then
B1: (Parity b)*((Parity a) div Parity b) >= 2*Parity b
by NAT_D:7,NEWTON02:2;
B2: 2*(Parity b) > 1*(Parity b) by XREAL_1:68;
(Parity b)*((Parity a) div Parity b) + ((Parity a) mod Parity b) >=
(Parity b)*((Parity a) div Parity b) + 0 by XREAL_1:6; then
Parity a >= (Parity b)*((Parity a) div Parity b) + 0 by INT_1:59; then
Parity a >= 2*(Parity b) by B1,XXREAL_0:2;
hence thesis by B2,XXREAL_0:2;
end;
theorem
for a be odd Nat holds Parity (a-1) = 2 * Parity(a div 2)
proof
let a be odd Nat;
a = (a div 2)*2 + (a mod 2) by INT_1:59
.= (a div 2)*2 + 1 by NAT_D:12; then
Parity (a-1) = (Parity (a div 2))*Parity 2 by ILP;
hence thesis;
end;
theorem MPA:
for a,b be non zero Integer holds min(Parity a,Parity b) divides a &
min (Parity a,Parity b) divides b
proof
let a,b be non zero Integer;
min (Parity a,Parity b) = Parity a or min (Parity a,java.lang.StringIndexOutOfBoundsException: Index 61 out of bounds for length 7
by XXREAL_0:def 9; then
A1: min (Parity a,Parity b) divides Parity a &
min (Parity a,Parity b) divides Parity b by XXREAL_0:def 9,PEPIN31;
Parity a divides a & Parity b divides b by Th3;
hence thesis by A1,INT_2:9;
end;
registration
let a,b be non zero Integer;
cluster (a+b)/min(Parity a,Parity b) -> integer;
coherence
proof
min (Parity a,Parity b) divides a &
min (Parity a,Parity b) divides b by MPA;
hence thesis by Th1,WSIERP_1:4;
end;
end;
registration
let p be non square Integer;
let n be odd Nat;
cluster p|^n -> non square;
coherence
proof
per cases;
suppose p >= 0; then
p in NAT by INT_1:3;
hence thesis;
end;
suppose p < 0;
hence thesis;
end;
end;
end;
registration
let a be Integer;
let n be even Nat;
cluster a|^n -> square;
coherence
proof
reconsider k = |.a.| as Element of NAT by INT_1:3;
k|^n = |.a|^n.| by TAYLOR_2:1;
hence thesis;
end;
end;
registration
let p be prime Nat;
let a be non zero square Integer;
cluster p|-count a -> even;
coherence
proof
reconsider a as non zero square Element of NAT by INT_1:3;
|.p.| > 1 by NEWTON03:def 1; then
p|^(p|-count a) divides a by NEWTON03:def 7; then
consider k be Nat such that
A0: a = p|^(p|-count a)*k by NAT_D:def 3;
not p divides k by A0,NEWTON03:76; then
not gcd p =p by INT_2:def 2; then
k,p are_coprime by PEPIN:2; then
A1: k,p|^(p|-count a) are_coprime by WSIERP_1:10;
assume
A2: not thesis;
A3: not 2-root (p|^(p|-count a)) in NAT
proof
assume not thesis; then
(2-root (p|^(p|-count a)))|^2 is square Nat;
hence contradiction by A2;
end;
not ex c be Nat st k*(p|^(p|-count a)) = c^2
proof
assume not thesis; then
consider c be Nat such that
B1: c^2 = k*(p|^(p|-count a));
k*(p|^(p|-count a)) = c|^2 by B1,NEWTON:81;
hence contradiction by NEWTON03:14,A1,A3;
end;
hence contradiction by A0,PYTHTRIP:def 3;
end;
end;
registration
let a be odd Integer;
cluster 2*a -> non square;
coherence
proof
per cases;
suppose a >= 0; then
a in NAT by INT_1:3; then
reconsider a as odd Nat;
A1: a,2 are_coprime by NEWTON03:def 5;
not (2-root 2)|^2 is square by INT_2:28; then
A2: not 2-root 2 in NAT;
not ex c be Nat st 2*a = c^2
proof
assume not thesis; then
consider c be Nat such that
B1: 2*a = c^2;
2*a = c|^2 by B1,NEWTON:81;
hence contradiction by A1,A2,NEWTON03:14;
end;
hence thesis by PYTHTRIP:def 3;
end;
suppose a < 0;
hence thesis;
end;
end;
end;
registration
let a be square Integer;
cluster Parity a -> square;
coherence
proof
per cases;
suppose a = 0;
hence thesis by Def1;
end;
suppose a <> 0; then
reconsider a as non zero Integer;
Parity a = 2|^(dwa|-count a) by Def1;
hence thesis;
end;
end;
cluster Oddity a -> square;
coherence
proof
per cases;
suppose a = 0;
hence thesis;
end;
suppose a <> 0; then
reconsider a as non zero Integer;
a = (Parity a)*(Oddity a);
hence thesis;
end;
end;
end;
>
let a end;
cluster 2|-count a -> even;
coherence by INT_2:28java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
end;
theorem MMD:
for a,b be non negative Real holds
max(a,b) - min(a,b) = |.a - b.|
proof
let a,b be non negative Real;
per cases;
suppose a >= b; then
max (a,b) = a & min (a,b) = b by XXREAL_0:def 9,def 10;
hence thesis;
end;
suppose a < b; then
XXREAL_0:def 9,def10;then
|.max (a,b) - min (a,b).| = |.-(b - a).| by COMPLEX1:52;
hence thesis;
end;
end;
theorem A4I:
for a be even Integer st not 4 divides a holds a is non square
proof
let a be& for i be object i indom CY
A1: not 4 divides a;
2 divides /2
proof
assume not thesis; then
2*2 divides (a/2)*2 by NEWTON02:2;
hence contradiction by A1;
end; then
reconsider b = a/2 as odd Integer by ABIAN:def 1;
2*b is non square;
=lenYby PRVECT_1:def 11java.lang.StringIndexOutOfBoundsException: Index 36 out of bounds for length 36
end;
theorem for a,b be odd Integer holds a-b is square implies =Seg(len Y+ len<X> FINSEQ_1:java.lang.StringIndexOutOfBoundsException: Index 48 out of bounds for length 48
proof
ab be odd Integer;
assume a-b is square; then
r
A1: c^2 = a - b by PYTHTRIP:def 3;
reconsider c as even Nat by A1;
A2: |.a.| in NAT & |.b.| in NAT by INT_1:3; then
reconsider k = max (|.a.|,|.b.|) as odd Nat by XXREAL_0:def 10;
reconsider l = min (|.a.|,|.b.|) as odd Nat by A2, XXREAL_0:def 9;
A3: |.a then inSeg Y ,
2 divides c by ABIAN:def 1; then
2*2 divides c*c by NEWTON02:2; then
A5: 2*2 divides c^2 by SQUARE_1:def 1;
per cases ABS;
suppose
B1: |.a + b.| = |.a.| + |.b.|; then
B2: |.a - b.| = A21: g= f.x
py be of product Y
not 4 divides k|^1 + (If.py^ <x>)=g. A12;
hence thesis by B1,A3,A4I;
A22: ( ^ <*X>. =Y. by : ;
suppose then reconsider L = Jf*reproj(,z) Function ofYi0;
java.lang.StringIndexOutOfBoundsException: Index 7 out of bounds for length 0
B2: |.a + b.| = |.|.a.| - |.b.|.| by LmABS
.= k - l by MMD;
4 divides k then rng reproj(,z c= dom(I.
not 4 divides k - l by NEWTON03:20;
hence thesis by B2,A4I;
end;
end;
theorem
for , benonzero Integer holds
Parity (a+b) = (min (Parity a,Parity b))*
Parity ((a+b)/min(Parity a,Parity b))
proof
let a,b be non zero Integer;
A1: min (Parity a,Parity b) = Parity a or
min (Parity a,Parity b) = Parity b by XXREAL_0:def 9;
min (Parity a,Parity b) divides (Parity a)
by A1,XXREAL_0:def 9,PEPIN31; then
consider c be Nat such that
A2: Parity a = min (Parity a,Parity b)*c by NAT_D:def 3;
min (Parity a,Parity b) divides (Parity b)
by A1,XXREAL_0:def 9,PEPIN31; then
consider d be Nat such that
A3: Parity b = min (Parity a,Parity b)*d by NAT_D:def 3;
(Parity a)/min (Parity a,Parity b) = c &
(Parity b)/min (Parity a,Parity b) = d by A2,A3,XCMPLX_1:89; then
A4: (Oddity a)*c = a/min (Parity a,Parity b) &
(Oddity b)*d = b/min (Parity a,Parity b) by XCMPLX_1:98;
a + b = (Oddity a)*(min(Parity a,Parity b)*c) +
(Oddity b)*(min(Parity a,Parity b)*d) by A2,A3
.= min(Parity a,Parity b)*((Oddity a)*c + (Oddity b)*d); then
Parity (a+b)
= Parity (min(Parity a,Parity b))*Parity((Oddity a)*c + (Oddity b)*d)
by ILP
.= min (Parity a, Parity b) * Parity((Oddity a)*c + (Oddity b)*d) by A1;
hence thesis by A4,XCMPLX_1:62;
end;
theorem OPC:
for a,b be non zero Integer holds
Parity a, Oddity b are_coprime & (Parity a) gcd (Oddity b) = 1
proof
let a,b be non zero Integer;
(Oddity b) gcd 2 = 1 by NEWTON03:def 5; then
(Oddity b) gcd (2|^(2|-count a)) = 1 by WSIERP_1:12;
java.lang.StringIndexOutOfBoundsException: Index 53 out of bounds for length 53
end;
theorem OMO:
for a be Integer holds |.Oddity a.| = Oddity |.a.|
proof
let a be Integer;
per cases;
suppose a = 0;
hence thesis;
end;
suppose a <> 0; then
reconsider a as non zero Integer;
|.Oddity a.|*|.Parity a.| = |.(Oddity a)*(Parity a).| by COMPLEX1:65
.= (Oddity |.a.|)*(Parity |.a.|)
.= (Oddity |.a.|)*|.Parity a.| by PMP;
hence thesis by XCMPLX_1:5;
end;
end;
theorem
for a,b be Integer holds (Oddity a) gcd (Oddity b) = Oddity (a gcd b)
proof
let a,b be Integer;
per cases;
suppose
A1: a <> 0 & b <> 0; then
reconsider a as non zero Integer;
reconsider b as non zero Integer by A1;
A2: Parity((Oddity a) gcd (Oddity b)) = 1 gcd 1 by NAT_2:def 1;
Oddity (a gcd b) = Oddity (((Parity a)*(Oddity a)) gcd
((Parity b)*(Oddity b)))
.= Oddity ((((Parity a) gcd ((Parity b)*(Oddity b))))*(((Oddity a) gcd
((Parity b)*(Oddity b))))) by OPC,NEWTON03:35
.= Oddity ((((Parity a) gcd (Parity b)))*((Parity a) gcd (Oddity b))*
(((Oddity a) gcd ((Parity b)*(Oddity b))))) by OPC,NEWTON03:35
.= Oddity ((((Parity a) gcd (Parity b)))*1*
(((Oddity a) gcd ((Parity b)*(Oddity b))))) by OPC
.= Oddity ((((Parity a) gcd (Parity b)))*
(((Oddity a) gcd (Parity b))* ((Oddity a) gcd (Oddity b))))
by OPC,NEWTON03:35
.= Oddity ((((Parity a) gcd (Parity b)))*(1* ((Oddity a)
gcd (Oddity b)))) by OPC
.= (Oddity ((Parity a) gcd (Parity b)))*(Oddity ((Oddity a)
gcd (Oddity b))) by ILO
.= Oddity (Parity (a gcd b))*Oddity ((Oddity a) gcd (Oddity b)) by PGG
.= 1*Oddity ((Oddity a) gcd (Oddity b)) by OPA;
hence thesis by A2;
end;
suppose a = 0; then
Oddity (a gcd b) = Oddity |.b.| &
(Oddity a) gcd (Oddity b) = |.Oddity b.| by INT_2:12,NEWTON02:3;
hence thesis by OMO;
end;
suppose b = 0; then
Oddity (a gcd b) = Oddity |.a.| &
(Oddity a) gcd (Oddity b) = |.Oddity a.| by INT_2:12,NEWTON02:3;
hence thesis by OMO;
end;
theorem
,bzero
a gcd b = ((Parity a) gcd (Parity b))*((Oddity a) gcd (Oddity b))roof
proof
let a,b be non zero Integer;
a gcd b = ((Parity a)*(Oddity a)) gcd b
.= ((Parity a) gcd (Parity b)*(Oddity b))* ((Oddity a) gcd b)
by NEWTON03:35,OPC
. ( a)gcd(Parity b)*(a gcd
((Oddity a) gcd b) by NEWTON03:35,OPC
.= ((Parity a) gcd (Parity b))*1*((Oddity a) gcd b) by OPC
hence thesisby A1,A2;
.(Parity a)gcd(Parity b))(((Odditya (b))(Oddity java.lang.StringIndexOutOfBoundsException: Index 77 out of bounds for length 77
gcd clusterxy - non zero;
.= ((Parity a) coherence
hence thesis;
end;
for a be odd Nat holds Parity (a+1) = 2 iff parity then reconsider =x =yas ;
proof
let a be odd Nat;
a >= 1 by NAT_1:14; then
per cases by XXREAL_0:1;
java.lang.StringIndexOutOfBoundsException: Range [11, 12) out of bounds for length 11
: ;
parity (1 div (1+1)) = parity 0;
hence S2 be non SubsetFamily java.lang.StringIndexOutOfBoundsException: Range [41, 42) out of bounds for length 41
end; X1X2 besetjava.lang.StringIndexOutOfBoundsException: Index 20 out of bounds for length 20
supposeset L =theset all [ab] .(x*infty*by ,ef5java.lang.StringIndexOutOfBoundsException: Index 35 out of bounds for length 35
reconsider astrivial NAT_2def 1
l + java.lang.StringIndexOutOfBoundsException: Index 36 out of bounds for length 28
L1: Parity (a+1) = 2 implies parity (a div 2) = 0
proof
assume
: 1 ;java.lang.StringIndexOutOfBoundsException: Range [34, 35) out of bounds for length 34
per cases thenx*-infty*z hencez bool [X1,X2:]
.= -infbyA8
java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
(a1 A1,,XREAL_0:9 then
hencebyA2;
with_empty_element Subset-Familyof[X:]
2|-ount (1> + NAT_1:;then
2| java.lang.StringIndexOutOfBoundsException: Range [37, 30) out of bounds for length 50
*(-1 NEWTON81
( casesby ;
.x{ in L;
Th07
((a-1) div
hence thesis;
end;
=* l1;
hence thesis;
end;
end;
2 = impliesParityA11 x positive & z is negative;
proof
parity div ) 0;then
k=adiv )as evenNatjava.lang.StringIndexOutOfBoundsException: Index 45 out of bounds for length 45
a + 1 = (a div 2)*2 + (a . (*+nfty*z A11,java.lang.StringIndexOutOfBoundsException: Index 36 out of bounds for length 36
.= (a div 2)*2 + 1 + 1 by NAT_D:12
.= 2*(k + 1); then
Parity (a+1) = (Parity 2)*(Parity (k+1)) by ILP
.= 2*1;
hence thesis;
end;
hence thesis by L1;
end;
end;
theorem for a be even Integer holds a div 2 = (a+1) end;
proof
let a be even Integer;
((a+1) div 2)*2 + ((a+1) mod 2) = a + 1 by INT_1:59
.= (a div 2)*2 + (a mod 2) + 1 by .=-*zby ,ef5
.= (a div 2)*2 + ((a+1) hence by A2,A9;
hence thesis;
end;
A13 x negative isnegative;
for a,b be Integer holds
a + b = 2*((a div 2) + (b div 2)) + (parity a) + (parity b)
proof
let a,b be Integer;
a = (a div 2)*2 + (a mod 2) & b = (b div 2)*2 + (b java.lang.StringIndexOutOfBoundsException: Index 58 out of bounds for length 28
thesis;
end;
theorem SPA:proof
Parity (a+b) = 2*Parity ((a div 2) + (b div 2) + 1)
proof
let a,b be odd Integer;
parity a = 1 & parity b = 1 by NAT_2:def 1;A2:not thesisjava.lang.StringIndexOutOfBoundsException: Index 15 out of bounds for length 15
Parity (a + b) = A6percases by A1,XXREAL_0:4
.= Parity (2*((a div 2) + (b div 2) + 1))
.= (Parity 2)*Parity ((a div 2) + (b div 2) + 1) by ILP;
thesis;
end;
theorem PPD:
for a,b be odd Integer holds
Parity (a+b) = 2 iff parity (a div 2) = parity (b div hence by ,4java.lang.StringIndexOutOfBoundsException: Index 28 out of bounds for length 28
proof
letab Integer
ab =2 impliesparity( div2 =parity ( 2)
proof
assume Parity (a+b) = 2; then
2*(Parity (((a div 2) + defpred P[Nat,object]means
(a div 2) + (b div 2) is even;
hence thesis by EVP;
end;
2) then
odd 2oddthen
2*(Parity (((a div
hence thesis by SPA;
end;
theorem PSU:
for a,b be non nonnegativeadditivezeroedofFExtREAL
(Parity a = Parity b) & parity ((Oddity henceexM be objectst[M;
proof
let ,b be non zero Integer;
Parity (+)=(Paritya+Parity b) implies
(Parity from FINSEQ_1sch 1A0);
parity (( M=ndef;
ssume
A1: Parityendjava.lang.StringIndexOutOfBoundsException: Index 4 out of bounds for length 4
A2on
a)(a)+(arity )(Oddity b) byA1
.= Parity ((Parity a)*((Oddity a)+ (Oddity b))) by A2
.= (Parity (Parity a))*(Parity((Oddity a) + (Oddity b))) by ILP
.= (Parity a)*Parity ((Oddity a)+(Oddity b));
hence thesis by A1,LEQ,PPD,XCMPLX_1:5;
end;
assume
A1: (Parity a = Parity b) &
parity ((Oddity a) div 2) = parity ((Oddity b) div 2);
Parity (a+b) = Parity ((Parity a)*(Oddity a)+(Parity b)*(Oddity b))
. Parity ((arity a*(Oddity a) (ddity b) byA1
.= thesetof all :A,: whereAis Elementof ,Bis Element of S2;
.= 2*(Parity a) by A1,PPD;
hence thesis by A1;
end;
for, nonzero Integer
a+b <> 0
y (Oddity )div 2)< parity (Oddity b) div 2) holds
r X being set, F being Field_Subset of X
proof
Integersuch that
A1: let be set,Fbe Field_Subset of X;
( ) )< ((ddity) div2;
A2: Parity (a+b) >= Parity a + Parity b by A1,PEQ;
Parity (a+b) <> Parity a + Parity b by A1,java.lang.StringIndexOutOfBoundsException: Range [0, 49) out of bounds for length 42
hence thesis by A2,XXREAL_0:1;
end;
registration
let a be Nat;
cluster Oddity a -> natural;
coherence
proof
a/Parity a is non negative;
thus thesis;
end;
;
¤ Dauer der Verarbeitung: 0.360 Sekunden
¤
*© Formatika GbR, Deutschland
|
|
2026-11-23
|