This site is supported by donations to The OEIS Foundation.

Logical equality

From OeisWiki
Jump to navigationJump to search

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.

A logical equality of propositions p and q may be written in various ways.  Among the most common are these:

  • pq
  • pq
  • p=q

A truth table for p=q appears below:


Logical Equality
p q p=q
F F T
F T F
T F F
T T T


A logical graph for p=q is shown below:

The traversal string of this graph is ((p,q)).  The proposition p=q may be taken as a Boolean function f(p,q) having the abstract type f:𝔹×𝔹𝔹, where 𝔹={0,1} is interpreted in such a way that 0 means false and 1 means true.

A Venn diagram for p=q indicates the region where p=q is true by means of a distinctive color or shading.  In this case the region consists of two single cells, as shown below:

Resources

[edit]

Document history

[edit]

Portions of the above article were adapted from the following sources under the GNU Free Documentation License, under other applicable licenses, or by permission of the copyright holders.