Skip to content

Commit

Permalink
Merge pull request #19 from SkySkimmer/erelevance
Browse files Browse the repository at this point in the history
Adapt to coq/coq#18938 (EConstr.ERelevance)
  • Loading branch information
SkySkimmer authored Apr 23, 2024
2 parents cd19535 + 05f79a3 commit ce8ed08
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 ce8ed08

Please sign in to comment.