aboutsummaryrefslogtreecommitdiff
path: root/misc_code/2_division_counterex.sage
diff options
context:
space:
mode:
authorSebastiano Tronto <sebastiano@tronto.net>2026-06-14 09:58:21 +0200
committerSebastiano Tronto <sebastiano@tronto.net>2026-06-14 09:58:21 +0200
commit5ea79c7ae0d44686f1df05c4a016652afbe58968 (patch)
tree05f6a052373f5fe0942777a48303b2f8b884cbe1 /misc_code/2_division_counterex.sage
downloadkummer-notes-code-5ea79c7ae0d44686f1df05c4a016652afbe58968.tar.gz
kummer-notes-code-5ea79c7ae0d44686f1df05c4a016652afbe58968.zip
Initial commit
Diffstat (limited to '')
-rwxr-xr-xmisc_code/2_division_counterex.sage59
1 files changed, 59 insertions, 0 deletions
diff --git a/misc_code/2_division_counterex.sage b/misc_code/2_division_counterex.sage
new file mode 100755
index 0000000..f1193fb
--- /dev/null
+++ b/misc_code/2_division_counterex.sage
@@ -0,0 +1,59 @@
1
2R1.<x> = PolynomialRing(QQ)
3R2.<x,y> = PolynomialRing(QQ)
4
5def extended_field( f, A, B, deg_mult ):
6 # f: a polynomial whose roots are the x-coordinates of some points of an
7 # elliptic curve E: y^2 = x^3 + Ax + B.
8 # return value: a field containing the x and y coordinates of those points
9 # deg_mult: a positive integer known to be a multiple of the degree of the
10 # extended field.
11 #
12 # This function uses the properties of resultants (I can provide a pdf
13 # explaining how it works).
14 #
15 # It is useful to compute, e.g., the fields obtained by adjoining the
16 # coordinates of the n-division points of a point (using the n-uplication
17 # formulas to get the required polynomials).
18 #
19 # When used to compute the 2-division fields, it gives the same output as
20 # E.division_field(2).
21
22
23 g = y^2 - x^3 - A*x - B
24 res = f.resultant(g,x)
25 res = res.subs(y=x)
26
27 #print "Splitting field of division pol:"
28 #print R1(f).splitting_field('r')
29 K.<b> = (R1(res*f)).splitting_field(degree_multiple=deg_mult)
30
31 return K
32
33
34A = -3
35B = 17/4
36
37E = EllipticCurve([0,0,0,A,B])
38print E
39print "of rank ", E.rank(), "with (some) points of infinite order:", E.gens()
40print "CM:", E.has_cm()
41
42rep = E.galois_representation()
43print "mod 2 rep is surjective:", rep.is_surjective(2)
44
45K_2.<a> = E.division_field(2)
46print "2-division field:", K_2
47P = [4,15/2]
48
49# The following polynomial is derived from the duplication formula
50# (Silverman, p.54) using the x-coordinate of the 2-division point as
51# an indeterminate.x
52f_P = R1(x^4 - 4*P[0]*x^3 - 2*A*x^2 - 4*(2*B + A*P[0])*x + A^2 - 4*B*P[0])
53
54M = extended_field( f_P, A, B, 24 ) # The 2-division field of P
55print "2-division field of P:", M
56
57if M.degree() != 24:
58 print "Stopping because 2-division of P is too small"
59 exit()

Generated with cgit - Back to sebastiano.tronto.net