math / data /lean /OAI /NumberTheory /PiExponent /Polynomials /ColonHilbertPolynomial.lean
introvoyz045's picture
Migrated from GitHub
4a56cd6 verified
Raw History Blame Contribute Delete
4.13 kB
import OAI.NumberTheory.PiExponent.LocalAlgebra.ColonHilbertStep
import OAI.NumberTheory.PiExponent.LocalAlgebra.PositiveDimensionalHilbert
namespace OAI
namespace PiExponentJets.W64
attribute [local instance] MvPolynomial.gradedAlgebra
variable {k Οƒ : Type*} [Field k] [Finite Οƒ]
noncomputable def shiftHilbertPolynomial (p : Polynomial β„š) (d : β„•) : Polynomial β„š :=
p.comp (Polynomial.X - Polynomial.C (d : β„š))
@[simp] theorem shiftHilbertPolynomial_eval (p : Polynomial β„š) (d n : β„•)
(hdn : d ≀ n) :
(shiftHilbertPolynomial p d).eval (n : β„š) = p.eval ((n-d : β„•) : β„š) := by
simp [shiftHilbertPolynomial, Polynomial.eval_comp, Nat.cast_sub hdn]
@[simp] theorem shiftHilbertPolynomial_natDegree (p : Polynomial β„š) (d : β„•) :
(shiftHilbertPolynomial p d).natDegree = p.natDegree := by
rw [shiftHilbertPolynomial, Polynomial.natDegree_comp,
Polynomial.natDegree_X_sub_C, mul_one]
@[simp] theorem shiftHilbertPolynomial_leadingCoeff (p : Polynomial β„š) (d : β„•) :
(shiftHilbertPolynomial p d).leadingCoeff = p.leadingCoeff := by
rw [shiftHilbertPolynomial, Polynomial.leadingCoeff_comp]
Β· rw [Polynomial.leadingCoeff_X_sub_C, one_pow, mul_one]
Β· rw [Polynomial.natDegree_X_sub_C]
exact one_ne_zero
theorem shiftHilbertPolynomial_top_coeff (p : Polynomial β„š) (d t : β„•)
(hp : p.natDegree ≀ t) :
(shiftHilbertPolynomial p d).coeff t = p.coeff t := by
by_cases he : p.natDegree = t
Β· rw [← he]
calc
(shiftHilbertPolynomial p d).coeff p.natDegree =
(shiftHilbertPolynomial p d).coeff (shiftHilbertPolynomial p d).natDegree := by
rw [shiftHilbertPolynomial_natDegree]
_ = (shiftHilbertPolynomial p d).leadingCoeff := Polynomial.coeff_natDegree
_ = p.leadingCoeff := shiftHilbertPolynomial_leadingCoeff p d
_ = p.coeff p.natDegree := Polynomial.coeff_natDegree.symm
Β· have ht : p.natDegree < t := lt_of_le_of_ne hp he
rw [Polynomial.coeff_eq_zero_of_natDegree_lt
(by simpa using ht : (shiftHilbertPolynomial p d).natDegree < t),
Polynomial.coeff_eq_zero_of_natDegree_lt ht]
theorem hilbertMultiplicity_shift (p : Polynomial β„š) (d r : β„•)
(hp : p.natDegree ≀ r-1) :
hilbertMultiplicity (shiftHilbertPolynomial p d) r = hilbertMultiplicity p r := by
unfold hilbertMultiplicity
rw [shiftHilbertPolynomial_top_coeff p d (r-1) hp]
theorem hilbertMultiplicity_add (p q : Polynomial β„š) (r : β„•) :
hilbertMultiplicity (p+q) r = hilbertMultiplicity p r + hilbertMultiplicity q r := by
simp [hilbertMultiplicity, add_mul]
theorem colon_hilbert_polynomial_eventually
(I : Ideal (MvPolynomial Οƒ k))
(hI : I.IsHomogeneous (MvPolynomial.homogeneousSubmodule Οƒ k))
{d : β„•} (f : MvPolynomial Οƒ k) (hf : f.IsHomogeneous d)
(pJ pP : Polynomial β„š) (NJ NP : β„•)
(hJ : βˆ€ n : β„•, NJ < n β†’
(Module.finrank k (quotientSection (Ideal.span {f} βŠ” I) n) : β„š) = pJ.eval (n : β„š))
(hP : βˆ€ n : β„•, NP < n β†’
(Module.finrank k (quotientSection (I.colon {f}) n) : β„š) = pP.eval (n : β„š)) :
βˆ€ n : β„•, NJ + NP + d < n β†’
(Module.finrank k (quotientSection I n) : β„š) =
(pJ + shiftHilbertPolynomial pP d).eval (n : β„š) := by
intro n hn
have hdn : d ≀ n := by omega
have hnJ : NJ < n := by omega
have hnP : NP < n-d := by omega
have h := colon_hilbert_step I hI f hf (n-d)
rw [Nat.sub_add_cancel hdn] at h
have hc : (Module.finrank k (quotientSection I n) : β„š) =
(Module.finrank k (quotientSection (Ideal.span {f} βŠ” I) n) : β„š) +
(Module.finrank k (quotientSection (I.colon {f}) (n-d)) : β„š) := by
exact_mod_cast h.symm
rw [hc, hJ n hnJ, hP (n-d) hnP,
Polynomial.eval_add, shiftHilbertPolynomial_eval pP d n hdn]
theorem colon_hilbert_polynomial_multiplicity
(pJ pP : Polynomial β„š) (d r : β„•) (hP : pP.natDegree ≀ r-1) :
hilbertMultiplicity (pJ + shiftHilbertPolynomial pP d) r =
hilbertMultiplicity pJ r + hilbertMultiplicity pP r := by
rw [hilbertMultiplicity_add, hilbertMultiplicity_shift pP d r hP]
end PiExponentJets.W64
end OAI