Truly Understanding Logical Implication

  Рет қаралды 1,384

Truly Understanding Algorithms

Truly Understanding Algorithms

Күн бұрын

Пікірлер: 16
@TatharNuar
@TatharNuar Жыл бұрын
This video takes me back to my 6th grade math class, when we spend the entire second half of the year on propositional logic.
@TrulyUnderstandingAlgorithms
@TrulyUnderstandingAlgorithms Жыл бұрын
Hopefully in a good way :)
@l_a_h797
@l_a_h797 5 ай бұрын
I think this article has a lot of potential to be helpful. I would love to see (hear) a version of the video where the speech was not auto-generated but delivered by a human narrator. The auto-speech is done well as such things go, and it's fine for motivated viewers. But if I show this video to my kids, or to a class of students, they will be more engaged if they hear a real person speaking with understanding and intentionality.
@darkshoxx
@darkshoxx Жыл бұрын
I mean sure, but that's only if you define phi to be the condition and psi to be the statement of the code in the if-clause. But you could have psi be the statement "the lines in the then-branch will be executed" and that way the else-clause corresponds to "the lines in the else-branch will be executed", which corresponds to "not phi". Edit: switched "condition" to "branch"
@TrulyUnderstandingAlgorithms
@TrulyUnderstandingAlgorithms Жыл бұрын
Sure, you could define such a predicate (which would likely have additional arguments, such as program state and more). But then you would have an iff, not an implication.
@darkshoxx
@darkshoxx Жыл бұрын
@@TrulyUnderstandingAlgorithms Oh yeah, you're 100% right. There's never a case in which the then-branch is executed while the condition is false. My bad 😅
@angeldude101
@angeldude101 Жыл бұрын
Implies tends to show up quite a bit in propositional logic, but doesn't seem to be as common in boolean algebra, or at least not in programming. Aside from if-then operations, what _is_ seen more often in programming is and-not, which in boolean algebra is written as a ∧ ¬b, or in many programming languages as either a & !b or a && !b. This can actually be written in terms of implication as ¬(a → b), and is also closely related to the set difference A ∖ B. Really, the problem with logical implication is just that it's worded as "if a then b." This kind of phrasing is very common in natural, causal, non-logical language, that in a way it's more _mathematicians'_ fault that the confusion exists by overloading this phrase and insisting it means something that it wouldn't in natural language. Yes, the two meanings have overlap, but they're clearly not the same and probably should never have been said the same. If-then operations in programming correspond much more closely to the natural meaning of the phrase. (And-not does not have this issue since it's much less common in natural usage and might even sound strange outside of formal contexts.)
@TrulyUnderstandingAlgorithms
@TrulyUnderstandingAlgorithms Жыл бұрын
Thanks for this insightful comment! Interestingly, the and-not connective is equivalent to the negation of implication.
@quantumgaming9180
@quantumgaming9180 Жыл бұрын
Love the video!
@TrulyUnderstandingAlgorithms
@TrulyUnderstandingAlgorithms Жыл бұрын
Glad you enjoyed it!
@encapsulatio
@encapsulatio Жыл бұрын
I would love SO MUCH if someone would teach in the style of 3blue1brown comprehensively type theory and the proof theory used in type theory papers. This field is so inaccessible especially if you have a lack of prerequisite math knowledge and logic knowledge and don't know what you don't know. Most teaching materials is full of assumed knowledge and unless studying with someone who actually does it you will have such a hard time just by reading some of the few books that exist on it.
@TrulyUnderstandingAlgorithms
@TrulyUnderstandingAlgorithms Жыл бұрын
That would be a niche, but very nice project!
@encapsulatio
@encapsulatio Жыл бұрын
@@TrulyUnderstandingAlgorithms Can you recommend please in that case books that properly fill the gaps for all prerequisites that are needed for learning type theory and the form of proof theory used in type theory? Either as a response to my comment or a blog post. I have not found any study guide outlines for these areas I'm interested in.
@TrulyUnderstandingAlgorithms
@TrulyUnderstandingAlgorithms Жыл бұрын
That is actually a good question. I'm not sure what the best start guide to type theory would be. Most material seems to be rather advanced. Perhaps some reader could step in and make some recommendation?
@AgentM124
@AgentM124 Жыл бұрын
Implication x→y is simply (!x || (x && y)) Either x is false, so y can be anything. Or x is true, and y is true. Otherwise if y is false when x is true, the proposition would be false. I think there's no programming equivalent to this boolean logic. However there is iff behavior (equivalence) x ←→ y. Simply x == y. (Where x and y are boolean obviously) And the inverse x != y where they must differ. Or simply using a XOR. There's many x and y binary operators resulting in boolean result truth tables, but implication, being one of them is somewhat more interesting than no matter what x and y are it's either true, false, x, or y as output. Implication, and, or, xor, xnor, nor, nand, those actually care about both inputs are interesting.
@TrulyUnderstandingAlgorithms
@TrulyUnderstandingAlgorithms Жыл бұрын
Good summary!
An Introduction to Propositional Logic
10:32
Spanning Tree
Рет қаралды 111 М.
False Implies True is...
13:20
Dr Peyam
Рет қаралды 11 М.
When you have a very capricious child 😂😘👍
00:16
Like Asiya
Рет қаралды 18 МЛН
REAL or FAKE? #beatbox #tiktok
01:03
BeatboxJCOP
Рет қаралды 18 МЛН
The evil clown plays a prank on the angel
00:39
超人夫妇
Рет қаралды 53 МЛН
7 Outside The Box Puzzles
12:16
MindYourDecisions
Рет қаралды 258 М.
Russell's Paradox - a simple explanation of a profound problem
28:28
Jeffrey Kaplan
Рет қаралды 8 МЛН
Why does "False imply True" in logic?
33:33
NoahExplainsPhysics
Рет қаралды 12 М.
Programming with Math | The Lambda Calculus
21:48
Eyesomorphic
Рет қаралды 253 М.
Logic 101 (#41): Tautologies
10:43
William Spaniel
Рет қаралды 20 М.
Conditional Statements: if p then q
7:09
Dr. Trefor Bazett
Рет қаралды 806 М.
The Logical Operator Implies
9:29
FREGE: A Logic Course Elaine Rich, Alan Cline
Рет қаралды 31 М.
How to Read Logic
27:32
Another Roof
Рет қаралды 219 М.
Discrete Math 1.2 Applications of Propositional Logic
22:29
Kimberly Brehm
Рет қаралды 29 М.
ASMR Programming - Spinning Cube - No Talking
20:45
Servet Gulnaroglu
Рет қаралды 4,3 МЛН