cfahlgren1/math / lean /OAI /AlgebraicGeometry /FormalGeometry /Completion /PolynomialTopCoefficient.lean
cfahlgren1's picture
download
raw
862 Bytes
import Mathlib.Algebra.Polynomial.Degree.Lemmas
/-! # Polynomial Top Coefficient -/
namespace OAI.AlgebraicGeometry.FormalGeometry.Completion.PolynomialTopCoefficient.Construction
/-! Equal degree and leading coefficient determine every coefficient at or above that degree. -/
open _root_.Polynomial
theorem polynomial_coeff_eq_of_same_leading_data
(P Q : Polynomial ℚ) (hdeg : P.natDegree = Q.natDegree)
(hlc : P.leadingCoeff = Q.leadingCoeff) (d : ℕ) (hd : P.natDegree ≤ d) :
P.coeff d = Q.coeff d := by
by_cases h : P.natDegree = d
· rw [← h, coeff_natDegree, hdeg, coeff_natDegree]
exact hlc
· have hp : P.natDegree < d := lt_of_le_of_ne hd h
rw [coeff_eq_zero_of_natDegree_lt hp, coeff_eq_zero_of_natDegree_lt (hdeg ▸ hp)]
end OAI.AlgebraicGeometry.FormalGeometry.Completion.PolynomialTopCoefficient.Construction

Xet Storage Details

Size:
862 Bytes
·
Xet hash:
948b664c71186e8be928c7477fa03dab76e336a1bd61853949cd6ba5eadc48d6

Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.