lib/scripts/convert.pl
changeset 11263 e502756bcb11
parent 11198 26a3e549ce8e
child 11271 b2a1d9c20df7
equal deleted inserted replaced
11262:9fde0021e1af 11263:e502756bcb11
   117   s/hypsubst_tac 1/hypsubst/g;
   117   s/hypsubst_tac 1/hypsubst/g;
   118   s/arith_tac 1/arith/g;
   118   s/arith_tac 1/arith/g;
   119   s/strip_tac 1/intro strip/g;
   119   s/strip_tac 1/intro strip/g;
   120   s/split_all_tac 1/simp (no_asm_simp) only: split_tupled_all/g;
   120   s/split_all_tac 1/simp (no_asm_simp) only: split_tupled_all/g;
   121 
   121 
       
   122   s/smp_tac (\d+) (\d+)/tactic "smp_tac $1 $2"/g;
   122   s/rotate_tac (\d+) (\d+)/rotate_tac [$2] $1/g;
   123   s/rotate_tac (\d+) (\d+)/rotate_tac [$2] $1/g;
   123   s/rotate_tac ~ *(\d+) (\d+)/rotate_tac [$2] -$1/g;
   124   s/rotate_tac ~ *(\d+) (\d+)/rotate_tac [$2] -$1/g;
   124   s/rename_tac (\".*?\") (\d+)/rename_tac [$2] $1/g;
   125   s/rename_tac (\".*?\") (\d+)/rename_tac [$2] $1/g;
   125   s/case_tac (\".*?\") (\d+)/case_tac [$2] $1/g;
   126   s/case_tac (\".*?\") (\d+)/case_tac [$2] $1/g;
   126   s/induct_tac (\".*?\") (\d+)/induct_tac [$2] $1/g;
   127   s/induct_tac (\".*?\") (\d+)/induct_tac [$2] $1/g;
   255   s/^val *(\w+) *= *result *\( *\) *$/done($1,"")/se;
   256   s/^val *(\w+) *= *result *\( *\) *$/done($1,"")/se;
   256   s/^bind_thm *\( *\"(.*?)\" *, *(result *\( *\) *?) *\) *$/done($1,"")/se;
   257   s/^bind_thm *\( *\"(.*?)\" *, *(result *\( *\) *?) *\) *$/done($1,"")/se;
   257   s/^bind_thm *\( *\"(.*?)\" *, *(.*?result *\( *\).*?) *\) *$/done($1,"[?? $2 ??] ")/se;
   258   s/^bind_thm *\( *\"(.*?)\" *, *(.*?result *\( *\).*?) *\) *$/done($1,"[?? $2 ??] ")/se;
   258   s/^bind_thm *\( *\"(.*?)\" *, *(.*?) *\) *$/"lemmas $1 = ".subst_RS_standard($2)/se;
   259   s/^bind_thm *\( *\"(.*?)\" *, *(.*?) *\) *$/"lemmas $1 = ".subst_RS_standard($2)/se;
   259   s/^by(\s*\(?\s*)(.*?)\s*(\)?)\s*$/process_tac($1,$2).$3/se;
   260   s/^by(\s*\(?\s*)(.*?)\s*(\)?)\s*$/process_tac($1,$2).$3/se;
   260   s/^b\sy(\s*)(.*?)(\s*)$/process_tac($1,$2).$3/se;
   261   s/^b\s+y(\s*)(.*?)(\s*)$/process_tac($1,"(".$2.")").$3/se;
   261   s/^(apply +)\( *([\w\'\.]+)\s*\)\s*$/$1$2/;
   262   s/^(apply +)\( *([\w\'\.]+)\s*\)\s*$/$1$2/;
   262                              # remove outermost parentheses if around atoms
   263                              # remove outermost parentheses if around atoms
   263   s/^Addsimps\s*\[?\s*([\w\'\. ,]*)\s*\]?/decl($1,"simp")/seg;
   264   s/^Addsimps\s*\[?\s*([\w\'\. ,]*)\s*\]?/decl($1,"simp")/seg;
   264   s/^Delsimps\s*\[?\s*([\w\'\. ,]*)\s*\]?/decl($1,"simp del")/seg;
   265   s/^Delsimps\s*\[?\s*([\w\'\. ,]*)\s*\]?/decl($1,"simp del")/seg;
   265   s/^Addsplits\s*\[?\s*([\w\'\. ,]*)\s*\]?/decl($1,"split")/seg;
   266   s/^Addsplits\s*\[?\s*([\w\'\. ,]*)\s*\]?/decl($1,"split")/seg;