ToExpr
instances for Mathlib #
instance
Mathlib.instToExprULiftOfToLevel_mathlib
{α✝ : Type s}
[Lean.ToExpr α✝]
[Lean.ToLevel]
[Lean.ToLevel]
:
Lean.ToExpr (ULift α✝)
Equations
- Mathlib.instToExprULiftOfToLevel_mathlib = { toExpr := Mathlib.toExprULift✝ inst✝¹ inst✝, toTypeExpr := (Lean.Expr.const `ULift [Lean.toLevel, Lean.toLevel]).app (Lean.toTypeExpr α✝) }
Hand-written instance since PUnit
is a Sort
rather than a Type
.
Equations
- Mathlib.instToExprPUnitOfToLevel_mathlib = { toExpr := fun (x : PUnit) => Lean.mkConst `PUnit.unit [Lean.toLevel], toTypeExpr := Lean.mkConst `PUnit [Lean.toLevel] }
Equations
- Mathlib.instToExprPos_mathlib = { toExpr := Mathlib.toExprPos✝, toTypeExpr := Lean.Expr.const `String.Pos [] }
Equations
- Mathlib.instToExprSubstring_mathlib = { toExpr := Mathlib.toExprSubstring✝, toTypeExpr := Lean.Expr.const `Substring [] }
Equations
- Mathlib.instToExprSourceInfo_mathlib = { toExpr := Mathlib.toExprSourceInfo✝, toTypeExpr := Lean.Expr.const `Lean.SourceInfo [] }
Equations
- Mathlib.instToExprSyntax_mathlib = { toExpr := Mathlib.toExprSyntax✝, toTypeExpr := Lean.Expr.const `Lean.Syntax [] }
Equations
- Mathlib.instToExprMData_mathlib = { toExpr := Mathlib.toExprMData✝, toTypeExpr := Lean.mkConst `Lean.MData }
Equations
- Mathlib.instToExprMVarId_mathlib = { toExpr := Mathlib.toExprMVarId✝, toTypeExpr := Lean.Expr.const `Lean.MVarId [] }
Equations
- Mathlib.instToExprLevelMVarId_mathlib = { toExpr := Mathlib.toExprLevelMVarId✝, toTypeExpr := Lean.Expr.const `Lean.LevelMVarId [] }
Equations
- Mathlib.instToExprLevel_mathlib = { toExpr := Mathlib.toExprLevel✝, toTypeExpr := Lean.Expr.const `Lean.Level [] }
Equations
- Mathlib.instToExprBinderInfo_mathlib = { toExpr := Mathlib.toExprBinderInfo✝, toTypeExpr := Lean.Expr.const `Lean.BinderInfo [] }
Equations
- Mathlib.instToExprExpr_mathlib = { toExpr := Mathlib.toExprExpr✝, toTypeExpr := Lean.Expr.const `Lean.Expr [] }