Boolean algebra
In mathematics , Boolean algebra is an algebra for binary digits (where 0 means false and 1 means true). It is equipped with three operators : conjunction (AND), disjunction (OR) and negation (NOT). It uses normal math symbols, but it does not work in the same way. It is named for George Boole , who invented it in the middle 19th century. Boolean algebra did not get much attention except from mathematicians until the 20th century, when engineers began using it for logic gates .
NOT gate
The NOT operator is written with a bar over numbers or letters like this:
1 ¯ = 0
0 ¯ = 1
A ¯ = Q
It means that the output is not the input.
AND gate
The AND operator is written as ⋅ like this:
0 ⋅ 0 = 0
0 ⋅ 1 = 0
1 ⋅ 0 = 0
1 ⋅ 1 = 1
The output is true if and only if one and the other input is true.
OR gate
The OR operator is written as + like this:
0 + 0 = 0
0 + 1 = 1
1 + 0 = 1
1 + 1 = 1
If one or the other input is true, then the output to be true (and false otherwise).
XOR gate
XOR basically means "exclusive or", meaning one input or the other must be true, but not both.
The XOR operator is written as − like this:
0 − 0 = 0
0 − 1 = 1
1 − 0 = 1
1 − 1 = 0
In other words, the XOR operator returns true precisely when one or the other input is true—but not both.
Identities
Different gates can be put together in different orders:
A ⋅ B ‾ is the same as an AND then a NOT. This is called a NAND gate.
It is not the same as a NOT then an AND: A ‾ ⋅ B ‾
A + 1 = 1
A ⋅ 1 = A
which is called AND identity table
AND
1
0
Any
1
TRUE
0
0
0
0
0
A N Y ‾
Any
0
A N Y ‾
{ A n y }
, if
A N Y = { x | { x } = { { T R U E } ∨ { T R U E ‾ } , } ; ∧ ( T R U E , 0 ) ⊢ T R U E ∧ 0 ‾ = { x } .[ source? ]
or if A N Y = { x ‖ { T R U E } , { T R U E ‾ } . } , =TRUE, TRUE .,
De Morgan's laws
Augustus De Morgan discovered that it is possible to preserve the truth values of Boolean expressions by changing a + sign to a ⋅ sign, while making or breaking a bar. That is:
A + B ‾ = A ‾ ⋅ B ‾
A ⋅ B ‾ = A ‾ + B ‾
These findings are commonly known as De Morgan's laws .
General Theorems (list) & Paradoxes Logics
Traditional Propositional Predicate
First-order
Second-order
Higher-order
Free
Quantifiers
Predicate
Monadic predicate calculus
Set theory
Types of Sets
Countable
Uncountable
Empty
Inhabited
Singleton
Finite
Infinite
Transitive
Ultrafilter
Recursive
Fuzzy
Universal
Universe
Constructible
Grothendieck
Von Neumann
Maps & Cardinality Set theories
Zermelo–Fraenkel
General
Kripke–Platek
Morse–Kelley
Naive
New Foundations
Tarski–Grothendieck
Von Neumann–Bernays–Gödel
Ackermann
Constructive
Formal systems (list ),Language & Syntax
Alphabet
Arity
Automata
Axiom schema
Expression
Extension
by definition
Conservative
Relation
Formation rule
Grammar
Formula
Atomic
Closed
Ground
Open
Free/bound variable
Language
Metalanguage
Logical connective
Predicate
Functional
Variable
Propositional variable
Proof
Quantifier
Sentence
Signature
String
Substitution
Symbol
Function
Logical/Constant
Non-logical
Variable
Term
Theory
Example axiomatic systems (list)
of geometry:
Euclidean :
non-Euclidean * of arithmetic:
Peano
second-order
elementary function
primitive recursive
Robinson
Skolem
of the real numbers
of Boolean algebras
Proof theory Model theory
Truth value
Interpretation
Model
Equivalence
Finite
Saturated
Spectrum
Submodel
Non-standard model
Diagram
Categorical theory
Model complete theory
Satisfiability
Semantics of logic
Strength
Theories of truth
Semantic
Tarski's
Kripke's
T-schema
Transfer principle
Truth predicate
Type
Ultraproduct
Validity
Computability theory Related