1. Home
  2. Explore
  3. Mathematics
  4. Mathematics for Computer Science

Study methods

Flashcards
Quiz
Fill in the blanks
Written test
Lesson
Notes
Podcast
Content

Mathematics for Computer Science

Foundations of Mathematical Reasoning

Mathematics is not only about calculating answers. It is also about determining which statements are true, explaining why they are true, and communicating that reasoning precisely. The central tool for doing this is the mathematical proof.

A proof depends on several foundational ideas:

  1. Propositions are statements that can be true or false.
  2. Logical operators combine propositions into more complicated statements.
  3. Axioms provide the starting assumptions.
  4. Logical deductions connect the axioms to a conclusion.
  5. Sets and predicates provide a language for describing mathematical objects and conditions.

Together, these ideas form the basic language of mathematical reasoning.

What Is a Proof?

Different fields use different methods to determine truth. Physical scientists use experiments and observations. Pollsters use sampling to estimate opinions. Courts use trials and evidence to decide what happened and who is responsible. Investigators search for evidence and the explanation that best fits the observations.

Mathematics uses a different method: proof.

A mathematical proof verifies a proposition through a chain of logical deductions from a base set of axioms.

This definition contains three important ideas:

  • A proposition is the statement being verified.
  • Axioms are statements accepted as starting assumptions.
  • Logical deductions are the valid reasoning steps that connect the assumptions to the proposition.

A proof is therefore not merely evidence that a statement seems likely. It is a logically complete argument showing that the conclusion must follow from the accepted starting points.

Proof versus Examples

Examples can provide evidence, but they do not usually establish a universal mathematical claim.

Suppose a statement claims:

For every natural number nnn, the number n2+n+41n^2+n+41n2+n+41 is prime.

Testing values gives:

[ \begin{array}{c|c} n & n^2+n+41 \ \hline 0 & 41 \ 1 & 43 \ 2 & 47 \ 3 & 53 \end{array} ]

The expression also produces primes for many further values, including values through n=39n=39n=39. This may make the statement look convincing. However, the statement says for every natural number, not merely for the first several dozen.

At n=40n=40n=40,

402+40+41=1681=412,40^2+40+41=1681=41^2,402+40+41=1681=412,

which is not prime. At n=41n=41n=41,

412+41+41=41(41+1+1)=41⋅43,41^2+41+41=41(41+1+1)=41\cdot 43,412+41+41=41(41+1+1)=41⋅43,

which is also not prime.

Thus, the original universal statement is false. One value that violates the claim is enough to disprove it. Such a value is called a counterexample.

This illustrates a general principle:

  • To prove that a statement is true for every object, a complete argument is needed.
  • To disprove a universal statement, one counterexample is enough.

Understanding a Proof versus Writing One

Reading a proof and thinking, “That makes sense,” is not the same as constructing the proof independently. Understanding someone else’s reasoning is usually easier than discovering and organizing that reasoning from scratch.

This difference can be called the P versus NP fallacy in the informal sense used here: recognizing that a solution works is easier than producing the solution unaided.

Proof writing requires several skills:

  • identifying the relevant facts,
  • arranging them in a logical order,
  • explaining why each step follows,
  • avoiding hidden assumptions,
  • expressing the argument precisely enough for another reader to verify.

Collaborative discussion can help with discovering an approach, but a polished proof must be expressed independently in the writer’s own words. The goal is not only to reach the correct conclusion, but also to demonstrate understanding through a readable, precise argument.

Solving a problem and writing a proof of the solution are related but distinct mathematical skills.

Think About It

Why can a large collection of successful examples fail to prove a statement that begins with “for every”?

Propositions and Predicates

Propositions

A proposition is a statement that is either true or false.

Examples include:

  • “Today is Tuesday.”
  • “Today is Thursday.”
  • “2+3=52+3=52+3=5.”
  • “2+3=42+3=42+3=4.”

A proposition does not have to be true. The statement “2+3=42+3=42+3=4” is false, but it is still a proposition because it has a definite truth value.

A sentence such as “What time is it?” is not a proposition because it is a question rather than a statement that can be classified as true or false.

Predicates

A predicate is a statement whose truth depends on one or more variables. It can be viewed as an incomplete proposition that becomes a proposition once values are assigned to its variables.

For example,

p is primep \text{ is prime}p is prime

is not yet a proposition if the value of ppp is unspecified. Once a value is assigned, the statement becomes a proposition:

  • “777 is prime” is true.
  • “121212 is prime” is false.

The predicate becomes a proposition after the variable is given a value.

Another example is

n2+n+41 is prime.n^2+n+41 \text{ is prime}.n2+n+41 is prime.

Its truth depends on nnn. The statement may be true for some values of nnn and false for others.

Quantifiers Turn Predicates into Propositions

A quantifier specifies how widely a predicate applies. The phrase “for all” is a universal quantifier.

The statement

For all n∈N, n2+n+41 is prime\text{For all } n\in\mathbb{N},\ n^2+n+41\text{ is prime}For all n∈N, n2+n+41 is prime

is a proposition because it makes a complete claim: every natural number must satisfy the predicate.

Here, N\mathbb{N}N denotes the natural numbers. In this setting,

N={0,1,2,3,…}.\mathbb{N}=\{0,1,2,3,\ldots\}.N={0,1,2,3,…}.

In particular, 000 is included as a natural number.

The expression

∀n∈N\forall n\in\mathbb{N}∀n∈N

is another way to write “for every natural number nnn.”

Goldbach’s Conjecture

A famous example of a mathematical proposition is Goldbach’s Conjecture:

Every even number greater than 222 is the sum of two prime numbers.

Examples include:

12=7+512=7+512=7+5

and

20=17+3.20=17+3.20=17+3.

The expression 20=9+1120=9+1120=9+11 does not work because 999 is not prime, but that does not disprove the conjecture. A different valid representation, 20=17+320=17+320=17+3, still exists.

The word conjecture indicates that the statement is believed to be true or has substantial supporting evidence, but no proof or disproof is currently known. Checking many examples cannot settle a claim about every even number. A proof would need to cover all cases, while a disproof would require one even number greater than 222 that cannot be expressed as the sum of two primes.

Think About It

What is the difference between the predicate “ppp is prime” and the proposition “777 is prime”?

Boolean Operators and Truth Tables

Propositions can be combined to create new propositions. The basic tools for combining them are called Boolean operators or logical operators.

The most important operators are:

  • not
  • and
  • or
  • implies

A truth table lists every possible combination of truth values and gives the resulting truth value of the larger statement.

NOT

The statement not AAA means that AAA is false. It is written in several equivalent ways:

¬A,A‾,not A.\neg A,\qquad \overline{A},\qquad \text{not }A.¬A,A,not A.

Its truth table is:

AAA¬A\neg A¬A
TrueFalse
FalseTrue

The operator reverses the truth value. If AAA is true, then ¬A\neg A¬A is false; if AAA is false, then ¬A\neg A¬A is true.

AND

The statement AAA and BBB is true only when both AAA and BBB are true.

It may be written as

A∧B.A\land B.A∧B.

Its truth table is:

AAABBBA∧BA\land BA∧B
TrueTrueTrue
TrueFalseFalse
FalseTrueFalse
FalseFalseFalse

The word “and” requires both conditions. For example, the statement “a number is even and positive” requires the number to satisfy both properties.

OR

The mathematical statement AAA or BBB is true when at least one of AAA and BBB is true. It may be written as

A∨B.A\lor B.A∨B.

Its truth table is:

AAABBBA∨BA\lor BA∨B
TrueTrueTrue
TrueFalseTrue
FalseTrueTrue
FalseFalseFalse

Mathematical “or” is normally inclusive. If both AAA and BBB are true, then A∨BA\lor BA∨B is also true.

This differs from some everyday uses of “or.” At a wedding, a waiter asking whether a guest ordered chicken or pasta may expect exactly one choice. That is exclusive OR, often written XOR: one choice or the other, but not both.

Other conversational uses of “or” may allow one choice, the other choice, or neither. Natural language depends heavily on context, while mathematical notation is intended to have a fixed meaning. When a mathematical statement uses ∨\lor∨, it means inclusive OR unless explicitly stated otherwise.

NAND and XOR

Two less central operators are:

Exclusive OR

XOR is true when exactly one of AAA and BBB is true. It is false when both are true or both are false.

AAABBBXOR
TrueTrueFalse
TrueFalseTrue
FalseTrueTrue
FalseFalseFalse

NAND

NAND means “not both.” It is the negation of AND:

¬(A∧B).\neg(A\land B).¬(A∧B).

It is false only when both AAA and BBB are true. In all other cases, it is true.

The key lesson is that ordinary English can be ambiguous, but logical notation is defined by its truth table.

Implication

The statement AAA implies BBB is written as

A  ⟹  B.A\implies B.A⟹B.

It can also be written with an arrow:

A→B.A\to B.A→B.

It is read as:

  • “AAA implies BBB,” or
  • “If AAA, then BBB.”

The truth table is:

AAABBBA  ⟹  BA\implies BA⟹B
TrueTrueTrue
TrueFalseFalse
FalseTrueTrue
FalseFalseTrue

The only false case is when AAA is true but BBB is false.

Why Is False Implies True True?

Consider the rule:

If it is Wednesday, then a person wears pink.

This rule is violated only when:

  • it is Wednesday, and
  • the person does not wear pink.

The rule does not make any demand on other days. If it is Tuesday, then wearing pink satisfies the rule, and not wearing pink also satisfies the rule.

Thus:

  • Wednesday and pink: true implication.
  • Wednesday and not pink: false implication.
  • Not Wednesday and pink: true implication.
  • Not Wednesday and not pink: true implication.

The implication is not asserting that AAA actually occurs. It only says what must be true if AAA occurs. When AAA is false, the rule has not been violated.

No Necessary Causation or Time

In everyday English, “AAA implies BBB” may suggest that AAA causes BBB or happens before BBB. Mathematical implication has neither requirement.

The statement

A  ⟹  BA\implies BA⟹B

simply has the truth table above. It does not claim that:

  • AAA causes BBB,
  • AAA happens before BBB,
  • BBB is produced by AAA,
  • anyone knows whether AAA or BBB is currently true.

For example, a conjecture can serve as AAA even when its truth value is not yet known. The compound statement A  ⟹  BA\implies BA⟹B is still a well-defined proposition.

Equivalent Form of Implication

The implication A  ⟹  BA\implies BA⟹B can be rewritten using NOT and OR:

A  ⟹  B≡¬A∨B.A\implies B\equiv \neg A\lor B.A⟹B≡¬A∨B.

This expression is true whenever AAA is false or BBB is true. It is false only when AAA is true and BBB is false.

The essential idea is:

The only way to violate A  ⟹  BA\implies BA⟹B is for AAA to occur without BBB.

Strength of Statements

Suppose x<3x<3x<3. Then it is necessarily true that

x<4.x<4.x<4.

Therefore,

x<3  ⟹  x<4.x<3\implies x<4.x<3⟹x<4.

The condition x<3x<3x<3 is stronger than x<4x<4x<4 because it restricts xxx more severely. Every number less than 333 is also less than 444, but not every number less than 444 is less than 333.

The implication goes from the stronger condition to the weaker condition.

Converse, Inverse, and Contrapositive

Starting with

A  ⟹  B,A\implies B,A⟹B,

several related statements can be formed.

The converse switches the two parts:

B  ⟹  A.B\implies A.B⟹A.

The inverse negates both parts without switching them:

¬A  ⟹  ¬B.\neg A\implies\neg B.¬A⟹¬B.

The contrapositive switches and negates both parts:

¬B  ⟹  ¬A.\neg B\implies\neg A.¬B⟹¬A.

The important logical relationships are:

A  ⟹  B≡¬B  ⟹  ¬AA\implies B\equiv \neg B\implies\neg AA⟹B≡¬B⟹¬A

and

B  ⟹  A≡¬A  ⟹  ¬B.B\implies A\equiv \neg A\implies\neg B.B⟹A≡¬A⟹¬B.

Thus, a statement is logically equivalent to its contrapositive, not generally to its converse or inverse.

For example, the rule

If it is Wednesday, then a person wears pink

has the contrapositive:

If a person is not wearing pink, then it is not Wednesday.

The converse would be:

If a person wears pink, then it is Wednesday.

That converse is not guaranteed. A person may wear pink on Tuesday.

The Error in “I Do Not Think, Therefore I Do Not Exist”

The statement traditionally associated with Descartes is:

I think, therefore I am.

Its logical form can be represented as:

T  ⟹  E,T\implies E,T⟹E,

where TTT means “I think” and EEE means “I exist.”

The contrapositive is:

¬E  ⟹  ¬T.\neg E\implies\neg T.¬E⟹¬T.

The inverse is:

¬T  ⟹  ¬E.\neg T\implies\neg E.¬T⟹¬E.

The phrase “I do not think, therefore I do not exist” uses the inverse, not the contrapositive. The inverse does not generally follow from the original implication.

A nonthinking object, such as a shoe, can still exist. Therefore, “not thinking” does not imply “not existing.”

Think About It

For the implication A  ⟹  BA\implies BA⟹B, which single combination of truth values makes the statement false, and why?

Sets

A set is a collection of objects. The objects in a set are called its elements.

Sets are written using curly braces. For example,

{6,1,2,0}\{6,1,2,0\}{6,1,2,0}

is a set containing four elements.

Order and Repetition

For sets:

  • Order does not matter.
  • Repetition does not create a new element.

Therefore,

{6,1,2,0}={2,1,6,0}\{6,1,2,0\}=\{2,1,6,0\}{6,1,2,0}={2,1,6,0}

and

{6,1,2,0}={6,1,2,0,0}.\{6,1,2,0\}=\{6,1,2,0,0\}.{6,1,2,0}={6,1,2,0,0}.

The set records only whether an object is present, not where it was written or how many times it was listed.

Important Number Sets

Several standard sets appear frequently:

  • Natural numbers:
N={0,1,2,3,…}\mathbb{N}=\{0,1,2,3,\ldots\}N={0,1,2,3,…}
  • Integers:
Z={…,−2,−1,0,1,2,…}\mathbb{Z}=\{\ldots,-2,-1,0,1,2,\ldots\}Z={…,−2,−1,0,1,2,…}
  • Rational numbers:
Q={ab:a∈Z, b∈Z, b≠0}\mathbb{Q}=\left\{\frac{a}{b}:a\in\mathbb{Z},\ b\in\mathbb{Z},\ b\ne 0\right\}Q={ba​:a∈Z, b∈Z, b=0}
  • Real numbers: R\mathbb{R}R
  • Complex numbers: C\mathbb{C}C

The rational numbers consist of numbers expressible as the quotient of an integer by a nonzero integer.

The Empty Set

The empty set is the set containing no elements. It can be written as

∅\varnothing∅

or

{}.\{\}.{}.

The empty set is still a set. It simply has zero elements.

This distinction is important:

  • ∅\varnothing∅ is a set.
  • ∅\varnothing∅ contains no elements.
  • A set can contain ∅\varnothing∅ as one of its elements.

For example,

B={2,{3,4},∅}B=\{2,\{3,4\},\varnothing\}B={2,{3,4},∅}

has three elements:

  1. the number 222,
  2. the set {3,4}\{3,4\}{3,4},
  3. the empty set ∅\varnothing∅.

The number 333 is not an element of BBB. It is an element of the set {3,4}\{3,4\}{3,4}, which is itself an element of BBB.

This distinction separates:

3∈B3\in B3∈B

from

{3}⊆B\{3\}\subseteq B{3}⊆B

or from the idea that 333 is nested inside one of the elements of BBB.

Elements and Subsets

The notation

x∈Ax\in Ax∈A

means that xxx is an element of AAA.

The notation

A⊆BA\subseteq BA⊆B

means that AAA is a subset of BBB. Every element of AAA must also be an element of BBB, although BBB may contain additional elements.

For example,

{1,2}⊆{0,1,2,6}.\{1,2\}\subseteq\{0,1,2,6\}.{1,2}⊆{0,1,2,6}.

The empty set is a subset of every set:

∅⊆A.\varnothing\subseteq A.∅⊆A.

This is true because there is no element of ∅\varnothing∅ that could violate the subset condition. To disprove ∅⊆A\varnothing\subseteq A∅⊆A, one would need to find an element of ∅\varnothing∅ that is not in AAA, but no such element exists.

However, the empty set is not automatically an element of every set. For instance,

∅∈B\varnothing\in B∅∈B

in the example above because it was explicitly listed in BBB, but generally

∅∉A\varnothing\notin A∅∈/A

if it was not listed among AAA’s elements.

Set Operations

Sets can be combined in ways that resemble logical operations.

Union

The union of AAA and BBB, written

A∪B,A\cup B,A∪B,

contains everything that is in AAA, in BBB, or in both.

Using

A={6,1,2,0}A=\{6,1,2,0\}A={6,1,2,0}

and

B={2,{3,4},∅},B=\{2,\{3,4\},\varnothing\},B={2,{3,4},∅},

the union is

A∪B={0,1,2,6,{3,4},∅}.A\cup B=\{0,1,2,6,\{3,4\},\varnothing\}.A∪B={0,1,2,6,{3,4},∅}.

The element 222 appears only once because sets do not contain duplicate copies of an element.

Union corresponds closely to logical OR: membership in A∪BA\cup BA∪B means membership in AAA or membership in BBB.

Intersection

The intersection of AAA and BBB, written

A∩B,A\cap B,A∩B,

contains precisely the elements that belong to both sets.

For the example sets, the only shared element is 222, so

A∩B={2}.A\cap B=\{2\}.A∩B={2}.

Intersection corresponds closely to logical AND: membership in A∩BA\cap BA∩B requires membership in both AAA and BBB.

Set Difference

The difference of AAA and BBB, written either

A−BA-BA−B

or

A∖B,A\setminus B,A∖B,

contains the elements of AAA that are not elements of BBB.

For the example sets,

A∖B={0,1,6}.A\setminus B=\{0,1,6\}.A∖B={0,1,6}.

The element 222 is removed because it belongs to BBB. The set {3,4}\{3,4\}{3,4} does not cause 333 or 444 to be removed from AAA, because 333 and 444 are not themselves elements of BBB; the single set {3,4}\{3,4\}{3,4} is an element of BBB.

This shows why the difference between an element and a nested set matters.

Set-Builder Notation

Set-builder notation describes a set by specifying the elements that satisfy a predicate.

For example,

{n∈N:n is prime}\{n\in\mathbb{N}: n\text{ is prime}\}{n∈N:n is prime}

means “the set of all natural numbers nnn such that nnn is prime.”

The colon can be read as “such that.” The same set could be written using a vertical bar:

{n∈N∣n is prime}.\{n\in\mathbb{N}\mid n\text{ is prime}\}.{n∈N∣n is prime}.

The predicate determines which elements are selected from the larger set N\mathbb{N}N. The result is the set of prime natural numbers:

{2,3,5,7,11,…}.\{2,3,5,7,11,\ldots\}.{2,3,5,7,11,…}.

Set-builder notation therefore creates a direct connection between predicates and sets.

Think About It

Why is ∅\varnothing∅ a subset of every set, but not an element of every set?

Tuples

A tuple is an ordered list of elements. Unlike a set, a tuple:

  • preserves order,
  • allows repetition,
  • is written with parentheses.

For example,

(6,1,2,0)(6,1,2,0)(6,1,2,0)

is a four-element tuple, while

(6,1,2,0,0)(6,1,2,0,0)(6,1,2,0,0)

is a five-element tuple.

These are different tuples because their lengths differ and one contains an additional entry.

Likewise,

(6,1,2,0)≠(2,1,6,0)(6,1,2,0)\ne(2,1,6,0)(6,1,2,0)=(2,1,6,0)

because the order is different.

Sets and tuples therefore behave differently:

{6,1,2,0}={2,1,6,0},\{6,1,2,0\}=\{2,1,6,0\},{6,1,2,0}={2,1,6,0},

but

(6,1,2,0)≠(2,1,6,0).(6,1,2,0)\ne(2,1,6,0).(6,1,2,0)=(2,1,6,0).

It generally does not make sense to ask for the union, intersection, or set difference of tuples, because those operations are defined for sets and depend on set membership rather than position.

Axioms and Mathematical Systems

A proof needs a starting point. An axiom is a proposition assumed to be true within a particular mathematical system.

This does not necessarily mean that an axiom is universally or philosophically self-evident. It means that the system begins by accepting it. Further statements are then derived from it using logical reasoning.

A mathematical system is therefore built from:

  1. chosen axioms,
  2. definitions,
  3. rules of logic,
  4. theorems derived from the preceding ingredients.

The same proposition may be an axiom in one system and a theorem, false statement, or irrelevant statement in another.

Euclidean Geometry and the Parallel Postulate

Euclidean geometry is based on axioms associated with Euclid. One famous axiom is the parallel postulate:

Given a point ppp not on a line ℓ\ellℓ, there exists a unique line through ppp parallel to ℓ\ellℓ.

Symbolically, if

p∉ℓ,p\notin\ell,p∈/ℓ,

then exactly one line ℓ′\ell'ℓ′ passes through ppp and is parallel to ℓ\ellℓ.

For a long time, mathematicians tried to prove this postulate from Euclid’s other axioms. Eventually, it was shown that the parallel postulate is independent of the others: it cannot be derived from them.

The significance of this result is that changing the parallel postulate creates other coherent geometries.

Spherical Geometry

In spherical geometry:

  • the surface of a sphere serves as the geometric space,
  • a point is paired conceptually with its antipodal point,
  • a line is represented by a great circle,
  • any two great circles intersect.

Because every pair of great circles intersects, there are no parallel lines. This corresponds to replacing Euclid’s unique-parallel statement with a statement that no parallel line exists.

Hyperbolic Geometry

In hyperbolic geometry:

  • a point is an ordinary point,
  • lines can be represented in a suitable model by arcs perpendicular to a boundary,
  • through a point not on a given line, infinitely many lines can pass without intersecting the original line.

Thus, the parallel statement is replaced by one asserting infinitely many parallel lines.

Spherical and hyperbolic geometries are not meaningless contradictions. They are mathematically coherent systems built from different axioms. Their conclusions differ because their starting assumptions differ.

A mathematical theorem is always understood relative to the axioms from which it is derived.

Think About It

If two mathematical systems use different axioms, why should it be expected that they produce different theorems?

Consistency and Completeness

When choosing axioms, mathematicians want the resulting system to behave reliably. Two desirable properties are consistency and completeness.

Consistency

A set of axioms is consistent if it does not allow a proposition and its negation both to be proved. Equivalently, the system should not be able to prove that a contradiction is true.

Consistency matters because of the principle of explosion:

From a contradiction, anything can be logically deduced.

In logical notation, if falsehood were available as a valid conclusion, then falsehood could imply any statement:

False  ⟹  P\text{False}\implies PFalse⟹P

for any proposition PPP.

If a system proves both a statement and its negation, then it effectively loses the ability to distinguish truth from falsehood. Every statement could become derivable, making the system mathematically uninformative.

Completeness

A set of axioms is complete if every true proposition expressible within the system can be proved from those axioms.

Completeness would be attractive because it would mean that every mathematical truth has a proof using the system’s rules and assumptions. If a statement were not provable, its negation would ideally be provable instead.

Gödel’s Incompleteness Theorem

Kurt Gödel showed that a sufficiently powerful formal system—one capable of expressing basic arithmetic involving addition and multiplication—cannot be both consistent and complete.

In simplified terms:

  • If the system is consistent, there will be true statements that cannot be proved within the system.
  • If the system is made stronger by adding new axioms to prove some of those statements, the expanded system will have new undecidable truths of its own.

This result does not mean that mathematics is useless or that mathematical truth is arbitrary. It means that no single sufficiently powerful, consistent formal system can capture every mathematical truth through proof alone.

A statement may be true in the intended mathematical interpretation but unprovable from a particular collection of axioms. Proving it may require adding further assumptions.

Goldbach’s Conjecture illustrates the type of question that raises this possibility: it may eventually be proved, disproved, or—conceivably—be true but not provable from a chosen formal system.

Axioms in Ordinary Mathematical Work

In ordinary mathematics, mathematicians do not begin by rebuilding all of mathematics from the foundations each time. They use a broad background of familiar results.

For example, a proof might use the fact:

The product of two even numbers is even.

If that fact is being treated as already established, the proof can cite it rather than reprove it. Good mathematical writing still identifies the reason a step is valid, whether that reason is:

  • an axiom,
  • a definition,
  • a previously proved theorem,
  • or a logical consequence of earlier statements.

Comprehensive Review

The central structure of mathematical reasoning can now be summarized.

A proposition is a complete statement with a truth value. A predicate is a statement involving variables whose truth depends on the values assigned to those variables. Quantifiers such as “for every” can turn a predicate into a proposition.

Logical operators combine propositions:

  • ¬A\neg A¬A is true exactly when AAA is false.
  • A∧BA\land BA∧B is true only when both are true.
  • A∨BA\lor BA∨B is true when at least one is true, including the case where both are true.
  • A  ⟹  BA\implies BA⟹B is false only when AAA is true and BBB is false.

The implication A  ⟹  BA\implies BA⟹B is equivalent to its contrapositive:

A  ⟹  B≡¬B  ⟹  ¬A,A\implies B\equiv\neg B\implies\neg A,A⟹B≡¬B⟹¬A,

but it is not generally equivalent to its converse or inverse.

A set is a collection of objects. Sets ignore order and repetition, while tuples preserve order and allow repetition. The symbols ∈\in∈ and ⊆\subseteq⊆ express different relationships:

  • x∈Ax\in Ax∈A means xxx is an element of AAA.
  • A⊆BA\subseteq BA⊆B means every element of AAA is also an element of BBB.

The empty set is a subset of every set, but it is an element only of sets that explicitly contain it. Set operations mirror logical operations:

  • union corresponds to OR,
  • intersection corresponds to AND,
  • set difference selects elements that satisfy membership in one set but not another.

An axiom is an assumed starting proposition. A proof derives further propositions from axioms through valid logical steps. Different axiom choices can generate different mathematical systems, as demonstrated by Euclidean, spherical, and hyperbolic geometry.

Finally, a useful axiomatic system aims for consistency and completeness, but Gödel’s Incompleteness Theorem shows that any sufficiently powerful consistent system must contain true statements that cannot be proved within that system. Mathematical proof remains the method for establishing conclusions relative to chosen assumptions, even though no single formal framework can contain every mathematical truth.

Ask anything

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

FlashcardsQuizFill in the blanksWritten testLessonNotesPodcastContent