-
Notifications
You must be signed in to change notification settings - Fork 700
[Corelib] Retrieve ring/field/micromega computational part from Stdlib #21080
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
base: master
Are you sure you want to change the base?
Conversation
|
Cc @fajb |
c6f72de to
f5da0b3
Compare
|
What prompted this? |
|
For the context: when giving Stdlib it's own repository, we applied a simple rule: keep .ml files in the rocq repository and .v files in the new stdlib repository. We already knew that this was leaving room for improvement, with the micromega plugin referencing constants in another repository. This is such an improvement. |
|
Thinking a bit more about it, maybe a good solution would be to have a dedicated repo for micromega, hosting the plugin and definitions in the current PR, this way:
This would both allow easy evolutions of micromega with all exeutable code in the same repo (and overlays to test the theories on top of it) and easy adaptation of the user libraries, that would just have to peek the version they are using, while remaining compatible with multiple versions of Rocq. |
|
Let's discuss that next week https://github.com/rocq-prover/rocq/wiki/Rocq-Call-2025-10-07 |
|
Having the definitions separate from the proofs does not seem acceptable to me, for all the reasons discussed during last call. Having micromega in its own repo could be discussed, but that repo would have to include or depend on the relevant stdlib proofs. |
|
As written above, a micromega repo can't depend on Stdlib, it's the other way around: Stdlib depends on the micromega repo (so that Stdlib can choose its version of micromega). |
This way it can be used by other libraries than just Stdlib.
Maybe more importantly, having the datastructures closer from the OCaml plugin will ease further developments of micromega.
See rocq-prover/stdlib#207 for the adaptation in Stdlib
Scheduled for discussion on rocq call 2025-09-23
Documented any new / changed user messages.Updated documented syntax by runningmake doc_gram_rsts.