| l -> CicNotationPt.Appl l
;;
-let mk_elim uri leftno it (outsort,suffix) =
+let mk_elim uri leftno it (outsort,suffix) pragma =
let _,ind_name,ty,cl = it in
let srec_name = ind_name ^ "_" ^ suffix in
let rec_name = mk_id srec_name in
(CicNotationPres.mpres_of_box boxml)));
*)
CicNotationPt.Theorem
- (`Definition,srec_name,CicNotationPt.Implicit `JustOne,Some res)
+ (`Definition,srec_name,
+ CicNotationPt.Implicit `JustOne,Some res,pragma)
;;
let ast_of_sort s =
let mk_elims (uri,_,_,_,obj) =
match obj with
NCic.Inductive (true,leftno,[itl],_) ->
- List.map (fun s -> mk_elim uri leftno itl (ast_of_sort s))
+ List.map (fun s -> mk_elim uri leftno itl (ast_of_sort s) (`Elim s))
(NCic.Prop::
List.map (fun s -> NCic.Type s) (NCicEnvironment.get_universes ()))
| _ -> []
80 (CicNotationPres.render (fun _ -> None)
(TermContentPres.pp_ast res)));*)
CicNotationPt.Theorem
- (`Definition,projname,CicNotationPt.Implicit `JustOne,Some res)
+ (`Definition,projname,CicNotationPt.Implicit `JustOne,Some res,`Projection)
;;
let mk_projections (_,_,_,_,obj) =