You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
DelimitScope list_of_types_scope with list_of_types.
265
-
BindScope list_of_types_scope with list_of_types.
266
-
267
-
Infix "::" := cons : list_of_types_scope.
268
-
Notation "[ ]" := nil : list_of_types_scope.
269
-
Notation "[ x ]" := (cons x nil) : list_of_types_scope.
270
-
Notation "[ x ; y ; .. ; z ]" := (cons x (cons y .. (cons z nil) ..)) : list_of_types_scope.
271
-
272
-
PolymorphicDefinition types_monad_map@{l b a t u} {T} {M : Monad@{t u} T} {B : Type@{b}} (f : Type@{a} -> T B)
273
-
:= fix types_monad_map (l : list_of_types@{l}) : T (list B)
274
-
:= match l with
275
-
| []%list_of_types => ret []%list
276
-
| (x :: xs)%list_of_types
277
-
=> fx <- f x;;
278
-
fxs <- types_monad_map xs;;
279
-
ret (fx :: fxs)%list
280
-
end.
281
-
282
-
#[local] PolymorphicDefinition tmRelaxSortsQuote@{uP uSP uS uD uL t u _high} (in_domain : bool) (do_replace_U : Universe.t -> bool) (available_univs : list_of_types@{uL}) (t : term) : TemplateMonad@{t u} term
let tmcty := tmRetypeRelaxSetInCodomain@{U t t u _above_u} cty in
512
+
let tmcty := tmRetypeRelaxSetInCodomain@{t t u} qname cty in
511
513
_ <- tmDebugPrint tmcty;;
512
514
cty <- tmcty;;
513
515
let tmcv := tmObj_magic (B:=cty) cv in
@@ -524,19 +526,19 @@ Polymorphic Definition tmPrepareMakeQuotationOfConstants@{U t u u' _T _above_u _
524
526
ret ps.
525
527
526
528
(* N.B. We need to kludge around COQBUG(https://github.com/coq/coq/issues/17303) in Kernames :-( *)
527
-
PolymorphicDefinition tmMakeQuotationOfConstants_gen@{U d t u u' _T _above_u _above_u' _above_gr} {debug:debug_opt} (work_aronud_coq_bug_17303 : bool) (include_submodule : list ident -> bool) (include_supermodule : list ident -> list ident -> bool) (existing_instance : option hint_locality) (base : modpath) (cs : list global_reference) (tmDoWithDefinition : ident -> forall A : Type@{d}, A -> TemplateMonad A) : TemplateMonad unit
529
+
PolymorphicDefinition tmMakeQuotationOfConstants_gen@{U d t u u' _T _above_u _above_u' _above_gr} {debug:debug_opt} (work_around_coq_bug_17303 : bool) (include_submodule : list ident -> bool) (include_supermodule : list ident -> list ident -> bool) (existing_instance : option hint_locality) (base : modpath) (cs : list global_reference) (tmDoWithDefinition : ident -> forall A : Type@{d}, A -> TemplateMonad A) : TemplateMonad unit
528
530
:= let tmDebugMsg s := (if debug
529
531
then tmMsg s
530
532
else tmReturn tt) in
531
533
let tmDebugPrint {T : Type@{_T}} (v : T)
532
534
:= (if debug
533
535
then tmPrint v
534
536
else tmReturn tt) in
535
-
ps <- tmPrepareMakeQuotationOfConstants@{U t u u' _T _above_u _above_u'} work_aronud_coq_bug_17303 include_submodule include_supermodule base cs;;
537
+
ps <- tmPrepareMakeQuotationOfConstants@{U t u u' _T _above_u _above_u'} work_around_coq_bug_17303 include_submodule include_supermodule base cs;;
0 commit comments