2021-08-19 22:35:11 +02:00
|
|
|
{
|
|
|
|
"cells": [
|
|
|
|
{
|
|
|
|
"cell_type": "code",
|
2022-10-10 20:44:49 +02:00
|
|
|
"execution_count": 54,
|
2022-03-07 13:48:30 +01:00
|
|
|
"metadata": {
|
|
|
|
"collapsed": false
|
|
|
|
},
|
|
|
|
"outputs": [
|
|
|
|
],
|
2021-08-19 22:35:11 +02:00
|
|
|
"source": [
|
|
|
|
"class superelliptic:\n",
|
2021-09-10 21:48:40 +02:00
|
|
|
" \n",
|
2022-10-10 20:44:49 +02:00
|
|
|
" def __init__(self, f, m):\n",
|
|
|
|
" Rx = f.parent()\n",
|
|
|
|
" x = Rx.gen()\n",
|
|
|
|
" F = Rx.base() \n",
|
|
|
|
" Rx.<x> = PolynomialRing(F)\n",
|
|
|
|
" Rxy.<x, y> = PolynomialRing(F, 2)\n",
|
2021-08-23 16:46:01 +02:00
|
|
|
" Fxy = FractionField(Rxy)\n",
|
2021-08-21 20:50:10 +02:00
|
|
|
" self.polynomial = Rx(f)\n",
|
2021-08-19 22:35:11 +02:00
|
|
|
" self.exponent = m\n",
|
2022-10-10 20:44:49 +02:00
|
|
|
" self.base_ring = F\n",
|
|
|
|
" self.characteristic = F.characteristic()\n",
|
2021-08-19 22:35:11 +02:00
|
|
|
" \n",
|
2021-08-23 16:46:01 +02:00
|
|
|
" r = Rx(f).degree()\n",
|
|
|
|
" delta = GCD(r, m)\n",
|
|
|
|
" \n",
|
2021-08-19 22:35:11 +02:00
|
|
|
" def __repr__(self):\n",
|
|
|
|
" f = self.polynomial\n",
|
|
|
|
" m = self.exponent\n",
|
2022-10-10 20:44:49 +02:00
|
|
|
" F = self.base_ring\n",
|
|
|
|
" return 'Superelliptic curve with the equation y^' + str(m) + ' = ' + str(f)+' over ' + str(F)\n",
|
2022-10-10 18:38:16 +02:00
|
|
|
"\n",
|
|
|
|
" \n",
|
|
|
|
" def basis_holomorphic_differentials_degree(self):\n",
|
|
|
|
" f = self.polynomial\n",
|
|
|
|
" m = self.exponent\n",
|
|
|
|
" r = f.degree()\n",
|
|
|
|
" delta = GCD(r, m)\n",
|
2022-10-10 20:44:49 +02:00
|
|
|
" F = self.base_ring\n",
|
|
|
|
" Rx.<x> = PolynomialRing(F)\n",
|
|
|
|
" Rxy.<x, y> = PolynomialRing(F, 2)\n",
|
2022-10-10 18:38:16 +02:00
|
|
|
" Fxy = FractionField(Rxy)\n",
|
|
|
|
" #########basis of holomorphic differentials and de Rham\n",
|
|
|
|
"\n",
|
|
|
|
" basis_holo = []\n",
|
|
|
|
" degrees0 = {}\n",
|
|
|
|
" k = 0\n",
|
|
|
|
"\n",
|
|
|
|
" for j in range(1, m):\n",
|
|
|
|
" for i in range(1, r):\n",
|
|
|
|
" if (r*j - m*i >= delta):\n",
|
|
|
|
" basis_holo += [superelliptic_form(self, Fxy(x^(i-1)/y^j))]\n",
|
|
|
|
" degrees0[k] = (i-1, j)\n",
|
|
|
|
" k = k+1\n",
|
|
|
|
"\n",
|
|
|
|
" return(basis_holo, degrees0)\n",
|
|
|
|
"\n",
|
|
|
|
" def holomorphic_differentials_basis(self):\n",
|
|
|
|
" basis_holo, degrees0 = self.basis_holomorphic_differentials_degree()\n",
|
|
|
|
" return basis_holo\n",
|
|
|
|
" \n",
|
|
|
|
" def degrees_holomorphic_differentials(self):\n",
|
|
|
|
" basis_holo, degrees0 = self.basis_holomorphic_differentials_degree()\n",
|
|
|
|
" return degrees0\n",
|
|
|
|
"\n",
|
|
|
|
" def basis_de_rham_degrees(self):\n",
|
|
|
|
" f = self.polynomial\n",
|
|
|
|
" m = self.exponent\n",
|
|
|
|
" r = f.degree()\n",
|
|
|
|
" delta = GCD(r, m)\n",
|
2022-10-10 20:44:49 +02:00
|
|
|
" F = self.base_ring\n",
|
|
|
|
" Rx.<x> = PolynomialRing(F)\n",
|
|
|
|
" Rxy.<x, y> = PolynomialRing(F, 2)\n",
|
2022-10-10 18:38:16 +02:00
|
|
|
" Fxy = FractionField(Rxy)\n",
|
|
|
|
" basis_holo = self.holomorphic_differentials_basis()\n",
|
|
|
|
" basis = []\n",
|
|
|
|
" for k in range(0, len(basis_holo)):\n",
|
|
|
|
" basis += [superelliptic_cech(self, basis_holo[k], superelliptic_function(self, 0))]\n",
|
|
|
|
"\n",
|
|
|
|
" ## non-holomorphic elts of H^1_dR\n",
|
|
|
|
" t = len(basis)\n",
|
|
|
|
" degrees0 = {}\n",
|
|
|
|
" degrees1 = {}\n",
|
|
|
|
" for j in range(1, m):\n",
|
|
|
|
" for i in range(1, r):\n",
|
|
|
|
" if (r*(m-j) - m*i >= delta): \n",
|
|
|
|
" s = Rx(m-j)*Rx(x)*Rx(f.derivative()) - Rx(m)*Rx(i)*f\n",
|
|
|
|
" psi = Rx(cut(s, i))\n",
|
|
|
|
" basis += [superelliptic_cech(self, superelliptic_form(self, Fxy(psi/y^j)), superelliptic_function(self, Fxy(m*y^(m-j)/x^i)))]\n",
|
|
|
|
" degrees0[t] = (psi.degree(), j)\n",
|
|
|
|
" degrees1[t] = (-i, m-j)\n",
|
|
|
|
" t += 1\n",
|
|
|
|
" return basis, degrees0, degrees1\n",
|
|
|
|
"\n",
|
|
|
|
" def de_rham_basis(self):\n",
|
|
|
|
" basis, degrees0, degrees1 = self.basis_de_rham_degrees()\n",
|
|
|
|
" return basis\n",
|
|
|
|
"\n",
|
|
|
|
" def degrees_de_rham0(self):\n",
|
|
|
|
" basis, degrees0, degrees1 = self.basis_de_rham_degrees()\n",
|
|
|
|
" return degrees0\n",
|
|
|
|
"\n",
|
|
|
|
" def degrees_de_rham1(self):\n",
|
|
|
|
" basis, degrees0, degrees1 = self.basis_de_rham_degrees()\n",
|
|
|
|
" return degrees1 \n",
|
2021-08-19 22:35:11 +02:00
|
|
|
" \n",
|
2021-09-09 21:20:15 +02:00
|
|
|
" def is_smooth(self):\n",
|
|
|
|
" f = self.polynomial\n",
|
|
|
|
" if f.discriminant() == 0:\n",
|
|
|
|
" return 0\n",
|
|
|
|
" return 1\n",
|
|
|
|
" \n",
|
2021-08-19 22:35:11 +02:00
|
|
|
" def genus(self):\n",
|
|
|
|
" r = self.polynomial.degree()\n",
|
|
|
|
" m = self.exponent\n",
|
|
|
|
" delta = GCD(r, m)\n",
|
|
|
|
" return 1/2*((r-1)*(m-1) - delta + 1)\n",
|
|
|
|
" \n",
|
2021-08-23 14:55:37 +02:00
|
|
|
" def verschiebung_matrix(self):\n",
|
2022-10-10 18:38:16 +02:00
|
|
|
" basis = self.de_rham_basis()\n",
|
2021-08-23 14:55:37 +02:00
|
|
|
" g = self.genus()\n",
|
|
|
|
" p = self.characteristic\n",
|
2022-10-10 20:44:49 +02:00
|
|
|
" F = self.base_ring\n",
|
|
|
|
" M = matrix(F, 2*g, 2*g)\n",
|
2021-09-10 21:48:40 +02:00
|
|
|
" for i in range(0, len(basis)):\n",
|
|
|
|
" w = basis[i]\n",
|
2021-08-23 14:55:37 +02:00
|
|
|
" v = w.verschiebung().coordinates()\n",
|
|
|
|
" M[i, :] = v\n",
|
|
|
|
" return M\n",
|
|
|
|
" \n",
|
|
|
|
" def frobenius_matrix(self):\n",
|
2022-10-10 18:38:16 +02:00
|
|
|
" basis = self.de_rham_basis()\n",
|
2021-08-23 14:55:37 +02:00
|
|
|
" g = self.genus()\n",
|
|
|
|
" p = self.characteristic\n",
|
2022-10-10 20:44:49 +02:00
|
|
|
" F = self.base_ring\n",
|
|
|
|
" M = matrix(F, 2*g, 2*g)\n",
|
2021-09-10 21:48:40 +02:00
|
|
|
" \n",
|
|
|
|
" for i in range(0, len(basis)):\n",
|
|
|
|
" w = basis[i]\n",
|
2021-08-23 14:55:37 +02:00
|
|
|
" v = w.frobenius().coordinates()\n",
|
|
|
|
" M[i, :] = v\n",
|
|
|
|
" return M\n",
|
2021-09-11 16:02:09 +02:00
|
|
|
"\n",
|
|
|
|
" def cartier_matrix(self):\n",
|
2022-10-10 20:44:49 +02:00
|
|
|
" basis = self.holomorphic_differentials_basis()\n",
|
2021-09-11 16:02:09 +02:00
|
|
|
" g = self.genus()\n",
|
|
|
|
" p = self.characteristic\n",
|
2022-10-10 20:44:49 +02:00
|
|
|
" F = self.base_ring\n",
|
|
|
|
" M = matrix(F, g, g)\n",
|
2021-09-11 16:02:09 +02:00
|
|
|
" for i in range(0, len(basis)):\n",
|
|
|
|
" w = basis[i]\n",
|
|
|
|
" v = w.cartier().coordinates()\n",
|
|
|
|
" M[i, :] = v\n",
|
|
|
|
" return M \n",
|
2022-10-10 18:38:16 +02:00
|
|
|
"\n",
|
2022-10-10 18:09:01 +02:00
|
|
|
"# def p_rank(self):\n",
|
|
|
|
"# return self.cartier_matrix().rank()\n",
|
|
|
|
" \n",
|
|
|
|
" def a_number(self):\n",
|
|
|
|
" g = C.genus()\n",
|
|
|
|
" return g - self.cartier_matrix().rank()\n",
|
2021-09-13 12:11:08 +02:00
|
|
|
" \n",
|
2021-10-08 18:47:24 +02:00
|
|
|
" def final_type(self, test = 0):\n",
|
2022-10-10 20:44:49 +02:00
|
|
|
" Fr = self.frobenius_matrix()\n",
|
2021-09-13 12:11:08 +02:00
|
|
|
" V = self.verschiebung_matrix()\n",
|
|
|
|
" p = self.characteristic\n",
|
2022-10-10 20:44:49 +02:00
|
|
|
" return flag(Fr, V, p, test)\n",
|
2021-09-13 12:11:08 +02:00
|
|
|
" \n",
|
2021-08-19 22:35:11 +02:00
|
|
|
"def reduction(C, g):\n",
|
|
|
|
" p = C.characteristic\n",
|
2022-10-10 20:44:49 +02:00
|
|
|
" F = C.base_ring\n",
|
|
|
|
" Rxy.<x, y> = PolynomialRing(F, 2)\n",
|
2021-08-21 20:50:10 +02:00
|
|
|
" Fxy = FractionField(Rxy)\n",
|
2021-08-19 22:35:11 +02:00
|
|
|
" f = C.polynomial\n",
|
|
|
|
" r = f.degree()\n",
|
|
|
|
" m = C.exponent\n",
|
2021-08-21 20:50:10 +02:00
|
|
|
" g = Fxy(g)\n",
|
2021-08-19 22:35:11 +02:00
|
|
|
" g1 = g.numerator()\n",
|
|
|
|
" g2 = g.denominator()\n",
|
|
|
|
" \n",
|
2022-10-10 20:44:49 +02:00
|
|
|
" Rx.<x> = PolynomialRing(F)\n",
|
2021-08-21 20:50:10 +02:00
|
|
|
" Fx = FractionField(Rx)\n",
|
|
|
|
" FxRy.<y> = PolynomialRing(Fx) \n",
|
|
|
|
" (A, B, C) = xgcd(FxRy(g2), FxRy(y^m - f))\n",
|
|
|
|
" g = FxRy(g1*B/A)\n",
|
2021-08-19 22:35:11 +02:00
|
|
|
" \n",
|
2021-08-21 20:50:10 +02:00
|
|
|
" while(g.degree(Rxy(y)) >= m):\n",
|
|
|
|
" d = g.degree(Rxy(y))\n",
|
2021-08-20 11:21:50 +02:00
|
|
|
" G = coff(g, d)\n",
|
2021-08-19 22:35:11 +02:00
|
|
|
" i = floor(d/m)\n",
|
|
|
|
" g = g - G*y^d + f^i * y^(d%m) *G\n",
|
|
|
|
" \n",
|
2021-08-21 20:50:10 +02:00
|
|
|
" return(FxRy(g))\n",
|
2021-08-19 22:35:11 +02:00
|
|
|
"\n",
|
|
|
|
"def reduction_form(C, g):\n",
|
2022-10-10 20:44:49 +02:00
|
|
|
" F = C.base_ring\n",
|
|
|
|
" Rxy.<x, y> = PolynomialRing(F, 2)\n",
|
2021-08-21 20:50:10 +02:00
|
|
|
" Fxy = FractionField(Rxy)\n",
|
2021-08-19 22:35:11 +02:00
|
|
|
" f = C.polynomial\n",
|
|
|
|
" r = f.degree()\n",
|
|
|
|
" m = C.exponent\n",
|
|
|
|
" g = reduction(C, g)\n",
|
|
|
|
"\n",
|
2021-08-22 21:48:21 +02:00
|
|
|
" g1 = Rxy(0)\n",
|
2022-10-10 20:44:49 +02:00
|
|
|
" Rx.<x> = PolynomialRing(F)\n",
|
2021-08-21 20:50:10 +02:00
|
|
|
" Fx = FractionField(Rx)\n",
|
|
|
|
" FxRy.<y> = PolynomialRing(Fx)\n",
|
2021-08-19 22:35:11 +02:00
|
|
|
" \n",
|
2021-08-21 20:50:10 +02:00
|
|
|
" g = FxRy(g)\n",
|
2021-08-19 22:35:11 +02:00
|
|
|
" for j in range(0, m):\n",
|
2021-08-20 11:21:50 +02:00
|
|
|
" if j==0:\n",
|
|
|
|
" G = coff(g, 0)\n",
|
2021-08-22 21:48:21 +02:00
|
|
|
" g1 += FxRy(G)\n",
|
2021-08-20 11:21:50 +02:00
|
|
|
" else:\n",
|
|
|
|
" G = coff(g, j)\n",
|
2021-08-21 20:50:10 +02:00
|
|
|
" g1 += Fxy(y^(j-m)*f*G)\n",
|
2021-08-19 22:35:11 +02:00
|
|
|
" return(g1)\n",
|
|
|
|
" \n",
|
|
|
|
"class superelliptic_function:\n",
|
|
|
|
" def __init__(self, C, g):\n",
|
2022-10-10 20:44:49 +02:00
|
|
|
" F = C.base_ring\n",
|
|
|
|
" Rxy.<x, y> = PolynomialRing(F, 2)\n",
|
2021-08-21 20:50:10 +02:00
|
|
|
" Fxy = FractionField(Rxy)\n",
|
2021-08-19 22:35:11 +02:00
|
|
|
" f = C.polynomial\n",
|
|
|
|
" r = f.degree()\n",
|
|
|
|
" m = C.exponent\n",
|
|
|
|
" \n",
|
|
|
|
" self.curve = C\n",
|
|
|
|
" g = reduction(C, g)\n",
|
|
|
|
" self.function = g\n",
|
|
|
|
" \n",
|
|
|
|
" def __repr__(self):\n",
|
|
|
|
" return str(self.function)\n",
|
|
|
|
" \n",
|
|
|
|
" def jth_component(self, j):\n",
|
|
|
|
" g = self.function\n",
|
2021-08-22 21:48:21 +02:00
|
|
|
" C = self.curve\n",
|
2022-10-10 20:44:49 +02:00
|
|
|
" F = C.base_ring\n",
|
|
|
|
" Rx.<x> = PolynomialRing(F)\n",
|
2021-08-22 21:48:21 +02:00
|
|
|
" Fx.<x> = FractionField(Rx)\n",
|
|
|
|
" FxRy.<y> = PolynomialRing(Fx)\n",
|
|
|
|
" g = FxRy(g)\n",
|
|
|
|
" return coff(g, j)\n",
|
2021-08-19 22:35:11 +02:00
|
|
|
" \n",
|
|
|
|
" def __add__(self, other):\n",
|
|
|
|
" C = self.curve\n",
|
|
|
|
" g1 = self.function\n",
|
|
|
|
" g2 = other.function\n",
|
|
|
|
" g = reduction(C, g1 + g2)\n",
|
|
|
|
" return superelliptic_function(C, g)\n",
|
|
|
|
" \n",
|
|
|
|
" def __sub__(self, other):\n",
|
|
|
|
" C = self.curve\n",
|
|
|
|
" g1 = self.function\n",
|
|
|
|
" g2 = other.function\n",
|
|
|
|
" g = reduction(C, g1 - g2)\n",
|
|
|
|
" return superelliptic_function(C, g)\n",
|
|
|
|
" \n",
|
|
|
|
" def __mul__(self, other):\n",
|
|
|
|
" C = self.curve\n",
|
|
|
|
" g1 = self.function\n",
|
|
|
|
" g2 = other.function\n",
|
|
|
|
" g = reduction(C, g1 * g2)\n",
|
|
|
|
" return superelliptic_function(C, g)\n",
|
|
|
|
" \n",
|
|
|
|
" def __truediv__(self, other):\n",
|
|
|
|
" C = self.curve\n",
|
|
|
|
" g1 = self.function\n",
|
|
|
|
" g2 = other.function\n",
|
|
|
|
" g = reduction(C, g1 / g2)\n",
|
|
|
|
" return superelliptic_function(C, g)\n",
|
|
|
|
" \n",
|
|
|
|
"def diffn(self):\n",
|
|
|
|
" C = self.curve\n",
|
|
|
|
" f = C.polynomial\n",
|
|
|
|
" m = C.exponent\n",
|
2022-10-10 20:44:49 +02:00
|
|
|
" F = C.base_ring\n",
|
2021-08-19 22:35:11 +02:00
|
|
|
" g = self.function\n",
|
2022-10-10 20:44:49 +02:00
|
|
|
" Rxy.<x, y> = PolynomialRing(F, 2)\n",
|
2021-08-21 20:50:10 +02:00
|
|
|
" Fxy = FractionField(Rxy)\n",
|
|
|
|
" g = Fxy(g)\n",
|
2021-08-19 22:35:11 +02:00
|
|
|
" A = g.derivative(x)\n",
|
|
|
|
" B = g.derivative(y)*f.derivative(x)/(m*y^(m-1))\n",
|
|
|
|
" return superelliptic_form(C, A+B)\n",
|
|
|
|
" \n",
|
|
|
|
"class superelliptic_form:\n",
|
|
|
|
" def __init__(self, C, g):\n",
|
2022-10-10 20:44:49 +02:00
|
|
|
" F = C.base_ring\n",
|
|
|
|
" Rxy.<x, y> = PolynomialRing(F, 2)\n",
|
2021-08-21 20:50:10 +02:00
|
|
|
" Fxy = FractionField(Rxy)\n",
|
|
|
|
" g = Fxy(reduction_form(C, g))\n",
|
2021-08-19 22:35:11 +02:00
|
|
|
" self.form = g\n",
|
|
|
|
" self.curve = C \n",
|
|
|
|
" \n",
|
|
|
|
" def __add__(self, other):\n",
|
|
|
|
" C = self.curve\n",
|
|
|
|
" g1 = self.form\n",
|
|
|
|
" g2 = other.form\n",
|
|
|
|
" g = reduction(C, g1 + g2)\n",
|
|
|
|
" return superelliptic_form(C, g)\n",
|
|
|
|
" \n",
|
|
|
|
" def __sub__(self, other):\n",
|
|
|
|
" C = self.curve\n",
|
|
|
|
" g1 = self.form\n",
|
|
|
|
" g2 = other.form\n",
|
|
|
|
" g = reduction(C, g1 - g2)\n",
|
|
|
|
" return superelliptic_form(C, g)\n",
|
|
|
|
" \n",
|
|
|
|
" def __repr__(self):\n",
|
|
|
|
" g = self.form\n",
|
|
|
|
" if len(str(g)) == 1:\n",
|
|
|
|
" return str(g) + ' dx'\n",
|
|
|
|
" return '('+str(g) + ') dx'\n",
|
2021-09-11 16:02:09 +02:00
|
|
|
"\n",
|
2021-09-11 16:09:51 +02:00
|
|
|
" def __rmul__(self, constant):\n",
|
|
|
|
" C = self.curve\n",
|
|
|
|
" omega = self.form\n",
|
2021-09-13 12:11:08 +02:00
|
|
|
" return superelliptic_form(C, constant*omega) \n",
|
2021-08-19 22:35:11 +02:00
|
|
|
" \n",
|
2021-08-23 14:55:37 +02:00
|
|
|
" def cartier(self):\n",
|
|
|
|
" C = self.curve\n",
|
|
|
|
" m = C.exponent\n",
|
|
|
|
" p = C.characteristic\n",
|
|
|
|
" f = C.polynomial\n",
|
2022-10-10 20:44:49 +02:00
|
|
|
" F = C.base_ring\n",
|
|
|
|
" Rx.<x> = PolynomialRing(F)\n",
|
2021-08-23 14:55:37 +02:00
|
|
|
" Fx = FractionField(Rx)\n",
|
|
|
|
" FxRy.<y> = PolynomialRing(Fx)\n",
|
|
|
|
" Fxy = FractionField(FxRy)\n",
|
|
|
|
" result = superelliptic_form(C, FxRy(0))\n",
|
|
|
|
" mult_order = Integers(m)(p).multiplicative_order()\n",
|
|
|
|
" M = Integer((p^(mult_order)-1)/m)\n",
|
|
|
|
" \n",
|
|
|
|
" for j in range(1, m):\n",
|
|
|
|
" fct_j = self.jth_component(j)\n",
|
|
|
|
" h = Rx(fct_j*f^(M*j))\n",
|
|
|
|
" j1 = (p^(mult_order-1)*j)%m\n",
|
|
|
|
" B = floor(p^(mult_order-1)*j/m)\n",
|
|
|
|
" result += superelliptic_form(C, polynomial_part(p, h)/(f^B*y^(j1)))\n",
|
2021-09-11 16:02:09 +02:00
|
|
|
" return result \n",
|
|
|
|
" \n",
|
|
|
|
" def coordinates(self):\n",
|
|
|
|
" C = self.curve\n",
|
2022-10-10 20:44:49 +02:00
|
|
|
" F = C.base_ring\n",
|
2021-09-11 16:02:09 +02:00
|
|
|
" m = C.exponent\n",
|
2022-10-10 20:44:49 +02:00
|
|
|
" Rx.<x> = PolynomialRing(F)\n",
|
2021-09-11 16:02:09 +02:00
|
|
|
" Fx = FractionField(Rx)\n",
|
|
|
|
" FxRy.<y> = PolynomialRing(Fx)\n",
|
|
|
|
" g = C.genus()\n",
|
2022-10-10 18:38:16 +02:00
|
|
|
" degrees_holo = C.degrees_holomorphic_differentials()\n",
|
2021-09-11 16:02:09 +02:00
|
|
|
" degrees_holo_inv = {b:a for a, b in degrees_holo.items()}\n",
|
2022-10-10 20:44:49 +02:00
|
|
|
" basis = C.holomorphic_differentials_basis()\n",
|
2021-09-11 16:02:09 +02:00
|
|
|
" \n",
|
|
|
|
" for j in range(1, m):\n",
|
|
|
|
" omega_j = Fx(self.jth_component(j))\n",
|
|
|
|
" if omega_j != Fx(0):\n",
|
2022-10-10 20:44:49 +02:00
|
|
|
" d = degree_of_rational_fctn(omega_j, F)\n",
|
2021-09-11 16:02:09 +02:00
|
|
|
" index = degrees_holo_inv[(d, j)]\n",
|
2022-10-10 20:44:49 +02:00
|
|
|
" a = coeff_of_rational_fctn(omega_j, F)\n",
|
|
|
|
" a1 = coeff_of_rational_fctn(basis[index].jth_component(j), F)\n",
|
2021-09-13 12:11:08 +02:00
|
|
|
" elt = self - (a/a1)*basis[index]\n",
|
2022-10-10 20:44:49 +02:00
|
|
|
" return elt.coordinates() + a/a1*vector([F(i == index) for i in range(0, g)])\n",
|
2021-09-11 16:02:09 +02:00
|
|
|
" \n",
|
|
|
|
" return vector(g*[0])\n",
|
2021-08-23 14:55:37 +02:00
|
|
|
" \n",
|
2021-08-19 22:35:11 +02:00
|
|
|
" def jth_component(self, j):\n",
|
|
|
|
" g = self.form\n",
|
2021-08-22 21:48:21 +02:00
|
|
|
" C = self.curve\n",
|
2022-10-10 20:44:49 +02:00
|
|
|
" F = C.base_ring\n",
|
|
|
|
" Rx.<x> = PolynomialRing(F)\n",
|
2021-08-21 20:50:10 +02:00
|
|
|
" Fx = FractionField(Rx)\n",
|
|
|
|
" FxRy.<y> = PolynomialRing(Fx)\n",
|
|
|
|
" Fxy = FractionField(FxRy)\n",
|
2021-08-22 21:48:21 +02:00
|
|
|
" Ryinv.<y_inv> = PolynomialRing(Fx)\n",
|
2021-08-21 20:50:10 +02:00
|
|
|
" g = Fxy(g)\n",
|
2021-08-20 11:21:50 +02:00
|
|
|
" g = g(y = 1/y_inv)\n",
|
2021-08-21 20:50:10 +02:00
|
|
|
" g = Ryinv(g)\n",
|
2021-08-20 11:21:50 +02:00
|
|
|
" return coff(g, j)\n",
|
|
|
|
" \n",
|
|
|
|
" def is_regular_on_U0(self):\n",
|
|
|
|
" C = self.curve\n",
|
2022-10-10 20:44:49 +02:00
|
|
|
" F = C.base_ring\n",
|
2021-08-20 11:21:50 +02:00
|
|
|
" m = C.exponent\n",
|
2022-10-10 20:44:49 +02:00
|
|
|
" Rx.<x> = PolynomialRing(F)\n",
|
2021-08-20 11:21:50 +02:00
|
|
|
" for j in range(1, m):\n",
|
2021-08-21 20:50:10 +02:00
|
|
|
" if self.jth_component(j) not in Rx:\n",
|
2021-08-20 11:21:50 +02:00
|
|
|
" return 0\n",
|
|
|
|
" return 1\n",
|
|
|
|
" \n",
|
|
|
|
" def is_regular_on_Uinfty(self):\n",
|
|
|
|
" C = self.curve\n",
|
2022-10-10 20:44:49 +02:00
|
|
|
" F = C.base_ring\n",
|
2021-08-20 11:21:50 +02:00
|
|
|
" m = C.exponent\n",
|
|
|
|
" f = C.polynomial\n",
|
|
|
|
" r = f.degree()\n",
|
|
|
|
" delta = GCD(m, r)\n",
|
|
|
|
" M = m/delta\n",
|
|
|
|
" R = r/delta\n",
|
|
|
|
" \n",
|
|
|
|
" for j in range(1, m):\n",
|
|
|
|
" A = self.jth_component(j)\n",
|
2022-10-10 20:44:49 +02:00
|
|
|
" d = degree_of_rational_fctn(A, F)\n",
|
2021-08-20 11:21:50 +02:00
|
|
|
" if(-d*M + j*R -(M+1)<0):\n",
|
|
|
|
" return 0\n",
|
|
|
|
" return 1\n",
|
|
|
|
" \n",
|
2021-08-21 19:52:03 +02:00
|
|
|
" \n",
|
2021-08-20 11:21:50 +02:00
|
|
|
"class superelliptic_cech:\n",
|
2021-08-21 18:40:44 +02:00
|
|
|
" def __init__(self, C, omega, fct):\n",
|
2021-08-20 11:21:50 +02:00
|
|
|
" self.omega0 = omega\n",
|
|
|
|
" self.omega8 = omega - diffn(fct)\n",
|
|
|
|
" self.f = fct\n",
|
2021-08-21 18:40:44 +02:00
|
|
|
" self.curve = C\n",
|
2021-08-20 11:21:50 +02:00
|
|
|
" \n",
|
2021-08-21 19:52:03 +02:00
|
|
|
" def __add__(self, other):\n",
|
|
|
|
" C = self.curve\n",
|
|
|
|
" return superelliptic_cech(C, self.omega0 + other.omega0, self.f + other.f)\n",
|
|
|
|
" \n",
|
|
|
|
" def __sub__(self, other):\n",
|
|
|
|
" C = self.curve\n",
|
|
|
|
" return superelliptic_cech(C, self.omega0 - other.omega0, self.f - other.f)\n",
|
2021-09-13 12:11:08 +02:00
|
|
|
"\n",
|
|
|
|
" def __rmul__(self, constant):\n",
|
2021-08-22 21:48:21 +02:00
|
|
|
" C = self.curve\n",
|
|
|
|
" w1 = self.omega0.form\n",
|
|
|
|
" f1 = self.f.function\n",
|
|
|
|
" w2 = superelliptic_form(C, constant*w1)\n",
|
|
|
|
" f2 = superelliptic_function(C, constant*f1)\n",
|
2021-09-13 12:11:08 +02:00
|
|
|
" return superelliptic_cech(C, w2, f2) \n",
|
2021-08-22 21:48:21 +02:00
|
|
|
" \n",
|
2021-08-21 19:52:03 +02:00
|
|
|
" def __repr__(self):\n",
|
|
|
|
" return \"(\" + str(self.omega0) + \", \" + str(self.f) + \", \" + str(self.omega8) + \")\" \n",
|
2021-08-22 21:48:21 +02:00
|
|
|
" \n",
|
2021-08-23 14:55:37 +02:00
|
|
|
" def verschiebung(self):\n",
|
2021-08-22 21:48:21 +02:00
|
|
|
" C = self.curve\n",
|
2021-08-23 14:55:37 +02:00
|
|
|
" omega = self.omega0\n",
|
2022-10-10 20:44:49 +02:00
|
|
|
" F = C.base_ring\n",
|
|
|
|
" Rx.<x> = PolynomialRing(F)\n",
|
2021-08-23 14:55:37 +02:00
|
|
|
" return superelliptic_cech(C, omega.cartier(), superelliptic_function(C, Rx(0)))\n",
|
|
|
|
" \n",
|
|
|
|
" def frobenius(self):\n",
|
|
|
|
" C = self.curve\n",
|
|
|
|
" fct = self.f.function\n",
|
|
|
|
" p = C.characteristic\n",
|
2022-10-10 20:44:49 +02:00
|
|
|
" Rx.<x> = PolynomialRing(F)\n",
|
2021-08-23 14:55:37 +02:00
|
|
|
" return superelliptic_cech(C, superelliptic_form(C, Rx(0)), superelliptic_function(C, fct^p))\n",
|
2021-08-22 21:48:21 +02:00
|
|
|
"\n",
|
|
|
|
" def coordinates(self):\n",
|
|
|
|
" C = self.curve\n",
|
2022-10-10 20:44:49 +02:00
|
|
|
" F = C.base_ring\n",
|
2021-08-22 21:48:21 +02:00
|
|
|
" m = C.exponent\n",
|
2022-10-10 20:44:49 +02:00
|
|
|
" Rx.<x> = PolynomialRing(F)\n",
|
2021-08-22 21:48:21 +02:00
|
|
|
" Fx = FractionField(Rx)\n",
|
|
|
|
" FxRy.<y> = PolynomialRing(Fx)\n",
|
|
|
|
" g = C.genus()\n",
|
2022-10-10 18:38:16 +02:00
|
|
|
" degrees_holo = C.degrees_holomorphic_differentials()\n",
|
2021-09-10 21:48:40 +02:00
|
|
|
" degrees_holo_inv = {b:a for a, b in degrees_holo.items()}\n",
|
2022-10-10 18:38:16 +02:00
|
|
|
" degrees0 = C.degrees_de_rham0()\n",
|
2021-09-10 21:48:40 +02:00
|
|
|
" degrees0_inv = {b:a for a, b in degrees0.items()}\n",
|
2022-10-10 18:38:16 +02:00
|
|
|
" degrees1 = C.degrees_de_rham1()\n",
|
2021-08-22 21:48:21 +02:00
|
|
|
" degrees1_inv = {b:a for a, b in degrees1.items()}\n",
|
2022-10-10 18:38:16 +02:00
|
|
|
" basis = C.de_rham_basis()\n",
|
2021-08-22 21:48:21 +02:00
|
|
|
" \n",
|
|
|
|
" omega = self.omega0\n",
|
|
|
|
" fct = self.f\n",
|
|
|
|
" \n",
|
2021-08-23 14:55:37 +02:00
|
|
|
" if fct.function == Rx(0) and omega.form != Rx(0):\n",
|
2021-08-22 21:48:21 +02:00
|
|
|
" for j in range(1, m):\n",
|
|
|
|
" omega_j = Fx(omega.jth_component(j))\n",
|
|
|
|
" if omega_j != Fx(0):\n",
|
2022-10-10 20:44:49 +02:00
|
|
|
" d = degree_of_rational_fctn(omega_j, F)\n",
|
2021-09-10 21:48:40 +02:00
|
|
|
" index = degrees_holo_inv[(d, j)]\n",
|
2022-10-10 20:44:49 +02:00
|
|
|
" a = coeff_of_rational_fctn(omega_j, F)\n",
|
|
|
|
" a1 = coeff_of_rational_fctn(basis[index].omega0.jth_component(j), F)\n",
|
2021-09-13 12:11:08 +02:00
|
|
|
" elt = self - (a/a1)*basis[index]\n",
|
2022-10-10 20:44:49 +02:00
|
|
|
" return elt.coordinates() + a/a1*vector([F(i == index) for i in range(0, 2*g)])\n",
|
2021-08-22 21:48:21 +02:00
|
|
|
" \n",
|
|
|
|
" for j in range(1, m):\n",
|
|
|
|
" fct_j = Fx(fct.jth_component(j))\n",
|
|
|
|
" if (fct_j != Rx(0)):\n",
|
2021-09-10 21:48:40 +02:00
|
|
|
" d = degree_of_rational_fctn(fct_j, p)\n",
|
2021-08-22 21:48:21 +02:00
|
|
|
" \n",
|
|
|
|
" if (d, j) in degrees1.values():\n",
|
|
|
|
" index = degrees1_inv[(d, j)]\n",
|
2022-10-10 20:44:49 +02:00
|
|
|
" a = coeff_of_rational_fctn(fct_j, F)\n",
|
2021-09-13 12:11:08 +02:00
|
|
|
" elt = self - (a/m)*basis[index]\n",
|
2022-10-10 20:44:49 +02:00
|
|
|
" return elt.coordinates() + a/m*vector([F(i == index) for i in range(0, 2*g)])\n",
|
2021-08-22 21:48:21 +02:00
|
|
|
" \n",
|
|
|
|
" if d<0:\n",
|
2022-10-10 20:44:49 +02:00
|
|
|
" a = coeff_of_rational_fctn(fct_j, F)\n",
|
2021-08-23 14:55:37 +02:00
|
|
|
" h = superelliptic_function(C, FxRy(a*y^j*x^d))\n",
|
|
|
|
" elt = superelliptic_cech(C, self.omega0, self.f - h)\n",
|
2021-08-22 21:48:21 +02:00
|
|
|
" return elt.coordinates()\n",
|
|
|
|
" \n",
|
|
|
|
" if (fct_j != Rx(0)):\n",
|
|
|
|
" G = superelliptic_function(C, y^j*x^d)\n",
|
2022-10-10 20:44:49 +02:00
|
|
|
" a = coeff_of_rational_fctn(fct_j, F)\n",
|
2021-09-13 12:11:08 +02:00
|
|
|
" elt =self - a*superelliptic_cech(C, diffn(G), G)\n",
|
2021-08-22 21:48:21 +02:00
|
|
|
" return elt.coordinates()\n",
|
|
|
|
"\n",
|
|
|
|
" return vector(2*g*[0])\n",
|
2021-08-23 14:55:37 +02:00
|
|
|
" \n",
|
|
|
|
" def is_cocycle(self):\n",
|
|
|
|
" w0 = self.omega0\n",
|
|
|
|
" w8 = self.omega8\n",
|
|
|
|
" fct = self.f\n",
|
|
|
|
" if not w0.is_regular_on_U0() and not w8.is_regular_on_Uinfty():\n",
|
|
|
|
" return('w0 & w8')\n",
|
|
|
|
" if not w0.is_regular_on_U0():\n",
|
|
|
|
" return('w0')\n",
|
|
|
|
" if not w8.is_regular_on_Uinfty():\n",
|
|
|
|
" return('w8')\n",
|
|
|
|
" if w0.is_regular_on_U0() and w8.is_regular_on_Uinfty():\n",
|
|
|
|
" return 1\n",
|
|
|
|
" return 0\n",
|
2021-08-21 19:52:03 +02:00
|
|
|
" \n",
|
2022-10-10 20:44:49 +02:00
|
|
|
"def degree_of_rational_fctn(f, F):\n",
|
|
|
|
" Rx.<x> = PolynomialRing(F)\n",
|
2021-08-21 20:50:10 +02:00
|
|
|
" Fx = FractionField(Rx)\n",
|
|
|
|
" f = Fx(f)\n",
|
2021-08-20 11:21:50 +02:00
|
|
|
" f1 = f.numerator()\n",
|
|
|
|
" f2 = f.denominator()\n",
|
|
|
|
" d1 = f1.degree()\n",
|
|
|
|
" d2 = f2.degree()\n",
|
|
|
|
" return(d1 - d2)\n",
|
|
|
|
"\n",
|
2022-10-10 20:44:49 +02:00
|
|
|
"def coeff_of_rational_fctn(f, F):\n",
|
|
|
|
" Rx.<x> = PolynomialRing(F)\n",
|
2021-08-22 21:48:21 +02:00
|
|
|
" Fx = FractionField(Rx)\n",
|
|
|
|
" f = Fx(f)\n",
|
2021-08-23 14:55:37 +02:00
|
|
|
" if f == Rx(0):\n",
|
|
|
|
" return 0\n",
|
2021-08-22 21:48:21 +02:00
|
|
|
" f1 = f.numerator()\n",
|
|
|
|
" f2 = f.denominator()\n",
|
|
|
|
" d1 = f1.degree()\n",
|
|
|
|
" d2 = f2.degree()\n",
|
|
|
|
" a1 = f1.coefficients(sparse = false)[d1]\n",
|
|
|
|
" a2 = f2.coefficients(sparse = false)[d2]\n",
|
|
|
|
" return(a1/a2)\n",
|
|
|
|
"\n",
|
2021-08-20 11:21:50 +02:00
|
|
|
"def coff(f, d):\n",
|
|
|
|
" lista = f.coefficients(sparse = false)\n",
|
|
|
|
" if len(lista) <= d:\n",
|
|
|
|
" return 0\n",
|
|
|
|
" return lista[d]\n",
|
|
|
|
"\n",
|
|
|
|
"def cut(f, i):\n",
|
2021-08-21 18:40:44 +02:00
|
|
|
" R = f.parent()\n",
|
2021-08-20 11:21:50 +02:00
|
|
|
" coeff = f.coefficients(sparse = false)\n",
|
2021-08-23 14:55:37 +02:00
|
|
|
" return sum(R(x^(j-i-1)) * coeff[j] for j in range(i+1, f.degree() + 1))\n",
|
|
|
|
"\n",
|
|
|
|
"def polynomial_part(p, h):\n",
|
2022-10-10 20:44:49 +02:00
|
|
|
" F = GF(p)\n",
|
|
|
|
" Rx.<x> = PolynomialRing(F)\n",
|
2021-08-23 14:55:37 +02:00
|
|
|
" h = Rx(h)\n",
|
|
|
|
" result = Rx(0)\n",
|
|
|
|
" for i in range(0, h.degree()+1):\n",
|
|
|
|
" if (i%p) == p-1:\n",
|
|
|
|
" power = Integer((i-(p-1))/p)\n",
|
|
|
|
" result += Integer(h[i]) * x^(power) \n",
|
|
|
|
" return result"
|
2021-08-19 22:35:11 +02:00
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"cell_type": "code",
|
2022-10-10 20:44:49 +02:00
|
|
|
"execution_count": 55,
|
2022-03-07 13:48:30 +01:00
|
|
|
"metadata": {
|
|
|
|
"collapsed": false
|
|
|
|
},
|
|
|
|
"outputs": [
|
|
|
|
],
|
2021-09-09 21:20:15 +02:00
|
|
|
"source": [
|
|
|
|
"def preimage(U, V, M): #preimage of subspace U under M\n",
|
|
|
|
" basis_preimage = M.right_kernel().basis()\n",
|
|
|
|
" imageU = U.intersection(M.transpose().image())\n",
|
|
|
|
" basis = imageU.basis()\n",
|
|
|
|
" for v in basis:\n",
|
|
|
|
" w = M.solve_right(v)\n",
|
|
|
|
" basis_preimage = basis_preimage + [w]\n",
|
|
|
|
" return V.subspace(basis_preimage)\n",
|
|
|
|
"\n",
|
|
|
|
"def image(U, V, M):\n",
|
|
|
|
" basis = U.basis()\n",
|
|
|
|
" basis_image = []\n",
|
|
|
|
" for v in basis:\n",
|
|
|
|
" basis_image += [M*v]\n",
|
|
|
|
" return V.subspace(basis_image)\n",
|
|
|
|
"\n",
|
2021-10-08 18:47:24 +02:00
|
|
|
"def flag(F, V, p, test = 0):\n",
|
2021-09-09 21:20:15 +02:00
|
|
|
" dim = F.dimensions()[0]\n",
|
|
|
|
" space = VectorSpace(GF(p), dim)\n",
|
|
|
|
" flag_subspaces = (dim+1)*[0]\n",
|
|
|
|
" flag_used = (dim+1)*[0]\n",
|
2021-10-08 18:47:24 +02:00
|
|
|
" final_type = (dim+1)*['?']\n",
|
2021-09-09 21:20:15 +02:00
|
|
|
" \n",
|
|
|
|
" flag_subspaces[dim] = space\n",
|
|
|
|
" flag_used[dim] = 1\n",
|
|
|
|
" \n",
|
|
|
|
" \n",
|
|
|
|
" while 1 in flag_used:\n",
|
|
|
|
" index = flag_used.index(1)\n",
|
|
|
|
" flag_used[index] = 0\n",
|
|
|
|
" U = flag_subspaces[index]\n",
|
|
|
|
" U_im = image(U, space, V)\n",
|
|
|
|
" d_im = U_im.dimension()\n",
|
|
|
|
" final_type[index] = d_im\n",
|
|
|
|
" U_pre = preimage(U, space, F)\n",
|
|
|
|
" d_pre = U_pre.dimension()\n",
|
|
|
|
" \n",
|
|
|
|
" if flag_subspaces[d_im] == 0:\n",
|
|
|
|
" flag_subspaces[d_im] = U_im\n",
|
|
|
|
" flag_used[d_im] = 1\n",
|
|
|
|
" \n",
|
|
|
|
" if flag_subspaces[d_pre] == 0:\n",
|
|
|
|
" flag_subspaces[d_pre] = U_pre\n",
|
|
|
|
" flag_used[d_pre] = 1\n",
|
|
|
|
" \n",
|
2021-10-08 18:47:24 +02:00
|
|
|
" if test == 1:\n",
|
|
|
|
" print('(', final_type, ')')\n",
|
|
|
|
" \n",
|
2021-09-09 21:20:15 +02:00
|
|
|
" for i in range(0, dim+1):\n",
|
2021-10-08 18:47:24 +02:00
|
|
|
" if final_type[i] == '?' and final_type[dim - i] != '?':\n",
|
2021-09-09 21:20:15 +02:00
|
|
|
" i1 = dim - i\n",
|
|
|
|
" final_type[i] = final_type[i1] - i1 + dim/2\n",
|
|
|
|
" \n",
|
|
|
|
" final_type[0] = 0\n",
|
2021-10-08 18:47:24 +02:00
|
|
|
" \n",
|
|
|
|
" for i in range(1, dim+1):\n",
|
|
|
|
" if final_type[i] == '?':\n",
|
|
|
|
" prev = final_type[i-1]\n",
|
|
|
|
" if prev != '?' and prev in final_type[i+1:]:\n",
|
|
|
|
" final_type[i] = prev\n",
|
|
|
|
" \n",
|
2021-09-09 21:20:15 +02:00
|
|
|
" for i in range(1, dim+1):\n",
|
2021-10-08 18:47:24 +02:00
|
|
|
" if final_type[i] == '?':\n",
|
2021-09-11 16:02:09 +02:00
|
|
|
" final_type[i] = min(final_type[i-1] + 1, dim/2)\n",
|
2021-09-09 21:20:15 +02:00
|
|
|
" \n",
|
|
|
|
" if is_final(final_type, dim/2):\n",
|
|
|
|
" return final_type[1:dim/2 + 1]\n",
|
2021-10-08 18:47:24 +02:00
|
|
|
" print('error:', final_type[1:dim/2 + 1])\n",
|
2021-09-09 21:20:15 +02:00
|
|
|
" \n",
|
|
|
|
"def is_final(final_type, dim):\n",
|
|
|
|
" n = len(final_type)\n",
|
|
|
|
" if final_type[0] != 0:\n",
|
|
|
|
" return 0\n",
|
|
|
|
" \n",
|
|
|
|
" if final_type[n-1] != dim:\n",
|
|
|
|
" return 0\n",
|
|
|
|
" \n",
|
|
|
|
" for i in range(1, n):\n",
|
2021-09-11 16:02:09 +02:00
|
|
|
" if final_type[i] != final_type[i - 1] and final_type[i] != final_type[i - 1] + 1:\n",
|
2021-09-09 21:20:15 +02:00
|
|
|
" return 0\n",
|
|
|
|
" return 1"
|
|
|
|
]
|
|
|
|
},
|
2021-09-10 21:48:40 +02:00
|
|
|
{
|
|
|
|
"cell_type": "code",
|
2021-09-13 12:11:08 +02:00
|
|
|
"execution_count": 58,
|
2022-03-07 13:48:30 +01:00
|
|
|
"metadata": {
|
|
|
|
"collapsed": false
|
|
|
|
},
|
2022-10-10 18:09:01 +02:00
|
|
|
"outputs": [
|
|
|
|
],
|
|
|
|
"source": [
|
2022-10-10 20:44:49 +02:00
|
|
|
"Rx.<x> = PolynomialRing(GF(5))\n",
|
|
|
|
"f = x^7 + x + 1\n",
|
|
|
|
"C = superelliptic(f, 2)"
|
2022-10-10 18:09:01 +02:00
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"cell_type": "code",
|
2022-10-10 20:44:49 +02:00
|
|
|
"execution_count": 59,
|
2022-10-10 18:09:01 +02:00
|
|
|
"metadata": {
|
|
|
|
"collapsed": false
|
|
|
|
},
|
|
|
|
"outputs": [
|
|
|
|
{
|
|
|
|
"data": {
|
|
|
|
"text/plain": [
|
2022-10-10 20:44:49 +02:00
|
|
|
"[0 0 1]\n",
|
|
|
|
"[0 2 0]\n",
|
|
|
|
"[1 2 0]"
|
2022-10-10 18:09:01 +02:00
|
|
|
]
|
|
|
|
},
|
2022-10-10 20:44:49 +02:00
|
|
|
"execution_count": 59,
|
2022-10-10 18:09:01 +02:00
|
|
|
"metadata": {
|
|
|
|
},
|
|
|
|
"output_type": "execute_result"
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"source": [
|
2022-10-10 20:44:49 +02:00
|
|
|
"C.cartier_matrix()"
|
2022-10-10 18:09:01 +02:00
|
|
|
]
|
|
|
|
},
|
2021-08-19 22:35:11 +02:00
|
|
|
{
|
|
|
|
"cell_type": "code",
|
2022-03-07 13:48:30 +01:00
|
|
|
"execution_count": 0,
|
|
|
|
"metadata": {
|
|
|
|
"collapsed": false
|
|
|
|
},
|
|
|
|
"outputs": [
|
|
|
|
],
|
|
|
|
"source": [
|
|
|
|
]
|
2021-08-19 22:35:11 +02:00
|
|
|
}
|
|
|
|
],
|
|
|
|
"metadata": {
|
|
|
|
"kernelspec": {
|
2022-03-07 13:48:30 +01:00
|
|
|
"display_name": "SageMath 9.5",
|
|
|
|
"language": "sagemath",
|
|
|
|
"metadata": {
|
|
|
|
"cocalc": {
|
|
|
|
"description": "Open-source mathematical software system",
|
2022-10-10 18:09:01 +02:00
|
|
|
"priority": 1,
|
2022-03-07 13:48:30 +01:00
|
|
|
"url": "https://www.sagemath.org/"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"name": "sage-9.5",
|
|
|
|
"resource_dir": "/ext/jupyter/kernels/sage-9.5"
|
2021-08-19 22:35:11 +02:00
|
|
|
},
|
|
|
|
"language_info": {
|
|
|
|
"codemirror_mode": {
|
|
|
|
"name": "ipython",
|
|
|
|
"version": 3
|
|
|
|
},
|
|
|
|
"file_extension": ".py",
|
|
|
|
"mimetype": "text/x-python",
|
|
|
|
"name": "python",
|
|
|
|
"nbconvert_exporter": "python",
|
|
|
|
"pygments_lexer": "ipython3",
|
2022-03-07 13:48:30 +01:00
|
|
|
"version": "3.9.9"
|
2021-08-19 22:35:11 +02:00
|
|
|
}
|
|
|
|
},
|
|
|
|
"nbformat": 4,
|
2022-03-07 13:48:30 +01:00
|
|
|
"nbformat_minor": 4
|
|
|
|
}
|