35
submitted 1 month ago by [email protected] to c/[email protected]

I'm already so done with this course.

My textbook:

p: "The weather is bad."

Exercise:

Represent "the weather is good" using logical symbols.

Me: How am I supposed to answer that? You didn't give me a letter for that. I guess I'll use q?

Expected answer: ~p

THIS IS LITERALLY THE CLASS ABOUT LOGIC DHDJFBDHDJDHDHDH

Who let neurotypicals write a logic textbook istg

top 32 comments
sorted by: hot top new old
[-] [email protected] 34 points 1 month ago

The point is they introduced p “the weather is bad.” To represent “the weather is good” you want to negate p. ~p - the opposite of p, the opposite of “the weather is bad.” Be economical with your symbols.

[-] [email protected] 9 points 1 month ago

Ok, but the inverse of "bad" would be "not bad."

"Good" =/= "not bad" because there are other potential states for the weather to be in. The weather could be "fine" or even "weird", for instance.

[-] [email protected] 23 points 1 month ago

Most of the time, I think discrete is taught with an eye to computer science, right? You are trying to reduce things to binary or at least discrete outcomes - things that can be represented with 5V or 0V. True or false. The weather is good or it is not good. The weather is bad or it is not bad.

This isn’t English class - rules will be a little different. Like, to most math problems I could be a smart ass and say “the answer is some y in the set of real numbers.” There’s different concepts at work here.

[-] [email protected] 5 points 1 month ago* (last edited 1 month ago)

The weather is good or it is not good. The weather is bad or it is not bad.

That's exactly what I said, is it not?

Also,

This isn’t English class - rules will be a little different.

Obviously. In English, "opposite" means antonyms. Good would be the opposite of bad, as would splendid, terrific, and amazing.

But logical opposites work on set theory. The opposite of A is !A, not Z.

[-] [email protected] 3 points 1 month ago* (last edited 1 month ago)

Most of the time, I think discrete is taught with an eye to computer science, right?

Sure. Not everything in computer science is binary, despite the fact that computers run on binary code. For example, sql has the boolean values of "true," "false," and "null." In this system, null !== false, although it does evaluate to false in some situations.

You're much better off teaching set theory properly (which is what the course is aiming for) rather than teaching people to assume that all sets are composed of only two elements.

Most programmers don't even touch binary anyhow. That's all abstracted away by the compiler.

[-] [email protected] 16 points 1 month ago* (last edited 1 month ago)

Most programmers don’t even touch binary anyhow. That’s all abstracted away by the compiler.

I don’t think that’s really true - a thorough understanding of Boolean logic is pretty essential to programming imho. I think you want to keep in mind the goal is not to prove you are smarter than the first chapter of your textbook, just to note the ideas and patterns it is introducing.

[-] [email protected] 4 points 1 month ago

I mean I'm definitely noticing the patterns. I'm just frustrated that someone who is supposedly an expert in logic let something like that slip. Not assuming that logical negation means "opposite" is one of the first things they teach you. For example, if we were thinking in opposites, the negation of "all" would be "none." But the negation of "all" is "not all", where the negation of "none" is "at least one."

[-] [email protected] 2 points 1 month ago

funnily enough, there exists an empty set, which contains no elements (none), but there doesn't exist a "full" set which contains "all" elements. how interesting is that ...

[-] [email protected] 1 points 1 month ago

Um, but there is?

It's called the universal set, and it contains all elements possible within the domain of consideration

[-] [email protected] 1 points 1 month ago

the set that contains everything is not a (proper) set, according to 20th century mathematicians.

That's because it would contain "impossible" elements, i.e. elements for which contradictory statements both hold true. That shakes the foundations of maths, so it's typically excluded from maths, and not called a "set". (it's called "class" instead.)

[-] [email protected] 1 points 1 month ago

Fair enough. Standard set theory would not allow for such a set to exist, and it would have to either be constructed in an alternate set theory with different axioms or, as you said, called a 'class.'

But it's not as if the concept isn't there, it just needs a little special treatment.

[-] [email protected] 1 points 1 month ago

well, yeah

what seems interesting to me is that these "impossible" mathematical objects typically have the property of being self-contradictory. That means, they include statements that contradict each other. Much like a human mind might contain desires that contradict one another. That's what makes this point so fascinating to me:

Typically, in maths, we assume that objects are eternal. If you have an object, like the exponential function, it's always the same function, no matter when you refer to it. But in reality, things change. I find it utterly fascinating to model such things as well.

[-] [email protected] 2 points 1 month ago

That's an interesting way of looking at things. It is telling that our best models of reality so far are wildly different from each other and mutually exclusive

[-] [email protected] 1 points 1 month ago

It is not mutually exclusive, i would say one is a subset of the other.

[-] [email protected] 2 points 1 month ago

But the negation of “all” is “not all”, where the negation of “none” is “at least one.”

That’s not how it’s usually going to work in discrete - that’s the message the book is trying to communicate to you.

Think like an engineer designing a computer. The state of the weather is something that we are introducing as a binary here - bad or not bad, good or not good.

I’m sure the next few chapters will talk about things like truth tables, right? Try to imagine what those would look like with a “trinary” logic system. Remember math is a tool we use to abstract reality efficiently.

[-] [email protected] 1 points 1 month ago

I tool a sql class, so if the trinary logic is True, False, and Null then I don't have to imagine it, I already learned it.

I suppose you could have "true", "false", and "unknown" too. That could be interesting. But it wouldn't look all that different - AND compares the values and returns the less certain of the two. OR compares values and returns the more certain of the two. Unknown inverted is still unknown. Not that hard.

Qbits have four states, I think? Now those are fun truth tables.

[-] [email protected] 2 points 1 month ago

Can you construct a truth table for a trinary logic system half adder?

[-] [email protected] 1 points 1 month ago

Probably? I don't feel like doing homework rn, though, and what would be the point?

Some programs might have reasons to add an additional truth value, (for example, most databases include "NULL") but trinary would be a terrible choice for hardware. The tolerances are just much more forgiving when you're detecting the presence/absence of a charge than trying to measure multiple distinct states.

[-] [email protected] 13 points 1 month ago
[-] [email protected] 3 points 1 month ago

Fair enough. I'm on mobile so I had to pick something other than the actual symbol.

But yeah, ! Would have been better.

[-] [email protected] 4 points 1 month ago* (last edited 1 month ago)

What kind of mobile UI are you using which doesn't have exclamation points, but does have tildes?

Edit: Oh, the actual symbol wasn't '!', but '¬'.

[-] [email protected] 4 points 1 month ago* (last edited 1 month ago)

Wait, so is ~ supposed to mean not? Like, ¬p would've made sense but usually ~ means something closer to ∝, right?

[-] [email protected] 11 points 1 month ago

Judging from the context, I’m assuming OP used ~ rather than figure out how to type ¬

[-] [email protected] 4 points 1 month ago

Yep! That's exactly it. I'm on mobile

[-] [email protected] 4 points 1 month ago

uh wasn't the symbol for "not" this-> ' Would p' be wrong? I never saw the squiggly in my lessons..

[-] [email protected] 3 points 1 month ago

I don't have the key for the actual symbol on mobile. I should have used ! tho

[-] [email protected] 2 points 1 month ago

didn't notice this was a meme community. good work, I learned something new.

[-] [email protected] 6 points 1 month ago

yw!

~now be mad at this textbook with me~

[-] [email protected] 7 points 1 month ago

if the first page of the book wasn't "Here are the logic symbols" I'll happily join you

[-] [email protected] 2 points 1 month ago

No, they did. I'm using ~ because I'm on mobile.

But as anyone who knows even a little bit about set theory, the inverse of a set is everything not in that set. So the inverse of "bad" is "not bad."

[-] [email protected] 2 points 1 month ago

I totally agree with your opinion. Strong eye for inconsistency!

[-] [email protected] 2 points 1 month ago

I didn't think it was that hard to spot, but apparently not everyone gets it 😅

this post was submitted on 29 Apr 2025
35 points (85.7% liked)

Math Memes

2379 readers
1 users here now

Memes related to mathematics.

Rules:
1: Memes must be related to mathematics in some way.
2: No bigotry of any kind.

founded 2 years ago
MODERATORS