{
  "id": "oai:papers.qnfo.org:degree-bounds-as-a-first-exercise-in-isabelle-ml-metaprogramming-a-reconciled-st",
  "slug": "degree-bounds-as-a-first-exercise-in-isabelle-ml-metaprogramming-a-reconciled-st",
  "title": "Degree Bounds as a First Exercise in Isabelle/ML Metaprogramming: A Reconciled Study of the poly_degree Command",
  "authors": [
    "Rowan Brad Quni-Gudzinas"
  ],
  "abstract": "Metaprogramming—writing programs that manipulate the objects, proofs, and tactics of a proof assistant itself—is a notorious barrier to entry for formal-methods newcomers, particularly mathematicians trained in classical rather than computational thinking. This paper presents a structured, reconciled study of a recent tutorial that addresses this gap: the introduction to Isabelle/ML metaprogramming built around the poly_degree command, which computes upper bounds on the total degrees of multivariate polynomials and automatically proves those bounds correct inside Isabelle/HOL [1], [2]. We reconstruct the mathematical core of the example—a two-rule degree calculus (subadditivity of total degree under addition, additivity under multiplication over an integral domain)—and prove by structural induction that a recursive syntactic walk over a polynomial term yields a certified bound with cost linear in term size. We carry out every arithmetic derivation explicitly: a worked example with bound $5$, a product example with tight bound $10$, a composition bound of $25$, and monomial-space counts including binom155 = 3003. We situate the tutorial within the literature on metaprogramming language design [6], polynomial algebra [5], and adjacent pedagogical traditions [3], [4], [7], and we argue that the example is pedagogically optimal because it is small enough for one sitting yet exercises the full pipeline: term inspection, bound computation, and automated certificate generation. We close with limitations, failure modes, falsifiability conditions, and open questions.",
  "abstract_markdown": "Metaprogramming—writing programs that manipulate the objects, proofs, and tactics of a proof assistant itself—is a notorious barrier to entry for formal-methods newcomers, particularly mathematicians trained in classical rather than computational thinking. This paper presents a structured, reconciled study of a recent tutorial that addresses this gap: the introduction to Isabelle/ML metaprogramming built around the `poly_degree` command, which computes upper bounds on the total degrees of multivariate polynomials and automatically proves those bounds correct inside Isabelle/HOL [1], [2]. We reconstruct the mathematical core of the example—a two-rule degree calculus (subadditivity of total degree under addition, additivity under multiplication over an integral domain)—and prove by structural induction that a recursive syntactic walk over a polynomial term yields a certified bound with cost linear in term size. We carry out every arithmetic derivation explicitly: a worked example with bound $5$, a product example with tight bound $10$, a composition bound of $25$, and monomial-space counts including $\\binom{15}{5} = 3003$. We situate the tutorial within the literature on metaprogramming language design [6], polynomial algebra [5], and adjacent pedagogical traditions [3], [4], [7], and we argue that the example is pedagogically optimal because it is small enough for one sitting yet exercises the full pipeline: term inspection, bound computation, and automated certificate generation. We close with limitations, failure modes, falsifiability conditions, and open questions.",
  "date": "2026-10-09",
  "first_published": "2026-10-09",
  "last_revised": "2026-10-09T00:00:00Z",
  "modified": "2026-10-09T00:00:00Z",
  "version": "1.0.0",
  "version_count": 1,
  "language": "en",
  "keywords": [],
  "quality_tags": [
    "High-quality scholarly research",
    "open-access scholarly work",
    "versioned research publication"
  ],
  "quality_label": "High-quality scholarly research",
  "quality_basis": "QNFO publisher classification for open-access, versioned research with a public revision history and reader correction channel; this is not a claim of independent peer review.",
  "quality_evidence_url": "https://qnfo.org/about",
  "peer_review_status": "Not independently peer-reviewed",
  "resource_type": "ScholarlyArticle",
  "doi": null,
  "doi_url": null,
  "url": "https://papers.qnfo.org/papers/degree-bounds-as-a-first-exercise-in-isabelle-ml-metaprogramming-a-reconciled-st",
  "license_url": "https://legal.qnfo.org/",
  "license_spdx": null,
  "sha256": "3eaa825a3a7b8eef6e25f524638565a135e8e269806a80ed4c2f4a6020feb4d7",
  "version_url": "https://papers.qnfo.org/papers/degree-bounds-as-a-first-exercise-in-isabelle-ml-metaprogramming-a-reconciled-st/v/1.0.0",
  "datacite": {
    "schemaVersion": "http://datacite.org/schema/kernel-4",
    "identifiers": [
      {
        "identifier": "https://papers.qnfo.org/papers/degree-bounds-as-a-first-exercise-in-isabelle-ml-metaprogramming-a-reconciled-st",
        "identifierType": "URL"
      }
    ],
    "creators": [
      {
        "name": "Rowan Brad Quni-Gudzinas",
        "nameType": "Personal",
        "nameIdentifiers": [
          {
            "nameIdentifier": "https://orcid.org/0009-0002-4317-5604",
            "nameIdentifierScheme": "ORCID",
            "schemeUri": "https://orcid.org"
          }
        ]
      }
    ],
    "titles": [
      {
        "title": "Degree Bounds as a First Exercise in Isabelle/ML Metaprogramming: A Reconciled Study of the poly_degree Command"
      }
    ],
    "publisher": "QNFO",
    "publicationYear": "2026",
    "resourceType": {
      "resourceTypeGeneral": "Text",
      "resourceType": "ScholarlyArticle"
    },
    "subjects": [
      {
        "subject": "High-quality scholarly research",
        "subjectScheme": "QNFO publisher classification",
        "schemeUri": "https://qnfo.org/about"
      },
      {
        "subject": "open-access scholarly work",
        "subjectScheme": "QNFO publisher classification",
        "schemeUri": "https://qnfo.org/about"
      },
      {
        "subject": "versioned research publication",
        "subjectScheme": "QNFO publisher classification",
        "schemeUri": "https://qnfo.org/about"
      }
    ],
    "dates": [
      {
        "date": "2026-10-09",
        "dateType": "Issued"
      },
      {
        "date": "2026-10-09",
        "dateType": "Updated"
      }
    ],
    "language": "en",
    "version": "1.0.0",
    "rightsList": [
      {
        "rightsUri": "https://legal.qnfo.org/"
      }
    ],
    "descriptions": [
      {
        "description": "Metaprogramming—writing programs that manipulate the objects, proofs, and tactics of a proof assistant itself—is a notorious barrier to entry for formal-methods newcomers, particularly mathematicians trained in classical rather than computational thinking. This paper presents a structured, reconciled study of a recent tutorial that addresses this gap: the introduction to Isabelle/ML metaprogramming built around the poly_degree command, which computes upper bounds on the total degrees of multivariate polynomials and automatically proves those bounds correct inside Isabelle/HOL [1], [2]. We reconstruct the mathematical core of the example—a two-rule degree calculus (subadditivity of total degree under addition, additivity under multiplication over an integral domain)—and prove by structural induction that a recursive syntactic walk over a polynomial term yields a certified bound with cost linear in term size. We carry out every arithmetic derivation explicitly: a worked example with bound $5$, a product example with tight bound $10$, a composition bound of $25$, and monomial-space counts including binom155 = 3003. We situate the tutorial within the literature on metaprogramming language design [6], polynomial algebra [5], and adjacent pedagogical traditions [3], [4], [7], and we argue that the example is pedagogically optimal because it is small enough for one sitting yet exercises the full pipeline: term inspection, bound computation, and automated certificate generation. We close with limitations, failure modes, falsifiability conditions, and open questions.",
        "descriptionType": "Abstract"
      },
      {
        "description": "Publisher quality classification: High-quality scholarly research. QNFO publisher classification for open-access, versioned research with a public revision history and reader correction channel; this is not a claim of independent peer review.",
        "descriptionType": "Other"
      },
      {
        "description": "Peer review status: Not independently peer-reviewed",
        "descriptionType": "Other"
      }
    ],
    "formats": [
      "text/html"
    ]
  }
}