My code works fine on this article. The problem was my CGI script. It should be fixed now.<br>(It had a call to runhaskell n2b.hs which got confused when called from another directory, so now I've given it an absolute path to n2b.hs.)<br>
<br><div class="gmail_quote">On Thu, Apr 5, 2012 at 11:10 PM, Joe Hurd <span dir="ltr"><<a href="mailto:joe@gilith.com">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 Ramana,<br>
<div class="im"><br>
> My guess is that you're generating an article with HOLLight.BIT2 rather than<br>
> Number.Natural.bit2, but I haven't actually run your attempt.<br>
> If that's not the problem it would be helpful if you could send me the<br>
> article that gets passed to the web tactic (or maybe I should have some<br>
> infrastructure for saving it...)<br>
<br>
</div>I've attached the article encoding the goal: FYI the opentheory<br>
summary for it is:<br>
<br>
$ opentheory info n2b-goal.art<br>
3 input type operators: -> bool Number.Natural.natural<br>
5 input constants: F Function.K Number.Natural.bit1 Number.Natural.bit2<br>
Number.Natural.zero<br>
1 assumption:<br>
|- Function.K F<br>
(Number.Natural.bit2 (Number.Natural.bit1 (Number.Natural.bit2 0)))<br>
1 theorem:<br>
|- Function.K F<br>
(Number.Natural.bit2 (Number.Natural.bit1 (Number.Natural.bit2 0)))<br>
<div class="im"><br>
> The function n2b near the top of the file is the algorithm.<br>
> It's been a while, so let's see if I can figure out the algorithm just by<br>
> reading that code...<br>
<br>
</div>Your algorithm looks absolutely fine, and should scale up to any size<br>
of natural number that a theorem prover could conceivably process.<br>
<br>
Cheers,<br>
<br>
Joe<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/mailman/listinfo/opentheory-users" target="_blank">http://www.gilith.com/mailman/listinfo/opentheory-users</a><br>
<br></blockquote></div><br>