Forming Logic Expressions — Study Notes Summary & Study Notes
These study notes provide a concise summary of Forming Logic Expressions — Study Notes, covering key concepts, definitions, and examples to help you review quickly and study effectively.
🧭 Steps to form logic expressions
Identify the atomic propositions: Break the situation into basic true/false statements (for example, “is a student”, “is 65 or older”, “order ≥ $20”). Give each a short variable name.
Choose a clear variable convention: Decide whether a variable is 1 for true or 1 for false. The usual convention is 1 = true, but always follow the problem’s table if it gives a different mapping.
Combine with logical operators: Use OR (), AND (), and NOT () to combine atomic propositions. Use parentheses to fix order of evaluation.
Translate the English condition into logic: Convert phrases like “either ... or ...” to , “and” to , and negations like “not a student” to .
Simplify and check: Use Boolean identities (e.g., De Morgan’s laws, distributive/associative laws) to simplify. Always test a few cases or build a small truth table to verify the expression.
Canonical forms & tools: If needed, convert to DNF or CNF, or use a Karnaugh map for minimization.
✳️ Quick examples
-
If = "is a student", = "is 65 or older", = "order ≥ 20$” is
.
-
If a problem’s table defines a variable opposite to your preferred meaning (e.g., variable = 1 means "not a student"), express the intended proposition with a NOT: "student" = .
✅ Common identities to use
- De Morgan: and .
- Distributive: .
- Double negation: .
Use these steps and rules each time you form or simplify a logic expression.
🧾 Problem statement (from screenshot)
Situation: The restaurant gives a discount () if the person ordering is either a student or is 65 years or older, and the order amount is $20.00 or over.
The screenshot gives three rules with 0/1 encodings:
- Rule A: a student = 0, not a student = 1
- Rule B: under 65 years old = 0, 65 years or older = 1
- Rule C: under 20.00 or over = 1
Because the table uses 1 for “not a student” for rule A, be careful with the meaning of that variable.
🔧 Define variables (matching the screenshot labels)
Let the given variables be:
- : 1 means not a student, 0 means a student
- : 1 means 65 years or older, 0 means under 65
- : 1 means order , 0 means under
The discount variable is where means discount given.
🧠 Form the logic expression
The English rule: "discount if (student OR 65+) AND amount ≥ "student" is the negation ofA\lnot ABC$. So the expression is:
This reads: give discount when (student OR 65+) is true and order ≥ $20 is true.
🔍 Alternative if you prefer 1 = true for "student"
If you redefine variables so = "student" (1 = student), = "65+" (1 = 65+), = "order ≥ $20" (1 = yes), the expression is the simpler form:
Both forms are equivalent once you map the variables consistently.
✔️ Quick truth-check
- A student with (order ≥ ): , , → (discount given).
- Non-student, 65+, with : , , → .
- Student with order under : → (no discount).
These checks confirm is the correct translation of the screenshot problem.
Sign up to read the full notes
It's free — no credit card required
Already have an account?
Create your own study notes
Turn your PDFs, lectures, and materials into summarized notes with AI. Study smarter, not harder.
Get Started Free