Skip to main content
  • Home
  • Development
  • Documentation
  • Donate
  • Operational login
  • Browse the archive

swh logo
SoftwareHeritage
Software
Heritage
Archive
Features
  • Search

  • Downloads

  • Save code now

  • Add forge now

  • Help

Revision 336e50b389130321cd919d43698070bc42f31364 authored by Maarten Derickx on 04 July 2024, 11:18:40 UTC, committed by Maarten Derickx on 04 July 2024, 11:18:40 UTC
Classgroup of deg 2 points onX_1(16) divisible by 5
1 parent f69d0e0
  • Files
  • Changes
  • 9d6cc4c
  • /
  • scratch
  • /
  • class_groups_x_1_16.m
Raw File Download

To reference or cite the objects present in the Software Heritage archive, permalinks based on SoftWare Hash IDentifiers (SWHIDs) must be used.
Select below a type of object currently browsed in order to display its associated SWHID and permalink.

  • revision
  • directory
  • content
revision badge
swh:1:rev:336e50b389130321cd919d43698070bc42f31364
directory badge
swh:1:dir:a98133b902fda43d0fde0c0539c7c6123f0d49cd
content badge
swh:1:cnt:6c04dc11b05967db00b0bed075464d508d41dd94

This interface enables to generate software citations, provided that the root directory of browsed objects contains a citation.cff or codemeta.json file.
Select below a type of object currently browsed in order to generate citations for them.

  • revision
  • directory
  • content
(requires biblatex-software package)
Generating citation ...
(requires biblatex-software package)
Generating citation ...
(requires biblatex-software package)
Generating citation ...
class_groups_x_1_16.m
_<x>:=PolynomialRing(Integers());
f := x*(x^2+1)*(x^2+2*x-1);
C := HyperellipticCurve(f);

for t in [-100..100] do
  d := Evaluate(f,t);
  if d ge 0 then continue; end if;
  d_squarefree := - &* [pe[1] : pe in Factorization(d) | pe[2] mod 2 eq 1];
  d_square := &* [pe[1]^(pe[2] div 2) : pe in Factorization(d)];
  
  K<a0> := QuadraticField(Evaluate(f,t));
  a := a0*d_square;
  //print d,d_squarefree,K;

  OK := MaximalOrder(K);

  I1 := ideal< OK | [t-1,a-2]>;
  I2 := ideal< OK | [t-1,a+2]>;

  g := ((-6*t^2 - 4*t + 2)*a + (t^5 + 13*t^4 -  2*t^3 + 10*t^2 - 7*t + 1))/(t^5 - 5*t^4 + 10*t^3 - 10*t^2 + 5*t - 1);
  I := I1/I2;
  factors := [[Norm(pe[1]),pe[2]] : pe in Factorization(I^5*(1/g))];
  if #factors gt 0 then
    print [[Norm(pe[1]),pe[2]] : pe in Factorization(OK*g)];
    print [[Norm(pe[1]),pe[2]] : pe in Factorization(I)];
    print [[Norm(pe[1]),pe[2]] : pe in Factorization(I^5*(1/g))];
  end if;
  is_principal := IsPrincipal(I);
  print t,d_squarefree, is_principal, IsPrincipal(I^5);//,Invariants(ClassGroup(K));
  if not IsPrincipal(I^5) then
    print d,d_squarefree,a^2 eq d,K;
  end if;


end for;


C:=HyperellipticCurve(f);
//FF<X,Y> := FunctionField(C);
FF<x,y> := FunctionField(C);
p1,p2 := Explode(Zeros(x-1)); p1,p2;
IsPrincipal(5*(p1-p2));
t := -10;
K<a> := QuadraticField(Evaluate(f,t));
OK := MaximalOrder(K);

I1 := ideal< OK | [t-1,a-2]>;
I2 := ideal< OK | [t-1,a+2]>;

_<x>:=PolynomialRing(Integers());
f := x*(x^2+1)*(x^2+2*x-1);

for t in [1..100] do
  if not IsSquarefree(t) then continue; end if;
  K := QuadraticField(Evaluate(f,t));
  print t, NarrowClassNumber(K)/ClassNumber(K);
end for;

A3<x,y,z>:=AffineSpace(Rationals(),3);

C := Curve(A3,[y^2-(x*(x^2+1)*(x^2+2*x-1)), z^5*(x^5 - 5*x^4 + 10*x^3 - 10*x^2 + 5*x - 1)-((-6*x^2 - 4*x + 2)*y + x^5 + 13*x^4 - 2*x^3 + 10*x^2 - 7*x + 1)]);

C1 := ProjectiveClosure(C);
G := AutomorphismGroup(C1);
auts := Automorphisms(C1);
print auts[2];
C2 := CurveQuotient(AutomorphismGroup(C1, [G ! auts[2]]));

print C2;

_<x> :=PolynomialRing(Integers());
f := x^6 - x^5 + 5*x^3 - x + 1;
C2 := HyperellipticCurve(f);
K := QuadraticField(Discriminant(f));
//f1,f2 := Explode([pe[1] : pe in Factorization(ChangeRing(f,K))]);
//L := SplittingField(f);
//fs :=  &cat [[pe[1] : pe in Factorization(ChangeRing(f,M[1])) |  Degree(pe[1]) eq 4] : M in Subfields(L)];

L1 :=  NumberField(x^3 - x^2 + 2*x + 2);
fs := [pe[1] : pe in Factorization(ChangeRing(f,L1)) |  Degree(pe[1]) eq 4];

C := C2;
  time Hk , AtoHk, expvecs, factorbase := TwoCoverDescent(C: Raw:=true);
  
  // Get the map that allows us to construct covers explicitly as elements in an algebra A
  HktoA := createHktoA(AtoHk, expvecs, factorbase);

  Hk := Setseq(Hk);
  E := EllipticChabauty(C, fs[1], Hk[1], HktoA);




  time Hk , AtoHk, expvecs, factorbase := TwoCoverDescent(C: Raw:=true);
  
  // Get the map that allows us to construct covers explicitly as elements in an algebra A
  HktoA := createHktoA(AtoHk, expvecs, factorbase);

  Hk := Setseq(Hk);
  points := {@ @};
  hk_info := [* *];
  for i in [1..#Hk] do
    hk := Hk[i];
    print "doing hk", i, hk;
    assert AtoHk(HktoA(hk)) eq hk;
    success := false;
    fE_info := [* *];
    
    // we have 8 Galois conjugacy classes of genus 1 curves to work with
    for fE in fs do
      print "======== doing f =====", fE;
      success, gamma_g, new_points, message := EllipticChabauty(C, fE, hk, HktoA);
      print "chabauty result", success, gamma_g, new_points, message;
      Append(~fE_info, <gamma_g,message>);
      if success then
        points := points join new_points;
        break;
      end if;
    end for;
    //Append(~hk_info,fE_info);
    if not success then
      print "=============================== failed ======================";
      print hk, i, #Hk;
      print hk_info;
      //break;
    end if;
  end for;
  if #points gt 2 then
    print "====================== extra points!!! ====================";
    print points;
  end if;


  time Hk , AtoHk, expvecs, factorbase := TwoCoverDescent(C: Raw:=true);
  
  // Get the map that allows us to construct covers explicitly as elements in an algebra A
  HktoA := createHktoA(AtoHk, expvecs, factorbase);

  Hk := Setseq(Hk);
  points := {@ @};
  hk_info := [* *];
    i := 2;
    hk := Hk[i];
    print "doing hk", i, hk, HktoA(hk);
    assert AtoHk(HktoA(hk)) eq hk;
    success := false;
    fE_info := [* *];
    

    for fE in [* f1, f2 *] do
      print "======== doing f =====", fE;
      success, gamma_g, new_points, message := EllipticChabauty(C, fE, hk, HktoA);
      print "chabauty result", success, gamma_g, new_points, message;
      Append(~fE_info, <gamma_g,message>);
      if success then
        points := points join new_points;
        break;
      end if;
    end for;
    //Append(~hk_info,fE_info);
    if not success then
      print "=============================== failed ======================";
      print hk, i, #Hk;
      print hk_info;
    end if;
The diff you're trying to view is too large. Only the first 1000 changed files have been loaded.
Showing with 0 additions and 0 deletions (0 / 0 diffs computed)
swh spinner

Computing file changes ...

back to top

Software Heritage — Copyright (C) 2015–2026, The Software Heritage developers. License: GNU AGPLv3+.
The source code of Software Heritage itself is available on our development forge.
The source code files archived by Software Heritage are available under their own copyright and licenses.
Terms of use: Archive access, API— Content policy— Contact— JavaScript license information— Web API