<div dir="ltr">Dear Joe,<div><br></div><div>Thanks a lot. I just downloaded them. I will try test the whole thing again tomorrow. </div><div><br></div><div>Thanks!</div><div>Robert</div></div><div class="gmail_extra"><br><div class="gmail_quote">On 6 October 2015 at 23:01, Joe Leslie-Hurd <span dir="ltr"><<a href="mailto:joe@gilith.com" target="_blank">joe@gilith.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi Robert,<br>
<br>
The theory lazy-list was contributed by Ramana Kumar. It was exported<br>
from HOL4 but hasn't been kept up to date with the standard theory<br>
library, so in its present state I don't think it can be imported into<br>
HOL Light.<br>
<br>
gfp is another parametric theory:<br>
<br>
$ opentheory info --theory gfp-witness<br>
<span class="">3 external type operators: -> bool natural<br>
</span>14 external constants: = ! /\ ==> ~ F T + bit0 bit1 odd prime suc zero<br>
16 satisfied assumptions: hidden<br>
1 defined constant: oddprime<br>
2 theorems:<br>
  |- odd oddprime<br>
  |- prime oddprime<br>
<br>
So follow the same pattern as modular.<br>
<br>
Cheers,<br>
<br>
Joe<br>
<br>
On Tue, Oct 6, 2015 at 3:31 AM, Robert White<br>
<div class="HOEnZb"><div class="h5"><<a href="mailto:ai.robert.wangshuai@gmail.com">ai.robert.wangshuai@gmail.com</a>> wrote:<br>
> Dear Joe,<br>
><br>
> I also have problem loading lazy-list and gfp:<br>
><br>
> For lazy-list :<br>
><br>
> Exception:<br>
><br>
> Failure<br>
><br>
>  "in article lazy-list.art at line 234: const\nstack =<br>
> [\"Data.Option.NONE\"; Var; Term; Term; Term; Var; Term; Term; Var; Term;<br>
> Var; \"llist.lrep_ok\"; Var; Term; Term; [\"A\"]; \"llist.llist.rep\";<br>
> \"llist.llist.abs\"; \"llist.llist\"; \"a0\"; \"llist.LFINITE\"; Var; Thm;<br>
> Thm]\nunknown constant \"Data.Option.NONE\"".<br>
><br>
><br>
> For gfp;<br>
><br>
><br>
> Exception:<br>
><br>
> Failure<br>
><br>
>  "in article gfp.art at line 676: axiom\nstack = [Term; []; Thm; Thm;<br>
> Thm]\nunknown assumption:\n|- prime oddprime".<br>
><br>
><br>
> Could you please help on that? Thanks a lot!<br>
><br>
> Regards<br>
><br>
> Robert<br>
><br>
><br>
><br>
><br>
><br>
> On 6 October 2015 at 12:15, Robert White <<a href="mailto:ai.robert.wangshuai@gmail.com">ai.robert.wangshuai@gmail.com</a>><br>
> wrote:<br>
>><br>
>> Dear Joe,<br>
>><br>
>> I still get one error from the modular package:<br>
>><br>
>> Exception:<br>
>><br>
>> Failure<br>
>><br>
>>  "in article modular.art at line 11928: axiom\nstack = [Term; []; Thm;<br>
>> Thm; [[]; [[Var; Term]]]; Thm; Thm; Thm; Thm; Thm; Thm; Thm; Thm; Thm; Var;<br>
>> Thm; Thm; Thm; Thm; Thm; Var; Thm; Thm; Thm; Thm;<br>
>> [[\"Number.Modular.toNatural\"; Var]]; Term; Var; Var;<br>
>> \"Number.Modular.<=\"; Term; Var; [[]; [[Var; Term]]]; Var; Thm]\nunknown<br>
>> assumption:\n|- ~(modulus = 0)".<br>
>><br>
>> Is there any package missing?<br>
>><br>
>> I have loaded the following packages:<br>
>><br>
>> stream<br>
>><br>
>> probability<br>
>><br>
>> natural-bits<br>
>><br>
>> natural-divides<br>
>><br>
>> natural-prime<br>
>><br>
>><br>
>> Thanks very much!<br>
>><br>
>><br>
>> Regards,<br>
>><br>
>> Robert<br>
>><br>
>><br>
>> On 5 October 2015 at 23:27, Robert White <<a href="mailto:ai.robert.wangshuai@gmail.com">ai.robert.wangshuai@gmail.com</a>><br>
>> wrote:<br>
>>><br>
>>> Thanks very much Joe.<br>
>>> I also noticed that there is kind of dependency going on but I don't know<br>
>>> how to fix it.<br>
>>><br>
>>><br>
>>> On 5 October 2015 at 22:56, Joe Leslie-Hurd <<a href="mailto:joe@gilith.com">joe@gilith.com</a>> wrote:<br>
>>>><br>
>>>> Hi Robert,<br>
>>>><br>
>>>> There are a couple of different obstacles here.<br>
>>>><br>
>>>> Firstly, it is important that the dependent theories have been<br>
>>>> imported before the theory. To show all the dependent theories, use<br>
>>>> the following command:<br>
>>>><br>
>>>> $ opentheory list --dependency-order 'Requires+ natural-prime'<br>
>>>> base-1.200<br>
>>>> natural-divides-1.62<br>
>>>> stream-1.46<br>
>>>><br>
>>>> Now this sequence will succeed:<br>
>>>><br>
>>>> extend_the_interpretation<br>
>>>>   "opentheory/theories/natural-divides/<a href="http://natural-divides.int" rel="noreferrer" target="_blank">natural-divides.int</a>";;<br>
>>>> import_article "natural-divides.art";;<br>
>>>><br>
>>>> extend_the_interpretation<br>
>>>>   "opentheory/theories/stream/<a href="http://stream.int" rel="noreferrer" target="_blank">stream.int</a>";;<br>
>>>> import_article "stream.art";;<br>
>>>><br>
>>>> extend_the_interpretation<br>
>>>>   "opentheory/theories/natural-prime/<a href="http://natural-prime.int" rel="noreferrer" target="_blank">natural-prime.int</a>";;<br>
>>>> import_article "natural-prime.art";;<br>
>>>><br>
>>>> The second obstacle is that the theory word10 includes the theory<br>
>>>> word, which in turn includes the theory modular. So to successfully<br>
>>>> import word10 you need to extend the interpretation with the<br>
>>>> interpretations for these theories, too:<br>
>>>><br>
>>>> $ opentheory list --dependency-order 'Requires+ word10'<br>
>>>> base-1.200<br>
>>>> stream-1.46<br>
>>>> probability-1.49<br>
>>>> natural-bits-1.66<br>
>>>> natural-divides-1.62<br>
>>>><br>
>>>> extend_the_interpretation<br>
>>>>   "opentheory/theories/stream/<a href="http://stream.int" rel="noreferrer" target="_blank">stream.int</a>";;<br>
>>>> import_article "stream.art";;<br>
>>>><br>
>>>> extend_the_interpretation<br>
>>>>   "opentheory/theories/probability/<a href="http://probability.int" rel="noreferrer" target="_blank">probability.int</a>";;<br>
>>>> import_article "probability.art";;<br>
>>>><br>
>>>> extend_the_interpretation<br>
>>>>   "opentheory/theories/natural-bits/<a href="http://natural-bits.int" rel="noreferrer" target="_blank">natural-bits.int</a>";;<br>
>>>> import_article "natural-bits.art";;<br>
>>>><br>
>>>> extend_the_interpretation<br>
>>>>   "opentheory/theories/natural-divides/<a href="http://natural-divides.int" rel="noreferrer" target="_blank">natural-divides.int</a>";;<br>
>>>> import_article "natural-divides.art";;<br>
>>>><br>
>>>> extend_the_interpretation<br>
>>>>   "opentheory/theories/modular/<a href="http://modular.int" rel="noreferrer" target="_blank">modular.int</a>";;<br>
>>>> extend_the_interpretation<br>
>>>>   "opentheory/theories/word/<a href="http://word.int" rel="noreferrer" target="_blank">word.int</a>";;<br>
>>>> extend_the_interpretation<br>
>>>>   "opentheory/theories/word10/<a href="http://word10.int" rel="noreferrer" target="_blank">word10.int</a>";;<br>
>>>> import_article "word10.art";;<br>
>>>><br>
>>>> I regard this second problem as a defect in the theories, because it's<br>
>>>> unreasonable to expect people to discover this information. I'll work<br>
>>>> on fixing it so these multiple extend_the_interpretation commands are<br>
>>>> unnecessary.<br>
>>>><br>
>>>> Cheers,<br>
>>>><br>
>>>> Joe<br>
>>>><br>
>>>> On Sun, Oct 4, 2015 at 2:57 PM, Robert White<br>
>>>> <<a href="mailto:ai.robert.wangshuai@gmail.com">ai.robert.wangshuai@gmail.com</a>> wrote:<br>
>>>> > Dear Joe,<br>
>>>> ><br>
>>>> > I have problem importing article files. For example:<br>
>>>> ><br>
>>>> > Failure<br>
>>>> ><br>
>>>> >  "in article word10.art at line 7495: defineConst\nstack = [Term;<br>
>>>> > \"Number.Modular.equivalent\"; Term; Var; Term; Var; [];<br>
>>>> > \"HOLLight.modular_to_class\"; \"HOLLight.modular_from_class\";<br>
>>>> > \"Data.Word10.word10\"; TypeOp<fun>; TypeOp<fun>; Const<!>]\nunknown<br>
>>>> > constant \"Number.Modular.equivalent\"".<br>
>>>> ><br>
>>>> > I also have problems with the following packages:<br>
>>>> ><br>
>>>> > natural-prime<br>
>>>> ><br>
>>>> > gfp<br>
>>>> ><br>
>>>> > natural-fibonacci<br>
>>>> ><br>
>>>> > Could you please check if that is because opentheory packages got<br>
>>>> > updated<br>
>>>> > but the int files haven't?<br>
>>>> ><br>
>>>> > Thanks a lot.<br>
>>>> ><br>
>>>> ><br>
>>>> > --<br>
>>>> ><br>
>>>> > Regards,<br>
>>>> > Robert<br>
>>>> ><br>
>>>> > New homepage at Github: <a href="https://airobert.github.io/" rel="noreferrer" target="_blank">https://airobert.github.io/</a><br>
>>>> > New email address at ILLC: <a href="mailto:shuai.wang@student.uva.nl">shuai.wang@student.uva.nl</a><br>
>>>> > Carolina MacGillavrylaan 2246 , 1098 XK AMSTERDAM  HP: 0652691901<br>
>>>> ><br>
>>>> ><br>
>>>> > _______________________________________________<br>
>>>> > opentheory-users mailing list<br>
>>>> > <a href="mailto:opentheory-users@gilith.com">opentheory-users@gilith.com</a><br>
>>>> > <a href="http://www.gilith.com/opentheory/mailing-list" rel="noreferrer" target="_blank">http://www.gilith.com/opentheory/mailing-list</a><br>
>>>> ><br>
>>>><br>
>>>> _______________________________________________<br>
>>>> opentheory-users mailing list<br>
>>>> <a href="mailto:opentheory-users@gilith.com">opentheory-users@gilith.com</a><br>
>>>> <a href="http://www.gilith.com/opentheory/mailing-list" rel="noreferrer" target="_blank">http://www.gilith.com/opentheory/mailing-list</a><br>
>>><br>
>>><br>
>>><br>
>>><br>
>>> --<br>
>>><br>
>>> Regards,<br>
>>> Robert<br>
>>><br>
>>> New homepage at Github: <a href="https://airobert.github.io/" rel="noreferrer" target="_blank">https://airobert.github.io/</a><br>
>>> New email address at ILLC: <a href="mailto:shuai.wang@student.uva.nl">shuai.wang@student.uva.nl</a><br>
>>> Carolina MacGillavrylaan 2246 , 1098 XK AMSTERDAM  HP: 0652691901<br>
>>><br>
>><br>
>><br>
>><br>
>> --<br>
>><br>
>> Regards,<br>
>> Robert<br>
>><br>
>> New homepage at Github: <a href="https://airobert.github.io/" rel="noreferrer" target="_blank">https://airobert.github.io/</a><br>
>> New email address at ILLC: <a href="mailto:shuai.wang@student.uva.nl">shuai.wang@student.uva.nl</a><br>
>> Carolina MacGillavrylaan 2246 , 1098 XK AMSTERDAM  HP: 0652691901<br>
>><br>
><br>
><br>
><br>
> --<br>
><br>
> Regards,<br>
> Robert<br>
><br>
> New homepage at Github: <a href="https://airobert.github.io/" rel="noreferrer" target="_blank">https://airobert.github.io/</a><br>
> New email address at ILLC: <a href="mailto:shuai.wang@student.uva.nl">shuai.wang@student.uva.nl</a><br>
> Carolina MacGillavrylaan 2246 , 1098 XK AMSTERDAM  HP: 0652691901<br>
><br>
><br>
> _______________________________________________<br>
> opentheory-users mailing list<br>
> <a href="mailto:opentheory-users@gilith.com">opentheory-users@gilith.com</a><br>
> <a href="http://www.gilith.com/opentheory/mailing-list" rel="noreferrer" target="_blank">http://www.gilith.com/opentheory/mailing-list</a><br>
><br>
<br>
_______________________________________________<br>
opentheory-users mailing list<br>
<a href="mailto:opentheory-users@gilith.com">opentheory-users@gilith.com</a><br>
<a href="http://www.gilith.com/opentheory/mailing-list" rel="noreferrer" target="_blank">http://www.gilith.com/opentheory/mailing-list</a><br>
</div></div></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div><br></div><div>Regards,</div><div>Robert </div><div><br></div><div>New homepage at Github: <a href="https://airobert.github.io/" target="_blank">https://airobert.github.io/</a><br></div><div><span style="font-size:12.8px">New email address at ILLC: </span><a href="mailto:shuai.wang@student.uva.nl" style="font-size:12.8px" target="_blank">shuai.wang@student.uva.nl</a><br></div><div><span style="font-size:12px;line-height:20px">Carolina MacGillavrylaan </span><span style="font-size:12px;line-height:20px">2246</span><span style="font-size:12px;line-height:20px"> , 1098 XK AMSTERDAM  HP: </span><span style="color:rgb(20,24,35);font-family:helvetica,arial,sans-serif;font-size:13px;line-height:17.94px;white-space:pre-wrap">0652691901</span><br></div><div><br></div></div></div></div></div></div></div></div></div></div></div></div>
</div>