A First Introduction to Isabelle/ML Metaprogramming: Automatic Estimation of Polynomial Degrees
Jonas Bayer, Anna Danilkin, Marco David, Annie Yao
Key points
From the paper's conclusion- We describe our development process and design decisions; our goal is to offer a small and self-contained tutorial on Isabelle/ML, for mathematicians who want to get started with metaprogramming.
Abstract
This article offers an introduction to metaprogramming in Isabelle/HOL for beginners, based on a running example for working with multivariate polynomials. The example is motivated by our formalisation of universal Diophantine pairs. We describe the implementation of the poly_degree command, which computes upper bounds on the total degrees of multivariate polynomials and automatically proves their correctness. The complete metaprogram handles a variety of special cases but herein we present a simplified version for the sake of exposition. We describe our development process and design decisions; our goal is to offer a small and self-contained tutorial on Isabelle/ML, for mathematicians who want to get started with metaprogramming.
Read the paper
Discussion
Science Skim's AI key points, plus readers' public thoughts
Readers' thoughts
No reader thoughts yet.
Related papers
- Defining the mathematical family tree with a minimal programming languagearXiv · 2026
- Formal Verification of a Generic Iterative AlgorithmFormalized Mathematics · 2026
- Python Code Generation for Isabelle/HOLarXiv · 2026
- The multiplicative complexity of the three-bit low-half multiplierarXiv · 2026
- Breaking the high-degree barrier in Lehmer's problem with a human-AI discovery looparXiv · 2026
- Megrez: A Knowledge-Guided Agent for Formal Mathematics over MK Set TheoryarXiv · 2026