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

Docs search ignores the exported name #222

Open
YaelDillies opened this issue Oct 7, 2024 · 0 comments
Open

Docs search ignores the exported name #222

YaelDillies opened this issue Oct 7, 2024 · 0 comments

Comments

@YaelDillies
Copy link

If you look for "inv_zero" in the mathlib docs, you would expect to find inv_zero as the first result. Annoyingly, you get this instead:
image
... because inv_zero is secretly GroupWithZero.inv_zero exported to _root_.

This is an issue because exported lemmas are usually of widespread use (else we wouldn't be exporting them in the first place), but them being exports significantly hinders their discoverability.

mathlib-bors bot pushed a commit to leanprover-community/mathlib4 that referenced this issue Oct 17, 2024
Exporting makes it not show as `inv_zero` in the docs search results, meaning it's very non-discoverable.

See leanprover/doc-gen4#222.
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