// 05_ns_lattice.m -- Section 4 of Yu-Zhu, arXiv:2609.26862v1: the lattice M spanned by the 85 // lines and the four conics C_1..C_4 on X = X_{-1/8}, and the 5-saturation of N = M cap h^perp. // // Claims checked: // (4.1) C_1 is a smooth conic contained in X; sigma = [A_1 A_2] preserves X (F o sigma = c F); // (4.2) C_j = sigma^(j-1)(C_1), j = 2,3,4. sigma acts on points by x -> sigma x, so // sigma^k(C_1) = V(g o sigma^-k) ("convention A"). The other reading // C_j = V(g o sigma^(j-1)) = sigma^-(j-1)(C_1) ("convention B") is computed as well, // since the two give DIFFERENT sets of four conics (the sigma-orbit of C_1 has 12 members); // Thm 1.2 lower bound: the 89x89 intersection matrix of L_1..L_85, C_1..C_4 has rank 43; // proof of Thm 1.3: disc M = 2^18 3^7; N^vee/N = (Z/2)^3 + Z/6 + (Z/12)^4 + Z/24 + Z/120; // p^2 | disc N iff p in {2,3}; n_6(N_H) > n_6(N) for every isotropic subgroup H of // N^vee/N of order 2 or 3 (=> N is 5-saturated by Lemma 2.6). // Intersection numbers: L.L' = 1/0 (meet/skew, 4x4 determinant), L^2 = -3, C^2 = -4 (adjunction: // K_X = h, so C^2 = -2 - deg C for a smooth rational curve), and for distinct curves A, B the length // of the 0-dimensional scheme A cap B in P^3 (= the sum of local intersection numbers on the smooth // surface X, because I_A + I_B contains I_X). Each L.C_j and C_i.C_j is computed by two methods: // method 1: restriction to a line (L itself, resp. the line common to the two conic planes): // the length is the degree of the gcd of binary forms (evaluations / resultants); // method 2: the Hilbert function of K[x]/(I_A + I_B) in degree 3 (line, conic) resp. 4 (two // conics), computed as 1 + (#monomials) - rank of a coefficient matrix; in these degrees // it equals the length (I_A + I_B reduces to an ideal of binary forms of degree <= 2, // or to two plane conics, whose Hilbert functions are constant from degree 2 on). // Everything is exact linear algebra over K = Q(i, 2^(1/4), 3^(1/4)) (no Groebner bases over K // are needed except for the membership/equality tests of conic ideals). // // Output: the transcript, plus two data blocks that are cut out of the transcript into // magma/out/saturation_witnesses.txt (between BEGIN_WITNESS_FILE / END_WITNESS_FILE) // magma/out/N_basis.txt (between BEGIN_NBASIS_FILE / END_NBASIS_FILE) SetColumns(0); load "yz_lines85.m"; T0 := Cputime(); t0 := -1/8; P4 := PolynomialRing(K, 4); XX := [x1, x2, x3, x4]; F := Ffun(x1, x2, x3, x4, t0); Pull := func< g, A | Evaluate(g, [ &+[ A[i,k]*XX[k] : k in [1..4] ] : i in [1..4] ]) >; // g(A x) lincoeffs := func< l | [ MonomialCoefficient(l, XX[k]) : k in [1..4] ] >; EvalV := func< g, v | Evaluate(g, Eltseq(v)) >; // ---------------------------------------------------------------- conic C_1 (4.1) printf "== the conic C_1 of (4.1) ==\n"; pl1 := (1 - iu)*q24*(q12 - s3 + 1)*x2 - ((q12 + s3 - 1)*x3 + 4*x4); qd1 := 4*iu*s2*(x1^2 + (q108 - 3)*x2^2) - ((s3 - 1)*x3^2 + 2*(s3 - 1 - q108)*x4^2); I1 := ideal< P4 | pl1, qd1 >; printf "C_1 contained in X (F in (plane, quadric)): %o\n", F in I1; // restrict the quadric to the plane: x4 = ((1-i)24^(1/4)(12^(1/4)-sqrt3+1) x2 - (12^(1/4)+sqrt3-1) x3)/4 x4sub := ((1 - iu)*q24*(q12 - s3 + 1)*x2 - (q12 + s3 - 1)*x3)/4; assert Evaluate(pl1, [x1, x2, x3, x4sub]) eq 0; qr := Evaluate(qd1, [x1, x2, x3, x4sub]); SymM := Matrix(K, 3, 3, [ (i eq j select 1 else 1/2)*MonomialCoefficient(qr, XX[i]*XX[j]) : i, j in [1..3] ]); printf "determinant of the restricted ternary quadratic form is nonzero (smooth conic): %o\n", Determinant(SymM) ne 0; // ---------------------------------------------------------------- sigma = [A_1 A_2] printf "\n== sigma = [A_1 A_2] (Remark 3.2) ==\n"; A1 := Matrix(K, 4, 4, [ -xi8/s2, r3/s2, 0, 0, -1/(r3*s2), -xi8^7/s2, 0, 0, 0, 0, xi3, 0, 0, 0, 0, xi3^2 ]); A2 := DiagonalMatrix(K, [-1, 1, 1, 1]); sig := A1*A2; Fs := Pull(F, sig); cF := MonomialCoefficient(Fs, x3^4*x4) / MonomialCoefficient(F, x3^4*x4); printf "F(sigma x) = c F(x) with c = %o: %o\n", cF, Fs eq cF*F; assert Fs eq cF*F; IsScal := func< A | IsDiagonal(A) and #{ A[k,k] : k in [1..4] } eq 1 >; ordsig := [ n : n in [1..24] | IsScal(sig^n) ][1]; printf "projective order of sigma: %o\n", ordsig; siginv := sig^-1; // images sigma^k(C_1) = V(g o sigma^-k), k = 0..ordsig-1 ImC := [ ideal< P4 | Pull(pl1, siginv^k), Pull(qd1, siginv^k) > : k in [0..ordsig-1] ]; orb := [ k : k in [0..ordsig-1] | ImC[k+1] eq I1 ]; printf "k in [0..%o] with sigma^k(C_1) = C_1: %o\n", ordsig-1, orb; nd := 1 + #[ k : k in [1..ordsig-1] | &and[ ImC[k+1] ne ImC[l+1] : l in [0..k-1] ] ]; printf "size of the sigma-orbit of C_1: %o\n", nd; // conics: convention A: C_j = sigma^(j-1)(C_1); convention B: C'_j = sigma^(-(j-1))(C_1) PLA := [ Pull(pl1, siginv^(j-1)) : j in [1..4] ]; QDA := [ Pull(qd1, siginv^(j-1)) : j in [1..4] ]; PLB := [ Pull(pl1, sig^(j-1)) : j in [1..4] ]; QDB := [ Pull(qd1, sig^(j-1)) : j in [1..4] ]; CA := [ ideal : j in [1..4] ]; CB := [ ideal : j in [1..4] ]; printf "convention A: C_1..C_4 on X: %o, pairwise distinct: %o\n", &and[ F in CA[j] : j in [1..4] ], &and[ CA[i] ne CA[j] : i, j in [1..4] | i lt j ]; printf "convention B: C'_1..C'_4 on X: %o, pairwise distinct: %o\n", &and[ F in CB[j] : j in [1..4] ], &and[ CB[i] ne CB[j] : i, j in [1..4] | i lt j ]; printf "conics common to both conventions: C'_j = C_i for (j,i) in %o\n", [ : j, i in [1..4] | CB[j] eq CA[i] ]; printf "time so far: %o s\n", Cputime(T0); // ---------------------------------------------------------------- intersection numbers printf "\n== intersection numbers ==\n"; bases := [ LineBasis(EQ[n]) : n in [1..85] ]; Lgens := [ [ &+[ EQ[n][r,k]*XX[k] : k in [1..4] ] : r in [1..2] ] : n in [1..85] ]; Bilin := func< q, u, v | EvalV(q, u + v) - EvalV(q, u) - EvalV(q, v) >; // method 1, line and conic: restrict the plane equation to the line LineConic := function(B, pl, qd) a := EvalV(pl, B[1]); b := EvalV(pl, B[2]); if a eq 0 and b eq 0 then // line inside the plane of the conic: length = deg(qd|L) = 2 assert [ EvalV(qd, B[1]), Bilin(qd, B[1], B[2]), EvalV(qd, B[2]) ] ne [K| 0, 0, 0]; return 2; end if; return EvalV(qd, b*B[1] - a*B[2]) eq 0 select 1 else 0; // the point L cap plane end function; // method 1, two conics: restrict both quadrics to the line common to the two planes ConicConic := function(pa, qa, pb, qb) Mp := Matrix(K, 2, 4, lincoeffs(pa) cat lincoeffs(pb)); if Rank(Mp) eq 1 then return -1; end if; // same plane (then method 2 decides) B := LineBasis(Mp); fa := [ EvalV(qa, B[1]), Bilin(qa, B[1], B[2]), EvalV(qa, B[2]) ]; fb := [ EvalV(qb, B[1]), Bilin(qb, B[1], B[2]), EvalV(qb, B[2]) ]; assert fa ne [K| 0,0,0] and fb ne [K| 0,0,0]; // an irreducible conic contains no line if Rank(Matrix(K, 2, 3, fa cat fb)) eq 1 then return 2; end if; Syl := Matrix(K, 4, 4, [ fa[1], fa[2], fa[3], 0, 0, fa[1], fa[2], fa[3], fb[1], fb[2], fb[3], 0, 0, fb[1], fb[2], fb[3] ]); return Determinant(Syl) eq 0 select 1 else 0; end function; // method 2: Hilbert function of K[x]/(gens) in degree d HFd := function(gens, d) mons := [ m : m in MonomialsOfDegree(P4, d) ]; rows := []; for g in gens do for m in MonomialsOfDegree(P4, d - TotalDegree(g)) do Append(~rows, [ MonomialCoefficient(m*g, mm) : mm in mons ]); end for; end for; return #mons - Rank(Matrix(K, #rows, #mons, &cat rows)); end function; GL := ZeroMatrix(Integers(), 85, 85); // lines for m in [1..85] do for n in [m+1..85] do D := Matrix(K, 4, 4, Eltseq(bases[m][1]) cat Eltseq(bases[m][2]) cat Eltseq(bases[n][1]) cat Eltseq(bases[n][2])); if Determinant(D) eq 0 then GL[m,n] := 1; GL[n,m] := 1; end if; end for; GL[m,m] := -3; end for; IntMatrix := function(PLs, QDs, check) G := ZeroMatrix(Integers(), 89, 89); InsertBlock(~G, GL, 1, 1); mism := 0; nchk := 0; for n in [1..85] do for j in [1..4] do v := LineConic(bases[n], PLs[j], QDs[j]); if check then nchk +:= 1; if HFd(Lgens[n] cat [PLs[j], QDs[j]], 3) ne v then mism +:= 1; end if; end if; G[n, 85+j] := v; G[85+j, n] := v; end for; end for; for i in [1..4] do G[85+i, 85+i] := -4; for j in [i+1..4] do v2 := HFd([PLs[i], QDs[i], PLs[j], QDs[j]], 4); nchk +:= 1; v1 := ConicConic(PLs[i], QDs[i], PLs[j], QDs[j]); if v1 ne -1 and v1 ne v2 then mism +:= 1; end if; G[85+i, 85+j] := v2; G[85+j, 85+i] := v2; end for; end for; return G, mism, nchk; end function; GA, mA, cA := IntMatrix(PLA, QDA, true); printf "convention A: %o intersection numbers L.C_j, C_i.C_j computed by both methods; disagreements: %o\n", cA, mA; GB, mB, cB := IntMatrix(PLB, QDB, false); printf "convention B: computed by method 1 (C_i.C_j by both methods; disagreements: %o)\n", mB; for pr in [ <"A", GA>, <"B", GB> ] do for j in [1..4] do printf "convention %o, conic %o meets the lines (with multiplicity): %o\n", pr[1], j, [ : n in [1..85] | pr[2][n, 85+j] ne 0 ]; end for; printf "convention %o, C_i.C_j (i : i, j in [1..4] | i lt j ]; end for; printf "time so far: %o s\n", Cputime(T0); // ---------------------------------------------------------------- hyperplane class printf "\n== hyperplane class h ==\n"; // x4 = 0 cuts X in L_1 + L_2 + L_3 + L_4 + L_5 (all with multiplicity one), x3 = 0 in L_1 + L_6..L_9 P2 := PolynomialRing(K, 2); lf := func< n | EQ[n][2,1]*y1 + EQ[n][2,2]*y2 >; // second equation of L_n (n = 2..9), in x1,x2 qa := y1^4 - 6*y1^2*y2^2 - 3*y2^4; qb := y1^4 + 6*y1^2*y2^2 - 3*y2^4; assert Evaluate(F, [x1, x2, x3, 0]) eq x3*Evaluate(qa, [x1, x2]); assert Evaluate(F, [x1, x2, 0, x4]) eq -x4*Evaluate(qb, [x1, x2]); pa := &*[ lf(n) : n in [2..5] ]; pb := &*[ lf(n) : n in [6..9] ]; okA := pa eq LeadingCoefficient(pa)*qa and &and[ EQ[n][1] eq Vector(K, [0,0,0,1]) : n in [2..5] ]; okB := pb eq LeadingCoefficient(pb)*qb and &and[ EQ[n][1] eq Vector(K, [0,0,1,0]) : n in [6..9] ]; printf "F|_{x4=0} = x3 * prod(L_2..L_5) (distinct factors): %o; F|_{x3=0} = -x4 * prod(L_6..L_9): %o\n", okA and #{ lf(n)/LeadingCoefficient(lf(n)) : n in [2..5] } eq 4, okB and #{ lf(n)/LeadingCoefficient(lf(n)) : n in [6..9] } eq 4; hA := Vector(Integers(), [ n in [1..5] select 1 else 0 : n in [1..89] ]); hB := Vector(Integers(), [ n in [1,6,7,8,9] select 1 else 0 : n in [1..89] ]); for pr in [ <"A", GA>, <"B", GB> ] do hG := hA*pr[2]; printf "convention %o: h.L_n = 1 for all n: %o; h.C_j = 2 for all j: %o; h^2 = %o; (hA - hB).G = 0: %o\n", pr[1], &and[ hG[n] eq 1 : n in [1..85] ], &and[ hG[85+j] eq 2 : j in [1..4] ], (hG, hA), IsZero((hA-hB)*pr[2]); end for; // ---------------------------------------------------------------- the lattices M and N // M = Z^89 / ker(G) (NS(X) is torsion free); realised as the row lattice of G. Returns the rank, // T (basis beta_i = sum_k T[i,k] c_k of M), Xc (coordinates of the 89 curves in beta), the Gram // matrix GM of M, and an LLL-reduced basis KN (beta-coordinates) of N = M cap h^perp with Gram GN. LatData := function(G) rk := Rank(G); H := HermiteForm(G); Bm := RowSubmatrix(H, 1, rk); assert IsZero(RowSubmatrix(H, rk+1, 89 - rk)); ok, T := IsConsistent(G, Bm); assert ok; ok, Xc := IsConsistent(Bm, G); assert ok; GM := T*G*Transpose(T); assert Xc*GM*Transpose(Xc) eq G; hM := &+[ Xc[n] : n in [1..5] ]; Kn := KernelMatrix(Matrix(Integers(), rk, 1, Eltseq(GM*Transpose(Matrix(hM))))); assert Nrows(Kn) eq rk - 1; GNp, TL := LLLGram(-(Kn*GM*Transpose(Kn)) : Delta := 0.999); return rk, T, Xc, GM, TL*Kn, -GNp; end function; printf "\n== the lattices M and N = M cap h^perp for both conventions ==\n"; printf "rank of the 85x85 matrix of the lines: %o (paper: 39)\n", Rank(GL); LD := AssociativeArray(); for pr in [ <"A", GA>, <"B", GB> ] do rk, T, Xc, GM, KN, GN := LatData(pr[2]); LD[pr[1]] := ; dM := Determinant(GM); dN := Determinant(GN); printf "convention %o: rank M = %o (paper 43); det M = %o = %o (paper: disc M = 2^18*3^7); disc N = %o;\n", pr[1], rk, dM, Factorization(Abs(dM)), Factorization(Abs(dN)); printf " N^vee/N invariant factors %o\n", [ e : e in ElementaryDivisors(GN) | e ne 1 ]; end for; claimed := [2,2,2,6,12,12,12,12,24,120]; match := [ c : c in ["A", "B"] | LD[c][1] eq 43 and Abs(Determinant(LD[c][4])) eq 2^18*3^7 and [ e : e in ElementaryDivisors(LD[c][6]) | e ne 1 ] eq claimed ]; printf "conventions reproducing rank 43, disc M = 2^18*3^7 and the claimed N^vee/N: %o\n", match; conv := #match gt 0 select match[1] else "A"; printf "continuing with convention %o\n", conv; G := conv eq "A" select GA else GB; rkG, T, Xc, GM, KN, GN := Explode(LD[conv]); dM := Determinant(GM); printf "\n== N = M cap h^perp (convention %o) ==\n", conv; rN := Nrows(GN); printf "rank N = %o\n", rN; printf "N even (integral Gram, even diagonal): %o\n", &and[ IsEven(GN[i,i]) : i in [1..rN] ]; printf "N negative definite (Sylvester on -Gram): %o\n", &and[ Determinant(Submatrix(-GN, 1, 1, k, k)) gt 0 : k in [1..rN] ]; dN := Determinant(GN); printf "disc N = %o = %o (= 5 disc M: %o)\n", Abs(dN), Factorization(Abs(dN)), Abs(dN) eq 5*Abs(dM); ed := [ e : e in ElementaryDivisors(GN) | e ne 1 ]; printf "N^vee/N invariant factors: %o\n", ed; printf "paper: (Z/2)^3 + Z/6 + (Z/12)^4 + Z/24 + Z/120 = [2,2,2,6,12,12,12,12,24,120]: %o\n", ed eq claimed; pp := [ f[1] : f in Factorization(Abs(dN)) | f[2] ge 2 ]; printf "primes p with p^2 | disc N: %o (paper: 2, 3)\n", pp; // ---------------------------------------------------------------- n_6(N) LN := LatticeWithGram(-GN); SVN := ShortVectors(LN, 6); printf "\n== short vectors of N ==\n"; printf "ShortVectors(-N, 6): %o vectors up to sign; norms: %o\n", #SVN, { : nv in { v[2] : v in SVN } }; svset := { Coordinates(v[1]) : v in SVN } join { [ -a : a in Coordinates(v[1]) ] : v in SVN }; assert #svset eq 2*#SVN; // ShortVectors returns one vector of each pair +-v n6N := #svset; printf "n_6(N) = %o\n", n6N; // the vectors of norm -6 are exactly the differences of skew lines (Prop. 2.3) RinvN := Transpose(ChangeRing(KN, Rationals())) * (ChangeRing(KN*Transpose(KN), Rationals()))^-1; // KN * RinvN = 1 skewpairs := [ [a, b] : a, b in [1..85] | a ne b and G[a,b] eq 0 ]; DB := Matrix(Rationals(), #skewpairs, rkG, &cat[ Eltseq(Xc[pr[1]] - Xc[pr[2]]) : pr in skewpairs ]); DM := DB*RinvN; assert &and[ IsIntegral(e) : e in Eltseq(DM) ] and DM*ChangeRing(KN, Rationals()) eq DB; diffs := { [ Integers()!DM[i,j] : j in [1..rN] ] : i in [1..#skewpairs] }; printf "#{L_a - L_b : L_a, L_b skew} = %o (ordered pairs %o); equal to the set of vectors of N with -v^2 <= 6: %o\n", #diffs, #skewpairs, diffs eq svset; printf "time so far: %o s\n", Cputime(T0); // ---------------------------------------------------------------- isotropic subgroups printf "\n== isotropic subgroups of order 2 and 3 of N^vee/N ==\n"; WIT := []; // lines of the witness file WIT cat:= [ "# saturation_witnesses.txt -- Yu-Zhu arXiv:2609.26862v1, proof of Thm 1.3: N = M cap h^perp is 5-saturated.", "# Generated by magma/05_ns_lattice.m (Magma V2.28-3); cut from magma/out/05_ns_lattice.out.", Sprintf("# Conics: convention %o (see 05_ns_lattice.out). Fixed Z-basis b_1..b_42 of N (LLL-reduced),", conv), "# expressed through curve classes in magma/out/N_basis.txt. All vectors are coordinate vectors in this basis.", "# GRAM: the Gram matrix of N (negative definite, even).", Sprintf("GRAM %o", rN) ]; for i in [1..rN] do Append(~WIT, &cat[ Sprintf("%o ", GN[i,j]) : j in [1..rN] ]); end for; Append(~WIT, "# TORSION p r: F_p-basis z_1..z_r (rows) of the p-torsion of N^vee/N; element = (sum c_i z_i)/p mod N."); Append(~WIT, "# W p | z | w | x2 | n6 : isotropic subgroup H = , y = z/p (z = sum c_i z_i reduced mod p, q(y) = y^2 in 2Z);"); Append(~WIT, "# witness x = w/p in N_H \\ N with w = z mod p (so x - y in N), x2 = x^2 >= -6; n6 = n_6(N_H) by full"); Append(~WIT, "# enumeration for the first 5 subgroups of each order, n6 = -1 (not computed) otherwise."); nIso := AssociativeArray(); allok := true; nNonIso := AssociativeArray(); nfull := 0; normsW := []; n6list := []; nLLL := 0; nSV := 0; // witnesses found by LLL of N_H / by exhaustive enumeration for p in [2, 3, 5] do Kp := ChangeRing(KernelMatrix(ChangeRing(GN, GF(p))), Integers()); r := Nrows(Kp); Append(~WIT, Sprintf("TORSION %o %o", p, r)); for i in [1..r] do Append(~WIT, &cat[ Sprintf("%o ", Kp[i,j]) : j in [1..rN] ]); end for; nIso[p] := 0; nNonIso[p] := 0; t1 := Cputime(); for idx in [1..p^r - 1] do c := IntegerToSequence(idx, p); c cat:= [ 0 : l in [1..r - #c] ]; if [ a : a in c | a ne 0 ][1] ne 1 then continue; end if; // one generator per subgroup z := Vector(Integers(), [ (&+[ c[i]*Kp[i,j] : i in [1..r] ]) mod p : j in [1..rN] ]); assert IsZero(ChangeRing(z*GN, GF(p))) and not IsZero(ChangeRing(z, GF(p))); qn := (z*GN, z); // = p^2 y^2 if qn mod (2*p^2) ne 0 then nNonIso[p] +:= 1; continue; end if; nIso[p] +:= 1; if p eq 5 then allok := false; printf "UNEXPECTED isotropic element of order 5: %o\n", z; continue; end if; // N_H = N + Z y: basis (rows of BH)/p; its Gram GH is integral and even since H is isotropic HB := HermiteForm(VerticalJoin(p*IdentityMatrix(Integers(), rN), Matrix(Integers(), 1, rN, Eltseq(z)))); BH := RowSubmatrix(HB, 1, rN); GHp := BH*GN*Transpose(BH); assert &and[ e mod p^2 eq 0 : e in Eltseq(GHp) ]; GH := Matrix(Integers(), rN, rN, [ e div p^2 : e in Eltseq(GHp) ]); assert &and[ IsEven(GH[i,i]) : i in [1..rN] ]; // N_H even // witness search 1: an LLL-reduced basis (delta = 0.999) of N_H must contain vectors outside N; // take the shortest such basis vector if -x^2 <= 6 GL2, TL2 := LLLGram(-GH : Delta := 0.999); cand := [ : i in [1..rN] ]; cand := [ e : e in cand | e[1] le 6 and not IsZero(ChangeRing(e[2], GF(p))) ]; if #cand gt 0 then mn := Min([ e[1] : e in cand ]); w := [ e[2] : e in cand | e[1] eq mn ][1]; nLLL +:= 1; else // witness search 2 (exhaustive): all vectors of N_H with -x^2 <= 6 (enumerated in the // LLL-reduced basis TL2*BH/p of N_H) SVH := ShortVectors(LatticeWithGram(GL2), 6); new := [ : v in SVH ]; new := [ e : e in new | not IsZero(ChangeRing(e[2], GF(p))) ]; if #new eq 0 then allok := false; printf "FAIL: p = %o, z = %o: no vector x in N_H \\ N with x^2 >= -6\n", p, z; continue; end if; mn := Min([ e[1] : e in new ]); w := [ e[2] : e in new | e[1] eq mn ][1]; nSV +:= 1; end if; // x = w/p lies in N_H \ N, so w = k z mod p with k = 1 (p = 2) or k in {1, 2} (p = 3); since // -2y = y mod N for p = 3, replacing x by -x puts it into the coset y + N if not IsZero(ChangeRing(w - z, GF(p))) then w := -w; end if; x2 := (w*GN, w) / p^2; assert x2 ge -6 and IsZero(ChangeRing(w - z, GF(p))); Append(~normsW, -x2); n6H := -1; // cross-check for the first 5 subgroups per p: n_6(N_H) by full enumeration if nIso[p] le 5 then n6H := 2*#ShortVectors(LatticeWithGram(GL2), 6); // GL2 = LLL-reduced Gram of -N_H if not n6H gt n6N then allok := false; printf "MISMATCH n6(N_H) = %o\n", n6H; end if; nfull +:= 1; Append(~n6list, n6H); end if; Append(~WIT, Sprintf("W %o | %o| %o| %o | %o", p, &cat[ Sprintf("%o ", a) : a in Eltseq(z) ], &cat[ Sprintf("%o ", a) : a in Eltseq(w) ], x2, n6H)); if nIso[p] mod 100 eq 0 then printf " ... p = %o: %o isotropic subgroups done (witnesses so far, all p: by LLL %o, by enumeration %o) [%o s]\n", p, nIso[p], nLLL, nSV, Cputime(t1); end if; end for; printf "p = %o: p-rank %o, %o subgroups of order %o, isotropic: %o, non-isotropic: %o (%o s)\n", p, r, (p^r - 1) div (p - 1), p, nIso[p], nNonIso[p], Cputime(t1); end for; printf "every isotropic H of order 2 or 3 satisfies n_6(N_H) > n_6(N) = %o: %o\n", n6N, allok; printf " witnesses found as LLL basis vectors of N_H: %o; by exhaustive ShortVectors(N_H, 6): %o\n", nLLL, nSV; printf " n_6(N_H) computed by full enumeration for %o subgroups (the first 5 of each order)\n", nfull; if #n6list gt 0 then printf " -x^2 of the chosen witnesses (multiset): %o; n_6(N_H) range: [%o, %o]\n", {* a : a in normsW *}, Min(n6list), Max(n6list); end if; Append(~WIT, Sprintf("# summary: n6(N) = %o; isotropic subgroups: %o of order 2, %o of order 3, %o of order 5; all checks pass: %o", n6N, nIso[2], nIso[3], nIso[5], allok)); // ---------------------------------------------------------------- the basis of N via curve classes // basis b_i of N = sum_k CN[i,k] c_k (c_1..c_85 = L_1..L_85, c_86..c_89 = C_1..C_4); shorten the // representation modulo the integer relations ker(G) by greedy size reduction CN := KN*T; Rel := LLL(KernelMatrix(G)); reduce := function(v) repeat changed := false; for j in [1..Nrows(Rel)] do c := Round((v, Rel[j]) / (Rel[j], Rel[j])); if c ne 0 and Norm(v - c*Rel[j]) lt Norm(v) then v := v - c*Rel[j]; changed := true; end if; end for; until not changed; return v; end function; NB := [ "# N_basis.txt -- basis b_1..b_42 of N used in saturation_witnesses.txt, as integer combinations of curve classes.", Sprintf("# Curves: 1..85 = L_1..L_85 (Sect. 3 labelling), 86..89 = C_1..C_4 (convention %o, see 05_ns_lattice.out).", conv), "# Line format: i : coefficient*curve ... ; b_i = sum coefficient*[curve].", "# The 89x89 intersection matrix is recomputed by magma/05_ns_lattice.m (line incidences also in 04_lines_exact.out)." ]; CNr := ZeroMatrix(Integers(), rN, 89); for i in [1..rN] do v2 := reduce(CN[i]); CNr[i] := v2; Append(~NB, Sprintf("%o :%o", i, &cat[ Sprintf(" %o*%o", v2[k], k) : k in [1..89] | v2[k] ne 0 ])); end for; assert CNr*G*Transpose(CNr) eq GN; printf "\nbasis of N via curve classes: Gram reproduces GN: true; max |coefficient| = %o\n", Max([ Abs(a) : a in Eltseq(CNr) ]); printf "\nBEGIN_WITNESS_FILE\n"; for l in WIT do printf "%o\n", l; end for; printf "END_WITNESS_FILE\n"; printf "BEGIN_NBASIS_FILE\n"; for l in NB do printf "%o\n", l; end for; printf "END_NBASIS_FILE\n"; printf "\nSUMMARY 05: convention %o | rank %o (claim 43) | disc M %o (claim 2^18*3^7) | N^vee/N %o | n6(N) %o | isotropic: %o (order 2), %o (order 3), %o (order 5) | all n6(N_H) > n6(N): %o | %o s\n", conv, rkG, Factorization(Abs(dM)), ed, n6N, nIso[2], nIso[3], nIso[5], allok, Cputime(T0); quit;