일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | 6 | 7 |
8 | 9 | 10 | 11 | 12 | 13 | 14 |
15 | 16 | 17 | 18 | 19 | 20 | 21 |
22 | 23 | 24 | 25 | 26 | 27 | 28 |
29 | 30 | 31 |
- 영어시험
- 둔촌역장어
- 오피스밋업
- 링글커리어
- 스몰토크
- #체험수업
- 성내동장어
- 링글
- 강동구장어맛집
- #영어발음교정
- #직장인영어
- #nlp
- 영어로전세계와소통하기
- 영어공부법
- #링글
- #링글후기
- #Ringle
- 해외취업컨퍼런스
- Ringle
- 뉴노멀챌린지
- 화상영어
- #영어공부
- 장어랑고기같이
- 영어공부
- 영어회화
- 링글리뷰
- 링글경험담
- CommunicateWiththeWorld
- 소통챌린지
- 총각네장어
- Today
- Total
Soohyun’s Machine-learning
[Discrete math] Propositional logic 본문
Propositional Logic : 명제적 로직
from. Rosen's Discrete Mathematics
NOT : The truth table for the negation of a proposition.
T |
F |
F |
T |
AND : The truth table for the conjunction of two propositions.
|
|
|
T |
T |
T |
T |
F |
F |
F |
T |
F |
F |
F |
F |
The truth table for the disjunction of two propositions.
|
|
|
T |
T |
T |
T |
F |
T |
F |
T |
T |
F |
F |
F |
The truth table for the exclusive or of two propositions.
|
|
|
T |
T |
F |
T |
F |
T |
F |
T |
T |
F |
F |
F |
inclusive or 예시 :
"Students who have taken calculus or computer science can take this class."
미분(계산?) 또는 컴퓨터 공학 학생들은 이 수업을 들을 수 있다. (둘 다를 듣는 학생이어도 이 수업을 들을 수 있다.)
exclusive or 예시:
"Students who have taken calculus or computer science, but not both, can enroll in this class."
미분 또는 컴퓨터 공학 학생들은 이 수업을 들을 수 있다. 그러나, 둘 다를 듣는 학생은 들을 수 없다.
The truth table for the conditional statement p -> q.
T |
T |
T |
T |
F |
F |
F |
T |
T |
F |
F |
T |
Let p and q be propositions. The conditional statement p->q is the proposition "if p, then q"
The conditional statement p->q is false when p is true and q is false, and true otherwise.
In the conditional statement p->q, p is called the hypothesis (or antecedent or premise, implication( and q is called the conclusion (or consequence).
The statement p->q is called a conditional statement because p->q asserts that q is true on the condition that p holds.
The truth table for the conditional statements play such an essential role in mathematical reasoning, a variety of terminology is used to express p->q.
The if-then construction used in many programming languages is different from that used in logic.
Most programming languages contain statements such as if p then S, where p is a proposition and S is a program segment (one or more statements to be executed)
ex) if 2+2=4 then x := x+1
The proposition q->p is called the converse of p->q.
The contrapositive of p->q is the proposition ㄱq->ㄱp.
The proposition ㄱp->ㄱq is called the inverse of p->q.
We will see that of these three conditional statements formed from p->q, only the contrapositive always has the same truth value as p->q.
We first show that the contrapositive, ㄱq->ㄱp, of a conditional statement p->q always has the same truth value as p->q.
To see this, note that the contrapositive is false only when ㄱp is false and ㄱq is true, that is, only when p is true and q is false.
ex) What are the contrapositive, the converse, and the inverse of the conditional statement
"The home team wins whenever it is raining?"
solution) Because "q whenever p" is one of the ways to express the conditional statement p->q, the original statement can be rewritten as
"If it is raining, then the home team wins."
Consequently, the contrapositive of this conditional statement is
"If the home team does not win, then it is not raining."
The converse is
"If the home team wins, then it is raining."
The inverse is
"If it is not raining, then the home team does not win."
Only the contrapositive is equivalent to the original statement.
BICONDITIONALS
We now introduce another way to combine propositions that expresses that two propositions have the same truth value.
Let p and q be propositions. The biconditional statement p<->q is the proposition "p if and only if q". The biconditional statement p<->q is true when p and q have the same truth values, and is false otherwise. Biconditional statement are also called bi-implications.
|
The truth table for the biconditional p<->q.
T |
T |
T |
T |
F |
F |
F |
T |
F |
F |
F |
T |
notations 정리
NOT, negate |
AND, conjunction |
OR, disjunction |
IF, conditional |
biconditional |
XOR |
'Machine Learning > Math & Stats' 카테고리의 다른 글
[stats] probability : omega, F, P (0) | 2018.09.17 |
---|---|
[math] : Trigonometry (삼각함수) (0) | 2018.08.01 |
[statistics]: (0) | 2017.10.23 |
[statistic]: normal distribution, standard deviation (0) | 2017.10.19 |
[statistic]: Two-way tables (0) | 2017.10.19 |