Introduction to Mathematical Logic
- 43Unfamiliar
- 0Learning
- 0Familiar
- 0Mastered
What is mathematical logic?
43 questions
- 1
What is mathematical logic?
Model answer
Mathematical logic is the science of reasoning that provides methods for determining whether statements, including mathematical statements, are true or false.
Explanation
It supplies principles for verifying statements and for determining whether conclusions follow correctly from given statements.
- 2
How can mathematical induction be used to prove that the sum of the first n positive integers is 2n(n+1)?
Model answer
First, show that the formula is true for the base case, such as n=1. Then assume it is true for n=k and prove that it is also true for n=k+1.
Explanation
The base case and the inductive step together establish the theorem for all relevant positive integers.
- 3
Why does mathematical logic help establish that a proof is valid?
Model answer
Mathematical logic provides rules for determining whether the statements and reasoning used in a proof correctly justify its conclusion.
Explanation
It explains why the base case and inductive step in a proof by induction constitute a valid argument.
- 4
How is mathematical logic used in Boolean algebra?
Model answer
Mathematical logic is used extensively in Boolean algebra, which forms the basis of computer architecture.
Explanation
Boolean algebra manipulates truth values and logical operations, making it fundamental to the design of digital hardware.
- 5
Why is testing software with only a selection of inputs insufficient for critical applications?
Model answer
Untested inputs may cause the software to produce incorrect results, even if all tested inputs produce correct outputs.
Explanation
Testing cannot generally cover every possible input, so it may fail to reveal errors that are dangerous in applications such as aircraft software.
- 6
How does mathematical logic support program verification and validation?
Model answer
It is used to verify formally that a program performs its intended task correctly, rather than relying only on results from selected test inputs.
Explanation
Formal reasoning is especially important when software must be robust and correct for all relevant situations.
- 7
How is mathematical logic used in hardware verification?
Model answer
It is used to verify that components embedded in hardware, such as chips and motherboard units, are correctly integrated and perform their intended functions.
Explanation
Logical verification checks whether the hardware structure and behavior satisfy their required specifications.
- 8
Name two applications of mathematical logic in artificial intelligence and automated reasoning.
Model answer
Mathematical logic provides the basis for the AI programming language PROLOG and is used in automated theorem proving.
Explanation
Automated theorem proving uses computer programs to determine whether statements are true or false.
- 9
What is the relationship between propositional logic and predicate logic?
Model answer
Propositional logic is the basic form of mathematical logic, while predicate logic is a generalization of propositional logic.
Explanation
The lecture begins with propositional logic before moving toward the more general framework of predicate logic.
- 10
What is a proposition?
Model answer
A proposition is a declarative statement that has exactly one truth value: it is either true or false, but not both.
Explanation
A proposition must have a definite truth value, even if that value is not immediately known.
- 11
Why is the statement “New Delhi is the capital of India” a proposition?
Model answer
It is a declarative statement that asserts a definite fact, so it must be either true or false.
Explanation
The statement cannot be both true and false at the same time, which satisfies the definition of a proposition.
- 12
Why is the statement “Bahubali was killed by Katappa” a proposition?
Model answer
It is a declarative statement with a definite truth value; according to the example, it is true.
Explanation
Its truth value is determined by the events depicted in the movie, so it qualifies as a proposition.
- 13
Why is x+2=4 not a proposition when the value of x is unspecified?
Model answer
Its truth value depends on the value assigned to x, so it can be true for some values and false for others.
Explanation
Because the statement does not have one fixed truth value without specifying x, it is not a proposition.
- 14
What is a propositional variable?
Model answer
A propositional variable is a placeholder representing an arbitrary proposition and is typically denoted by a lowercase letter such as p, q, or r.
Explanation
Its truth value depends on the particular proposition assigned to it.
- 15
How is a propositional variable similar to an integer variable in a programming language?
Model answer
An integer variable can store any integer value, whereas a propositional variable can represent any proposition and take the truth value true or false.
Explanation
In both cases, the variable acts as a placeholder whose actual value depends on what is assigned to it.
- 16
What is a compound proposition?
Model answer
A compound proposition is a larger proposition formed by combining multiple propositions using logical operators.
Explanation
Logical operators allow simple propositions to be joined or modified to create more complex statements.
- 17
Why can the result of applying any logical operator in two-valued logic have only two possible values?
Model answer
Because every propositional variable and every resulting proposition in two-valued logic must be either true or false.
Explanation
Logical operators act on truth values, so their outputs are restricted to true and false.
- 18
What is the negation of a proposition?
Model answer
The negation reverses the truth value of a proposition: ¬p is false when p is true and true when p is false.
Explanation
Negation is a unary operator because it operates on one proposition.
- 19
Why is negation called a unary operator?
Model answer
Negation is called unary because it operates on exactly one propositional variable.
Explanation
For example, ¬p modifies only the proposition p.
- 20
What are three notations that may be used for negation?
Model answer
Negation may be written as ¬p, ∼p, or p.
Explanation
These notations differ across books, but they represent the same logical operation.
- 21
What is the conjunction of two propositions?
Model answer
The conjunction, written p∧q, is true only when both p and q are true; otherwise, it is false.
Explanation
Conjunction is the logical AND operation and is a binary operator because it uses two propositions.
- 22
Why is conjunction called a binary operator?
Model answer
Conjunction is binary because it operates on two propositional variables, such as p and q.
Explanation
The compound proposition p∧q requires both input propositions.
- 23
What is the disjunction of two propositions?
Model answer
The disjunction, written p∨q, is true when at least one of p or q is true and is false only when both are false.
Explanation
Disjunction is the logical OR operation.
- 24
What condition makes a conjunction false?
Model answer
A conjunction p∧q is false if either p is false, q is false, or both are false.
Explanation
Conjunction requires both component propositions to be true.
- 25
What condition makes a disjunction false?
Model answer
A disjunction p∨q is false only when both p and q are false.
Explanation
If at least one component proposition is true, the disjunction is true.
- 26
How many distinct logical operators can be defined on two propositional variables?
Model answer
Exactly 16 distinct logical operators can be defined on two propositional variables.
Explanation
Two variables have four possible truth assignments, and each row of an operator's truth table can independently be assigned true or false, giving 24=16 possibilities.
- 27
Why are there four rows in the truth table for an operator on p and q?
Model answer
Each of the two variables has two possible truth values, so the number of combinations is 2×2=22=4.
Explanation
The combinations are true-true, true-false, false-true, and false-false.
- 28
How is the number of possible binary logical operators calculated from the number of truth-table rows?
Model answer
Each of the four rows can independently contain either true or false, so the number of operators is 24=16.
Explanation
Each distinct assignment of outputs to the four input combinations produces a distinct truth table and therefore a distinct operator.
- 29
Why can different names not produce more than 16 distinct logical operators on two variables?
Model answer
An operator is determined by its truth table, and only 16 distinct truth tables are possible for two variables.
Explanation
Names such as conjunction, disjunction, XOR, or other labels do not create new operators unless they correspond to a different truth table.
- 30
What does the truth table of a logical operator specify?
Model answer
It specifies the output truth value of the operator for every possible combination of truth values of its input propositions.
Explanation
For an operator on p and q, the table must give an output for all four input combinations.
- 31
What is the conditional proposition p→q?
Model answer
The conditional p→q means “if p, then q” and is false only when p is true and q is false.
Explanation
It is true for the other three combinations of truth values.
- 32
Why is an implication p→q considered false when p is true and q is false?
Model answer
This is the only case in which the hypothesis occurs but the promised or required conclusion does not occur.
Explanation
In the election-promise example, the promise is broken only if John becomes prime minister but good days do not come.
- 33
Why is p→q considered true when p is false?
Model answer
When p is false, the conditional has not been violated, regardless of whether q is true or false.
Explanation
In the promise example, if John does not become prime minister, he has not broken the promise about what would happen if he did.
- 34
List four equivalent interpretations of p→q given in the lecture.
Model answer
They include “if p, then q,” “q follows from p,” “p is sufficient for q,” and “q whenever p.”
Explanation
Each wording expresses the same conditional relationship between the hypothesis and the conclusion.
- 35
What does it mean to say that q is necessary for p?
Model answer
It means that p cannot occur without q; formally, the relationship is represented by p→q.
Explanation
If q is absent, then p must also be absent.
- 36
What does the phrase “p only if q” mean logically?
Model answer
It means p→q: whenever p is true, q must also be true.
Explanation
The phrase identifies q as a necessary condition for p, not as a sufficient condition.
- 37
Why are p→q and ¬q→¬p logically equivalent?
Model answer
They have identical truth values for every possible assignment of truth values to p and q.
Explanation
The second conditional is the contrapositive of the first, and comparing their truth tables shows that their rows match.
- 38
Translate “I will go to the pub only if it is Friday” into symbolic logic, where p means “I will go to the pub” and q means “it is Friday.”
Model answer
The statement is represented by p→q.
Explanation
It says that going to the pub requires it to be Friday; if it is not Friday, the person will not go to the pub.
- 39
In the pub example, why is Friday necessary but not sufficient for going to the pub?
Model answer
Friday is necessary because the person will not go to the pub on a non-Friday, but it is not sufficient because the person might still choose not to go on a Friday.
Explanation
Thus the relationship is p→q, not q→p.
- 40
What are the hypothesis, antecedent, or premise of p→q?
Model answer
The proposition p is called the hypothesis, antecedent, or premise.
Explanation
It is the proposition following the word “if” in the usual English interpretation.
- 41
What are the conclusion or consequence of p→q?
Model answer
The proposition q is called the conclusion or consequence.
Explanation
It is the proposition that is asserted to follow when the premise p is true.
- 42
Can the propositions p and q in a mathematical conditional be unrelated in meaning?
Model answer
Yes. In mathematical logic, p and q need not be related in their English meanings; the conditional is evaluated only from their truth values.
Explanation
For example, a conditional with a false premise can be logically true even when its conclusion is unrelated or false in ordinary language.
- 43
Evaluate the logical status of “If the Earth is triangular, then Dr. Ashish is the director of IIIT Bangalore,” assuming the Earth is not triangular.
Model answer
The conditional is logically true because its premise is false.
Explanation
For p→q, a false premise makes the conditional true regardless of the truth value of the conclusion.

Ask anything
We've read this whole study set, so questions about it get the best answers.