This project formalizes key results from "On polynomial semantics for propositional logics" by Juan C. Agudelo-Agudelo. Our main focus is the formalization of Theorem 4: The Nullstellensatz for finite fields in Lean using Mathlib.
This section introduces the theoretical foundations required to understand the formalization of multivariate polynomials in Mathlib, which is essential for this project.
Let
At first glance, this definition may seem distant from the classical notation. However, it elegantly encapsulates the structure of a polynomial ring by combining two layers of finitely supported functions.
To understand the definition, we first define the concept of finite support. Let
A function
Finite support functions are versatile because they can represent different algebraic structures depending on how we interpret the mapping
| Representation | Notation | Used in this formalization for... |
|---|---|---|
| Additive |
The Polynomial itself (Sum of monomials weighted by coefficients) |
|
| Multiplicative |
The Monomials (Variables raised to exponents) |
This duality is why Finsupp is used twice in the definition of MvPolynomial.
Note: This table is merely pedagogical. The representation of a finitely supported function is not restricted to these two forms. Fundamentally,
A →₀ Bis just a function with finite non-zero values; these specific notations are simply the most common algebraic interpretations used to build polynomial structures.
The inner part of the polynomial definition is
A function
Example:
Consider
$m(x) = 2$ $m(y) = 3$ $m(z) = 1$ -
$m(v) = 0$ for all other$v \in \sigma$ .
Thus, we can identify the type of monomials
Finally, a polynomial is simply a finite linear combination of monomials with coefficients in
This brings us back to the full type:
A polynomial is a function
For example,
This section outlines the main theoretical result formalized in this repository.
Let
Restricted Variety (
Note: A similar definition can be found in MvPolynomial.zeroLocus.
Ideal of a Set (
Note: This is exactly the definition MvPolynomial.vanishingIdeal.
The main objective of this repository is the formalization of the following result, which connects the algebraic and geometric perspectives over finite fields.
Theorem: Let
- Agudelo-Agudelo, J. C., Agudelo-González, C. A., & García-Quintero, O. E. (2016). On polynomial semantics for propositional logics. Journal of Applied Non-Classical Logics, 26(2), 103–125. https://doi.org/10.1080/11663081.2016.1198529
- Clark, P. L. (2014). The Combinatorial Nullstellensätze Revisited. The Electronic Journal of Combinatorics, 21(4), P4.15. https://doi.org/10.37236/4359