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

Choice of project through the url does not work properly #47

Open
jnarboux opened this issue Dec 20, 2024 · 0 comments
Open

Choice of project through the url does not work properly #47

jnarboux opened this issue Dec 20, 2024 · 0 comments

Comments

@jnarboux
Copy link

Hi,

We have a piece of code that works with Lean 4.14 but does not work with Lean 4.15 (it is not the problem):

#eval Lean.versionString
macro "foo bar" : term => do `( True)
def p  := foo bar
#print p

We created an URL to the code using the version 4.14 (project duper):
https://lean.math.hhu.de/#project=DuperDemo&codez=MQUwbghgNgBAMiCA7AdGEAnAzgSwPZIDKALhjkgOYBQAthAMYZ4wBEAZnswEYQYswAuGMUw0YAXgB8MACbMABgAoYAFQwBXEAEoqMkGxgAHGIPEwO3XlWCGySYkapA

We can do the same thing with lean live:
https://live.lean-lang.org/#project=mathlib-stable&codez=MQUwbghgNgBAMiCA7AdGEAnAzgSwPZIDKALhjkgOYBQAthAMYZ4wBEAZnswEYQYswAuGMUw0YAXgB8MACbMABgAoYAFQwBXEAEoqMkGxgAHGIPEwO3XlWCGySYkapA

The URL-based choice of Lean version does not work completely: we get some red underlines in the editor window as if we were working with version 4.15, but we obtain the right output in the right panel as if we are using version 4.14.

I suspect that the Lean version is chosen only after a first evaluation using the default version.

Regards,

Julien

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

1 participant