Make a translation puzzle (Due Thursday, October 3). Â Your assignment this week is to take a common phrase – a saying, a quote, a song lyric, or anything recognizable to most people – and translate it into logical notation. Â You should break it up into individual parts (such as P, Q and R), and then combine them using logical notation to create your phrase. Â This is meant to be a puzzle for your classmates, so do NOT include the original phrase.
Your submission should include: the individual parts P, Q, R etc. (written in English), and the puzzle itself (written in logical notation).
Extra Credit. Â You can earn extra credit by responding to a classmate’s puzzle – either by being the first person to correctly guess the phrase, or by making suggestions, or by offering an alternative way of translating the phrase into logical notation.
Here are two examples:
1.
P: you're happy Q: you know it R: clap your hands Puzzle: Â
Answer: “If you’re happy and you know it, clap your hands”
2.
P(x,y): you can fool person x at time y Puzzle: Â![]()
Answer: “You can’t fool all the people all the time”
How do I type logical notation on the OpenLab? This is not too hard — BUT it takes a little getting used to.  Here’s an example. If you type this into a comment:
Here is a statement: $latex P \wedge Q $
then (after you post the comment) you should see this:
Here is a statement:
Each equation or expression begins with “$latex ” and ends with “$”.  In between “$latex ” and  “$” you type your math — many things you type just as they are, like letters and numbers, but each special symbol has a special code.  In the example above, we use the code “\wedge” to produce the upside-down vee which means “and”.
Here are a few more examples:
Type this: | to get this result: |
$latex P \vee Q$ | |
$latex P \Rightarrow Q$ | |
$latex \sim P$ | |
$latex \bar{P}$ | |
$latex P \Leftrightarrow Q$ | |
$latex \forall x, P(x)$ | |
$latex \exists x, P(x)$ | |
$latex \forall x \exists y ( P(x) \vee Q(y)) \implies R(x,y) $ |
LaTeX tester. Â Want to test out your LaTeX code before you post it in a comment? Â There is a LaTeX tester here, where you can type in your formula, hit the button, and see how it looks: http://samples.geekality.net/latex/.
NOTE: Â When you use the test, do NOT include the dollar signs or the word “latex” — just include the stuff in between.
Finally, if you submit a comment but you find it doesn’t look right, don’t hesitate to make corrections and submit it again – you will NOT be penalized for multiple submissions!
where:
P: You can handle me at my worst
Q: You deserve me at my best
Puzzle:

If you can not handle me at my worst, then you do not deserve me at my best.
L- I get Logical
I- Trust my Instincts
T-I get in trouble
L- I get Logical

I-Trust my Instincts

T-I get in trouble
Puzzle:

I get Logical and, if I do not trust my instincts then I get in trouble.
Guys, I’m loving these puzzles so far – nice work!
P: love

Q: life
Puzzle:
P : you

Q: being good
sorry, i meant:
\Rightarrow 
Q: you
P: being good
Puzzle:
OMG, I got confused !!!
Hi Albina,
, then there should also be an ‘x’ running around in the P and Q somewhere, P(x) and Q(x).
I like your setup! BUT I’m not sure I follow the puzzle – if you have the universal quantifier
P(x)- Humans with common sense exist
R(x)- A world some place out there
~S(x)- This is not a place I want to live
Puzzle:

Their exists a world some place out there and if humans with common sense exist then this is the place I want to live .
Great puzzle! I recommend using just “S(x)” in your original definition, to mean the positive statement “This is a place I want to live” — then modify the Puzzle using
in order to get the meaning you want.
it may not be easy but it is worth it
puzzle
p=it may not be easy
Q=but it is worth it
~P=>Q
Hi Ms. Desir – I like the sentiment! But right now, if p=it may not be easy, then in your puzzle
seems to mean “it may NOT not be easy” — there’s a double negative there! (does this make sense? Write back if not).
Should it just be P instead since its already negative .. Would it be if p then q . I was under the impression the puzzle should be related to the phrase but maybe it’s contrapositive or its inverse.
Yes, you could use just P in the puzzle (since it’s already negative) . As long as the puzzle gives the phrase you want, the form (contrapositive, etc), doesn’t matter.
P: The King’s horse(x)
Q: The King’s man(y)
R: Could put Humpty together again…….
If all of the kings horses and all of the king’s men, then they couldn’t put Humpty together again.
At least, I think that’s how you’d say it here.
worry too much ,happiness will come less
P: worry too much
Q: happiness will come less
Puzzle
P=>Q
~P=>~Q
Q: You have nothing nice to say
P: Don’t say anything.
Q
P
Q: You have nothing nice to say
P: Don’t say anything.
Q \Rightarrow P
Q: You have nothing nice to say
P: Don’t say anything.
Actually, even then, it’s not correct. It should be:
Q: You have something nice to say
P: Say something.
We should be able to delete posts here
Q: You have something nice to say
P: Say something.
Hi Alphatron,
Yes, the ability to edit comments would be helpful. This way does allow me to see your thought process, however – excellent work developing your idea!
If you go away, you can’t expect people to keep your place for you.

P: you go away
Q: you can’t expect people to keep your place for you
If you go away, you can’t expect people to keep your place for you.

P: you go away
Q: you can’t expect people to keep your place for you
If you go away, you can’t expect people to keep your place for you.
P: you go away
Q: you expect people to keep your place for you
If you go away, you can’t expect people to keep your place for you.
P: you go away
Q: you can’t expect people to keep your place for you
latex P \Rightarrow \sim Q
I don’t know why I can’t get the correct expression, when I put it in latex tester it works??
Saloua, You’re almost there — just take the code you typed into the latex tester, and put the whole thing between $latex and $
P: build your own dreams
Q: someone will hire you to build theirs.
~P=>Q
If you don’t build your dreams then someone will hire you to build theirs.
P: All you need

Q: A dollar
R: A dream
All you need is a dollar and a dream
Alan,
I love this sentiment – but the formal logic seems weird. A direct translation would be “If all you need, then a dollar and a dream”. What went wrong?
HINT: P, Q and R should be statements – are they?
P: Diet
Q: Exercise
R: A healthy life
latex$ (\sim P \wedge \sim Q) \rightarrow \sim R$
Trying again!

P: Diet
Q: Exercise
R: A healthy life
nice job!
P: Walk the dog
Q: Clean your room
R: you’ll get punished
$ sim (P \vee Q) \implies R $
P: Walk the dog
Q: Clean your room
R: you’ll get punished
I’ll forward this one to my daughter 🙂
-Prof. Reitz
ps. She is 4. And no, she doesn’t understand logical symbols. Yet.
P: You are Schrodinger’s cat
Q: You are dead
R: You are alive
If you are Schrodinger’s cat, then you are dead and alive.
Thank you professor I got it finally.

P : you go away
Q :you can’t expect people to keep your place for you
Great work with the latex!
A final suggestion — make a change to get rid of the double-negative in your logic (the expression
would mean “you can’t NOT expect people to keep your place for you$)
D. Santos
If you don’t clean the room and walk the dog, you will get punished.
Patty Arredondo
With no diet and exercise, don’t expect a healthy life.
Saloua
If you go away, you can’t expect people to keep your place for you
Albina, you’re on fire!
P: The pokemon is yellow
Q: It is a pikachu
If the Pokemon is yellow, then it is a pikachu!! Duh!! Gotta catch em all.
Q: you fall for everything
P: You don’t stand for anything
If you fall for everything then you don’t stand for anything!!!