[Hol-info] PhD opportunities at the ANU

2018-08-08 Thread Michael.Norrish
++ The Logic and Computation Group at the Research School of Computer Science, The Australian National University has a number of PhD scholarship available for bright, enthusiastic doctoral students in the following subjects: - Logic

Re: [Hol-info] Partial Function on lazy list

2018-08-08 Thread Michael.Norrish
The function is already ready for use with any P; the final until_thm looks like val until_thm = ⊢ (until P [||] = [||]) ∧ (until P (h:::t) = if P h then [|h|] else h:::until P t): thm meaning that one can write things like until (\x. x MOD 3 = 0) ll for example. This seems like a

Re: [Hol-info] Partial Function on lazy list

2018-08-08 Thread Waqar Ahmad via hol-info
Hi, Great!. This really helps alot...:) However, I may be interested in defining it for [image: \forall P] so that I don't need to instantiate every time with a specific instance of P. I tried this by myself but every time I lost in connecting my definition in llist form to its corresponding

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: