Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
Download

Testing latest pari + WASM + node.js... and it works?! Wow.

28495 views
License: GPL3
ubuntu2004
1
% Copyright (c) 2007-2016 Karim Belabas.
2
% Permission is granted to copy, distribute and/or modify this document
3
% under the terms of the GNU General Public License
4
5
% Reference Card for PARI-GP, Algebraic Number Theory.
6
% Author:
7
% Karim Belabas
8
% Universite de Bordeaux, 351 avenue de la Liberation, F-33405 Talence
9
% email: [email protected]
10
%
11
% See refcard.tex for acknowledgements and thanks.
12
13
\def\TITLE{Elliptic Curves}
14
\input refmacro.tex
15
16
An elliptic curve is initially given by 5-tuple
17
$v=\kbd{[}a_1,a_2,a_3,a_4,a_6\kbd{]}$ attached to Weierstrass model
18
or simply $\kbd{[}a_4,a_6\kbd{]}$. It must be converted to an \var{ell} struct.
19
\hfil\break
20
\li{Initialize \var{ell} struct over domain $D$}{E = ellinit$(v,\{D=1\})$}
21
\beginindentedkeys
22
\li{over $\QQ$}{$D = 1$}
23
\li{over $\FF_p$}{$D = p$}
24
\li{over $\FF_q$, $q = p^f$}{$D =\, $\kbd{ffgen([}$p,f$\kbd{])}}
25
\li{over $\QQ_p$, precision $n$}{$D = O(p^n)$}
26
\li{over $\CC$, current bitprecision}{$D = \kbd{1.0}$}
27
\li{over number field $K$}{$D = \var{nf}$}
28
\endindentedkeys
29
\leavevmode
30
Points are \kbd{[x,y]}, the origin is \kbd{[0]}.
31
Struct members accessed as \kbd{E.}\var{member}:\hfill\break
32
$\bullet$ All domains:
33
\kbd{E.a1},\kbd{a2},\kbd{a3},\kbd{a4},\kbd{a6},
34
\kbd{b2},\kbd{b4},\kbd{b6},\kbd{b8},
35
\kbd{c4},\kbd{c6}, \kbd{disc}, \kbd{j}\hfill\break
36
\li{$\bullet$ $E$ defined over $\RR$ or $\CC$}{}
37
\beginindentedkeys
38
\li{$x$-coords. of points of order $2$}{E.roots}
39
\li{periods / quasi-periods}{E.omega{,\rm }E.eta}
40
\li{volume of complex lattice}{E.area}
41
\endindentedkeys
42
\li{$\bullet$ $E$ defined over $\QQ_p$}{}
43
\beginindentedkeys
44
\li{residual characteristic}{E.p}
45
\li{If $|j|_p>1$: Tate's $[u^2, u, q, [a,b], {\cal L}]$}{E.tate}
46
\endindentedkeys
47
\li{$\bullet$ $E$ defined over $\FF_q$}{}
48
\beginindentedkeys
49
\li{characteristic}{E.p}
50
\li{$\#E(\FF_q)$/cyclic structure/generators}{E.no{\rm, }E.cyc{\rm, }E.gen}
51
\endindentedkeys
52
\li{$\bullet$ $E$ defined over $\QQ$}{}
53
\beginindentedkeys
54
\li{generators of $E(\QQ)$ (require \kbd{elldata})}{E.gen}
55
\endindentedkeys
56
57
\li{$[a_1,a_2,a_3,a_4,a_6]$ from $j$-invariant}{ellfromj$(j)$}
58
\li{cubic/quartic/biquadratic to Weierstrass}
59
{ellfromeqn$(\var{eq})$}
60
\li{add points $P+Q$ / $P-Q$}{elladd$(E,P,Q)${\rm, }ellsub}
61
\li{negate point}{ellneg$(E,P)$}
62
\li{compute $n\cdot P$}{ellmul$(E,P,n)$}
63
\li{check if $P$ is on $E$}{ellisoncurve$(E,P)$}
64
\li{order of torsion point $P$}{ellorder$(E,P)$}
65
\li{$y$-coordinates of point(s) for $x$}{ellordinate$(E,x)$}
66
\li{$[\wp(z),\wp'(z)]\in E(\CC)$ attached to $z\in\CC$}{ellztopoint$(E,z)$}
67
\li{$z\in\CC$ such that $P=[\wp(z),\wp'(z)]$}{ellpointtoz$(E,P)$}
68
\li{$z\in \bar{\QQ}^*/q^{\ZZ}$ to $P\in E(\bar{\QQ_p})$}{ellztopoint$(E,z)$}
69
\li{$P\in E(\bar{\QQ_p})$ to $z\in \bar{\QQ}^*/q^{\ZZ}$}{ellpointtoz$(E,P)$}
70
71
\subsec{Change of Weierstrass models, using $v = [u,r,s,t]$}
72
\li{change curve $E$ using $v$}{ellchangecurve$(E,v)$}
73
\li{change point $P$ using $v$}{ellchangepoint$(P,v)$}
74
\li{change point $P$ using inverse of $v$}{ellchangepointinv$(P,v)$}
75
76
\subsec{Twists and isogenies}
77
\li{quadratic twist}{elltwist$(E,d)$}
78
\li{$n$-division polynomial $f_n(x)$}{elldivpol$(E,n,\{x\})$}
79
\li{$[n]P =(\phi_n\psi_n\colon \omega_n\colon \psi_n^3)$;
80
return $(\phi_n, \psi_n^2)$}{ellxn$(E,n,\{x\})$}
81
\li{isogeny from $E$ to $E/G$}{ellisogeny$(E,G)$}
82
\li{apply isogeny to $g$ (point or isogeny)}{ellisogenyapply$(f,g)$}
83
\li{torsion subgroup with generators}{elltors$(E)$}
84
\subsec{Formal group}
85
\li{formal exponential, $n$ terms}{ellformalexp$(E,\{n\},\{x\})$}
86
\li{formal logarithm, $n$ terms}{ellformallog$(E,\{n\},\{x\})$}
87
\li{$log_E(-x(P)/y(P))\in\QQ_p$; $P\in E(\QQ_p)$}{ellpadiclog$(E,p,n,P)$}
88
\li{$P$ in the formal group}{ellformalpoint$(E,\{n\},\{x\})$}
89
\li{$[\omega/dt,x\omega/dt]$}{ellformaldifferential$(E,\{n\},\{x\})$}
90
\li{$w = -1/y$ in parameter $-x/y$}{ellformalw$(E,\{n\},\{x\})$}
91
92
\section{Curves over finite fields, Pairings}
93
\li{random point on $E$}{random$(E)$}
94
\li{$\#E(\FF_q)$}{ellcard$(E)$}
95
\li{$\#E(\FF_q)$ with almost prime order}{ellsea$(E, \{\var{tors}\})$}
96
\li{structure $\ZZ/d_1\ZZ\times \ZZ/d_2\ZZ$ of $E(\FF_q)$}{ellgroup$(E)$}
97
\li{is $E$ supersingular?}{ellissupersingular$(E)$}
98
\li{Weil pairing of $m$-torsion pts $P,Q$}{ellweilpairing$(E,P,Q, m)$}
99
\li{Tate pairing of $P,Q$; $P$ $m$-torsion}{elltatepairing$(E,P,Q, m)$}
100
\li{Discrete log, find $n$ s.t. $P=[n]Q$}{elllog$(E,P,Q,\{ord\})$}
101
102
\section{Curves over $\QQ$}
103
\subsec{Reduction, minimal model}
104
\li{minimal model of $E/\QQ$} {ellminimalmodel$(E,\{$\&$v\})$}
105
\li{quadratic twist of minimal conductor}{ellminimaltwist$(E)$}
106
\li{$[k]P$ with good reduction}{ellnonsingularmultiple$(E,P)$}
107
\li{$E$ supersingular at $p$?}{ellissupersingular$(E, p)$}
108
\li{affine points of na\"\i ve height $\leq h$}{ellratpoints$(E, h)$}
109
110
\subsec{Complex heights}
111
\li{canonical height of $P$}{ellheight$(E,P)$}
112
\li{canonical bilinear form taken at $P$, $Q$}{ellheight$(E,P,Q)$}
113
\li{height regulator matrix for pts in $L$}{ellheightmatrix$(E,L)$}
114
\subsec{$p$-adic heights}
115
\li{cyclotomic $p$-adic height of $P\in E(\QQ)$}{ellpadicheight$(E,p,n,P)$}
116
\li{\dots bilinear form at $P,Q\in E(\QQ)$}{ellpadicheight$(E,p,n,P,Q)$}
117
\li{\dots matrix at vector for pts in $L$}{ellpadicheightmatrix$(E,p,n,L)$}
118
\li{\dots regulator for canonical height}{ellpadicregulator$(E,p,n, Q)$}
119
\li{Frobenius on $\QQ_p \otimes H^1_{dR}(E/\QQ)$}{ellpadicfrobenius$(E,p,n)$}
120
\li{slope of unit eigenvector of Frobenius}{ellpadics2$(E,p,n)$}
121
122
\subsec{Isogenous curves}
123
\li{matrix of isogeny degrees for $\QQ$-isog. curves}{ellisomat$(E)$}
124
\li{tree of prime degree isogenies}{ellisotree$(E)$}
125
\li{a modular equation of prime degree $N$}{ellmodulareqn$(N)$}
126
127
\subsec{$L$-function}
128
\li{$p$-th coeff $a_p$ of $L$-function, $p$ prime}{ellap$(E,p)$}
129
\li{$k$-th coeff $a_k$ of $L$-function}{ellak$(E,k)$}
130
\li{$L(E,s)$ (using less memory than \kbd{lfun})}{elllseries$(E,s)$}
131
\li{$L^{(r)}(E,1)$ (using less memory than \kbd{lfun})}{ellL1$(E,r)$}
132
%
133
\li{a Heegner point on $E$ of rank $1$}{ellheegner$(E)$}
134
\li{order of vanishing at $1$}{ellanalyticrank$(E,\{\var{eps}\})$}
135
\li{root number for $L(E,.)$ at $p$}{ellrootno$(E,\{p\})$}
136
\li{modular parametrization of $E$}{elltaniyama$(E)$}
137
\li{degree of modular parametrization}{ellmoddegree$(E)$}
138
\li{compare with $H^1(X_0(N),\ZZ)$ (for $E'\to E$)}
139
{ellweilcurve$(E)$}
140
\li{$p$-adic $L$ function $L_p^{(r)}(E,d,\chi^s)$}
141
{ellpadicL$(E,p,n,\{s\},\{r\},\{d\})$}
142
\li{BSD conjecture for $L_p^{(r)}(E_D,\chi^0)$}
143
{ellpadicbsd$(E,p,n,\{D=1\})$}
144
\li{Iwasawa invariants for $L_p(E_D,\tau^i)$}
145
{ellpadiclambdamu$(E,p,D,i)$}
146
147
\subsec{Rational points}
148
\li{attempt to compute $E(\Q)$}{ellrank$(E,\{\text{effort}\},
149
\{\text{points}\})$}
150
\li{initialize for later \kbd{ellrank} calls, }{ellrankinit$(E)$}
151
\li{saturate $\langle P_1,\dots,P_n\rangle$ wrt. primes $\leq B$}
152
{ellsaturation$(E,P,B)$}
153
\li{$2$-covers of the curve $E$}{ell2cover$(E)$}
154
155
\subsec{Elldata package, Cremona's database:}
156
\li{db code \kbd{"11a1"} $\leftrightarrow$ $[\var{conductor}, \var{class}, \var{index}]$}{ellconvertname$(s)$}
157
\li{generators of Mordell-Weil group}{ellgenerators$(E)$}
158
\li{look up $E$ in database}{ellidentify$(E)$}
159
\li{all curves matching criterion}{ellsearch$(N)$}
160
\li{loop over curves with cond.~from $a$ to $b$}{forell$(E, a,b,\seq)$}
161
162
\section{Curves over number field $K$}
163
\li{coeff $a_{\goth{p}}$ of $L$-function}{ellap$(E,\goth{p})$}
164
\li{Kodaira type of $\goth{p}$-fiber of $E$}{elllocalred$(E,\goth{p})$}
165
\li{integral model of $E/K$} {ellintegralmodel$(E,\{$\&$v\})$}
166
\li{minimal model of $E/K$} {ellminimalmodel$(E,\{$\&$v\})$}
167
\li{minimal discriminant of $E/K$}{ellminimaldisc$(E)$}
168
\li{cond, min mod, Tamagawa num \kbd{[}$N,v,c$\kbd{]}}{ellglobalred$(E)$}
169
\li{global Tamagawa number}{elltamagawa$(E)$}
170
\li{$P\in E(K)$ $n$-divisible? $[n]Q=P$}{ellisdivisible$(E,P,n,\{\&Q\})$}
171
\subsec{$L$-function}
172
A domain $D = [c,w,h]$ in initialization mean we restrict $s\in \CC$
173
to domain $|\Re(s)-c| < w$, $|\Im(s)| < h$; $D = [w,h]$ encodes $[1/2,w,h]$
174
and $[h]$ encodes $D = [1/2,0,h]$ (critical line up to height $h$).\hfil\break
175
\li{vector of first $n$ $a_k$'s in $L$-function}{ellan$(E,n)$}
176
\li{init $L^{(k)}(E,s)$ for $k \leq n$}{L = lfuninit$(E, D, \{n = 0\})$}
177
\li{compute $L(E,s)$ ($n$-th derivative)}{lfun$(L, s, \{n=0\})$}
178
\li{$L(E,1,r)/(r! \cdot R\cdot \#Sha)$ assuming BSD}{ellbsd$(E)$}
179
180
\section{Other curves of small genus}
181
A hyperelliptic curve is given by a pair $[P,Q]$ ($y^2+Qy = P$ with $Q^2+4P$
182
squarefree) or a single squarefree polynomial $P$ ($y^2 = P$).\hfil\break
183
\li{reduction of $y^2+Qy = P$ (genus $2$)}{genus2red$([P,Q],\{p\})$}
184
\li{affine rational points of height $\leq h$}{hyperellratpoints$([P,Q], h)$}
185
\li{find a rational point on a conic, $^t x G x = 0$}{qfsolve$(G)$}
186
\li{quadratic Hilbert symbol (at $p$)}{hilbert$(x,y,\{p\})$}
187
\li{all solutions in $\QQ^3$ of ternary form}{qfparam$(G,x)$}
188
\li{$P,Q\in\FF_q[X]$; char. poly. of Frobenius}{hyperellcharpoly$([P,Q])$}
189
\li{matrix of Frobenius on $\QQ_p\otimes H^1_{dR}$}{hyperellpadicfrobenius}
190
\medskip
191
192
\section{Elliptic \& Modular Functions}
193
$w = [\omega_1,\omega_2]$ or \var{ell} struct (\kbd{E.omega}), $\tau=\omega_1/\omega_2$.\hfill\break
194
%
195
\li{arithmetic-geometric mean}{agm$(x,y)$}
196
\li{elliptic $j$-function $1/q+744+\cdots$}{ellj$(x)$}
197
\li{Weierstrass $\sigma$/$\wp$/$\zeta$ function}
198
{ellsigma$(w,z)${\rm, }ellwp{\rm, }ellzeta}
199
\li{periods/quasi-periods}{ellperiods$(E,\{\fl\})${\rm, }elleta$(w)$}
200
\li{$(2i\pi/\omega_2)^k E_k(\tau)$}{elleisnum$(w,k,\{\fl\})$}
201
\li{modified Dedekind $\eta$ func. $\prod(1-q^n)$}{eta$(x,\{\fl\})$}
202
\li{Dedekind sum $s(h,k)$}{sumdedekind$(h,k)$}
203
\li{Jacobi sine theta function}{theta$(q,z)$}
204
\li{k-th derivative at z=0 of \kbd{theta}$(q,z)$}{thetanullk$(q,k)$}
205
\li{Weber's $f$ functions}{weber$(x,\{\fl\})$}
206
\li{modular pol.~of level $N$}{polmodular$(N,\{\var{inv = j}\})$}
207
\li{Hilbert class polynomial for $\QQ(\sqrt{D})$}
208
{polclass$(D,\{\var{inv = j}\})$}
209
%
210
\vfill
211
\copyrightnotice
212
\bye
213
214