Macaulay2 » Documentation
Packages » PALPInterface :: naiveNefPartitions
next | previous | forward | backward | up | index | toc

naiveNefPartitions -- search directly for nef partitions of a toric variety

Description

A nef partition of codimension $c$ is a partition of the rays into $c$ parts such that in each part the sum of the divisors is Cartier and nef. This looks for them directly, with no help from PALP, which makes it a useful check on palpNefPartitions.

i1 : needsPackage "NormalToricVarieties"

o1 = NormalToricVarieties

o1 : Package
i2 : V = smoothFanoToricVariety(3, 5);
i3 : #rays V

o3 = 6
i4 : L = naiveNefPartitions(V, 2)

o4 = {{{0, 1, 2, 3, 4}, {5}}, {{0, 1, 2, 4, 5}, {3}}, {{0, 1, 2, 4}, {3, 5}},
     ------------------------------------------------------------------------
     {{0, 1, 3, 4, 5}, {2}}, {{0, 1, 3, 4}, {2, 5}}, {{0, 2, 3, 4, 5}, {1}},
     ------------------------------------------------------------------------
     {{0, 2, 3, 4}, {1, 5}}, {{0, 2, 4, 5}, {1, 3}}, {{0, 2, 4}, {1, 3, 5}},
     ------------------------------------------------------------------------
     {{0, 2, 5}, {1, 3, 4}}, {{0, 2}, {1, 3, 4, 5}}, {{0, 3, 4, 5}, {1, 2}},
     ------------------------------------------------------------------------
     {{0, 3, 4}, {1, 2, 5}}, {{0, 3, 5}, {1, 2, 4}}, {{0, 3}, {1, 2, 4, 5}},
     ------------------------------------------------------------------------
     {{0, 5}, {1, 2, 3, 4}}, {{0}, {1, 2, 3, 4, 5}}}

o4 : List
i5 : assert all(L, p -> all(p, b -> isNef sum(b, i -> V_i)))

In codimension one the only candidate is the anticanonical divisor.

i6 : naiveNefPartitions(V, 1)

o6 = {{{0, 1, 2, 3, 4, 5}}}

o6 : List

PALP leaves out projections and direct products unless asked for them, and keeps only one nef partition from each class of those equivalent under a symmetry of the polytope. With all of them asked for, the two agree. Since the rays of a smooth Fano variety are the vertices of $\Delta^*$, the parts are ray indices in both.

i7 : L = palpNefPartitions(V, 2, HodgeNumbers => false,
         KeepSymmetric => true, Projections => true, Products => true);
i8 : set apply(L, n -> set apply(parts n, set)) === set apply(naiveNefPartitions(V, 2), p -> set apply(p, set))

o8 = true

Both conditions matter when $V$ is singular. Here $V$ is simplicial, so every torus-invariant divisor is $\QQ$-Cartier, and 31 of the 63 splits of its 7 rays into two parts are nef over $\QQ$. Only 4 of them have both parts Cartier, and these are the nef partitions PALP finds.

i9 : V = normalToricVariety convexHull weightSystemVertices {20, 1, 1, 1, 2, 6, 9};
i10 : isSimplicial V, isSmooth V

o10 = (true, false)

o10 : Sequence
i11 : #select(drop(drop(subsets toList(0 ..< #rays V), 1), -1),
          a -> a#0 === 0 and isNef sum(a, i -> V_i) and isNef sum(toList(0 ..< #rays V) - set a, i -> V_i))

o11 = 31
i12 : L = naiveNefPartitions(V, 2)

o12 = {{{0, 1, 3, 4, 5, 6}, {2}}, {{0, 1}, {2, 3, 4, 5, 6}}, {{0, 2, 3, 5,
      -----------------------------------------------------------------------
      6}, {1, 4}}, {{0, 4}, {1, 2, 3, 5, 6}}}

o12 : List
i13 : #palpNefPartitions(V, 2, HodgeNumbers => false,
          KeepSymmetric => true, Projections => true, Products => true)

o13 = 4

Caveat

Every set partition of the rays into c parts is examined, so this is only practical when there are few rays.

See also

For the programmer

The object naiveNefPartitions is a method function.


The source of this document is in /build/reproducible-path/macaulay2-1.26.11+ds/M2/Macaulay2/packages/PALPInterface.m2:2869:0.