equal
deleted
inserted
replaced
6 |
6 |
7 \subsection{Inserting premises and facts}\label{cut_facts_tac} |
7 \subsection{Inserting premises and facts}\label{cut_facts_tac} |
8 \index{tactics!for inserting facts}\index{assumptions!inserting} |
8 \index{tactics!for inserting facts}\index{assumptions!inserting} |
9 \begin{ttbox} |
9 \begin{ttbox} |
10 cut_facts_tac : thm list -> int -> tactic |
10 cut_facts_tac : thm list -> int -> tactic |
11 cut_inst_tac : (string*string)list -> thm -> int -> tactic |
|
12 \end{ttbox} |
11 \end{ttbox} |
13 These tactics add assumptions to a subgoal. |
12 These tactics add assumptions to a subgoal. |
14 \begin{ttdescription} |
13 \begin{ttdescription} |
15 \item[\ttindexbold{cut_facts_tac} {\it thms} {\it i}] |
14 \item[\ttindexbold{cut_facts_tac} {\it thms} {\it i}] |
16 adds the {\it thms} as new assumptions to subgoal~$i$. Once they have |
15 adds the {\it thms} as new assumptions to subgoal~$i$. Once they have |
18 eresolve_tac} and {\tt rewrite_goals_tac}. Only rules with no premises |
17 eresolve_tac} and {\tt rewrite_goals_tac}. Only rules with no premises |
19 are inserted: Isabelle cannot use assumptions that contain $\Imp$ |
18 are inserted: Isabelle cannot use assumptions that contain $\Imp$ |
20 or~$\Forall$. Sometimes the theorems are premises of a rule being |
19 or~$\Forall$. Sometimes the theorems are premises of a rule being |
21 derived, returned by~{\tt goal}; instead of calling this tactic, you |
20 derived, returned by~{\tt goal}; instead of calling this tactic, you |
22 could state the goal with an outermost meta-quantifier. |
21 could state the goal with an outermost meta-quantifier. |
23 |
|
24 \item[\ttindexbold{cut_inst_tac} {\it insts} {\it thm} {\it i}] |
|
25 instantiates the {\it thm} with the instantiations {\it insts}, as |
|
26 described in {\S}\ref{res_inst_tac}. It adds the resulting theorem as a |
|
27 new assumption to subgoal~$i$. |
|
28 |
22 |
29 \end{ttdescription} |
23 \end{ttdescription} |
30 |
24 |
31 |
25 |
32 \subsection{Composition: resolution without lifting} |
26 \subsection{Composition: resolution without lifting} |