Logic gates are transistor-based components. Here are the four basic ones.
for a variable x, x̄ = 1-x ∴ x + x̄ = 1
OR function (+) has value 1 if any of inputs has value 1.
Properties:
AND function (⋅) has value 1 if all inputs have value 1.
NOTE: the operator ‘⋅’ is often omitted!
Properties:
XOR function (⨁) has value 1 if one of inputs has value 1.
How an XOR gate is built and functions: