True and False
True and false denoted by respectively are distinct symbols ( ).
Predicate
A predicate is a
function for some set
Logical And
We define the
function by the following table:
note that we use infix notation for this function.
Logical Negation
We define the
function by the following table:
When working with the negation, we almost never include the parenthesis unless it is really necessary, so you'll see rather than the standard function notation:
Logical Or
We define as
Rightward Logical Implication
We define as
Note that even though the above doesn't seem intuitive, it exactly matches your intuition, we know that the only time an implication can be false is when we have the antecdent to be true, but the result false, which is exactly the case for the above definition.
Usually is called the "antecedent" and the "consequent".
Leftward Logical Implication
We define as
Logical Bi-Implication
We define as
Note that in writing mathematicians will use the word "iff" as short-hand for if and only if, which represents the bi-implication.
Logical And True iff both Arguments are True
TODO
The above proof might feel a bit meta, indeed, we are using the definition of "iff" that we just defined on this page. The "metaness" is coming from the fact that the "iff" we use in english language is actually the bi-implication which we formally define a bit later in the page (which in-turn is then defined in terms of logical and eventually).
Logical Exclusive Or
We define as
"XOR" is sometimes used in place of it's regular name.
Addition Mod 2 is Associative
Suppose that we have the function
defined such that
then it is associative
Let , and consider the equation when all of we have , when exactly one of them is zero, then without loss of generality we get the equation , if exactly two of them are ones then we either get an equation of the form which holds, or one of the form , finally if all are 1 then we get , since all equations hold true from the definition then is associative.
Exclusive Or is Associative
For any we have that
Consider the bijective mapping and we can see that , the it follows that is associative, therefore so is
Sum of Ones Mod 2 becomes 0 iff Even
Since is associative let's use it as a binary operation and temporarily label it as then consider a sequence if and only if is even.
Induction I believe on even numbers + 2 each time.
Exclusive Or Evaluates to True iff an odd number of arguments are True
if and only if is odd.
Tautology
We say that a
predicate is a tautology iff for every
.
In mathematics, when we prove a statement, we are actually showing that it is a tautology.
Contrapositive
The following is a tautology
Forced Consequence
The following is a tautology
Arbitrary And
For any
we define
arbitrary and as the
predicate such that for any
.
if and only if the following statement holds true
Empty And is True
Suppose that
(the empty tuple), then
where we've used the
the arbitrary and
It holds vacuously true.
Arbitrary And Indexed Notation
Suppose that,
and
then we define
where we've used the
the arbitrary and
Arbitrary And Indexed Notation with Reversed Integers is True
Suppose and
Arbitrary And Expanded Notation
Suppose that
then we define
where we've used the
previous definition
Uniqueness
Suppose that is a predicate, then we say that there is a unique element which satisfies over the set when
For Every, There Exists is a Function
The statement is equivalent to