@@ -60,7 +60,7 @@ let is_restricted_name =
6060
6161(* XXX: I don't get why we use a coq_ctx here *)
6262let under_ctx name ty bo gterm2lp ~depth state x =
63- let coq_ctx, hyps as orig_ctx = Option. default (upcast @@ mk_coq_context ~options: default_options state,[] ) (get_ctx state) in
63+ let coq_ctx, hyps as orig_ctx = Option. default (upcast @@ mk_coq_context ~options: ( default_options () ) state,[] ) (get_ctx state) in
6464 let state, name =
6565 let id =
6666 match name with
@@ -149,7 +149,7 @@ let rec gterm2lp ~depth state x =
149149 end
150150 | GRef (gr ,_ul ) -> state, in_elpi_gr ~depth state gr
151151 | GVar (id ) ->
152- let ctx, _ = Option. default (upcast @@ mk_coq_context ~options: default_options state, [] ) (get_ctx state) in
152+ let ctx, _ = Option. default (upcast @@ mk_coq_context ~options: ( default_options () ) state, [] ) (get_ctx state) in
153153 if not (Id.Map. mem id ctx.name2db) then
154154 CErrors. user_err ?loc:x.CAst. loc
155155 Pp. (str" Free Coq variable " ++ Names.Id. print id ++ str " in context: " ++
@@ -178,7 +178,7 @@ let rec gterm2lp ~depth state x =
178178 match oty with
179179 | None ->
180180 let state, uv = F.Elpi. make state in
181- let ctx, _ = Option. default (upcast @@ mk_coq_context ~options: default_options state, [] ) (get_ctx state) in
181+ let ctx, _ = Option. default (upcast @@ mk_coq_context ~options: ( default_options () ) state, [] ) (get_ctx state) in
182182 let args = List. map (fun (_ ,x ) -> E. mkBound x) (Id.Map. bindings ctx.name2db) in
183183 state, E. mkUnifVar uv ~args state
184184 | Some ty -> gterm2lp ~depth state ty in
@@ -191,7 +191,7 @@ let rec gterm2lp ~depth state x =
191191 let s, x =
192192 match E. look ~depth x with
193193 | E. App (c ,call ,[] ) when c == E.Constants. spillc ->
194- let _, hyps = Option. default (upcast @@ mk_coq_context ~options: default_options state, [] ) (get_ctx state) in
194+ let _, hyps = Option. default (upcast @@ mk_coq_context ~options: ( default_options () ) state, [] ) (get_ctx state) in
195195 let hyps = List. map (fun { ctx_entry = t ; depth = from } ->
196196 U. move ~from ~to_: depth t) hyps in
197197 s, E. mkApp c (E. mkApp E.Constants. implc (U. list_to_lp_list hyps) [call]) []
@@ -215,7 +215,7 @@ let rec gterm2lp ~depth state x =
215215
216216 | GHole (_ ,_ ,None) ->
217217 let state, uv = F.Elpi. make state in
218- let ctx, _ = Option. default (upcast @@ mk_coq_context ~options: default_options state, [] ) (get_ctx state) in
218+ let ctx, _ = Option. default (upcast @@ mk_coq_context ~options: ( default_options () ) state, [] ) (get_ctx state) in
219219 let args =
220220 Id.Map. bindings ctx.name2db |>
221221 List. filter (fun (n ,_ ) -> not (is_restricted_name n)) |>
0 commit comments