ArticleslgStudy

mathematics

Logical equality

Logical equality is a mathematics topic covered in the lgStudy science library. This page brings together a partial reference excerpt, illustrations, worked examples, real-world applications and a short study plan, so you can understand Logical equality rather than just read about it. In short: Logical equality is a logical operator that compares two truth values, or more generally, two formulas, such that it gives the value True if both arguments have the same truth value, and False if they are different. In the case where formulas have free variables, we say two formulas are equal when their truth values are equal for all possible resolutions of free variables.

Logical equality — main illustration
Logical equality — illustration

Key takeaways

  • Logical equality belongs to mathematics; place it in that map before memorising details.
  • Learn the definition first, then one example that makes the definition concrete.
  • Connect Logical equality to a quantity you can measure, compute or draw — that is where exam questions come from.
  • Reproduce the core statement of Logical equality from memory before moving on to harder problems.

Reference excerpt

Logical equality is a logical operator that compares two truth values, or more generally, two formulas, such that it gives the value True if both arguments have the same truth value, and False if they are different. In the case where formulas have free variables, we say two formulas are equal when their truth values are equal for all possible resolutions of free variables. It corresponds to equality in Boolean algebra and to the logical biconditional in propositional calculus. It is customary practice in various applications, if not always technically precise, to indicate the operation of logical equality on the logical operands x and y by any of the following forms:

x ↔ y x ⇔ y E x y x E Q y x = y {\displaystyle {\begin{aligned}x&\leftrightarrow y&x&\Leftrightarrow y&\mathrm {E} xy\\x&\mathrm {~EQ~} y&x&=y\end{aligned}}}

Some logicians, however, draw a firm distinction between a functional form, like those in the left column, which they interpret as an application of a function to a pair of arguments — and thus a mere indication that the value of the compound expression depends on the values of the component expressions — and an equational form, like those in the right column, which they interpret as an assertion that the arguments have equal values, in other words, that the functional value of the compound expression is true.

Definition Logical equality is an operation on two logical values, typically the values of two propositions, that produces a value of true if and only if both operands are false or both operands are true. The truth table of p EQ q (also written as p = q, p ↔ q, Epq, p ≡ q, or p == q) is as follows:

Alternative descriptions The form (x = y) is equivalent to the form (x ∧ y) ∨ (¬x ∧ ¬y).

( x = y ) = ¬ ( x ⊕ y ) = ¬ x ⊕ y = x ⊕ ¬ y = ( x ∧ y ) ∨ ( ¬ x ∧ ¬ y ) = ( ¬ x ∨ y ) ∧ ( x ∨ ¬ y ) {\displaystyle (x=y)=\lnot (x\oplus y)=\lnot x\oplus y=x\oplus \lnot y=(x\land y)\lor (\lnot x\land \lnot y)=(\lnot x\lor y)\land (x\lor \lnot y)}

For the operands x and y, the truth table of the logical equality operator is as follows:

Inequality In mathematics, the plus sign "+" almost invariably indicates an operation that satisfies the axioms assigned to addition in the type of algebraic structure that is known as a field. For Boolean algebra, this means that the logical operation signified by "+" is not the same as the inclusive disjunction signified by "∨" but is actually equivalent to the logical inequality operator signified by "≠", or what amounts to the same thing, the exclusive disjunction signified by "XOR" or "⊕". Naturally, these variations in usage have caused some failures to communicate between mathematicians and switching engineers over the years. At any rate, one has the following array of corresponding forms for the symbols associated with logical inequality:

x + y x ≢ y J x y x X O R y x ≠ y {\displaystyle {\begin{aligned}x&+y&x&\not \equiv y&Jxy\\x&\mathrm {~XOR~} y&x&\neq y\end{aligned}}}

This explains why "EQ" is often called "XNOR" in the combinational logic of circuit engineers, since it is the negation of the XOR operation; "NXOR" is a less commonly used alternative. Another rationalization of the admittedly circuitous name "XNOR" is that one begins with the "both false" operator NOR and then adds the eXception "or both true".

See also

Boolean function If and only if Logical equivalence Logical biconditional Propositional calculus

References

External links Media related to Logical equality at Wikimedia Commons Mathworld, XNOR

Illustrations

Logical equality illustration

Worked examples

Example 1 — a first encounter with Logical equality

Start with the simplest possible case. Write down what Logical equality claims or describes in one sentence, then invent the smallest concrete situation in which that sentence is true. In mathematics, the smallest case is usually a single object, a single equation or a single measurement. Check that every symbol or term in your sentence has a meaning in that case.

Example 2 — changing one variable

Take the situation from Example 1 and change exactly one quantity: double it, halve it, or set it to zero. Predict what should happen to Logical equality before you calculate. Comparing your prediction with the result is the fastest way to find out whether you understand the idea or only the words.

Example 3 — an exam-style question

Typical questions about Logical equality ask you to (a) state it precisely, (b) apply it to given data, and (c) explain a limitation. Practise writing all three answers in under five minutes; the third part is what separates a full-mark answer from an average one.

Applications of Logical equality

In research
Logical equality appears in mathematics research whenever the underlying quantities have to be modelled precisely. Papers usually cite it as a starting assumption and then explore where it breaks down.
In technology and industry
Engineering practice reuses Logical equality in design rules, simulations and safety margins. Knowing the idea lets you read a specification sheet and understand why the numbers look the way they do.
In the classroom
Logical equality is common in secondary-school and first-year university syllabi. It links to neighbouring topics Equivalence (mathematics), Logic gates, Logical connectives, so understanding it makes those chapters shorter.
In everyday life
Look for Logical equality outside the textbook — in sport, cooking, traffic, electronics or the sky above you. An example you found yourself is remembered far longer than one you were given.

Affiliate

Preply — study more efficiently by working with a personal tutor. 50% off.

How to study Logical equality in 20 minutes

  1. Read the reference excerpt below once, without taking notes.
  2. Close the page and write down what Logical equality means in your own words.
  3. Compare your version with the excerpt and mark what you missed.
  4. Work through the three examples above with pen and paper.
  5. Explain Logical equality out loud to somebody else — or to Teacher Smith in the lgStudy chat.

Frequently asked questions

What is Logical equality in simple terms?

Logical equality is a logical operator that compares two truth values, or more generally, two formulas, such that it gives the value True if both arguments have the same truth value, and False if they are different. In the case where formulas have free variables, we say two formulas are equal when…

Why does Logical equality matter?

Because it connects several mathematics ideas at once: it gives you a definition you can apply, a quantity you can calculate, and a way to check whether a result is plausible.

How should I study Logical equality?

Read the excerpt, restate it from memory, then work through the examples and applications listed on this page. The five-step study plan above takes about twenty minutes.

What does this page cover?

It gives you a compact reference excerpt plus original lgStudy explanations, examples, applications and study material on Logical equality.

Tags

  • Equivalence (mathematics)
  • Logic gates
  • Logical connectives

Keep exploring