A Rocq Formalization of Monomial and Graded Orders
Sylvie Boldo, François Clément, Vincent Martin, Micaela Mayero
TL;DR
The paper develops a Rocq-based formalization of monomial and graded orders to support finite element method formalization, establishing a library of definitions, operators, and proofs for binary relations and several vector orders. It builds from core binary-relations theory to lex, colex, symlex, and revlex, then introduces monomial orders and a general graded-operator framework that yields four graded monomial orders. The work includes detailed mathematical and Rocq-specific definitions for graded orders (grlex, grcolex, grsymlex, grevlex) and proves their monomial-order properties, along with applications to ordering multi-indices $ abla A^{d}_{k}$ and a discussion of weighted orders. Overall, it delivers a large, modular, and reusable Rocq library with hundreds of lemmas to facilitate formal reasoning in algebraic and numerical contexts, notably for Gröbner-bases-related computations and FEM discretizations.
Abstract
Even if binary relations and orders are a common formalization topic, we need to formalize specific orders (namely monomial and graded) in the process of formalizing in Rocq the finite element method. This article is therefore definitions, operators, and proofs of properties about relations and orders, thus providing a comprehensive Rocq library. We especially focus on monomial orders, that are total orders compatible with the monoid operation. More than its definition and proved properties, we define several of them, among them the lexicographic and grevlex orders. For the sake of genericity, we formalize the grading of an order, a high-level operator that transforms a binary relation into another one, and we prove that grading an order preserves many of its properties, such as the monomial order property. This leads us to the definition and properties of four different graded orders, with very factorized proofs. We therefore provide a comprehensive and user-friendly library in Rocq about orders, including monomial and graded orders, that contains more than 700 lemmas.
