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

fix PR #652 #654

Merged
merged 1 commit into from
Jul 5, 2024
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
8 changes: 8 additions & 0 deletions src/coq_elpi_builtins.ml
Original file line number Diff line number Diff line change
Expand Up @@ -518,12 +518,20 @@ let set_accumulate_to_db_interp, get_accumulate_to_db_interp =
(fun x -> f := x),
(fun () -> !f)

[%%if coq = "8.19" || coq = "8.20"]
let is_global_level env u =
try
let set = Univ.Level.Set.singleton u in
let () = UGraph.check_declared_universes (Environ.universes env) set in
true
with UGraph.UndeclaredLevel _ -> false
[%%else]
let is_global_level env u =
let set = Univ.Level.Set.singleton u in
match UGraph.check_declared_universes (Environ.universes env) set with
| Ok () -> true
| Error _ -> false
[%%endif]

let err_if_contains_alg_univ ~depth t =
let global_univs = UGraph.domain (Environ.universes (Global.env ())) in
Expand Down
Loading