Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Rank–nullity for the Hilbert function of a filtration: hI(T)+dim⁡K(FT∩I)=dim⁡KFTh_I(T) + \dim_K (F_T \cap I) = \dim_K F_ThI​(T)+dimK​(FT​∩I)=dimK​FT​

Proved
DiazModulus.boxHilb_add_finrank_inf

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

commutative-algebradiaz-modulus-leanhilbert-functiontranscendence

Let KKK be a field, SSS a commutative KKK-algebra, BBB a type, and FFF a family of KKK-subspaces FTF_TFT​ of SSS indexed by T∈NBT \in \mathbb{N}^BT∈NB (a filtration, on which only the hypotheses listed are assumed). Assume that every FTF_TFT​ is finite-dimensional. Then for every ideal III of SSS and every T∈NBT \in \mathbb{N}^BT∈NB, hI(T)+dim⁡K(FT∩I)=dim⁡KFTh_I(T) + \dim_K (F_T \cap I) = \dim_K F_ThI​(T)+dimK​(FT​∩I)=dimK​FT​. For an ideal III of SSS, hI(T)h_I(T)hI​(T) is boxHilb F I T, the dimension over KKK of the image of FTF_TFT​ in S/IS/IS/I (DALAG's H(I;T)H(I; T)H(I;T)). The names boxHilb, blockBox, torusBox, torusIdeal, torusList, torusReduced, boxD, torusCoeffPoly, torusPoint and UnmixedHeight are those of the published Definition DiazHilbertBox (module Definitions.Def_DiazHilbertBox).

Proof. Restrict the quotient map q:S→S/Iq : S \to S/Iq:S→S/I, as a KKK-linear map, to FTF_TFT​. Its range is q(FT)q(F_T)q(FT​), of dimension hI(T)h_I(T)hI​(T), and its kernel is FT∩IF_T \cap IFT​∩I; rank–nullity gives the identity.

Novelty. Classical; routine formalisation.

Preamble
import Definitions.Def_DiazHilbertBox
Formal statement
namespace DiazModulus

theorem boxHilb_add_finrank_inf {K S B : Type*} [Field K] [CommRing S] [Algebra K S] (F : (B → ℕ) → Submodule K S)
    (hFfin : ∀ Tₑ, FiniteDimensional K ↥(F Tₑ)) (I : Ideal S) (T : B → ℕ) :
    boxHilb F I T + Module.finrank K ↥(F T ⊓ Submodule.restrictScalars K I) = Module.finrank K ↥(F T) := by
  sorry

end DiazModulus
Source
Linear algebra (rank–nullity). The Hilbert function H(I; T) is that of M. Waldschmidt, Diophantine Approximation on Linear Algebraic Groups, Grundlehren der mathematischen Wissenschaften 326, Springer, 2000, §8.2.2 (p. 235; Chapter 8 is by D. Roy), here for an abstract filtration and at finite level. C1.1 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