Solving Logic Questions with Logic Programming

  • Thread starter Thread starter aychamo
  • Start date Start date
  • Tags Tags
    Logic Programming
AI Thread Summary
Logic programs can effectively solve logic questions involving the validity of arguments using sentence letters. The process typically involves applying rules of inference to determine if an argument is valid or invalid. While traditional methods may rely on the 2^X rule for evaluating combinations of sentence letters, programming solutions can streamline this by automating the application of logical rules. Creating a program to handle these problems is feasible, as computers are designed to execute logical operations systematically. The discussion highlights the potential for both brute-force looping and more sophisticated interpretative methods in programming logic solvers, suggesting that following established logical rules is key to developing effective solutions.
aychamo
Messages
375
Reaction score
0
Hey guys;

Are there any logic programs to solve logic questions? I mean, the stuff like where you prove an argument valid or invalid with sentence letters.

Like with this (i'm totally making this up, I dont' know if its valid or invalid, just giving an example).

(A v F) > (B*C)
F == C
~Q
----------
F v I

Or whatever, you know what I mean? My logic teacher talked about how a computer could solve them, but was talking about using the 2^X rule to solve it (say 2^6 in this case cause there is 6 different sentence letters.) I have only a shy background in computer science, and I'm curious if you could only solve these types of problems using a huge loop, or if you could solve them by interpretation, and which way would be easier?

Thank you,
AYCHAMO!
 
Computer science news on Phys.org
I don't see how it would be too hard to create a program with the appropriate axioms, definitions, and rules of inference to solve logical problems. Solving these logical questions is mostly just a matter of following the rules of inference, I would imagine, and computer's are made to follow logical rules.
 
Sorry if 'Profile Badge' is not the correct term. I have an MS 365 subscription and I've noticed on my Word documents the small circle with my initials in it is sometimes different in colour document to document (it's the circle at the top right of the doc, that, when you hover over it it tells you you're signed in; if you click on it you get a bit more info). Last night I had four docs with a red circle, one with blue. When I closed the blue and opened it again it was red. Today I have 3...
Thread 'ChatGPT Examples, Good and Bad'
I've been experimenting with ChatGPT. Some results are good, some very very bad. I think examples can help expose the properties of this AI. Maybe you can post some of your favorite examples and tell us what they reveal about the properties of this AI. (I had problems with copy/paste of text and formatting, so I'm posting my examples as screen shots. That is a promising start. :smile: But then I provided values V=1, R1=1, R2=2, R3=3 and asked for the value of I. At first, it said...
Back
Top