]> matita.cs.unibo.it Git - helm.git/blobdiff - helm/software/components/ng_tactics/nCicElim.ml
fixed bug in coercion application, input/output swapped in unification
[helm.git] / helm / software / components / ng_tactics / nCicElim.ml
index 4117c4ffa48423e9cff889e3822dc04f47b98e08..b493edb6a22f295750a96141dd74f6a5d0a68385 100644 (file)
@@ -42,7 +42,7 @@ let mk_appl =
   | 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
@@ -150,7 +150,8 @@ let mk_elim uri leftno it (outsort,suffix) =
      (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 =
@@ -177,7 +178,7 @@ 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 ()))
    | _ -> []
@@ -290,7 +291,7 @@ let mk_projection leftno tyname consname consty (projname,_,_) i =
      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) =