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.Inclusion.Core.Inclusion

8 declarations. Mathlib docs · Source

def Inclusion.mkExprInclusionBody E1 #

Lean.Expr → Inclusion.InclusionM Inclusion.ExprInclusionBody

Construct an ExprInclusionBody for e.

def Inclusion.ExprInclusionBody.inferIType E1 #

Inclusion.ExprInclusionBody → Lean.Expr → Lean.MetaM Inclusion.IType

Check that body.proofBody is a proof of e ∈ body.inclusionBody and infer its IType.

def Inclusion.runHypothesisExts E1 #

Lean.Expr → Inclusion.HypothesisM Unit

Run hypothesis extensions on hypothesis h.

def Inclusion.collectHyps E1 #

Inclusion.HypothesisM Unit

Run hypothesis extensions on all declarations in the local context.

def Inclusion.mkUniversalHypBody E1 #

Inclusion.IExpr → Lean.MetaM Inclusion.ExprInclusionBody

Construct the universal inclusion body for iExpr.

def Inclusion.combineHypBodies E1 #

Inclusion.IExpr → Array Inclusion.ExprInclusionBody → Lean.MetaM Inclusion.ExprInclusionBody

Combine the candidate hypothesis bodies for iExpr using Refine, or use its Univ instance when there are no candidates.

def Inclusion.mkExprInclusion E1 #

Inclusion.IExpr → Inclusion.ExprInclusionBody → Inclusion.HypothesisM Inclusion.ExprInclusion

Given an output : IExpr and a body : ExprInclusionBody, construct an ExprInclusion for output.expr by collecting inclusion hypotheses from the local context and closing the body.

def Inclusion.toExprInclusion E1 #

Lean.Expr → Inclusion.InclusionM Inclusion.ExprInclusion

Construct an ExprInclusion for e.