논리와 증명
도입됨
5:38
이산 수학
Discrete mathematics is the mathematics of objects you can list: statements, sets, graphs and arrangements. The first three units build the proof engine…
영어 내레이션 · 영어와 중국어 자막 전환 가능
이 수업의 내용
| English | 의미 |
|---|---|
| proposition/ˌprɒpəˈzɪʃn/ | 명제 |
| truth table/truːθ ˈteɪbl/ | 진리표 |
| contrapositive/ˌkɒntrəˈpɒzɪtɪv/ | 역부정 명제 |
| converse/ˈkɒnvɜːs/ | 반대 명제 |
| De Morgan's laws/də ˈmɔːɡənz lɔːz/ | 드 모르강의 법칙 |
| predicate logic/ˈpredɪkeɪt ˈlɒdʒɪk/ | 서술 논리 |
| quantifier/ˈkwɒntɪfaɪə/ | 양적자 |
| direct proof/daɪˈrekt pruːf/ | 직접 증명 |
| contraposition/ˌkɒntrəpəˈzɪʃn/ | 역부정 증명 |
| proof by contradiction/pruːf baɪ ˌkɒntrəˈdɪkʃn/ | 귀약증명법 |
Did the tester break the claim?
- A spec says: "If the list is sorted, the search returns the right index." A tester feeds in an unsorted list, gets a wrong index and files a bug: "the claim is false."
- This test does not show the claim is false. The claim only promises something about sorted lists. This lesson makes that kind of reading exact, then turns it into proofs.
Propositions and the truth table
- A proposition 命题 is a statement that is true or false. Join them with ¬ (not), ∧ (and), ∨ (or), → (if…then) and ↔ (if and only if).
- A truth table 真值表 lists every combination of T and F for the variables, so it settles any formula. With $n$ variables there are $2^n$ rows.
| $p$ | $q$ | ${p{\land}q}$ | ${p{\lor}q}$ | ${p{\to}q}$ | ${p{\leftrightarrow}q}$ |
|---|---|---|---|---|---|
| T | T | T | T | T | T |
| T | F | F | T | F | F |
| F | T | F | T | T | F |
| F | F | F | F | T | T |
- $p \to q$ is false in one row only: $p$ true and $q$ false. When $p$ is false, the implication is true whatever $q$ is.
공식은 p, q, r, s 변수를 사용합니다. 이 진리표에는 몇 개의 행이 있습니까?
난이도 2/5 · 140코인 + 오늘 첫 완료 시 작은 보너스 추가
각 변수는 T 또는 F이므로, 총 $2^4 = 16$가지 조합이 있습니다.
Reading "if p then q"
- $p \to q$ is false in one row only: $p$ true and $q$ false. When $p$ is false the claim makes no promise, so it counts as true. That is why the unsorted list broke nothing.
- $p \to q \equiv \neg p \lor q$. The contrapositive 逆否命题 $\neg q \to \neg p$ has the same truth table; the converse 逆命题 $q \to p$ does not.

"리스트가 정렬되어 있으면 검색이 올바른 인덱스를 반환한다"는 주장은 잘못된 인덱스를 반환하는 비정렬된 리스트에 의해 거짓임이 입증됩니다.
난이도 1/5 · 100코인 + 오늘 첫 완료 시 작은 보너스 추가
p가 거짓일 때, p → q는 어떤 경우에도 참이다. 오직 인덱스가 틀린 정렬된 목록만이 이 주장을 위배한다.
p → q에 대한 주장이 설명하는 각 형식을 매칭하시오.
난이도 2/5 · 140코인 + 오늘 첫 완료 시 작은 보너스 추가
역대명과 ¬p ∨ q는 p → q의 진리표를 공유하지만, 역명은 그렇지 않다. p ∧ ¬q는 그 부정식이다.
Negation flips everything it passes
- De Morgan's laws 德摩根律: $\neg(p \land q) \equiv \neg p \lor \neg q$ and $\neg(p \lor q) \equiv \neg p \land \neg q$. The negation goes inside and the connective flips.
- Predicate logic 谓词逻辑 adds the quantifiers 量词 $\forall$ (for all) and $\exists$ (there exists). Negation swaps them and negates the predicate: $\neg\forall x\,P(x) \equiv \exists x\,\neg P(x)$.
Claim: "every email has exactly one address." Its negation: "some email has no address, or some email has two or more addresses." One email that breaks the rule is enough.
Push the negation inside
Set a and b and compare ¬(a ∧ b) with ¬a ∨ ¬b, then the OR form. The two sides agree on every row, and the naive rewrite without flipping the connective fails on a counterexample.
∀x P(x)의 부정은 —이다.
난이도 1/5 · 100코인 + 오늘 첫 완료 시 작은 보너스 추가
반례 하나만으로 충분하다: 부정이 양산자를 바꾸고 명제를 부정한다.
¬(p ∧ q)와 등가인 식은 무엇인가? 모두 선택하시오.
난이도 2/5 · 140코인 + 오늘 첫 완료 시 작은 보너스 추가
De Morgan 법칙에 의해 ¬p ∨ ¬q가 된다. p → ¬q를 ¬p ∨ ¬q로 변형하면 같아지고, q → ¬p도 마찬가지이다. ¬p ∧ ¬q는 연결어를 바꿀 것을 잊었다.
Three proof shapes
- Direct proof 直接证明: assume $p$ and derive $q$. Contraposition 逆否证明: prove $\neg q \to \neg p$ instead, which helps when the negatives are easier to work with.
- Proof by contradiction 反证法: assume $p \land \neg q$ and derive something impossible. Choosing the shape decides which assumptions you get to compute with.
p ∧ ¬q를 가정하고 모순을 유도하는 것은 —이다.
난이도 1/5 · 100코인 + 오늘 첫 완료 시 작은 보너스 추가
모순은 주장을 실패한다고 가정하며; 불가능성은 실패할 수 없음을 보여줍니다.
Name the shape, then prove
Claim: if $n^2$ is even, then $n$ is even. "$n^2$ even" is hard to use, so prove the contrapositive.
Suppose $n$ is odd: $n = 2k + 1$. Then $n^2 = 4k^2 + 4k + 1 = 2(2k^2 + 2k) + 1$, which is odd. So "$n$ odd" gives "$n^2$ odd", and the claim follows.
- State the strategy in the first line ("by contraposition"), so the reader knows what you are assuming.
"n²가 짝수이면 n은 짝수"의 역대명 증정을 순서대로 배치하시오.
난이도 3/5 · 200코인 + 오늘 첫 완료 시 작은 보너스 추가
먼저 도형의 이름을 적고, 이후 ¬q를 가정하여 ¬p에 이르는 추론을 하십시오.
Marks that slip away
- Proving the converse. Showing $q \to p$ when $p \to q$ was asked proves the wrong thing.
- Negating without flipping. $\neg(p \land q)$ is $\neg p \lor \neg q$, not $\neg p \land \neg q$.
- Examples as proof. Ten examples do not prove a "for all" claim. One counterexample does disprove it.
You've got it
- $p \to q$ is false only when $p$ is true and $q$ is false; $p \to q \equiv \neg p \lor q \equiv \neg q \to \neg p$.
- Negation flips ∧/∨ (De Morgan) and swaps $\forall$/$\exists$.
- Translate the claim, choose a shape (direct, contraposition, contradiction), name it, then write justified steps.
어떤 문제가 있었나요? 사이트 팀만 이 내용을 볼 수 있습니다.