1 Introduction

While examining hypersurfaces containing general linear subspaces in \({\mathbb {P}}^n\) (possibly with multiplicities), the important question is how many such hypersurfaces exist. One can ask what is the dimension of the vector space of forms of given degree vanishing along those subspaces. We call it the actual dimension. On the other hand, we can try to find the number of conditions that are imposed on such forms. This leads to the notion of the virtual dimension, which is defined as the dimension of the vector spaces of all forms of degree t minus the Hilbert polynomial of a scheme defined by vanishing along given subspaces. The interesting issue is whether those two values are equal.

The reason to focus on linear subspaces of codimension 2 is that these are being widely examined in low dimensions. In \({\mathbb {P}}^2\) such subspaces are points. The virtual dimension of linear systems of forms of degree t vanishing at s general points with multiplicities \(m_1,\ldots ,m_s\) is equal

$$\begin{aligned} \genfrac(){0.0pt}1{t+2}{2}-\sum _{i=1}^s\genfrac(){0.0pt}1{m_i+1}{2}. \end{aligned}$$

However, classification of systems for which the virtual and actual dimension are equal is the subject of SHGH (Segre-Harbourne-Gimigliano-Hirschowitz) Conjecture (see [3] for a survey on this topic).

The next step is to consider lines in \({\mathbb {P}}^3\). In this case it is still easy to find the virtual dimension of linear system of forms of degree t vanishing along s general lines with multiplicities \(m_1,\ldots ,m_s\). As presented in [7] it is

$$\begin{aligned} \genfrac(){0.0pt}1{t+3}{3}-\genfrac{}{}{}1{1}{6}\sum _{i=1}^sm_i(m_i+1)(3t+5-2m_i). \end{aligned}$$

When all multiplicities are equal 1, the actual dimension is equal to the virtual dimension (as long as the virtual dimension is non-negative). This fact is known as Hartshorne-Hirschowitz Theorem [13]. For higher multiplicities there are examples when this is no longer true (cf. [6]).

When we study planes in \({\mathbb {P}}^4\), it is more problematic to find the virtual dimension, since every two general planes intersect at a point. Considering s planes with multiplicities 1, we have \(\genfrac(){0.0pt}1{s}{2}\) points of intersection. The intuitive way to take it into account in calculations is to use the inclusion-exclusion principle. Since each plane imposes \(\genfrac(){0.0pt}1{t+2}{2}\) conditions on forms of degree t, the virtual dimension should be

$$\begin{aligned} \genfrac(){0.0pt}1{t+4}{4}-s\genfrac(){0.0pt}1{t+2}{2}+\genfrac(){0.0pt}1{s}{2}. \end{aligned}$$

It is also much harder to consider planes with multiplicities. For example, in [7] authors avoid this problem by taking linear subspaces in \({\mathbb {P}}^n\) with such codimensions that they do not intersect. Moreover, comparing the actual and virtual dimension led to the definition of unexpected hypersurfaces. As introduced in [4] and [10], a scheme admits an unexpected hypersurface of given degree, when the actual dimension is strictly greater than the virtual one.

One purpose of this paper is to prove the formula for the virtual dimension of the system of general linear subspaces of codimension 2 with multiplicities 1 in \({\mathbb {P}}^n\). As in the case of \({\mathbb {P}}^4\), it is given by inclusion-exclusion principle. Actually, we need to consider all the intersections of given subspaces to properly find the Hilbert polynomial. We present all the details in Sect. 3.

In Sect. 4 we introduce the Veneroni maps. They are generalizations of Cremona transformation in \({\mathbb {P}}^2\) and cubo-cubic transformation in \({\mathbb {P}}^3\). These birational maps of \({\mathbb {P}}^n\) allow us to transform linear systems of forms of degree \(n+k\) (\(k\ge 3\)) vanishing along \(n+1\) codimension 2 linear subspaces with multiplicities 1 to forms of degree \(kn+1\) vanishing with multiplicities k along such subspaces. In [6] and [9] there are presented examples of using those transformations that result in the examples of unexpected hypersurfaces. Another purpose of this paper is to generalize these results to higher dimensional projective spaces. We obtain a family of examples in Theorem 7.1. What is more, the analysis of mentioned systems for \(k\ge 4\) lead us to the situation, when the virtual dimension is greater than the actual dimension (as in Example 7.2). We say that a scheme misses an expected hypersurface in this case. Such a situation could not appear in \({\mathbb {P}}^2\) and \({\mathbb {P}}^3\), because considered subspaces are not intersecting.

In Sect. 5 we gather all the results about the systems with multiplicities 1. In Theorem 5.2 we present conditions that guarantee that the actual dimension is greater than the virtual dimension and show in Example 5.3 that in \({\mathbb {P}}^4\) without these conditions it may not be true. Later on, we compare dimensions in case of \(n+1\) subspaces with a view towards using the Veneroni maps. It is summarized in Corollary 5.6. Section 6 focuses on the systems resulting from the transformation by the Veneroni maps. We prove Theorem 6.4, which is needed to show that there exists a family of unexpected hypersurfaces. In the last section we present the results regarding unexpected hypersurfaces including the examples of missing expected hypersurfaces.

2 Basic definitions and auxiliary results

Let K be an algebraically closed field of characteristic 0 and \(R=K[{\mathbb {P}}^n]=K[x_0,\ldots ,x_n]\) be the homogeneous coordinate ring of \({\mathbb {P}}^n\). We consider s distinct linear subspaces \(\varLambda _1,\ldots ,\varLambda _s\subset {\mathbb {P}}^n\) of codimension 2 and denote by \(X=m_1\varLambda _1+\ldots +m_s\varLambda _s\) the scheme defined by the ideal

$$\begin{aligned} I_{X}=I(\varLambda _1)^{m_1}\cap \ldots \cap I(\varLambda _s)^{m_s}\subseteq R \end{aligned}$$

generated by homogeneous polynomials vanishing on each \(\varLambda _i\) to order at least \(m_i\). We say that \(m_i\) are the multiplicities of X.

Definition 2.1

The Hilbert function of X is the function

$$\begin{aligned} \text {HF}_X :{\mathbb {N}}\ni t\mapsto \dim _K [R/I_X]_t\in {\mathbb {N}}, \end{aligned}$$

where subscript \([\ ]_t\) denotes the degree t part of graded homogeneous ring.

It is well-known that there exists a polynomial \(\text {HP}_X\in {\mathbb {Q}}[t]\) (called the Hilbert polynomial of X) such that \(\text {HP}_X(t)=\text {HF}_X(t)\) for all t sufficiently large (see e.g. [8, 11]). To examine \(\text {HP}_X\) and \(\text {HF}_X\) for X given by the vanishing along linear subspaces we need the following lemma that is proved in [7].

Lemma 2.2

Let \(\varLambda \subset {\mathbb {P}}^n\) be a linear subspace of codimension k ( \(0<k\le n\)). Let \(t\ge m\) be a positive integer. Then vanishing to order at least m along \(\varLambda \) imposes

$$\begin{aligned} c_{n,k,m,t}=\sum _{i=0}^{m-1}\left( {\begin{array}{c}i+k-1\\ k-1\end{array}}\right) \left( {\begin{array}{c}t-i+n-k\\ n-k\end{array}}\right) \end{aligned}$$

linearly independent conditions on forms of degree t. Hence, for \(m=1\) that gives \(c_{n,k,1,t}=\genfrac(){0.0pt}1{t+n-k}{n-k}\) conditions.

Obviously \(\text {HF}_{m\varLambda }(t)=c_{n,k,m,t}\) for \(t\ge m\) and \(\text {HP}_{m\varLambda }(t)=c_{n,k,m,t}\) for any \(t>0\).

We also introduce the following numbers associated to \(X=m_1\varLambda _1+\ldots +m_s\varLambda _s\subseteq {\mathbb {P}}^n\).

Definition 2.3

The actual dimension of X is the dimension of the vector space of forms in \(I_X\) of degree t:

$$\begin{aligned} \text {adim}_n(X,t)=\dim _K[I_X]_t=\dim _K[R]_t-\text {HF}_X(t). \end{aligned}$$

The virtual dimension is defined as:

$$\begin{aligned} \text {vdim}_n(X,t)=\dim _K[R]_t-\text {HP}_X(t). \end{aligned}$$

We say that X admits an unexpected hypersurface of degree t, if \( \text {adim}_n(X,t)>0 \) and

$$\begin{aligned} \text {adim}_n(X,t)>\text {vdim}_n(X,t) \end{aligned}$$

and X misses an expected hypersurface of degree t, when

$$\begin{aligned} \text {vdim}_n(X,t)> \text {adim}_n(X,t)>0 . \end{aligned}$$

Remark 2.4

Usually along with the definition of actual and virtual dimensions authors introduce the expected dimension, which is the maximum of the virtual dimension and 0 (as in [4, 10] and [9]). Example 7.2 shows that the behaviour of the virtual dimension may be intricate and in many cases we cannot actually expect it to be equal to the actual dimension. Moreover, the situation presented in Example 7.2 allows us to introduce a new concept of missing expected hypersurfaces.

We present some facts that are helpful in studying the actual and virtual dimension. First, we need to introduce the residual and trace schemes.

Definition 2.5

Let XY be closed subschemes of \({\mathbb {P}}^n\) and \({\mathcal {I}}_X\), \({\mathcal {I}}_Y\) denote the corresponding ideal sheafs. The trace of X with respect to Y is the scheme \(\text {Tr}_Y(X)\) defined by the ideal sheaf \(({\mathcal {I}}_X+{\mathcal {I}}_Y)/{\mathcal {I}}_Y\) (i.e. the schematic intersection of X and Y in Y). The residual of X with respect to Y is the scheme \(\text {Res}_Y(X)\) defined by the colon ideal \(({\mathcal {I}}_X:{\mathcal {I}}_Y)\).

Let \(X\subseteq {\mathbb {P}}^n\) be a closed subscheme and \(H\subseteq {\mathbb {P}}^n\) be a hyperplane. We have the following exact sequence:

$$\begin{aligned} 0\rightarrow {\mathcal {O}}_{{\mathbb {P}}^n}(t-1)\otimes {\mathcal {I}}_{\text {Res}_H(X)}\rightarrow {\mathcal {O}}_{{\mathbb {P}}^n}(t)\otimes {\mathcal {I}}_X\rightarrow {\mathcal {O}}_{H}(t)\otimes {\mathcal {I}}_{\text {Tr}_H(X)}\rightarrow 0. \end{aligned}$$

We know that \(\dim _K([I]_t)=h^0({\mathbb {P}}^n,{\mathcal {O}}_{{\mathbb {P}}^n}(t)\otimes {\mathcal {I}}_X)\). So from the long exact sequence of cohomology we have the following inequality, which is called the Castelnuovo Inequality (more details can be found in [1] and [2]).

Lemma 2.6

(Castelnuovo Inequality) For a closed subscheme \(X\subseteq {\mathbb {P}}^n\) and a hyperplane \(H\subseteq {\mathbb {P}}^n\) we have

$$\begin{aligned} \dim _K ([I_{X}]_t)\le \dim _K ([I_{\text {Res}_H(X)}]_{t-1})+\dim _K ([I_{\text {Tr}_H(X),H}]_{t}), \end{aligned}$$

where \(I_{\text {Tr}_H(X),H}\) denotes the ideal of forms in H vanishing on \(\text {Tr}_H(X)\). Moreover, since \(H\cong {\mathbb {P}}^{n-1}\), we have

$$\begin{aligned} \text {adim}_n (X,t)\le \text {adim}_n (\text {Res}_H(X),t-1)+\text {adim}_{n-1} (\text {Tr}_H(X),t). \end{aligned}$$

If we take \(t\gg 0\), we have that \(h^1({\mathbb {P}}^n,{\mathcal {I}}(t))=0\) by Serre Vanishing Theorem (cf. [12]). Hence, we obtain the next result.

Lemma 2.7

For a closed subscheme \(X\subseteq {\mathbb {P}}^n\) and a hyperplane \(H\subseteq {\mathbb {P}}^n\) we have

$$\begin{aligned} \dim _K ([I_{X,{\mathbb {P}}^n}]_t)= \dim _K ([I_{\text {Res}_H(X),{\mathbb {P}}^n}]_{t-1})+\dim _K ([I_{\text {Tr}_H(X),H}]_{t}) \end{aligned}$$

for sufficiently large t. Moreover, since \(H\cong {\mathbb {P}}^{n-1}\), then

$$\begin{aligned} \text {vdim}_n (X,t)= \text {vdim}_n (\text {Res}_H(X),t-1)+\text {vdim}_{n-1} (\text {Tr}_H(X),t). \end{aligned}$$

3 The virtual dimension of schemes with multiplicities 1

In this section we prove the formula for the virtual dimension of \(X=\varPi _1+\ldots +\varPi _s\) which is a subscheme of \({\mathbb {P}}^n\) (\(n\ge 2, s\ge 0\)), where \(\varPi _1,\ldots , \varPi _s\) are general linear subspaces of codimension 2. By Lemma 2.2, one such subspace gives \(c_{n,2,1,t}=\genfrac(){0.0pt}1{t+n-2}{n-2}\) conditions. However, every \(i\le s\) subspaces intersect in a subspace of codimension 2i as long as \(2i \le n\). There are \(\left( {\begin{array}{c}s\\ i\end{array}}\right) \) such intersections each giving \(\genfrac(){0.0pt}1{t+n-2i}{n-2i}\) conditions. By considering all possible intersections we can find the expected number of conditions that vanishing on X imposes on forms of degree t. Therefore, the virtual dimension should be given by the formula

$$\begin{aligned} S_{n,s,t}=\sum _{i=0}^{N(n,s)}(-1)^i\left( {\begin{array}{c}s\\ i\end{array}}\right) \left( {\begin{array}{c}t+n-2i\\ n-2i\end{array}}\right) , \end{aligned}$$

where for given ns we take \(N(n,s)=\min \{\lfloor n/2\rfloor , s\}\). Now, we present an important property of the introduced formula that is proved in the Appendix.

Lemma 3.1

The following formula holds

$$\begin{aligned} S_{n,s,t}=S_{n,s-1,t-1}+S_{n-1,s-1,t-1}. \end{aligned}$$

We move on to the main theorem of this section.

Theorem 3.2

Let \(\varPi _1,\ldots ,\varPi _s\subseteq {\mathbb {P}}^n\) be distinct general linear subspaces of codimension 2. Then for \(X=\varPi _1+\ldots +\varPi _s\) we have \(\text {vdim}_n(X,t)=S_{n,s,t}.\)

Proof

Notice that both \(\text {vdim}_n(X,t)\) and \(S_{n,s,t}\) are polynomials with respect to t.

We will proceed by induction on the sum \(n+s\). We assume that \(n+s=2\), so \(n=2\) and \(s=0\). Then

$$\begin{aligned} \text {vdim}_2(X,t)=\text {adim}_2(X,t)=\genfrac(){0.0pt}1{t+2}{2}=S_{2,0,t}. \end{aligned}$$

If \(n+s=3\), there are two possibilities. For \(n=2\) and \(s=1\), we have

$$\begin{aligned} \text {vdim}_2(X,t)=\text {adim}_2(X,t)=\genfrac(){0.0pt}1{t+2}{2}-1=S_{2,1,t} \end{aligned}$$

and for \(n=3\) and \(s=0\), we get

$$\begin{aligned} \text {vdim}_3(X,t)=\text {adim}_3(X,t)=\genfrac(){0.0pt}1{t+3}{3}=S_{3,0,t}. \end{aligned}$$

Now we assume that \(n+s=k\) and that polynomials \(\text {vdim}_n(X,t)\) and \(S_{n,s,t}\) are equal for \(n+s=k-1\) and \(n+s=k-2\).

Choose \(H\cong {\mathbb {P}}^{n-1}\subseteq {\mathbb {P}}^n\) in such a way that \(\varPi _s\subseteq H\). Then

$$\begin{aligned} \text {Res}_H(X)=\varPi _1+\ldots +\varPi _{s-1} \end{aligned}$$

and

$$\begin{aligned} \text {Tr}_H(X)=\varPi _1|_H+\ldots +\varPi _{s}|_H. \end{aligned}$$

By Lemma 2.7 we have

$$\begin{aligned} \text {vdim}_n(X,t)=\text {vdim}_n(\varPi _1+\ldots +\varPi _{s-1},t-1)+\text {vdim}_{n-1}(\varPi _1|_H+\ldots +\varPi _{s}|_H,t). \end{aligned}$$

Since \(\varPi _s\subseteq H\) is a fixed component for the locus of forms in H, we have

$$\begin{aligned} \text {vdim}_{n-1}(\varPi _1|_H+\ldots +\varPi _{s}|_H,t)=\text {vdim}_{n-1}(\varPi _1|_H+\ldots +\varPi _{s-1}|_H,t-1). \end{aligned}$$

By induction and Lemma 3.1 we obtain our result:

$$\begin{aligned} \text {vdim}_n(X,t)= & {} \text {vdim}_n(\varPi _1+\ldots +\varPi _{s-1},t-1)\\&+\text {vdim}_{n-1}(\varPi _1|_H+\ldots +\varPi _{s-1}|_H,t-1)\\= & {} S_{n,s-1,t-1}+S_{n-1,s-1,t-1}=S_{n,s,t}. \end{aligned}$$

\(\square \)

4 Veneroni maps

Now we recall the construction of Veneroni maps. One can find more details in [5], where authors present basic facts about Veneroni maps with a modern approach. In [6] there is a thorough analysis of the case of a cubo-cubic transformation in \({\mathbb {P}}^3\), which is a special case of the Veneroni map.

Let \(\varPi _1,\ldots ,\varPi _{n+1}\subseteq {\mathbb {P}}^n\) be codimension 2 general linear subspaces. The linear system of all forms of degree n vanishing on those subspaces has dimension \(n+1\). Hence, it defines a rational map \(v_n:{\mathbb {P}}^n\dashrightarrow {\mathbb {P}}^n\). This map is called the Veneroni map. As it is proved in [5], its inverse is again the Veneroni map defined by the degree n forms vanishing on some general linear subspaces \(\varPi '_1,\ldots ,\varPi '_{n+1}\) of codimension 2 and \(v_n\) is in fact a birational map.

Following the notation from [9] we write \(dH-m_1\varPi _1-\ldots -m_{n+1}\varPi _{n+1}\) to denote the linear system of forms of degree d that vanish on each \(\varPi _i\) to order at least \(m_i\). Let H and \(H'\) denote the linear system of all hyperplanes in \({\mathbb {P}}^n\), where H is considered in the source of the map \(v_n\) and \(H'\) in its target. Then \(v_n\) pulls back \(H'\) to \(nH-\varPi _1-\ldots -\varPi _{n+1}\). By the construction of \(\varPi _j'\) from [5], \(v_n\) pulls back \(\varPi _j'\) to a unique hypersurface of degree \(n-1\) containing \(\varPi _1,\ldots ,\varPi _{j-1},\varPi _{j+1},\ldots ,\varPi _{n+1}\), which is denoted by \((n-1)H-\varPi _1-\ldots -\varPi _{n+1}+\varPi _j\).

To generalize the results from [9] we examine the linear systems of the form \(S=(n+k)H-\varPi _1-\ldots -\varPi _{n+1}\). Then

$$\begin{aligned} v_n^{*}(S)= & {} S'=(n+k)H'-\varPi '_1-\ldots -\varPi '_{n+1}\\= & {} (n+k)(nH-\varPi _1-\ldots -\varPi _{n+1})-((n-1)H-\varPi _2-\ldots -\varPi _{n+1})\\&-\ldots -((n-1)H-\varPi _1-\ldots \varPi _n) =(nk+1)H-k\varPi _1-\ldots -k\varPi _{n+1}. \end{aligned}$$

Since \(v_n\) is a birational map, we have

$$\begin{aligned} \text {adim}_n(\varPi _1+\ldots +\varPi _{n+1},n+k)=\text {adim}_n(k\varPi _1+\ldots +k\varPi _{n+1},kn+1). \end{aligned}$$

In the following sections we focus on those two types of linear systems. First, we will examine the actual dimension of S (and therefore of \(S'\)). Then, we will analyse the virtual dimension of \(S'\) for \(k=3\). As a consequence, we will show that the systems \(S'\) for \(k=3\) form a family of examples of unexpected hypersurfaces.

5 Linear systems with base loci in subspaces of codimension 2

This section presents the analysis of the relation between the virtual and actual dimension of the linear systems of hypersurfaces containing general linear subspaces of codimension 2 with multiplicities 1. We prove Theorem 5.2 that provides sufficient conditions under which the actual dimension is greater than the virtual dimension. Afterwards, we show that that systems of hypersurfaces of degree \(n+k\) vanishing along \(n+1\) such subspaces in \({\mathbb {P}}^n\) satisfy those conditions and that the virtual dimension is positive in such case. Then, we check that the opposite equality between dimensions also holds in this situation.

Notation

It is convenient to introduce, for numbers abc the following notation:

figure a

to denote that \(a\le b+c\) and

figure b

for \(a=b+c\).

The following example was presented in [9, Ex. 4.2]. Hereby, we show how to calculate the actual dimension of a given system without using computer methods.

Example 5.1

Let \(X=\varPi _1+\ldots +\varPi _5\subseteq {\mathbb {P}}^4\). We want to show that

$$\begin{aligned} \text {adim}_4(X,7)=\text {vdim}_4(X,7)=160. \end{aligned}$$

By Theorem 3.2 we have \(\text {vdim}_4(X,7)=S_{4,5,7}=\genfrac(){0.0pt}1{7+4}{4}-5\genfrac(){0.0pt}1{7+2}{2}+\genfrac(){0.0pt}1{5}{2}=160\).

First, we prove that \(\text {adim}_4(X,7)\ge 160\). Given a form f of degree 7 we want to construct the sets \(W_i\) of linear equations on the coefficients of f such that the equations in \(W_i\) guarantee the vanishing of f along \(\varPi _i\) and \(|W_1\cup \ldots \cup W_5|=170\). The equations in \(W_1\cup \ldots \cup W_5\) may be as well linearly dependent. In any case,

$$\begin{aligned} \text {adim}_4(X,7)\ge \genfrac(){0.0pt}1{7+4}{4} -|W_1\cup \ldots \cup W_5|=330- 170=160. \end{aligned}$$

We start by constructing the sets \(W_{ij}\) of equations giving the vanishing along the intersections \(\varPi _i\cap \varPi _j\). There are \(\genfrac(){0.0pt}1{5}{2}=10\) such intersections. In the considered case they are points, thus \(|W_{ij}|=1\) since \(W_{ij}\) necessarily consists of one equation imposing vanishing at a point. Now, having established \(W_{ij}\)’s, we require each set \(W_i\) to contain the equations that are already in the sets \(W_{ij}\) for \(j\ne i\) (4 equations). Then \(W_i\) can be completed with 32 linearly independent equations so that \(|W_i|=\genfrac(){0.0pt}1{7+2}{2}=36\). Hence, by the inclusion-exclusion principle

$$\begin{aligned} |W_1\cup \ldots \cup W_5|= \sum _{i=1}^{5}|W_i|-\sum _{1\le i\le j\le 5}|W_{ij}|=5\cdot 36-10=170. \end{aligned}$$

On the other hand, we take a hyperplane \(H_5\cong {\mathbb {P}}^3\) in such a way that \(\varPi _5\subseteq H_5\). Then

$$\begin{aligned} \text {Res}_{H_5}(X)=\varPi _1+\ldots +\varPi _4 \end{aligned}$$

and

$$\begin{aligned} \text {Tr}_{H_5}(X)=\varPi _1|_{H_5}+\ldots +\varPi _{5}|_{H_5}. \end{aligned}$$

By Lemma 2.6 we get

$$\begin{aligned} \text {adim}_4(X,t)\le \text {adim}_4(\text {Res}_{H_5}(X),t-1)+\text {adim}_{3}(\text {Tr}_{H_5}(X),t). \end{aligned}$$

And as before

$$\begin{aligned} \text {adim}_{3}(\text {Tr}_{H_5}(X),t)=\text {adim}_{3}(\text {Tr}_{H_5}(X)-\varPi _5|_{H_5},t-1) \end{aligned}$$

because \(\varPi _5\) is a component for the locus of forms in \(H_5\). Moreover, by Hartshorne-Hirschowitz Theorem we have

$$\begin{aligned} \text {adim}_{3}(\text {Tr}_{H_5}(X)-\varPi _5|_{H_5},6)=\text {vdim}_3(\text {Tr}_{H_5}(X)-\varPi _5|_{H_5},6)=S_{3,4,6}=56. \end{aligned}$$

We illustrate the situation as a diagram.

figure c

We continue that procedure by taking \(X'=\varPi _1+\ldots +\varPi _4\) and \(H_4\) containing \(\varPi _4\).

figure d

Then we take consecutively \(H_3\supseteq \varPi _3\) and \(H_2\supseteq \varPi _2\).

figure e

That gives us the inequality:

$$\begin{aligned} \text {adim}_4(X,7)\le 135+\text {adim}_4(\varPi _1,3). \end{aligned}$$

Since \(\text {adim}_4(\varPi _1,3)=\genfrac(){0.0pt}1{7}{4}-\genfrac(){0.0pt}1{5}{2}=25\), we have \(\text {adim}_4(X,7)\le 160\).

Theorem 5.2

Let \(\varPi _1,\ldots ,\varPi _s\) be general linear subspaces of codimension 2 in \({\mathbb {P}}^n\). Consider the scheme \(X=\varPi _1+\ldots +\varPi _s\). If

$$\begin{aligned} S_{n-2p,s-p,t}>0 \end{aligned}$$

for \(p=1,\ldots , N(n,s)-1\), then

$$\begin{aligned} \text {adim}_n(X,t)\ge \text {vdim}_n(X,t). \end{aligned}$$

Proof

Recall that

$$\begin{aligned} S_{n-2p,s-p,t}= \sum _{i=0}^{N(n,s)-p}(-1)^{i}\genfrac(){0.0pt}1{s-p}{i}\genfrac(){0.0pt}1{t+n-2p-2i}{n-2p-2i}=\sum _{i=p}^{N(n,s)}(-1)^{i-p}\genfrac(){0.0pt}1{s-p}{i-p}\genfrac(){0.0pt}1{t+n-2i}{n-2i}, \end{aligned}$$

where \(N(n,s)=\min \{\lfloor n/2\rfloor , s\}\). Also notice that vanishing along the subspace of codimension c imposes \(\genfrac(){0.0pt}1{t+n-c}{n-c}\) conditions on forms of degree t.

We proceed as in Example 5.1. We want to construct the sets \(W_{i_1\ldots i_l}\) (\(1\le l \le N(n,s)\)) of linear equations that guarantee the vanishing of forms of degree t along the intersections \(\varPi _{i_1}\cap \ldots \cap \varPi _{i_l}\) and \(\genfrac(){0.0pt}1{t+n}{n}-|W_1\cup \ldots \cup W_s|=S_{n,s,t}.\)

Take \(l=N(n,s)\), then any intersection of \(l+1\) subspaces is empty. First, we choose the sets \(W_{i_1\ldots i_l}\) consisting of \(\genfrac(){0.0pt}1{t+n-2l}{n-2l}\) linearly independent equations. For \(p=l-1\) each intersection of p subspaces contains \(s-p\) intersections of \(p+1=l\) subspaces. Hence, we require each set \(W_{i_1\ldots i_p}\) to contain \((s-p)\genfrac(){0.0pt}1{t+n-2l}{n-2l}\) equations that were previously chosen. If

$$\begin{aligned} \genfrac(){0.0pt}1{t+n-2p}{n-2p}- (s-p)\genfrac(){0.0pt}1{t+n-2l}{n-2l}=S_{n-2p,s-p,t}>0, \end{aligned}$$

then \(W_{i_1\ldots i_p}\) can be completed (with linearly independent equations) so that \(|W_{i_1\ldots i_p}|=\genfrac(){0.0pt}1{t+n-2p}{n-2p}\).

Similarly, for any \(p=N(n,s)-2,\ldots , 1\) we use the equations that were previously chosen for smaller subspaces and complete them to the set \(W_{i_1\ldots i_p}\). By the inclusion-exclusion principle, if the inequalities of the form

$$\begin{aligned} \genfrac(){0.0pt}1{t+n-2p}{n-2p}- & {} (s-p)|W_{i_1\ldots i_{p+1}}|+\genfrac(){0.0pt}1{s-p}{2}|W_{i_1\ldots i_{p+2}}|-\ldots +(-1)^{l-p}\genfrac(){0.0pt}1{s-p}{l-p}|W_{i_1\ldots i_l}|\\= & {} S_{n-2p,s-p,t}>0 \end{aligned}$$

are satisfied, then we can do such construction.

Hence, if the inequalities \(S_{n-2p,s-p,t}>0\) are satisfied for \(p=1,\ldots , N(n,s)-1\), then by the inclusion-exclusion principle we have that

$$\begin{aligned} \text {adim}_n(X,t)\ge \genfrac(){0.0pt}1{t+n}{n}-|W_1\cup \ldots \cup W_s|=S_{n,s,t}=\text {vdim}_n(X,t). \end{aligned}$$

\(\square \)

In the following example we show that the conditions of the form \(S_{n-2p,s-p,t}>0\) are needed in the previous theorem.

Example 5.3

Consider \(X=\varPi _1+\ldots +\varPi _{12}\) in \({\mathbb {P}}^4\). There are no forms of degree 2 vanishing on 12 general planes. Indeed, taking a hyperplane \(H\cong {\mathbb {P}}^3\) such that \(\varPi _{12}\subseteq H\) and using Lemma 2.6 we get

$$\begin{aligned} \text {adim}_4(X,2)\le \text {adim}_4(\varPi _1+\ldots +\varPi _{11},1)+\text {adim}_3(\varPi _1|_H+\ldots +\varPi _{11}|_H,1)=0. \end{aligned}$$

On the other hand, by Theorem 3.2

$$\begin{aligned} \text {vdim}_4(X,2)=\genfrac(){0.0pt}1{2+4}{4}-12\genfrac(){0.0pt}1{2+2}{2}+\genfrac(){0.0pt}1{12}{2}=9. \end{aligned}$$

The assumptions of Theorem 5.5 are not satisfied, since \(S_{2,11,2}=-5.\)

For the rest of this section we assume that \(X=\varPi _1+\ldots +\varPi _{n+1}\subseteq {\mathbb {P}}^n\), where \(\varPi _1,\ldots ,\varPi _{n+1}\) are general linear subspaces of codimension 2 and \(n\ge 2\). We want to compare the virtual and actual dimension of the system of forms of degree \(n+k\) vanishing along X. For this purpose, we prove the next two theorems.

Theorem 5.4

If \(k\ge 3\), then we have

$$\begin{aligned} S_{n-2p,n+1-p,n+k}>0 \end{aligned}$$

for \(p=0,\ldots , \lfloor n/2\rfloor -1\).

Proof

We will prove by induction on n that

$$\begin{aligned} S_{n-2p,n+1-p-j,n+k-j}>0 \end{aligned}$$

for \(j=0,\ldots ,n-p\).

For \(n=2\) we need to consider \(p=0\) and \(j=0,1,2\) and we get

$$\begin{aligned} S_{2,3,k+2}=\genfrac(){0.0pt}1{k+4}{2}-3>0,\quad S_{2,2,k+1}=\genfrac(){0.0pt}1{k+3}{2}-2>0,\quad S_{2,1,k}=\genfrac(){0.0pt}1{k+2}{2}-1>0. \end{aligned}$$

Fix n and p. First, we consider the case \(j=n-p\) and show that \(S_{n-2p,1,k+p}>0\). Indeed, notice that for \({\tilde{n}}=n-2p\ge 2\) and \({\tilde{k}}=k+p\ge 3\), we have

$$\begin{aligned} S_{n-2p,1,k+p}=S_{{\tilde{n}},1,{\tilde{k}}}=\genfrac(){0.0pt}1{{\tilde{k}}+{\tilde{n}}}{{\tilde{n}}}-\genfrac(){0.0pt}1{{\tilde{k}}+{\tilde{n}}-2}{{\tilde{n}}-2}=\genfrac(){0.0pt}1{{\tilde{k}}+{\tilde{n}}-2}{{\tilde{n}}-2}\cdot \left( \genfrac{}{}{}1{({\tilde{k}}+{\tilde{n}}-1)({\tilde{k}}+{\tilde{n}})}{({\tilde{n}}-1){\tilde{n}}}-1\right) >0. \end{aligned}$$

For \(j\le n-p-1\) by Lemma 3.1

$$\begin{aligned} S_{n-2p,n+1-p-j,n+k-j}= & {} S_{n-2p,n+1-p-(j+1),n+k-(j+1)}\\&+S_{(n-1)-2p,(n-1)+1-p-j,(n-1)+k-j}. \end{aligned}$$

By reverse induction on j we have

$$\begin{aligned} S_{n-2p,n+1-p-(j+1),n+k-(j+1)}>0. \end{aligned}$$

If \(p\le \lfloor \frac{n-1}{2}\rfloor -1\), we have

$$\begin{aligned} S_{(n-1)-2p,(n-1)+1-p-j,(n-1)+k-j}>0 \end{aligned}$$

by induction on n. For odd n we consider \(p=0,\ldots ,\lfloor \frac{n}{2}\rfloor -1=\lfloor \frac{n-1}{2}\rfloor -1\) and for even n we take \(p=0,\ldots ,\lfloor \frac{n}{2}\rfloor -1=\lfloor \frac{n-1}{2}\rfloor .\) However, in the case of \(p=\lfloor \frac{n-1}{2}\rfloor \) for even n, we have

$$\begin{aligned} S_{(n-1)-2p,(n-1)+1-p-j,(n-1)+k-j}=S_{0,(n-1)+1-p-j,(n-1)+k-j}=1. \end{aligned}$$

\(\square \)

Theorem 5.5

For \(k\ge 3\), we have that

$$\begin{aligned} \text {adim}_n(X,n+k)\le \text {vdim}_n(X,n+k). \end{aligned}$$

Proof

First, notice that

$$\begin{aligned} \text {adim}_n(\varPi ,k)=\text {vdim}_n(\varPi ,k)=S_{n,1,k}, \end{aligned}$$

where \(\varPi \) is a codimension 2 linear subspace in \({\mathbb {P}}^n\). We will prove by induction on n that

$$\begin{aligned} \text {adim}_n(\varPi _1+\ldots +\varPi _{n+1-j},n+k-j)\le S_{n,n+1-j,n+k-j} \end{aligned}$$

for \(j=0,\ldots , n-1\). We proceed similarly to the proof of the previous theorem.

For \(n=2\) the linear subspaces of codimension 2 are points, so

$$\begin{aligned}&\text {adim}_2(\varPi _1+\varPi _2+\varPi _3,k+2)=\text {vdim}_2(\varPi _1+\varPi _2+\varPi _3,k+2)=S_{2,3,k+2},\\&\text {adim}_2(\varPi _1+\varPi _2,k+1)=\text {vdim}_2(\varPi _1+\varPi _2,k+1)=S_{2,2,k+1}. \end{aligned}$$

We fix n and use Lemma 2.6 by taking a hyperplane H such that \(\varPi _{n+1-j}\subseteq H\cong {\mathbb {P}}^{n-1}\). We get

$$\begin{aligned}&\text {adim}_n(\varPi _1+\ldots +\varPi _{n+1-j},n+k-j)\le \text {adim}_n(\varPi _1+\ldots +\varPi _{n+1-(j+1)},n+k-(j+1))\\&\quad +\ \text {adim}_{n-1}(\varPi _1+\ldots +\varPi _{(n-1)+1-j},(n-1)+k-j). \end{aligned}$$

By reverse induction on j and induction on n the right-hand side is not greater than

$$\begin{aligned} S_{n,n-j,n+k-j-1}+S_{n-1,n-j,n+k-j-1}. \end{aligned}$$

By Lemma 3.1 it is equal to \(S_{n,n+1-j, n+k-j}\). \(\square \)

Corollary 5.6

By Theorems 5.25.4 and 5.5 we have

$$\begin{aligned} \text {adim}_n(X,n+k)=\text {vdim}_n(X,n+k)>0. \end{aligned}$$

for \(k\ge 3\).

6 Images of linear systems under Veneroni transformations

Now we focus on the linear systems that are transformations of

$$\begin{aligned} S=(n+k)H-\varPi _1-\ldots -\varPi _{n+1} \end{aligned}$$

by the Veneroni maps, where \(\varPi _1,\ldots ,\varPi _{n+1}\subseteq {\mathbb {P}}^n\) are codimension 2 general linear subspaces and \(k\ge 3\). As we explained in Sect. 4, such systems are of the form

$$\begin{aligned} S'=(nk+1)H-k\varPi _1-\ldots -k\varPi _{n+1}. \end{aligned}$$

We will prove that for \(k=3\) and \(n\ge 6\) the virtual dimension of \(S'\) is always non-positive.

First, we continue the analysis of the example presented in [9, Ex. 4.2.], which shows in particular that the assumption \(n\ge 6\) is essential.

Example 6.1

Let \(X'=3\varPi _1+\ldots +3\varPi _5\subseteq {\mathbb {P}}^4\). We want to find \(\text {vdim}_4(X',13)\). As before, we assume that \(H\cong {\mathbb {P}}^3\) is a hyperplane such that \(\varPi _5\subseteq H\). Then

$$\begin{aligned} \text {Res}_{H}(X')=3\varPi _1+\cdots +3\varPi _4+2\varPi _5 \end{aligned}$$

and

$$\begin{aligned} \text {Tr}_{H}(X')=3\varPi _1|_{H}+\cdots +3\varPi _{5}|_{H}. \end{aligned}$$

By Lemma 2.7 and the fact that \(3\varPi _{5}\) is a component for the zero locus of forms in H we have

$$\begin{aligned} \text {vdim}_4(X',t)=\text {vdim}_4(\text {Res}_{H}(X'),t-1)+\text {vdim}_{3}(\text {Tr}_{H}(X')-3\varPi _{5}|_H,t-3). \end{aligned}$$

We repeat that procedure as presented in the diagram. To alleviate notation, at each level we write \(\varPi _i|_H\), although at each step we take different hyperplanes \(H_i\).

figure f

It follows that

$$\begin{aligned}\text {vdim}_4(3\varPi _1+\ldots +3\varPi _5,13)= & {} 3\big [\text {vdim}_{3}(3\varPi _1|_{H}+\ldots +3\varPi _{4}|_{H},10)\big ]\\&+\ \text {vdim}_4(3\varPi _1+\ldots +3\varPi _4,10) \end{aligned}$$

and so forth. That gives us

$$\begin{aligned}&\text {vdim}_4(3\varPi _1+\ldots +3\varPi _5,13)=3\Big [\text {vdim}_{3}(3\varPi _1|_{H}+\ldots +3\varPi _{4}|_{H},10)\nonumber \\&\quad +\text {vdim}_{3}(3\varPi _1|_{H}+3\varPi _2|_{H}+3\varPi _{3}|_{H},7) +\text {vdim}_{3}(3\varPi _1|_{H}+3\varPi _{2}|_{H},4)\nonumber \\&\quad +\text {vdim}_{3}(3\varPi _1|_{H},1)\Big ]+\text {vdim}_4(3\varPi _1,1). \end{aligned}$$
(1)

One can check that \(\text {vdim}_{3}(3\varPi _1|_{H},1)=\text {vdim}_4(3\varPi _1,1)=0\) (we will prove it in Lemma 6.3). To find remaining values we repeat the procedure in \({\mathbb {P}}^3\), we denote \(S_i:=\varPi _i|_{H}\) and hyperplanes in \({\mathbb {P}}^3\) as \(H'\).

figure g

The numbers on the right are easily calculated, since we consider vanishing at points in \({\mathbb {P}}^2\). Again by Lemma 2.7

$$\begin{aligned}&\text {vdim}_{3}(3S_1+3S_{2},4)=3\cdot \text {vdim}_{2}(3S_1|_{H'},1) +\text {vdim}_3(3S_1,1)= -9,\\&\text {vdim}_{3}(3S_1+3S_2+3S_{3},7)=3\cdot \text {vdim}_{2}(3S_1|_{H'}+3S_2|_{H'},4) +\text {vdim}_{3}(3S_1+3S_{2},4)= 0 \end{aligned}$$

and

$$\begin{aligned} \text {vdim}_{3}(3S_1+\ldots +3S_{4},10)= & {} 3\cdot \text {vdim}_{2}(3S_1|_{H'}+3S_2|_{H'}+3S_3|_{H'},7)\\&+\text {vdim}_{3}(3S_1+3S_2+3S_{3},7)=54. \end{aligned}$$

By the formula (1) we get \(\text {vdim}_4(X',13)=135.\)

Remark 6.2

In the case of multiplicities 1 we proved that there is a formula for the virtual dimension of a given system. When we consider higher multiplicities the situation becomes much more complicated. We can use Lemma 2.7 to find the virtual dimension as in the previous example. The procedure that returns the value

$$\begin{aligned} \text {vdim}_n(m_1\varPi _1+\ldots +m_s\varPi _{s},t) \end{aligned}$$

for given \(n\ge 2\), \(m_i>0\) and \(s\ge 0\) can be easily implemented in Singular or Maple.

Notice that if \(\varPi _s\subseteq H\cong {\mathbb {P}}^{n-1}\), then

$$\begin{aligned} \text {Res}_{H}(m_1\varPi _1+\ldots +m_s\varPi _{s})=m_1\varPi _1+\cdots +(m_s-1)\varPi _{s} \end{aligned}$$

and

$$\begin{aligned} \text {Tr}_{H}(m_1\varPi _1+\cdots +m_s\varPi _{s})-m_s\varPi _s=m_1\varPi _1+\cdots +m_{s-1}\varPi _{s-1}. \end{aligned}$$

By Lemma 2.7\(\text {vdim}_n(m_1\varPi _1+\cdots +m_s\varPi _{s},t)\) is equal to

$$\begin{aligned} \text {vdim}_n(m_1\varPi _1+\ldots +(m_s-1)\varPi _{s},t-1)+\text {vdim}_{n-1}(m_1\varPi _1+\cdots +m_{s-1}\varPi _{s-1},t-m_s). \end{aligned}$$

We define the procedure recursively starting from the conditions

$$\begin{aligned} \text {vdim}_n(X,t)=\genfrac(){0.0pt}1{t+ n}{n} \end{aligned}$$

for \(X=\varnothing \) and

$$\begin{aligned} \text {vdim}_2(m_1\varPi _1+\cdots +m_s\varPi _{s},t)=\genfrac(){0.0pt}1{t+ 2}{2}-\sum _{i=1}^s \genfrac(){0.0pt}1{m_i+1}{2}. \end{aligned}$$

Lemma 6.3

For \(n\ge k\ge 3\) we have

$$\begin{aligned} \text {vdim}_n(k\varPi ,1)=0. \end{aligned}$$

Proof

By Lemma 2.2 we have that

$$\begin{aligned} \text {adim}_n(k\varPi ,t)=\genfrac(){0.0pt}1{t+n}{n}-c_{n,2,k,t}=\genfrac(){0.0pt}1{t+n}{n}-\sum _{i=0}^{k-1}(i+1)\genfrac(){0.0pt}1{t-i+n-2}{n-2} \end{aligned}$$

for \(t\ge k\). Denote the summands in \(c_{n,2,k,t}\) as \(c_i(t)=(i+1)\left( {\begin{array}{c}t-i+n-2\\ n-2\end{array}}\right) \) treated as polynomials with respect to t. Since \(\text {vdim}_n(k\varPi ,t)\) is a polynomial that agrees with \(\text {adim}_n(k\varPi ,t)\) for all sufficiently large t, we have

$$\begin{aligned} \text {vdim}_n(k\varPi ,1)=n+1-\sum _{i=0}^{k-1}c_i(1). \end{aligned}$$

If \(n>2\), then \(c_0(1)=\left( {\begin{array}{c}1+n-2\\ n-2\end{array}}\right) =n-1\), \(c_1(1)=2\cdot \left( {\begin{array}{c}n-2\\ n-2\end{array}}\right) =2\) and \(c_i(1)=0\) for \(i=2,\ldots k-1\). Indeed,

$$\begin{aligned} c_i(t)=(i+1)\cdot \frac{(t-i+1)(t-i+2)\cdot \ldots \cdot (t-i+n-2)}{(n-2)!} \end{aligned}$$

and \(1\le i-1\le k-1\le n-2\), so one of the terms in the numerator is equal 0. Hence, \(\text {vdim}_n(k\varPi ,1)=n+1-(n-1)-2=0. \) \(\square \)

Theorem 6.4

For \(n\ge 6\) we have that

$$\begin{aligned} \text {vdim}_n(3\varPi _1+\ldots +3\varPi _{n+1},3n+1)\le 0. \end{aligned}$$

Proof

First, we see that \(\text {vdim}_n(3\varPi ,1)=0\) for \(n\ge 3\) by Lemma 6.3. We will prove by induction on n that

$$\begin{aligned} \text {vdim}_{n}(3\varPi _1+\ldots +3\varPi _{n+1-j},3(n-j)+1)\le 0 \end{aligned}$$

for \(j=0,\ldots ,n-1\).

Explicit calculation along the lines of Example 6.1 or appealing to the procedure explained in the previous remark shows that

$$\begin{aligned}&\text {vdim}_6(3\varPi _1+\ldots +3\varPi _7,19)=0,\quad \text {vdim}_6(3\varPi _1+\ldots +3\varPi _6,16)=-729,\\&\text {vdim}_6(3\varPi _1+\ldots ,3\varPi _5,13)=-243,\quad \text {vdim}_6(3\varPi _1+\ldots +3\varPi _4,10)=0,\\&\text {vdim}_6(3\varPi _1+3\varPi _2+3\varPi _3,7)=0,\quad \text {vdim}_6(3\varPi _1+3\varPi _2,4)=0. \end{aligned}$$

Now we fix n and use Lemma 2.7 three times to obtain

$$\begin{aligned}&\text {vdim}_{n}(3\varPi _1+\ldots +3\varPi _{n+1-j},3(n-j)+1)\\&\quad =\text {vdim}_n(3\varPi _1+\ldots +3\varPi _{n+1-(j+1)},3(n-(j+1))+1)\\&\qquad +3\big (\text {vdim}_{n-1}(3\varPi _1+\ldots +3\varPi _{(n-1)+1-j},3((n-1)-j)+1\big ). \end{aligned}$$

The right-hand side is smaller than 0 by reverse induction on j and induction on n.\(\square \)

7 Application to unexpected hypersurfaces

In this section we present our results concerning unexpected hypersurfaces. Again we assume that \(\varPi _1,\ldots ,\varPi _{n+1}\) are codimension 2 general linear subspaces in \({\mathbb {P}}^n\) and \(X=\varPi _1+\ldots +\varPi _{n+1}\). We consider the linear system of forms of degree \(n+k\) vanishing along X and its transformation by the Veneroni map to the system of forms of degree \(kn+1\) vanishing along \(X'=k\varPi _1+\ldots +k\varPi _{n+1}\). First, we examine the case \(k=3\).

Theorem 7.1

Let \(X'=3\varPi _1+\ldots +3\varPi _{n+1}\), where \(n\ge 3\). Then \(X'\) admits an unexpected hypersurface of degree \(3n+1\).

Proof

The linear system \(S'=(3n+1)H-3\varPi _1-\ldots -3\varPi _{n+1}\) is the pullback of the system \(S=(n+3)H-\varPi _1-\ldots -\varPi _{n+1}\) by the Veneroni map \(v_n\). So \(\text {adim}_n(X',3n+1)=\text {adim}_n(X,n+3)\) and by Corollary 5.6 this value is strictly greater than 0.

For \(n=4\) we have \(\text {adim}_n(X,n+3)=160\) by Example 5.1 and \(\text {vdim}_n(X',3n+1)=135\) by Example 6.1. Hence,

$$\begin{aligned} \text {adim}_n(X',3n+1)=\text {adim}_n(X,n+3)>\text {vdim}_n(X',3n+1). \end{aligned}$$

One can check that the same inequality holds for \(n=3\) and \(n=5\) using similar techniques or implemented procedure described in Remark 6.2. The cases \(n=3,4,5\) are also analysed in [9] (using computer methods). For \(n\ge 6\) by Theorem 6.4\(\text {vdim}_n(X',3n+1)\le 0\). Hence, \(X'\) admits an unexpected surface of degree \(3n+1\) for all \(n\ge 3\).\(\square \)

When considering higher values of k, it turns out that not only unexpected hypersurfaces appear. Surprisingly, for \(k=4\) the virtual dimension of a given scheme in \({\mathbb {P}}^{21}\) exceeds the actual dimension.

Example 7.2

Consider \(Y=\varPi _1+\ldots +\varPi _{22}\) and \(Y'=4\varPi _1+\ldots +4\varPi _{22}\) in \({\mathbb {P}}^{21}\). The system of forms of degree 25 on Y is transformed to the system of forms of degree 85 on \(Y'\) by the Veneroni map. The results obtained using procedure from Remark 6.2 are as follows. By Corollary 5.6 we have

$$\begin{aligned} \text {adim}_{21}(Y',85)=\text {adim}_{21}(Y,25)=\text {vdim}_{21}(Y,25)=1\,337\,982\,976, \end{aligned}$$

whereas

$$\begin{aligned} \text {vdim}_{21}(Y',85)=12\,094\,627\,905\,536. \end{aligned}$$

Hence, \(Y'\) misses an expected hypersurface of degree 85.

Moreover, the next values of \(\text {adim}_{21}(Y',t)\) are

$$\begin{aligned}&\text {vdim}_{21}(Y',86)=-157\,230\,162\,771\,968,\\&\text {vdim}_{21}(Y',87)=96\,757\,023\,244\,288,\\&\text {vdim}_{21}(Y',88)=2\,366\,593\,604\,971\,209. \end{aligned}$$

Hence, it seems that the virtual dimension does not provide a good prediction of the actual dimension in this case.

Example 7.3

We also present the analysis of the cases \(k=4,5,6\) for \(n=3,\ldots ,50\). Using suitable procedure (in Maple or Singular) we check what is the sign of the difference

$$\begin{aligned} \text {adim}_n(X',kn+1)-\text {vdim}_n(X',kn+1). \end{aligned}$$

In the following cases we obtain:

for \(k=4\)

  • unexpected hypersurfaces for \(n=3,\ldots , 20\);

  • missing expected hypersurfaces for \(n=21,\ldots , 50\);

for \(k=5\)

  • unexpected hypersurfaces for \(n=3,\ldots , 17\), \(n=42,\ldots , 50\);

  • missing expected hypersurfaces for \(n=18,\ldots , 41\);

for \(k=6\)

  • unexpected hypersurfaces for \(n=3,\ldots , 15\), \(n=37,\ldots , 50\);

  • missing expected hypersurfaces for \(n=16,\ldots , 36\).