Repository navigation
Conversation
Importing VST.floyd.jmeq_lemmas before SSProve.Crypt.choice_type fails
because the monomorphic equality lemmas pin the global template
universes of sum, prod and list:
Universe inconsistency. Cannot enforce projections.u0 <= prod.u0
because prod.u0 < ind.Ind.constructors.u3 <= projections.u0.
Make the module locally universe polymorphic. An unapplied sum, prod or
list still refers to its global universes, so apply each one at its use
site. Without that, polymorphism alone breaks reptype as the
NDmk_funspec witness. Theorem statements, assumptions and opacity are
unchanged. The old section comments become a one-line Stdlib
attribution.
Register product, list, transport, elimination and automation regressions with make test. They check distinct universe levels and both monomorphic and polymorphic callers, using qualified VST equality names. Check reptype as a witness for both NDmk_funspec entry points. Polymorphism alone breaks this.
Contributor
Author
|
@andrew-appel Quick ping. This is the last known blocker for using VST and SSProve together in libshrincs. The notation clash has a compiler fix and a VST fix for stock Rocq 9.1. Rocq #22502, VST #875. SSProve now supplies the word carrier for VST specs and keeps nominal imports from shadowing MathComp equality. SSProve #133, SSProve #134. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Importing
VST.floyd.jmeq_lemmasbeforeSSProve.Crypt.choice_typefails with a universe inconsistency, because the monomorphic equality lemmas pin the global universes ofsum,prodandlist. This makes the module locally universe polymorphic and applies those constructors at their use sites, which also keepsreptypeworking as theNDmk_funspecwitness. Statements and assumptions are unchanged.The second commit adds regressions to
make test.make vst,make testandmake assumptions.txtpass on Rocq 9.1.1 and 9.2, 32 and 64 bit.