SearcharxivSearch

arXiv subjects

Anand Patel

Publications and source records attributed to Anand Patel.

At least 19 recordsLinked to original sources

The Simplicity of the Hodge Bundle

This paper shows that the Hodge bundle over the moduli space of genus $g \geq 2$ curves does not contain any non-trivial sub-bundles. Notably, the mathematical content was generated by Aletheia, a custom AI agent powered by Gemini Deep Think.

math.AG

Counting sums of two powers

We generalize two well-known enumerative facts. The first, due to Clebsch, says that a general binary sextic form is expressible as the sum of a cube and a square in 40 different ways. The second, due to Zariski and later Vakil, states that a general pencil of binary 12-ics contains exactly 3762 cubes plus squares, ignoring scaling.

math.AG

Can LLMs Replace Humans During Code Chunking?

Large language models (LLMs) have become essential tools in computer science, especially for tasks involving code understanding and generation. However, existing work does not address many of the unique challenges presented by code written for government applications. In particular, government enterprise software is often written in legacy languages like MUMPS or assembly language code (ALC) and the overall token lengths of these systems exceed the context window size for current commercially available LLMs. Additionally, LLMs are primarily trained on modern software languages and have undergone limited testing with legacy languages, making their ability to understand legacy languages unknown and, hence, an area for empirical study. This paper examines the application of LLMs in the modernization of legacy government code written in ALC and MUMPS, addressing the challenges of input limitations. We investigate various code-chunking methods to optimize the generation of summary module comments for legacy code files, evaluating the impact of code-chunking methods on the quality of documentation produced by different LLMs, including GPT-4o, Claude 3 Sonnet, Mixtral, and Llama 3. Our results indicate that LLMs can select partition points closely aligned with human expert partitioning. We also find that chunking approaches have significant impact on downstream tasks such as documentation generation. LLM-created partitions produce comments that are up to 20% more factual and up to 10% more useful than when humans create partitions. Therefore, we conclude that LLMs can be used as suitable replacements for human partitioning of large codebases during LLM-aided modernization.

cs.SE

Leveraging LLMs for Legacy Code Modernization: Challenges and Opportunities for LLM-Generated Documentation

Legacy software systems, written in outdated languages like MUMPS and mainframe assembly, pose challenges in efficiency, maintenance, staffing, and security. While LLMs offer promise for modernizing these systems, their ability to understand legacy languages is largely unknown. This paper investigates the utilization of LLMs to generate documentation for legacy code using two datasets: an electronic health records (EHR) system in MUMPS and open-source applications in IBM mainframe Assembly Language Code (ALC). We propose a prompting strategy for generating line-wise code comments and a rubric to evaluate their completeness, readability, usefulness, and hallucination. Our study assesses the correlation between human evaluations and automated metrics, such as code complexity and reference-based metrics. We find that LLM-generated comments for MUMPS and ALC are generally hallucination-free, complete, readable, and useful compared to ground-truth comments, though ALC poses challenges. However, no automated metrics strongly correlate with comment quality to predict or measure LLM performance. Our findings highlight the limitations of current automated measures and the need for better evaluation metrics for LLM-generated documentation in legacy systems.

cs.LG

Counting 3-uple Veronese surfaces

This paper culminates in the count of the number of 3-Veronese surfaces passing through 13 general points. This follows the case of 2-Veronese surfaces discovered by Coble in the 1920's. One important element of the calculation is a direct construction of a space of "complete triangles." Our construction is different from the classical ordered constructions of Schubert, Collino and Fulton, as it occurs directly on the Hilbert scheme of length 3 subschemes of the plane. We transport the enumerative problem into a 26-dimensional Grassmannian bundle over our space of complete triangles, where we perform Atiyah-Bott localization. Several important questions arise, which we collect at the end of the paper.

math.AG

Complete Families of Generic Covers of Elliptic Curves

We introduce and motivate a conjecture about the existence of complete, 1-dimensional families of covers of an elliptic curve. If the conjecture holds, then it would imply a uniform lower bound of 5 for slope of the moduli space of curves. If the conjecture fails, this would itself be an interesting phenomenon worthy of explanation.

math.AG

$p$-adic hyperbolicity for moduli spaces of abelian motives

We prove that Shimura varieties of abelian type satisfy a $p$-adic Borel-extension property over discretely valued fields. More precisely, let $\mathsf{D}$ denote the rigid-analytic closed unit disc and $\mathsf{D}^{\times} = \mathsf{D} \setminus \{0\}$, let $X$ be a smooth rigid-analytic variety, and let $S(G,\mathcal{H})_{\mathsf{K}}$ denote a Shimura variety of abelian type with torsion-free level structure. We prove every rigid-analytic map defined over a discretely valued $p$-adic field $\mathsf{D}^{\times} \times X \rightarrow S(G,\mathcal{H})_{\mathsf{K}}^{\textrm{an}}$ extends to an analytic map $\mathsf{D} \times X \rightarrow (S(G,\mathcal{H})_{\mathsf{K}}^{\textrm{BB}})^{\textrm{an}}$, where $S(G,\mathcal{H})_{\mathsf{K}}^{\textrm{BB}}$ is the Baily-Borel compactification of $S(G,\mathcal{H})_{\mathsf{K}}$. We also deduce various applications to algebraicity of analytic maps, degenerations of families of abeloids, and to $p$-adic notions of hyperbolicity. Along the way, we also prove an extension result for Rapoport-Zink spaces.

math.NT

Single and double quantum transitions in spin-mixed states under photo-excitation

Electronic spins associated with the Nitrogen-Vacancy (NV) center in diamond offer an opportunity to study spin-related phenomena with extremely high sensitivity owing to their high degree of optical polarization. Here, we study both single- and double-quantum transitions (SQT and DQT) in NV centers between spin-mixed states, which arise from magnetic fields that are non-collinear to the NV axis. We demonstrate the amplification of the ESR signal from both these types of transition under laser illumination. We obtain hyperfine-resolved X-band ESR signal as a function of both excitation laser power and misalignment of static magnetic field with the NV axis. This combined with our analysis using a seven-level model that incorporates thermal polarization and double quantum relaxation allows us to comprehensively analyze the polarization of NV spins under off-axis fields. Such detailed understanding of spin-mixed states in NV centers under photo-excitation can help greatly in realizing NV-diamond platform's potential in sensing correlated magnets and biological samples, as well as other emerging applications, such as masing and nuclear hyperpolarization.

quant-ph

Orbits of linear series on the projective line

We compute the equivariant fundamental class of the orbit closure of a linear series on the projective line. We also describe the boundary of the orbit closure and how the orbits specialise in one parameter families.

math.AG

Lines highly tangent to a hypersurface

We study spaces of lines that meet a smooth hypersurface X in P^n to high order. As an application, we give a polynomial upper bound on the number of planes contained in a smooth degree d hypersurface in P^5 and provide a proof of a result of Landsberg without using moving frames.

math.AG

Bounding Pinch Point Schemes of Projected Surfaces

Let $X$ be a smooth surface and let $\varphi:X\to\mathbb{P}^N$, with $N\geq 4$, be a finitely ramified map which is birational onto its image $Y = \varphi(X)$, with $Y$ non-degenerate in $\mathbb{P}^N$. In this paper, we produce a lower bound for the length of the pinch scheme of a general linear projection of $Y$ to $\mathbb{P}^3.$ We then prove that the lower bound is realized if and only if $Y$ is a rational normal scroll.

math.AG

A Universal Formula For Counting Cubic Surfaces

Using equivariant geometry, we find a universal formula that computes the number of times a general cubic surface arises in a family. As applications, we show that the PGL(4) orbit closure of a generic cubic surface has degree 96120, and that a general cubic surface arises 42120 times as a hyperplane section of a general cubic 3-fold.

math.AG

Moduli of linear slices of high degree hypersurfaces

We study the variation of linear sections of hypersurfaces in $\mathbb{P}^n$. We completely classify all plane curves, necessarily singular, whose line sections do not vary maximally in moduli. In higher dimensions, we prove that the family of hyperplane sections of any smooth degree $d$ hypersurface in $\mathbb{P}^n$ vary maximally for $d \geq n+3$. In the process, we generalize the classical Grauert-Mulich theorem about lines in projective space, both to $k$-planes in projective space and to free rational curves on arbitrary varieties.

math.AG

Inflectionary Invariants for Isolated Complete Intersection Curve Singularities

We investigate the role played by curve singularity germs in the enumeration of inflection points in families of curves acquiring singular members. Let $N \geq 2$, and consider an isolated complete intersection curve singularity germ $f \colon (\mathbb{C}^N,0) \to (\mathbb{C}^{N-1},0)$. We introduce a numerical function $m \mapsto \operatorname{AD}_{(2)}^m(f)$ that arises as an error term when counting $m^{\mathrm{th}}$-order weight-$2$ inflection points with ramification sequence $(0, \dots, 0, 2)$ in a $1$-parameter family of curves acquiring the singularity $f = 0$, and we compute $\operatorname{AD}_{(2)}^m(f)$ for various $(f,m)$. Particularly, for a node defined by $f \colon (x,y) \mapsto xy$, we prove that $\operatorname{AD}_{(2)}^m(xy) = {{m+1} \choose 4},$ and we deduce as a corollary that $\operatorname{AD}_{(2)}^m(f) \geq (\operatorname{mult}_0 Δ_f) \cdot {{m+1} \choose 4}$ for any $f$, where $\operatorname{mult}_0 Δ_f$ is the multiplicity of the discriminant $Δ_f$ at the origin in the deformation space. Furthermore, we show that the function $m \mapsto \operatorname{AD}_{(2)}^m(f) -(\operatorname{mult}_0 Δ_f) \cdot {{m+1} \choose 4}$ is an analytic invariant measuring how much the singularity "counts as" an inflection point. We obtain similar results for weight-$2$ inflection points with ramification sequence $(0, \dots, 0, 1,1)$ and for weight-$1$ inflection points, and we apply our results to solve various related enumerative problems.

math.AG

Orbits in $(\mathbb{P}^r)^n$ and equivariant quantum cohomology

We compute the $GL_{r+1}$-equivariant Chow class of the $GL_{r+1}$-orbit closure of any point $(x_1, \ldots, x_n) \in (\mathbb{P}^r)^n$ in terms of the rank polytope of the matroid represented by $x_1, \ldots, x_n \in \mathbb{P}^r$. Using these classes and generalizations involving point configurations in higher dimensional projective spaces, we define for each $d\times n$ matrix $M$ an $n$-ary operation $[M]_\hbar$ on the small equivariant quantum cohomology ring of $\mathbb{P}^r$, which is the $n$-ary quantum product when $M$ is an invertible matrix. We prove that $M \mapsto [M]_\hbar$ is a valuative matroid polytope association. Like the quantum product, these operations satisfy recursive properties encoding solutions to enumerative problems involving point configurations of given moduli in a relative setting. As an application, we compute the number of line sections with given moduli of a general degree $2r+1$ hypersurface in $\mathbb{P}^r$, generalizing the known case of quintic plane curves.

math.AG

Equivariant Degenerations of Plane Curve Orbits

In a series of papers, Aluffi and Faber computed the degree of the $GL_3$ orbit closure of an arbitrary plane curve. We attempt to generalize this to the equivariant setting by studying how orbits degenerate under some natural specializations, yielding a fairly complete picture in the case of plane quartics.

math.AG