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.Check

3 declarations. Mathlib docs · Source

def Mathlib.Tactic.«command#check'_» E1 #

Lean.ParserDescr

The #check' command is like #check, but only prints explicit arguments in the signature (i.e., omitting implicit and typeclass arguments).

def Mathlib.Tactic.«tactic#check__» E1 #

Lean.ParserDescr

#check t elaborates the term t and then pretty prints it with its type as e : ty.

If t is an identifier, then it pretty prints a type declaration form for the global constant t instead. Use #check (t) to pretty print it as an elaborated expression.

Like the #check command, the #check tactic allows stuck typeclass instance problems. These become metavariables in the output.

To display only explicit arguments in the type signature, see #check'.

def Mathlib.Tactic.«tactic#check'__» E1 #

Lean.ParserDescr

The #check' t tactic elaborates the term t and then pretty prints it with its type as e : ty. In contrast to #check t, we only pretty-print explicit arguments, and omit implicit or type class arguments. Currently this only works when t is the name of a declaration.

If t is an identifier, then it pretty prints a type declaration form for the global constant t instead. Use #check' (t) to pretty print it as an elaborated expression.

Like other #check commands, the #check' tactic allows stuck typeclass instance problems. These become metavariables in the output.