@@ -2041,30 +2041,25 @@ Supported attributes:
2041
2041
uctx , state , !: (global_constant_of_globref gr ), [] ))),
2042
2042
DocAbove);
2043
2043
2044
- MLCode(Pred("coq.env.add-section-variable-two " ,
2044
+ MLCode(Pred("coq.env.add-section-variable" ,
2045
2045
In(id , "Name" ,
2046
- In(implicit_kind , "I" ,
2046
+ In(B. unspec implicit_kind , "I" ,
2047
2047
CIn(closed_ground_term , "Ty" ,
2048
2048
Out(constant , "C" ,
2049
2049
Full (global , {|Declare a new section variable: C gets a constant derived from Name
2050
2050
and the current module.
2051
2051
|} ))))),
2052
2052
(fun id bkind ty _ ~depth {options} _ -> grab_global_env_drop_sigma_keep_univs "coq.env.add-section-variable" (fun state ->
2053
+ let bkind = Option. default Glob_term. Explicit (unspec2opt bkind ) in
2053
2054
let gr , uctx = add_axiom_or_variable "coq.env.add-section-variable" id ty (Some bkind ) options state in
2054
2055
uctx , state , !: (global_constant_of_globref gr ), [] ))),
2055
2056
DocAbove);
2056
2057
2057
- LPCode {|
2058
- pred coq.env.add-section-variable i:id, i:term, o:constant.
2059
- coq.env.add-section-variable Name Ty C :-
2060
- coq.env.add-section-variable-two Name explicit Ty C.
2061
- |} ;
2062
-
2063
2058
LPCode {|
2064
2059
pred coq.env.add-context i:context-decl.
2065
2060
coq.env.add-context context-end.
2066
2061
coq.env.add-context (context-item Name I Ty none Rest) :-
2067
- coq.env.add-section-variable-two Name I Ty C,
2062
+ coq.env.add-section-variable Name I Ty C,
2068
2063
coq.env.add-context (Rest {coq.env.global (const C)} ).
2069
2064
coq .env .add -context (context -item Name _I Ty (some Bo) Rest) :-
2070
2065
coq .env .add -const Name Bo Ty ff C,
0 commit comments