The areas / V34. The tactics of Mathlib
Mathlib.Tactic.Hessenberg.CoeffList
17 declarations. Mathlib docs · Source
Coefficient lists of characteristic polynomials from Hessenberg certificates
This file contains the computation of the coefficient list of the characteristic polynomial of a
matrix literal, by the recurrence coeffHessCharpoly on the Hessenberg matrix of a
Hessenberg.Similarity certificate of the matrix, with a proof that Matrix.charpoly is the
polynomial with these coefficients.
Main definitions
charpolyCoeffList: computes the coefficient list of the characteristic polynomial of a matrix literal with a proof thatMatrix.charpolyis the polynomial with these coefficients.CoeffListResult: the coefficient list literal of a matrix literal, with its proof.inferCharpolyRing: checks that the characteristic polynomial computation can be performed onS.
def Mathlib.Tactic.Hessenberg.CharpolyRing.ctorIdx E1 #
{u : Lean.Level} → {S : Q(Type u)} → Mathlib.Tactic.Hessenberg.CharpolyRing S → ℕ
theorem Mathlib.Tactic.Hessenberg.CoeffListResult.mk.inj E1 #
∀ {u : Lean.Level} {S : Q(Type u)} {cS : Q(CommRing «$S»)} {n : ℕ} {A : Q(Matrix (Fin «$n») (Fin «$n») «$S»)}
{cs : Q(List «$S»)} {charpoly_eq : Q(«$A».charpoly = Polynomial.ofCoeffList «$cs»)} {cs_1 : Q(List «$S»)}
{charpoly_eq_1 : Q(«$A».charpoly = Polynomial.ofCoeffList «$cs_1»)},
{ cs := cs, charpoly_eq := charpoly_eq } = { cs := cs_1, charpoly_eq := charpoly_eq_1 } →
cs = cs_1 ∧ charpoly_eq = charpoly_eq_1
theorem Mathlib.Tactic.Hessenberg.CharpolyRing.mk.inj E1 #
∀ {u : Lean.Level} {S : Q(Type u)} {cS : Q(CommRing «$S»)} {aS : Q(Algebra «$S» ℚ)} {fS : Q(FaithfulSMul «$S» ℚ)}
{cS_1 : Q(CommRing «$S»)} {aS_1 : Q(Algebra «$S» ℚ)} {fS_1 : Q(FaithfulSMul «$S» ℚ)},
{ cS := cS, aS := aS, fS := fS } = { cS := cS_1, aS := aS_1, fS := fS_1 } → cS = cS_1 ∧ aS = aS_1 ∧ fS = fS_1
theorem Mathlib.Tactic.Hessenberg.CoeffListResult.mk.injEq E0 #
∀ {u : Lean.Level} {S : Q(Type u)} {cS : Q(CommRing «$S»)} {n : ℕ} {A : Q(Matrix (Fin «$n») (Fin «$n») «$S»)}
(cs : Q(List «$S»)) (charpoly_eq : Q(«$A».charpoly = Polynomial.ofCoeffList «$cs»)) (cs_1 : Q(List «$S»))
(charpoly_eq_1 : Q(«$A».charpoly = Polynomial.ofCoeffList «$cs_1»)),
({ cs := cs, charpoly_eq := charpoly_eq } = { cs := cs_1, charpoly_eq := charpoly_eq_1 }) =
(cs = cs_1 ∧ charpoly_eq = charpoly_eq_1)
def Mathlib.Tactic.Hessenberg.CoeffListResult.ctorIdx E1 #
{u : Lean.Level} →
{S : Q(Type u)} →
{cS : Q(CommRing «$S»)} →
{n : ℕ} → {A : Q(Matrix (Fin «$n») (Fin «$n») «$S»)} → Mathlib.Tactic.Hessenberg.CoeffListResult cS A → ℕ
theorem Mathlib.Tactic.Hessenberg.CharpolyRing.mk.injEq E0 #
∀ {u : Lean.Level} {S : Q(Type u)} (cS : Q(CommRing «$S»)) (aS : Q(Algebra «$S» ℚ)) (fS : Q(FaithfulSMul «$S» ℚ))
(cS_1 : Q(CommRing «$S»)) (aS_1 : Q(Algebra «$S» ℚ)) (fS_1 : Q(FaithfulSMul «$S» ℚ)),
({ cS := cS, aS := aS, fS := fS } = { cS := cS_1, aS := aS_1, fS := fS_1 }) = (cS = cS_1 ∧ aS = aS_1 ∧ fS = fS_1)
structure Mathlib.Tactic.Hessenberg.CharpolyRing E1 #
{u : Lean.Level} → Q(Type u) → Type
The instances of a commutative ring S required to compute the characteristic polynomial.
ctor Mathlib.Tactic.Hessenberg.CharpolyRing.mk E0 #
{u : Lean.Level} →
{S : Q(Type u)} →
(cS : Q(CommRing «$S»)) →
(aS : Q(Algebra «$S» ℚ)) → Q(FaithfulSMul «$S» ℚ) → Mathlib.Tactic.Hessenberg.CharpolyRing S
abbrev Mathlib.Tactic.Hessenberg.CharpolyRing.cS E1 #
{u : Lean.Level} → {S : Q(Type u)} → Mathlib.Tactic.Hessenberg.CharpolyRing S → Q(CommRing «$S»)
The commutative ring instance on S.
abbrev Mathlib.Tactic.Hessenberg.CharpolyRing.aS E1 #
{u : Lean.Level} → {S : Q(Type u)} → (self : Mathlib.Tactic.Hessenberg.CharpolyRing S) → Q(Algebra «$S» ℚ)
ℚ is an S-algebra.
abbrev Mathlib.Tactic.Hessenberg.CharpolyRing.fS E1 #
{u : Lean.Level} → {S : Q(Type u)} → (self : Mathlib.Tactic.Hessenberg.CharpolyRing S) → Q(FaithfulSMul «$S» ℚ)
The algebra map S → ℚ is injective.
def Mathlib.Tactic.Hessenberg.inferCharpolyRing E3 #
{u : Lean.Level} →
(S : Q(Type u)) → Q(CommRing «$S») → Lean.MetaM (Except Lean.MessageData (Mathlib.Tactic.Hessenberg.CharpolyRing S))
Check that the commutative ring S has the instances available for the characteristic
polynomial to be computed.
structure Mathlib.Tactic.Hessenberg.CoeffListResult E3 #
{u : Lean.Level} → {S : Q(Type u)} → Q(CommRing «$S») → {n : ℕ} → Q(Matrix (Fin «$n») (Fin «$n») «$S») → Type
The coefficient list of the characteristic polynomial of the matrix literal A and a proof that
it's equal to Matrix.charpoly.
ctor Mathlib.Tactic.Hessenberg.CoeffListResult.mk E0 #
{u : Lean.Level} →
{S : Q(Type u)} →
{cS : Q(CommRing «$S»)} →
{n : ℕ} →
{A : Q(Matrix (Fin «$n») (Fin «$n») «$S»)} →
(cs : Q(List «$S»)) →
Q(«$A».charpoly = Polynomial.ofCoeffList «$cs») → Mathlib.Tactic.Hessenberg.CoeffListResult cS A
abbrev Mathlib.Tactic.Hessenberg.CoeffListResult.cs E1 #
{u : Lean.Level} →
{S : Q(Type u)} →
{cS : Q(CommRing «$S»)} →
{n : ℕ} →
{A : Q(Matrix (Fin «$n») (Fin «$n») «$S»)} → Mathlib.Tactic.Hessenberg.CoeffListResult cS A → Q(List «$S»)
The list literal of the coefficients, constant term first.
abbrev Mathlib.Tactic.Hessenberg.CoeffListResult.charpoly_eq E0 #
{u : Lean.Level} →
{S : Q(Type u)} →
{cS : Q(CommRing «$S»)} →
{n : ℕ} →
{A : Q(Matrix (Fin «$n») (Fin «$n») «$S»)} →
(self : Mathlib.Tactic.Hessenberg.CoeffListResult cS A) → Q(«$A».charpoly = Polynomial.ofCoeffList unknown_1)
The proof that cs is the coefficient list of the characteristic polynomial.
def Mathlib.Tactic.Hessenberg.charpolyCoeffList E3 #
{u : Lean.Level} →
(S : Q(Type u)) →
(r : Mathlib.Tactic.Hessenberg.CharpolyRing S) →
(n : ℕ) →
(A : Q(Matrix (Fin «$n») (Fin «$n») «$S»)) →
Array (Array Lean.Expr) → Lean.MetaM (Mathlib.Tactic.Hessenberg.CoeffListResult r.cS A)
Compute the coefficient list of the characteristic polynomial of the matrix literal A with
rows of entries entries with a proof that Matrix.charpoly A is the polynomial with these
coefficients.