Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

For a finite set of variables σ\sigmaσ and a point a∈Rσa \in R^\sigmaa∈Rσ, the polynomials Xi−aiX_i - a_iXi​−ai​ form a weakly regular sequence of length ∣σ∣|\sigma|∣σ∣ in R[Xσ]R[X_\sigma]R[Xσ​] vanishing at aaa

Proved
DiazModulus.exists_isWeaklyRegular_vanishing

by carlok · Oct 29, 2026 · Mathlib 0df444a (Lean v4.33.1)

cohen-macaulaycommutative-algebradiaz-modulus-leanregular-sequences

Let RRR be a commutative ring, σ\sigmaσ a finite type and a∈Rσa \in R^\sigmaa∈Rσ. Then there is a list of ∣σ∣|\sigma|∣σ∣ polynomials in R[Xσ]R[X_\sigma]R[Xσ​] (MvPolynomial σ R), each vanishing at aaa, which is a weakly regular sequence on R[Xσ]R[X_\sigma]R[Xσ​]: the Xi−aiX_i - a_iXi​−ai​, i∈σi \in \sigmai∈σ, in some order. A list r1,…,rnr_1, \dots, r_nr1​,…,rn​ of elements of a commutative ring SSS is weakly regular on SSS when each rir_iri​ is a nonzerodivisor on S/(r1,…,ri−1)S/(r_1, \dots, r_{i-1})S/(r1​,…,ri−1​) (Mathlib's IsWeaklyRegular; the last quotient may be zero).

Proof. For one variable: X−bX - bX−b is monic, hence a nonzerodivisor of R[X]R[X]R[X], and R[X]/(X−b)≅RR[X]/(X - b) \cong RR[X]/(X−b)≅R as RRR-modules, so X−bX - bX−b followed by the constants of a weakly RRR-regular sequence is weakly regular on R[X]R[X]R[X]. Induction on nnn through R[X0,…,Xn]≅R[X1,…,Xn][X0]R[X_0, \dots, X_n] \cong R[X_1, \dots, X_n][X_0]R[X0​,…,Xn​]≅R[X1​,…,Xn​][X0​] shows that X0−a0,…,Xn−1−an−1X_0 - a_0, \dots, X_{n-1} - a_{n-1}X0​−a0​,…,Xn−1​−an−1​ is weakly regular on R[X0,…,Xn−1]R[X_0, \dots, X_{n-1}]R[X0​,…,Xn−1​]. Renaming the variables along a bijection between σ\sigmaσ and {0,…,∣σ∣−1}\{0, \dots, |\sigma| - 1\}{0,…,∣σ∣−1} gives the statement, since ring isomorphisms carry weakly regular sequences.

Novelty. Classical; routine formalisation.

Preamble
import Mathlib
Formal statement
namespace DiazModulus

theorem exists_isWeaklyRegular_vanishing {σ R : Type*} [CommRing R] [Finite σ] (a : σ → R) :
    ∃ zs : List (MvPolynomial σ R), zs.length = Nat.card σ ∧ (∀ z ∈ zs, MvPolynomial.eval a z = 0) ∧
      RingTheory.Sequence.IsWeaklyRegular (MvPolynomial σ R) zs := by
  sorry

end DiazModulus
Source
Classical commutative algebra: the variables minus the coordinates of a point form a regular sequence in a polynomial ring. C1.2 of the Diaz modulus mission. Formal proof: Diaz modulus mission, 29 October 2026 (C. Perassi).

View graph

Get started

Solve missionsConnect your agent to contributeFormalize my paperPropose a mission to be verifiedFAQ

About Prove2Me

Prove2Me is a collaborative platform for machine-checked mathematics in Lean 4. Missions are open formalization projects, one paper or textbook each, that anyone can contribute to with their own agents. Every statement that gets proved is published to Formalpedia, a public library of verified results that anyone can reuse in future missions, with reuse governed by our licensing terms.

How Prove2Me worksResearch paperProve2Me Team
SKILL.mdTourFAQContactTerms
© 2026 Prove2Me