Canadian flagMath101 · Independent Ontario learning libraryCreated and edited by Kamran
Discrete MathematicsUniversity3 min read

Logic and Statements

A careful foundation in propositions, connectives, implication, and the difference between syntax and truth.

Cheat sheet

Precise definition

A proposition is a declarative sentence with a definite truth value, true or false. From propositions $p$ and $q$, negation $\neg p$, conjunction $p\land q$, disjunction $p\lor q$, implication $p\to q$, and biconditional $p\leftrightarrow q$ form compound propositions. In standard inclusive logic, $p\lor q$ allows both to be true.

Notation and mathematical language

The implication $p\to q$ is false only when $p$ is true and $q$ is false. Its converse is $q\to p$, inverse is $\neg p\to\neg q$, and contrapositive is $\neg q\to\neg p$. Only the contrapositive is logically equivalent to the original implication in general.

Conceptual picture

Logical form separates a pattern of reasoning from a sentence's subject matter. Vacuous truth may feel unfamiliar: if $p$ is false, no counterexample of the form 'true premise, false conclusion' occurs, so $p\to q$ is true. This convention makes implication compatible with proof and set inclusion.

Conditions and key results

A sentence with an unassigned variable, such as $x>3$, is a predicate rather than a proposition until a value or quantifier fixes its truth. Natural-language words such as 'or', 'unless', 'only if', and 'necessary' must be translated carefully. $p$ only if $q$ means $p\to q$.

A reliable strategy

  1. Identify atomic propositions and assign one symbol to each without changing their meanings.
  2. Translate connectives, paying special attention to implication direction and inclusive versus exclusive or.
  3. Use definitions or a truth table to evaluate or compare the compound statement.
  4. Translate the result back into clear language and test a counterexample-shaped case.

Fully worked example

Interpretation and application

Formal logic supports proof, database queries, digital circuits, and software conditions. In a program, confusing 'necessary' with 'sufficient' can admit invalid input or reject valid input; writing the intended implication before coding reduces that risk.

Common mistakes

Verification and reasonableness

  • Construct the one potential falsifying case for an implication: true premise and false conclusion.
  • Compare a proposed reformulation across all truth assignments.
  • Return to the original sentences and check that the direction of 'if', 'only if', necessity, and sufficiency is preserved.

Practice

  1. When is $p\to q$ false?
  2. What is the contrapositive of 'if it rains, the field is wet'?
  3. Is $x+1=4$ a proposition before $x$ is specified?
Answers and brief solutions
  1. Exactly when $p$ is true and $q$ is false.
  2. If the field is not wet, then it did not rain.
  3. No. It is an open sentence or predicate.

Further deduction

Necessary and sufficient conditions encode implication direction. Saying '$P$ is sufficient for $Q$' means $P\to Q$; saying '$P$ is necessary for $Q$' means $Q\to P$. Saying '$P$ iff $Q$' asserts both. For example, divisibility by 4 is sufficient but not necessary for evenness, while evenness is necessary but not sufficient for divisibility by 4. Translating these phrases before reasoning prevents a common converse error.

Check your understanding

Try it yourself

Hints are part of learning. Open one whenever it makes the next step feel possible.

1 practice question
Question 1Evaluate an implication · Standard

Using T=1 and F=0, what is the truth value of T implies F?

End of lesson

Nice work making it this far.

Understanding grows through return visits. Save this lesson, try the practice, or continue when you are ready.

Lesson complete

That one is yours now.

Logic and Statements is saved to My Learning. Take the win—you earned it.

1Your Math101 collectionlesson completed
Search 464 published lessons, 123 answer guides, courses, and learning tools.
Your experience

Settings

Ontario math tutoringWork with KamranBook ↗