refactor: move mkArrow to CoreM
This commit is contained in:
parent
d61b8fc68d
commit
52f3a3ff2c
2 changed files with 4 additions and 4 deletions
|
|
@ -263,4 +263,8 @@ def Exception.isMaxHeartbeat (ex : Exception) : Bool :=
|
|||
| Exception.error _ (MessageData.ofFormat (Std.Format.text msg)) => "(deterministic) timeout".isPrefixOf msg
|
||||
| _ => false
|
||||
|
||||
/-- Creates the expression `d → b` -/
|
||||
def mkArrow (d b : Expr) : CoreM Expr :=
|
||||
return Lean.mkForall (← mkFreshUserName `x) BinderInfo.default d b
|
||||
|
||||
end Lean
|
||||
|
|
|
|||
|
|
@ -774,10 +774,6 @@ def mkLambdaFVars (xs : Array Expr) (e : Expr) (usedOnly : Bool := false) (usedL
|
|||
def mkLetFVars (xs : Array Expr) (e : Expr) (usedLetOnly := true) (binderInfoForMVars := BinderInfo.implicit) : MetaM Expr :=
|
||||
mkLambdaFVars xs e (usedLetOnly := usedLetOnly) (binderInfoForMVars := binderInfoForMVars)
|
||||
|
||||
/-- Creates the expression `d → b` -/
|
||||
def mkArrow (d b : Expr) : MetaM Expr :=
|
||||
return Lean.mkForall (← mkFreshUserName `x) BinderInfo.default d b
|
||||
|
||||
/-- `fun _ : Unit => a` -/
|
||||
def mkFunUnit (a : Expr) : MetaM Expr :=
|
||||
return Lean.mkLambda (← mkFreshUserName `x) BinderInfo.default (mkConst ``Unit) a
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue