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
[coqdoc] Fix #18516 (handling of Context) #18527
Conversation
2986241
to
0fcb61e
Compare
Who is the specialist of vos nowadays? @charguer ? why on earth does adding things to the glob file break vos ? |
My bad, I just felt in the usual OCaml |
See also #13445, which greatly simplify Note also that your choice of tags is more fine-grained than what #13445 does. #13445 relies on |
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.
Includes documentation, tests, changelog, as well as distinguishing between global/local level. Very nice.
| {CAst.v = Names.Name.Anonymous; _} -> () | ||
| {CAst.v = Names.Name.Name id; loc} -> | ||
Dumpglob.dump_definition (CAst.make ?loc id) sec ty) | ||
(List.flatten l) end; |
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.
Looking at it further, what is done for other declarations (in vernacentries.ml
) is the following:
Variable
/Hypothesis
: "var"Axiom
/Parameter
: "ax"Definition
/Theorem
: "def"Let
: "var"
So, "def" would also be an option for LocalDef
outside a section.
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.
Makes sense but I'd rather keep it as "var" for now since the references (lines starting with R
in the glob file) mention it as such.
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'm now confused. Shouldn't Context (a:=0)
outside a section be considered the same as Definition a:=0
(and thus with "def") or are we rather talking about Let
?
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.
You're right, I did forgot that outside-section case. Should be fixed.
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.
Did you push?
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.
My bad, here it is.
Great, while fixing this I found it sad that there is so much duplication between @herbelin would you then assign and merge this one? so that I can then rebase #13445 and I can proceed with it. |
@coqbot run full ci |
Failure of library_undecidability and http seem shared by other PRs. Nix times out. @coqbot merge now |
Context
was not outputting "var" definitions into the .glob file (likeVariable
is doing), breaking the links to section variables introduced withContext
. This commit adds the missing "var" definitions, fixing the links.Fixes #18516
Added / updated documentation.Documented any new / changed user messages.Updated documented syntax by runningmake doc_gram_rsts
.Opened overlay pull requests.