Skip to content
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

Adapt to coq/coq#20178 (map_univs_opt_subst takes relevance normalizer) #637

Merged
merged 1 commit into from
Feb 6, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion src/equations_common.ml
Original file line number Diff line number Diff line change
Expand Up @@ -226,13 +226,17 @@ let e_type_of env evd t =

let collapse_term_qualities uctx c =
let open Sorts.Quality in
let nf_rel r = match UState.nf_relevance uctx r with
| Relevant | Irrelevant as r -> r
| RelevanceVar _ -> (* hack *) Relevant
in
let nf_qvar q = match UState.nf_qvar uctx q with
| QConstant _ as q -> q
| QVar q -> (* hack *) QConstant QType
in
let nf_univ _ = None in
let rec self () c =
UnivSubst.map_universes_opt_subst_with_binders ignore self nf_qvar nf_univ () c
UnivSubst.map_universes_opt_subst_with_binders ignore self nf_rel nf_qvar nf_univ () c
in self () c

let make_definition ?opaque ?(poly=false) evm ?types b =
Expand Down