Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Introduction chapter: Getting an error on assertTypeCmd in Lean4 #75

Closed
lakesare opened this issue Oct 11, 2022 · 4 comments
Closed

Introduction chapter: Getting an error on assertTypeCmd in Lean4 #75

lakesare opened this issue Oct 11, 2022 · 4 comments

Comments

@lakesare
Copy link
Contributor

lakesare commented Oct 11, 2022

I'm getting the following error in the Introduction#Building a command example.
My Lean version is "leanprover/lean4:nightly-2022-10-09".
Does this look familiar?

image

@arthurpaulino
Copy link
Collaborator

Oh, the API must have changed. What happens if you don't pass the `assertTypeCmd argument?

@lakesare
Copy link
Contributor Author

It goes like this:

image

@arthurpaulino
Copy link
Collaborator

@lakesare I've bumped the toolchain and fixed that issue: ec355bb

Make sure to check the indentation levels of your code because the try ... needs to be deeper than liftTermElabM

@lakesare
Copy link
Contributor Author

That worked! Thanks for the note about the nesting level, that was also important.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants