เมื่อเรามีข้อความที่มีตัวแปร เราไม่สามารถบอกได้ว่าเป็นจริงหรือเท็จจนกว่าจะมีการระบุว่าตัวแปรนั้นคืออะไร เราใช้ "ตัวบ่งปริมาณ" เพื่อระบุขอบเขตของตัวแปรนั้นๆ
When we have statements with variables, we cannot determine their truth value until the variables are specified. We use "Quantifiers" to define the scope of those variables.
🗣️ ประโยคเปิด / Open Sentences
ประโยคเปิด (Open Sentence) คือ ข้อความบอกเล่าหรือปฏิเสธที่มี "ตัวแปร" รวมอยู่ด้วย และยังไม่ทราบค่าความจริง (ไม่ใช่ประพจน์) จนกว่าจะมีการแทนค่าตัวแปรนั้นด้วยสมาชิกในเอกภพสัมพัทธ์ ($U$)
An Open Sentence is a declarative or negative statement containing "variables". It is not a proposition until the variables are replaced by specific values from the Universal Set ($U$).
📝 ตัวอย่างประโยคเปิด (คณิตศาสตร์)
- $x + 2 = 5$
- $x^2 - 1 = 0$
- $x$ เป็นจำนวนเฉพาะ (prime)
- $x + y > 10$
- $|x| = x$
🗣️ ตัวอย่างประโยคเปิด (ภาษา)
- เขาเป็นนักเรียน
- $x$ เป็นจังหวัดในภาคเหนือ
- เธอเป็นคนสวย
- มันเป็นสัตว์เลี้ยงลูกด้วยนม
- เขาเดินไปโรงเรียน
💡 จุดสังเกต
- ประโยคที่มีสรรพนาม เช่น "เขา", "มัน", "เธอ" ถือเป็นประโยคเปิด เพราะสรรพนามทำหน้าที่เป็นตัวแปร
- ประโยคเปิดจะกลายเป็นประพจน์เมื่อแทนค่าตัวแปร เช่น แทน $x=3$ ใน $x+2=5$ จะได้ $5=5$ ซึ่งเป็นจริง (T)
- Sentences with pronouns like "He", "It", "She" are open sentences because the pronouns act as variables.
- An open sentence becomes a proposition when a value is substituted, e.g., substituting $x=3$ in $x+2=5$ yields $5=5$ (True).
🔗 ตัวบ่งปริมาณ / Quantifiers
เพื่อระบุว่าข้อความนั้นครอบคลุมสมาชิกตัวไหนบ้างในเอกภพสัมพัทธ์ เราใช้สัญลักษณ์ 2 ชนิด:
To specify which members of the Universal Set are covered by a statement, we use two types of symbols:
สำหรับทุกตัว (For All)
สัญลักษณ์: $\forall x$
หมายถึง "ทุกๆ $x$ ในเอกภพสัมพัทธ์"
Means "for every $x$ in the universal set"
สำหรับบางตัว (For Some)
สัญลักษณ์: $\exists x$
หมายถึง "มี $x$ อย่างน้อยหนึ่งตัว"
Means "there exists at least one $x$"
ตัวอย่างการเขียนสัญลักษณ์ (10 ตัวอย่าง)
📊 ค่าความจริง / Truth Values
💡 การหาค่าความจริงของตัวบ่งปริมาณ
กรณี 1 ตัวแปร (Single Variable):
- $\forall x [P(x)]$: เป็นจริงเมื่อ ทุกตัว ใน $U$ ทำให้ $P(x)$ เป็นจริง (ห้ามมีตัวอย่างค้านแม้แต่ตัวเดียว)
- $\exists x [P(x)]$: เป็นจริงเมื่อ มี อย่างน้อยหนึ่งตัว ใน $U$ ที่ทำให้ $P(x)$ เป็นจริง
กรณี 2 ตัวแปร (Two Variables):
- $\forall x \forall y [P(x, y)]$: เป็นจริงเมื่อ $P(x, y)$ เป็นจริงสำหรับ ทุกคู่ $(x, y)$
- $\forall x \exists y [P(x, y)]$: เป็นจริงเมื่อ สำหรับ ทุกๆ $x$ จะมี $y$ อย่างน้อยหนึ่งตัวที่ใช้ได้
- $\exists x \forall y [P(x, y)]$: เป็นจริงเมื่อ มี $x$ อย่างน้อยหนึ่งตัว ที่ใช้คู่กับ $y$ ได้ ทุกตัว
- $\exists x \exists y [P(x, y)]$: เป็นจริงเมื่อ มี อย่างน้อยหนึ่งคู่ $(x, y)$ ที่เป็นจริง
💡 Evaluating Quantifiers Truth Values
Single Variable:
- $\forall x [P(x)]$: True if $P(x)$ is true for every element in $U$ (no counterexamples allowed).
- $\exists x [P(x)]$: True if there is at least one element in $U$ that makes $P(x)$ true.
Two Variables:
- $\forall x \forall y [P(x, y)]$: True if $P(x, y)$ is true for all pairs $(x, y)$.
- $\forall x \exists y [P(x, y)]$: True if for every $x$, there is at least one $y$ that works.
- $\exists x \forall y [P(x, y)]$: True if there is at least one $x$ that works for all $y$.
- $\exists x \exists y [P(x, y)]$: True if there is at least one pair $(x, y)$ that is true.
ตัวอย่างการหาค่าความจริง (30 ตัวอย่าง)
📝 นิเสธของตัวบ่งปริมาณ / Negation of Quantifiers
การหานิเสธของประพจน์ที่มีตัวบ่งปริมาณ มีกฎสำคัญคือ:
- เปลี่ยน $\forall$ เป็น $\exists$ และเปลี่ยน $\exists$ เป็น $\forall$
- เติมตัวเชื่อม "นิเสธ" ($\sim$) หน้าประโยคเปิด
สูตร 1 ตัวแปร: $\sim [\forall x P(x)] \equiv \exists x [\sim P(x)]$ และ $\sim [\exists x P(x)] \equiv \forall x [\sim P(x)]$
สูตร 2 ตัวแปร: $\sim [\forall x \exists y P(x, y)] \equiv \exists x \forall y [\sim P(x, y)]$
To find the negation of a quantified proposition:
- Switch $\forall \leftrightarrow \exists$ symbols.
- Apply the negation ($\sim$) to the open sentence.
1-Variable Formulas: $\sim [\forall x P(x)] \equiv \exists x [\sim P(x)]$ and $\sim [\exists x P(x)] \equiv \forall x [\sim P(x)]$
2-Variable Formulas: $\sim [\forall x \exists y P(x, y)] \equiv \exists x \forall y [\sim P(x, y)]$
ตัวอย่างการหานิเสธ (20 ตัวอย่าง)
คำศัพท์ที่น่าสนใจ / Key Vocabulary
คำศัพท์ตรรกศาสตร์ภาษาอังกฤษ พร้อมรากศัพท์