-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
One of the new core linters crashes on this test, so for now we disable it. Since we're touching the test anyway, let's improve the output checking.
- Loading branch information
1 parent
01ad339
commit 71f5442
Showing
2 changed files
with
7 additions
and
2 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,13 @@ | ||
import Qq | ||
open Qq Lean | ||
|
||
-- TODO: this linter crashes on the `def` below | ||
set_option linter.constructorNameAsVariable false in | ||
def turnExistsIntoForall : Q(Prop) → MetaM Q(Prop) | ||
| ~q(∃ x y, $p x y) => return q(∀ x y, $p x y) | ||
| e => return e | ||
|
||
#eval turnExistsIntoForall q(∃ a b, String.length a ≤ b + 42) | ||
/-- info: ∀ (x : String) (y : Nat), x.length ≤ y + 42 -/ | ||
#guard_msgs in | ||
run_cmd Elab.Command.liftTermElabM do | ||
Lean.logInfo <| ← turnExistsIntoForall q(∃ a b, String.length a ≤ b + 42) |
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 |
---|---|---|
@@ -1 +1 @@ | ||
leanprover/lean4:v4.9.0-rc1 | ||
leanprover/lean4:v4.10.0 |