Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(tactic/where): remove hackery from
#where
, using Lean 3c APIs (#…
…2465) We remove almost all of the hackery from `#where`, using the Lean 3c APIs exposed by @cipher1024. In doing so we add pair of library functions which make this a tad more convenient. The last "hack" which remains is by far the most mild; we expose `lean.parser.get_current_namespace`, which creates a dummy definition in the environment in order to obtain the current namespace. Of course this should be replaced with an exposed C++ function when the time comes (crossref with the leanprover-community/lean issue here: leanprover-community/lean#196). Co-authored-by: Scott Morrison <scott.morrison@gmail.com>
- Loading branch information
1 parent
533a552
commit ffa97d0
Showing
4 changed files
with
428 additions
and
177 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
Oops, something went wrong.