From ramana at member.fsf.org Fri Mar 4 00:21:12 2016 From: ramana at member.fsf.org (Ramana Kumar) Date: Fri, 4 Mar 2016 11:21:12 +1100 Subject: [opentheory-users] interpretation in separate file Message-ID: Is it possible to include an interpretation in a theory file, rather than having to write it out inline? Since I sometimes want to include a rather large interpretation within multiple blocks within the same theory file, I end up having to write a template file and then generate the real .thy file from that, to avoid lots of copy-pasting. Is mine the recommended approach, or is there a better way? -------------- next part -------------- An HTML attachment was scrubbed... URL: From joe at gilith.com Fri Mar 4 18:51:40 2016 From: joe at gilith.com (Joe Leslie-Hurd) Date: Fri, 4 Mar 2016 10:51:40 -0800 Subject: [opentheory-users] interpretation in separate file In-Reply-To: References: Message-ID: Hi Ramana, I agree with you that it would be good for theory files to support pulling in interpretations from files. How about the following syntax: interpret-file: "file.int" inside a theory block? It probably makes sense to allow multiple of these, just like multiple interpret: type/const "X" as "Y" lines are allowed, but raise an error if the same symbol is interpreted in multiple ways. Cheers, Joe On Thu, Mar 3, 2016 at 4:21 PM, Ramana Kumar wrote: > Is it possible to include an interpretation in a theory file, rather than > having to write it out inline? Since I sometimes want to include a rather > large interpretation within multiple blocks within the same theory file, I > end up having to write a template file and then generate the real .thy file > from that, to avoid lots of copy-pasting. Is mine the recommended approach, > or is there a better way? > > _______________________________________________ > opentheory-users mailing list > opentheory-users at gilith.com > http://www.gilith.com/mailman/listinfo/opentheory-users > From ramana at member.fsf.org Fri Mar 4 20:14:15 2016 From: ramana at member.fsf.org (Ramana Kumar) Date: Sat, 5 Mar 2016 07:14:15 +1100 Subject: [opentheory-users] interpretation in separate file In-Reply-To: References: Message-ID: Hi Joe, It turns out this is not so urgent for me since Michael and I came up with another method: Put all the article-combination stuff into one file uninterpreted.thy (main block is a union), then turn that into uninterpreted.art, and finally do the interpretation all at once (so it only appears in one file) in interpreted.thy, whose main block is an article block for "uninterpreted.art". However, interpretations from files would probably still be good for other scenarios. I would tweak your suggested syntax to use "interpretation" rather than "interpret-file", to match "article" (which also takes a filename). Cheers, Ramana On 5 March 2016 at 05:51, Joe Leslie-Hurd wrote: > Hi Ramana, > > I agree with you that it would be good for theory files to support > pulling in interpretations from files. How about the following syntax: > > interpret-file: "file.int" > > inside a theory block? It probably makes sense to allow multiple of > these, just like multiple > > interpret: type/const "X" as "Y" > > lines are allowed, but raise an error if the same symbol is > interpreted in multiple ways. > > Cheers, > > Joe > > On Thu, Mar 3, 2016 at 4:21 PM, Ramana Kumar > wrote: > > Is it possible to include an interpretation in a theory file, rather than > > having to write it out inline? Since I sometimes want to include a rather > > large interpretation within multiple blocks within the same theory file, > I > > end up having to write a template file and then generate the real .thy > file > > from that, to avoid lots of copy-pasting. Is mine the recommended > approach, > > or is there a better way? > > > > _______________________________________________ > > opentheory-users mailing list > > opentheory-users at gilith.com > > http://www.gilith.com/mailman/listinfo/opentheory-users > > > > _______________________________________________ > opentheory-users mailing list > opentheory-users at gilith.com > http://www.gilith.com/mailman/listinfo/opentheory-users > -------------- next part -------------- An HTML attachment was scrubbed... URL: From ramana at member.fsf.org Tue Mar 29 22:03:19 2016 From: ramana at member.fsf.org (Ramana Kumar) Date: Wed, 30 Mar 2016 09:03:19 +1100 Subject: [opentheory-users] redundant import check Message-ID: Hi Joe, I have not had time to investigate this thoroughly yet, but I have a suspicion that the redundant import check might not check for constants that don't appear in any theorems. Therefore, removing a "redundant" import might result in two different constants with the same name. Do you think this is possible? Cheers, Ramana -------------- next part -------------- An HTML attachment was scrubbed... URL: From ramana at member.fsf.org Wed Mar 30 03:25:09 2016 From: ramana at member.fsf.org (Ramana Kumar) Date: Wed, 30 Mar 2016 14:25:09 +1100 Subject: [opentheory-users] package upload failed Message-ID: Hi, I am trying to upload a package to the Gilith OpenTheory repository, using the opentheory tool. It fails and does not really explain why. Here is the output: encountered error, so deleted upload to gilith repo FATAL ERROR: opentheory failed: error response from repo: Gilith OpenTheory Repo - Upload Package
Elephant
and Castle

Upload a Package

The recommended way to upload packages is to use the opentheory package management tool, but it is also possible to manually upload package tarballs using the following form:

Tarball*  

package upload failed package upload failed What could be wrong? Thanks, Ramana -------------- next part -------------- An HTML attachment was scrubbed... URL: From joe at gilith.com Wed Mar 30 06:33:20 2016 From: joe at gilith.com (Joe Leslie-Hurd) Date: Tue, 29 Mar 2016 23:33:20 -0700 Subject: [opentheory-users] package upload failed In-Reply-To: References: Message-ID: Hi Ramana, That doesn't look good, but I think perhaps I'm the only one who's uploaded packages up until now, so perhaps it shouldn't be too surprising there are bugs lurking. Here are some questions to help debug the problem: Was there any output between executing the opentheory upload command and the text you pasted? What OS are you running? Can you verify that you get this response from this curl command: $ curl --silent --show-error --user-agent opentheory http://opentheory.gilith.com/ gilith repo: welcome What is the output of curl --version? Cheers, Joe On Tue, Mar 29, 2016 at 8:25 PM, Ramana Kumar wrote: > Hi, > > I am trying to upload a package to the Gilith OpenTheory repository, using > the opentheory tool. It fails and does not really explain why. Here is the > output: > > encountered error, so deleted upload to gilith repo > > FATAL ERROR: opentheory failed: > error response from repo: > "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> > > > > Gilith OpenTheory Repo - Upload Package type="text/css" href="../opentheory.css" /> type="image/x-icon" href="../favicon.ico" /> > > >
> >
class="image">Elephant and
> Castle

Upload a Package

> >

The recommended way to upload packages is to use the > > opentheory > > package management tool, but it is also possible to manually > upload package tarballs using the following form:

method="post" enctype="multipart/form-data">

class="field">Tarball*   >

value="upload package" />

id="main-clearer">
> > > package upload failed > package upload failed > > What could be wrong? > Thanks, > Ramana > > _______________________________________________ > opentheory-users mailing list > opentheory-users at gilith.com > http://www.gilith.com/mailman/listinfo/opentheory-users > From ramana at member.fsf.org Wed Mar 30 06:41:47 2016 From: ramana at member.fsf.org (Ramana Kumar) Date: Wed, 30 Mar 2016 17:41:47 +1100 Subject: [opentheory-users] package upload failed In-Reply-To: References: Message-ID: On 30 March 2016 at 17:33, Joe Leslie-Hurd wrote: > Hi Ramana, > > That doesn't look good, but I think perhaps I'm the only one who's > uploaded packages up until now, so perhaps it shouldn't be too > surprising there are bugs lurking. > Actually I think I've uploaded a package before (called cl), but it was a long time ago. > > Here are some questions to help debug the problem: > > Was there any output between executing the opentheory upload command > and the text you pasted? > Yes: About to upload to gilith repo in 2 steps 1. Upload the package: hol-base-1.0 2. Send a confirmation email to the package author: HOL developers Continue [y/N]? y started upload to gilith repo: http://opentheory.gilith.com/?upload=d3c0f4027d2d1ba9fadd9cec2d9691e8 > What OS are you running? > GNU > > Can you verify that you get this response from this curl command: > > $ curl --silent --show-error --user-agent opentheory > http://opentheory.gilith.com/ > gilith repo: welcome > > Verified: I get that response. > What is the output of curl --version? > curl 7.47.1 (x86_64-pc-linux-gnu) libcurl/7.47.1 OpenSSL/1.0.2g zlib/1.2.8 libidn/1.32 libssh2/1.7.0 Protocols: dict file ftp ftps gopher http https imap imaps pop3 pop3s rtsp scp sftp smb smbs smtp smtps telnet tftp Features: AsynchDNS IDN IPv6 Largefile GSS-API Kerberos SPNEGO NTLM NTLM_WB SSL libz TLS-SRP UnixSockets > > Cheers, > > Joe > > > On Tue, Mar 29, 2016 at 8:25 PM, Ramana Kumar > wrote: > > Hi, > > > > I am trying to upload a package to the Gilith OpenTheory repository, > using > > the opentheory tool. It fails and does not really explain why. Here is > the > > output: > > > > encountered error, so deleted upload to gilith repo > > > > FATAL ERROR: opentheory failed: > > error response from repo: > > > "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> > > > > > > > > Gilith OpenTheory Repo - Upload Package rel="stylesheet" > > type="text/css" href="../opentheory.css" /> > type="image/x-icon" href="../favicon.ico" /> > > > > > >
> > > >
> class="image">Elephant
> and
> > Castle

Upload a Package

> > > >

The recommended way to upload packages is to use the > > > > opentheory > > > > package management tool, but it is also possible to manually > > upload package tarballs using the following form:

> method="post" enctype="multipart/form-data">

> class="field">Tarball*   > >

> value="upload package" />

> id="main-clearer">
> > > > > > package upload failed > > package upload failed > > > > What could be wrong? > > Thanks, > > Ramana > > > > _______________________________________________ > > opentheory-users mailing list > > opentheory-users at gilith.com > > http://www.gilith.com/mailman/listinfo/opentheory-users > > > > _______________________________________________ > opentheory-users mailing list > opentheory-users at gilith.com > http://www.gilith.com/mailman/listinfo/opentheory-users > -------------- next part -------------- An HTML attachment was scrubbed... URL: From joe at gilith.com Thu Mar 31 07:18:47 2016 From: joe at gilith.com (Joe Leslie-Hurd) Date: Thu, 31 Mar 2016 00:18:47 -0700 Subject: [opentheory-users] redundant import check In-Reply-To: References: Message-ID: Hi Ramana, There are a couple of different redundant warnings the tool can generate: I assume your question is about the "redundant import X in theory block Y" warning message, not the "redundant requires: X" warning. I've just looked at the code, and for an import X to be reported as redundant in theory block Y both of the following must hold: 1. The theorems of X and the assumptions of Y are disjoint. 2. The defined symbols in the theorems of X and the input symbols in theorems of Y are disjoint. If I interpret your question correctly, you are concerned about removing a redundant import X containing a defined symbol S that is used in Y but not exported in a theorem. After scratching my head for some time I cannot see how removing X from the imports of Y could result in the creation of different symbols with the same name, but perhaps I am missing something. Do you have a problem scenario in mind? Cheers, Joe On Tue, Mar 29, 2016 at 3:03 PM, Ramana Kumar wrote: > Hi Joe, > > I have not had time to investigate this thoroughly yet, but I have a > suspicion that the redundant import check might not check for constants that > don't appear in any theorems. Therefore, removing a "redundant" import might > result in two different constants with the same name. Do you think this is > possible? > > Cheers, > Ramana > > _______________________________________________ > opentheory-users mailing list > opentheory-users at gilith.com > http://www.gilith.com/mailman/listinfo/opentheory-users > From joe at gilith.com Thu Mar 31 07:22:52 2016 From: joe at gilith.com (Joe Leslie-Hurd) Date: Thu, 31 Mar 2016 00:22:52 -0700 Subject: [opentheory-users] package upload failed In-Reply-To: References: Message-ID: Hi Ramana, Well I can't see anything immediately wrong with your setup, and my server logs are also uninformative. Let me see whether I can still upload packages myself or if some important bits have rotted. Cheers, Joe On Tue, Mar 29, 2016 at 11:41 PM, Ramana Kumar wrote: > On 30 March 2016 at 17:33, Joe Leslie-Hurd wrote: >> >> Hi Ramana, >> >> That doesn't look good, but I think perhaps I'm the only one who's >> uploaded packages up until now, so perhaps it shouldn't be too >> surprising there are bugs lurking. > > > Actually I think I've uploaded a package before (called cl), but it was a > long time ago. > >> >> >> Here are some questions to help debug the problem: >> >> Was there any output between executing the opentheory upload command >> and the text you pasted? > > > Yes: > > About to upload to gilith repo in 2 steps > 1. Upload the package: > hol-base-1.0 > 2. Send a confirmation email to the package author: > HOL developers > Continue [y/N]? y > started upload to gilith repo: > http://opentheory.gilith.com/?upload=d3c0f4027d2d1ba9fadd9cec2d9691e8 > >> >> What OS are you running? > > > GNU > >> >> >> Can you verify that you get this response from this curl command: >> >> $ curl --silent --show-error --user-agent opentheory >> http://opentheory.gilith.com/ >> gilith repo: welcome >> > > Verified: I get that response. > >> >> What is the output of curl --version? > > > curl 7.47.1 (x86_64-pc-linux-gnu) libcurl/7.47.1 OpenSSL/1.0.2g zlib/1.2.8 > libidn/1.32 libssh2/1.7.0 > Protocols: dict file ftp ftps gopher http https imap imaps pop3 pop3s rtsp > scp sftp smb smbs smtp smtps telnet tftp > Features: AsynchDNS IDN IPv6 Largefile GSS-API Kerberos SPNEGO NTLM NTLM_WB > SSL libz TLS-SRP UnixSockets > > >> >> >> Cheers, >> >> Joe >> >> >> On Tue, Mar 29, 2016 at 8:25 PM, Ramana Kumar >> wrote: >> > Hi, >> > >> > I am trying to upload a package to the Gilith OpenTheory repository, >> > using >> > the opentheory tool. It fails and does not really explain why. Here is >> > the >> > output: >> > >> > encountered error, so deleted upload to gilith repo >> > >> > FATAL ERROR: opentheory failed: >> > error response from repo: >> > > > "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> >> > >> > >> > >> > Gilith OpenTheory Repo - Upload Package> > rel="stylesheet" >> > type="text/css" href="../opentheory.css" />> > type="image/x-icon" href="../favicon.ico" /> >> > >> > >> >
>> > >> >
> > class="image">Elephant
>> > and
>> > Castle

Upload a Package

>> > >> >

The recommended way to upload packages is to use the >> > >> > opentheory >> > >> > package management tool, but it is also possible to manually >> > upload package tarballs using the following form:

> > method="post" enctype="multipart/form-data">

> > class="field">Tarball*   >> >

> > value="upload package" />

> > id="main-clearer">
>> > >> > >> > package upload failed >> > package upload failed >> > >> > What could be wrong? >> > Thanks, >> > Ramana >> > >> > _______________________________________________ >> > opentheory-users mailing list >> > opentheory-users at gilith.com >> > http://www.gilith.com/mailman/listinfo/opentheory-users >> > >> >> _______________________________________________ >> opentheory-users mailing list >> opentheory-users at gilith.com >> http://www.gilith.com/mailman/listinfo/opentheory-users > > > > _______________________________________________ > opentheory-users mailing list > opentheory-users at gilith.com > http://www.gilith.com/mailman/listinfo/opentheory-users > From ramana at member.fsf.org Thu Mar 31 19:34:03 2016 From: ramana at member.fsf.org (Ramana Kumar) Date: Fri, 1 Apr 2016 06:34:03 +1100 Subject: [opentheory-users] redundant import check In-Reply-To: References: Message-ID: Hi Joe, Thanks for the clarification. I think you interpreted my question correctly. After reading your description, I think the checks for redundant imports in a theory block are correct as is. In general, though, I note that it is effectively impossible to define a constant in OpenTheory without also proving a theorem about it. To get around this, I prove a trivial theorem (|- c = c) about a new constant c to ensure its definition is picked up. My original question was motivated by a problem that I still have. Namely, I receive unexpected warnings about 2 different constants with the same name. I thought this was because I hadn't imported the block that defines the constant into all the blocks that use it, but (hopefully I checked this right) if I add any of those import lines they are flagged as redundant. The warning about different constants therefore looks like a red herring; the resulting theory package doesn't appear to have any problems like unexpected axioms or assumptions or ungrounded constants. Perhaps you could explain further the circumstances under which the 2 different constants warning occurs. I can also provide the relevant articles and theory packages but they are quite large and unwieldy so I'd rather hold off on that at first. Cheers, Ramana On 31 March 2016 at 18:18, Joe Leslie-Hurd wrote: > Hi Ramana, > > There are a couple of different redundant warnings the tool can > generate: I assume your question is about the "redundant import X in > theory block Y" warning message, not the "redundant requires: X" > warning. > > I've just looked at the code, and for an import X to be reported as > redundant in theory block Y both of the following must hold: > > 1. The theorems of X and the assumptions of Y are disjoint. > 2. The defined symbols in the theorems of X and the input symbols in > theorems of Y are disjoint. > > If I interpret your question correctly, you are concerned about > removing a redundant import X containing a defined symbol S that is > used in Y but not exported in a theorem. After scratching my head for > some time I cannot see how removing X from the imports of Y could > result in the creation of different symbols with the same name, but > perhaps I am missing something. > > Do you have a problem scenario in mind? > > Cheers, > > Joe > > > On Tue, Mar 29, 2016 at 3:03 PM, Ramana Kumar > wrote: > > Hi Joe, > > > > I have not had time to investigate this thoroughly yet, but I have a > > suspicion that the redundant import check might not check for constants > that > > don't appear in any theorems. Therefore, removing a "redundant" import > might > > result in two different constants with the same name. Do you think this > is > > possible? > > > > Cheers, > > Ramana > > > > _______________________________________________ > > opentheory-users mailing list > > opentheory-users at gilith.com > > http://www.gilith.com/mailman/listinfo/opentheory-users > > > > _______________________________________________ > opentheory-users mailing list > opentheory-users at gilith.com > http://www.gilith.com/mailman/listinfo/opentheory-users > -------------- next part -------------- An HTML attachment was scrubbed... URL: