X-Git-Url: http://matita.cs.unibo.it/gitweb/?a=blobdiff_plain;ds=sidebyside;f=helm%2Fsoftware%2Fcomponents%2Ftptp_grafite%2Ftptp2grafite.ml;h=244cd1d728975ebc22f000402bf99e5e589329ea;hb=ddd6560f4e70ec3306d223738a441d5f1dd3eac9;hp=ca0534c52b7f3ae410376808cdf63ac9ca4a8dec;hpb=df1201e37d6f2631dc31ffc87b979a6c81180a3a;p=helm.git diff --git a/helm/software/components/tptp_grafite/tptp2grafite.ml b/helm/software/components/tptp_grafite/tptp2grafite.ml index ca0534c52..244cd1d72 100644 --- a/helm/software/components/tptp_grafite/tptp2grafite.ml +++ b/helm/software/components/tptp_grafite/tptp2grafite.ml @@ -221,7 +221,8 @@ let ng_generate_tactics fv ueq_case context arities = (HExtlib.list_mapi (fun (name,_) _-> GA.Executable(floc,GA.NTactic(floc, - [GA.NIntro (floc,name);GA.NDot(floc)]))) + [GA.NIntro (floc,(try List.assoc name kw with Not_found -> name)); + GA.NDot(floc)]))) arities) @ (HExtlib.list_mapi @@ -236,8 +237,9 @@ let ng_generate_tactics fv ueq_case context arities = (fun _ -> [GA.Executable(floc,GA.NTactic(floc, [GA.NApply (floc, - PT.Appl [mk_ident "ex_intro";PT.Implicit;PT.Implicit; - PT.Implicit;PT.Implicit]);GA.NBranch floc])); + PT.Appl + [mk_ident "ex_intro";PT.Implicit `JustOne;PT.Implicit `JustOne; + PT.Implicit `JustOne;PT.Implicit `JustOne]);GA.NBranch floc])); GA.Executable(floc,GA.NTactic(floc, [GA.NPos (floc,[2])]))]) fv)) @@ -272,6 +274,8 @@ let ng_generate_tactics fv ueq_case context arities = GA.NSkip floc; GA.NMerge floc]))]) fv)) else [])@ + [GA.Executable(floc,GA.NTactic(floc,[GA.NTry(floc, GA.NAssumption(floc)); + GA.NSemicolon(floc)]))]@ [GA.Executable(floc,GA.NCommand(floc, GA.NQed(floc)))] ;; @@ -437,8 +441,9 @@ let tptp2grafite ?(timeout=600) ?(def_depth=10) ?raw_preamble ~tptppath ~filenam let preamble = match raw_preamble with | None -> - pp (GA.Executable(floc, - GA.Command(floc,GA.Include(floc,true,"logic/equality.ma")))) + pp + (GA.Executable(floc, + GA.Command(floc,GA.Include(floc,true,`OldAndNew,"logic/equality.ma")))) | Some s -> s buri in let extra_statements_end = [] in