Juan Perna wrote:
> My questions are:
> - e (FULL_SIMP_TAC std_ss [BOTH_FORALL_IMP_THM]) does not produce
> any rewriting of the hypothesis. What is what I am missing? I
> checked the definition of BOTH_FORALL_THM and it states:
> (("bool", "BOTH_FORALL_IMP_THM"),
> (|- !P Q. (!x. P ==> Q) = (?x. P) ==> !x. Q, Thm)),
> which seems to be what I have... Any suggestions?
This theorem says that the quantifier movement is valid if the bound
variable (x) does not occur in either argument to the implication.
This is not the situation you have, so it does not apply. If the
arguments did have x free, then the LHS of the theorem would look like
(!x. P x ==> Q x)
> - Is there a way of renaming quantified variables?
One easy way to do this at a low-level is to use RENAME_VARS_CONV:
- RENAME_VARS_CONV ["a", "b"] ``!x y. P x y ==> Q y x``;
<<HOL message: inventing new type variable names: 'a, 'b>>
> val it = |- (!x y. P x y ==> Q y x) = !a b. P a b ==> Q b a : thm
A more declarative approach might be to state the whole goal in the
desired form, and use either
Q.HO_MATCH_ABBREV_TAC
see
http://hol.sourceforge.net/kananaskis-4-helpdocs/help/Docfiles/HTML/Q.HO_MATCH_ABBREV_TAC.html
thus:
Initial goal:
(!x. P x) ==> Q = ?x. P x ==> Q
: goalstack
- e (Q.HO_MATCH_ABBREV_TAC `(!y. P y) ==> Q = ?z. P z ==> Q`);
OK..
1 subgoal:
> val it =
(!y. P y) ==> Q = ?z. P z ==> Q
Or, Q_TAC SUFF_TAC, thus:
- e (Q_TAC SUFF_TAC `(!y. P y) ==> Q = ?z. P z ==> Q`
THEN1 METIS_TAC []);
OK..
metis: 1 subgoal:
> val it =
(!y. P y) ==> Q = ?z. P z ==> Q
Renaming universals in the goal is the most common (typically because
the bound name will become the name of your arbitrary free variable).
Michael.
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
hol-info mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/hol-info