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

Instance names seem unnecessary after all #255

Open
ctchou opened this issue Nov 13, 2024 · 0 comments
Open

Instance names seem unnecessary after all #255

ctchou opened this issue Nov 13, 2024 · 0 comments

Comments

@ctchou
Copy link

ctchou commented Nov 13, 2024

In section 6.2 there is the following example:

instance hasMulGroup₂ {α : Type*} [Group₂ α] : Mul α :=
⟨Group₂.mul⟩

instance hasOneGroup₂ {α : Type*} [Group₂ α] : One α :=
⟨Group₂.one⟩

instance hasInvGroup₂ {α : Type*} [Group₂ α] : Inv α :=
⟨Group₂.inv⟩

and the following comment later:

In this case, we have to supply names for the instances, because Lean has a hard time coming up with good defaults.

But after I remove the three names hasMulGroup2, etc, Lean does not complain and nothing bad seems to happen. Perhaps the comment is no longer up-to-date w.r.t. the latest Lean?

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