]> matita.cs.unibo.it Git - helm.git/blobdiff - helm/software/components/acic_content/termAcicContent.ml
Merge remote-tracking branch 'origin/ld-0.99.3'
[helm.git] / helm / software / components / acic_content / termAcicContent.ml
index 0af74d261701e01a0918040451dc5599e61f19b1..6eeb45749510c8ed03c6444209bef4863f2fd219 100644 (file)
@@ -121,7 +121,7 @@ let ast_of_acic0 ~output_type term_info acic k =
     | Cic.ASort (id,Cic.Type u) -> idref id (Ast.Sort (`Type u))
     | Cic.ASort (id,Cic.CProp u) -> idref id (Ast.Sort (`CProp u))
     | Cic.AImplicit (id, Some `Hole) -> idref id Ast.UserInput
-    | Cic.AImplicit (id, _) -> idref id Ast.Implicit
+    | Cic.AImplicit (id, _) -> idref id (Ast.Implicit `JustOne)
     | Cic.AProd (id,n,s,t) ->
         let binder_kind =
           match sort_of_id id with
@@ -154,11 +154,11 @@ let ast_of_acic0 ~output_type term_info acic k =
                      try HExtlib.split_nth (cpos+sats+1) tl with Failure _ -> [],[] 
                    in
                    if rest = [] then
-                     idref aid (List.nth (List.map k tl) cpos)
+                     idref aid (k (List.nth tl cpos))
                    else
                      idref aid (Ast.Appl (List.map k (List.nth tl cpos::rest)))
                  else
-                   idref aid (Ast.Appl (List.map k tl))
+                   idref aid (Ast.Appl (List.map k args))
            else
              idref aid (Ast.Appl (List.map k args)))
     | Cic.AAppl (aid,args) ->