Ai Dreams Forum

AI Dreams => General Chat => Topic started by: ivan.moony on September 15, 2018, 12:47:59 pm

Title: We can't prove or disprove some sentences
Post by: ivan.moony on September 15, 2018, 12:47:59 pm
Here is a bit of remark on knowledge theory.

While constructing `the language of all languages`, I've been investigating Gödel's incompleteness theorems (https://en.wikipedia.org/wiki/G%C3%B6del%27s_incompleteness_theorems), and it looks pretty amazing and scary in the same time. Each theory has some properties like consistency and completeness. Consistency means that we can't derive both a sentence and its negation from the axiom set. Completeness means that every sentence or its negation in theory language can be proved. Simplified, Gödel says:

There is no sufficiently complex theory that can be consistent and complete at the same time.

Ok, we'll say, another general truth... But that Gödel guy is really something. His work is based on constructing a sentence that can't be proved or disproved, questioning completeness and consistency, but a form of this sentence is what is really interesting. The unprovable sentence, in a terms of chosen theory, has the following form:

There are sentences in this theory that can't be proved nor disproved.

Wow. I don't know would I call this sentence formation so ingenious or so simple that it almost seems stupid. And it almost seems like the mother nature is joking with us. And it scares me a bit because it reminds me of a strong deja vu because the sentence is indirectly self-referential.

Anyway, knowledge seems to be bounded, if we ask Gödel, so we shouldn't expect AI to be all-knowing-entity.
Title: Re: You can't prove or disprove me
Post by: ivan.moony on September 15, 2018, 01:56:04 pm
Following Tarski's work, which is based on Gödel's work, a striking fact arises. Remember that Gödel said that there are sentences which can't be proved or disproved? Well, what would be those sentences?

Tarski showed (https://en.wikipedia.org/wiki/Tarski%27s_undefinability_theorem) that proving a truth of some theory sentence happens to be futile. He said that the very notion of truth in some theory is not definable in terms of that theory. What an important concept, what an essence thing, like truth, and it can't be proved. Out of all things, the most important thing like truth can't be derived or proved from a theory dealing with the same truth instances.

Luckily, there is workaround, and that is to define another, more general theory in which we define what a truth is in underlying theory, while the underlying theory inherits a concept of truth without knowing how to define it. Still, what a truth is for this more general theory remains unknown, unless we define even more general theory, and so on.

A consequence is that there couldn't exist a theory that explains what a truth really is. Now imagine the Universe as a big theory. Then it follows that the Universe itself can't define the truth of itself, yet a truth exists, and it is a concept of the history or predictions about the future. So there should be something bigger than the Universe. But what is then bigger than that bigger thing? What is that magic force capable of things we couldn't reach within this Universe? Remember that we are talking about truth itself, so what would this truth represent? Would it be a machine, or something (or should I say someone) conscious?
Title: Re: You can't prove or disprove me
Post by: ranch vermin on September 15, 2018, 02:36:14 pm
Large functionless thinking.  :D   Get back to the planet earth and do something more useful with your thinking,  nah just kidding,  this could be important like you say.
Title: Re: You can't prove or disprove me
Post by: ivan.moony on September 15, 2018, 03:18:11 pm
Actually, noted theoretical proofs have direct influences to my `language of all languages`. I had a trouble in defining the truth with bidirectional `True <-> (X | ¬X)` and falsehood with bidirectional `False <-> (X & ¬X)`. The whole system was collapsing to `True` (when it is either tautology, satsfiable or even contradiction). I fixed it by unidirectional `True -> (X | ¬X)` and `(X & ¬X) -> False`, but after that I found myself reading about Gödel's and Tarski's work. My language aligned with their results and encouraged me to think I'm on the right path. Otherwise, I'd think I'm making some mistake, and I'd hunt ghosts where there are really no any.

Besides that, it would be interesting to prove whether God exists or not. Now I tend to believe that such a thing is unprovable, just like `True` is unprovable. But guess what? `False` is sometimes provable. Now, what would that mean?
Title: Re: You can't prove or disprove me
Post by: Freddy on September 15, 2018, 03:25:15 pm
Truth can be a very relative and subjective thing can't it. One man's truth can be another's fiction.

Even in science they say things like "the world's biggest something", forgetting to add the qualifier of "currently known to science".

Often truth is what we currently believe in.

Just some thoughts.
Title: Re: You can't prove or disprove me
Post by: ivan.moony on September 15, 2018, 03:36:29 pm
All we know, or have proven is based on some assumptions, while assumptions are taken for granted. The moment we start questioning the starting assumptions, all we know gets shaken. And all there is before assumptions are other assumptions. It is not wonder that different people think differently, as we all don't share the same set of assumptions. And if we have contradictory assumptions, it is hard to tell which one is right, as assumptions are just that, assumptions without the almighty proof. Well, we have to start from somewhere, and that somewhere is usually left unproven. An attempt to get it proven results in a start before the first start, making it again unproven.

[Edit]
All we can say about a set of assumptions is whether they are contradictory (if they yield both a sentence and its negation). In other words, we can say for sure if a whole of set of assumptions is false. But is it really true, it remains unsolved.
Title: Re: You can't prove or disprove me
Post by: ranch vermin on September 15, 2018, 06:31:48 pm
oh I can relate it to my one now.  Dreaming off into the future,  is the robot cant tell the difference between a halucination and reality,  we can.  but it takes personal strength.

robots dont usually halucinate,  but maybe something could happen to its sensors?....?

[EDIT] i should explain more,  im thinking about playback of a recording of the environment, which is what my theory is based apon. [/edit]
Title: Re: You can't prove or disprove me
Post by: Zero on September 16, 2018, 01:26:54 pm
Quote
Tarski showed that proving a truth of some theory sentence happens to be futile. He said that the very notion of truth in some theory is not definable in terms of that theory. What an important concept, what an essence thing, like truth, and it can't be proved. Out of all things, the most important thing like truth can't be derived or proved from a theory dealing with the same truth instances.

Luckily, there is workaround, and that is to define another, more general theory in which we define what a truth is in underlying theory, while the underlying theory inherits a concept of truth without knowing how to define it. Still, what a truth is for this more general theory remains unknown, unless we define even more general theory, and so on. 

I really appreciate the way you always try to crack reality open, ivan. Striking right at knee: logic.

I'm probably being dumb here, but... There's a Python interpreter written in Python, and a Javascript interpreter written in Javascript. How about defining truth in terms of another theory, which happens to be the same? Does the "more general" theory have to be "strictly" more general (>), or can it be "equal or more general" (>=) ??

Could you suggest some good books, for a beginner like me please?
Title: Re: You can't prove or disprove me
Post by: ivan.moony on September 16, 2018, 03:54:56 pm
There's a Python interpreter written in Python, and a Javascript interpreter written in Javascript. How about defining truth in terms of another theory, which happens to be the same? Does the "more general" theory have to be "strictly" more general (>), or can it be "equal or more general" (>=) ??

Could you suggest some good books, for a beginner like me please?

I'm sorry, I can only guess, I'm a beginner too in this area. I didn't check, but I guess that superlanguage A can be equal to its sublanguage B. But I also guess that all imperative language are inconsistent, as they don't use negation of sentences, so they don't check when a contradiction is generated, which means they can produce a lie, and with lies we could do extraordinary things like woodoo magic and stuff like that. :)

The deal with negation is that we can spot a contradiction and prevent a program from being run, or do something based on that conclusion.

Books? All I have are this (https://en.wikipedia.org/wiki/G%C3%B6del%27s_incompleteness_theorems#Implications_for_consistency_proofs) and this (https://en.wikipedia.org/wiki/Tarski%27s_undefinability_theorem) Wiki links. If you start from there, I'm sure you'll find some real interesting references, at least at the bottom of pages. If you are interested in a parallel of logic to functional programming, see Curry-Howard correspondence (https://en.wikipedia.org/wiki/Curry%E2%80%93Howard_correspondence).
Title: Re: You can't prove or disprove me
Post by: Zero on September 16, 2018, 09:03:59 pm
I needed to understand the vocabulary. Here is what I collected from wikipedia.


Theory =
In mathematical logic, a theory (also called a formal theory) is a set of sentences in a formal language.

Sentence =
In mathematical logic, a sentence of a predicate logic is a boolean-valued well-formed formula with no free variables.

Well-formed formula =
In mathematical logic, propositional logic and predicate logic, a well-formed formula, abbreviated WFF or wff, often simply formula, is a finite sequence of symbols from a given alphabet that is part of a formal language.

Consistency =
In classical deductive logic, a consistent theory is one that does not contain a contradiction.

Contradiction =
In classical logic, a contradiction consists of a logical incompatibility between two or more propositions. It occurs when the propositions, taken together, yield two conclusions which form the logical, usually opposite inversions of each other.

Complete theory =
In mathematical logic, a theory is complete if, for every formula in the theory's language, that formula or its negation is demonstrable. Recursively axiomatizable first-order theories that are rich enough to allow general mathematical reasoning to be formulated cannot be complete, as demonstrated by Gödel's first incompleteness theorem.



Completeness... I don't get it. What does "demonstrable" mean?
Title: Re: You can't prove or disprove me
Post by: ivan.moony on September 16, 2018, 10:00:39 pm
Completeness... I don't get it. What does "demonstrable" mean?

I think it means provable, having a possibility to deduce itself from a set of axioms (https://en.wikipedia.org/wiki/Axiom). We state a set of starting axioms. Beside axioms, we have an underlying inference mechanism behind the stage. If we can infer every formula in some theory language from the axioms, the theory is complete. I believe such formulas are called theorems (https://en.wikipedia.org/wiki/Theorem). What I don't get is: how a formula can be a part of a theory language if it is not a theorem of that language. In other words, how can it be a part of the theory if we can't infer it from axioms? However, Gödel seems to be able to construct such formulas by his first and second incompleteness theorem.
Title: Re: You can't prove or disprove some sentences
Post by: Zero on September 17, 2018, 09:36:08 am
I thought a well-formed formula was just correct syntactically, without taking meaning into account. How can we prove a formula that is only syntactically correct? What does it mean to prove such a thing?
Title: Re: You can't prove or disprove some sentences
Post by: ivan.moony on September 17, 2018, 11:16:26 am
It's about models. Model is a semantic set of true/false - atom values for which a whole formula is true. I think we can only prove a tautology (https://en.wikipedia.org/wiki/Tautology_(logic)) (formula that is true in all models) or contradiction (false in all models). To prove that a satisfiable formula (true only in some models) `B` is a consequence of satisfiable formula `A`, we have to write what we predict that is a tautology (in a form of `A -> B`). Then we can either derive a contradiction from its negation, or derive `A -> B` from A, B and axioms.

[Edit]
Consider well formed formula as a program that syntactically passes parsing. But that is not a guarantee that the same program is valid (https://en.wikipedia.org/wiki/Validity_(logic)). To prove validity, we have to pass the program through a type checker. And parser + type checker = compiler.
Title: Re: We can't prove or disprove some sentences
Post by: Zero on September 17, 2018, 03:19:52 pm
So we can add


Model =
A model of a theory is a structure (e.g. an interpretation) that satisfies the sentences of that theory.

Interpretation =
An interpretation is an assignment of meaning to the symbols of a formal language. An interpretation often (but not always) provides a way to determine the truth values of sentences in a language. If a given interpretation assigns the value True to a sentence or theory, the interpretation is called a model of that sentence or theory.



I always thought that syntax correctness included types too, for example a "print" command that must be followed by a string, raises a "syntax error" if something a number follows the "print" command. In fact I was mixing 2 things that was not meant to be mixed. Like CSS in my HTML, sort of.
Title: Re: We can't prove or disprove some sentences
Post by: ranch vermin on September 18, 2018, 10:52:56 pm
the truth agrees with itself,  if ever a contradiction - which agreement is true?  u dont know - u can only go with a feeling.   but the truth is a singular group in itself,  it must agree 100%.
Title: Re: We can't prove or disprove some sentences
Post by: ivan.moony on September 24, 2018, 06:17:15 pm
About defining truthfulness

While designing a logic language, I encountered this problem in defining how true formulas should look like. The problem was in that when we define a general formula `GF` such that `True <-> GF`, the whole system always collapses to `True`, and then back to the whole `GF` when we instantiate either of `GF` elements. Because hard-coding any constants was not a desired option, a compromise solution had to be found. Such a compromise would let us use the notion of truth without violating Tarski's results. It happens that such a compromise exist. We may define an analogue to a general truth at the root of the whole system by a plain consequence like `Top -> U`, where `U` is a growing Universe of expressions that are true, while the same Universe is considered as an underlying theory we want to express in our logic language. Specific fragments of this Universe still have a chance to recursively loop back to `Top` symbol without making the system collapse. In a free interpretation, `Top` symbol represents only a given subset of all possible true formulas, which is why its name is distinct from `True`. Of course, the `Top` symbol is not globally restricted, yet it is as extensible as the universe `U` is.
Title: Re: We can't prove or disprove some sentences
Post by: AgentSmith on October 19, 2018, 01:37:09 pm
There is no sufficiently complex theory that can be consistent and complete at the same time.

Gödel's incompleteness theorems also have an important meaning for artificial intelligence. In fact they imply that each artificial intelligence always has limitations. With other words: There are things the AI does not know or cannot do, or the AI does not exist.
Title: Re: We can't prove or disprove some sentences
Post by: LOCKSUIT on October 19, 2018, 02:09:19 pm
"There are sentences in this theory that can't be proved nor disproved."

But there are sentences in this theory that can be acknowledged, feared, hated, loved, bought, and so on!
Title: Re: We can't prove or disprove some sentences
Post by: LOCKSUIT on October 19, 2018, 02:26:33 pm
"There are sentences in this theory that can't be proved nor disproved." No, I as a human myself can prove/disprove this and understand it. This is a sentence that says the sentences in it (the theory) can't be proven nor disproven, so let's take this sentence, prove/disprove it, and, we disprove it, because there is not sentences in this sentence that can't be proven nor disproven, otherwise if there was then we would prove this sentence. Also, there is sentences in this theory that may be disproven by certain readers, or proven, and I realized this after thinking "There are sentences in this theory that you can't be mad at.". But there are sentences in this theory that can be acknowledged, feared, hated, loved, bought, and so on! Ok so it basically says you can't disproven nor prove this sentence, and I think: what is there to prove/disprove?, this i guess > "you can't prove nor disprove this sentence", I'm sure we can reach an agreement. Ok I did it, the sentence is proven true if I CAN'T prove it nnoorr disprove it, else false disprove. Clearly there is nothing that can be proven, nor that can be disproven. So there are sentences in this theory, that can't be proven? True. Nor disproven? True. So True. But now wait it just said itself cannot be proven and I just agreed with the line that itself cannot be proven yet I just proved itself true that it is true.....yes i did, I proven this line. Then again I might reframe to FALSE because it said itself cannot be proven.....but then it said itself couldn't be disproven false either and if i do say so now then it is false......so false?.....................it true if can't be true or false.........if i can say true or false which i did then it is false OMG DID IT

"There are sentences in this theory that can't be proved nor disproved."
FALSE AFAIK

The main concept of my discovery here is that there is no object in it that can be proven or disproven, so it, is, true..........yet it says itself cant be true nor false so because i have indeed said one of them (true), then the sentence is, false.

To go further, i guess it, is an object, and it says itself as an object can't be proven nor disproven (unless we focus on the "sentences IN this theory"), well, i can mark it true or false, hence it'd be false.

SO: If i can mark it true positive or false negative then it is false. And I can. So false. Also, in a sense yes true there is sentences in itself/itself can't be really proven or disproven so yes True but then being true makes it false anyhow.

However if you look at your grading/marking of it as a separate thing, then True, it can't be proven nor disoroven, so it's True and positive. Then you could make a clone of this and make this one False for being that you say it true yet it say it cannot be true hence it false no good, that way you get the both of best worlds.

Now you end up with in ur brain:
"False i can mark it +/-."
"True it is right."
"False cus it said it couldn't be right nor wrong."
"And same for if you mean it or the sentences in it."
"Or whatever the hell your brain thinks."

Who wants cake!?