// 08_section5.m -- Section 5 of Yu-Zhu, arXiv:2609.26862v1. // 5.1: the pencil Y_t = V(P_t), // P_t = x1^4 x2 + x1 x2^4 + x3^4 x4 + x3 x4^4 + t (x1 x2 (x3^3 + x4^3) + x3 x4 (x1^3 + x2^3)); // 5.2: the degree-10 surface X10 = V((x1 x2 - 3 x3 x4)(x1^8 + x2^8) + 2 (2 x3 x4 - 3 x1 x2)(x3^8 + 2 x4^8)). // Claims checked: // (a) Remark 5.2: Y_t is smooth iff t notin {-5, -1, 1, 5/4} (projection of the singular locus of // the family to the t-line, by elimination in the four affine charts x_k = 1); // (b) Thm 5.1 / Remark 5.2: #lines on Y_t for t = 2, -3+-sqrt13 (79 = 66 + 10 + 3), -1/2 (61), // 0 (55), generic t (43, over the function field Q(t)), via the Schubert cells of Gr(2,4) // (yz_cells.m); each cell scheme is 0-dimensional, and we report its length and the length // of its radical (= number of lines). For a smooth surface of degree d >= 3 the Fano scheme // is reduced (tangent space H^0(N_{L/X}) = H^0(O_L(2-d)) = 0), so the two must agree; // (b') Remark 5.2, clause "43 otherwise": Groebner bases of the cell ideals with t as a variable // (block order y >> t); by Kalkbrener's specialisation theorem (J. Symb. Comp. 24 (1997)) // the cell scheme of Y_{t0} has the generic length whenever t0 is not a root of a leading // coefficient lc_y(g) in Q[t]; the finitely many remaining smooth t0 are computed exactly; // (c) proof of Thm 5.1: the sets K_2 (21 lines) and K_t, t = -3+-sqrt13 (24 lines) as printed lie // on Y_t and are pairwise skew; // (d) Thm 5.3: X10 is smooth, has exactly 356 = 288 + 65 + 3 lines, and contains 112 pairwise // skew lines. Smoothness: V(F, dF/dx_i) is empty over GF(p)-bar; Sing is proper over Z_(p), // so its image in Spec Z_(p) is closed and misses the closed point, hence is empty. Skew // lines: the incidence graph is computed modulo a prime p of good reduction at which X10 mod p // also has exactly 356 lines; reduction of lines is injective (two distinct lines with the // same reduction would give L.L' = Lbar^2 = 2 - d = -8 < 0; intersection numbers are // preserved on the smooth model over Z_(p)), so the lines mod p are exactly the reductions // of the 356 lines, and lines meeting in characteristic 0 meet mod p: a set of pairwise // skew lines mod p is the reduction of a set of pairwise skew lines of X10. SetColumns(0); load "yz_cells.m"; T0 := Cputime(); Q := Rationals(); Pfun := func< X1, X2, X3, X4, t | X1^4*X2 + X1*X2^4 + X3^4*X4 + X3*X4^4 + t*(X1*X2*(X3^3 + X4^3) + X3*X4*(X1^3 + X2^3)) >; // ------------------------------------------------------------------ (a) singular members printf "== (a) singular members of the pencil ==\n"; R := PolynomialRing(Q, 5); P := Pfun(x1, x2, x3, x4, t); J := [ Derivative(P, i) : i in [1..4] ]; // P is in (J) by Euler's formula (char 0) Qt := PolynomialRing(Q); badpol := Qt!1; for k in [1..4] do tc := Cputime(); E := EliminationIdeal(ideal< R | J cat [R.k - 1] >, 4); // I cap Q[t] B := Basis(E); assert #B eq 1; // principal, nonzero g := Qt!UnivariatePolynomial(B[1]); printf "chart x%o = 1: eliminant %o [%o s]\n", k, Factorization(g), Cputime(tc); badpol := LCM(badpol, g); end for; rts := { r[1] : r in Roots(badpol) }; printf "t with Y_t singular = roots of %o : %o\n", Factorization(badpol), rts; printf "all roots rational: %o; set = {-5,-1,1,5/4}: %o\n", &+[ Degree(f[1]) : f in Factorization(badpol) ] eq #rts, rts eq {-5, -1, 1, 5/4}; for t0 in Sort(SetToSequence(rts)) do S4 := PolynomialRing(Q, 4); Pt0 := Pfun(y1, y2, y3, y4, t0); Js := ideal< S4 | [ Derivative(Pt0, i) : i in [1..4] ] >; Z := Scheme(ProjectiveSpace(S4), Js); dZ := Dimension(Z); printf " t = %o: P_t factors as %o; singular locus: dimension %o, degree of reduced locus %o", t0, [ : f in Factorization(Pt0) ], dZ, Degree(ReducedSubscheme(Z)); if dZ eq 0 then printf "; rational singular points %o", RationalPoints(Z); end if; printf "\n"; end for; // ------------------------------------------------------------------ (b) line counts printf "\n== (b) number of lines ==\n"; K13 := QuadraticField(13); cases := [* <"t = 2", Q, Q!2>, <"t = -3+sqrt13", K13, -3 + s13>, <"t = -3-sqrt13", K13, -3 - s13>, <"t = -1/2", Q, Q!(-1/2)>, <"t = 0", Q, Q!0> *]; claim := [79, 79, 79, 61, 55]; counts := []; for ic in [1..#cases] do cs := cases[ic]; S4 := PolynomialRing(cs[2], 4); tc := Cputime(); printf "%o:\n", cs[1]; Pc := Pfun(y1, y2, y3, y4, cs[3]); n, tab := CountLines(Pc); Append(~counts, n); small := []; for pv in [ [1,4], [2,3], [1,3] ] do I, toM := CellIdeal(Pc, pv); if not (1 in I) then small cat:= [ : P in Variety(I) ]; end if; end for; printf " rational points of the cells [1,4] (x1 = a x2 + b x3 + x4 = 0), [2,3] (a x1 + x2 = b x1 + x3 = 0), [1,3] (x1 = a x2 + x3 = 0): %o\n", small; printf " total: %o lines (paper: %o) [%o s]\n", n, claim[ic], Cputime(tc); end for; // generic t: over the rational function field Q(t) Ft := FunctionField(Q); S4 := PolynomialRing(Ft, 4); tc := Cputime(); printf "generic t (over Q(t)):\n"; ngen, tabgen := CountLines(Pfun(y1, y2, y3, y4, tt)); printf " total: %o lines (paper: 43) [%o s]\n", ngen, Cputime(tc); // a few further smooth members (sample values, not a proof of the 'otherwise' clause) smp := [ Q | 3, -2, 1/3, -7/2, 10, 2/7 ]; smpc := []; for t0 in smp do S4 := PolynomialRing(Q, 4); n := CountLines(Pfun(y1, y2, y3, y4, t0) : verbose := false); Append(~smpc, ); end for; printf "sample values (t, #lines): %o\n", smpc; // ------------------------------------------------------------------ (b') all smooth members printf "\n== (b') the clause '43 otherwise' of Remark 5.2 (t as a variable) ==\n"; FacSet := function(cs) // the distinct irreducible factors of the nonconstant polynomials in cs S := {Qt| }; for c in cs do if Degree(c) gt 0 then for f in Factorization(c) do Include(~S, f[1]); end for; end if; end for; return S; end function; lcs := []; // all leading-coefficient polynomials gencount := 0; for pv in CELLS do p1 := pv[1]; p2 := pv[2]; n := (p1 - 1) + (p2 - 2); np := [ j : j in [1..4] | j notin pv ]; if n eq 0 then S := PolynomialRing(Qt, 2); pt := [S| 0, 0, 0, 0]; pt[np[1]] := s; pt[np[2]] := u; G := Pfun(pt[1], pt[2], pt[3], pt[4], T); // V(x1,x2) lies on Y_t iff all coefficients (polynomials in t) vanish at t g := GCD(Coefficients(G)); printf "cell %o: P_t restricted to V(x1,x2) = %o; gcd of its coefficients in Q[t]: %o\n", pv, G, g; if Degree(g) gt 0 then Append(~lcs, g); end if; continue; end if; R := PolynomialRing(Q, n + 1, "elim", n); // variables y_1..y_n, t (y >> t) t := R.(n+1); r1 := [R| 0, 0, 0, 0]; r2 := [R| 0, 0, 0, 0]; r1[p1] := 1; r2[p2] := 1; idx := 1; for j in [1..p1-1] do r1[j] := R.idx; idx +:= 1; end for; for j in [1..p2-1] do if j ne p1 then r2[j] := R.idx; idx +:= 1; end if; end for; S := PolynomialRing(R, 2); pt := [S| 0, 0, 0, 0]; pt[np[1]] := s; pt[np[2]] := u; pt[p1] := -(r1[np[1]]*s + r1[np[2]]*u); pt[p2] := -(r2[np[1]]*s + r2[np[2]]*u); G := Pfun(pt[1], pt[2], pt[3], pt[4], t); eqs := [ MonomialCoefficient(G, s^(5-i)*u^i) : i in [0..5] ]; tc := Cputime(); GB := GroebnerBasis(ideal< R | eqs >); cl := []; for g in GB do al := Exponents(LeadingMonomial(g))[1..n]; lc := &+[ Coefficients(g)[i]*T^(Exponents(Monomials(g)[i])[n+1]) : i in [1..#Monomials(g)] | Exponents(Monomials(g)[i])[1..n] eq al ]; Append(~cl, lc); end for; // generic length of the cell (over Q(t)): standard monomials of the leading y-monomials, // unless G contains a nonzero polynomial in t alone (then no lines over Q(t)) pure := [ g : g in GB | &and[ e eq 0 : e in Exponents(LeadingMonomial(g))[1..n] ] ]; if #pure gt 0 then glen := 0; else Ry := PolynomialRing(Q, n); LMy := ideal< Ry | [ Monomial(Ry, Exponents(LeadingMonomial(g))[1..n]) : g in GB ] >; glen := QuotientDimension(LMy); end if; gencount +:= glen; lcs cat:= cl; printf "cell %o: #GB = %o, generic length %o, leading coefficients (factored, distinct): %o [%o s]\n", pv, #GB, glen, FacSet(cl), Cputime(tc); end for; printf "generic number of lines (sum of generic lengths): %o\n", gencount; facs := FacSet(lcs); badset := { T + 5, T + 1, T - 1, T - 5/4 }; cand := Sort([ f : f in facs | f notin badset ], func< a, b | Degree(a) - Degree(b) >); printf "\ncandidate special t (irreducible factors of the leading coefficients, singular members removed): %o\n", cand; res := []; for f in cand do if Degree(f) eq 1 then L := Q; t0 := Roots(f)[1][1]; else L := NumberField(f); t0 := L.1; end if; S4 := PolynomialRing(L, 4); // smoothness of Y_{t0} (it must be smooth: f is not one of the bad factors) Pt0 := Pfun(y1, y2, y3, y4, t0); sm := Dimension(ideal< S4 | [ Derivative(Pt0, i) : i in [1..4] ] >) le 0; tc := Cputime(); nl, tab := CountLines(Pt0 : verbose := false); printf "t0 root of %o: smooth %o, #lines %o, per cell %o [%o s]\n", f, sm, nl, [ : x in tab ], Cputime(tc); Append(~res, ); end for; printf "\nRESULT: every smooth t0 outside the roots of the listed factors has %o lines;\n", gencount; printf " at the candidate values: %o\n", [ : r in res ]; // ------------------------------------------------------------------ (c) skew configurations printf "\n== (c) the sets K_t of pairwise skew lines ==\n"; // a line (x3,x4)^T = M (x1,x2)^T lies on Y_t iff P_t(s, u, M(s,u)) = 0; two such lines meet iff // det(M - M') = 0 OnY := function(M, t0) L := BaseRing(M); S := PolynomialRing(L, 2); return Pfun(s, u, M[1,1]*s + M[1,2]*u, M[2,1]*s + M[2,2]*u, t0) eq 0; end function; CheckSet := function(Ms, t0) on := [ OnY(M, t0) : M in Ms ]; bad := [ [i, j] : i, j in [1..#Ms] | i lt j and Determinant(Ms[i] - Ms[j]) eq 0 ]; return &and on, bad; end function; Qz := PolynomialRing(Q); // t = 2: a_i roots of z^4 - z^3 + 3 z^2 - z + 1; D_j = diag(xi3^j, xi3^-j) f2 := z^4 - z^3 + 3*z^2 - z + 1; L2 := SplittingField(f2*(z^2 + z + 1)); printf "t = 2: splitting field of (z^4-z^3+3z^2-z+1)(z^2+z+1) has degree %o\n", Degree(L2); a := [ r[1] : r in Roots(ChangeRing(f2, L2)) ]; assert #a eq 4; w := [ r[1] : r in Roots(ChangeRing(z^2 + z + 1, L2)) ][1]; D := [ DiagonalMatrix(L2, [w^j, w^(-j)]) : j in [0..2] ]; Ts := [ ScalarMatrix(L2, 2, ai) : ai in a ] cat [ Matrix(L2, 2, 2, [0,-1,-1,0]), Matrix(L2, 2, 2, [1,-1,0,-1]), Matrix(L2, 2, 2, [-1,0,-1,1]) ]; K2 := [ T*D[j] : T in Ts, j in [1..3] ]; on, bad := CheckSet(K2, L2!2); printf "K_2: %o lines; all on Y_2: %o; pairs that meet: %o\n", #K2, on, bad; // t = -3 +- sqrt13: b_1, b_2 roots of 2 b^2 - (t+2) b + 2; U_i = 1/(b_i+1) [[-b_i, 1-b_i^2],[1-b_i^2, -b_i]] // all four b's are the roots of z^4 + z^3 - z^2 + z + 1 (eliminate t: (t+3)^2 = 13) fb := z^4 + z^3 - z^2 + z + 1; assert IsIrreducible(fb); Lb := SplittingField(fb*(z^2 + z + 1)); printf "t = -3+-sqrt13: splitting field of (z^4+z^3-z^2+z+1)(z^2+z+1) has degree %o\n", Degree(Lb); bs := [ r[1] : r in Roots(ChangeRing(fb, Lb)) ]; assert #bs eq 4; w := [ r[1] : r in Roots(ChangeRing(z^2 + z + 1, Lb)) ][1]; D := [ DiagonalMatrix(Lb, [w^j, w^(-j)]) : j in [0..2] ]; Sw := Matrix(Lb, 2, 2, [0, 1, 1, 0]); // (x2,x1)^T = Sw (x1,x2)^T tval := func< b | 2*(b^2 + 1)/b - 2 >; // t determined by b sq13 := [ r[1] : r in Roots(ChangeRing(z^2 - 13, Lb)) ]; for tv in [ -3 + sq13[1], -3 + sq13[2] ] do bb := [ b : b in bs | tval(b) eq tv ]; assert #bb eq 2; assert &and[ 2*b^2 - (tv + 2)*b + 2 eq 0 : b in bb ]; for lab in [ [1,2], [2,1] ] do // both labellings of the roots b_1, b_2 b1 := bb[lab[1]]; b2 := bb[lab[2]]; U := [ (1/(b + 1))*Matrix(Lb, 2, 2, [-b, 1 - b^2, 1 - b^2, -b]) : b in [b1, b2] ]; Ms := []; for i in [1, 2] do bi := [b1, b2][i]; Tset := [ bi*D[j] : j in [1..3] ] cat [ D[j]*U[i]*D[kk] : j, kk in [1..3] ]; Ms cat:= [ (i eq 1) select T else T*Sw : T in Tset ]; end for; on, bad := CheckSet(Ms, tv); printf "t = %o (t^2+6t-4 = %o), labelling b_1,b_2 = roots #%o: K_t has %o lines; all on Y_t: %o; pairs that meet: %o\n", tv, tv^2 + 6*tv - 4, lab, #Ms, on, bad; end for; end for; // ------------------------------------------------------------------ (d) degree-10 surface F10 := func< X1, X2, X3, X4 | (X1*X2 - 3*X3*X4)*(X1^8 + X2^8) + 2*(2*X3*X4 - 3*X1*X2)*(X3^8 + 2*X4^8) >; // ------------------------------------------------------------------ smoothness printf "\n== (d) the degree-10 surface (Thm 5.3) ==\n"; printf "smoothness:\n"; for p in [10007, 32003] do S := PolynomialRing(GF(p), 4, "grevlex"); F := F10(y1, y2, y3, y4); J := ideal< S | [F] cat [ Derivative(F, i) : i in [1..4] ] >; tc := Cputime(); printf "p = %o: Krull dimension of (F, dF/dx_i) = %o (0 <=> X mod p smooth) [%o s]\n", p, Dimension(J), Cputime(tc); end for; // ------------------------------------------------------------------ line count over Q printf "lines over Q-bar (cells over Q):\n"; S := PolynomialRing(Q, 4); F := F10(y1, y2, y3, y4); cellsQ := []; totQ := 0; for pv in CELLS do tc := Cputime(); I := CellIdeal(F, pv); if Type(I) eq BoolElt then n := I select 1 else 0; printf " cell %o: %o line(s) (no parameters)\n", pv, n; elif 1 in I then n := 0; printf " cell %o: 0 lines\n", pv; else assert Dimension(I) eq 0; n := QuotientDimension(I); printf " cell %o: scheme length %o; radical has length %o [%o s]\n", pv, n, QuotientDimension(Radical(I)), Cputime(tc); if #[ a : a in pv | a le 2 ] ge 1 and n le 3 then printf " points: %o\n", Variety(I); end if; end if; Append(~cellsQ, n); totQ +:= n; end for; printf "total number of lines on X: %o (paper: 356 = 288 + 65 + 3); per cell %o\n", totQ, cellsQ; printf "time so far %o s\n", Cputime(T0); // ------------------------------------------------------------------ reduction mod p printf "lines modulo p and the incidence graph:\n"; chosen := 0; for p in [ q : q in [17..2000] | IsPrime(q) and q mod 16 eq 1 ] do k := GF(p); Sp := PolynomialRing(k, 4, "grevlex"); Fp := F10(z1, z2, z3, z4); if Dimension(ideal< Sp | [Fp] cat [ Derivative(Fp, i) : i in [1..4] ] >) gt 0 then continue; end if; cnt := []; degs := []; for pv in CELLS do I := CellIdeal(Fp, pv); if Type(I) eq BoolElt then Append(~cnt, I select 1 else 0); continue; end if; if 1 in I then Append(~cnt, 0); continue; end if; Append(~cnt, QuotientDimension(I)); degs cat:= [ QuotientDimension(P) : P in RadicalDecomposition(I) ]; end for; ext := LCM(degs); printf "p = %o: X mod p smooth; lines per cell %o (total %o); all lines over GF(p^%o)\n", p, cnt, &+cnt, ext; if cnt eq cellsQ and ext le 4 then chosen := p; break; end if; end for; assert chosen ne 0; p := chosen; kk := GF(p^ext); Sp := PolynomialRing(GF(p), 4); Fp := F10(z1, z2, z3, z4); LL := []; cellof := []; for ic in [1..#CELLS] do pv := CELLS[ic]; I, toM := CellIdeal(Fp, pv); if Type(I) eq BoolElt then if I then Append(~LL, ChangeRing(toM([kk|]), kk)); Append(~cellof, ic); end if; continue; end if; V := Variety(I, kk); LL cat:= [ toM([kk| P[i] : i in [1..#P]]) : P in V ]; cellof cat:= [ ic : P in V ]; end for; printf "explicit lines of X mod %o over GF(%o^%o): %o\n", p, p, ext, #LL; assert #LL eq totQ; // every line lies on X mod p S2 := PolynomialRing(kk, 2); bs := [ Basis(Kernel(Transpose(E))) : E in LL ]; assert &and[ F10(s*b[1][1]+u*b[2][1], s*b[1][2]+u*b[2][2], s*b[1][3]+u*b[2][3], s*b[1][4]+u*b[2][4]) eq 0 : b in bs ]; n := #LL; Nbr := [ {Integers()|} : i in [1..n] ]; for a in [1..n] do for b in [a+1..n] do D := Matrix(kk, 4, 4, Eltseq(bs[a][1]) cat Eltseq(bs[a][2]) cat Eltseq(bs[b][1]) cat Eltseq(bs[b][2])); rk := Rank(D); assert rk ge 3; // pairwise distinct if rk eq 3 then Include(~Nbr[a], b); Include(~Nbr[b], a); end if; end for; end for; printf "incidence graph: %o vertices, %o edges; degree multiset %o\n", n, &+[ #Nbr[a] : a in [1..n] ] div 2, {* #Nbr[a] : a in [1..n] *}; // ------------------------------------------------------------------ independent sets // randomised minimum-degree greedy (each step: a vertex of minimum degree in the remaining graph) SetSeed(1); best := []; tc := Cputime(); for trial in [1..300] do alive := { 1..n }; S := []; while #alive gt 0 do dg := [ : v in alive ]; md := Min([ e[2] : e in dg ]); v := Random([ e[1] : e in dg | e[2] eq md ]); Append(~S, v); alive := alive diff (Nbr[v] join {v}); end while; if #S gt #best then best := S; printf " trial %o: independent set of size %o\n", trial, #S; end if; end for; printf "largest independent set found: %o [%o s]\n", #best, Cputime(tc); // re-verify from the equations: pairwise skew <=> 4x4 determinant nonzero okskew := &and[ Determinant(Matrix(kk, 4, 4, Eltseq(bs[a][1]) cat Eltseq(bs[a][2]) cat Eltseq(bs[b][1]) cat Eltseq(bs[b][2]))) ne 0 : a, b in best | a lt b ]; printf "the %o lines are pairwise skew (determinants re-checked): %o\n", #best, okskew; printf "cells of these lines: %o\n", {* cellof[a] : a in best *}; printf "SKEWSET (indices into the list of lines mod %o, cell order): %o\n", p, Sort(best); printf "\nSUMMARY 08: (a) singular t %o | (b) t=2,-3+-sqrt13,-1/2,0: %o (claim 79,79,79,61,55), generic %o (claim 43) | (b') special smooth t: %o | (d) X10: %o lines, cells %o (claim 356 = 288+65+3), skew set %o (claim 112) | %o s\n", rts, counts, ngen, [ : r in res | r[2] ne gencount ], totQ, cellsQ, #best, Cputime(T0); quit;