X-Git-Url: http://matita.cs.unibo.it/gitweb/?a=blobdiff_plain;f=helm%2Fsoftware%2Fcomponents%2Fbinaries%2Ftptp2grafite%2Fmain.ml;h=b7efd6820bcf464d8a0fa88750b6621336ec7ecd;hb=1b3f24947f19050f3947397e50a8d5ed3b61b71b;hp=3c7d5f934b89f2b6ec271284bbbd5018a820bb82;hpb=55b7e104ed4b153fdbffdc3b4284313b3f18c571;p=helm.git diff --git a/helm/software/components/binaries/tptp2grafite/main.ml b/helm/software/components/binaries/tptp2grafite/main.ml index 3c7d5f934..b7efd6820 100644 --- a/helm/software/components/binaries/tptp2grafite/main.ml +++ b/helm/software/components/binaries/tptp2grafite/main.ml @@ -196,7 +196,8 @@ let convert_ast statements context = function (fun _ -> [GA.Executable(floc,GA.Tactical(floc, GA.Tactic(floc, GA.Exists floc),Some (GA.Branch floc))); - GA.Executable(floc,GA.Tactical(floc, GA.Pos (floc,2),None))]) + GA.Executable(floc,GA.Tactical(floc, + GA.Pos (floc,[2]),None))]) fv)) else [])@ [GA.Executable(floc,GA.Tactical(floc, GA.Tactic(floc, @@ -292,7 +293,8 @@ let _ = let dummy_tbl = Hashtbl.create 1 in let markup = CicNotationPres.render dummy_tbl pres_term in let s = BoxPp.render_to_string width markup in - s + Pcre.substitute + ~pat:"\\\\forall [Ha-z][a-z0-9_]*" ~subst:(fun x -> "\n" ^ x) s in CicNotationPp.set_pp_term term_pp; let lazy_term_pp = fun x -> assert false in @@ -306,9 +308,17 @@ let _ = GA.Executable(floc,GA.Command(floc, GA.Include(floc,"legacy/coq.ma")))] in List.iter pp extra_statements_start; - print_endline + List.iter + (fun (n,s) -> + print_endline (LexiconAstPp.pp_command (LA.Alias(floc, - LA.Ident_alias("eq","cic:/Coq/Init/Logic/eq.ind#xpointer(1/1)"))) ^ "."); + LA.Ident_alias(n,s))) ^ ".")) + [("eq","cic:/Coq/Init/Logic/eq.ind#xpointer(1/1)"); + ("trans_eq","cic:/Coq/Init/Logic/trans_eq.con"); + ("eq_ind_r","cic:/Coq/Init/Logic/eq_ind_r.con"); + ("eq_ind","cic:/Coq/Init/Logic/eq_ind.con"); + ("sym_eq","cic:/Coq/Init/Logic/sym_eq.con"); + ("refl_equal","cic:/Coq/Init/Logic/eq.ind#xpointer(1/1/1)")]; List.iter pp grafite_ast_statements; exit 0