Skip to content

Commit

Permalink
Adapt to coq/coq#18938 (EConstr.ERelevance)
Browse files Browse the repository at this point in the history
  • Loading branch information
SkySkimmer committed Apr 17, 2024
1 parent cd19535 commit 05f79a3
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/lean.ml
Original file line number Diff line number Diff line change
Expand Up @@ -655,6 +655,7 @@ let to_annot rels n t uconv =
let env = Environ.set_universes uconv.graph env in
let evd = Evd.from_env env in
let r = Retyping.relevance_of_type env evd (EConstr.of_constr t) in
let r = EConstr.Unsafe.to_relevance r in
Context.make_annot (N.to_name n) r

(* bit n of [int_of_univs univs] is 1 iff [List.nth univs n] is SProp *)
Expand Down

0 comments on commit 05f79a3

Please sign in to comment.