X-Git-Url: http://matita.cs.unibo.it/gitweb/?a=blobdiff_plain;f=helm%2Fsoftware%2Fcomponents%2Facic_content%2FtermAcicContent.ml;h=6eeb45749510c8ed03c6444209bef4863f2fd219;hb=0920a5755553774f5b41d7603318ea997ecbdca5;hp=9176a8b56808af9bb6a3beaee3cc211e0998e603;hpb=5149063488e3771fb55c198e0ecef5fb5aaaab67;p=helm.git diff --git a/helm/software/components/acic_content/termAcicContent.ml b/helm/software/components/acic_content/termAcicContent.ml index 9176a8b56..6eeb45749 100644 --- a/helm/software/components/acic_content/termAcicContent.ml +++ b/helm/software/components/acic_content/termAcicContent.ml @@ -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) -> @@ -497,7 +497,7 @@ let remove_interpretation id = let init () = List.iter (fun f -> f []) !load_patterns32s let instantiate_appl_pattern - ~mk_appl ~mk_implicit ~term_of_uri env appl_pattern + ~mk_appl ~mk_implicit ~term_of_uri ~term_of_nref env appl_pattern = let lookup name = try List.assoc name env @@ -507,6 +507,7 @@ let instantiate_appl_pattern in let rec aux = function | Ast.UriPattern uri -> term_of_uri uri + | Ast.NRefPattern nref -> term_of_nref nref | Ast.ImplicitPattern -> mk_implicit false | Ast.VarPattern name -> lookup name | Ast.ApplPattern terms -> mk_appl (List.map aux terms)