@@ -860,14 +860,16 @@ let warn_deprecated_add_axiom =
860860 " section variables is deprecated. Use coq.env.add-axiom or " ^
861861 " coq.env.add-section-variable instead" ))
862862
863- let comAssumption_declare_variable id coe ~kind ty ~univs ~impargs impl ~name :_ =
864- ComAssumption. declare_variable ~coe ~kind ty ~univs ~impargs ~impl ~name: id
865- let comAssumption_declare_axiom coe ~local ~kind ~univs ~impargs ~inline ~name :_ ~id ty =
866- ComAssumption. declare_axiom ~coe ~local ~kind ~univs ~impargs ~inline ~name: id ty
863+ let comAssumption_declare_variable coe ~kind ty ~univs ~impargs impl ~name =
864+ ComAssumption. declare_variable ~coe ~kind ty ~univs ~impargs ~impl ~name: name.CAst. v
867865[%% if coq = " 8.20" || coq = " 9.0" ]
866+ let comAssumption_declare_axiom coe ~local ~kind ~univs ~impargs ~inline ~name ty =
867+ ComAssumption. declare_axiom ~coe ~local ~kind ~univs ~impargs ~inline ~name: name.CAst. v ty
868868let declare_mutual_inductive_with_eliminations ~primitive_expected ~default_dep_elim x y z =
869869 DeclareInd. declare_mutual_inductive_with_eliminations ~primitive_expected ~default_dep_elim x y z
870870[%% else ]
871+ let comAssumption_declare_axiom coe ~local ~kind ~univs ~impargs ~inline ~name ty =
872+ ComAssumption. declare_axiom ~coe ~local ~kind ~univs ~impargs ~inline ~name ty
871873let declare_mutual_inductive_with_eliminations ~primitive_expected ~default_dep_elim x y z =
872874 DeclareInd. declare_mutual_inductive_with_eliminations ~default_dep_elim x y z
873875[%% endif]
@@ -922,12 +924,12 @@ let add_axiom_or_variable api id ty local_bkind options state =
922924 match local_bkind with
923925 | Some implicit_kind -> begin
924926 Dumpglob. dump_definition name true " var" ;
925- comAssumption_declare_variable id Vernacexpr. NoCoercion ~kind (EConstr. to_constr sigma ty) ~univs ~impargs implicit_kind ~name
927+ comAssumption_declare_variable Vernacexpr. NoCoercion ~kind (EConstr. to_constr sigma ty) ~univs ~impargs implicit_kind ~name
926928 end
927929 | None -> begin
928930 Dumpglob. dump_definition name false " ax" ;
929931 comAssumption_declare_axiom Vernacexpr. NoCoercion ~local: Locality. ImportDefaultBehavior ~kind (EConstr. to_constr sigma ty)
930- ~univs ~impargs ~inline: options.inline ~name ~id
932+ ~univs ~impargs ~inline: options.inline ~name
931933 end
932934 in
933935 let ucsts = match univs with UState. Monomorphic_entry x , _ -> x | _ -> Univ.ContextSet. empty in
0 commit comments