|
|
|
|
SSL ec_pf_1.miz
Interaktion und PortierbarkeitMizar
|
|
:: Set of Points on Elliptic Curve in Projective Coordinates
:: by Yuichi Futa , Hiroyuki Okazaki and Yasunari Shidama
::
:: Received December 21, 2010
:: Copyright (c) 2010-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 NUMBERS, CARD_1, FUNCT_1, RELAT_1, XBOOLE_0, ARYTM_3, NEWTON,
TARSKI, FINSET_1, CARD_3, FINSEQ_1, SUBSET_1, ARYTM_1 , beDD java.lang.StringIndexOutOfB oundsException: Range [40, 39) out of bounds for length 44
, java.lang.StringIndexOutOfBoundsException: Index 74 out of bounds for length 74
SUPINF_2, ALGSTR_0, GROUP_1, MESFUNC1, INT_1, VECTSP_1, STRUCT_0,
GROUP_2, GRAPH_1, FINSEQ_2, EC_PF_1, RLVECT_1, LATTICES, EQREL_1,
RELAT_2, UNIROOTS, PROB_2, MOD_2, RECDEF_2;
notations TARSKI, XBOOLE_0, ZFMISC_1, SUBSET_1, RELAT_1, FUNCT_1, RELAT_2,
RELSET_1, PARTFUN1, XTUPLE_0, MCART_1, FUNCT_2, BINOP_1, DOMAIN_1,
FINSET_1, CARD_3, ORDINAL1, CARD_1, NUMBERS, XCMPLX_0, XXREAL_0, NAT_1,
INT_1,
INT_2, NAT_D, REALSET1, FINSEQ_1, FINSEQ_2, EQREL_1, RVSUM_1, NEWTON,
WSIERP_1, MOD_2, STRUCT_0, ALGSTR_0, RLVECT_1, GROUP_1, VECTSP_1,
, I,
constructors NAT_D, REALSET1, GROUP_2, BINOP_1, GR_CY_1, INT_3, WSIERP_1,
UPROOTS, BINOP_2, RELSET_1, FUNCT_7, UNIROOTS, PROB_2, BINOM, MOD_2,
A7: for m holds IT1.(m+1)=F(m,IT1.m qua Element of DD) by A4;
registrations XBOOLE_0, STRUCT_0, XREAL_0, ORDINAL1, NAT_1, INT_1, GROUP_2,
FINSET_1, ALGSTR_0, VECTSP_1, INT_3, java.lang.StringIndexOutOfBoundsException: Index 33 out of bounds for length 33
RELAT_2, VALUED_0, EQREL_1, RELSET_1, FINSEQ_2, UNIROOTS, NUMBERS,
MEMBERED, XTUPLE_0, MCART_1;
requirements REAL, NUMERALS, SUBSET, BOOLE, ARITHM;
equalities STRUCT_0, INT_3, ALGSTR_0, BINOP_1, FINSEQ_1, REALSET1, FINSEQ_2,
EQREL_1, BINOM, CARD_3;
expansions STRUCT_0, ALGSTR_0, FINSEQ_1, TARSKI;
theorems;
INT_1, RLVECT_1, GR_CY_1, NAT_1, INT_2, INT_3, PEPIN, NAT_D, NUMBERS,
CARD_1, GROUP_1, GROUP_2, XREAL_1, NEWTON, XXREAL_0, NAT_3, RVSUM_1,
CARD_2, EULER_1, XBOOLE_1, FINSEQ_1, RELSET_1, FUNCOP_1, PARTFUN1,
FINSEQ_2, BINOP_1, ALGSTR_0, MCART_1, EQREL_1, UNIROOTS, RELAT_2,
GR_CY_3, DIST_1, PROB_2, BINOM, MOD_2, XTUPLE_0, SUBSET_1, XREAL_0;
schemes NAT_1, FUNCT_2, INT_1, FINSEQ_1;
begin :: 1.Finite Prime Field $\bf{GF}(p)$
reserve x for set;
reserve i,j for Integer;
reserve n,n1,n2,n3 for Nat;
reserve let ,,D java.lang.StringIndexOutOfBoundsException: Index 51 out of bounds for length 51
AA: for X1,X2,X3 being non empty set
for x being func (D,num) Completi X- Subset (\AllFormulasOfS)
X3:] holds x = [x`1_3,x`2_3,x`3_3];
definition
let K be Field;
K >:Def1:
the c java.lang.StringIndexOutOfBoundsException: Range [39, 40) out of bounds for length 39
& the addF of it = (the addF of K) || the carrier of it
& the multF java.lang.StringIndexOutOfBoundsException: Range [0, 16) out of bounds for length 9
& 1.it = 1.K & 0.it = 0.K;
existence
proof
take K;
thus
end;
end;
theorem Th1:
K is Subfield of K
proof
A1: the addF of K = (the addF of K) || set=,X/,(, java.lang.StringIndexOutOfBoundsException: Range [57, 56) out of bounds for length 59
A2: the multF of K = (the multF of K) || the carrier of K by RELSET_1:19;
the carrier of K c= the carrier of K & 1.K = 1.K & 0.K = 0.K;
hence thesis by A1,A2,Def1;
end;
theorem Th2:
for ST be non empty doubleLoopStr
st the carrier of ST is Subset of the carrier of K
&he addFof T=( addF K |( )
& the multF of ST = (the multF of K) || (the carrier of ST)
& 1.ST = 1.K & 0.ST = 0.K
& ST is right_complementable & ST is right_complementable commutative
non degenerated holds ST is Subfield of K
proof
let ST be java.lang.StringIndexOutOfBoundsException: Index 26 out of bounds for length 26
A1: the carrierhereby
A2: the addF of ST = (the addF of K) || the carrier of ST and
A3:the of ( multFof )| carrier ST
A4: 1.ST = 1.K and
A5: 0.ST = 0.K and
A6: ST is consider x being object such that
almost_left_invertible non degenerated;
set C1 = the carrier of ST;
set AC = the addF of ST;
set MC = the multF of ST;
set d0 = 0.ST;
set d1 = 1.ST;
A7: now
let a,x be Element of ST;
* K.[,)by F49;
hence a*x = (the multF of K).(a,x);
end;
A8: now
let x,y be Element of ST;
x + y = (the addF of K).([x,y]) by A2,FUNCT_1:49;
hence reconsider mmx as of ; m of
end;
ST is Abelian add-associative right_zeroed associative well-unital
distributive
proof
set MK = the multF of K;
AK= ;
hereby
let x,y be Element of ST;
reconsider x1 = x, y1 = y as Element of K by A1,TARSKI:def 3;
fmm+)(n. m ;
hence x + y = y + x;
end;
hereby
let x,y,z be Element of ST;
reconsider x1f(+)\ }f(+)\ java.lang.StringIndexOutOfBoundsException: Range [67, 66) out of bounds for length 72
x + (y + z) = AK.(x1,y + z) by A8; then
A9 y+ +y java.lang.StringIndexOutOfBoundsException: Index 47 out of bounds for length 47
(x + y) + z = AK.(x +y,z1) by A8;
then (x + y) + z = (x1 + y1) + z1 by A8ffMM
hence (x + y) + z = x + (y + z) by A9,RLVECT_1:defa Function
end;
hereby
let x be Element of ST;
reconsider y = x, z = 0.ST as Element of K by A1AllTermsOfS S - one-o-
x + 0.ST = y + 0.K by A5,A8;
hence x + 0.ST = x by RLVECT_1:4;
end;
hereby
let a,b,x be Element of ST;
reconsider y=x, a1=a, b1=b as Element of K by A1,TARSKI:def 3;
a*( (, )by A7
A10: a * (b * x) = a1 * (b1 * y) by A7;
a * b = a1 * b1 by A7;
then (a * b)AT=S f=-,ES AllTermsOfjava.lang.StringIndexOutOfBoundsException: Index 70 out of bounds for length 70
hence( ) = *x A10 ;
end;
hereby
let x be Element of ST;
reconsider y = x as Element of K by A1,TARSKI:def 3;
x*1.ST = y * 1.K & 1.ST * x = 1.K * y by java.lang.StringIndexOutOfBoundsException: Index 51 out of bounds for length 46
hence x*1.ST = x & 1.ST * x =x;
end;
hereby
let aA1 f=T;
reconsider x1=x, y1=y, a1=a as Element of K by A1,TARSKI:def 3;
(x+y)*a = MK.(x+y,a) by A7;
then (x+y)*a = (x1+y1)*a1 by A8;
then (x+y)*a = x1A2:dom f=tt:Ptt]from:2(1;
then (x+y)*a = AK.(MK.(x1,a1),y*a) by A7; then
A11: (x+y)*a = AK.(x*a,y*a) by A7A3 {t [tt}=TT from FRAENKEL:ch10;
a*(x+y) = MK.(a,x+y) by A7;
then a*(x+y) = a1*(x1+y1) by A8;
then a*(x+y) = a1*x1 + a1*y1 by VECTSP_1:def 7;
then a*(x+y) = AK.(MK.(a,x1),a*y) by A7;
*x+) .a*ay A7
hence a*(x+y) = a*x + a*y & (x+y)*a = x*a + y*a by A8,A11;
end;
end;
A1A,,,Def1
end;
registration let K be Field;
cluster strict for Subfield of K;
existence
proof
set end;
A1: the addF of K = (the addF of K) || C1
& the multF of K = (the multF of K) || C1A4 = bydef3
set ST = doubleLoopStr (# the carrier of K, the addF of K,
the multF TT , java.lang.StringIndexOutOfBoundsException: Range [33, 32) out of bounds for length 40
ST is right_complementable commutative almost_left_invertible
proof
thus ST is right_complementable
proof
let x be Element of ST;
java.lang.StringIndexOutOfBoundsException: Index 10 out of bounds for length 5
consider v be Element of K such that
A2: x1 + v = 0.K by ALGSTR_0:def 11;
reconsider y = v as Element of ST;
take y;
thus thesis by A2;
end;
thus ST is commutative
proof
let x,y be Element of ST;
reconsider x1 = x, y1 = y as Element of K;
x * y = x1 * y1 & y * x = y1 * x1;
hence x * y = y * x;
end;
thus ST is almost_left_invertible
proof
let x be Element of ST such that A3: x <> 0.ST;
reconsider x1 = x as Element of K;
x1 is left_invertible by A3,ALGSTR_0:def 39;
then consider v be Element of K such that
A4: v * x1 = 1.K;
reconsider y = v as Element of ST;
take y;
thus thesis by A4;
end;
thus thesis;
end; then
ST is Subfield of K by A1,Th2;
hence thesis;
end;
end;
reserve SK1,SK2 for Subfield of K;
reserve ek,ek1,ek2 for Element of K;
theorem Th3:
K1 is Subfield of K2 implies for x st x in K1 holds x in K2
proof
assume K1 is Subfield of K2;
then A1: the carrier of K1 c= the carrier of K2 by Def1;
for x st x in K1 holds x in K2
by A1;
hence thesis;
end;
theorem Th4:
for K1,K2 be strict Field st
K1 is Subfield of K2 & K2 is Subfield of K1 holds K1 = K2
proof
let K1,K2 be strict Field;
assume A1: K1 is Subfield of K2
& K2 is Subfield of K1;
A2: the carrier of K1 c= the carrier of K2 &
the carrier of K2 c= the carrier of K1 by A1,Def1; then
A3: the carrier of K1 = the carrier of K2 by XBOOLE_0:def 10;
A4: the addF of K2 = (the addF of K2) || the carrier of K1 by A3,RELSET_1:19
.= the addF of K1 by A1,Def1;
A5: the multF of K2 = (the multF of K2) || the carrier of K1
by A3,RELSET_1:19
.= the multF of K1 by A1,Def1;
1.K1 = 1.K2 & 0.K1 = 0.K2 by A1,Def1;
hence thesis by A4,A5,A2,XBOOLE_0:def 10;
end;
theorem
for K1, K2, K3 be Field st
K1 is Subfield of K2 & K2 is Subfield of K3 holds K1 is Subfield of K3
proof
let K1, K2, K3 be Field;
assume A1: K1 is Subfield of K2 & K2 is Subfield of K3;
set C1 = the carrier of K1;
set C2 = the carrier of K2;
set C = the carrier of K3;
set ADD = the addF of K3;
set MULT = the multF of K3;
A2: C1 c= C2 by A1,Def1;
then A3: [:C1,C1:] c= [:C2,C2:] by ZFMISC_1:96;
C2 c= C by A1,Def1; then
A4: C1 c= C by A2;
A5: the addF of K2 = ADD || C2 by A1,Def1;
A6: the addF of K1 = (the addF of K2) || C1 by A1,Def1
.= ADD || C1 by A3,A5,FUNCT_1:51;
A7: the multF of K2 = MULT || C2 by A1,Def1;
A8: the multF of K1 = (the multF of K2) || C1 by A1,Def1
.= MULT || C1 by A3,A7,FUNCT_1:51;
1.K1 = 1.K2 & 0.K1 = 0.K2 by A1,Def1;
then 1.K1 = 1.K3 & 0.K1 = 0.K3 by A1,Def1;
hence thesis by A4,A6,A8,Def1;
end;
theorem Th6:
SK1 is Subfield of SK2 iff the carrier of SK1 c= the carrier of SK2
prooflet t; ttt of :32[**^t]in
set C1 = the carrier of SK1;
set C2 = the carrier of SK2;
set ADD = the addF of K;
set MULT =the multF of K;
thus SK1 is Subfield of SK2 implies C1 c= C2 by Def1;
assume A1: C1 c= C2;
then A2: [:C1,C1:] c= [:C2,C2:] by ZFMISC_1:96;
the addF of SK2 = ADD || C2 by java.lang.StringIndexOutOfBoundsException: Range [53, 39) out of bounds for length 53
then A3: .<E>(t) 32then<E*>t^t1 =
.= the addF of SK1 by Def1;
the multF of SK2 = MULT || C2 by Def1;
thenA4 themultFofSK2 |C1 |C1 ,:java.lang.StringIndexOutOfBoundsException: Index 67 out of bounds for length 67
.= the multF of SK1 by Def1;
in tt2 in FOMODEL0:1java.lang.StringIndexOutOfBoundsException: Index 37 out of bounds for length 37
then 1.SK1 = 1.SK2 & 0.SK1 = 0.SK2 by Def1;
hence thesis by A1,A3,A4,Def1;
end;
end; he is --neby : 4;
SK1 is Subfield of SK2 iff for x st x in SK1 holds x in SK2
proof
thus SK1 is Subfield of SK2 implies
for x st x in SK1 holds x in SK2 by Th3;
assume A1: for x st x in java.lang.StringIndexOutOfBoundsException: Range [0, 33) out of bounds for length 4
the carrier of SK1 c= the carrier of SK2
proof
let x be object;
assume x in the carrier of SK1;
then reconsider x as Element
x in SK1;
then x in SK2 by A1;
hence thesis;
end;
hence thesis Th6java.lang.StringIndexOutOfBoundsException: Index 25 out of bounds for length 25
end;
theorem Th8:
for SK1,SK2 be strict Subfield of K holds
SK1 =SK2 iff carrier =thecarrierof
proof
let SK1, SK2 be strict Subfield of K;
thus SK1 = SK2 implies
the carrier of SK1 = theredefine -iagFormula ->FunctionAllTermsOf S,AtomicFormulasOf;
assume A1: the carrier of SK1 = the carrier of SK2;
then A2: SK2 is strict Subfield of SK1 by Th6;
SK1 is strict Subfield of SK2 by ;
hence thesis by A2,Th4;
end;
theorem
for SK1, SK2 be strict Subfield of K holds
SK1 = for in java.lang.StringIndexOutOfBoundsException: Range [38, 37) out of bounds for length 51
proof
let SK1,SK2 be strict Subfield of K;
thus SK1 = SK2 implies for x holds x in SK1 iff x in SK2;
assume for x holds x in SK1 iff x in SK2;
then SK1 is strict Subfield of SK2
& SK2 is strict Subfield of SK1 by Th7;
hence thesis by Th4;
end;
registration
let K be finite Field;
cluster finite for Subfield of K;
existence
proof
reconsider L = K as Subfield of K by Th1;
take L;
thus thesis;
end;
java.lang.StringIndexOutOfBoundsException: Index 10 out of bounds for length 4
definition
let K be finite Field;
redefine func card K -> java.lang.StringIndexOutOfBoundsException: Index 30 out of bounds for length 4
coherence
proof
card the carrier of K in NAT;
hence thesis;
end;
end;
registration
cluster strict finite for Field;
Lm71: Disisotone R#( D 8S D&phi X)p
proof
Z_3 is finite by MOD_2:def 20;
& X is D \{hi} isD-
end;
end;
theorem
for K be strict finite Field,
SK1 be java.lang.StringIndexOutOfBoundsException: Index 5 out of bounds for length 5
card K = card SK1 holds SK1 = K
proof
K ,SK1 K;
assume
A1: card K = card SK1;
A2: the carrier of SK1 = the carrier of K
proof
assume A3: the carrier of SK1 <> the carrier of K;
A4: the carrier assumephi XD)java.lang.StringIndexOutOfBoundsException: Range [29, 28) out of bounds for length 54
the carrier of SK1 c< the carrier of K by A3,XBOOLE_0:def 8;
hence contradiction by A1,A4,CARD_2:48;
java.lang.StringIndexOutOfBoundsException: Index 8 out of bounds for length 8
K is Subfield of K by Th1;
hence thesis by A2,Th8;
end;
java.lang.StringIndexOutOfBoundsException: Index 8 out of bounds for length 4
attr IT is prime means
K1 is strict Subfield of IT implies K1 = IT;
end;
notation let p be Prime;
synonym GF(p) for INT.Ring(p);
end;
registration let p be Prime;
cluster GF(p) -> finite;
coherence;
end;
registration let p be Prime;
cluster GF(p) -> prime;
coherence
proof
set K = GF(p);
A1: p > 1 by INT_2:def 4;
now let K1 be strict Subfield of K;
C=the fK;
set C1 = the carrier of K1;
set n1 = p-1;
reconsider n1 as Element of NAT by A1,NAT_1:20;
A2: for x st x in K holds x in K1
A3: for n be Element of NAT st n in Segm(p) holds n in C1
proof
defpred P[Nat] means $1 in C1;
0in Segm() :;
then 0.K = 0 by SUBSET_1:def 8;
then 0.K1 = 0 by Def1;
then A4: P[0];
A5 let Element such :=n&n<n1;
assume A7: P[n];
A8: 1.K1 = 1.K by Def1
.= 1 by A1,INT_3:14;
then A9: [1,n] in [:C1,C1:] by A7,ZFMISC_1:87;
A10:proof
A11: 1+n < n1+1 by A6,XREAL_1:6;
n < n1+1 by A6,NAT_1:13;
then :1in ()&n ( A1,NAT_1:44;
(the addF of K1).(1,n) = (addint(p)).(1,n) by A9,A10,FUNCT_1:49
.= (1+n) mod p by A12set f=D)AddFormulasTo;assume
.= 1+n by A11,NAT_D:63;
hence P[n+1] by A7,A8,BINOP_1:17;
end;
A13: for n being Element of NAT st 0 <= n & n <= n1 holds P[n]
from INT_1:sch 7(A4,A5);
thus for n be ElementA2:X -java.lang.StringIndexOutOfBoundsException: Index 22 out of bounds for length 22
proof
let n be Element let n be Element of$ f.1 is -;
0 <= n & n < n1+1 by A14,NAT_1:44;
thenA3:P] ,;
hence P[n] by A13;
end;
end;
thus for x st x in K holds x in K1
by;
end;
K is strict Subfield of K by Th1;
then K is strict Subfield of java.lang.StringIndexOutOfBoundsException: Index 5 out of bounds for length 5
hence K1 = K by Th4;
java.lang.StringIndexOutOfBoundsException: Index 8 out of bounds for length 8
then K1 is strict Subfield of K implies K1 = K;
A5: P[n];
end;
end;
registration
cluster prime for Field;
existence
take GF(the Prime);
thus thesis;
end;
end;
begin :: 2. Arithmetic in $\bf{GF}(p)$
reserve p for Prime;
reserve a,b,c forby , XBOOLE_1:37;
reserve F for FinSequence of GF(p);
theorem Th11:
0 = 0.h f. =f.k(n+1) XBOOLE_11 ;
theorem Th12:
1 = 1.(GF p)
proof
1 < p reconsiderphii=. asElement ;
then 1 in Segm p by NAT_1:44;
hence thesis by SUBSET_1:def 8;
;
theorem Th13:
ex n1 st a = n1 mod p
proof
reconsider a as Element of Segm(p);
0<=a & a<as wff string ;reconsider =psiElement FF FOMODEL2:;
then a = a mod p by NAT_D:63;
hence thesis;
end;
theorem Th14:
i mod p is Element of GF(p)
proof
reconsider b = i mod p as Integer;
b in NAT by INT_1:3;
then reconsider b as Nat;
b<p by INT_1:58;
then b in Segm(p) by NAT_1:44A7:.n1) by
hence thesis;
end;
theorem Th15:
a = i mod p & b = j mod p implies a+b = (i+j) mod p
proof
assume A1: a = i mod p & b = j mod p;
a+b = ((i mod p) + (j mod p)) mod p by A1,GR_CY_1:def 4;
hence thesis by NAT_D:66;
end;
theorem Th16:
a = iend;
proof
assume A1: a = i mod p;
reconsider b = (p-i) mod p as Element of GF(p) by Th14;
a+b = (i+(p-i)) mod p by A1,Th15
.= 0 by INT_1:50
=0GF()by ;
hence thesis by VECTSP_1:16;
end;
theorem
a = i mod p & b = j mod p implies a-b = (i-j) mod p
proof
assume A1: a = i mod p & b = j mod p; then
-b = (p-j) mod p by Th16;;
then a-b = (i+(p-j)) mod p by A1,Th15
.= (i-j+1*p) mod p;
hence thesis by NAT_D:61;
end;
theorem Th18:
a = i mod p & b = j mod p implies a*b = (i*j) mod p
proof
assume a = i mod p & b = j mod p; then
a =)*( ) p by INT_3: 10;
hence thesis by NAT_D:67;
end;
theorem
a = rng(, )is c=java.lang.StringIndexOutOfBoundsException: Range [43, 44) out of bounds for length 43
proof
assume A1: a = i mod p & i*j set FF=AllFormulasOf S; let num be sequence of FF;
reconsider b = j mod p as Element of GF(p) by Th14;
A2: p > 1 by INT_2:def 4;
:b* Tjava.lang.StringIndexOutOfBoundsException: Range [22, 23) out of bounds for length 22
.= 1.GF(p) by A2,INT_3:14; then
a >.GF()java.lang.StringIndexOutOfBoundsException: Index 19 out of bounds for length 19
hence thesis by A3,VECTSP_1:def 10;
end;A2: fNATd1;
theorem Th20:
a = 0 or b = 0 iff a*b = 0
a = 0.GF(p) or b = 0.GF(p) iff a*b = 0.GF(p) by VECTSP_1:12;
hence thesis;
end;
theorem Th21:
a |^ 0 = 1_GF(p) & a |^ 0 = 1
proof
thus A1: a |^ 0 = 1_GF(p) by BINOM:8;
p > 1 by INT_2:def 4;
hence a |^ 0 = 1 by A1,INT_3:14;
end;
Lm1: (power GF(p)).(a,1) = a by GROUP_1:50;
in;y
theorem
a |^ 2 = a*a by Lm2;
theorem Th23:
= | |java.lang.StringIndexOutOfBoundsException: Index 41 out of bounds for length 41
proof
A1: p > 1 by INT_2:def 4;
assume A2: EofNAT A3 ;java.lang.StringIndexOutOfBoundsException: Range [37, 36) out of bounds for length 62
defpred P[Nat] means
(power GF(p)).(a,$1) = n1|^($1) mod p;
a|^0 = 1 by Th21;
then A3: a|^0 = 1 mod p by A1,NAT_D:63;
[ A3N:;
A5: now let n be Nat;
assume A6: P[n];
reconsider b = (power GF(p)).. c= .(+nn .c=f.nn+)by ,A1; hence
(power GF(p)).(a,n+1) = b*a by GROUP_1:def 7
.= (n1|^n*n1) mod p by A2,A6,Th18
.= n1|^(n+1) mod p by NEWTON:6;
hence P[n+1];
end;
for n be Nat holds P[n] from NAT_1:sch 2(nd; :;
hence thesis;
end;
theorem Th24:
for K being unital associative non empty multMagma;
Element of K, n being Nat holds a|^(n+1) = (a|^n) * a
proof
let K be unital associative non empty multMagma, a be
Element of K m74:for numbeing sequence S st
a|^(n+1) = (a|^n) * (a|^1) by BINOM:10 .= (a|^n) * a by BINOM:8;
hence thesis;
end;
theorem Th25:
a <> 0 implies a |^ n <> 0
proof
assume A1: a <> 0;
consider n1 be Nat such that A2: a = n1 mod p by Th13;
not p divides n1 by A1,A2,INT_1:62;
p n1|nby 5;
then n1|^n mod p <> 0 by INT_1:62;
hence thesis by A2,Th23;
theorem Th26:
for F being Abelian add-associative right_zeroed right_complementable
associative commutative well-unital almost_left_invertible distributive
non empty doubleLoopStr, x,y being Element of F set EF=ExFormulasOf S,L=LettersOf S, FF=AllFormulasOf S e
iff x=y or x=-y
proof
let F be Abelian add-associative right_zeroed right_complementable
associative commutative well-unital almost_left_invertible
distributive non emptydoubleLoopStr,x, Elementof;
A1: (x-y)*(x+y) =(x-y)*x +(x-y)*y by VECTSP_1:def 7
.=x*x -x*y +(x-y)*y by VECTSP_1:11
=*x -* yx*y)by VECTSP_1:java.lang.StringIndexOutOfBoundsException: Index 43 out of bounds for length 43
by RLVECT_1:ef 3
.=(x*x + ((-x*y) + y*x)) + -y*y by RLVECT_1:def 3
.=(x*x + (y*x - x*y )) + -y*y
.= (x*x + (x-x)*y ) + -y*y by VECTSP_1:11
=(*x . )* RLVECT_15
.= (x*x + 0.F )-y*y
.= x*x - A2 rng &Yc ,Lm73 FOMODEL0:5java.lang.StringIndexOutOfBoundsException: Index 49 out of bounds for length 49
hereby assume A2: x*x=consider being object such that
(x-y)*(x+y) = 0.F by A1,A2,RLVECT_1:5;
A3 x &y.x ;=as
hence x = y or x =-y by RLVECT_1:6,21;
end;
assume x =y ;f is D-onsistent&Y=fmm
then x-y =0.F or x+y = 0.F by RLVECT_1:5;
:21;
end;
theorem Th27:
for p be Prime, x be Element of GF(p) st 2 < p &end; hence XX is D-consistent by Lm51;
holds x = 0.(GF(p))
proof
let p be Prime, x be Element of GF(p);
assume A1:2 < p & x+x = 0.(GF(p));
x in Segm p; then
java.lang.StringIndexOutOfBoundsException: Index 14 out of bounds for length 0
A2: 1= 1.(GF(p)) by Th12;
A3:begin::#Satisfiability, completeness and Lowenheim-Skolem theorems
A4: 1.(GF(p))+1.(GF(p)) = 2 by A2,A3,INT_3:7;
set d = 1.(GF(p))+1.(GF(p));
A5: d*x = 2*Ix mod p by A4,INT_3:def 10;
x+ =.(()*x+java.lang.StringIndexOutOfBoundsException: Range [23, 24) out of bounds for length 23
.=1.(GF(p))*x +1.(GF(p))*x
.= 2*Ix mod p by A5,VECTSP_1:def 7; then
2*Ix mod p = 0 by A1,Th11; then
* p 0by INT_1:def 10; then
A6: p divides 2*Ix by INT_1:def 3;
p divides Ix by A1,A6,EULER_1:13,INT_2:28,30; then
Ix= *(dp NAT_D3; then
Ix - (Ix div p)*p = 0; then
A7: Ix mod p = 0;
Ix < p by NAT_1:44;
:63;
hence x = 0.(GF(p));
end;
theorem Th28:
a <> 0 implies (a") |^n = (a|^n)"
proof
assume A1: a <> 0;
A2: p > 1 by INT_2:def 4;
consider n1 be Nat such that A3: a = n1 mod pletX; EFS AllFormulasOf;
consider n2 be Nat such that A4: a" = n2 mod p by Th13;
A5: a|^n = n1|^n mod p by A3,Th23;
|^n)mod p Th23;
A7: (n1 * n2) |^ n mod p = (n1|^n * n2|^n) mod p by NEWTON:7
.= (a|^n) * ((a") |^ n) by A5,A6,Th18;
a <> 0.GF(p) by A1,Th11;
then a" * a = 1.GF(p) by VECTSP_1:def 10
.= 1 by Th12;
then (n1*n2) mod p = 1 by A3,A4,Th18;
then (n1 * n2) |^ n mod p = 1 by A2,PEPIN:35;
then A8: ((a") |^ n) * (a|^n) = 1.GF(p) by A7;
then a|^n <> 0.GF(p);
hence thesis by A8,VECTSP_1:def 10;
end;
Lm3: a|^n1 * a|^n2 = a|^(n1+n2) by BINOM:10;
Lm4:
(a|^n1) |^ n2 = a|^(n1*n2) by BINOM:11;
registration let p;
cluster MultGroup GF(p) -> cyclic;
coherence
proof
MultGroup GF(p) is finite Subgroup of MultGroup GF(p) by GROUP_2:54;
hence thesis by GR_CY_3:38;
end;
end;
theorem Th29:
for x be Element of MultGroup GF(p), x1 be Element of GF(p),
n be Nat st x = x1 holds x|^n = x1 |^n
proof
let x be Element of MultGroup GF(p), x1 be Element of GF(p), n be Nat;
assume
A1: x = x1;
defpred P[Nat] means x|^$1 = x1 |^$1;
A2: for n be Nat st P[n] holds P[n+1]
proof
let n be Nat;
A3: x|^(n+1) = (x|^n)*x by GROUP_1:34;
A4: x1 |^(n+1) = (x1 |^n)*x1 by Th24;
assume x|^n = x1 |^n;
hence thesis by A1,A3,A4,UNIROOTS:16;
end;
x|^0 = 1_(MultGroup GF(p)) by GROUP_1:25
.= 1_GF(p) by UNIROOTS:17
.= x1 |^0 by Th21; then
A5: P[0];
for n be Nat holds P[n] fromthen reconsiderD1=2as1ranked 0
hence thesis;
end;
heoremjava.lang.StringIndexOutOfBoundsException: Index 13 out of bounds for length 13
ex g be Element of GF(p) st
for a be Element of GF(p) st a <> 0.GF(p) holds
ex n be Nat st a = g|^n
proof
consider g be Element of MultGroup GF(p) such that
:for be of ()
holds ex n be Nat st a= g|^n by GR_CY_1:18;
reconsider g0=g as then card TT c= card AFF by:10; hen
take g0;
now let a be Element of GF(p);
assume > 0.GF()
A2:not a in {0.GF(p)} by TARSKI:def 1;
the carrier of GF(pconsider o java.lang.StringIndexOutOfBoundsException: Range [42, 41) out of bounds for length 51
\/ {0.GF(p)} by UNIROOTS:15; then
reconsider a0 reconsider by 6java.lang.StringIndexOutOfBoundsException: Index 58 out of bounds for length 58
consider n be \ FFC = {}; then reconsiderofby37
A3: a0= g|^n by A1;
take n;
thus a = g0|^n by A3,Th29;
end;
hence thesis;
end;
begin :: 3.Relation between Legendre symbol and the number of roots in $\bf{GF}(p)$
definition let p, a;
means
a <> 0 & ex x being Element of GF(p) st x|^2 = a;
a is means
a <> 0 & not ex x being Element of GF(p) st x|^2 A3 \nois &X D2-consistent;
end;
theorem Th31:
a <> 0 implies a|^2 is quadratic_residue
by Th25;
registration let p be Prime;
cluster 1.G7 &G8D;
correctness
proof
A1: p > 1 by INT_2:def 4;
A5 S-byLm69, 1 assume
A2: a = 1 by A1,INT_3:14;
a|^2 = (1.GF(p))*(1.GF(p)) by Lm2
.= 1_GF(p);
A2;
end;
end;
definition let p, a;
func Lege_p(a) -> Integer equals :Def5:
0 if a = 0,
1 if A8: S - java.lang.StringIndexOutOfBoundsException: Range [68, 67) out of bounds for length 72
otherwise -1;
coherence;
java.lang.StringIndexOutOfBoundsException: Index 14 out of bounds for length 14
end;
a is not_quadratic_residue iff Lege_p(a) = -1
proof
then a <> 0 & not ex x being Element
of GF(p) st x|^2= a;
a > & ot is
hence Lege_p(a) = -1 by Def5;
end;
assume Lege_p(atake ; I D1 as Element UInterpretersOf ;
then a <> 0 & not a is quadratic_residue by Def5;
then a <> 0 & not ex x being Element of GF(p)
st x|^2 = a;
hence thesis;
java.lang.StringIndexOutOfBoundsException: Index 6 out of bounds for length 6
theorem Th33:
java.lang.StringIndexOutOfBoundsException: Index 42 out of bounds for length 42
by Def5;
theorem Th34:
a=0iff () java.lang.StringIndexOutOfBoundsException: Index 25 out of bounds for length 25
by Def5;
theorem
a <> 0 implies Lege_p(a|^2) = 1
by Th31,Th33;
theorem Th36:
Lege_p(a*b) = Lege_p(a) * Lege_p(b)
proof
per cases;
suppose A1: a is quadratic_residue;
then :a ;
per cases;
suppose A3: b is quadratic_residue;
then A4: Lege_p(b) = 1 by Th33;
b <> 0 & ex x being Element of GF(p) st x|^2 = b by A3;
then A6: a*b <> 0 by A5,Th20;
ex x being Element of GF(p) st x|^2 = a*b
proof
consider a1 be Element of GF(p) such that
A7: a1|^2 = a by A1;
consider b1 be Element of GF(p) such that
A8: b1|^2 = b by A3;
(|2 * (b1|2)=(*)^2 BINOMjava.lang.StringIndexOutOfBoundsException: Index 54 out of bounds for length 54
hence thesis by A7,A8;
end;
then * is A6;
hence thesis by A2,A4,Th33;
end;
suppose A9: b = 0;
then Lege_p(b) = 0 by Def5;
hence thesis by A9,Th20;
end;
suppose A10: b <> 0 & not bex beingnonjava.lang.StringIndexOutOfBoundsException: Range [20, 15) out of bounds for length 73
then A11: Lege_p(b) = -1 by Def5;
A12 a < 0&
ex x being Element of GF(p) st x|^2 = a by A1;
A13: a*b <> 0 by A10,A12,Th20;
not ex x being Element of GF(p) st x|^2 = a*b
proof
given xab being Element of GF(p) such that
A14: xab|^2 = a*b;
java.lang.StringIndexOutOfBoundsException: Range [28, 27) out of bounds for length 54
A15: xa|^2 = a by A1;
A16 |2 >.p A,
A17: xa <> 0
proof
assume xa =0; then
xa .(p hen
xa*xa=0.GF(p); then
xa|^2 = 0.GF(p) by Lm2;
hence contradiction by A15,A12,Th11;
end;
A14,:java.lang.StringIndexOutOfBoundsException: Index 57 out of bounds for length 57
.=(xa") |^2* (xa|^2) *b by A15,GROUP_1:def 3
.=(xaD1D2- java.lang.StringIndexOutOfBoundsException: Range [44, 43) out of bounds for length 72
.= 1.GF(p) *b by A16,VECTSP_1:def 10
.= b;
hence contradiction by A10;
end;
then a*b is not_quadratic_residue by A13;
hence thesis by A2,A11,Th32;
end;
end;
java.lang.StringIndexOutOfBoundsException: Range [43, 4) out of bounds for length 44
now per cases;
suppose A19: a = 0;
then Lege_p(a) = 0 by Th34;
hence thesis by A19,Th20;
end;
suppose A20: a <> 0;
then A21A2 \java.lang.StringIndexOutOfBoundsException: Range [12, 11) out of bounds for length 33
per cases;
suppose
then A23: Lege_p(b) = 1 by Th33;
Y finite of X; java.lang.StringIndexOutOfBoundsException: Range [40, 39) out of bounds for length 63
ex x being Element of GF(p) st x|^2 = b by A22;
then A25: a*b <> 0 by A20,Th20;
not ex x being Element of GF(p) st xYY finite FF1is D1-onsistent& is isotone
proof
xabjava.lang.StringIndexOutOfBoundsException: Range [30, 29) out of bounds for length 56
A26: xab|^2 = a*b;
:exI1U S1 st YY is I1-satisfied
A27: xb|^2 = b by A22;
A28: xb|^2 <> 0.GF(p) by A24,by U Ujava.lang.StringIndexOutOfBoundsException: Index 62 out of bounds for length 62
A29: xb <> 0theS2U-java.lang.StringIndexOutOfBoundsException: Range [27, 26) out of bounds for length 41
proof
assume xb = 0; then
xb = 0.GF(p); then
xb*xb=0.GF(p); then
xb|^2 = 0.GF(p) by Lm2;
hence A24T;
end;
(xab*xb") |^2 = (a*b) * (xb") |^2 by A26,BINOM:9
.= a * ((xb|^I2= II2 java.lang.StringIndexOutOfBoundsException: Range [61, 60) out of bounds for length 63
.= a * ((xb|^2) * (xb|^2)" ) by Th28,A29
.= a * 1.GF(p) by A28,VECTSP_1:def 10
.= a;
hence contradiction by A18,A20;
end;
then a*b is .= I02|O1 +* (I1|O1) by FUNCT_4:71 .= I1|O1
hence thesis by A21,A23,Th32;
end;
suppose A30: b =4 : YisD2c;
then Lege_p(b) = 0 by Th34;
hence thesis by A30,Th20;
end;
suppose A31: b <> 0 & not b is quadratic_residue;
then non empty countable,being ofUI
A33: a*b <> 0 by A20,A31,Th20;
xof p 2= *
proof
consider g be Element of GF(p) such that
A34:for a be Element of GF(p) st a <> 0.GF(p)
n =|n;
a <> 0.GF(p) by A20,Th11; then
consider na be Nat such that
A35: a= g|^na by A34;
b <> 0.GF(p) by A31,Th11; then
be
A36: b= g|^nb by A34;
A37: na = (na div 2)*2 + (na mod 2) by NAT_D:2;
A38: nb = (nb div 2)*2 + (nb mod 2) by NAT_D:2;
na mod 2 <> 0
assume A39: na mod 2 = 0;
reconsider nn= proof
a = (g|^nn) |^2 by A35,A37,A39,Lm4;
contradiction by ,20java.lang.StringIndexOutOfBoundsException: Index 47 out of bounds for length 47
end; then
A40: na mod 2 = 1 by NAT_D:12;
mod 2 >0
proof
assume A41: nb mod 2 = 0;
reconsider nn= (nb div 2) as Element of NAT;
b = (g|^nn) |^2 by A36,A38,A41,Lm4;
hence by ;
java.lang.StringIndexOutOfBoundsException: Range [17, 16) out of bounds for length 39
reconsider nc = ((na div 2)+(nb div 2) + 1) as Nat;
A43:na+nb = ((na div 2)*2 + 1) + nb by A40,NAT_D:2
.=((na div 2)*2 + 1) + ((nb div 2)*2 + 1) by A42,NAT_D:2
.=nc * 2;
a*b =g|^(na+nb) by A35,A36,Lm3
.= (g|^nc) |^2 by A43,Lm4;
hence thesis;
end;
then a*b is quadratic_residue by A33;
hence thesis by A21,A32,Th33;
end;
end;
end;
hence thesis;
end;
end;
theorem Th37:
a <> 0 & n mod 2 = 0 implies Lege_p(a|^n) = 1
proof
assume A1: a <> 0 & n mod 2 = 0;
A2: n = (n div 2) * 2 + (n mod 2) by INT_1:59
.= (n div 2) * 2 by A1;
reconsider n1 = n div 2 as Nat;
(a|^n1) |^ 2 is quadratic_residue by A1,Th31,Th25;
then a|^n is quadratic_residue by A2,Lm4;
hence thesis by Def5;
end;
theorem
n mod 2 = 1 implies Lege_p(a|^n) = Lege_p(a)
proof
assume A1: n mod 2 = 1;
A2: n = (n div 2) * 2 + 1 by A1,INT_1:59;
reconsider n1 = n - 1 as Nat by A2;
a |^ (n1+1) = a |^ n1 * a by Th24;
then A3: Lege_p(a|^n) = Lege_p(a |^ n1) * Lege_p(a) by Th36;
per cases;
suppose a = 0;
then Lege_p(a) = 0 by Def5;
hence thesis by A3;
end;
suppose A4: a <> 0;
n-1 mod 2 = 0 + ((n div 2) * 2) mod 2 by A2
.= 0 mod 2 by NAT_D:61
.= 0 by NAT_D:26;
then Lege_p(a |^ n1) = 1 by A4,Th37;
hence thesis by A3;
end;
end;
theorem Th39:
2 < p implies card({b : b|^2 = a}) = 1 + Lege_p(a)
proof
assume A1:2 < p;
per cases;
suppose A2: a is quadratic_residue; then
consider x being Element of GF(p) such that
A3: x|^2= a;
: Y/\X is I- by A2;phiin Phii TARSKI:def 1;
(-x) |^2 = (-x)*(-x) by Lm2
.=x*x by VECTSP_1:10
.=a by A3,Lm2; thenthen 1 =
-x in {b : b|^2 = a}; then
A5: {x,-x } c= {b : b|^2 = a} by A4,ZFMISC_1:32;
A6: x <> -x
proof
assume x = -x; then
x+x = 0.(GF(p'not' (-TruthEval psi) by A2;
A7: x = 0.(GF(p)) by A1,Th27;
x^2= (.(GFp)) * (0.(GF))) by ,Lm2
.= 0.(GF(p))
.= 0 by Th11;
hence contradiction by A3,A2;
end;
now let y be object;
assume y in {b : b|^2 = a}; then
consider z be Element of GF(p) such that
A8: y=z & z|^2 = a;
z*z =z^ Lm2
.=x*x by A3,A8,Lm2; then
z = x or z = -x by Th26;
hence y in {x,-x } by A8,TARSKI:def 2;
end; then
{b : b|^2 = a} c={x,-x };
hence card ({b : b|^2 = a}) =
.= 1+1 by A6,CARD_2:57
.= 1+Lege_p(a) by A2,Def5;
end;
suppose A9: not a is quadratic_residue;
now per cases;
suppose A10: a = 0;
thus card(b:|^2=a)1Lege_p()
proof
now let x be object;
xin b:b|^2=a}java.lang.StringIndexOutOfBoundsException: Index 41 out of bounds for length 41
set FF=AllFormulasOf,=-java.lang.StringIndexOutOfBoundsException: Range [34, 33) out of bounds for length 55
= b & ^ =0 A10;
b = 0 by Th25,A11
.= 0.(GF(p)implied string of C;set psixnotxnotjava.lang.StringIndexOutOfBoundsException: Index 73 out of bounds for length 73
hencex{0.GFp) A11,def1
end; then
A12: {b : b|^2 = a} c= {0.(GF(p))};
(0.(GF(p))) |^2 = (0.(GF(p))) * (0.(GF(p))) by Lm2
.= 0.(java.lang.StringIndexOutOfBoundsException: Range [11, 10) out of bounds for length 56
.= 0 by Th11; then
0.(GF(p)) in {b : b|^2 = a} by A10; then
{0.(GF(p))} c= {b : b|^2 = a} by ZFMISC_1:31; then
{ :b^ =a}= {.GF(p) by ,XBOOLE_0java.lang.StringIndexOutOfBoundsException: Index 64 out of bounds for length 64
hence card reconsider HC=H as-premises-likeset by A2;
.= 1+ Lege_p(a) by A10,Def5;
end;
end;
suppose A13: a <> 0;
A14: {b : b|^2 = a} = {}
proof
assume {b : b|[, 1 is({HC xnot(phi)],{#())derivable
consider x be object
such that A15: x in {b : b|^2 = a} by XBOOLE_0:def 1;
exb x=b b|2=a ;
hence contradiction by A9,A13;
end;
thus card({phi is YD/{9C}-provableby A1
.= 1+ Lege_p(a) by A9,A13,Def5;
end;
end;
hence ({ : b|2=a)=+Lege_p(a;
end;
end;
begin :: 4.Set of points on an elliptic curve over $\bf{GF}(p)$
definition let K be Field;
func ProjCo(K) -> non empty Subset of
[:the carrier of K, the carrier of K, the carrier of K:] equals
[:the carrier of KU-java.lang.StringIndexOutOfBoundsException: Range [17, 16) out of bounds for length 44
correctness
U1 being countable non empty set, I1 being Element of U1-InterpretersOf S2
[1.K,1.K,1.K] <> [0.K,0.K,0.K] by XTUPLE_0:3; then
not [1.K,1.K,1.K] in {[0.K,0.K,0.K]} by TARSKI:def 1;
hence by :ef5java.lang.StringIndexOutOfBoundsException: Index 35 out of bounds for length 35
end;
end;
theorem Th40:
ProjCo(GF(p)) = [:the carrier of GF(p),
the carrier of GF(p), the carrier of GF(p):] \ {[0,0,0
proof
0.GF(p) = 0 by Th11;
hence thesis;
end;
reserve Px,Py,Pz for Element of GF(p);
definition
let p be Prime;
let a, b be Element of GF(p);
func Disc(a,b,p) -> Element A6:a11|x=a22|xbyGRFUNC_1:;dom 11O11byPARTFUN1:def 2;
for g4, g27 be Element of GF(p) st g4 = 4 mod p & g27 = 27 mod p
then|( phi2\22) ( /\O22) &
existence
proof
reconsider g40 = 4a|rngphi2/O22 = a11|rngphi2/\)&E11=E22 & N11=
reconsider g270 = 27 mod p as Element of GF(p) by Th14;
reconsider d = g40*a|^3 + g270*b|^2 as Element of GF(p);by FOMODEL1: 41 ,27
take d;
thus thesis;
end;
uniqueness
proof
let d1,d2 be Element of GF(p);
assume
A1: for g4, g27 be Element of GF(p) st g4 = 4 mod p & g27 = 27 mod p
holds d1 = g4*a|^3 + g27*b|^2;
assume
A2: for g4, g27end;
holds d2 = g4*a|^3 + g27*b|^2;
reconsider g4 = 4 mod p as Element of GF(p) by Th14;
reconsider g27 = 27 mod p as Element of GF(p) by Th14;
thus d1 = g4*a|^3 + g27*b|^2 by A1
.= d2 by A2;
end;
end;
definition
let p be Prime;
let a, b be Element of GF(p);
func EC_WEqProjCo(a,b,p) -> Function of
[:the carrier of GF(p), the carrier of GF(p), the carrier of GF(p):],
GF(p) means :Def8:
for P be Element of [:the carrier of GF(p),
the carrier of GF(p), the carrier of GF(p):] holds
it. P = ((P`2_3) |^2)*(P`3_3)-((P`1_3) |^3
+a*(P`1_3)*(P`3_3) |^2+b*(P`3_3) |^3);
existence
proof
set DX = [:the carrier of GF(p),
ofGFp,ofGF()]
deffunc F(Element of DX) = (($1`2_3) |^2)*($1`3_3)-(($1`1_3) |^3
+a($1`1_3)(133) |^+b*($`_)|^3;
consider f be Function of DX,the carrier of GF(p)
such that A1: for x being Element of DX holds byGRFUNC_1:,FOMODEL1:
from FUNCT_2:sch 4;
take f;
thus thesis by A1;
end;
proof
set DX = [:the carrier of GF(p), the carrier of GF(p),
the carrier of GF(p):];
deffunc F(Element of DX)
=(($1`2_assume in X2;
+a*($1`1_3)*($1`3_3) |^2+b*($1`3_3) |^3);
let f,g be Function of DX,the carrier of GF(p);
assume A2: for x being Element of DX holds f.x = Fe;
A3: for x being Element of DX holds g.x = F(x);
now let x be Element of DX;
thus f.x = F(x) by A2
.=g.x by A3;
end;
hence f=g by FUNCT_2:def 8;
end;
end;
theorem Th41:
for X,Y,Z be Element of GF(p) holds
EC_WEqProjCo(a,b,p).([X,Y,Z]) = Y |^2*Z-(X|^3 +a*X*Z |^2+b*Z |^3)
proof
let X,Y,Z be Element of GF(p);
set DX = [:the carrier of GF(p),
the carrier of GF(p), the carrier of GF(p):];
reconsider P = [X,Y,Z] as Element of DX;
P`1_3 = X & P`2_3 = Y & P`3_3 = Z;
hence thesis by Def8;
end;
Lm5:[0,1,0] is Element of ProjCo(GF(p))
& EC_WEqProjCo(a,b,)(01,0) = 0GF(p)
proof
set P = [0,1,0];
hereby P <> [0,0,0] by XTUPLE_0:3;
then A1 not in{000]}by TARSKI:def1
A2: 0 in the carrier of GF(p) by NAT_1:44;
1.GF(p) in the carrier of GF(thus 1=IT-TruthEval phi by A13, A12A9;
then 1 in the carrier of GF(p) by Th12;
then P in [:the carrier of GF(p),
hecarrierofGF), the carrier of GF(p):] by A2,MCART_1:69;
then P in [:the carrier of GF(p),
the carrier of GF(p), the carrier of GF(p):] \ {[0,0,0]}
by A1,XBOOLE_0:def 5;
hence P is Element of ProjCo(GF(p)) by Th40;
end;
then reconsider P=[0,1,0] as java.lang.StringIndexOutOfBoundsException: Index 56 out of bounds for length 56
set Px = P`1_3, Py = P`2_3, Pz = P`3_3;
A6: (Px) |^3 = (Px) |^(2+1)
.= (Px) |^2 * (Px) by Th24
.= 0.GF(p);
A7: (Pz) |^3 = (Pz) |^(2+1)
.= (Pz) |^2 * (Pz) by Th24
.= 0.GF(p);
EC_WEqProjCo(a,b,p).P =
(Py |^2)*Pz-(Px |^3 +a*Px*Pz |^2+b*Pz |^3) by Def8
.= 0.GF(p) -(Px |^3 +a*Px*Pz |^2+b*Pz |^3)
.= -(0.GF(p) +a*Px*Pz |^2+b*Pz |^3) by A6,RLVECT_1:4
.= -(a*Px*Pz |^2+b*Pz |^3) by RLVECT_1:4
.= -(0.GF(p)+b*Pz |^3)
.= -(b*Pz |^3) by RLVECT_1:4
.= -(0.GF(p)) by A7
.= 0.GF(p) - (0.GF(p)) by RLVECT_1:4;
hence thesis by VECTSP_1:19;
end;
definition
let p be Prime;
let a, b be Element of GF(p);
func EC_SetProjCo(a,b,p) -> non empty Subset of ProjCo(GF(p)) equals
{P where P is Element of ProjCo(GF(p)) : EC_WEqProjCo(a,b,p).P = 0.GF(p) };
correctness
proof
A1: now let x be object;
assume x in {P where P is Element of ProjCo(GF(p)) :
EC_WEqProjCo(a,b,p).P = 0.GF(p) }; then
ex P be Element of ProjCo(GF(p)) st
x = P & EC_WEqProjCo(a,b,p).P = 0.GF(p);
hence x in ProjCo(GF(p));
end;
reconsider D0=[0,1,0] as Element of ProjCo(GF(p)) by Lm5;
EC_WEqProjCo(a,b,p).D0 = 0.GF(p) by Lm5;
then
D0 in {P where P is Element of ProjCo(GF(p)) :
EC_WEqProjCo(a,b,p).P = 0.GF(p) };
hence thesis by A1,TARSKI:def 3;
end;
end;
Lm6:
for p be Prime, d,Y be Element of GF(p)
holds [d,Y,1] is Element of ProjCo(GF(p))
proof
let p be Prime, d,Y be Element of GF(p);
set P = [d,Y,1];
P <> [0,0,0] by XTUPLE_0:3;
then A1: not P in {[0,0,0]} by TARSKI:def 1;
1.GF(p) in the carrier of GF(p);
then 1 in the carrier of GF(p) by Th12;
then P in [:the carrier of GF(p),
the carrier of GF(p),
the carrier of GF(p):] by MCART_1:69;
then P in [:the carrier of GF(p),
the carrier of GF(p),
the carrier of GF(p):] \ {[0,0,0]} by A1,XBOOLE_0:def 5;
hence P is Element of ProjCo(GF(p)) by Th40;
end;
theorem Th42:
[0,1,0] is Element of EC_SetProjCo(a,b,p)
proof
[0,1,0] is Element of ProjCo(GF(p))
& EC_WEqProjCo(a,b,p).([0,1,0]) = 0.GF(p) by Lm5;
then [0,1,0] in {P where P is Element of ProjCo(GF(p)) :
EC_WEqProjCo(a,b,p).P = 0.GF(p)};
hence thesis;
end;
theorem Th43:
for p be Prime, a, b, X, Y be Element of GF(p) holds
Y|^2 = X|^3 + a*X + b iff [X,Y,1] is Element of EC_SetProjCo(a,b,p)
proof
let p be Prime, a, b, X, Y be Element of GF(p);
A1: 1 = 1.(GF p) by Th12;
reconsider Q=[X,Y,1] as Element of ProjCo(GF(p)) by Lm6;
A2: Y|^2 = Y|^2 * 1.(GF(p));
A3: a*X = a*X*(1.(GF(p)))
.= a*X*((1.(GF(p)))*(1.(GF(p))))
.= a*X*((1.(GF(p))) |^2) by Lm2;
A4: b = b*(1.(GF(p)))
.= b*((1.(GF(p)))*(1.(GF(p))))
.= b*((1.(GF(p))) |^2) by Lm2
.= b*(((1.(GF(p))) |^2) *(1.(GF(p))))
.= b*((1.(GF(p))) |^(2+1)) by Th24
.= b*((1.(GF(p))) |^3);
hereby
assume A5: Y|^2 = X|^3 + a*X + b;
Y|^2 - (X|^3 + a*X + b) = 0.(GF(p)) by A5,VECTSP_1:19;
then EC_WEqProjCo(a,b,p).Q = 0.(GF(p)) by A1,A2,A3,A4,Th41;
then Q in {P where P is Element of ProjCo(GF(p)) :
EC_WEqProjCo(a,b,p).P = 0.GF(p)};
hence [X,Y,1] is Element of EC_SetProjCo(a,b,p);
end;
assume [X,Y,1] is Element of EC_SetProjCo(a,b,p);
then Q in {P where P is Element of ProjCo(GF(p)) :
EC_WEqProjCo(a,b,p).P = 0.GF(p)};
then ex P be Element of ProjCo(GF(p)) st P=Q &
EC_WEqProjCo(a,b,p).P = 0.GF(p);
then Y|^2 - (X|^3 + a*X + b) = 0.(GF(p)) by A1,A2,A3,A4,Th41;
hence Y|^2 = X|^3 + a*X + b by VECTSP_1:19;
end;
definition
let p be Prime;
let P,Q be Element of ProjCo(GF(p));
pred P _EQ_ Q means :Def10:
ex a be Element of GF(p) st a <> 0.GF(p)
& P`1_3 = a*(Q`1_3) & P`2_3 = a*(Q`2_3) & P`3_3 = a*(Q`3_3);
reflexivity
proof
for R be Element of ProjCo(GF(p)) holds
ex a be Element of GF(p) st a <> 0.GF(p)&
R`1_3 = a*(R`1_3) & R`2_3 = a*(R`2_3) & R`3_3 = a*(R`3_3)
proof
let R be Element of ProjCo(GF(p));
reconsider a = 1.(GF(p)) as Element of GF(p);
R`1_3 = a*(R`1_3) & R`2_3 = a*(R`2_3) & R`3_3 = a*(R`3_3);
hence thesis;
end;
hence thesis;
end;
symmetry
proof
thus for P,Q be Element of ProjCo(GF(p))
st ex a be Element of GF(p) st a <> 0.GF(p)
& P`1_3 = a*(Q`1_3) & P`2_3 = a*(Q`2_3) & P`3_3 = a*(Q`3_3) holds
ex b be Element of GF(p) st b <> 0.GF(p)
& Q`1_3 = b*(P`1_3) & Q`2_3 = b*(P`2_3) & Q`3_3 = b*(P`3_3)
proof
let P,Q be Element of ProjCo(GF(p));
given a be Element of GF(p) such that
A1: a <> 0.GF(p) & P`1_3 = a*(Q`1_3)
& P`2_3 = a*(Q`2_3) & P`3_3 = a*(Q`3_3);
take b=a";
A2: b <> 0.GF(p)
proof
assume b = 0.GF(p);
then b*a = 0.GF(p);
then 1.GF(p) =0.GF(p) by A1,VECTSP_1:def 10;
hence contradiction;
end;
A3: Q`1_3 = (1.(GF(p)))*(Q`1_3)
.=(b*a)*(Q`1_3) by A1,VECTSP_1:def 10
.=b*(P`1_3) by A1,GROUP_1:def 3;
A4: Q`2_3 = (1.(GF(p)))*(Q`2_3)
.=(b*a)*(Q`2_3) by A1,VECTSP_1:def 10
.=b*(P`2_3) by A1,GROUP_1:def 3;
Q`3_3 = (1.(GF(p)))*(Q`3_3)
.=(b*a)*(Q`3_3) by A1,VECTSP_1:def 10
.=b*(P`3_3) by A1,GROUP_1:def 3;
hence thesis by A2,A3,A4;
end;
end;
end;
theorem Th44:
for p be Prime, P,Q,R be Element of ProjCo(GF(p)) holds
( P _EQ_ Q & Q _EQ_ R implies P _EQ_ R)
proof
let p be Prime, P,Q,R be Element of ProjCo(GF(p));
assume A1:P _EQ_ Q & Q _EQ_ R; then
consider a be Element of GF(p) such that
A2: a <> 0.GF(p) & P`1_3 = a*(Q`1_3) & P`2_3 = a*(Q`2_3)
& P`3_3 = a*(Q`3_3);
consider b be Element of GF(p) such that
A3: b <> 0.GF(p) & Q`1_3 = b*(R`1_3) & Q`2_3 = b*(R`2_3)
& Q`3_3 = b*(R`3_3) by A1;
take d = a*b;
thus thesis by A2,A3,GROUP_1:def 3,VECTSP_1:12;
end;
theorem Th45:
for p be Prime, a, b be Element of GF(p),
P,Q be Element of [:the carrier of GF(p), the carrier of GF(p),
the carrier of GF(p):], d be Element of GF(p)
st p > 3 & Disc(a,b,p) <> 0.GF(p) &
P in EC_SetProjCo(a,b,p) & d <> 0.GF(p)
& Q`1_3 = d*(P`1_3) & Q`2_3 = d*(P`2_3) & Q`3_3 = d*(P`3_3) holds
Q in EC_SetProjCo(a,b,p)
proof
let p be Prime, a, b be Element of GF(p),
P,Q be Element of [:the carrier of GF(p), the carrier of GF(p),
the carrier of GF(p):], d be Element of GF(p);
assume
A1: p > 3 & Disc(a,b,p) <> 0.GF(p) &
P in EC_SetProjCo(a,b,p) & d <> 0.GF(p)
& Q`1_3 = d*(P`1_3) & Q`2_3 = d*(P`2_3) & Q`3_3 = d*(P`3_3);
set DX = [:the carrier of GF(p), the carrier of GF(p),
the carrier of GF(p):];
consider PP be Element of ProjCo(GF(p)) such that
A2: P = PP & EC_WEqProjCo(a,b,p).PP = 0.GF(p) by A1;
A3: EC_WEqProjCo(a,b,p).P
= ((P`2_3) |^2)*(P`3_3)-((P`1_3) |^3 +a*(P`1_3)*(P`3_3) |^2+b*(P`3_3) |^3)
by Def8;
A4: EC_WEqProjCo(a,b,p).Q
= ((d*(P`2_3)) |^2)*(d*(P`3_3))-((d*(P`1_3)) |^3
+a*(d*(P`1_3))*(d*(P`3_3)) |^2+b*(d*(P`3_3)) |^3) by A1,Def8
.=(d|^2 * (P`2_3) |^2 )*(d*(P`3_3))-((d*(P`1_3)) |^3
+a*(d*(P`1_3))*(d*(P`3_3)) |^2+b*(d*(P`3_3)) |^3) by BINOM:9
.=(d|^2 * (P`2_3) |^2 *d)*(P`3_3)-((d*(P`1_3)) |^3
+a*(d*(P`1_3))*(d*(P`3_3)) |^2+b*(d*(P`3_3)) |^3) by GROUP_1:def 3
.=(d|^2 *d* (P`2_3) |^2 )*(P`3_3)-((d*(P`1_3)) |^3
+a*(d*(P`1_3))*(d*(P`3_3)) |^2+b*(d*(P`3_3)) |^3) by GROUP_1:def 3
.=(d|^(2+1) * (P`2_3) |^2 )*(P`3_3)-((d*(P`1_3)) |^3
+a*(d*(P`1_3))*(d*(P`3_3)) |^2+b*(d*(P`3_3)) |^3) by Th24
.=(d|^3 * (P`2_3) |^2 )*(P`3_3)-(d|^3 *(P`1_3) |^3
+a*(d*(P`1_3))*(d*(P`3_3)) |^2+b*(d*(P`3_3)) |^3) by BINOM:9
.=(d|^3 * (P`2_3) |^2 )*(P`3_3)-(d|^3 *(P`1_3) |^3
+a*(d*(P`1_3))*(d|^2*(P`3_3) |^2)+b*(d*(P`3_3)) |^3) by BINOM:9
.=(d|^3) * ((P`2_3) |^2 )*(P`3_3)-(d|^3 *(P`1_3) |^3
+(a*(d*(P`1_3))*(d|^2))*(P`3_3) |^2+b*(d*(P`3_3)) |^3) by GROUP_1:def 3
.=(d|^3) * ((P`2_3) |^2 )*(P`3_3)-(d|^3 *(P`1_3) |^3
+(a*(d*(P`1_3)*(d|^2)))*(P`3_3) |^2+b*(d*(P`3_3)) |^3) by GROUP_1:def 3
.=(d|^3) * ((P`2_3) |^2 )*(P`3_3)-(d|^3 *(P`1_3) |^3
+(a*((d|^2)*d*(P`1_3)))*(P`3_3) |^2+b*(d*(P`3_3)) |^3) by GROUP_1:def 3
.=(d|^3) * ((P`2_3) |^2 )*(P`3_3)-(d|^3 *(P`1_3) |^3
+(a*(d|^(2+1)*(P`1_3)))*(P`3_3) |^2+b*(d*(P`3_3)) |^3) by Th24
.=(d|^3) * ((P`2_3) |^2 )*(P`3_3)-((d|^3) *(P`1_3) |^3
+(d|^3)*(a*(P`1_3))*(P`3_3) |^2+b*(d*(P`3_3)) |^3) by GROUP_1:def 3
.=(d|^3) * ((P`2_3) |^2 )*(P`3_3)-((d|^3) *(P`1_3) |^3
+(d|^3)*(a*(P`1_3))*(P`3_3) |^2+b*(d|^3*(P`3_3) |^3)) by BINOM:9
.=(d|^3) * ((P`2_3) |^2 )*(P`3_3)-((d|^3) *(P`1_3) |^3
+(d|^3)*(a*(P`1_3))*(P`3_3) |^2+(d|^3)*b*(P`3_3) |^3) by GROUP_1:def 3
.=(d|^3) * (((P`2_3) |^2 )*(P`3_3))-((d|^3) *(P`1_3) |^3
+(d|^3)*(a*(P`1_3))*(P`3_3) |^2+(d|^3)*b*(P`3_3) |^3) by GROUP_1:def 3
.=(d|^3) * (((P`2_3) |^2 )*(P`3_3))-((d|^3) *(P`1_3) |^3
+(d|^3)*((a*(P`1_3))*(P`3_3) |^2)+(d|^3)*b*(P`3_3) |^3) by GROUP_1:def 3
.=(d|^3) * (((P`2_3) |^2 )*(P`3_3))-((d|^3) *(P`1_3) |^3
+(d|^3)*((a*(P`1_3))*(P`3_3) |^2)+(d|^3)*(b*(P`3_3) |^3)) by GROUP_1:def 3
.=(d|^3) * (((P`2_3) |^2 )*(P`3_3))-((d|^3) *((P`1_3) |^3
+a*(P`1_3)*(P`3_3) |^2)+(d|^3)*(b*(P`3_3) |^3)) by VECTSP_1:def 7
.=(d|^3) * (((P`2_3) |^2 )*(P`3_3))
-(d|^3) * ((P`1_3) |^3 +a*(P`1_3)*(P`3_3) |^2+b*(P`3_3) |^3) by
VECTSP_1:def 7
.= d|^3*(((P`2_3) |^2)*(P`3_3)-((P`1_3) |^3
+a*(P`1_3)*(P`3_3) |^2+b*(P`3_3) |^3)) by VECTSP_1:11
.= 0.GF(p) by A2,A3;
PP in ProjCo(GF(p)); then
PP in [:the carrier of GF(p), the carrier of GF(p),
the carrier of GF(p):] \ {[0,0,0]} by Th40; then
not P in {[0,0,0]} by A2,XBOOLE_0:def 5; then
P`1_3 <> 0 or P`2_3 <> 0 or P`3_3 <> 0 by TARSKI:def 1; then
P`1_3 <> 0.GF(p) or P`2_3 <> 0.GF(p) or P`3_3 <> 0.GF(p) by Th11; then
d*(P`1_3) <> 0.GF(pjava.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
byVECTSP_1:12;then
`3_3 < by A1; then
[`1_3Q2_3,`_]< 000 byXTUPLE_0:3 then
notQ in{[0,,0]}byTARSKI:def ; then
Q in [:the java.lang.StringIndexOutOfBoundsException: Index 5 out of bounds for length 5
the carrier of GF(p):] \ {[0,0,0]} by XBOOLE_0:def 5; then
Q in ProjCo(GF(p)) by Th40;
hence thesis by A4;
henc y t,by;
a<>b & ( a, / b/ z,;
A3: b/ z,b A2,Th3
funcR_ProjCo-Relation of ProjCo((p))equals
{[P,Q where P, isElement ofProjCo(GF()) :P_EQ_ java.lang.StringIndexOutOfBoundsException: Index 59 out of bounds for length 59
correctness
proofend;
java.lang.StringIndexOutOfBoundsException: Range [0, 7) out of bounds for length 0
now let x be object;
assume x in RX; then
consider P,Q be Element of ProjCo(GF(p)) such that
A1: x [P,]&P_EQ_ Q;
x in :ProjCo(GF(p)),ProjCo(GF(p)):] by A1;
end;
hence thesis;
java.lang.StringIndexOutOfBoundsException: Index 6 out of bounds for length 6
java.lang.StringIndexOutOfBoundsException: Index 4 out of bounds for length 4
theoremTh46:
forpbe , be Element of ProjCo(GF() holds
f [P, p
proof
e, P, Element of ProjCo(GF())
A2 LINxyt;
assume [P,Q] inR_ProjCo p; then
,z/ x, by ,A3,Th4;
: [,Q]=[X0,Y0]& X0 _EQ_ Y0;
end
hence P _EQ_ Q java.lang.StringIndexOutOfBoundsException: Index 21 out of bounds for length 4
endjava.lang.StringIndexOutOfBoundsException: Index 6 out of bounds for length 6
LIN x,y byTh6
cluster LIN z,u,w by A4,Th5;
coherence
proof
considerx,y,z that
t holds
x ProjCoG() ex ybe object [x,] in
proof
let x be object;
assume xinProjCo(GF(); then
reconsider =x java.lang.StringIndexOutOfBoundsException: Index 21 out of bounds for length 21
X _EQ_ X;
then [x,x] in R;
hence ex y be object st [x,y] in R;
end;
given y be object such that
A1: [x,y] in R;
consider X,Y be Element of ProjCo(GF(p)) such that
A2: [x,y] = [X,Y] & X _EQ_ Y by A1;
x=X by A2,XTUPLE_0:1;
hence x in ProjCo(GF(p));
end; then
dom R = ProjCo(GF(p)) by XTUPLE_0:def 12;
hence R is total by PARTFUN1:def 2;
for x,y be object holds
(x in field R & y in field R & [x,y] in R implies [ y,x] in R)
proof
let x,y be object;
assume x in field R & y in field R & [x,y] in R;
then consider X,Y be Element of ProjCo(GF(p)) such that
A3: [x,y] = [X,Y] & X _EQ_ Y;
x=X & y=Y by A3,XTUPLE_0:1;
hence [y,x] in R by A3;
end; then
R is_symmetric_in field R by RELAT_2:def 3;
hence R is symmetric by RELAT_2:def 11;
for x,y,z be object holds
(x in field R & y in field R & z in field R
& [x,y] in R & [y,z] in R implies [x,z] in R)
proof
let x,y,z be object;
assume A4: x in field R & y in field R & z in field R
& [x,y] in R & [y,z] in R; then
consider X,Y be Element of ProjCo(GF(p)) such that
A5: [x,y] = [X,Y] & X _EQ_ Y;
A6: x=X & y=Y by A5,XTUPLE_0:1;
consider Y1,Z be Element of ProjCo(GF(p)) such that
A7: [y,z] = [Y1,Z] & Y1 _EQ_ Z by A4;
X _EQ_ Y & Y _EQ_ Z by A5,A6,A7,XTUPLE_0:1; then
A8: X _EQ_ Z by Th44;
[x,z] = [X,Z] by A6,A7,XTUPLE_0:1;
hence [x,z] in R by A8;
end; then
R is_transitive_in field R by RELAT_2:def 8;
hence R is transitive by RELAT_2:def 16;
end;
end;
definition
let p be Prime;
let a, b be Element of GF(p);
func R_EllCur (a,b,p) -> Equivalence_Relation of EC_SetProjCo(a,b,p)
equals
(R_ProjCo p) /\ nabla EC_SetProjCo(a,b,p);
correctness
proof
set P = R_ProjCo p;
set R = nabla EC_SetProjCo(a,b,p);
reconsider PR = (P /\ R) as Relation of EC_SetProjCo(a,b,p);
for x be object holds
x in EC_SetProjCo(a,b,p) iff ex y be object st [x,y] in PR
proof
let x be object;
hereby assume A1:x in EC_SetProjCo(a,b,p); then
reconsider X =x as Element of ProjCo(GF(p));
X _EQ_ X; then
A2: [x,x] in P;
[x,x] in [:EC_SetProjCo(a,b,p),EC_SetProjCo(a,b,p):]
by A1,ZFMISC_1:87;
then [x,x] in PR by A2,XBOOLE_0:def 4;
hence ex y be object st [x,y] in PR;
end;
thus thesis by ZFMISC_1:87;
end; then
dom PR = EC_SetProjCo(a,b,p) by XTUPLE_0:def 12;
hence thesis by PARTFUN1:def 2;
end;
end;
theorem Th47:
for p be Prime, a, b be Element of GF(p),
P,Q be Element of ProjCo(GF(p))
st Disc(a,b,p) <> 0.GF(p) &
P in EC_SetProjCo(a,b,p) & Q in EC_SetProjCo(a,b,p) holds
( P _EQ_ Q iff [P,Q] in R_EllCur (a,b,p))
proof
let p be Prime, a, b be Element of GF(p),
P,Q be Element of ProjCo(GF(p));
assume A1: Disc(a,b,p) <> 0.GF(p)
& P in EC_SetProjCo(a,b,p) & Q in EC_SetProjCo(a,b,p);
hereby assume P _Q_ Q; then
:[, inp
[P,Q] in A:forx inX2iffab;
by A1,ZFMISC_1:87;
hence [P,Q] in R_EllCur (a,java.lang.StringIndexOutOfBoundsException: Range [0, 34) out of bounds for length 6
end;
assume [P,Q] in R_EllCur (a,b,p); then
[P,Q] in (R_ProjCo p) by XBOOLE_0:def 4;
hence P _EQ_ Q by Th46;
end;
:
java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
P be Element
stp> &Discabp <>0.GF)&
P in EC_SetProjCo(a,b,p) & P`3_3 <> 0 holds
exQbe ofG() Q in(b,)
,a by Th6
proof
let p be Prime, a, b be Element of GF(p), P be Element of ProjCo(GF(p));
assume
: p >3 & (bp <>0.F()&
P in P in EC_SetProjCoD;
(`_);
:P3_ >0()by T;
A3A2 Line,)and
assumereconsider x9=x as Element of AS;
A5: d* hencex inLine(cd Def2
.=1 by ::
java.lang.StringIndexOutOfBoundsException: Range [10, 9) out of bounds for length 38
.= 0 by Th11;
hence
end;
A3 <q by Th18;
[:the carrier of GF(p), the carrier of GF(p), the carrier of GF(p):];
A6: Q`1_3 = d*(P`1_3) & Q`2_3 =:LINab exstAisjava.lang.StringIndexOutOfBoundsException: Range [47, 45) out of bounds for length 72
inap by,,Th45;then
consider PPA21 LIN qbbyA17,
A7: Q = PP &hence by A19,,A22,Th7;
reconsider Q as Element
take Q;
thus (,bp)by,,A3
, /p,;
*P)
.= 1_GF(p) by A2,java.lang.StringIndexOutOfBoundsException: Index 26 out of bounds for length 4
.= 1 by Th12;
end;
theorem Th49:
for p be Prime, a, b be Element of GF(p),
P be Element of ProjCo(GF(p))
st p > 3 & Disc(a,b,p) <> 0.GF(p) &
P in EC_SetProjCo(a,b,p) & P`3_3 = 0 holds
ex Q be Element of ProjCo(GF(p))
st Q in EC_SetProjCo(a,b,p) & Q _EQ_ P & Q`1_3 = 0 & Q`2_3= 1 & Q`3_3= 0
proof
let p be Prime, a, b be Element of GF(p),
P be Element of ProjCo(GF(p));
assume
A1: p > 3 & Disc(a,b,p) <> 0.GF(p) &
P in EC_SetProjCo(a,b,p) & P`3_3 = 0;
A2: P`3_3 = 0.GF(p) by A1;
java.lang.StringIndexOutOfBoundsException: Range [0, 7) out of bounds for length 6
A2: a in A and
st P=X0 & EC_WEqProjCo(a,b,p).X0 = 0.GF(p) by A1;
A4: (P`3_3) |^3 = (P`3_3) |^(2+1)
.= (P`3_3) |^2 * (P`3_3) by Th24
. p) by A2;
A5: (PLIN a,b,;
.= (P`3endjava.lang.StringIndexOutOfBoundsException: Index 4 out of bounds for length 4
.= 0.GF(p) by A2
0.GF(p) = ((P`2_3) |^:java.lang.StringIndexOutOfBoundsException: Range [6, 5) out of bounds for length 10
+a*(P`1_3)*(P`3_3) |^2+b*(P`3_3) |^3) by A3,Def8
.= 0.GF(p)-((P`1_3) |^3
+a*(P`1_3)*(P`3_3) |^2+b*(P`3_3) |^3) by A2
.= 0.GF(p)-((P`1_3) |^3 +0.GF(p)+b*(P`3_3) |^3) by A5
.= 0.GF(p)-((P`1_3) |^3 +0.GF(p)+0.GF(p)) by A4
.= 0.GF(p)-((P`1_3) |^3 +0.GF(p)) by RLVECT_1:4
.= 0.GF(p)-(P`1_3) |^3 by RLVECT_1:4
.= - (P`1_3) |^3 by RLVECT_1:14; then
A6: (P`1_3) |^3 = (P`1_3) |^3 + - (P`1_3) |^3 by RLVECT_1:4;
A7:P`1_3 = 0.GF(p)
proof
assume A8: P`1_3 <> 0.GF(p); then
P`1_3 * (P`1_3) <> 0.GF(p) by VECTSP_1:12; then
(P`1_3) |^1 * (P`1_3) <> 0.GF(p) by Lm1; then
(P`1_3) |^(1+1) <> 0.GF(p) by Th24; then
(P`1_3) |^2 * (P`1_3) <> 0.GF(p) by A8,VECTSP_1:12; then
(P`1_3) |^(2+1) <> 0.GF(p) by Th24;
hence contradiction by A6,RLVECT_1:5;
end;
A9: P`2_3 <> 0.GF(p)
proof
assume P`2_3 = 0.GF(p); then
P`2_3 = 0 by Th11; then
[P`1_3,P`2_3,P`3_3] = [0,0,0] by A1,A7; then
P = [0,0,0] by AA; then
P in {[0,0,0]} by TARSKI:def 1; then
not P in [:the carrier of GF(p), the carrier of GF(p),
the carrier of GF(p):] \ {[0,0,0]} by XBOOLE_0:def 5;
then not P in ProjCo(GF(p)) by Th40;
hence contradiction;
end;
A10: d <> 0.GF(p)
proof
assume A11: d = 0.GF(p);
A12: d*(P`2_3) = 1_GF(p) by A9,VECTSP_1:def 10
.=1 by Th12;
d*(P`2_3) = 0.GF(p) by A11
.= 0 by Th11;
hence contradiction by A12;
end;
reconsider Q =[d*(P`1_3),d*(P`2_3),d*(P`3_3)] as Element of
[:the carrier of GF(p), the carrier of GF(p), the carrier of GF(p):];
A13: Q`1_3 = d*(P`1_3) & Q`2_3 = d*(P`2_3) & Q`3_3 = d*(P`3_3);
then
Q in EC_SetProjCo(a,b,p) by A1,A10,Th45; then
consider PP be Element of ProjCo(GF(p)) such that
A14: Q = PP & EC_WEqProjCo(a,b,p).PP = 0.GF(p);
reconsider Q as Element of ProjCo(GF(p)) by A14;
take Q;
thus Q in EC_SetProjCo(a,b,p) by A13,A1,A10,Th45;
thus Q _EQ_ P by A10;
thus Q`1_3 = d*(P`1_3)
.=0.GF(p) by A7
.=0 by Th11;
thus Q`2_3 = d*(P`2_3)
.= 1_GF(p) by A9,VECTSP_1:def 10
.= 1 by Th12;
thus Q`3_3 = d*(P`3_3)
.=0.GF(p) by A2
.=0 by Th11;
end;
theorem Th50:
for p be java.lang.StringIndexOutOfBoundsException: Range [31, 32) out of bounds for length 31
p >java.lang.StringIndexOutOfBoundsException: Index 4 out of bounds for length 4
& x
( ex P be Element of ProjCo(GF:c > and
= (R_EllCurabjava.lang.StringIndexOutOfBoundsException: Index 39 out of bounds for length 39
ex Element (GFp,, java.lang.StringIndexOutOfBoundsException: Range [51, 50) out of bounds for length 59
st inEC_SetProjCoa,b,)& =XY,]
& x = Class(R_EllCur(a,b,p),P)
proof
let p be Prime, a, b be Element of GF(p), x be set;
A1 p &Disc(,,)< .GFp
&
consider y0
A2letA java.lang.StringIndexOutOfBoundsException: Range [29, 28) out of bounds for length 35
java.lang.StringIndexOutOfBoundsException: Range [15, 14) out of bounds for length 48
per:
java.lang.StringIndexOutOfBoundsException: Index 8 out of bounds for length 5
considerA3 <b;
A3: y in EC_SetProjCo(a,b,p):c <d and
&`1_3 `2= `_=0java.lang.StringIndexOutOfBoundsException: Range [51, 50) out of bounds for length 51
[y,w] in R_EllCur(a,b,p) by A1,Th47,A3; then
R_EllCur(b,p)) A2A3,35;
byA3AA;
;
suppose w`3_3ajava.lang.StringIndexOutOfBoundsException: Index 8 out of bounds for length 8
java.lang.StringIndexOutOfBoundsException: Range [15, 14) out of bounds for length 54
A4 ab/java.lang.StringIndexOutOfBoundsException: Index 16 out of bounds for length 16
e13
setA/ isjava.lang.StringIndexOutOfBoundsException: Range [33, 32) out of bounds for length 50
y=[,,]byA4,java.lang.StringIndexOutOfBoundsException: Index 31 out of bounds for length 31
[y,Th36:
java.lang.StringIndexOutOfBoundsException: Index 55 out of bounds for length 55
hence thesis by A5,A4;
end;
java.lang.StringIndexOutOfBoundsException: Index 18 out of bounds for length 6
theorem Th51A: , / ;
for p be Prime, a, b be Element of GF(p) st
p 3 &Disca,b,)< 0.Fp holds
Class:a, / ,dand
\/ hence byA4,A7
where P is Element of ProjCo(GF(p)):
XY ElementofGF()stP[,,1}
proof
hence by A12;
assume
Discabp >0.Fp;
set A = Class (R_EllCur(a,b,p));
set B = {Class hence thesis by A5,A6,A14,A13,Th36;
p), ofProjCoGFp)):
P in EC_SetProjCo(a,b,p) & ex X,Y be Element of GF(p) st P=[X,Y,1]};
reconsider d0=[0,1,0] as Element of EC_SetProjCo(a,b,p) by Th42;
for x be object holds x in A iff x in B
proof
let x be object;
hereby assume x in A; then
( ex y be Element of ProjCo(GF(p))
st y in EC_SetProjCo(a,b,p) & y=[0,1,0]
& x = Class(R_EllCur(a,b,p),y) ) or
ex y be Element of ProjCo(GF(p)), e,f be Element of GF(p)
st y in EC_SetProjCo(a,b,p) & y=[e,f,1]
& x = Class(R_EllCur(a,b,p),y) by A1,Th50; then
x in {Class(R_EllCur(a,b,p),[0,1,0])} or
x in {Class(R_EllCur(a,b,p),y)
where y is Element of ProjCo(GF(p)): y in EC_SetProjCo(a,b,p) &
ex e,f be Element of GF(p) st y=[e,f,1]} by TARSKI:def 1;
hence x in B by XBOOLE_0:def 3;
end;
assume x in B; then
A2: x in {Class(R_EllCur(a,b,p),[0,1,0])} or
x in {Class(R_EllCur(a,b,p),y) where y is Element of ProjCo(GF(p)):
y in EC_SetProjCo(a,b,p) & ex e,f be Element of GF(p)
st y=[e,f,1]} by XBOOLE_0:def 3;
now per cases by A2,TARSKI:def 1;
suppose A3: x = Class(R_EllCur(a,b,p),[0,1,0]);
EqClass(R_EllCur(a,b,p),d0) is Element of A;
hence x in A by A3;
end;
suppose
ex y be Element of ProjCo(GF(p))
st x = Class(R_EllCur(a,b,p),y) & y in EC_SetProjCo(a,b,p)
& ex e,f be Element of GF(p) st y=[e,f,1];
then consider y be Element of ProjCo(GF(p)) such that
A4: x = Class(R_EllCur(a,b,p),y)
& y in EC_SetProjCo(a,b,p)
& ex e,f be Element of GF(p) st y=[e,f,1];
reconsider y Element of (abp by A4
qClass(R_EllCur(bp,)isElemento
hence x in A by A4;
end;
end;
hence x in A;
end;
hence thesis by TARSKI:2;
end;
theorem Th52:
for p be Prime,
a, b,d1,Y1,d2,Y2 be Element of GF(p)
st p > 3 & Disc(a,b,p) <> 0.GF(p)
& [d1,Y1,1] in EC_SetProjCo(a,b,p)
& [d2,Y2,1] in EC_SetProjCo(a,b,p) holds
Class(R_EllCur(a,b,p),[d1,Y1,1]) = Class(R_EllCur(a,b,p),[d2,Y2,1])
iff d1=d2 & Y1=Y2
proof
let p be Prime, a, b,d1,Y1,d2,Y2 be Element of GF(p);
assume
A1: p > 3 & Disc(a,b,p) <> 0.GF(p)
& [d1,Y1,1] in EC_SetProjCo(a,b,p) & [d2,Y2,1] in EC_SetProjCo(a,b,p);
hereby assume
Class(R_EllCur(a,b,p),[d1,Y1,1])
= Class(R_EllCur(a,b,p),[d2,Y2,1]); then
[d2,Y2,1] in Class(R_EllCur(a,b,p),[d1,Y1,1]) by A1,EQREL_1:23; then
A2: [[d1,Y1,1],[d2,Y2,1]] in R_EllCur(a,b,p) by EQREL_1:18;
reconsider P=[d1,Y1,1], Q=[d2Y21 as of ProjCo(GF(p)) by A1;
P _EQ_ Q by Th47,A1,A2; then
consider a be Element of GF(p
assume
Q byA1AA3,4A5A,8,java.lang.StringIndexOutOfBoundsException: Index 49 out of bounds for length 49
by;
A4: p > 1A2 binAand
A5: 1.GF ,
:<q A4,;
A6 1.F(=1 A4I1java.lang.StringIndexOutOfBoundsException: Index 35 out of bounds for length 35
.=a*(P for A being being_line Subset of AS holds / java.lang.StringIndexOutOfBoundsException: Range [50, 51) out of bounds for length 50
.=a by a/ , ;
thus d2 = a*(P`1_3) pred A/ Bjava.lang.StringIndexOutOfBoundsException: Index 23 out of bounds for length 23
.= P`1_3
.= d1;
thus Y2 = a*(P`2_3) by A3
. `_3
.java.lang.StringIndexOutOfBoundsException: Index 11 out of bounds for length 11
end;java.lang.StringIndexOutOfBoundsException: Range [11, 10) out of bounds for length 23
assumea / A / a, /C
A1: a,b // A and
theorem Th53:
for p be consider a,b,c
Fbe p> Disc(,,)>0(java.lang.StringIndexOutOfBoundsException: Index 48 out of bounds for length 48
={lass(R_EllCur(ab),0,1,0]}&F2= {Class(R_EllCur(a,b,p)P
where PA9 A is being_lineby A5;
Pin (a,p &
p) stP[X,1}holdsF1misses
proof
let bePrime ,b Element GFp,F1F2 setjava.lang.StringIndexOutOfBoundsException: Index 59 out of bounds for length 59
assume A1: p > 3 & Disc(a,b,p) <> henpx /p, A7A8,A12T;
&F1 ={Class(R_EllCur(,b,p),0,1,])java.lang.StringIndexOutOfBoundsException: Index 43 out of bounds for length 43
& F2 = hence xinCby ,ef2java.lang.StringIndexOutOfBoundsException: Index 33 out of bounds for length 33
P in EC_SetProjCothen
F1 /\ F2 < hencebyA3A6A7Th44
consider z java.lang.StringIndexOutOfBoundsException: Range [0, 17) out of bounds for length 7
A3: z in consider suchjava.lang.StringIndexOutOfBoundsException: Range [22, 23) out of bounds for length 22
consider PA5:a by;
A4:end
ex X,Y A // C & A D inC D implies C= by Lm7Th44;
consider X1,Y1 be::
A5: P=[X1,Y1, A is being_line & ainA& b in A c in A&din A implies a,b // c,d
A6: z= Class(R_EllCur(a,b,p),[0,1,0]) by A1,A3,TARSKI:def 1;
java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
A7 isElementofEC_SetProjCo(bp
Q in Class(java.lang.StringIndexOutOfBoundsException: Index 23 out of bounds for length 5
then [P, p, suchthat
then P _EQ_ Q A6:p inC and
then consider aA8:a, /pq Th29
A8: a <> 0.GF( then consider c,d that
& Q`3_3 = a*(P`3_3) by Def10A10:c<d java.lang.StringIndexOutOfBoundsException: Index 14 out of bounds for length 14
A9: p > 1 byhence by
0 GF(=1 A9INT_3:
.P33by;
0.java.lang.StringIndexOutOfBoundsException: Range [0, 8) out of bounds for length 0
.=a*(P`3_3) by A8
.=a by A10;
contradiction byA8
Th54:
for X be non empty java.lang.StringIndexOutOfBoundsException: Index 27 out of bounds for length 23
R ofX
ClassR-Function, i besetst indom holds
S.i is finite Subset of Xthenpq /abby ,A6A4,
proof
let X be non empty finite set,
R be : x in A by,,
set
assume i in dom
S.i in Class(R) by FUNCT_1:102proof
hence thesis;
end;
theorem Th55:
for be non emptyset
RbeEquivalence_Relation of X,
S be Class(R)-valued Function st S is one-to-one
holds S is disjoint_valued
proof
let X be non empty set,
R be Equivalence_Relation of X,
S be Class(R)-valued Function;
assume A1:S is one-to-one;
now let x,y be object;
assume
A2: x <> y;
per cases;
suppose
A3: x in dom S & y in dom S; then
A4: S.x <> S.y by A1,A2,FUNCT_1:def 4;
S.x in Class(R) & S.y in Class(R) by A3,FUNCT_1:102;
hence S.x misses S.y by A4,EQREL_1:def 4;
end;
suppose
not (x in dom S & y in dom S);
then S.x = {} or S.y = {} by FUNCT_1:def 2;
hence S.x misses S.y by XBOOLE_1:65;
end;
end;
hence thesis by PROB_2:def 2;
end;
theorem Th56:
for X be non empty set,
R be Equivalence_Relation of X,
S be Class(R)-valued Function st S is onto
holds Union S = X
proof
let X be non empty set,
R be Equivalence_Relation of X,
S be Class(R)-valued Function;
assume A1:S is onto;
union (Class R) = X by EQREL_1:def 4;
hence thesis by A1,FUNCT_2:def 3;
end;
theorem
for X be non empty finite set,
R be Equivalence_Relation of X,
S be Class(R)-valued Function,
L be FinSequence of NAT
st S is one-to-one onto & dom S = dom L
& (for i be Nat st i in dom S holds L.i = card (S.i))
holds card (X) = Sum L
proof
let X be non empty finite set,
R be Equivalence_Relation of X,
S be Class(R)-valued Function,
L be FinSequence of NAT;
assume
A1: S is one-to-one onto &
dom S = dom L & (for i be Nat st i in dom S holds L.i = card (S.i));
A2: S is disjoint_valued by A1,Th55;
A3: for i be Nat st i in dom S holds
S.i is finite & L.i = card (S.i) by A1,Th54;
Union S = X by Th56,A1;
hence thesis by A1,A2,A3,DIST_1:17;
end;
theorem Th58:
for p be Prime, a, b,d be Element of GF(p), F,G be set st
p > 3 & Disc(a,b,p) <> 0.GF(p)
& F = {Y where Y is Element of GF(p) : Y|^2= d|^3 + a*d + b} & F <> {}
& G = {Class(R_EllCur(a,b,p),[d,Y,1])
where Y is Element of GF(p) : [d,Y,1] in EC_SetProjCo(a,b,p) } holds
ex I be Function of F,G st I is onto & I is one-to-one
proof
let p be Prime, a, b,d be Element of GF(p), F,G be set;
assume A1:
p > 3 & Disc(a,b,p) <> 0.GF(p)
& F = {Y where Y is Element of GF(p) : Y|^2= d|^3 + a*d + b} & F <> {}
& G = {Class(R_EllCur(a,b,p),[d,P,1]) where P is Element of GF(p)
: [d,P,1] in EC_SetProjCo(a,b,p) };
consider z be object such that
A2: z in F by A1,XBOOLE_0:def 1;
consider W be Element of GF(p)
such that A3: z=W & W|^2= d|^3 + a*d + b by A1,A2;
[d,W,1] is Element of EC_SetProjCo(a,b,p) by A3,Th43; then
A4: Class(R_EllCur(a,b,p),[d,W,1]) in G by A1;
deffunc FG(object) = Class(R_EllCur(a,b,p),[d,$1,1]);
A5: for x be object st x in F holds FG(x) in G
proof
let x be object;
assume x in F; then
consider Y be Element of GF(p)
such that A6:x=Y & Y|^2= d|^3 + a*d + b by A1;
[d,Y,1] is Element of EC_SetProjCo(a,b,p) by A6,Th43;
hence FG(x) in G by A1,A6;
end;
consider I be Function of F,G such that
A7: for x be object st x in F holds I.x = FG(x) from FUNCT_2:sch 2(A5);
take I;
now let y be object;
assume y in G; then
consider P be Element of GF(p)
such that A8: y= Class(R_EllCur(a,b,p),[d,P,1])
& [d,P,1] in EC_SetProjCo(a,b,p) by A1;
P|^2= d|^3 + a*d + b by A8,Th43; then
A9: P in F by A1; then
y=I.P by A7,A8;
hence y in rng I by A9,A4,FUNCT_2:112;
end; then
G c= rng I; then
G = rng I by XBOOLE_0:def 10;
hence I is onto by FUNCT_2:def 3;
now let x1,x2 be object
such that A10: x1 in dom I & x2 in dom I & I.x1 = I.x2;
A11: x1 in F & x2 in F by A10; then
consider Y1 be Element of GF(p)
such that A12:x1=Y1 & Y1|^2= d|^3 + a*d + b by A1;
consider Y2 be Element of GF(p)
such that A13:x2=Y2 & Y2|^2= d|^3 + a*d + b by A1,A11;
A14: I.x1 = Class(R_EllCur(a,b,p),[d,x1,1]) by A10,A7;
A15: Class(R_EllCur(a,b,p),[d,x1,1])
= Class(R_EllCur(a,b,p),[d,x2,1]) by A10,A7,A14;
A16: [d,Y2,1] is Element of EC_SetProjCo(a,b,p) by Th43,A13;
[d,Y1,1] is Element of EC_SetProjCo(a,b,p) by Th43,A12;
hence x1=x2 by A1,A12,A13,A15,A16,Th52;
end;
hence I is one-to-one by FUNCT_1:def 4;
end;
theorem Th59:
for p be Prime, a, b, d be Element of GF(p) st
p > 3 & Disc(a,b,p) <> 0.GF(p) holds
card ({Class(R_EllCur(a,b,p),[d,Y,1]) where Y is Element of GF(p)
: [d,Y,1] in EC_SetProjCo(a,b,p) }) = 1 + Lege_p(d|^3 + a*d + b)
proof
let p be Prime, a,b,d be Element of GF(p);
assume
A1: p > 3 & Disc(a,b,p) <> 0.GF(p);
set F = {Y where Y is Element of GF(p) : Y|^2= d|^3 + a*d + b};
set G = {Class(R_EllCur(a,b,p),[d,Y,1])
where Y is Element of GF(p) : [d,Y,1] in EC_SetProjCo(a,b,p) };
per cases;
suppose A2: F = {};
A3: G ={}
proof
assume G <> {}; then
consider z be object such that
A4: z in G by XBOOLE_0:def 1;
consider Y be Element of GF(p) such that
A5: z= Class(R_EllCur(a,b,p),[d,Y,1])
& [d,Y,1] in EC_SetProjCo(a,b,p) by A4;
Y|^2= d|^3 + a*d + b by A5,Th43;
then Y in F;
hence contradiction by A2;
end;
2 < p by A1,XXREAL_0:2;
hence thesis by A3,A2,Th39;
end;
suppose A6: F <> {};
then consider z be object such that A7: z in F by XBOOLE_0:def 1;
consider W be Element of GF(p)
such that A8: z=W & W|^2= d|^3 + a*d + b by A7;
[d,W,1] is Element of EC_SetProjCo(a,b,p) by A8,Th43; then
A9: Class(R_EllCur(a,b,p),[d,W,1]) in G;
consider I be Function of F,G such that
A10: I is onto & I is one-to-one by A1,A6,Th58;
A11: dom I = F by A9,FUNCT_2:def 1;
A12: rng I = G by A10,FUNCT_2:def 3; then
A13: card F c= card G by A10,A11,CARD_1:10;
reconsider h=I" as Function of G,F by A10,A12,FUNCT_2:25;
I"*I = id F & I*I" = id G by A10,A12,A9,FUNCT_2:29; then
A14: h is onto & h is one-to-one by FUNCT_2:23; then
A15:rng h = F by FUNCT_2:def 3;
dom h = G by A6,FUNCT_2:def 1; then
card G c= card F by A14,A15,CARD_1:10; then
A16: card F = card G by A13,XBOOLE_0:def 10;
2 < p by A1,XXREAL_0:2;
hence thesis by A16,Th39;
end;
end;
Lm7:
for p be Prime, n be Nat st n in Seg p holds n-1 is Element of GF(p)
proof
let p be Prime, n be Nat;
assume n in Seg p;
then 1<=n & n<= p by FINSEQ_1:1; then
A1:1-1 <=n-1 & n-1 <=p-1 by XREAL_1:9; then
A2: n-1 is Element of NAT by INT_1:3;
p-1 < p-0 by XREAL_1:15;
then n-1 < p by A1,XXREAL_0:2;
hence thesis by A2,NAT_1:44;
end;
Lm8:
for p be Prime, a, b, c, d be Element of GF(p)
st p > 3 & Disc(a,b,p) <> 0.GF(p) holds
ex S be Function st dom S = Seg p &
(for n be Nat st n in dom S holds
S.n= {Class(R_EllCur(a,b,p),[(n-1),Y,1]) where Y is Element of GF(p) :
[(n-1),Y,1] in EC_SetProjCo(a,b,p)}) & S is disjoint_valued &
(for n be Nat st n in dom S
holds S.n is finite) & Union S = {Class(R_EllCur(a,b,p),P)
where P is Element of ProjCo(GF(p)):
P in EC_SetProjCo(a,b,p) & ex X,Y be Element of GF(p) st P=[X,Y,1]}
proof
let p be Prime, a, b, c, d be Element of GF(p);
assume A1: p > 3 & Disc(a,b,p) <> 0.GF(p);
deffunc F(Nat) = {Class(R_EllCur(a,b,p),[($1-1),Y,1])
where Y is Element of GF(p) : [($1-1),Y,1] in EC_SetProjCo(a,b,p) };
consider S be FinSequence such that
A2: len S = p &
for i be Nat st i in dom S holds S.i = F(i) from FINSEQ_1:sch 2;
take S;
thus A3: dom S = Seg p by A2,FINSEQ_1:def 3;
thus for n be Nat st n in dom S holds
S.n= {Class(R_EllCur(a,b,p),[(n-1),Y,1]) where Y is Element of GF(p) :
[(n-1),Y,1] in EC_SetProjCo(a,b,p) } by A2;
now let x,y be object;
assume
A4: x <> y;
per cases;
suppose
A5: x in dom S & y in dom S; then
reconsider n=x,m=y as Nat;
x in Seg p & y in Seg p by A5,A2,FINSEQ_1:def 3; then
A6: n-1 is Element of GF(p) & m-1 is Element of GF(p) by Lm7;
A7: S.n= {Class(R_EllCur(a,b,p),[(n-1),Y,1])
where Y is Element of GF(p) :
[(n-1),Y,1] in EC_SetProjCo(a,b,p) } by A5,A2;
A8: S.m= {Class(R_EllCur(a,b,p),[(m-1),Y,1])
where Y is Element of GF(p) :
[(m-1),Y,1] in EC_SetProjCo(a,b,p) } by A5,A2;
thus S.x misses S.y
proof
assume S.x meets S.y;
then consider z be object such that
A9: z in S.x & z in S.y by XBOOLE_0:3;
consider Yx be Element of GF(p) such that
A10: z = Class(R_EllCur(a,b,p),[(n-1),Yx,1])
& [(n-1),Yx,1] in EC_SetProjCo(a,b,p) by A7,A9;
consider Yy be Element of GF(p) such that
A11: z = Class(R_EllCur(a,b,p),[(m-1),Yy,1])
& [(m-1),Yy,1] in EC_SetProjCo(a,b,p) by A8,A9;
n-1 = m-1 by Th52,A1,A10,A11,A6;
hence contradiction by A4;
end;
end;
suppose
not (x in dom S & y in dom S);
then S.x = {} or S.y = {} by FUNCT_1:def 2;
hence S.x misses S.y by XBOOLE_1:65;
end;
end;
hence S is disjoint_valued by PROB_2:def 2;
thus for n be Nat st n in dom S holds S.n is finite
proof
let n be Nat;
assume A12: n in dom S; then
A13: S.n= {Class(R_EllCur(a,b,p),[(n-1),Y,1])
where Y is Element of GF(p) : [(n-1),Y,1] in EC_SetProjCo(a,b,p) } by A2;
1<=n & n<= p by A12,A3,FINSEQ_1:1; then
A14: 1-1 <=n-1 & n-1 <=p-1 by XREAL_1:9; then
A15: n-1 is Element of NAT by INT_1:3;
p-1 < p-0 by XREAL_1:15; then
n-1 < p by A14,XXREAL_0:2; then
reconsider d=n-1 as Element of GF(p) by A15,NAT_1:44;
A16: card (S.n) = card ( {Class(R_EllCur(a,b,p),[d,Y,1])
where Y is Element of GF(p) : [d,Y,1] in EC_SetProjCo(a,b,p) }) by A13
.= 1 + Lege_p(d|^3 + a*d + b) by Th59,A1;
0 <= 1 + Lege_p(d|^3 + a*d + b)
proof
per cases;
suppose not (d|^3 + a*d + b = 0 or d|^3 + a*d + b is quadratic_residue);
then Lege_p(d|^3 + a*d + b) = -1 by Def5;
hence 0<= 1 + Lege_p(d|^3 + a*d + b);
end;
suppose A17: d|^3 + a*d + b = 0
or d|^3 + a*d + b is quadratic_residue;
now per cases by A17;
suppose d|^3 + a*d + b = 0;
then Lege_p(d|^3 + a*d + b) = 0 by Def5;
hence 0<= 1 + Lege_p(d|^3 + a*d + b);
end;
suppose d|^3 + a*d + b is quadratic_residue;
then Lege_p(d|^3 + a*d + b) = 1 by Def5;
hence 0<= 1 + Lege_p(d|^3 + a*d + b);
end;
end;
hence 0<= 1 + Lege_p(d|^3 + a*d + b);
end;
end; then
card (S.n) in NAT by A16,INT_1:3;
hence S.n is finite;
end;
set B={Class(R_EllCur(a,b,p),P) where P is Element of ProjCo(GF(p)):
P in EC_SetProjCo(a,b,p) & ex X,Y be Element of GF(p) st P=[X,Y,1]};
for x be object holds x in union rng S iff x in B
proof
let x be object;
hereby assume x in union rng S; then
consider Z be set such that A18:
x in Z & Z in rng S by TARSKI:def 4;
consider n be object such that A19:
n in dom S & Z = S.n by A18,FUNCT_1:def 3;
reconsider n as Nat by A19;
S.n = {Class(R_EllCur(a,b,p),[(n-1),Y,1]) where Y is Element of GF(p) :
[(n-1),Y,1] in EC_SetProjCo(a,b,p) } by A19,A2; then
consider Y be Element of GF(p) such that
A20: x = Class(R_EllCur(a,b,p),[(n-1),Y,1])
& [(n-1),Y,1] in EC_SetProjCo(a,b,p) by A18,A19;
n-1 is Element of GF(p) by A3,A19,Lm7;
hence x in B by A20;
end;
assume x in B;
then consider P be Element of ProjCo(GF(p)) such that
A21: x = Class(R_EllCur(a,b,p),P) & P in EC_SetProjCo(a,b,p) &
ex X,Y be Element of GF(p) st P=[X,Y,1];
consider X,Y be Element of GF(p) such that
A22: P=[X,Y,1] by A21;
reconsider n1=X as Nat;
A23: 0<=n1 & n1 < p by NAT_1:44;
A24: (0 qua Nat) + 1 <= n1+1 by XREAL_1:6;
A25: n1 + 1 <= p by A23,NAT_1:13;
set n=n1+1;
A26: n in Seg p & n-1=X by A24,A25;
x in {Class(R_EllCur(a,b,p),[(n-1),Q,1]) where Q is Element of GF(p) :
[(n-1),Q,1] in EC_SetProjCo(a,b,p) } by A21,A22; then
A27: x in S.n by A26,A2,A3;
S.n in rng S by A26,A3,FUNCT_1:3;
hence x in union rng S by A27,TARSKI:def 4;
end;
hence thesis by TARSKI:2;
end;
theorem Th60:
for p be Prime, a, b be Element of GF(p)
st p > 3 & Disc(a,b,p) <> 0.GF(p) holds
ex F be FinSequence of NAT st len F = p
& (for n be Nat st n in Seg p
ex d be Element of GF(p) st d=n-1 & F.n = 1 + Lege_p(d|^3 + a*d + b))
& card {Class(R_EllCur(a,b,p),P)
where P is Element of ProjCo(GF(p)): P in EC_SetProjCo(a,b,p) &
ex X,Y be Element of GF(p) st P=[X,Y,1]} = Sum(F)
proof
let p be Prime, a, b be Element of GF(p);
assume A1: p > 3 & Disc(a,b,p) <> 0.GF(p); then
consider S be Function such that
A2: dom S =Seg p & (for n be Nat st n in dom S holds
S.n= {Class(R_EllCur(a,b,p),[(n-1),Y,1])
where Y is Element of GF(p) :
[(n-1),Y,1] in EC_SetProjCo(a,b,p) } ) &
S is disjoint_valued & (for n be Nat st n in dom S holds S.n is finite)
& Union S = {Class(R_EllCur(a,b,p),P)
where P is Element of ProjCo(GF(p)): P in EC_SetProjCo(a,b,p) &
ex X,Y be Element of GF(p) st P=[X,Y,1]} by Lm8;
defpred P0[Nat,Nat] means $2= card (S.$1);
A3:now let i be Nat;
assume i in Seg p;
then S.i is finite by A2; then
reconsider x = card (S.i) as Element of NAT by ORDINAL1:def 12;
take x;
thus P0[i,x];
end;
consider L be FinSequence of NAT such that
A4: dom L= Seg p &
for i be Nat st i in Seg p holds P0[i,L.i] from FINSEQ_1:sch 5(A3);
take L;
p is Element of NAT by ORDINAL1:def 12;
hence len L = p by A4,FINSEQ_1:def 3;
A5: now let n be Nat;
assume A6:n in Seg p; then
1<=n & n<= p by FINSEQ_1:1; then
A7:1-1 <=n-1 & n-1 <=p-1 by XREAL_1:9; then
A8: n-1 is Element of NAT by INT_1:3;
p-1 < p-0 by XREAL_1:15; then
n-1 < p by A7,XXREAL_0:2; then
reconsider d=n-1 as Element of GF(p) by A8,NAT_1:44;
take d;
thus d=n-1;
thus L.n = card (S.n) by A4,A6
.= card ({Class(R_EllCur(a,b,p),[(n-1),Y,1])
where Y is Element of GF(p) :
[(n-1),Y,1] in EC_SetProjCo(a,b,p) } ) by A2,A6
.= card ({Class(R_EllCur(a,b,p),[d,Y,1])
where Y is Element of GF(p) : [d,Y,1] in EC_SetProjCo(a,b,p) } )
.= 1 + Lege_p(d|^3 + a*d + b) by Th59,A1;
end;
for i be Nat st i in dom S holds
S.i is finite & L.i = card (S.i) by A2,A4;
hence thesis by A2,A4,A5,DIST_1:17;
end;
reconsider jj=1 as Element of REAL by XREAL_0:def 1;
theorem
for p be Prime, a, b be Element of GF(p)
st p > 3 & Disc(a,b,p) <> 0.GF(p)
ex F be FinSequence of INT st len F = p &
(for n be Nat st n in Seg p ex d be Element of GF(p)
st d=n-1 & F.n = Lege_p(d|^3 + a*d + b)) &
card(Class(R_EllCur(a,b,p))) = 1 + p + Sum(F)
proof
let p be Prime, a, b be Element of GF(p);
assume
A1: p > 3 & Disc(a,b,p) <> 0.GF(p); then
consider L be FinSequence of NAT such that
A2: len L = p
& (for n be Nat st n in Seg p ex d be Element of GF(p) st d=n-1 &
L.n = 1 + Lege_p(d|^3 + a*d + b))
& card {Class(R_EllCur(a,b,p),P)
where P is Element of ProjCo(GF(p)): P in EC_SetProjCo(a,b,p) &
ex X,Y be Element of GF(p) st P=[X,Y,1]} = Sum(L) by Th60;
A3: p is Element of NAT by ORDINAL1:def 12;
defpred P0[Nat,set] means
ex d be Element of GF(p) st d=$1-1 & $2 = Lege_p(d|^3 + a*d + b);
A4:now let n be Nat;
assume n in Seg p; then
1<=n & n<= p by FINSEQ_1:1; then
A5:1-1 <=n-1 & n-1 <=p-1 by XREAL_1:9; then
A6: n-1 is Element of NAT by INT_1:3;
p-1 < p-0 by XREAL_1:15; then
n-1 < p by A5,XXREAL_0:2; then
reconsider d=n-1 as Element of GF(p) by A6,NAT_1:44;
reconsider x = Lege_p(d|^3 + a*d + b) as Element of INT by INT_1:def 2;
take x;
thus P0[n,x];
end;
consider F be FinSequence of INT such that
A7: dom F= Seg p &
for i be Nat st i in Seg p holds P0[i,F.i] from FINSEQ_1:sch 5(A4);
take F;
thus A8:len F = p by A7,A3,FINSEQ_1:def 3;
reconsider pp= p |-> jj as Element of p-tuples_on REAL;
F is FinSequence of REAL by FINSEQ_2:24,NUMBERS:15;
then reconsider FF=F as Element of p-tuples_on REAL by A8,FINSEQ_2:92;
A9: now let n be Nat;
assume 1<=n & n<=p; then
A10: n in Seg p; then
A11: ex d be Element of GF(p) st d=n-1 &
L.n = 1 + Lege_p(d|^3 + a*d + b) by A2;
ex f be Element of GF(p) st f=n-1 &
F.n = Lege_p(f|^3 + a*f + b) by A7,A10; then
L.n=(p |-> 1).n +F.n by A11,A10,FUNCOP_1:7;
hence L.n=(pp+FF).n by RVSUM_1:11;
end;
len (pp+FF) = p by FINSEQ_2:132; then
L=pp+FF by A2,A9; then
Sum(L)=Sum(p |-> 1)+Sum(F) by RVSUM_1:89; then
A12: Sum(L)=p*1+Sum(F) by RVSUM_1:80;
reconsider F1 = {Class(R_EllCur(a,b,p),[0,1,0])} as finite set;
reconsider F2 = {Class(R_EllCur(a,b,p),P)
where P is Element of ProjCo(GF(p)):
P in EC_SetProjCo(a,b,p) & ex X,Y be Element of GF(p)
st P=[X,Y,1]} as finite set by A2;
A13: card F1 = 1 by CARD_2:42;
card (Class (R_EllCur(a,b,p))) = card(F1 \/ F2) by A1,Th51
.= 1 + (p+Sum(F)) by A1,A13,A2,A12,Th53,CARD_2:40;
hence thesis by A7;
end;
¤ Diese beiden folgenden Angebotsgruppen bietet das Unternehmen0.120Angebot
¤
*Eine klare Vorstellung vom Zielzustand
|
|
2026-11-24
|
|
|
|
|