chore: add isDefEq abbreviation for isExprDefEq
Most tactic users will never use `isLevelDefEq`.
This commit is contained in:
parent
7306343589
commit
ea2d971bd3
2 changed files with 4 additions and 2 deletions
|
|
@ -999,5 +999,7 @@ partial def isExprDefEqAuxImpl : Expr → Expr → MetaM Bool
|
|||
@[init] def setIsExprDefEqAuxRef : IO Unit :=
|
||||
isExprDefEqAuxRef.set isExprDefEqAuxImpl
|
||||
|
||||
abbrev isDefEq := @isExprDefEq
|
||||
|
||||
end Meta
|
||||
end Lean
|
||||
|
|
|
|||
|
|
@ -177,8 +177,8 @@ do print "----- tst6 -----";
|
|||
m2 ← mkFreshExprMVar type;
|
||||
let t := mkApp io x;
|
||||
-- we need to use foApprox to solve `?m1 ?m2 =?= IO x`
|
||||
check $ not <$> isExprDefEq (mkApp m1 m2) t;
|
||||
check $ approxDefEq $ isExprDefEq (mkApp m1 m2) t;
|
||||
check $ not <$> isDefEq (mkApp m1 m2) t;
|
||||
check $ approxDefEq $ isDefEq (mkApp m1 m2) t;
|
||||
v ← getAssignment m1;
|
||||
check $ pure $ v == io;
|
||||
v ← getAssignment m2;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue