The areas / V34. The tactics of Mathlib
Mathlib.Tactic.Inclusion.Core.Expr
13 declarations. Mathlib docs · Source
def Inclusion.toSetMem? E1 #
Lean.Expr → Option (Lean.Expr × Lean.Expr × Lean.Expr)
If e is an Expr of the form x ∈ s using a ToSet instance, return
some (x, s, toSetInst).
def Inclusion.mkToSetMem E1 #
Lean.Expr → Lean.Expr → Lean.Expr → Lean.Expr → Lean.Expr → Lean.MetaM Lean.Expr
Given expressions x : xType, s : setType, and toSetInst : ToSet setType xType, create
the expression x ∈ s.
def Inclusion.IExpr.mkMem E1 #
Inclusion.IExpr → Lean.Expr → Lean.MetaM Lean.Expr
Given iExpr : IExpr and set : iExpr.iType.setType, create the expression
iExpr.expr ∈ set.
def Inclusion.IVar.mkCoverMap E1 #
Inclusion.IVar → Inclusion.IType → Lean.Expr → Lean.Expr → Lean.Expr → Lean.Expr → Lean.MetaM Lean.Expr
Given
· source : iVar.type.setType,
· outputType : IType,
· cover : Cover iVar.type.setType iVar.type.elemType,
· coarsen : Coarsen outputType.setType outputType.elemType, and
· inclusion : iVar.type.setType → outputType.setType,
create the expression cover.coverMap source inclusion : outputType.setType.
def Inclusion.IVar.mkCoverMapProof E1 #
Inclusion.IVar →
Inclusion.IExpr → Inclusion.ExprInclusionBody → Lean.Expr → Lean.Expr → Lean.Expr → Lean.Expr → Lean.MetaM Lean.Expr
Given
· a source inclusion body for iVar,
· output : IExpr,
· cover : Cover iVar.type.setType iVar.type.elemType,
· coarsen : Coarsen output.iType.setType output.iType.elemType,
· inclusion : iVar.type.setType → output.iType.setType, and
· proof : ∀ s, iVar.expr ∈ s → output.expr ∈ inclusion s,
create a proof of output.expr ∈ cover.coverMap source.inclusionBody inclusion.
def Inclusion.IType.synthCoarsen E1 #
Inclusion.IType → Lean.MetaM Lean.Expr
Given iType : IType, synthesize an expression of type
Coarsen iType.setType iType.elemType.
def Inclusion.IType.mkRefine E1 #
Inclusion.IType → Lean.Expr → Lean.Expr → Lean.Expr → Lean.MetaM Lean.Expr
Given iType : IType, refiner : Refine iType.setType iType.elemType, and expressions
left right : iType.setType, create the expression refiner.refine left right.
def Inclusion.IType.synthRefine E1 #
Inclusion.IType → Lean.MetaM Lean.Expr
Given iType : IType, synthesize an expression of type
Refine iType.setType iType.elemType.
def Inclusion.IType.mkUniv E1 #
Inclusion.IType → Lean.Expr → Lean.MetaM Lean.Expr
Given iType : IType and univ : Univ iType.setType iType.elemType, create the expression
univ.univ : iType.setType.
def Inclusion.IExpr.mkMemUniv E1 #
Inclusion.IExpr → Lean.Expr → Lean.MetaM Lean.Expr
Given iExpr : IExpr and univ : Univ iExpr.iType.setType iExpr.iType.elemType, create a
proof of iExpr.expr ∈ univ.univ.
def Inclusion.IType.synthUniv E1 #
Inclusion.IType → Lean.MetaM Lean.Expr
Given iType : IType, synthesize an expression of type Univ iType.setType iType.elemType.
def Inclusion.mkIntervalBoolRefl E1 #
Lean.Expr → Lean.Expr
Given an expression b : IntervalBool, create the expression proving b = b.
def Inclusion.ExprInclusion.mkGoalProof E1 #
Inclusion.ExprInclusion → Lean.Expr → Lean.Expr → Lean.Expr
Given an ExprInclusion inc for goal, and a proof
inclusionProof : inc.inclusion = IntervalBool.true create a proof of goal.