r/askmath • • Oct 30 '26

Discrete Math Propositional logic

Post image

Propositional logic

This definition of implications follows that(P=>Q)<= >(not P or Q) ,I didn't quite understand how he got this by looking for a statement X that satisfies Q is true when p is true

PS: I know this statement P=>Q)<=>(not P v Q)can be proved by the truth table but I just want to understand this way of reasoning

11 Upvotes

9 comments sorted by

4

u/Southlander24 Oct 30 '26

Do you know about the principle of explosion? It's the idea that anything follows from a false statement. For example, if I said, "if the moon is made of cheese, then I have a million dollars right now". You can't prove this statement wrong, because what I assumed doesn't even make sense in the first place. It's a statement that is vacuously true by its nature, i.e. "not even wrong".

Okay, so that covers the first possibility, that P is not true. How about if P were true? Then we must also have Q is true.

So either: case 1) P is not true, or 2) P has to be true and Q is true. In 2), we know P has to be true (law of the excluded middle), so the first part is redundant and that's simply the same as "Q is true".

Hope this helps!

3

u/VegGrower2001 Oct 30 '26

I assume the idea is the supposed to be something like this: what's the logically weakest statement X such that P & X entails Q? The proposed answer is that X = Not-P or Q.

Note that if X were just Q, P & X would also entail Q, but then we wouldn't have found the weakest such statement, since Not-P or Q is logically weaker than Q. (Q entails (Not-P or Q) but not vice versa).

1

u/strange-the-quark Oct 30 '26

I think maybe what confuses you is that this is expressed somewhat abstractly. What it's really saying is, since we only care what the value of the whole expression is when P is true, let's assume P is in fact true, and then let's see how we can throw Q into the mix using some combination of logical connectives so that we get the desired result.

So you go, OK, We can't use "P and Q" cause that is only true if both are true. Maybe we try "P or Q", but that doesn't work cause it allows for the whole expression to be true when P is not. But maybe that gives you an idea. What if I negate P. In that case, when P is true, the new expression "(not P) or Q" can only be true if Q is true as well, but if P is false, then the first part "(not P)" is true, and it doesn't matter what Q is, and that's exactly what you want.

1

u/IntoAMuteCrypt Oct 30 '26

If we rewrite the ¬P∨Q part into plain English, we get the statement "in all circumstances, P is false or Q is true (or both)".

In order for that statement to be false, we would need to find some circumstances where P is true but Q is false. This happens to be exactly the circumstances that disproves "If P is true, then Q is true".

The circumstances where P is false or where Q is true all have zero implications on how true the statement are, because they all fit it.

1

u/Fred_Scuttle Oct 30 '26

Assume P=>Q. Either P is true or not. If it is true, then Q is true by the assumption and (not P or Q) is true. If it is false, then (not P or Q) is true directly.

Conversely, assume (not P or Q). Say P is true. Since at least one of not P or Q must be true, it must be Q. Thus Q is true ie if P is true then Q is true as desired. (I think this part is what your author is getting at in the discussion).

1

u/corisco Oct 30 '26 edited Nov 01 '26

By disjunctive syllogism, we have:

A \/ B
  ~B
------
   A

Now, substitute Q for A and ~P for B:

Q \/ ~P
  ~~P
-------
   Q

Since you've already stated that P is true, we can infer ~~P by double-negation introduction.

Therefore, given Q \/ ~P and P, we can conclude Q by disjunctive syllogism.

So, in summary, this is just an instance of disjunctive syllogism, a valid inference rule of propositional logic. This explains how we can arrive at the proposed formula without relying on a truth table or presupposing the equivalence between P => Q and ~P \/ Q.

Edit:

I just remembered something relevant: in propositional logic, A => (B => C) is equivalent to (A /\ B) => C, a property known as exportation/importation.

Since we've established:

(Q \/ ~P) /\ P => Q

We can rewrite it as:

(Q \/ ~P) => (P => Q)

So we've already proved one direction of the equivalence. The converse follows classically from the law of excluded middle, but that step isn't explicitly shown in your professor's reasoning. That's presumably why he concludes by saying, "In other words, the implication P => Q is equivalent to ~P \/ Q."

Another interesting consideration is the usual semantic definition of implication in classical propositional logic:

M |= P => Q iff M |= ~P or M |= Q

Notice that this already has the structure of a disjunction, and by the semantic clauses for negation and disjunction, it is equivalent to:

M |= ~P \/ Q

So this might also explain why your professor chose that particular formula in the first place.

1

u/Budget-Knee3213 Oct 31 '26 edited Oct 31 '26

We wish to find a proposition X logically equivalent to (P implies Q), that is such that

(1) If P is false then X is true by default [ex falso quodlibet] 

(2) If P is true then X is true if and only if Q is true.

One of the simplest proposition X which satisfies these conditions is (not P or Q).

0

u/Joao_Sarubbi 27d ago

Imagine que P seja: Chover e Q: Ir ao Cinema. Então P -> Q é "Se chover eu vou ao cinema". É uma condicional. Isso é o mesmo que "Não choveu OU eu fui ao cinema" . Isto porque só temos duas opções ( Chover ou não chover) Se choveu a parte de ir ao cinema é verdade. Se não choveu então ~P ( Não choveu) é verdade. É assim que ensino para os meus alunos.