math / data /lean /OAI /NumberTheory /PiExponent /LocalAlgebra /CompleteIntersectionHilbert.lean
introvoyz045's picture
Migrated from GitHub
4a56cd6 verified
Raw History Blame Contribute Delete
5.12 kB
import OAI.NumberTheory.PiExponent.Analysis.RegularSequenceSeries
namespace OAI
namespace PiExponentJets.W64
open scoped BigOperators
attribute [local instance] MvPolynomial.gradedAlgebra
noncomputable def degreePolynomial (D : β„• β†’ β„•) (m : β„•) : Polynomial β„€ :=
∏ i ∈ Finset.range m, βˆ‘ j ∈ Finset.range (D i), (Polynomial.X : Polynomial β„€) ^ j
theorem degreePolynomial_eval_one (D : β„• β†’ β„•) (m : β„•) :
(degreePolynomial D m).eval 1 = ∏ i ∈ Finset.range m, (D i : β„€) := by
simp [degreePolynomial, Polynomial.eval_prod, Polynomial.eval_finsetSum]
variable {k Οƒ : Type*} [Field k] [Fintype Οƒ]
theorem regular_sequence_series_polynomial
(hσ : 0 < Fintype.card σ)
(rs : List (MvPolynomial Οƒ k)) (degrees : Fin rs.length β†’ β„•)
(hhom : βˆ€ i : Fin rs.length, rs[i].IsHomogeneous (degrees i))
(hreg : RingTheory.Sequence.IsRegular (MvPolynomial Οƒ k) rs)
(hlen : rs.length = Fintype.card Οƒ) :
sectionHilbertSeries (Ideal.ofList rs) =
((degreePolynomial (degreeAt degrees) rs.length) : PowerSeries β„€) := by
rw [regular_sequence_series_geometric hσ rs degrees hhom hreg hlen]
change _ = (Polynomial.coeToPowerSeries.ringHom : Polynomial β„€ β†’+* PowerSeries β„€)
(∏ i ∈ Finset.range rs.length, βˆ‘ j ∈ Finset.range (degreeAt degrees i),
(Polynomial.X : Polynomial β„€) ^ j)
rw [map_prod]
apply Finset.prod_congr rfl
intro i hi
rw [map_sum]
apply Finset.sum_congr rfl
intro j hj
rw [map_pow]
simp only [Polynomial.coeToPowerSeries.ringHom_apply, Polynomial.coe_X]
theorem regular_sequence_section_dimension_coeff
(hσ : 0 < Fintype.card σ)
(rs : List (MvPolynomial Οƒ k)) (degrees : Fin rs.length β†’ β„•)
(hhom : βˆ€ i : Fin rs.length, rs[i].IsHomogeneous (degrees i))
(hreg : RingTheory.Sequence.IsRegular (MvPolynomial Οƒ k) rs)
(hlen : rs.length = Fintype.card Οƒ) (n : β„•) :
(Module.finrank k (quotientSection (Ideal.ofList rs) n) : β„€) =
(degreePolynomial (degreeAt degrees) rs.length).coeff n := by
have h := congrArg (PowerSeries.coeff n)
(regular_sequence_series_polynomial hσ rs degrees hhom hreg hlen)
simpa only [coeff_sectionHilbertSeries, Polynomial.coeff_coe] using h
theorem regular_sequence_section_dimension_eq_zero
(hσ : 0 < Fintype.card σ)
(rs : List (MvPolynomial Οƒ k)) (degrees : Fin rs.length β†’ β„•)
(hhom : βˆ€ i : Fin rs.length, rs[i].IsHomogeneous (degrees i))
(hreg : RingTheory.Sequence.IsRegular (MvPolynomial Οƒ k) rs)
(hlen : rs.length = Fintype.card Οƒ) (n : β„•)
(hn : n βˆ‰ (degreePolynomial (degreeAt degrees) rs.length).support) :
Module.finrank k (quotientSection (Ideal.ofList rs) n) = 0 := by
have h := regular_sequence_section_dimension_coeff hσ rs degrees hhom hreg hlen n
have hz : (degreePolynomial (degreeAt degrees) rs.length).coeff n = 0 := by
simpa only [Polynomial.mem_support_iff, not_not] using hn
rw [hz] at h
exact_mod_cast h
theorem regular_sequence_section_dimension_sum
(hσ : 0 < Fintype.card σ)
(rs : List (MvPolynomial Οƒ k)) (degrees : Fin rs.length β†’ β„•)
(hhom : βˆ€ i : Fin rs.length, rs[i].IsHomogeneous (degrees i))
(hreg : RingTheory.Sequence.IsRegular (MvPolynomial Οƒ k) rs)
(hlen : rs.length = Fintype.card Οƒ) :
(βˆ‘ n ∈ (degreePolynomial (degreeAt degrees) rs.length).support,
Module.finrank k (quotientSection (Ideal.ofList rs) n)) =
∏ i ∈ Finset.range rs.length, degreeAt degrees i := by
have h :
(βˆ‘ n ∈ (degreePolynomial (degreeAt degrees) rs.length).support,
(Module.finrank k (quotientSection (Ideal.ofList rs) n) : β„€)) =
∏ i ∈ Finset.range rs.length, (degreeAt degrees i : β„€) := by
calc
_ = βˆ‘ n ∈ (degreePolynomial (degreeAt degrees) rs.length).support,
(degreePolynomial (degreeAt degrees) rs.length).coeff n := by
apply Finset.sum_congr rfl
intro n _
exact regular_sequence_section_dimension_coeff hσ rs degrees hhom hreg hlen n
_ = (degreePolynomial (degreeAt degrees) rs.length).eval 1 := by
simp [Polynomial.eval_eq_sum, Polynomial.sum]
_ = _ := degreePolynomial_eval_one _ _
exact_mod_cast h
theorem regular_sequence_section_dimension_sum_le
(hσ : 0 < Fintype.card σ)
(rs : List (MvPolynomial Οƒ k)) (degrees : Fin rs.length β†’ β„•)
(hhom : βˆ€ i : Fin rs.length, rs[i].IsHomogeneous (degrees i))
(hreg : RingTheory.Sequence.IsRegular (MvPolynomial Οƒ k) rs)
(hlen : rs.length = Fintype.card Οƒ) (D : β„•)
(hD : βˆ€ i, degrees i ≀ D) :
(βˆ‘ n ∈ (degreePolynomial (degreeAt degrees) rs.length).support,
Module.finrank k (quotientSection (Ideal.ofList rs) n)) ≀ D ^ rs.length := by
rw [regular_sequence_section_dimension_sum hσ rs degrees hhom hreg hlen]
calc
_ ≀ ∏ _i ∈ Finset.range rs.length, D := by
apply Finset.prod_le_prod
intro i hi
simpa only [degreeAt, dite_eq_left (Finset.mem_range.mp hi)] using
hD ⟨i, Finset.mem_range.mp hi⟩
_ = _ := by simp
end PiExponentJets.W64
end OAI