Skip to content
This repository has been archived by the owner on Jul 24, 2024. It is now read-only.

feat(scripts): scrape typeclass hierarchy into json #3307

Closed
wants to merge 8 commits into from

Conversation

jcommelin
Copy link
Member

@jcommelin jcommelin commented Jul 7, 2020

Co-authored by: Floris van Doorn [email protected]


Sample output: https://gist.github.com/46f68be10416f645241a0deb4da66327

@bryangingechen
Copy link
Collaborator

Maybe this should be part of doc-gen?

@jcommelin
Copy link
Member Author

Fine with me... let's put it there once we are happy with the script.
I just made a PR so that the script doesn't get lost.

@bryangingechen bryangingechen added the WIP Work in progress label Jul 7, 2020
@urkud
Copy link
Member

urkud commented Jul 9, 2020

Could you please upload the output?

And while you're at it, it would be nice to have a table with columns nat, int, rat, real, nnreal, ennreal (what else?), rows corresponding to various classes and at intersections if we have an instance?

@jcommelin
Copy link
Member Author

jcommelin commented Jul 9, 2020

(what else?)

complex

Sample output: https://gist.github.com/46f68be10416f645241a0deb4da66327

@urkud
Copy link
Member

urkud commented Jul 9, 2020

Output LGTM. Didn't try to understand the code.

@alexjbest
Copy link
Member

Is the format of this meant as input for something specific? If so we could say what in the code so people understand the format.

It doesn't seem to match https://jsongraphformat.info/ so if this is just a random format at the moment we could tweak this to match that, might make it easier to use this data in different places in future.

@robertylewis
Copy link
Member

Is the format of this meant as input for something specific? If so we could say what in the code so people understand the format.

Seconded. Regardless, I'd propose moving this to doc_gen where we can integrate something to generate a pretty picture for the docs pages.

@bryangingechen
Copy link
Collaborator

@jcommelin do you mind moving this to https://github.com/leanprover-community/doc-gen ? You can just put typeclass_stats.lean in src/ for now. Then we can discuss / work on it further there.

@jcommelin
Copy link
Member Author

@bryangingechen Voila: leanprover-community/doc-gen#52

@bryangingechen bryangingechen deleted the typeclass-stats branch August 25, 2020 15:44
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
WIP Work in progress
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants