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

2018-08-05 Thread Thomas Tuerk
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 extreal_add_def = Define` >   (extreal_add (Normal x) (Normal y) = (Normal (x + y))) /\ >   (extreal_add PosInf a = PosInf) /\ >   

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

2018-08-05 Thread Waqar Ahmad via hol-info
Hi Chun, I'm not sure about your potential conflict question but we are now using an improved definition of "extreal_add_def" val extreal_add_def = Define` (extreal_add (Normal x) (Normal y) = (Normal (x + y))) /\ (extreal_add (Normal _) a = a) /\ (extreal_add b (Normal _) = b) /\

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

2018-08-05 Thread binghe
Hi,the version of “extreal” (extended real numbers) in latest HOL4 has a wrong definition for sum:val _ = Hol_datatype`extreal = NegInf | PosInf | Normal of real`;val extreal_add_def = Define`   (extreal_add (Normal x) (Normal y) = (Normal (x + y))) /\   (extreal_add PosInf a = PosInf) /\