The areas / V34. The tactics of Mathlib
Mathlib.Tactic.Echelon.Bareiss
11 declarations. Mathlib docs · Source
The Bareiss decomposition driver
The entry point of the Bareiss decomposition of a matrix literal over a commutative domain.
The elimination is the model-parameterized bareissDecomp in Mathlib.Tactic.Echelon.Core,
and the certificate construction certifyDecomposition in Mathlib.Tactic.Echelon.Cert.
Main definitions
mkBareissDecomposition: selects a model, runs the elimination algorithm and builds the certificate.BareissResult: the elaborated certificate together with the model and the raw decomposition data.modelFor: selects the computation model for a given ring.
def Mathlib.Tactic.Echelon.BareissResult.ctorIdx E1 #
{u : Lean.Level} →
{m n : ℕ} →
{α : Q(Type u)} →
{rα : Q(CommRing «$α»)} →
{A : Q(Matrix (Fin «$m») (Fin «$n») «$α»)} → Mathlib.Tactic.Echelon.BareissResult rα A → ℕ
theorem Mathlib.Tactic.Echelon.BareissResult.mk.injEq E0 #
∀ {u : Lean.Level} {m n : ℕ} {α : Q(Type u)} {rα : Q(CommRing «$α»)} {A : Q(Matrix (Fin «$m») (Fin «$n») «$α»)}
(cert : Mathlib.Tactic.Echelon.DecompositionCert rα A) (model : Mathlib.Tactic.Echelon.Model α)
(data : Mathlib.Tactic.Echelon.BareissData (Mathlib.Tactic.Echelon.ModelType α))
(cert_1 : Mathlib.Tactic.Echelon.DecompositionCert rα A) (model_1 : Mathlib.Tactic.Echelon.Model α)
(data_1 : Mathlib.Tactic.Echelon.BareissData (Mathlib.Tactic.Echelon.ModelType α)),
({ cert := cert, model := model, data := data } = { cert := cert_1, model := model_1, data := data_1 }) =
(cert = cert_1 ∧ model = model_1 ∧ data = data_1)
theorem Mathlib.Tactic.Echelon.BareissResult.mk.inj E1 #
∀ {u : Lean.Level} {m n : ℕ} {α : Q(Type u)} {rα : Q(CommRing «$α»)} {A : Q(Matrix (Fin «$m») (Fin «$n») «$α»)}
{cert : Mathlib.Tactic.Echelon.DecompositionCert rα A} {model : Mathlib.Tactic.Echelon.Model α}
{data : Mathlib.Tactic.Echelon.BareissData (Mathlib.Tactic.Echelon.ModelType α)}
{cert_1 : Mathlib.Tactic.Echelon.DecompositionCert rα A} {model_1 : Mathlib.Tactic.Echelon.Model α}
{data_1 : Mathlib.Tactic.Echelon.BareissData (Mathlib.Tactic.Echelon.ModelType α)},
{ cert := cert, model := model, data := data } = { cert := cert_1, model := model_1, data := data_1 } →
cert = cert_1 ∧ model = model_1 ∧ data = data_1
def Mathlib.Tactic.Echelon.inferBareissRing E1 #
{u : Lean.Level} → (α : Q(Type u)) → Lean.MetaM (Except Lean.MessageData Q(CommRing «$α»))
The applicability check of the Bareiss method, which requires a commutative domain. It returns the commutative ring instance for the downstream functions to use.
def Mathlib.Tactic.Echelon.modelFor E3 #
{u : Lean.Level} → (α : Q(Type u)) → Q(CommRing «$α») → Lean.MetaM (Mathlib.Tactic.Echelon.Model α)
Select the first registered computation model for the element type α, or the default
rational model.
structure Mathlib.Tactic.Echelon.BareissResult E3 #
{u : Lean.Level} → {m n : ℕ} → {α : Q(Type u)} → Q(CommRing «$α») → Q(Matrix (Fin «$m») (Fin «$n») «$α») → Type
The result of producer evaluation and certificate construction, together with the computation model.
ctor Mathlib.Tactic.Echelon.BareissResult.mk E0 #
{u : Lean.Level} →
{m n : ℕ} →
{α : Q(Type u)} →
{rα : Q(CommRing «$α»)} →
{A : Q(Matrix (Fin «$m») (Fin «$n») «$α»)} →
Mathlib.Tactic.Echelon.DecompositionCert rα A →
Mathlib.Tactic.Echelon.Model α →
Mathlib.Tactic.Echelon.BareissData (Mathlib.Tactic.Echelon.ModelType α) →
Mathlib.Tactic.Echelon.BareissResult rα A
abbrev Mathlib.Tactic.Echelon.BareissResult.cert E1 #
{u : Lean.Level} →
{m n : ℕ} →
{α : Q(Type u)} →
{rα : Q(CommRing «$α»)} →
{A : Q(Matrix (Fin «$m») (Fin «$n») «$α»)} →
Mathlib.Tactic.Echelon.BareissResult rα A → Mathlib.Tactic.Echelon.DecompositionCert rα A
The decomposition certificate with its reusable intermediate certificates.
abbrev Mathlib.Tactic.Echelon.BareissResult.model E1 #
{u : Lean.Level} →
{m n : ℕ} →
{α : Q(Type u)} →
{rα : Q(CommRing «$α»)} →
{A : Q(Matrix (Fin «$m») (Fin «$n») «$α»)} →
Mathlib.Tactic.Echelon.BareissResult rα A → Mathlib.Tactic.Echelon.Model α
The computation model that produced the decomposition.
abbrev Mathlib.Tactic.Echelon.BareissResult.data E1 #
{u : Lean.Level} →
{m n : ℕ} →
{α : Q(Type u)} →
{rα : Q(CommRing «$α»)} →
{A : Q(Matrix (Fin «$m») (Fin «$n») «$α»)} →
Mathlib.Tactic.Echelon.BareissResult rα A →
Mathlib.Tactic.Echelon.BareissData (Mathlib.Tactic.Echelon.ModelType α)
The decomposition data underlying the certificate, on the model's carrier.
def Mathlib.Tactic.Echelon.mkBareissDecomposition E3 #
{u : Lean.Level} →
{m n : ℕ} →
{α : Q(Type u)} →
(rα : Q(CommRing «$α»)) →
(A : Q(Matrix (Fin «$m») (Fin «$n») «$α»)) →
Array (Array Q(«$α»)) → Lean.MetaM (Mathlib.Tactic.Echelon.BareissResult rα A)
Produce the decomposition of the matrix literal A and elaborate its certificates.