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.Simproc.VecPerm

1 declarations. Mathlib docs · Source

The vecPerm simproc

The vecPerm simproc computes the new entries of a vector after applying a permutation to them.

def Mathlib.Tactic.FinVec.vecPerm E1 #

Lean.Meta.Simp.Simproc

The vecPerm simproc computes the new entries of a vector after applying a permutation to them. This can be used to simplify expressions as follows:

example {a b c : Nat} : ![a, b, c] ∘ Equiv.swap 0 1 = ![b, a, c] := by
  simp [vecPerm, Equiv.swap_apply_def]

Note that for this simproc to work, dsimp needs to be able to simplify the individual applications of the permutation.