Skip to Content
Welcome to my more educational website. Head back to more fun stuff here!

introduction to Logical Forms

Formal logic is the branch of mathematics that deals with the principles of valid reasoning and argumentation. It provides a systematic framework for analyzing statements and their relationships, allowing us to determine the truth or falsity of an argument based on its structure. In formal logic, we aren’t really concerned with the actual content of statements, but rather with its form and structure.

Basic Concepts

It is helpful to start with some basic concepts in formal logic. Of course, it is not possible to cover all aspects of formal logic in a single introduction, but we will touch on some of the fundamental ideas. It is also difficult to start from absolute zero, so we will take some definitions for granted.

Propositions and Variables

Let’s begin with the building blocks of an argument.

Variables

A variable is a placeholder typically represented by some symbol that can take on different values and are used when talking about something with an unknown value or to represent a general case rather than a specific instance.

Propositions

A proposition (sometimes called a Statement) is a sentence that is strictly either true or false. There can be no ambiguity: the truth value must be ascertained without any additional context. A sentence such as “Black is a color.” and 2+5=72 + 5 = 7 are examples of a proposition. A statement such as x+2=5x + 2 = 5 is not a proposition, because its truth value depends on the value of xx and is therefore ambigious.

There are a number of common propostions that are used in formal logic:

  • A Universal Propostion states that a certain property holds for all elements in a given set (which we define as a collection of objects). They tend to contain language such as “for all…”
  • An Existential Propostion states that there is at least one element in a given set for which a certain property holds. They tend to contain language such as “there exists…”
  • A Conditional Propostion states that if one statement (the antecedent) is true, then another statement (the consequent) is also true. We will discuss these more later in this section. COnditional Propositions are typically expressed in the form “If … then ..”

Logical Forms

In formal logic, an argument is not a verbal fight between two people, but rather a sequence of propositions (called premises) that aim to establish the truth of an assertion (the conclusion). Before we start analyzing arguments, we need to understand how to represent them in logical form.

As mentioned earlier, In formal logic, we are more concerned with the logical form rather than the specific content. The logical form of an argument is ascertained from its content. The form is essentially an abstract representation of the argument that focuses on the relationships between its premises, thus allowing us to evaluate the validity of an argument just from its form. To create this abstract representation, we often use symbols to represent the premises and utilize logical connectives.

A propositional variable is a symbol that represents a proposition, and are typically denoted with symbols like p,q,rp, q, r. We can chain together multiple propositional variables using logical connectives to form more complex propositions.

Logical Connectives

Notice how we used logical connectives to build more complex propositions from simpler ones. Some common logical connectives include:

  • Negation (¬\neg): Represents “not p”, ¬p\neg p means “not pp.”
    • If pp represents “It is raining”, then ¬p\neg p represents “It is not raining”.
    • Convention may vary across different disciplines (because we like making life difficult)
    • Symbols like p\sim p, p˜\~{p} or !p!p are also used to denote the negation of pp.
    • If pp is true, then ¬p\neg p is false; if pp is false, then ¬p\neg p is true.
  • Conjunction (\land): Represents ”pp and qq”. pqp \land q means ”pp and qq.”
    • If pp represents “It is raining” and qq represents “It is soggy”, then pqp \land q represents “It is raining and it is soggy.”
    • pp but qq means the same thing as pqp \land q.
    • pqp \land q is true only if both pp and qq are true; otherwise, it is false.
  • Disjunction (\lor): Represents ”pp or qq”. pqp \lor q means ”pp or qq.”
    • If pp represents “It is raining” and qq represents “It is sunny”, then pqp \lor q represents “It is raining or it is sunny.”
    • Neither pp nor qq means the same thing as ¬p¬q\neg p \land \neg q.
    • We generally interpret “or” in the inclusive sense, meaning that is at least one of pp or qq is true, then pqp \lor q is true. (both can be true as well).
  • Implication (\to): Represents “If pp, then qq”. pqp \to q means “If pp, then qq.”
    • We call statements of this form conditional statements or implications, as the value of qq is conditional on the value of pp.
    • If pp represents “It is raining” and qq represents “The ground is wet”, then pqp \to q represents “If it is raining, then the ground is wet.”
    • We say pp implies qq.
    • pp only if qq means the same thing as pqp \to q.
    • pqp \to q is false only if pp is true and qq is false; otherwise, it is true.
    • This may seem counterintuitive at first, but remember that if pp is false, then the implication pqp \to q is considered true regardless of the truth value of qq. Such statements are consided to be vacuously true. Thus, pqp \to q is only false when a true premise leads to a false conclusion.

We will discuss more logical connectives later on, but these are the most common ones used in propositional logic.

Using these logical connectives, we can construct complex arguments and ascertain their truth value. We can now analyze the logical structure of arguments and determine their validity based on the truth values of their components.

Tautologies and Contradictions

A tautology is a propositional statement that is always true, regardless of the truth values of its components. An example of a tautology is the statement p¬pp \lor \neg p, which states that either pp is true or pp is not true. This statement is always true because one of the two possibilities must hold.

A contradiction is a propositional statement that is always false, regardless of the truth values of its components. An example of a contradiction is the statement p¬pp \land \neg p, which states that pp is both true and not true at the same time. This statement is always false because it is impossible for both conditions to hold simultaneously.

Some philosophers argue that mathematics is just a collection of tautologies. Of course, this is incorrect as mathematics is just a Government PsyOp. I jest, but this topic is quite interesting. Imre Lakatos, a mathematical philosopher, wrote a famous book about it. You can read more here .

Evaluating Propostional Statements

To evaluate the truth value of a logical form, we can use tools such as truth tables. We can systematically list all possible truth values for the propositions involved and determine the truth value of the overall statement based on the logical connectives used.

We can write the truth tables for pq,pq,¬pp \land q, p \lor q, \neg p, and pqp \to q as follows:

ppqqpqp \land q
TTT
TFF
FTF
FFF
ppqqpqp \lor q
TTT
TFT
FTT
FFF
pp¬p\neg p
TF
FT
ppqqpqp \to q
TTT
TFF
FTT
FFT

These truth tables help us understand how the truth values of complex propositions are determined based on the truth values of their components. By using these tools, we can analyze and evaluate arguments in formal logic effectively.

We can chain together multiple propositions using these logical connectives to form more complex statements. For example, we can create a statement like:

(pq)(¬r)(p \land q) \to (\neg r)

Operations are evaluated based on their precedence. Negation has the highest precedence. Parentheses can be used to explicitly specify the order of operations. Statements such as pqrp \lor q \land r are ambigious, so it is better to use parentheses to clarify the intended meaning, like so

(pq)r(p \lor q) \land r p(qr)p \lor (q \land r)

The truth table for complex statements can be constructed by evaluating the truth values of their components step by step. Start from the innermost expressions and work your way outwards. The truth table for the above statement (pq)(¬r)(p \land q) \to (\neg r) would look like this:

ppqqrrpqp \land q¬r\neg r(pq)(¬r)(p \land q) \to (\neg r)
TTTTFF
TTFTTT
TFTFFT
TFFFTT
FTTFFT
FTFFTT
FFTFFT
FFFFTT

Two statements are logically equivalent if they have the same truth value in every possible scenario. Logical equivalences can be used to simplify complex statements or to prove the validity of arguments.

Try to create some some propositions statements and plug them into truth tables to see how they work! Ensure your statements are well-defined and unambiguous.

Logical Equivalences

Logical equivalences are statements that are always true and can be used to simplify complex logical expressions. Suppose that p,q,rp,q, r are propositional variables and t,ct, c are a tautology and contradiction respectively. We have the following logical equivalences:

Commutativity

pqqpp \land q \equiv q \land p pqqpp \lor q \equiv q \lor p

Associativity

(pq)rp(qr)(p \land q) \land r \equiv p \land (q \land r) (pq)rp(qr)(p \lor q) \lor r \equiv p \lor (q \lor r)

Distrubutivity

p(qr)(pq)(pr)p \land (q \lor r) \equiv (p \land q) \lor (p \land r) p(qr)(pq)(pr)p \lor (q \land r) \equiv (p \lor q) \land (p \lor r)

Identity Laws

ptpp \land t \equiv p pcpp \lor c \equiv p

Negation

p¬pcp \land \neg p \equiv c p¬ptp \lor \neg p \equiv t ¬tc\neg t \equiv c ¬ct\neg c \equiv t

Double Negation

¬(¬p)p\neg (\neg p) \equiv p

Idempotent Laws

pppp \land p \equiv p pppp \lor p \equiv p

Universal Bound Laws

pccp \land c \equiv c pttp \lor t \equiv t

Absorption Laws

p(pq)pp \land (p \lor q) \equiv p p(pq)pp \lor (p \land q) \equiv p

De Morgan’s Laws

De Morgan’s laws are essentailly a distrubution rule for negation over conjunctions and disjunctions. They state the following equivalences:

  • The negation of a conjunction is equivalent to the disjunction of the negations: ¬(pq)(¬p)(¬q)\neg (p \land q) \equiv (\neg p) \lor (\neg q)
  • The negation of a disjunction is equivalent to the conjunction of the negations: ¬(pq)(¬p)(¬q)\neg (p \lor q) \equiv (\neg p) \land (\neg q)

Proof of De Morgan’s Laws

We can prove De Morgan’s laws using truth tables. Let’s start with the first law:

ppqqpqp \land q¬(pq)\neg (p \land q)¬p\neg p¬q\neg q(¬p)(¬q)(\neg p) \lor (\neg q)
TTTFFFF
TFFTFTT
FTFTTFT
FFFTTTT

Observe that the columns for ¬(pq)\neg (p \land q) and (¬p)(¬q)(\neg p) \lor (\neg q) are identical, confirming the first of De Morgan’s Laws. Now, let’s prove the second law:

ppqqpqp \lor q¬(pq)\neg (p \lor q)¬p\neg p¬q\neg q(¬p)(¬q)(\neg p) \land (\neg q)
TTTFFFF
TFTFFTF
FTTFTFF
FFFTTTT

Observe that the columns for ¬(pq)\neg (p \lor q) and (¬p)(¬q)(\neg p) \land (\neg q) are identical, confirming the second of De Morgan’s Laws.

More on Conditional Statements and Implication

Logical Equivalences of Conditional Statements

Conditional Statements, also known as implications, are a fundamental concept in formal logic. A conditional statement is typically expressed in the form “If pp, then qq,” denoted as pqp \to q. Here, pp is called the antecedent (or premise), and qq is called the consequent (or conclusion). Arguments involving conditional statements are used to establish relationships between propositions and to derive conclusions based on given premises. Logical inferencing often relies on understanding and manipulating these conditional statements. We can express conditional statements using other logical connectives.

Recall, the truth table for implication (pqp \to q) is given by

ppqqpqp \to q
TTT
TFF
FTT
FFT

We have p toqp \ to q is logicallly equivalent to ¬pq\neg p \lor q.

Addtionally, we have the contrapositive of a conditional statement. If we have pqp \to q, the contrapositive is the statement ¬q¬p\neg q \to \neg p. The contrapositive is logically equivalent to the original conditional statement. This means that if pqp \to q is true, then ¬q¬p\neg q \to \neg p is also true, and vice versa. Sometimes, the contrapositive might be easier to prove or work with than the original implication. This usage is a fundamental concept in logic and is often used in mathematical proofs and reasoning.

Proof of Logical Equivalence of Conditional Statements

To prove that pqp \to q is logically equivalent to ¬pq\neg p \lor q, we can construct a truth table for both expressions and compare their truth values.

ppqqpqp \to q¬p\neg p¬pq\neg p \lor q
TTTFT
TFFFF
FTTTT
FFTTT

Observe that the columns for pqp \to q and ¬pq\neg p \lor q are identical, confirming that pqp \to q is logically equivalent to ¬pq\neg p \lor q.

To prove that pqp \to q is logically equivalent to its contrapositive ¬q¬p\neg q \to \neg p, we can construct a truth table for both expressions and compare their truth values.

ppqqpqp \to q¬q\neg q¬p\neg p¬q¬p\neg q \to \neg p
TTTFFT
TFFTFF
FTTFTT
FFTTTT

Observe that the columns for pqp \to q and ¬q¬p\neg q \to \neg p are identical, confirming that pqp \to q is logically equivalent to its contrapositive ¬q¬p\neg q \to \neg p.

Converses and Inverses

We can define the converse and inverse of a conditional statement pqp \to q as follows:

  • The converse is the statement qpq \to p. The converse is not logically equivalent to the original conditional statement.
  • The inverse is the statement ¬p¬q\neg p \to \neg q. The inverse is also not logically equivalent to the original conditional statement

Conditions

pp only if q means “if not p then not q”. In logical form, this is expressed as ¬p¬q\neg p \to \neg q.

A biconditional statement is a statement that combines two conditional statements: “if pp then qq” and “if qq then pp”. It is denoted as pqp \leftrightarrow q and is read as ”pp if and only if qq”. A biconditional statement is true when both pp and qq have the same truth value (both true or both false) and false otherwise. In logical form, a biconditional statement can be expressed as the conjunction of two implications: (pq)(qp)(p \to q) \land (q \to p).

Proof of Logical Equivalence of Biconditional Statements

To prove that pqp \leftrightarrow q is logically equivalent to (pq)(qp)(p \to q) \land (q \to p), we can construct a truth table for both expressions and compare their truth values.

ppqqpqp \leftrightarrow qpqp \to qqpq \to p(pq)(qp)(p \to q) \land (q \to p)
TTTTTT
TFFFTF
FTFTFF
FFTTTT

Observe that the columns for pqp \leftrightarrow q and (pq)(qp)(p \to q) \land (q \to p) are identical, confirming that pqp \leftrightarrow q is logically equivalent to (pq)(qp)(p \to q) \land (q \to p).

Suppose that r,sr,s are propositional variables.

We say that rr is a sufficient condition for ss if we have rsr \to s.

We say that rr is a necessary condition for ss if we have srs \to r. We can write this with the contrapositive as if not rr then not ss as ¬r¬s\neg r \to \neg s.

The biconditional statement rsr \leftrightarrow s indicates that rr is both a necessary and sufficient condition for ss. In other words, rr is true if and only if ss is true.

Last updated on