Skip to content

Commit

Permalink
Adapt to coq/coq#20178 (map_univs_opt_subst takes relevance normalizer)
Browse files Browse the repository at this point in the history
  • Loading branch information
SkySkimmer committed Feb 3, 2025
1 parent 8e924fd commit 79c50ea
Showing 1 changed file with 5 additions and 1 deletion.
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

0 comments on commit 79c50ea

Please sign in to comment.