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

FunctionSurj, Level 1: Type of f is not displayed. #54

Open
TentativeConvert opened this issue Jul 4, 2024 · 3 comments
Open

FunctionSurj, Level 1: Type of f is not displayed. #54

TentativeConvert opened this issue Jul 4, 2024 · 3 comments

Comments

@TentativeConvert
Copy link
Collaborator

TentativeConvert commented Jul 4, 2024

It is impossible to see from the proof state what domain and codomain of f are intended:

image

The hints make clear that it is supposed to be a function ℤ → ℤ. Is there a way to make this visible in the goal? Otherwise, how is the user supposed to infer this without switching to editor mode and looking at the actual statement in lean? (I guess lean does infer these types from x : ℤ and f x being comparable to x?)

@joneugster
Copy link
Member

There are hover pop-ups that should show the type, I think. But rn on dev these popups are hidden behind the goal and therefore invisible.

I believe there is a (pp-) option in Lean to turn this on globally for the game, but it might be quite verbose.

@TentativeConvert
Copy link
Collaborator Author

The hover pop-up is visible on the live server:
image
But this is still miles away from what is written in the chat:
image
I think we either need to revert to our old habit of displaying the statement
image
at the top of the exercise, or add an additional zeroeth level that introduces the notation f: A → B for functions. (My preference would be the additional level.)

@joneugster
Copy link
Member

I think the option I was thinking of is something line set_option pp.binderType true or something. That might be worth trying out too. (regardless of an additional öevel being added)

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