The Mathlib Handbook

The volumes of the handbook are not written yet. This site shows the map of Mathlib that they will follow, at Mathlib 4472534b60.

The areas / V34. The tactics of Mathlib

Mathlib.Tactic.NormDet

2 declarations. Mathlib docs · Source

norm_det simproc and eval_det tactic

This module defines the norm_det simproc and the eval_det tactic for normalizing determinants of matrix literals over a commutative ring.

The simproc tries an echelon decomposition of the literal before falling back to Bird's division-free algorithm.

def norm_det E1 #

Lean.Meta.Simp.Simproc

The norm_det simproc normalizes determinants of matrices written using !![...] notation over a commutative ring.

def evalDet E1 #

Lean.ParserDescr

eval_det normalizes determinants of matrices written using !![...] notation over a commutative ring.

Examples:

example : Matrix.det (R := ℤ) !![1, 2; 3, 4] = -2 := by
  eval_det

example {R : Type*} [CommRing R] (a b c d : R) :
    Matrix.det !![a, b; c, d] = a * d - b * c := by
  eval_det
  ring