Do I Need to Include All Variables in This Boolean Logic Statement?

  • Thread starter rokimomi
  • Start date
  • Tags
    Logic
In summary, the conversation is about translating a sentence into logic using propositions p, q, and r. The sentence in question is "You get an A on the final, but you don't do every exercise in this book; nevertheless, you get an A in this class." After discussing the use of the word "but" and its logical equivalent, the final translation is (p\wedge\negq) \rightarrow r.
  • #1
rokimomi
8
0

Homework Statement



let p, q, and r be the following propositions

p: You get an A on the final exam.
q: You do every exercise in this book
r: You get an A in this class

translate: You get an A on the final, but you don't do every exercise in this book; nevertheless, you get an A in this class.

Homework Equations





The Attempt at a Solution



Do I have to include the part about doing exercises at all? Since it's sufficient enough to have p[tex]\rightarrow[/tex]r to convey the message? What I'm worried about is if they want us to include it anyways so someone can go from this logic to English again. How would I include q then?

I would assume that
 
Physics news on Phys.org
  • #2
Do I have to include the part about doing exercises at all?
Yes, because it has a truth value and therefore affects the truth value of the whole sentence.
But is a conjunction, so logically/grammatically it works the same way as an and.
 
  • #3
How about ((p[tex]\wedge[/tex]q)[tex]\vee[/tex](p[tex]\wedge[/tex][tex]\neg[/tex]q))[tex]\rightarrow[/tex]r

Is there any way to convey this simpler?
 
  • #4
rokimomi said:
How about ((p[tex]\wedge[/tex]q)[tex]\vee[/tex](p[tex]\wedge[/tex][tex]\neg[/tex]q))[tex]\rightarrow[/tex]r

Is there any way to convey this simpler?
Using distrbutive properties, you end up with :
(p[tex]\wedge[/tex]([tex]\neg[/tex]q[tex]\vee[/tex]q))[tex]\rightarrow[/tex]r, which is back to p[tex]\rightarrow[/tex]r, which again means a loss of the but clause.
 
  • #5
Wait, wasn't that my goal though? Something that simplifies to "if p then q".

Hm, I am rereading it again, and I am getting the feeling that I should just word for word put it into logic. So

(p[tex]\wedge[/tex][tex]\neg[/tex]q) [tex]\rightarrow[/tex] r

So is their use of "but" just to confuse me?
 
Last edited:
  • #6
rokimomi said:
So is their use of "but" just to confuse me?
Probably.

Hm, I am rereading it again, and I am getting the feeling that I should just word for word put it into logic.
That's my usual assumption with these types of problems.
 
  • #7
Oh wow, I over-read your comment about "but" the first time through. Sorry bout that and thanks for the help.
 
  • #8
rokimomi said:
Hm, I am rereading it again, and I am getting the feeling that I should just word for word put it into logic. So

(p[tex]\wedge[/tex][tex]\neg[/tex]q) [tex]\rightarrow[/tex] r

Yeah, exactly right.

rokimomi said:
So is their use of "but" just to confuse me?

No, it's standard english. 'But' is the right conjunction to use, because the clause that comes after it is a negative, and tends to have the effect of lessening the impact of the first. It was your job to figure out that this sentence given in proper english is logically equivalent to:

"You get an A in the final exam and you do NOT do every exercise in the book..."

and you did figure it out. If somebody had said either wording to you, you would have understood what he meant.
 

FAQ: Do I Need to Include All Variables in This Boolean Logic Statement?

What is Boolean logic?

Boolean logic is a type of mathematical logic that involves the use of variables and logical operators such as AND, OR, and NOT to create logical expressions that can be evaluated to either true or false.

How is Boolean logic used in science?

Boolean logic is used in science to represent and manipulate data and information, particularly in fields such as computer science, genetics, and physics. It allows scientists to create complex logical expressions and make decisions based on the results.

What is a quick way to understand Boolean logic?

A quick way to understand Boolean logic is to think of it as a set of rules and symbols that help us determine whether a statement is true or false. It is often represented visually using logic gates and truth tables.

What are the benefits of using Boolean logic?

Using Boolean logic allows for efficient and accurate data analysis, as well as the creation of complex logical expressions. It also helps scientists make logical decisions based on data and information.

Are there any limitations to Boolean logic?

While Boolean logic is a powerful tool, it has its limitations. It can only deal with two values, true and false, and does not account for uncertainty or shades of truth. Additionally, it may not be suitable for representing complex real-world situations.

Similar threads

Back
Top