HZNM.COM
welcome to my space
X
Search:  
 HOME   Tuatology checker of ML Function
Tuatology checker of ML Function
Published by: webmaster 2009-01-09
Welcome to:hznm.com

  • Where can I get the example scripts of Standard ML about "tuatology checker" ? The ML function is about to check if a propositional formula is a tautology. Thx


  • Thanks for your excellent job!!! I am going to code them and run if it is work. I want to know after I rate this question, can I still ask if there is something wrong? anyway, thank you very much!!!


  • Thank you for the clarification request. As requested, I have unzipped the files in the URLs listed above and placed them at: http://www.rbnn.com/google/ml/sample3.sml and http://www.rbnn.com/google/ml/sample4.sml In addition, the relevant functions from both files have been extracted and placed in the file http://www.rbnn.com/google/ml/checker.sml as well as taut being renamed. I hope that this is helpful to you.


  • hi, rbnn I don't know how to appy the function checker in to the checker.sml checker ( Disj ( Atom "A", Neg ( Disj ( Conj (Atom "A", Neg (Atom "B")), Conj (Neg (Atom "C"), Atom "C")) ) ) ) I tried to applied to checker.sml and compiled it, but I couldn't. Could you do me a favor? I know it is piece of cake for you. :P


  • I just realized that the "inter" function from the URL: http://www.cl.cam.ac.uk/users/lcp/MLbook/programs/sample3.sml.gz uses the earlier "mem" function, also from that URL, which is defined there as: infix mem; fun x mem = false x mem (y::l) = (x=y) orelse (x mem l);


  • hi,rynn. Do you know about Ada? I have a new question posted on, if you are interested in it, please check it out: https://answers.google.com/answers/main?cmd=threadview&id=127046 Please help me by tomorrow or tonight!!
  • A machine program for theorem-proving::
    Source Communications of the ACM archive Volume 5 , Issue 7 (July 1962) table of contents Martin Davis Institute of Mathematical Sciences, New York Univ., New York The programming of a proof procedure is discussed in connection with trial runs and possible improvements.
    http://portal.acm.org/citation.cfm?doid=368273.368557
    HOME


  • Hi, rbnn I am sorry to bother you again, but I just really need some help. The project got fixed is very important for my study. I saw nobody can fix it, so I just rise the price to $100 (you can feel how the project is important for me such a poor student!!) Please give it a try, you don't need to make the project run 100% correct, but just at least can be compiled by any way you modify. Thanks!!!


  • I am not sure what you mean by "example scripts of ML about tautology checker"? Are you looking for someone to write a program that performs ML tautology checking? Are you looking for existing ML applications that perform tautology checking? If the former interpretation of your question is what is desired, then I would need to know which compiler and platform you are using, what efficiency constraints you are looking for (seeking clarity or efficiency, for instance), and a precise function signature. Because it would require a lot of time for me to download a compiler and refamiliarize myself with ML, the price as per https://answers.google.com/answers/pricing.html would need to be much higher for me to consider doing this, however.


  • sorry..please ignore the last request I did, it's my misunderstanding..... :P


  • rbnn..YOU ARE GREAT!!!! I really appreciate it!!! :)
  • Word problems requiring exponential time(Preliminary Report)::
    Source Annual ACM Symposium on Theory of Computing archive Proceedings of the fifth annual ACM symposium on Theory of computing table of contents ACM: Association for Computing Machinery SIGACT: ACM Special Interest Group on Algorithms and Computation Theory
    http://doi.acm.org/10.1145/800125.804029
    HOME


  • Fortunately, I see another researcher has answered the question.


  • Thank you; your comments are appreciated.


  • Thank you for mentioning that to me. I would very much have liked to tackle that question, but my brother is visiting for the next couple of days and it is highly unlikely that I will have time. By the way, if you wish you can put "for only" in the subject title of any question, and only that researcher will answer it.


  • Hi, cuz I am a poor student ,so just looking for existing ML applications that perform tautology checking. more info plz check the link: http://www.cs.fit.edu/~ryan/cse4250/proj-taut.html By the way, how much would you consider to do such a program? :)


  • I enjoyed researching this question and especially I enjoyed reading the sample code. As a professional programmer, I normally have to use languages much less elegant than ML. Thus, in the future, should you have any ML code that needs to be written, please do not hesitate to consider using Google Answers. I have located a sample ML tautology checker, which seems to be exactly what you are looking based on the description in the URL you provided, here: http://www.cl.cam.ac.uk/users/lcp/MLbook/programs/sample4.sml.gz . I think the best way to navigate to this link is to go to Sample programs for ML for the Working Programmer: http://www.cl.cam.ac.uk/users/lcp/MLbook/programs/ Then click on "Chapter 4" . This link, however, is a zipped file. If you are unable to unzip the file, just mention this and I would be happy to upload an unzipped version of this file for you. Note that the program in Chapter 4 uses the intersection program from chapter 3, which is at the URL: http://www.cl.cam.ac.uk/users/lcp/MLbook/programs/sample3.sml.gz . This program is simple enough and small enough to include here: fun inter(,ys) = inter(x::xs, ys) = if x mem ys then x::inter(xs, ys) else inter(xs, ys); Thus, in order to create the desired file checker.sml , just rename the "taut" function in Chapter 4 sample program to "checker", include the inter definition above, and you will be done. I was actually hoping to be able to write you an ML program, because ML is a very beautiful and elegant language, particularly for this sort of application. Unfortunately for me, though, it seems to me that the problem is pretty much solved in the links above, so I do not think I can provide added value by writing my own program here. Note though I have not actually installed SML and tested these programs, but they look simple and clear and should work. Finally, as always, please remember that if you have any questions, or if you have any difficulty viewing the URLs I mentioned, or any other comments or concerns, please solicit clarification via the "Request Clarification" button on your browser before rating this answer. Search Strategy -------------- I knew that a general search on ML and propositional logic would turn up too many hits to be useful, but once I saw the question clarification, I searched on "ml tautology" in google. I went through five or six sites before finding, much to my surprise, that the exact problem you described was solved at the URL given.
  • ArtsJournal: Critical Conversation::
    Daily arts news from more than 200 newspapers, I need to run the Condescension & One-Upmanship checker on the remainder of the post. posted @ 2:03 pm Maybe it’s a function of growing up in the provinces (Kalamazoo, Mich., in my case), but I’ve never known people not to be confident in their dismissal of modern arts.
    http://www.artsjournal.com/cc/archives/08-04-04.shtml
    HOME


  • Yes, you can submit clarification requests after the question is rated.


  • Excellent job, and detailed explaination!!! Nice job!


  • It turns out that the function checker in the file checker.sml is incorrect. The original function taut only works if its argument is in conjunctive normal form. The correct function checker is: fun checker(p)= taut (cnf (nnf p)); where taut is as given in sample4.sml: fun taut (Conj(p,q)) = taut p andalso taut q taut p = not (null (inter (positives p, negatives p))); I have placed the revised version checker at: http://www.rbnn.com/google/ml/checker.sml . Here is a sample run: % sml.bat Standard ML of New Jersey, Version 110.0.7, September 28, 2000 [CM&CMB] - use "checker.sml"; [opening checker.sml] infix mem val mem = fn : ''a * ''a list -> bool GC #0.0.0.0.1.15: (0 ms) val inter = fn : ''a list * ''a list -> ''a list datatype prop = Atom of string Conj of prop * prop Disj of prop * prop Neg of prop val nnf = fn : prop -> prop val distrib = fn : prop * prop -> prop val cnf = fn : prop -> prop exception NonCNF val positives = fn : prop -> string list val negatives = fn : prop -> string list GC #0.0.0.0.2.59: (0 ms) val taut = fn : prop -> bool val checker = fn : prop -> bool val it = () : unit - checker ( Disj ( Atom "A", Neg ( Disj ( Conj (Atom "A", Neg (Atom "B")), Conj (Neg (Atom "C"), Atom "C")) ) ) ) ; val it = true : bool - checker(Atom "A"); val it = false : bool





  • How much does getting a small tattoo on your hip/stomach hurt?
    Do anyone else have an itchy anus? ?

    You are looking at:hznm.com's Tuatology checker of ML Function, click hznm.com to home
  • is socket thread safe
  • portability of berkeley db with multiprocesses
  • advice on multi threaded server model
  • thread question
  • max threads
  • using pthreads to create a distance vector routing table
  • can you tell me the meaning in pstack thanks
  • problems closing sockets with threads
  • welcome
  • thread after htread
  • example code programming language poll
  • multithreaded application help request
  • how to timeout or temporarily break out of an accept
  •  
  • can anyone tell me another way to use pthread mutex lock
  • thread pool and asynch i o sample code
  • wait for keypress in thread
  • thread mem growing
  • accept terminated with 2nd thread
  • what will happen when thread which is blocked is cancelled
  • pthread api
  • maximum number of threads
  • user threads
  • can t find pthread library
  • mutating draft pthreads faq
  • can someone test limits for me
  • the pthread faq thingy
  • strategy
  •  Homepage | Add to favorites | Contact us | Exchange links | LOGIN | Site map | 
    Copyright© 2008 hznm.com        Site made:CFZ