Download data/lean/OAI/NumberTheory/PiExponent/Polynomials/PolynomialPoleBound.lean from introvoyz045/math: direct link, hf CLI and curl.
- Browser
- Download file 3.53 kB
-
https://huggingface.co/datasets/introvoyz045/math/resolve/main/data/lean/OAI/NumberTheory/PiExponent/Polynomials/PolynomialPoleBound.lean
- Command line
-
hf download hf://datasets/introvoyz045/math/data/lean/OAI/NumberTheory/PiExponent/Polynomials/PolynomialPoleBound.lean
-
curl -L -o PolynomialPoleBound.lean https://huggingface.co/datasets/introvoyz045/math/resolve/main/data/lean/OAI/NumberTheory/PiExponent/Polynomials/PolynomialPoleBound.lean
3.53 kB
| import Mathlib | |
| import OAI.NumberTheory.PiExponent.Polynomials.PolynomialFrameDegree | |
| namespace OAI | |
| noncomputable section | |
| open scoped BigOperators | |
| namespace PiExponent.PolynomialPoleBound | |
| variable {K C Ο : Type*} [Field K] [CommRing C] [Algebra C K] | |
| def realValuation (v : AddValuation K (WithTop β€)) : AddValuation K (WithTop β) := | |
| v.map (Int.castAddHom β).withTopMap rfl | |
| ((show Monotone (fun z : β€ => (z : β)) from Int.cast_mono).withTop_map) | |
| theorem realValuation_apply (v : AddValuation K (WithTop β€)) (x : K) : | |
| realValuation v x = WithTop.map (fun z : β€ => (z : β)) (v x) := rfl | |
| theorem valuation_prod (v : AddValuation K (WithTop β)) | |
| (s : Finset Ο) (f : Ο β K) : v (β i β s, f i) = β i β s, v (f i) := by | |
| classical | |
| induction s using Finset.induction_on with | |
| | empty => simp | |
| | insert i s hi ih => simp [hi, ih] | |
| theorem monomial_order_lower (v : AddValuation K (WithTop β)) | |
| (x : Ο β K) (w : Ο β β) (D : β) | |
| (hx : β i, ((-w i * D : β) : WithTop β) β€ v (x i)) | |
| (hc : β c : C, (0 : WithTop β) β€ v (algebraMap C K c)) | |
| (d : Ο ββ β) (c : C) : | |
| ((-Finsupp.weight w d * D : β) : WithTop β) β€ | |
| v (MvPolynomial.aeval x (MvPolynomial.monomial d c)) := by | |
| classical | |
| rw [MvPolynomial.aeval_monomial, v.map_mul, Finsupp.prod, valuation_prod] | |
| have heq : ((-Finsupp.weight w d * D : β) : WithTop β) = | |
| β i β d.support, d i β’ ((-w i * D : β) : WithTop β) := by | |
| simp only [β WithTop.coe_nsmul, β WithTop.coe_sum] | |
| apply congrArg (fun r : β => (r : WithTop β)) | |
| simp only [Finsupp.weight_apply, Finsupp.sum, nsmul_eq_mul, | |
| Finset.sum_mul, neg_mul] | |
| rw [β Finset.sum_neg_distrib] | |
| apply Finset.sum_congr rfl | |
| intro i hi | |
| ring | |
| rw [heq] | |
| calc | |
| (β i β d.support, d i β’ ((-w i * D : β) : WithTop β)) β€ | |
| β i β d.support, v (x i ^ d i) := by | |
| apply Finset.sum_le_sum | |
| intro i hi | |
| rw [v.map_pow] | |
| exact nsmul_le_nsmul_right (hx i) (d i) | |
| _ β€ v (algebraMap C K c) + β i β d.support, v (x i ^ d i) := | |
| le_add_of_nonneg_left (hc c) | |
| theorem polynomial_order_lower (v : AddValuation K (WithTop β)) | |
| (x : Ο β K) (w : Ο β β) (D N : β) (hD : 0 β€ D) | |
| (hx : β i, ((-w i * D : β) : WithTop β) β€ v (x i)) | |
| (hc : β c : C, (0 : WithTop β) β€ v (algebraMap C K c)) | |
| (p : MvPolynomial Ο C) | |
| (hp : β d β p.support, Finsupp.weight w d β€ N) : | |
| ((-N * D : β) : WithTop β) β€ v (MvPolynomial.aeval x p) := by | |
| classical | |
| rw [p.as_sum, map_sum] | |
| apply v.map_le_sum | |
| intro d hd | |
| have hnum : -N * D β€ -Finsupp.weight w d * D := | |
| mul_le_mul_of_nonneg_right (neg_le_neg (hp d hd)) hD | |
| exact (WithTop.coe_le_coe.mpr hnum).trans (monomial_order_lower v x w D hx hc d _) | |
| theorem framePolynomial_order_lower {m : β} [Algebra β K] | |
| (v : AddValuation K (WithTop β)) (x : Fin (m+1) β K) | |
| (w : Fin (m+1) β β) (D N : β) (hD : 0 β€ D) | |
| (hx : β i, ((-w i * D : β) : WithTop β) β€ v (x i)) | |
| (hc : β c : β, (0 : WithTop β) β€ v (algebraMap β K c)) | |
| (p : MvPolynomial (Fin (m+1)) β) (hp : PiExponentApprox.HasWeightedDegreeLE w N p) : | |
| ((-N * D : β) : WithTop β) β€ v (MvPolynomial.aeval x p) := by | |
| apply polynomial_order_lower v x w D N hD hx hc p | |
| intro d hd | |
| simpa [Finsupp.weight_eq_sum, nsmul_eq_mul, PiExponentApprox.monomialWeight] using hp d hd | |
| end PiExponent.PolynomialPoleBound | |
| end | |
| end OAI | |