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.
Due to the way
Ordered
is declared (and probably because of universe polymorphism), the unification algorithm "fails" on problems of the formOrdered.sort A = Ordered.sort ?A
because the universe instances ofOrdered.sort
do not match. This issue is hidden by the canonical structure resolution procedure, but the new algorithm in coq/coq#19611 (purposefully) changes the inferred structure fromA
tostructures_eta__canonical__ordtype_Ordered A
, which is not unifiable toA
and breaks a few things. This PR adds a few annotations to get the correct structure back.N.B. The whole repository compiles with the commented declaration of
Ordered
via HB (also tested on coq-8.19), so I am confused as to why it was necessary to declare it by hand. Restoring the HB declaration would be a much cleaner way to solve the issue, if possible.