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.
This PR adds a notion of "opaque constant" to saw-core. These are
Constant
nodes that have no definition. They are similar in many ways toExtCns
, but are explicitly not subject to substitution.In particular, opaque constants are allowed to appear in the definition of other constants, whereas
ExtCns
are not (CF discussion on #1430).In
cryptol-saw-core
, if aprimitive
declaration appears in a Cryptol module that is not one of the well-known primitives from the built-in modules we support, it is translated into an opaque constant. Insaw-core-coq
, opaque constants are translated into CoqParameter
declarations. The end result is that we can posit and reason about abstract Cryptol functions in Coq.Note, this is based on #1423, only the final two commits properly belong to this PR.