-
Notifications
You must be signed in to change notification settings - Fork 12
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: Add module docstrings and info about ~q()
#47
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The docstrings look otherwise accurate. Are you planning to put general explanations somewhere else?
let ⟨1, ~q(Nat), ~q($n + 37)⟩ ← inferTypeQ e | return none | ||
return some n | ||
``` | ||
This is performing three sequential matches: first that `e` is in `Sort 1`, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I am very sure this should be
let ⟨1, ~q(Nat), ~q($n + 37)⟩ ← inferTypeQ e | return none | |
return some n | |
``` | |
This is performing three sequential matches: first that `e` is in `Sort 1`, | |
let ⟨0, ~q(Nat), ~q($n + 37)⟩ ← inferTypeQ e | return none | |
return some n | |
``` | |
This is performing three sequential matches: first that `e` is in `Type 0`, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That example is different, there you have α : Q(Type u)
, but the return type of inferTypeQ
is Q(Sort u)
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hmm, you are right
No, but I figured docstrings somewhere now was better than a plan much later. |
Then this looks good to me, but I don't have merge rights |
@dwrensha, could you take a quick look too? I seem to remember you writing some Qq code in the past. If it looks good to you, I'll go ahead and merge. |
Looks good to me. Thanks for doing this! |
I'm sure much more could be written here, but this makes common patterns in mathlib a little more understandable from the vscode hovers alone.