Download data/lean/OAI/NumberTheory/PiExponent/Polynomials/ColonHilbertPolynomial.lean from introvoyz045/math: direct link, hf CLI and curl.
- Browser
- Download file 4.13 kB
-
https://huggingface.co/datasets/introvoyz045/math/resolve/main/data/lean/OAI/NumberTheory/PiExponent/Polynomials/ColonHilbertPolynomial.lean
- Command line
-
hf download hf://datasets/introvoyz045/math/data/lean/OAI/NumberTheory/PiExponent/Polynomials/ColonHilbertPolynomial.lean
-
curl -L -o ColonHilbertPolynomial.lean https://huggingface.co/datasets/introvoyz045/math/resolve/main/data/lean/OAI/NumberTheory/PiExponent/Polynomials/ColonHilbertPolynomial.lean
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 | |