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

doc-gen: Explorability of theories #77

Closed
hargoniX opened this issue Jul 31, 2022 · 1 comment
Closed

doc-gen: Explorability of theories #77

hargoniX opened this issue Jul 31, 2022 · 1 comment

Comments

@hargoniX
Copy link
Collaborator

https://leanprover.zulipchat.com/#narrow/stream/113488-general/topic/Making.20mathlib.20more.20readable.20.28was.3A.20Improving.20the.20mathlib.20.2E.2E.2E/near/291460564

https://leanprover.zulipchat.com/#narrow/stream/113488-general/topic/Making.20mathlib.20more.20readable.20.28was.3A.20Improving.20the.20mathlib.20.2E.2E.2E/near/291485777

Implementation idea:

  1. The individual JSON of each module contains:
  • A list of used theorems per theorem
  • A map from theorem names to a counter for how often this name was used
  1. In the index step this information is accumulated into the final JSON in such a way that the following things can be calculated in JS with little runtime:
  • The list of theorems a certain theorem used, sorted by use counter, the theorem with the least use counter first. This is so theorems that are special for this declaration show up first
  • The list of theorems that use a certain theorem, sorted by use counter, here the theorem with the highest counter first. This is so the significant results can be visited quickly.
@hargoniX
Copy link
Collaborator Author

Addressed by tools like blueprint and David's docs.

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