Skip to content

Commit 8066ba8

Browse files
authored
Merge pull request #959 from SkySkimmer/intern-constr-in-tac
Adapt to rocq-prover/rocq#21627 (empty_glob_sign takes univ binders)
2 parents d453e00 + 80fb6ad commit 8066ba8

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

src/rocq_elpi_vernacular.ml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -534,13 +534,20 @@ module Interp = struct
534534
let missing_synterp = let open Pp in
535535
fnl() ++
536536
strbrk "The command lacks code for the synterp phase. In order to add code to this phase use '#[synterp] Elpi Accumulate'. See also https://lpcic.github.io/coq-elpi/tutorial_coq_elpi_command.html#parsing-and-execution"
537+
538+
[%%if coq = "9.0" || coq = "9.1" || coq = "9.2"]
539+
let empty_glob_sign env = Genintern.empty_glob_sign ~strict:true env
540+
[%%else]
541+
let empty_glob_sign env = Genintern.empty_glob_sign ~strict:true env UnivNames.empty_binders
542+
[%%endif]
543+
537544

538545
let run_program ~loc name ~main ~atts ~syndata args more_args =
539546
get_and_compile ~loc name |> Option.map (fun (program, raw_args) ->
540547
let env = Global.env () in
541548
let sigma = Evd.from_env env in
542549
let args = args
543-
|> List.map (Rocq_elpi_arg_HOAS.Cmd.glob (Genintern.empty_glob_sign ~strict:true env))
550+
|> List.map (Rocq_elpi_arg_HOAS.Cmd.glob (empty_glob_sign env))
544551
|> List.map (Rocq_elpi_arg_HOAS.Cmd.interp (Ltac_plugin.Tacinterp.default_ist ()) env sigma)
545552
in
546553
let initial_synterp_state, synterplog =

0 commit comments

Comments
 (0)