<div dir="ltr">Dear Joe,<div><br></div><div>Looks like you have done a lot. Thanks!</div><div><br></div><div>1) Here is the first problem: I can't import modular theory</div><div><br></div><div>
<p class=""><span class=""># import_theory "modular";;</span></p>
<p class=""><span class="">opentheory: unknown switch "--directory"</span></p>
<p class=""><span class="">usage: opentheory info [info options] INPUT</span></p>
<p class=""><span class="">Extract information from packages and files.</span></p>
<p class=""><span class="">Displaying info options:</span></p>
<p class=""><span class=""> --format FORMAT ...... format package information</span></p>
<p class=""><span class=""> --information ........ display all package information</span></p>
<p class=""><span class=""> --theory ............. display the package theory</span></p>
<p class=""><span class=""> --article ............ output the package theory in article format</span></p>
<p class=""><span class=""> --requires ........... list satisfying required packages</span></p>
<p class=""><span class=""> --inference .......... display count of inference rules</span></p>
<p class=""><span class=""> --files .............. list package files</span></p>
<p class=""><span class=""> --document ........... output package document in HTML format</span></p>
<p class=""><span class=""> --theory-source ...... output package theory source</span></p>
<p class=""><span class=""> --theorems ........... output package theorems in article format</span></p>
<p class=""><span class=""> --assumptions ........ output package assumptions in article format</span></p>
<p class=""><span class=""> --symbols ............ list all symbols in the package</span></p>
<p class=""><span class=""> --includes ........... list included packages</span></p>
<p class=""><span class=""> -o, --output FILE .... write previous information to FILE</span></p>
<p class=""><span class=""> --output-version N ... set previous information output version</span></p>
<p class=""><span class=""> --show-assumptions ... do not hide satisfied assumptions</span></p>
<p class=""><span class=""> --show-derivations ... show assumptions and axioms for each theorem</span></p>
<p class=""><span class=""> --upgrade-theory ..... upgrade theory source to latest versions</span></p>
<p class=""><span class=""> --preserve-theory .... do not optimize theory source</span></p>
<p class=""><span class=""> -- ................... no more options</span></p>
<p class=""><span class=""> -?, -h, --help ....... display option information and exit</span></p>
<p class=""><span class=""> -v, --version ........ display version information</span></p>
<p class=""><span class="">INPUT is one of the following:</span></p>
<p class=""><span class=""> - A package: NAME-VERSION or NAME (for the latest version)</span></p>
<p class=""><span class=""> - A theory source file: FILE.thy or theory:FILE</span></p>
<p class=""><span class=""> - A proof article file: FILE.art or article:FILE</span></p>
<p class=""><span class=""> - A package tarball: FILE.tgz or tarball:FILE</span></p>
<p class=""><span class=""> - A package staged for installation: staged:NAME-VERSION</span></p>
<p class=""><span class="">NAME is a package name (e.g., base).</span></p>
<p class=""><span class="">VERSION is a package version (e.g., 1.0).</span></p>
<p class=""><span class="">FILE is a filename; use - to read from stdin or write to stdout.</span></p>
<p class=""><span class="">FORMAT is a string containing {NAME,VERSION,DESCRIPTION,CHECKSUM,EMPTY}.</span></p>
<p class=""><span class="">Exception: Failure "theory_directory: strange output for theory stream".</span></p><p class=""><span class=""><br></span></p><p class=""><span class="">2) I also noticed that you removed start_logging();; Then how should I export the proofs. Could you please give me an example or maybe update <a href="https://docs.google.com/document/d/1zPFYM09HLJX0LzGiuWPLij4wU6R0r7GgZMcnBDSIM_M/edit?usp=sharing">the hacking doc</a>?</span></p><p class="">Thanks!</p><p class="">Robert</p></div></div><div class="gmail_extra"><br><div class="gmail_quote">On 27 October 2015 at 04:04, 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>
I have worked a little more on the HOL Light/OpenTheory interface, and<br>
now include the HOL Light names of theorems in the theory packages, in<br>
addition to the HOL Light names of type operators and constants. For<br>
example, the following command results in the theorems in the modular<br>
theory having Ocaml names just like they'd been proved in an<br>
interactive session:<br>
<br>
# import_theory "modular";;<br>
auto-imported theory stream : {128} |> {55}<br>
auto-imported theory probability : {39} |> {18}<br>
auto-imported theory natural-bits : {205} |> {210}<br>
auto-imported theory natural-divides : {177} |> {136}<br>
imported sub-theory modular-witness : {8} |> {1}<br>
imported theory modular : {75} |> {68}<br>
val it : Theory.t = modular : {75} |> {68}<br>
# modular_exp_add;;<br>
val it : thm =<br>
|- !x m n.<br>
modular_mult (modular_exp x m) (modular_exp x n) =<br>
modular_exp x (m + n)<br>
<br>
I have also added an interpret_theory command to "interpret" a theory<br>
in another context. For example, the following command interprets the<br>
modular theory inside the word theory, renaming the type operators and<br>
constants according to the <a href="http://word-def-modular.int" rel="noreferrer" target="_blank">word-def-modular.int</a> file, and renaming the<br>
theorems by replacing the "modular" with "word" and "modulus" with<br>
"word_size".<br>
<br>
# interpret_theory<br>
{Import.source_theory = "modular";<br>
Import.interpretation = "opentheory/theories/word/<a href="http://word-def-modular.int" rel="noreferrer" target="_blank">word-def-modular.int</a>";<br>
Import.theorem_renamer = Import.replace "modular" "word" o<br>
Import.replace "modulus" "word_size";<br>
Import.destination_theory = "word-def"};;<br>
val it : Theory.t = modular : {75} |> {68}<br>
# word_exp_add;;<br>
val it : thm =<br>
|- !x m n. word_mult (word_exp x m) (word_exp x n) = word_exp x (m + n)<br>
<br>
Hopefully this will make it easier to import OpenTheory theories into HOL Light.<br>
<br>
Cheers,<br>
<br>
Joe<br>
<div class="HOEnZb"><div class="h5"><br>
On Fri, Oct 9, 2015 at 12:43 AM, Joe Leslie-Hurd <<a href="mailto:joe@gilith.com">joe@gilith.com</a>> wrote:<br>
> Hi Robert,<br>
><br>
> I've worked a little more on the HOL Light import, so now all you need<br>
> to do is the following:<br>
><br>
> # logfile "test-import";;<br>
> val it : unit = ()<br>
> # import_theory "word10";;<br>
> auto-importing theory stream<br>
> auto-importing theory probability<br>
> auto-importing theory natural-bits<br>
> auto-importing theory natural-divides<br>
> importing theory word10<br>
> val it : thm list * thm list = ...<br>
> # imported_theories ();;<br>
> val it : string list =<br>
> ["base"; "stream"; "probability"; "natural-bits"; "natural-divides";<br>
> "word10"]<br>
><br>
> Under the covers it calls the opentheory tool to recursively import<br>
> all the required theories, extends the interpretation for the new<br>
> theory, converts the theory into an article with cleared local symbol<br>
> names, and finally reads the article into HOL Light.<br>
><br>
> Hopefully this should make things a little easier.<br>
><br>
> Cheers,<br>
><br>
> Joe<br>
><br>
> On Thu, Oct 8, 2015 at 1:05 AM, Joe Leslie-Hurd <<a href="mailto:joe@gilith.com">joe@gilith.com</a>> wrote:<br>
>> Hi Robert,<br>
>><br>
>> I've just released a new version of the opentheory tool with a new<br>
>> option that should solve the name clashing problem when importing into<br>
>> HOL Light. Here's how you use it:<br>
>><br>
>> opentheory info --clear-local-names --article -o parser.art parser<br>
>><br>
>> This replaces the names of all symbols that are local to the theory<br>
>> with the special empty name (which prints as _). You can see this with<br>
>> the following command:<br>
>><br>
>> $ opentheory info --symbols parser.art<br>
>> 7 external type operators: -> bool Data.List.list Data.Option.option<br>
>> Data.Pair.* Data.Sum.+ Number.Natural.natural<br>
>> 46 external constants: = select ! /\ ==> ? ?! \/ ~ cond F T Data.List.::<br>
>> Data.List.@ Data.List.[] Data.List.concat Data.List.length Data.List.map<br>
>> Data.Option.case.none.some Data.Option.map Data.Option.none<br>
>> Data.Option.some Data.Pair., Data.Pair.fst Data.Pair.snd<br>
>> Data.Sum.case.left.right Data.Sum.left Data.Sum.right Function.const<br>
>> Function.o Function.surjective Number.Natural.* Number.Natural.+<br>
>> Number.Natural.- Number.Natural.< Number.Natural.<= Number.Natural.^<br>
>> Number.Natural.bit0 Number.Natural.bit1 Number.Natural.even<br>
>> Number.Natural.suc Number.Natural.zero Relation.irreflexive<br>
>> Relation.measure Relation.subrelation Relation.wellFounded<br>
>> 3 defined type operators: _ Parser.parser Parser.Stream.stream<br>
>> 59 defined constants: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _<br>
>> Parser.any Parser.apply Parser.dest Parser.filter Parser.fold<br>
>> Parser.fold.prs Parser.foldN Parser.invariant Parser.inverse Parser.map<br>
>> Parser.mapPartial Parser.mapPartial.prs Parser.mk Parser.none<br>
>> Parser.orelse Parser.orelse.prs Parser.pair Parser.parse Parser.sequence<br>
>> Parser.sequence.prs Parser.some Parser.strongInverse Parser.token<br>
>> Parser.token.prs Parser.Stream.append Parser.Stream.case.error.eof.cons<br>
>> Parser.Stream.cons Parser.Stream.eof Parser.Stream.error<br>
>> Parser.Stream.fromList Parser.Stream.isProperSuffix<br>
>> Parser.Stream.isSuffix Parser.Stream.length Parser.Stream.map<br>
>> Parser.Stream.toList<br>
>><br>
>> Here you can see there is one occurrence of a local type operator and<br>
>> many occurrences of local constants. Local symbols are defined and<br>
>> used internally in the theory but do not appear in any exported<br>
>> theorem (or assumption).<br>
>><br>
>> It was local symbols that were causing name clashes when importing<br>
>> theories into HOL Light. I have updated the import mechanism so that<br>
>> fresh symbol names are generated when an empty name is encountered.<br>
>> You will need to execute a git pull of the OpenTheory HOL Light fork<br>
>> to get this update.<br>
>><br>
>> The parser theory now imports without issue, and word10 theory imports<br>
>> without needing the extra extend_the_interpretation commands<br>
>> beforehand.<br>
>><br>
>> Please give the new HOL Light import flow a try and let me know of any<br>
>> problems. It was a bit trickier than expected getting it all to work,<br>
>> so it wouldn't surprise me if there were issues.<br>
>><br>
>> Cheers,<br>
>><br>
>> Joe<br>
>><br>
>> On Tue, Oct 6, 2015 at 2:22 PM, Robert White<br>
>> <<a href="mailto:ai.robert.wangshuai@gmail.com">ai.robert.wangshuai@gmail.com</a>> wrote:<br>
>>> Dear Joe,<br>
>>><br>
>>> Okay, please let me know when it's ready.<br>
>>><br>
>>> Thanks<br>
>>> Robert<br>
>>><br>
>>> On 6 October 2015 at 23:09, Joe Leslie-Hurd <<a href="mailto:joe@gilith.com">joe@gilith.com</a>> wrote:<br>
>>>><br>
>>>> No, but you should shortly be able to download a new version of the<br>
>>>> opentheory tool that will fix it.<br>
>>>><br>
>>>> Cheers,<br>
>>>><br>
>>>> Joe<br>
>>>><br>
>>>> On Tue, Oct 6, 2015 at 2:08 PM, Robert White<br>
>>>> <<a href="mailto:ai.robert.wangshuai@gmail.com">ai.robert.wangshuai@gmail.com</a>> wrote:<br>
>>>> >> This is a case of a theory-local definition clashing with an existing<br>
>>>> > definition of the same name. It will be solved by the same change that<br>
>>>> > I'm working on that will make the extra extend_the_interpretation<br>
>>>> > commands unnecessary.<br>
>>>> ><br>
>>>> > So looks like i can't do anything for now on it?<br>
>>>> ><br>
>>>> ><br>
>>>> ><br>
>>>> > On 6 October 2015 at 23:04, Joe Leslie-Hurd <<a href="mailto:joe@gilith.com">joe@gilith.com</a>> wrote:<br>
>>>> >><br>
>>>> >> Hi Robert,<br>
>>>> >><br>
>>>> >> This is a case of a theory-local definition clashing with an existing<br>
>>>> >> definition of the same name. It will be solved by the same change that<br>
>>>> >> I'm working on that will make the extra extend_the_interpretation<br>
>>>> >> commands unnecessary.<br>
>>>> >><br>
>>>> >> Cheers,<br>
>>>> >><br>
>>>> >> Joe<br>
>>>> >><br>
>>>> >> On Tue, Oct 6, 2015 at 4:00 AM, Robert White<br>
>>>> >> <<a href="mailto:ai.robert.wangshuai@gmail.com">ai.robert.wangshuai@gmail.com</a>> wrote:<br>
>>>> >> > Dear Joe,<br>
>>>> >> ><br>
>>>> >> > I also noticed that parser is has the following errors:<br>
>>>> >> ><br>
>>>> >> > Exception:<br>
>>>> >> ><br>
>>>> >> > Failure<br>
>>>> >> ><br>
>>>> >> > "in article parser.art at line 457: defineConst\nstack = [Term;<br>
>>>> >> > \"HOLLight.NUMSUM\"; Term; Term; Term; Var; Term; Var; Term; Var;<br>
>>>> >> > Term;<br>
>>>> >> > Var;<br>
>>>> >> > [[\"HOLLight.NUMLEFT\"; Var]]; Term; Var; Var; Var; Var;<br>
>>>> >> > \"HOLLight.INJP\";<br>
>>>> >> > \"HOLLight.ZBOT\"; Term; Term; Term; Var; Term; Term; Var; Term; Var;<br>
>>>> >> > \"HOLLight.ZRECSPACE\"; [\"A\"]; \"HOLLight._dest_rec\";<br>
>>>> >> > \"HOLLight._mk_rec\"; \"HOLLight.recspace\"; \"a1\"; Var; [\"A\"];<br>
>>>> >> > \"HOLLight._dest_pstream\"; \"HOLLight._mk_pstream\";<br>
>>>> >> > \"Parser.Stream.stream\"; TypeOp<fun>; TypeOp<fun>; Const<!>;<br>
>>>> >> > Term]\nnew_constant: constant NUMSUM has already been declared".<br>
>>>> >> ><br>
>>>> >> ><br>
>>>> >> > I looked into it and found that NUMSUM has been declared in<br>
>>>> >> > <a href="http://int_type.ml" rel="noreferrer" target="_blank">int_type.ml</a><br>
>>>> >> > which is loaded in <a href="http://hol.ml" rel="noreferrer" target="_blank">hol.ml</a>.<br>
>>>> >> ><br>
>>>> >> > Could you please update this package?<br>
>>>> >> ><br>
>>>> >> > Thanks!<br>
>>>> >> ><br>
>>>> >> > Robert<br>
>>>> >> ><br>
>>>> >> ><br>
>>>> >> > On 6 October 2015 at 12:31, Robert White<br>
>>>> >> > <<a href="mailto:ai.robert.wangshuai@gmail.com">ai.robert.wangshuai@gmail.com</a>><br>
>>>> >> > wrote:<br>
>>>> >> >><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;<br>
>>>> >> >> Term;<br>
>>>> >> >> Var; \"llist.lrep_ok\"; Var; Term; Term; [\"A\"];<br>
>>>> >> >> \"llist.llist.rep\";<br>
>>>> >> >> \"llist.llist.abs\"; \"llist.llist\"; \"a0\"; \"llist.LFINITE\";<br>
>>>> >> >> Var;<br>
>>>> >> >> 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;<br>
>>>> >> >> 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<br>
>>>> >> >> <<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; [];<br>
>>>> >> >>> Thm;<br>
>>>> >> >>> Thm; [[]; [[Var; Term]]]; Thm; Thm; Thm; Thm; Thm; Thm; Thm; Thm;<br>
>>>> >> >>> Thm;<br>
>>>> >> >>> 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;<br>
>>>> >> >>> 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<br>
>>>> >> >>> <<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<br>
>>>> >> >>>> don't<br>
>>>> >> >>>> know 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>><br>
>>>> >> >>>> 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,<br>
>>>> >> >>>>> 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<br>
>>>> >> >>>>> 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<br>
>>>> >> >>>>> it's<br>
>>>> >> >>>>> unreasonable to expect people to discover this information. I'll<br>
>>>> >> >>>>> work<br>
>>>> >> >>>>> on fixing it so these multiple extend_the_interpretation commands<br>
>>>> >> >>>>> 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 =<br>
>>>> >> >>>>> > [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>;<br>
>>>> >> >>>>> > 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<br>
>>>> >> >>>>> > 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:<br>
>>>> >> >>>>> > 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>
>>>> >> ><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>
>>>> > 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>
>>> 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>