File tree 1 file changed +4
-4
lines changed
1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -874,19 +874,19 @@ let add_axiom_or_variable api id ty local options state =
874
874
let kind = Decls. Logical in
875
875
let impargs = [] in
876
876
let loc = to_coq_loc @@ State. get Coq_elpi_builtins_synterp. invocation_site_loc state in
877
- let variable = CAst. (make ~loc @@ Id. of_string id) in
877
+ let id = Id. of_string id in
878
+ let variable = CAst. (make ~loc id) in
878
879
if not (is_ground sigma ty) then
879
880
err Pp. (str" coq.env.add-const: the type must be ground. Did you forge to call coq.typecheck-indt-decl?" );
880
881
let gr, _ =
881
882
if local then begin
882
- ComAssumption. declare_variable Vernacexpr. NoCoercion ~kind (EConstr. to_constr sigma ty) uentry impargs Glob_term. Explicit variable;
883
883
Dumpglob. dump_definition variable true " var" ;
884
- GlobRef. VarRef ( Id. of_string id), UVars.Instance. empty
884
+ ComAssumption. declare_variable Vernacexpr. NoCoercion ~kind ( EConstr. to_constr sigma ty) uentry impargs Glob_term. Explicit id
885
885
end else begin
886
886
Dumpglob. dump_definition variable false " ax" ;
887
887
ComAssumption. declare_axiom Vernacexpr. NoCoercion ~local: Locality. ImportDefaultBehavior ~kind (EConstr. to_constr sigma ty)
888
888
uentry impargs options.inline
889
- variable
889
+ id
890
890
end
891
891
in
892
892
gr
You can’t perform that action at this time.
0 commit comments