Re: [Hol-info] Applying a theorem to a specific subgoal

2018-08-08 Thread Dylan Melville
Thank you, this was perfect! > On Aug 8, 2018, at 2:31 AM, Heiko Becker wrote: > > Hello Dylan, > > There are two ways (I know of) to easily work on subgoals: > > 1) You use the >- symbol and not \\ or THEN as it only applies to the first > subgoal > > 2) You use THENL an give it a list of

Re: [Hol-info] Applying a theorem to a specific subgoal

2018-08-08 Thread Heiko Becker
Hello Dylan, There are two ways (I know of) to easily work on subgoals: 1) You use the >- symbol and not \\ or THEN as it only applies to the first subgoal 2) You use THENL an give it a list of tactics, where the i-th element the list is applied to subgoal i. Personally, I would recommend

Re: [Hol-info] Applying a theorem to a specific subgoal

2018-08-08 Thread Jeremy Dawson
Hi Dylan, from HOL/help/Docfiles/HTML/Tactical.NTH_GOAL.html (or help "NTH_GOAL" ; ) Where tac1 and tac2 are tactics, tac1 THEN_LT NTH_GOAL n tac2 applies tac1 to a goal, and then applies tac2 to the n’th resulting subgoal. Cheers, Jeremy On 08/08/2018 03:24 PM, Dylan Melville wrote:

[Hol-info] Applying a theorem to a specific subgoal

2018-08-07 Thread Dylan Melville
When a goal is separated into multiple subgoals during a proof of the form # prove(thm,tactic);; Where the last tactic is something like REPEAT CONJ_TAC Is there a way to specify that the next tactic should be applied to a specific subgoal? In the proof I’m working on, it was