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

5 declarations. Mathlib docs · Source

def Lean.Parser.Attr.higherOrder E1 #

Lean.ParserDescr

def Mathlib.Tactic.mkComp E1 #

Lean.Expr → Lean.Expr → Lean.MetaM Lean.Expr

mkComp v e checks whether e is a sequence of nested applications f (g (h v)), and if so, returns the expression f ∘ g ∘ h. If e = v it returns id.

opaque Mathlib.Tactic.mkHigherOrderType E1 #

Lean.Expr → Lean.MetaM Lean.Expr

From a lemma of the shape ∀ x, f (g x) = h x derive an auxiliary lemma of the form f ∘ g = h for reasoning about higher-order functions.

def Mathlib.Tactic.higherOrderGetParam E1 #

Lean.Name → Lean.Syntax → Lean.AttrM Lean.Name

A user attribute that applies to lemmas of the shape ∀ x, f (g x) = h x. It derives an auxiliary lemma of the form f ∘ g = h for reasoning about higher-order functions.

opaque Mathlib.Tactic.higherOrderAttr E1 #

Lean.ParametricAttribute Lean.Name

The higher_order attribute. From a lemma of the shape ∀ x, f (g x) = h x derive an auxiliary lemma of the form f ∘ g = h for reasoning about higher-order functions.

Syntax: [higher_order] or [higher_order name] where the given name is used for the generated theorem.