-
Notifications
You must be signed in to change notification settings - Fork 691
Fix some issues in refman #21007
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
Fix some issues in refman #21007
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.
Your changes look fine. I can merge as is if you wish. If you're willing to do a little more, how about adding a working example?
On line 70, lvar
is not defined. It's probably the list passed in variables
.
FWIW Looking through the code pretty thoroughly, I can't find where parameters such as radicalmax
are parsed. Also I think we could do better then using 1%Z
etc for strategy
.
Co-authored-by: Jim Fehrle <[email protected]>
I tried to add the first example from the
And I get this error:
I thought the
I also don't know. I didn't read too much into that paragraph. I'm not planning to use |
"extra" means optional, so it will ignore errors unless env variable ROCQRST_EXTRA is used. The idea is that when stdlib is installed you use ROCQRST_EXTRA=stdlib to catch errors in the extra-stdlib sections, and when it's not you can still compile the refman by tolerating errors in the extra-stdlib sections. |
Line 259 in 2865a49
|
Should I use the CI scripts to test locally? (most probably using Because if I use |
You can try doing |
If it gets too annoying just ask us to run full CI |
|
make ci-stdlib also installs (in _build/install/...). However dune may be deleting the installed files in the next build command. |
Indeed: % make ci-stdlib
[...]
% find _build -name NsatzTactic.vo
_build/install/default/lib/coq/user-contrib/Stdlib/nsatz/NsatzTactic.vo
% ROCQRST_EXTRA=all make refman-html
[...]
% find _build -name NsatzTactic.vo
% |
@coqbot run full ci |
Weird, the tactic fails:
But From Stdlib Require Import NsatzTactic.
Goal forall (x y z : Z),
x + y + z = 0 -> x*y + x*z + y*z = 0 -> x*y*z = 0 ->
x*x*x = 0.
nsatz.
Abort. |
try |
(probably changed in rocq-prover/stdlib#155) |
Why is the CI job green if the tactic failed? Is this a bug of the |
I've noticed this locally. Without |
we already have that, it's called "fail" |
You probably already know that there are many external libraries that are not documented in the refman. (I've never looked at them; I'm not a typical user of Rocq.) |
I suggest to delete the last 2 commits (essentially not adding any example and only fixing immediate issues). The link to the stdlib test-suite seems enough and the rocqtop-to-refman failure propagation issue is orthogonal (but should probably be addressed). What do you think? |
I opened an issue about this: #21010. |
Let's declare victory. @coqbot: merge now Thanks for the PR! |
No description provided.