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 / V01. The language of Mathlib

Mathlib.Util.TermReduce

8 declarations. Mathlib docs · Source

def Mathlib.Util.TermReduce.betaStx E1 #

Lean.ParserDescr

beta% t elaborates t and then if the result is in the form f x1 ... xn where f is a (nested) lambda expression, it will substitute all of its arguments by beta reduction. This does not recursively do beta reduction, nor will it do beta reduction of subexpressions.

In particular, t is elaborated, its metavariables are instantiated, and then Lean.Expr.headBeta is applied.

def Mathlib.Util.TermReduce.elabBeta E1 #

Lean.Elab.Term.TermElab

beta% t elaborates t and then if the result is in the form f x1 ... xn where f is a (nested) lambda expression, it will substitute all of its arguments by beta reduction. This does not recursively do beta reduction, nor will it do beta reduction of subexpressions.

In particular, t is elaborated, its metavariables are instantiated, and then Lean.Expr.headBeta is applied.

def Mathlib.Util.TermReduce.deltaStx E1 #

Lean.ParserDescr

delta% t elaborates to a head-delta reduced version of t.

def Mathlib.Util.TermReduce.elabDelta E1 #

Lean.Elab.Term.TermElab

delta% t elaborates to a head-delta reduced version of t.

def Mathlib.Util.TermReduce.zetaStx E1 #

Lean.ParserDescr

zeta% t elaborates to a zeta and zeta-delta reduced version of t.

def Mathlib.Util.TermReduce.elabZeta E1 #

Lean.Elab.Term.TermElab

zeta% t elaborates to a zeta and zeta-delta reduced version of t.

def Mathlib.Util.TermReduce.reduceProjStx E1 #

Lean.ParserDescr

reduceProj% t apply Expr.reduceProjStruct? to all subexpressions of t.

def Mathlib.Util.TermReduce.elabReduceProj E1 #

Lean.Elab.Term.TermElab

reduceProj% t apply Expr.reduceProjStruct? to all subexpressions of t.