src/Pure/tactic.ML
changeset 439 ad3f46c13f1e
parent 270 d506ea00c825
child 670 ff4c6691de9d
equal deleted inserted replaced
438:52e8393ccd77 439:ad3f46c13f1e
    64   val rewrite_goals_tac: thm list -> tactic
    64   val rewrite_goals_tac: thm list -> tactic
    65   val rewrite_tac: thm list -> tactic
    65   val rewrite_tac: thm list -> tactic
    66   val rewtac: thm -> tactic
    66   val rewtac: thm -> tactic
    67   val rtac: thm -> int -> tactic
    67   val rtac: thm -> int -> tactic
    68   val rule_by_tactic: tactic -> thm -> thm
    68   val rule_by_tactic: tactic -> thm -> thm
       
    69   val subgoal_tac: string -> int -> tactic
       
    70   val subgoals_tac: string list -> int -> tactic
    69   val subgoals_of_brl: bool * thm -> int
    71   val subgoals_of_brl: bool * thm -> int
    70   val subgoal_tac: string -> int -> tactic
       
    71   val trace_goalno_tac: (int -> tactic) -> int -> tactic
    72   val trace_goalno_tac: (int -> tactic) -> int -> tactic
    72   end
    73   end
    73 end;
    74 end;
    74 
    75 
    75 
    76 
   259     EVERY (map (fn th => metacut_tac th i) (filter is_fact ths));
   260     EVERY (map (fn th => metacut_tac th i) (filter is_fact ths));
   260 
   261 
   261 (*Introduce the given proposition as a lemma and subgoal*)
   262 (*Introduce the given proposition as a lemma and subgoal*)
   262 fun subgoal_tac sprop = res_inst_tac [("psi", sprop)] cut_rl;
   263 fun subgoal_tac sprop = res_inst_tac [("psi", sprop)] cut_rl;
   263 
   264 
       
   265 (*Introduce a list of lemmas and subgoals*)
       
   266 fun subgoals_tac sprops = EVERY' (map subgoal_tac sprops);
       
   267 
   264 
   268 
   265 (**** Indexing and filtering of theorems ****)
   269 (**** Indexing and filtering of theorems ****)
   266 
   270 
   267 (*Returns the list of potentially resolvable theorems for the goal "prem",
   271 (*Returns the list of potentially resolvable theorems for the goal "prem",
   268 	using the predicate  could(subgoal,concl).
   272 	using the predicate  could(subgoal,concl).