forked from leanprover/lean4
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This PR fixes a bug at `isDefEq` when `zetaDelta := false`. See new test for a small example that exposes the issue.
- Loading branch information
1 parent
1062f38
commit 166aeda
Showing
3 changed files
with
22 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
import Lean | ||
|
||
/-- | ||
info: true | ||
true | ||
-/ | ||
#guard_msgs in | ||
open Lean Meta in | ||
run_meta do | ||
withLetDecl `x (mkConst ``Nat) (mkNatLit 10) fun x => do | ||
IO.println (← isDefEq x x) | ||
withConfig (fun c => { c with zeta := false, zetaDelta := false }) do | ||
IO.println (← isDefEq x x) -- Should return `true` even if `zetaDelta := false` | ||
return () |