Questions tagged [logic]

For questions about algorithms and concepts for the development or use of logical inference capabilities in computers or the use of logical inference to arrive at the most useful AI designs.

Filter by
Sorted by
Tagged with
0 votes
0 answers
24 views

How entailment is different from implication?

I am studying logic in my AI course where I have come across the definitions of entailment and logic. However, I am having trouble differentiating between these two concepts. The definition of ...
T_k's user avatar
  • 1
1 vote
0 answers
15 views

The “of-a-has” system: Is “has” a logical operator?

Given that Mary is the wife OF John, it follows that Mary is A wife and that John HAS a wife. The same “of-a-has” pattern appears in most of-phrases, files, sets, networks and formalized natural ...
Don Going's user avatar
0 votes
0 answers
27 views

How to differentiate fuzzy matching from artificial intelligence [duplicate]

I am curious about the term "fuzzy matching," and whether it falls under the category of artificial intelligence. Specifically, when can we say that a website or system is using AI, and when ...
CollarKaniz's user avatar
1 vote
1 answer
74 views

Can LLMs be used to discover new laws of logic?

Can LLMs be used to discover new laws of logic? Stephen Wolfram seems to claim this in What Is ChatGPT Doing … and Why Does It Work?, § "What Really Lets ChatGPT Work?": is there a general ...
Geremia's user avatar
  • 163
1 vote
0 answers
25 views

Translation Algorithm for CILP model (Garcez, Lamb, Gabbay) - why difference in answer between my implementation and the answer from the book? [closed]

I have implemented the Translation algorithm for CILP (Connectionist Inductive Learning and Logic Programming model by Garcez, Lamb and Gabbay) from their book "Neural-Symbolic Cognitive ...
Ravi's user avatar
  • 11
1 vote
1 answer
89 views

How to ensure continuity of AI model logic?

I am aware that this question might be vague but I must try anyways. I am looking for a method or an algorithm or even just some keywords (to conduct further research) of how to deal with phenomenon ...
GKozinski's user avatar
  • 1,240
3 votes
1 answer
184 views

What is the "state of the art" in (at least partially) symbolic/logic-based chat bots/AI assistants?

ChatGPT has had a lot of buzz around it recently, and for good reason. It has shown some amazing capabilities in responding to new information, as well as in generalizing new information that has been ...
Nathan BeDell's user avatar
0 votes
0 answers
52 views

How to relate the definition for entailment, with soundness and completeness?

Is it fair enough to say for a language model, φ, which makes certain variable A true, and if φ also makes another variable B true, then we can conclude: A ⊨ B And for a certain inference calculus c,...
Carpediem's user avatar
2 votes
1 answer
102 views

Can the truth value of unobserved sentences be computed from known sentences only?

Truthfulness is a quality that Sam Altman mentioned to be improvable on ChatGPT. This question considers a small example to try to understand the problem. A large language model includes a large set ...
Jaume Oliver Lafont's user avatar
1 vote
1 answer
70 views

Are my attempts to write "There exists a student studying all the subjects of the information technology subject" in FOL correct? [closed]

I have the following sentence, which I need to write in FOL There exists a student studying all the subjects of the information technology subject I don't know how $\forall$ can be combined with the ...
chews's user avatar
  • 13
0 votes
1 answer
61 views

Consider the following axioms- [closed]

I'm studying Artificial Intelligence and I have a question about first order logic and resolution. But I couldn't find any answer why. I tried using Google to get the answer but nothing was found.
Sadman's user avatar
  • 9
1 vote
0 answers
100 views

How to represent multiple-output logic circuits in tree-based genetic programming

Consider the following digital logic circuit, which has multiple inputs and one output: The logic circuit above can be represented in tree form: This tree representation could then be used in a tree-...
Flux's user avatar
  • 123
2 votes
1 answer
205 views

Is logic AI a complement to learning AI?

I want to know the relation between logic AI and learning AI. Logic AI here refers to the branch of AI that is based on mathematical logic. Learning AI refers to the branch of AI that is based on ...
hanugm's user avatar
  • 3,622
0 votes
1 answer
250 views

How do I show the relationship between theories and models using Conceptual Graphs?

The Mereology Theory below contains three first-order axioms that represent a part of a mereology theory. For this posting, it is important that the set of axioms should be considered as a theory. ...
Patrick Browne's user avatar
0 votes
0 answers
150 views

Why is BERT/GPT capable of "for-all" generalization?

As shown in the figure: Why does token prediction work when "Socrates" is replaced with "Plato"? From the point of view of symbolic logic, the above example effectively performs ...
Yan King Yin's user avatar
2 votes
0 answers
378 views

How are theories represented using Conceptual Graphs?

Theory 1 shows three axioms and two definitions, written in First Order Logic (FOL), that represents a fragment of a mereology theory. For this posting, it is important that the set of axioms is ...
Patrick Browne's user avatar
1 vote
1 answer
290 views

What is the difference between "Syllogism" and "Law of Syllogism"?

The logical arguments are the basis for Artificial Intelligence. That is why I picked AI community to ask my question. Reading from Wikipedia, A syllogism is a kind of logical argument that applies ...
Hori Rashid's user avatar
3 votes
1 answer
598 views

Do these FOL formula both represent "You can fool some of the people all of the time"?

You can fool some of the people all of the time. This can be represented in FOL as follows $$\exists x \; \forall t \; (\text{person}(x) \land \text{time}(t)) \Rightarrow \text{can-fool}(x,t) \tag{1}...
Vignesh Kumar's user avatar
2 votes
1 answer
174 views

How to translate sudoku XV boards in CNF format?

I'm trying to implement the logic for a Sudoku XV puzzle, that it's essentially a standard sudoku with the addition of X and V markers between some pairs of squares. X markers in adjacent pairs ...
WebStormer's user avatar
1 vote
0 answers
1k views

What is the difference between derivation and entailment?

In section 7.3 of the book Artificial Intelligence: A Modern Approach (3rd edition), it's written An inference algorithm that derives only entailed sentences is called sound or truth-preserving. The ...
desert_ranger's user avatar
1 vote
1 answer
180 views

When to use AND and when to use Implies in first-order logic?

I am trying to learn the theory behind first-order logic (FOL) and do some practice runs of converting statements into the form of FOL. One issue I keep running into is hesitating on whether to use an ...
ndrb's user avatar
  • 25
2 votes
1 answer
222 views

What are the challenges faced by using NLP to convert mathematical texts into formal logic?

From what I've figured (a) converting mathematical theorems and proofs from English to formal logic is a straightforward job for mathematicians with sufficient background, except that it takes time. ...
ghosts_in_the_code's user avatar
1 vote
0 answers
35 views

Implementing Logic Inference with Deep Learning

Short question How can I implement Logic Inference with Deep Learning? Long question Based on Symbolic Logic, chaining multiple predicates (a short example is Syllogism) is a method of implementing ...
Hyunjik Bae's user avatar
1 vote
1 answer
161 views

Does the substituted variable/constant have to appear in the unified term?

I'm checking out how to manually apply resolution on a first order predicate logic knowledge base and I'm confused about what is allowed or not in the algorithm. Let's say that we have the following ...
MikeKatz45's user avatar
2 votes
0 answers
34 views

Developmental systems that try to explain or understand the reward value in the reinforcement learning?

Are there methods (possibly logical or (how they are called in the literature) relational) that allows for the developmental systems to understand or explain the value of the received reward during ...
TomR's user avatar
  • 833
7 votes
6 answers
635 views

Is randomness anti-logical?

I came across a comment recently "reads like sentences strung together with no logic." But is this even possible? Sentences can be strung together randomly if the selection process is random. (...
DukeZhou's user avatar
  • 6,237
4 votes
1 answer
94 views

How would an AI work out this question?

I am trying to create an AI that makes reasonable guesses at truths of statements. However... Human: "Prove that no number exists which is one more than a billion." AI: "Is it true for the number 1? ...
zooby's user avatar
  • 2,186
2 votes
0 answers
137 views

Formulation of a sentence using FOL

I want to formulate the following sentence using FOL; I want also to know whether there any contradictions in it, or if it is consistent. Assuming human relations are binary: All Human Relations ...
ammu's user avatar
  • 133
1 vote
1 answer
149 views

What is the meaning of the statement $\forall x \exists y \forall z (z \neq y \iff f(x) \neq z)$?

I need to understand the meaning of the FOL statement below. $$ \forall x \exists y \forall z (z \neq y \iff f(x) \neq z) $$ Does this imply that $x$, $y$, and $z$ cannot be the same or $f(x)$ has no ...
ammu's user avatar
  • 133
1 vote
1 answer
97 views

Why is description logic decidable but first order logic is not decidable?

Description logic is a fragment of first order logic, but description logic is decidable and first order logic not decidable. Why is that? what is the role of variables in first order logic to make it ...
shah's user avatar
  • 11
5 votes
1 answer
131 views

Can (trained) neural networks be combined with symbolic AI to perform operations like AND?

Does anyone work out ways of relating trained neural networks by symbolic AI? For example, if I train a network on pictures of dogs, and I train a network on pictures of shirts. You could imagine that ...
Steven Sagona's user avatar
1 vote
0 answers
103 views

Logic questions: reasoning pattern, Infer literals, unit resolution, and-elimination etc

Show which literals can be inferred from the following knowledge bases, using both reasoning patterns and truth tables. Show all steps in your reasoning and explain your answers. 1) P & Q 2)...
user22282's user avatar
5 votes
2 answers
966 views

When is a knowledge base consistent?

I am studying a knowledge base (KB) from the book "Artificial Intelligence: A Modern Approach" (by Stuart Russell and Peter Norvig) and from this series of slides. A formula is satisfiable ...
theantomc's user avatar
  • 263
2 votes
0 answers
171 views

Choice of fuzzification function

I'm a relative newbie to fuzzie logic systems but I have some knowledge in mathematics. I have the following problem: I want to fuzzify certain values. Some are in the range [-$\inf$,$\inf$] and some ...
FuzzyUser's user avatar
1 vote
1 answer
69 views

When will we have computer programs that can compose mathematical proofs?

When will it be possible to give a computer program a bunch of assumptions and ask it if a certain statement is true or false, giving a proof or a counterexample respectively?
Siddhartha's user avatar
-1 votes
1 answer
72 views

Possible to translate generic English-language document into higher-order logic?

(Un-original) idea: Wouldn't it be cool if we could fact-check using an algorithm that could understand a whole bunch of documents (e.g. scientific papers) as higher-order logic? Question: What work ...
act's user avatar
  • 99
8 votes
0 answers
112 views

What are the current trends/open questions in logics for knowledge representation?

What are the future prospects in near future from a theoretical investigation of description logics, and modal logics in the context of artificial intelligence research?
mfioah's user avatar
  • 81
3 votes
0 answers
202 views

How do I use truth tables to prove Entailment?

For example, consider an agent concerned with predicting the weather, with variable R indicating whether or not it is likely to rain, variable C indicating whether or not it is cloudy, and variable L ...
Kirsten Jay's user avatar
3 votes
1 answer
2k views

What is the correct way to use the implication in first-order logic?

I know the implication symbol, $\rightarrow$, is used for conditions like If $A$ is true, then $B$ will be true. which can be written as $$ A \rightarrow B $$ However, sometimes the implication ...
Flavia awan's user avatar
1 vote
1 answer
176 views

Google's Principles of Artificial Intelligence [closed]

Earlier this month, Google released a set of principles governing their AI development initiatives. The stated principles are: Objectives for AI Applications: Be socially beneficial. ...
DukeZhou's user avatar
  • 6,237
1 vote
1 answer
89 views

How is uniqueness quantification translated in First Oder Logic

I have this following natural language statement: "There is only one house in area1 the size of which is less than 200m²." which is mistranslated to FOL: ...
xava's user avatar
  • 423
1 vote
1 answer
238 views

Which edges of this tree will be pruned by Alpha-beta pruning?

So I know that 'h' and 'f' will be pruned, but I'm not sure about 'k' and 'l'. When we visit 'j', technically there is no need for us to visit 'k' and 'l' because there are 2 options: one or two of ...
John Pence's user avatar
2 votes
2 answers
88 views

How to mathematically/logically represent the sense of sentences like "The cat drinks milk"?

I am absolutely new in the AI area. I would like to know how to mathematically/logically represent the sense of sentences like: The cat drinks milk. Sun is yellow. I was at work yesterday. So, that ...
DmitryBoyko's user avatar
1 vote
2 answers
67 views

String node untying algorithm

Let say that we have four straight string with colors RED, GREEN, BLUE and YELLOW. These strings are tied up randomly. We know the current state of string (like starting point, where we should we ...
TheSlv's user avatar
  • 19
1 vote
0 answers
2k views

Writing a knowledge base (KB) in propositional logic and converting the KB into conjunctive normal form

If you walk your dog, he'll be happy. If you don't walk him, he'll chew up your furniture. If he's happy or if he chews your furniture, he'll mess up your apartment. If he messes up your apartment, ...
Brat1097's user avatar
1 vote
1 answer
55 views

Is there a system that automatically designs a set of rules from the examples?

Being by no means an expert in the field, I do however know of solvers such as Z3 that can generate a correct program, provided you can express your constraints as a set of logical rules, such as here....
Raoul's user avatar
  • 121
6 votes
1 answer
149 views

Why do knowledge-based agents only add a sentence to the knowledge base when it is 100% sure the sentence is true?

According to Russell and Norvig, a knowledge-based agent will only add a sentence to its knowledge base if it follows logically from what it previously knows, or directly observes. To follow logically ...
Peter's user avatar
  • 71
3 votes
0 answers
92 views

Answer Set Programming - Make a Fact INVALID

I have a question regarding Answer Set Programming on how to make an existing fact invalid, when there is already (also) a default statement present in the Knowledge Base. For example, there are two ...
theRam's user avatar
  • 31
8 votes
1 answer
3k views

What is the difference between logic-based and rule-based AI?

I always thought rule-based was synonymous with logic-based AI. Logic has axioms and rules of inference, whereas rule-based AI has a knowledge base (essentially, axioms) and if-then rules to create ...
samlaf's user avatar
  • 211
1 vote
0 answers
178 views

How to select the set of support and why?

In Artificial Intelligence: a Modern Approach, when it talks about strategies to improve efficiency of resolution inference(section 9.5.6), it says selecting the ...
Maybe's user avatar
  • 451