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

2018-08-06 Thread Michael.Norrish
You need to define a helper function that has as its state not only the llist that is being consumed but also a Boolean indicating whether or not to stop (because a P-satisfying element has been seen). - - val until0_def = new_specification ("until0_def", ["until0"], ISPEC ``λbll. if

[Hol-info] Partial Function on lazy list

2018-08-06 Thread Waqar Ahmad via hol-info
Hi all, Is there any easy way to define the following partial function on lazy list val recur_llist_fn_def = Define `recur_llist_fn P w = if P (THE (LHD w)) then [|THE (LHD w)|] else (THE (LHD w)):::(recur_llist_fn P (THE (LTL w)))`; Otherwise, I can also include the LNIL case as val

Re: [Hol-info] conflicts auto-resolved by Define?

2018-08-06 Thread Chun Tian (binghe)
Hi, is the improved version you’re using available somewhere? —Chun > Il giorno 05 ago 2018, alle ore 18:09, Waqar Ahmad <12phdwah...@seecs.edu.pk> > ha scritto: > > Hi Chun, > > I'm not sure about your potential conflict question but we are now using an > improved definition of

Re: [Hol-info] conflicts auto-resolved by Define?

2018-08-06 Thread Chun Tian (binghe)
Hi Thomas, thanks for detailed explanations! —Chun > Il giorno 05 ago 2018, alle ore 19:58, Thomas Tuerk > ha scritto: > > Hi Chun, Waqar, > > "Define" does indeed give priority to earlier clauses. Under the hood pattern > compilation takes place. So what is actually is going on for >> val

[Hol-info] [Publicity] Call for Participation: 11th Conference on Intelligent Computer Mathematics

2018-08-06 Thread Tanja Gutenbrunner
Call for Participation 11th Conference on Intelligent Computer Mathematics - CICM 2018 - August 13-17, 2018 RISC, Hagenberg, Austria

[Hol-info] iFM 2018: Registration Bursaries for PhD students and Early Stage Researchers

2018-08-06 Thread HaoWu
** 14th International Conference on integrated Formal Methods (iFM) http://ifm2018.cs.nuim.ie