Module 1 - Mathematical Logic
Module 1 - Mathematical Logic
Notes Created by Noor Mohammed FYUGP STUDENTS (Noor Hero) | WhatsApp: +91 8075175561 Page 1
FYUGP STUDENTS Discrete Structures for Computer Applications Module I
Question
Decide whether each sentence is a proposition. If it is, state its truth value.
Notes Created by Noor Mohammed FYUGP STUDENTS (Noor Hero) | WhatsApp: +91 8075175561 Page 2
FYUGP STUDENTS Discrete Structures for Computer Applications Module I
Answer
1.3.1 Negation
• The negation ¬𝑝 states that proposition 𝑝 is not true.
• Negation is a unary operator because it acts on one proposition.
𝑝 ¬𝑝
T F
F T
Question
Let 𝑝 be “The file is encrypted.” Write the negation in words.
Answer
The negation is “The file is not encrypted.”
Notes Created by Noor Mohammed FYUGP STUDENTS (Noor Hero) | WhatsApp: +91 8075175561 Page 3
FYUGP STUDENTS Discrete Structures for Computer Applications Module I
𝑝 𝑞 𝑝∧𝑞 𝑝∨𝑞
T T T T
T F F T
F T F T
F F F F
Question
Let 𝑝: “A student has valid login credentials” and 𝑞: “The student has network access.” Express the following
symbolically.
Answer
1. 𝑝 ∧ 𝑞.
2. ¬𝑝 ∨ 𝑞.
1.3.3 Implication
• In 𝑝 → 𝑞, 𝑝 is the antecedent or hypothesis and 𝑞 is the consequent or conclusion.
• The implication is false only when the hypothesis is true but the promised conclusion is false.
• When 𝑝 is false, the implication is considered true in classical logic because it has not been violated by a true
counterexample.
𝑝 𝑞 𝑝→𝑞
T T T
T F F
F T T
F F T
• Converse: 𝑞 → 𝑝.
• Inverse: ¬𝑝 → ¬𝑞.
• Contrapositive: ¬𝑞 → ¬𝑝.
• An implication is logically equivalent to its contrapositive, not generally to its converse or inverse.
Question
For the statement “If a number is divisible by 4, then it is even”, write the converse, inverse and contrapositive.
Answer
Let 𝑝: “The number is divisible by 4” and 𝑞: “The number is even.”
Notes Created by Noor Mohammed FYUGP STUDENTS (Noor Hero) | WhatsApp: +91 8075175561 Page 4
FYUGP STUDENTS Discrete Structures for Computer Applications Module I
The converse and inverse are false, while the original implication and contrapositive are true.
1.3.5 Biconditional
• 𝑝 ↔ 𝑞 means both 𝑝 → 𝑞 and 𝑞 → 𝑝 hold.
• It is true when 𝑝 and 𝑞 have equal truth values.
𝑝 𝑞 𝑝↔𝑞
T T T
T F F
F T F
F F T
Question
Construct the truth table for (𝑝 ∨ 𝑞) → ¬𝑝.
Answer
𝑝 𝑞 𝑝∨𝑞 ¬𝑝 (𝑝 ∨ 𝑞) → ¬𝑝
T T T F F
T F T F F
F T T T T
F F F T T
Final answer: The compound proposition is true exactly when 𝑝 is false.
Question
Translate the statement “The file is encrypted and it is not corrupted” into symbolic form.
Answer
Let 𝑝 mean “The file is encrypted” and 𝑞 mean “The file is corrupted.” The word “and” gives conjunction, while
“not corrupted” gives ¬𝑞. Hence the symbolic form is
𝑝 ∧ ¬𝑞.
Notes Created by Noor Mohammed FYUGP STUDENTS (Noor Hero) | WhatsApp: +91 8075175561 Page 5
FYUGP STUDENTS Discrete Structures for Computer Applications Module I
Question
Let 𝑝: “The user enters the correct password” and 𝑞: “Access is granted.” Write the symbolic form of “Access is
granted only if the user enters the correct password.”
Answer
The phrase “𝑞 only if 𝑝” means that 𝑝 is necessary for 𝑞. Therefore
𝑞 → 𝑝.
Question
Construct the truth table of ¬(𝑝 ∧ 𝑞) and interpret its false case.
Answer
𝑝 𝑞 𝑝∧𝑞 ¬(𝑝 ∧ 𝑞)
T T T F
T F F T
F T F T
F F F T
The expression is false only when both 𝑝 and 𝑞 are true. This is consistent with De Morgan’s law, ¬(𝑝 ∧ 𝑞) ≡
¬𝑝 ∨ ¬𝑞.
Question
Find the truth value of (𝑝 → 𝑞) ∧ ¬𝑟 when 𝑝 = T, 𝑞 = F and 𝑟 = F.
Answer
First, 𝑝 → 𝑞 is false because its antecedent is true and consequent is false. Next, ¬𝑟 is true. Therefore
(𝑝 → 𝑞) ∧ ¬𝑟 = F ∧ T = F.
Notes Created by Noor Mohammed FYUGP STUDENTS (Noor Hero) | WhatsApp: +91 8075175561 Page 6
FYUGP STUDENTS Discrete Structures for Computer Applications Module I
Question
Translate “A user can download the file only if the user is authenticated.”
Answer
Let 𝑑 mean “The user can download the file” and 𝑎 mean “The user is authenticated.” Authentication is necessary
for downloading, so
𝑑 → 𝑎.
It does not claim that every authenticated user must download the file.
Question
Translate “The backup runs unless the battery is low.”
Answer
Let 𝑏 mean “The backup runs” and 𝑙 mean “The battery is low.” The statement means that if the battery is not low,
the backup runs:
¬𝑙 → 𝑏.
The original implication is logically equivalent to its contrapositive, while the converse is equivalent to the inverse.
Question
For “If a number is divisible by 6, then it is even,” write the converse, inverse and contrapositive and state which
are true.
Answer
Let 𝑝: divisible by 6, 𝑞: even.
Notes Created by Noor Mohammed FYUGP STUDENTS (Noor Hero) | WhatsApp: +91 8075175561 Page 7
FYUGP STUDENTS Discrete Structures for Computer Applications Module I
• Inverse ¬𝑝 → ¬𝑞: If a number is not divisible by 6, then it is not even - false; 8 is a counterexample.
• Contrapositive ¬𝑞 → ¬𝑝: If a number is not even, then it is not divisible by 6 - true.
Question
Construct the main columns needed to evaluate (𝑝 ∧ 𝑞) → 𝑟.
Answer
𝑝 𝑞 𝑟 𝑝∧𝑞 (𝑝 ∧ 𝑞) → 𝑟
T T T T T
T T F T F
T F T F T
T F F F T
F T T F T
F T F F T
F F T F T
F F F F T
The expression is false only when both conditions 𝑝 and 𝑞 are true but result 𝑟 is false.
Unit Questions
1. Define proposition and truth value with two examples.
2. Distinguish a proposition from an open sentence.
3. Construct truth tables for 𝑝 ∧ 𝑞, 𝑝 ∨ 𝑞, 𝑝 → 𝑞 and 𝑝 ↔ 𝑞.
4. Explain why an implication is false only in the case 𝑝 = T, 𝑞 = F.
5. Write the converse, inverse and contrapositive of a suitable implication.
6. Construct the truth table for ¬(𝑝 ∧ 𝑞) ∨ 𝑟.
Notes Created by Noor Mohammed FYUGP STUDENTS (Noor Hero) | WhatsApp: +91 8075175561 Page 8
FYUGP STUDENTS Discrete Structures for Computer Applications Module I
Question
Classify 𝑝 ∨ ¬𝑝.
Answer
𝑝 ¬𝑝 𝑝 ∨ ¬𝑝
T F T
F T T
The final column is always true; therefore 𝑝 ∨ ¬𝑝 is a tautology.
Question
Classify 𝑝 ∧ ¬𝑝.
Answer
𝑝 ¬𝑝 𝑝 ∧ ¬𝑝
T F F
F T F
The final column is always false; therefore it is a contradiction.
Question
Verify 𝑝 → 𝑞 ≡ ¬𝑝 ∨ 𝑞.
Answer
𝑝 𝑞 𝑝→𝑞 ¬𝑝 ¬𝑝 ∨ 𝑞
T T T F T
T F F F F
F T T T T
F F T T T
The columns for 𝑝 → 𝑞 and ¬𝑝 ∨ 𝑞 are identical, so they are logically equivalent.
Notes Created by Noor Mohammed FYUGP STUDENTS (Noor Hero) | WhatsApp: +91 8075175561 Page 9
FYUGP STUDENTS Discrete Structures for Computer Applications Module I
Question
Show by a truth table that ¬(𝑝 ∨ 𝑞) ≡ ¬𝑝 ∧ ¬𝑞.
Answer
𝑝 𝑞 ¬𝑝 ¬𝑞 ¬(𝑝 ∨ 𝑞) ¬𝑝 ∧ ¬𝑞
T T F F F F
T F F T F F
F T T F F F
F F T T T T
The final two columns are identical in all rows. Hence the propositions are logically equivalent.
Question
Classify (𝑝 → 𝑞) ∨ (𝑞 → 𝑝).
Answer
An implication is false only in the true-to-false case. For both implications to be false simultaneously, we would
need 𝑝 = T, 𝑞 = F and 𝑞 = T, 𝑝 = F at the same time, which is impossible. Therefore at least one implication is
always true, so the expression is a tautology.
Question
Classify (𝑝 ∧ 𝑞) ∧ ¬𝑞 without constructing a complete truth table.
Answer
The expression requires 𝑞 and ¬𝑞 to be true simultaneously. This cannot happen. By association,
(𝑝 ∧ 𝑞) ∧ ¬𝑞 ≡ 𝑝 ∧ (𝑞 ∧ ¬𝑞) ≡ 𝑝 ∧ F ≡ F.
Therefore it is a contradiction.
Notes Created by Noor Mohammed FYUGP STUDENTS (Noor Hero) | WhatsApp: +91 8075175561 Page 10
FYUGP STUDENTS Discrete Structures for Computer Applications Module I
• A contradictory condition can never be satisfied and may make a branch unreachable.
• A contingency depends on input values and is the normal form of a useful decision condition.
• Logical equivalence supports safe simplification of Boolean conditions in programs and digital circuits.
Question
Classify (𝑝 ∨ 𝑞) ∧ ¬(𝑝 ∧ 𝑞).
Answer
T T T T F
T F T F T
F T T F T
F F F F F
The final column has both true and false values, so it is a contingency. It represents exclusive OR: exactly one of
𝑝 and 𝑞 is true.
Question
Classify [(𝑝 → 𝑞) ∧ 𝑝] → 𝑞.
Answer
The antecedent states that 𝑝 → 𝑞 and 𝑝 are both true. By Modus Ponens this forces 𝑞 to be true. Therefore the
implication can never have a true antecedent and false consequent, so it is a tautology.
Question
Show that 𝑝 → 𝑞 is not equivalent to 𝑞 → 𝑝.
Answer
Take 𝑝 = F, 𝑞 = T. Then 𝑝 → 𝑞 = T, while 𝑞 → 𝑝 = F. A single differing assignment disproves equivalence.
Question
Prove that 𝑝 ↔ 𝑞 ≡ (𝑝 → 𝑞) ∧ (𝑞 → 𝑝).
Answer
The biconditional requires 𝑝 and 𝑞 to have the same truth value. If both are true, both implications are true. If
both are false, both implications are also true. If their values differ, one direction is false. Thus the two sides have
identical truth conditions.
Notes Created by Noor Mohammed FYUGP STUDENTS (Noor Hero) | WhatsApp: +91 8075175561 Page 11
FYUGP STUDENTS Discrete Structures for Computer Applications Module I
Question
Explain why 𝑝 → (𝑝 ∨ 𝑞) is a tautology without a full truth table.
Answer
When 𝑝 is false, the implication is true because its antecedent is false. When 𝑝 is true, the disjunction 𝑝 ∨ 𝑞 is true.
Therefore the implication is true in every case.
Unit Questions
1. Define tautology, contradiction and contingency.
2. Use a truth table to verify a De Morgan law.
3. Prove 𝑝 ↔ 𝑞 ≡ (𝑝 → 𝑞) ∧ (𝑞 → 𝑝).
4. Determine whether (𝑝 ∧ 𝑞) → 𝑝 is a tautology.
5. Explain logical equivalence and its significance in simplification.
Question
Simplify ¬(𝑝 ∨ 𝑞) ∨ 𝑝.
Answer
Question
Show without a truth table that (𝑝 → 𝑞) ∧ (𝑝 → 𝑟) ≡ 𝑝 → (𝑞 ∧ 𝑟).
Answer
(𝑝 → 𝑞) ∧ (𝑝 → 𝑟) ≡ (¬𝑝 ∨ 𝑞) ∧ (¬𝑝 ∨ 𝑟)
≡ ¬𝑝 ∨ (𝑞 ∧ 𝑟) Distributive law
≡ 𝑝 → (𝑞 ∧ 𝑟).
Notes Created by Noor Mohammed FYUGP STUDENTS (Noor Hero) | WhatsApp: +91 8075175561 Page 12
FYUGP STUDENTS Discrete Structures for Computer Applications Module I
Question
Write 𝑝 ↔ 𝑞 using only ¬, ∧ and ∨.
Answer
𝑝 ↔ 𝑞 ≡ (𝑝 ∧ 𝑞) ∨ (¬𝑝 ∧ ¬𝑞).
The proposition is true exactly when both have the same truth value.
Question
Simplify ¬(𝑝 → 𝑞) ∨ 𝑞.
Answer
Step 1. Remove the implication.
¬(𝑝 → 𝑞) ∨ 𝑞 ≡ ¬(¬𝑝 ∨ 𝑞) ∨ 𝑞.
(𝑝 ∧ ¬𝑞) ∨ 𝑞.
(𝑞 ∨ 𝑝) ∧ (𝑞 ∨ ¬𝑞).
(𝑝 ∨ 𝑞) ∧ T ≡ 𝑝 ∨ 𝑞.
Final answer: 𝑝 ∨ 𝑞.
Notes Created by Noor Mohammed FYUGP STUDENTS (Noor Hero) | WhatsApp: +91 8075175561 Page 13
FYUGP STUDENTS Discrete Structures for Computer Applications Module I
Question
Simplify (𝑝 ∨ 𝑞) ∧ (𝑝 ∨ ¬𝑞).
Answer
Use the distributive form (𝑥 ∨ 𝑦) ∧ (𝑥 ∨ 𝑧) ≡ 𝑥 ∨ (𝑦 ∧ 𝑧):
(𝑝 ∨ 𝑞) ∧ (𝑝 ∨ ¬𝑞) ≡ 𝑝 ∨ (𝑞 ∧ ¬𝑞) ≡ 𝑝 ∨ F ≡ 𝑝.
Final answer: 𝑝.
Question
Prove without a truth table that 𝑝 → (𝑞 → 𝑟) ≡ (𝑝 ∧ 𝑞) → 𝑟.
Answer
𝑝 → (𝑞 → 𝑟) ≡ ¬𝑝 ∨ (¬𝑞 ∨ 𝑟)
≡ (¬𝑝 ∨ ¬𝑞) ∨ 𝑟
≡ ¬(𝑝 ∧ 𝑞) ∨ 𝑟
≡ (𝑝 ∧ 𝑞) → 𝑟.
Each step uses implication, associativity and De Morgan’s law, so the expressions are equivalent.
Question
Simplify [𝑝 ∧ (𝑝 → 𝑞)] ∨ (𝑝 ∧ ¬𝑞).
Answer
Remove the implication:
[𝑝 ∧ (¬𝑝 ∨ 𝑞)] ∨ (𝑝 ∧ ¬𝑞).
Factor 𝑝:
𝑝 ∧ (𝑞 ∨ ¬𝑞) = 𝑝 ∧ T = 𝑝.
Notes Created by Noor Mohammed FYUGP STUDENTS (Noor Hero) | WhatsApp: +91 8075175561 Page 14
FYUGP STUDENTS Discrete Structures for Computer Applications Module I
Question
Simplify (𝑝 → 𝑞) ∧ (𝑝 → ¬𝑞).
Answer
Question
Simplify ¬[𝑝 ∨ (¬𝑝 ∧ 𝑞)].
Answer
First apply absorption inside:
𝑝 ∨ (¬𝑝 ∧ 𝑞) ≡ (𝑝 ∨ ¬𝑝) ∧ (𝑝 ∨ 𝑞) ≡ 𝑝 ∨ 𝑞.
Therefore
¬[𝑝 ∨ (¬𝑝 ∧ 𝑞)] ≡ ¬(𝑝 ∨ 𝑞) ≡ ¬𝑝 ∧ ¬𝑞.
Unit Questions
1. Simplify 𝑝 ∨ (𝑝 ∧ 𝑞).
2. Prove ¬(𝑝 → 𝑞) ≡ 𝑝 ∧ ¬𝑞.
3. Simplify (𝑝 ∧ 𝑞) ∨ (𝑝 ∧ ¬𝑞).
4. Express 𝑝 ↔ 𝑞 without using ↔.
5. Verify one simplification both by laws and by a truth table.
Notes Created by Noor Mohammed FYUGP STUDENTS (Noor Hero) | WhatsApp: +91 8075175561 Page 15
FYUGP STUDENTS Discrete Structures for Computer Applications Module I
Question
Test the argument: “If the database is connected, the application loads. The database is connected. Therefore, the
application loads.”
Answer
Let 𝑝: the database is connected; 𝑞: the application loads.
𝑝 → 𝑞, 𝑝 ∴𝑞
Question
Determine the validity of 𝑝 → 𝑞, 𝑞 → 𝑟, ¬𝑟; therefore ¬𝑝.
Answer
Notes Created by Noor Mohammed FYUGP STUDENTS (Noor Hero) | WhatsApp: +91 8075175561 Page 16
FYUGP STUDENTS Discrete Structures for Computer Applications Module I
Question
Test whether 𝑝 ∨ 𝑞, 𝑝 → 𝑟, 𝑞 → 𝑟 imply 𝑟.
Answer
If 𝑝 ∨ 𝑞 is true, at least one of 𝑝 and 𝑞 is true. If 𝑝 is true, 𝑝 → 𝑟 forces 𝑟 to be true. If 𝑞 is true, 𝑞 → 𝑟 forces 𝑟 to
be true. Therefore no row has all premises true and 𝑟 false; the argument is valid.
Question
Test the argument: 𝑝 → 𝑞, 𝑝; therefore 𝑞.
Answer
This is Modus Ponens. The premises can both be true only when 𝑝 = T and 𝑝 → 𝑞 = T. Since an implication
with true antecedent is true only when its consequent is true, 𝑞 = T. Hence no counterexample exists and the
argument is valid.
Question
Test the argument: 𝑝 → 𝑞, 𝑞; therefore 𝑝.
Answer
This has the form affirming the consequent. Choose 𝑝 = F and 𝑞 = T. Then 𝑝 → 𝑞 is true and 𝑞 is true, but the
conclusion 𝑝 is false. This row is a counterexample. Therefore the argument is invalid.
Question
Show that the following argument is valid: “If the network fails, the service stops. If the service stops, an alert is
generated. The network fails. Therefore an alert is generated.”
Answer
Let 𝑝 mean network fails, 𝑞 mean service stops and 𝑟 mean alert is generated. The premises are 𝑝 → 𝑞, 𝑞 → 𝑟
and 𝑝.
Notes Created by Noor Mohammed FYUGP STUDENTS (Noor Hero) | WhatsApp: +91 8075175561 Page 17
FYUGP STUDENTS Discrete Structures for Computer Applications Module I
Question
Determine whether 𝑝 ∨ 𝑞, 𝑝 → 𝑟, 𝑞 → 𝑟; therefore 𝑟 is valid.
Answer
If 𝑝 ∨ 𝑞 is true, at least one of 𝑝 or 𝑞 is true. If 𝑝 is true, 𝑝 → 𝑟 gives 𝑟. If 𝑞 is true, 𝑞 → 𝑟 gives 𝑟. Thus every
case allowed by the premises leads to 𝑟, so the argument is valid by constructive dilemma.
The premises are assumptions; the conclusion is the statement claimed to follow. Validity concerns logical form,
not whether the premises are factually true in the real world.
Question
Determine validity: “All databases store data. MySQL is a database. Therefore MySQL stores data.”
Answer
Let 𝐷(𝑥) mean 𝑥 is a database and 𝑆(𝑥) mean 𝑥 stores data. The premises are ∀𝑥[𝐷(𝑥) → 𝑆(𝑥)] and 𝐷(MySQL).
Universal instantiation gives 𝐷(MySQL) → 𝑆(MySQL), and Modus Ponens gives 𝑆(MySQL). The argument
is valid.
Question
Test: 𝑝 → (𝑞 ∧ 𝑟), ¬𝑟; therefore ¬𝑝.
Answer
From 𝑝 → (𝑞 ∧ 𝑟), a true 𝑝 would imply 𝑟. Since ¬𝑟 is a premise, Modus Tollens yields ¬𝑝. More formally,
𝑝 → (𝑞 ∧ 𝑟) implies 𝑝 → 𝑟, then 𝑝 → 𝑟 and ¬𝑟 give ¬𝑝. The argument is valid.
Question
Test: 𝑝 ∨ 𝑞, ¬𝑝; therefore 𝑞.
Answer
This is Disjunctive Syllogism. Since at least one of 𝑝, 𝑞 is true and 𝑝 is false, 𝑞 must be true. The argument is
valid.
Notes Created by Noor Mohammed FYUGP STUDENTS (Noor Hero) | WhatsApp: +91 8075175561 Page 18
FYUGP STUDENTS Discrete Structures for Computer Applications Module I
Question
Show that 𝑝 → 𝑞, ¬𝑝; therefore ¬𝑞 is invalid.
Answer
Choose 𝑝 = F and 𝑞 = T. Then 𝑝 → 𝑞 is true and ¬𝑝 is true, but ¬𝑞 is false. Therefore the argument is invalid;
this is denying the antecedent.
Question
From 𝑝 → 𝑞, 𝑞 → 𝑟, 𝑟 → 𝑠 and 𝑝, derive 𝑠.
Answer
Unit Questions
1. Define a valid argument.
2. Explain Modus Ponens and Modus Tollens with examples.
3. Test the validity of 𝑝 → 𝑞, 𝑞 → 𝑟, 𝑝; therefore 𝑟.
4. Distinguish validity from truth of premises.
5. Explain logical implication and its relation to tautology.
Unit 5 - Quantifiers
5.1 Predicates and Domains
• A predicate is an open statement containing one or more variables, such as 𝑃 (𝑥) ∶ 𝑥 > 5.
• A domain specifies the set of values from which the variable may be chosen.
• After assigning a value or applying a quantifier, the predicate becomes a proposition.
Notes Created by Noor Mohammed FYUGP STUDENTS (Noor Hero) | WhatsApp: +91 8075175561 Page 19
FYUGP STUDENTS Discrete Structures for Computer Applications Module I
Question
Let the domain be the integers. State the truth value of:
1. ∀𝑥 (𝑥2 ≥ 0).
2. ∃𝑥 (𝑥2 = 2).
Answer
• “Not every” becomes “there exists at least one that does not.”
• “There does not exist” becomes “every element fails the property.”
Question
Negate: “Every student submitted the assignment.”
Answer
Let 𝑃 (𝑥) mean “student 𝑥 submitted the assignment.” The statement is ∀𝑥 𝑃 (𝑥). Its negation is ∃𝑥 ¬𝑃 (𝑥): “At
least one student did not submit the assignment.”
Question
Translate into symbols: “There exists a natural number that is both even and prime.”
Answer
If 𝐸(𝑥) means “𝑥 is even” and 𝑃 (𝑥) means “𝑥 is prime”, then
∃𝑥 ∈ ℕ [𝐸(𝑥) ∧ 𝑃 (𝑥)].
Question
Determine the truth of ∀𝑥 (𝑥 + 1 > 𝑥) over the integers.
Answer
For every integer 𝑥, adding 1 produces the next larger integer. Hence 𝑥 + 1 > 𝑥 is true for all integers, so the
universal statement is true.
Notes Created by Noor Mohammed FYUGP STUDENTS (Noor Hero) | WhatsApp: +91 8075175561 Page 20
FYUGP STUDENTS Discrete Structures for Computer Applications Module I
Question
Determine the truth of ∃𝑥 ∈ ℤ (𝑥2 = 3).
Answer
No integer has square 3. Therefore no witness exists in the integer domain, and the existential statement is false.
√
Over the real numbers the statement would be true because 𝑥 = 3 is a witness.
Question
Negate ∀𝑥 ∃𝑦 𝑃 (𝑥, 𝑦).
Answer
In words: “There exists at least one 𝑥 for which no 𝑦 satisfies 𝑃 (𝑥, 𝑦).”
Question
Translate “Every student has submitted at least one assignment” into symbols and negate it.
Answer
Let 𝑆(𝑥) mean 𝑥 is a student, 𝐴(𝑦) mean 𝑦 is an assignment and 𝑅(𝑥, 𝑦) mean 𝑥 submitted 𝑦. A suitable symbolic
form is
∀𝑥 [𝑆(𝑥) → ∃𝑦 (𝐴(𝑦) ∧ 𝑅(𝑥, 𝑦))].
Its meaningful negation is: “There exists a student who has submitted no assignment.” Symbolically,
Notes Created by Noor Mohammed FYUGP STUDENTS (Noor Hero) | WhatsApp: +91 8075175561 Page 21
FYUGP STUDENTS Discrete Structures for Computer Applications Module I
Question
Over the integers, compare:
∀𝑥∃𝑦 (𝑦 > 𝑥), ∃𝑦∀𝑥 (𝑦 > 𝑥).
Answer
The first is true: for any integer 𝑥, choose 𝑦 = 𝑥 + 1. The second is false: no single integer is greater than every
integer. Thus changing quantifier order changes truth.
Question
Over real numbers, determine the truth of ∀𝑥∃𝑦 (𝑥 + 𝑦 = 0).
Answer
For each real 𝑥, choose 𝑦 = −𝑥. Hence the statement is true. The witness depends on 𝑥.
∀𝑥 [𝑥 ∈ 𝐴 → 𝑃 (𝑥)].
Question
Write “Every even integer has an even square” using predicates.
Answer
Let 𝐸(𝑥) mean 𝑥 is even. Over integers,
∀𝑥 [𝐸(𝑥) → 𝐸(𝑥2 )].
Question
Negate “Every file is readable or encrypted.”
Answer
Let 𝑅(𝑥) mean readable and 𝐸(𝑥) mean encrypted. The statement is
∀𝑥 [𝑅(𝑥) ∨ 𝐸(𝑥)].
Its negation is
∃𝑥 ¬[𝑅(𝑥) ∨ 𝐸(𝑥)] ≡ ∃𝑥 [¬𝑅(𝑥) ∧ ¬𝐸(𝑥)].
Notes Created by Noor Mohammed FYUGP STUDENTS (Noor Hero) | WhatsApp: +91 8075175561 Page 22
FYUGP STUDENTS Discrete Structures for Computer Applications Module I
Question
Negate “There is a server that responds to every request.”
Answer
The symbolic form is ∃𝑠∀𝑟 𝑅(𝑠, 𝑟). Its negation is
In words: “For every server, there is at least one request to which it does not respond.”
Unit Questions
1. Define predicate and domain.
2. Explain universal and existential quantifiers.
3. Negate “Some files are corrupted.”
4. Negate “Every process terminates.”
5. Translate two ordinary-language statements into quantified symbolic form.
These notes are independently prepared for educational and revision purposes. They are not an official University
or college document and do not replace prescribed textbooks, classroom instruction or official notifications. Def-
initions, symbolic steps and worked solutions have been checked carefully; students should verify any suspected
typographical error before relying on it in an examination.
Notes Created by Noor Mohammed FYUGP STUDENTS (Noor Hero) | WhatsApp: +91 8075175561 Page 23