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

2 declarations. Mathlib docs · Source

The fconstructor and econstructor tactics

The fconstructor and econstructor tactics are variants of the constructor tactic in Lean core, except that

  • fconstructor does not reorder goals
  • econstructor adds only non-dependent premises as new goals.

def tacticFconstructor E1 #

Lean.ParserDescr

fconstructor, on a goal which is an inductive type, solves it by applying the first matching constructor, creating new goals for all arguments to the constructor in the same order. This is like constructor except the goals are not reordered.

def tacticEconstructor E1 #

Lean.ParserDescr

econstructor, on a goal which is an inductive type, solves it by applying the first matching constructor, creating new goals for non-dependent arguments to the constructor in the same order. This is like constructor except only non-dependent arguments are shown as new goals.