Math From Scratch

If you want to make an apple pie from scratch, you must first create the universe. — Carl Sagan

Acknowledgements

Acknowledgements

Acknowledgements

Acknowledgements

Acknowledgements

Acknowledgements

Acknowledgements

Logic

Contrariwise, continued Tweedledee, if it was so, it might be; and if it were so, it would be; but as it isn't, it ain't. That's logic. — Through the Looking Glass by Lewis Carroll

Informal Logic

A familiar argument:

  • All men are mortal.
  • Socrates is a man.

Conclusion: Socrates is mortal.

Informal Logic

A less familiar, but still sound, argument:

  • All frobwaddles have napthroma.
  • Ghormnast is a frobwaddle.

Conclusion: Ghormnast has napthroma.

Formal Logic

  • Separates logic from specialized knowledge
  • Supports exploration beyond our intuition

Formal Systems

  • Theses: things that are formally true
    • Axioms: foundational ideas accepted as true
    • Theorem: proven using axioms and other theorems according to rules of inference
  • Rules of Inference: acceptable ways to combine theses to make new ones
  • Definitions (): short hand that can be replaced with more fundamental concepts

Formal Systems: Properties

Desirable properties of a formal system include:

  • Consistent: no statement can be proven both true and false
  • Complete: all statements can be proven either true or false
  • Useful: statements match measurable physical processes and make falsifiable preditions

Incompleteness

Any sufficiently powerful formal system is either inconsistent or incomplete. (Gödel 1931 CE)

Foundation Systems

  • Propositional Calculus
  • Predicate Calculus
  • Set Theory
  • Geometry

Propositional Calculus

Propositional calculus (Frege 1879 CE and Łukasiewicz 1930 CE) deals with statements which are either true or false.

Informal Propositions

  • Example: It's raining outside
  • Example: The ground is wet
  • Example: You should carry an umbrella

Real examples are complicated by things like time, geography, scale and opinion. Propositional calculus has no tools for dealing with these.

Formal Propositional Calculus

Operator Stroke (NAND): P Q
Axiom Łukasiewicz: (P (Q R)) ((S (S S)) ((S Q) ((P S) (P S))))
Rules
  • Substitution (statements)
  • Replacement (definitions)
  • Detatchment: P (Q R), P R

Sheffer Stroke

A stroke (Sheffer 1913 CE) is true unless both the statements it comprises are true: P Q

PQ P Q Q P
true true false false
true false true true
false true true true
false false true true

Negation

Negation inverts a statement (not P or P is false): ¬P ≝ (P ⊼ P)

P P ⊼ P ¬P
true false false
false true true

Conjunction

A conjunction is true if and only if both statements are true.

(P Q) ≝ ¬(P ⊼ Q) = (P ⊼ Q) ⊼ (P ⊼ Q)

PQ P ⊼ Q ¬(P ⊼ Q)  Q
true true false true true
true false true false false
false true true false false
false false true false false

Disjunction

A disjunction of two propositions is true when at least one statement is true.

(P Q) ≝ ¬P ⊼ ¬Q = (P ⊼ P) ⊼ (Q ⊼ Q)

PQ ¬P¬Q ¬P ⊼ ¬Q Q
true true false false true true
true false false true true true
false true true false true true
false false true true false false

Implication

An antecedant implies a consequent (P implies Q or if P then Q):
(P Q) ≝ P ⊼ ¬Q = P ⊼ (Q ⊼ Q)

PQ P ⊼ ¬Q P Q
true true true true
true false false false
false true true true
false false true true

Implication: Contrapositive

Every implication has a contrapositive, which is always equivalent.

PQ P Q ¬Q¬P ¬Q ¬P
true true true false false true
true false false true false false
false true true false true true
false false true true true true

Implication: Converse

Every implication has a converse, which is not logically equivalent.

PQ P Q Q P
true true true true
true false false true
false true true false
false false true true

Biconditional

An implication and its converse are a biconditional.

(P Q) ≝ (P ⟹ Q) ∧ (Q ⟹ P) = ((P ⊼ (Q ⊼ Q)) ⊼ (Q ⊼ (P ⊼ P))) ⊼ ((P ⊼ (Q ⊼ Q)) ⊼ (Q ⊼ (P ⊼ P)))

PQ P ⟹ Q Q ⟹ P (P ⟹ Q) ∧ (Q ⟹ P)  Q
true true true true true true
true false false true false false
false true true false false false
false false true true true true

Operators

  • Stroke: P Q
  • Negation: ¬P ≝ P ⊼ P
  • Conjunction: P Q ≝ ¬(P ⊼ Q)
  • Disjunction: P Q ≝ ¬P ⊼ ¬Q
  • Implication: P Q ≝ P ⊼ ¬Q
  • Biconditional: P Q ≝ (P ⟹ Q) ∧ (Q ⟹ P)

Operators

  • Stroke: P Q
  • Negation: ¬P ≝ P ⊼ P
  • Conjunction: P Q ≝ (P ⊼ Q) ⊼ (P ⊼ Q)
  • Disjunction: P Q ≝ (P ⊼ P) ⊼ (Q ⊼ Q)
  • Implication: P Q ≝ P ⊼ (Q ⊼ Q)
  • Biconditional: P Q ≝ ((P ⊼ (Q ⊼ Q)) ⊼ (Q ⊼ (P ⊼ P))) ⊼ ((P ⊼ (Q ⊼ Q)) ⊼ (Q ⊼ (P ⊼ P)))

Statements

Every statement in propositional calculus is can be classified as one of the following:

  • An atomic statement is a single variable (P, Q, ...).
  • A contingency can be true or false depending on the value of the atomic statements it comprises
  • A contradiction is always false
  • A tautology is always true

Contradictions

A contradiction is false regardless of the value of the atomic statements it comprises.

PQ¬P P∧¬P ¬(P⟹(Q⟹P))
true true false false false
true false false false false
false true true false false
false false true false false

Tautologies

A tautology is true regardless of the value of the atomic statements it comprises.

PQ¬P P∨¬P Q⟹Q P⟹(Q⟹P)
true true false true true true
true false false true true true
false true true true true true
false false true true true true

Theses and Tautologies

All theses of propositional calculus are tautologies. All tautologies are theses of propositional calculus, which is both consistent and complete. This is possible because propositional calculus is not complex enough to provoke Gödel.

Rules of Inference

  • Substitution (statements)
  • Replacement (definitions)
  • Detatchment: P (Q R), P R

Rule of Substitution

Substitution allows us to construct theorems by replacing variables in an established thesis with any well formed statement.

P P (Q := Statement, ...)

Substitution: Examples

  • P ⟹ (Q ⟹ P) ⊢ P ⟹ (P ⟹ P) :: Q := P
  • P ⟹ (Q ⟹ P) ⊢ Q ⟹ (P ⟹ Q) :: P := Q, Q := P
  • P ⟹ (Q ⟹ P) ⊢ R ⟹ (S ⟹ R) :: P := R, Q := S
  • P ⟹ (Q ⟹ P) ⊢ (R ∧ S) ⟹ (¬R ⟹ (R ∧ S)) ::
    P := (R ∧ S), Q := ¬R

There's no way to make a tautology false so we can substitute any statement for its variables.

Rule of Replacement

Replacement allows us to construct theorems either by replacing expressions in a thesis with definitions or replacing definitions with their underlying meanings.

Replacement: Examples

  • T ⊼ (T ⊼ T) ⊢ T ⟹ T :: (P ⟹ Q) ≝ P ⊼ (Q ⊼ Q)
  • P ⟹ (Q ⟹ P) ⊢ P ⟹ (Q ⊼ ¬P) :: Implication
  • P ⟹ (Q ⟹ P) ⊢ P ⊼ ¬(Q ⊼ ¬P) :: Implication
  • P ⟹ (Q ⟹ P) ⊢ P ⊼ ((Q ⊼ (P ⊼ P)) ⊼ (Q ⊼ (P ⊼ P))) :: Negation

Replacing a definition with its value or a value with a definition leaves it unchanged.

Rule of Detatchment

Detatchment allows us to construct theorems by extracting part of an established thesis.

P ⊼ (Q ⊼ R), P R

Detatchment

P ⊼ (Q ⊼ R), P R

P*QR Q ⊼ R P ⊼ (Q ⊼ R)
true true true false true
true true false true false
true true true true false
true false true true false

Modus Ponens

P ⟹ Q, P Q

Modus ponens follows from our detatchment rule.

  • P ⊼ (Q ⊼ R), P R :: Detatchment
  • P ⊼ (Q ⊼ Q), P Q :: Substitution (R := Q)
  • P ⊼ ¬Q, P Q :: Replacement (Negation)
  • P ⟹ Q, P Q :: Replacement (Implication)

Scharle Theorems

Thomas Scharle worked through the process of proving more convenient axioms from the single Łukasiewicz axiom: Axiomatization of Propositional Calculus with Scheffer Functors (Scharle 1965 CE)

Scharle Theorems

Łukasiewicz Axioms

  • (¬P ⟹ P) ⟹ P
  • (P ⟹ Q) ⟹ ((Q ⟹ R) ⟹ (P ⟹ R))
  • P ⟹ (¬P ⟹ Q)

Łukasiewicz Theorems

De Morgan's Laws

P ∧ Q ⟺ ¬(¬P ∨ ¬Q)

  • ¬(P ⊼ Q) ⟺ ¬(¬¬P ⊼ ¬¬Q) :: Definition ∧,∨
  • ¬(P ⊼ Q) ⟺ ¬(P ⊼ Q) :: Double Negation

P ∨ Q ⟺ ¬(¬P ∧ ¬Q)

  • ¬P ⊼ ¬Q ⟺ ¬¬(¬P ⊼ ¬Q) :: Definition ∧,∨
  • ¬P ⊼ ¬Q ⟺ ¬P ⊼ ¬Q :: Double Negation

Kleene Axioms

  • Implication Introduction: P ⟹ (Q ⟹ P)
  • (P ⟹ Q) ⟹ ((P ⟹ (Q ⟹ R)) ⟹ (P ⟹ R))
  • Conjunction Introduction: P ⟹ (Q ⟹ (P ∧ Q))
  • Conjunction Elimination: (P ∧ Q) ⟹ P
  • Conjunction Elimination: (P ∧ Q) ⟹ Q
  • (P ⟹ Q) ⟹ ((R ⟹ Q) ⟹ (P ∨ R ⟹ Q))
  • Disjunction Introduction: P ⟹ (P ∨ Q)
  • Disjunction Introduction: P ⟹ (Q ∨ P)
  • Contradiction: (P ⟹ Q) ⟹ ((P ⟹ ¬Q) ⟹ ¬P)
  • Negation Elimination: ¬¬P ⟹ P

Biconditional Properties

  • Reflexive: P ⟺ P
  • Symmetric: (P ⟺ Q) ⟹ (Q ⟺ P)
  • Transitive: (P ⟺ Q) ∧ (Q ⟺ R) ⟹ (P ⟺ R)

Predicate Calculus

A predicate is a proposition that is true or false based on the value of its variables. This is also called first order logic.

What is a Predicate?

  • Example: A _____ is a fruit
  • An apple is a fruit (true)
  • A carrot is a fruit (false)

An apple isn't true or false. It's an object rather than a statement. This distinction is important.

Cast of Characters

  • Object: ♠, , ♣,
  • Variable (Object): a, b, c, ...
  • Function (Object): f(a), g(a, b), h, ...
    • next(♠) ⟶
    • next() ⟶ ♣
    • kestral(♠, ♣) ⟶ ♠
    • kestral(, ♣) ⟶
  • Predicate (true or false): P, Q(a), R(a, b), ...
    • BLACK(♠) : true
    • BLACK() : false
    • SAME(♠, ♠) : true
    • SAME(♠, ♣) : false

Universal Quantifier

a P(a)

A universal quantifier asserts that a predicate is true for all possible values of a variable. This binds a variable so that it is no longer free in the predicate.

Existential Quantifier

a P(a) ≝ ¬∀a ¬P(a)

From the universal quantifier we construct the existential quantifier. This asserts that some value of a variable satisfies the predicate.

The negation of this quantifier is sometimes useful.

a P(a) ≝ ¬a P(a) ⟺ ∀a ¬P(a)

Predicate Calculus

Rule of Generalization: P ⊢ ∀a P
Quantified Implication:
(∀a (P ⟹ Q)) ⟹ ((∀a P) ⟹ (∀a Q))
Distinctness: P ⟹ ∀a P
Existance: ¬∀a ¬(a = b)
Equality: (a = b) ⟹ ((a = c) ⟹ (b = c))

Liebniz's Law

∀a,b (a = b)(P(a) ⟺ P(b))

When a and b are equal the value of any predicate using a is the same as the same predicate using b. We can substitute equal values without changing any results.

Nothing But Set

Set theory is a formal system in which the only objects are sets and the only thing sets can do is contain other objects. From this we will construct relations, functions, arithmetic and algebra. (Zermelo-Fraenkel 1908-1922 CE)

Extensionality Same members, same set
Specification A subset exists for any predicate
Pairing Make a set with two members
Union Sets can be merged
Power Set Sets of subsets exist
Replacement Any function can map a set
Regularity Sets can't contain themselves
Infinity There is at least one infinite set
Choice One member from each set

Set Enumeration

The simplest way to describe a set by enumerating its members.

{, ,, }

Predicate: Set Membership

{♠, , ♣, } member of
a {b, c} ⟹
(a≠b ∧ a≠c)
not a member of
(a b) ≝ ¬(a b)

Axiom of Extensionality

∀a,b (a = b) ⟺ (∀c c∈a ⟺ c∈b)

Set equality is determined by membership.

Sets have no order: { ♣, , ♠, } = { ♠, , ♣, }

Sets have no repetition: { ♠, ♠, ♣, } = { ♠, , ♣, }

Axiom (Schema) of Specification

∀a,P ∃b ∀c c∈b ⟺ (c∈a ∧ P(c))

Given a set and a predicate there is a set which contains only members for which the predicate is true. Any predicate can filter any set.

Notation: { a∈b : P(a) }

Empty Set

{} ≝ ∀a a∉{}

The empty set doesn't contain anything.

Extensionality means this set must be unique.

The empty set can be created by specification:
∃a ⟹ ∃{ b∈a : b ≠ b } = {}

Axiom of Pairing

∀a,b ∃{a, b} ∀c (c∈{a, b} ⟺ (c=a ∨ c=b))

Any two sets can be used to create a set which contains only themselves: { ♠, ♣ }

Elements of the pair may be equal, in which case extensionality means there is a single member:

{ ♠, ♠ } = { ♠ }

Axiom of Union

∀a ∃a ∀b∈a (∃c∈a b∈c)

Any set can be used to create a set by combining all the members of its members.

{ { ♠, ♣ }, { , } } = {♠, , ♣, }

∀a,b (a b) ≝ { a, b }

Intersection

∀a a ≝ { c∈∪a : ∀b∈a c∈b }

The intersection of a set of sets contains all members that are present in all the members. This can be defined on a pair of sets.

{ { ♠, }, { ♠, } } = { ♠ }

∀a,b (a b) ≝ { a, b }

Difference

∀a,b (a b) ≝ { c∈a : c∉b }

The difference between two sets contains only the elements of the first that are not in the second.

{ ♠, , ♣ } { , } = { ♠, ♣ }

Some Assembly Required

Pairing and union axioms allow us to create sets of any size from whatever elements exist.

  • ∪{ { ♠, ♠ }, { , } } = { ♠, , }
  • ∪{ { ♠, }, { , ♣ } } = { ♠, , ♣, }
  • ∪{ ∪{ { 😃, 😞 }, { 😉, 😉 } }, { 😠, 😝 } } =
    { 😃, 😞, 😉, 😠, 😝 }
  • ...

Union Properties

These easily follow from extensionality.

  • Identity: ∀a (a ∪ {}) = ∪{ a, {} } = a
  • Idempotent: ∀a (a ∪ a) = ∪{ a, a } = a
  • Commutative: ∀a,b (a ∪ b = b ∪ a)
    (∪{a, b} = ∪{b, a})
  • Associative: ∀a,b,c ((a ∪ b) ∪ c = a ∪ (b ∪ c))
    (∪{ ∪{ a, b }, c } = ∪{ a, ∪{ b, c } })

Subsets

∀a,b (a b) ≝ (∪{a, b} = b)

One set is a subset of another if the union operator leaves the other set unchanged.

∀a,b (a b) ⟹ ∀c (c∈a ⟹ c∈b)

Subset Properties

These easily follow from extensionality.

  • Identity: ∀a {} ⊆ a
  • Reflexive: ∀a a ⊆ a
  • Antisymmetric: ∀a,b (a ⊆ b) ∧ (b ⊆ a) ⟹ (a = b)
  • Transitive: ∀a,b,c (a ⊆ b) ∧ (b ⊆ c) ⟹ (a ⊆ c)

Proper Subsets

∀a,b (a b) ≝ (a ⊆ b) ∧ (a ≠ b)

A proper subset is not equal the other set. It follows from extensionality that b must contain at least one element not found in a.

∀a,b (a ⊆ b) ∧ (a ≠ b) ⟹ ∃c (c ∈ b) ∧ (c ∉ a)

Axiom of Power Set

∀a ∃a ∀b (b∈a ⟺ b⊆a)

The subsets of any set make up a set of their own.

{♠, , ♣, } = {{}, {♠}, {}, {♣}, {},
{♠, }, {♠, ♣}, {♠, }, {, ♣}, {, }, {♣, },
{, ♣, }, {♠, ♣, }, {♠, , ♣}, {♠, , },
{♠, , ♣, }}

Axiom (Schema) of Replacement

∀a,f ∃b ∀c c∈b ⟺ ∃d∈a f(c) = d

Given a function and a subset of the domain there is a set which contains all the function outputs for all members of the set.

Notation: { f(a) : a∈b }

Axiom of Regularity

∀a ∃b∈a ⟹ ∃c∈a ∄d (d∈a ∧ d∈c)

A set that contains any members must contain at least one member that does not share any members with itself. No set can contain itself.

Axiom of Infinity

∃a (({}∈a) ∧ (∀b∈a ∪{b, {b, b}} ∈ a))

A set with infinitely many distinct members exists. Specifically the set containing the empty set and all sets we can get by taking the union of any member with a set containing only that member exists.

Axiom of Choice

∀a {}∉a ⟹ ∃f: a ⟶ ∪a ∀b∈a f(b) ∈ b

For any set that doesn't have any empty members a function exists that chooses one member from each of the sets members.

Extensionality ∀a,b (a = b) ⟺ (∀c c∈a ⟺ c∈b)
Specification (S) ∀a,P ∃b ∀c c∈b ⟺ (c∈a ∧ P(c))
Pairing ∀a,b ∃{a, b} ∀c (c∈{a, b} ⟺ (c=a ∨ c=b))
Union ∀a ∃∪a ∀b∈∪a (∃c∈a b∈c)
Power Set ∀a ∃℘a ∀b (b∈℘a ⟺ b⊆a)
Replacement (S) ∀a,f ∃b ∀c c∈b ⟺ ∃d∈a f(c) = d
Regularity ∀a ∃b∈a ⟹ ∃c∈a ∄d (d∈a ∧ d∈c)
Infinity ∃a (({}∈a) ∧ (∀b∈a b∪{b} ∈ a))
Choice ∀a {}∉a ⟹ ∃f: a ⟶ ∪a ∀b∈a f(b) ∈ b

Set Contents

We describe sets using one of these forms.

{} Empty Set: ∀a a∉{}
{ a, b, c } Enumeration
{ a∈b : P(a) } Specification (predicate filter)
{ f(a) : a∈b } Replacement (function outputs)

Can you relate?

A relation is a set that embodies a relationship between other sets. Examples of relations include equivalence, order and functions. Relations can also represent complex data.

But First: A Point of Order

Extensionality means that members of a set have no meaningful order.

∀a,b {a, b} = {b, a}

Let's impose some order on them!

Ordered Pairs

a, b ≝ {{a}, {a, b}} (Kuratowski 1921 CE)

  • ∀a,b (a ≠ b) ⟺ (a, bb, a)
  • ∀a,b (a ≠ b) ⟺ {{a}, {a, b}} ≠ {{b}, {b, a}}
  • a is first in a, b ≝ ∀c∈a, b a∈c
  • b is last in a, b ≝ (∃c∈a, b b∈c) ∧
    (∀c,d∈a, b (c ≠ d) ⟹ b∉c ∨ b∉d)

Ordered Tuples

  • a, b ≝ {{a}, {a, b}}
  • a, b, c ≝ {{a}, {a, b}, {a, b, c}}
  • a, b, c, d ≝ {{a}, {a, b}, {a, b, c}, {a, b, c, d}}
  • ...

Ordered pairs extend naturally to tuples which are not limited to pairs of elements.

Reducing Tuples

REST(t) ≝ { a ⊖ {FIRST(t)} :
a ∈ t ∧ (a ⊖ {FIRST(t)}) ≠ {} }

  • REST({{a}, {a, b}}) = {{b}}
  • REST({{a}, {a, b}, {a, b, c}}) = {{b}, {b, c}}
  • REST({{a}, {a, b}, {a, b, c}, {a, b, c, d}) = {{b}, {b, c}, {b, c, d}}

Unordering Tuples

A union turns a tuple into an unordered set

∪⟨♠, ♣⟩ = ∪{{♠}, {♠, ♣}} = {♠, ♣}

Two unions collapse a set of tuples

∪∪{ ⟨♠, ⟩, ⟨, ⟩, ⟨, ♣⟩} =
∪{{♠}, {♠, }, {}, {, }, {}, {, ♣}}
=
{ ♠, , ♣, }

Relation

∀a,b (a R b) ≝ ⟨a, b⟩∈R

A relation is a set of ordered pairs that represents a relationship between elements

  • Domain(R) ≝ { a∈∪∪R : ∃b∈∪∪R ⟨a, b⟩∈R }
  • Range(R) ≝ { b∈∪∪R : ∃a∈∪∪R ⟨a, b⟩∈R }

Relation Example

is-husband-of ≝ { ⟨James, Mary⟩,
⟨John, Patrica⟩, ⟨Robert, Jennifer⟩,
⟨Michael, William⟩, ⟨William, Michael⟩ }

is-wife-of ≝ { ⟨Mary, James⟩,
⟨Patrica, John⟩, ⟨Jennifer, Robert⟩,
⟨Linda, Elizabeth⟩, ⟨Elizabeth, Linda⟩ }

is-spouse-of ≝ is-husband-of ∪ is-wife-of

Relation Properties

  • Reflexive: ∀a∈∪∪R (a R a)
  • Symmetric: ∀a,b∈∪∪R (a R b) ⟺ (b R a)
  • Antisymmetric:
    ∀a,b∈∪∪R (a R b) ∧ (b R a) ⟹ (a = b)
  • Transitive: ∀a,b,c∈∪∪R (a R b) ∧ (b R c) ⟹ (a R c)
  • Connex: ∀a,b∈∪∪R (a R b) ∨ (b R a)

Power Sets and Pairs

∀a,b,c (b∈a ∧ c∈a) ⟹ ({b} ⊆ a) ∧ ({b, c} ⊆ a) ⟹ {{b}, {b, c}}⊆℘a ⟹ ⟨b, c⟩⊆℘a ⟨b, c⟩∈℘℘a

All possible ordered pairs of members of a set are themselves members of the power set of the power set of that set.

Cartesian Product

∀a,b (a b) ≝ { ⟨c, d⟩ ∈ ℘℘∪{ a, b } : c∈a ∧ d∈b }

We can use pairing, union and power set axioms to construct all possible ordered pairs from two sets.

{ A, 2, 3, 4, 5, 6, 7, 8, 9, 10, J, Q, K }
{ ♠, , ♣, } = { ⟨A, ♠⟩, ⟨2, ♠⟩, ⟨3, ♠⟩, ⟨4, ♠⟩, ... }

Extended Cartesian Product

∀a,b,c (a b c) ≝
{ ⟨d, e, f⟩ ∈ ℘℘∪{a, b, c} : d∈a ∧ e∈b ∧ f∈c }

Cartesian products can make tuples

{ ♠, , ♣, } { 😃, 😞 } { □, △ } =
{ ⟨♠, 😃, □⟩, ⟨♠, 😃, △⟩, ⟨♠, 😞, □⟩, ⟨♠, 😞, △⟩,
, 😃, □⟩, ⟨, 😃, △⟩, ⟨, 😞, □⟩, ⟨, 😞, △⟩,
⟨♣, 😃, □⟩, ⟨♣, 😃, △⟩, ⟨♣, 😞, □⟩, ⟨♣, 😞, △⟩,
, 😃, □⟩, ⟨, 😃, △⟩, ⟨, 😞, □⟩, ⟨, 😞, △⟩ }

Relations are Subsets

R ⊆ Domain(R) ⊛ Range(R)

We can use the axiom schema of specification to define relations over large or even infinite sets.

Equivalence

An equivalence relation has three properties:

  • Reflexive: ∀a ∈ ∪∪ (a a)
  • Symmetric: ∀a,b ∈ ∪∪ (a b) ⟺ (b a)
  • Transitive: ∀a,b,c ∈ ∪∪
    (a b ∧ b c) ⟹ (a c)

This partitions a set into classes that don't overlap.

Ordering

An ordering of a set has the following properties:

  • Reflexive: ∀a ∈ ∪∪ (a a)
  • Antisymmetric: ∀a,b ∈ ∪∪
    (a b) ∧ (b a) ⟹ (a ≑ b)
  • Transitive: ∀a,b,c ∈ ∪∪
    (a b) ∧ (b c) ⟹ (a c)

Total Order

A total order is a partial order with connex:

  • Reflexive, Antisymmetric and Transitive
  • Connex: ∀a,b ∈ ∪∪ (a b) ∨ (b a)

This organizes a set into concentric rings.

Equality: Equivalence

∀a ∃{ ⟨b, c⟩∈a⊛a : b = c }

Set equality can be used to construct an equivalence relation over any set: this is always reflexive, symmetric and transitive.

Equality: Reflexive

∀a (a = a)

Any set contains all the members in itself and vice versa.

Equality: Symmetric

∀a,b (a = b) ⟺ (b = a)

  • (a = b) ⟹ (P(a) ⟺ P(b)) :: Leibniz's Law
  • (a = b) ⟹ (P(b) ⟺ P(a)) :: Symmetric Biconditional
  • (a = b) ⟹ (b = a) :: Leibniz's Law

Equality: Transitive

∀a,b,c (a = b) ∧ (b = c) ⟹ (a = c)

  • (a = b) ∧ (b = c) ⟹ (P(a) ⟺ P(b)) ∧ (P(b) ⟺ P(c)) :: Leibniz's Law
  • (a = b) ∧ (b = c) ⟹ (P(a) ⟺ P(c)) :: Transitive Biconditional
  • (a = b) ∧ (b = c) ⟹ (a = c) :: Leibniz's Law

Subsets: Ordering

∀a ∃{ ⟨b, c⟩∈a⊛a : b ⊆ c }

Subset relationships can be used to construct an ordering over any set. This is always reflexive, antisymmetric and transitive.

Not always connex: {{♠, }, {♠}, {♠, }}

Subset: Reflexive

∀a (a ⊆ a)

  • ∀b (b ⊆ a) ⟺ (b ∪ a) = a :: Definition Subset
  • ∀b b ∈ a ⟹ b ∈ (a ∪ a) :: Axiom of Union
  • ∀b b ∉ a ⟹ ¬(b ∈ (a ∪ a)) :: Axiom of Union
  • ∀b b ∈ (a ∪ a) ⟹ b ∈ a :: Contrapositive
  • ∀a (a ∪ a) = a :: Axiom of Extensionality
  • ∀a (a ⊆ a) :: Definition Subset

Subset: Antisymmetric

∀a,b (a ⊆ b) ∧ (b ⊆ a) ⟹ (a = b)

  • (a ⊆ b) ⟹ ∀c [(c ∈ a) ⟹ (c ∈ b)] :: Subset/Union
  • (b ⊆ a) ⟹ ∀c [(c ∈ b) ⟹ (c ∈ a)] :: Subset/Union
  • (a ⊆ b) ∧ (b ⊆ a) ⟹ ∀c [ (c ∈ b) ⟺ (c ∈ a) ] :: Biconditional
  • (a ⊆ b) ∧ (b ⊆ a) ⟹ (a = b) :: Extensionality

Subset: Transitive

∀a,b,c (a ⊆ b) ∧ (b ⊆ c) ⟹ (a ⊆ c)

  • (a ⊆ b) ⟹ ∀d (d∈a ⟹ d∈b) :: Subset/Union
  • (b ⊆ c) ⟹ ∀d (d∈b ⟹ d∈c) :: Subset/Union
  • (a ⊆ b) ∧ (b ⊆ c) ⟹
    ∀d (d∈a ⟹ d∈c) :: Subset/Union
  • (a ⊆ b) ∧ (b ⊆ c) ⟹ (a ⊆ c) :: Subset/Union

Function Junction

A function is a special kind of relation which maps every member of its domain to exactly one member of its range.

Functions

(f : D ⟶ R) ≝ ∀a∈D (∃b∈R ⟨a, b⟩∈f) ∧
(∀b,c∈R (⟨a, b⟩∈f ∧ ⟨a, c⟩∈f) ⟹ b ≑ c)

  • Entire domain mapped: ∀a∈D ∃b∈R ⟨a, b⟩∈f
  • Unique mapping: ∀a∈D ∀b,c∈R
    (⟨a, b⟩∈f ∧ ⟨a, c⟩∈f) ⟹ b = c
  • f(a) = b ⟺ ⟨a, b⟩∈f

Meet the Jections

Given function f : D ⟶ R

  • Injection (one-to-one): Each member of the domain maps to a distinct member of the range
    ∀a,b∈D (f(a) = f(b)) ⟹ (a = b)
  • Surjection (onto): Each member of the range is mapped from at least one member of domain
    ∀b∈R ∃a∈D f(a) = b

Back It Up

Given function f : D ⟶ R

  • Bijection: both an injection and a surjection
  • Inverse: f-1 : R ⟶ D
    ∀a∈D,b∈R (f(a) = b) ⟺ (f-1(b) = a)

Multivariable Functions

A function can have more than one argument.

  • f : D1 ⊛ D2 ⟶ R ⟹ f(a1, a2) = b
  • f : D1 ⊛ D2 ⊛ D3 ⟶ R ⟹ f(a1, a2, a3) = b
  • f : D1 ⊛ D2 ⊛ ... ⟶ R ⟹ f(a1, a2, ...) = b

This is the same as having a domain consisting of ordered pairs or tuples.

Multivariable Functions

Function can return ordered pairs or tuples.

  • f : D ⟶ R1 ⊛ R2 f(a) = ⟨b1, b2
  • f : D ⟶ R1 ⊛ R2 ⊛ R3 f(a) = ⟨b1, b2, b3
  • f : D ⟶ R1 ⊛ R2 ⊛ ... ⟹ f(a) = ⟨b1, b2, ...⟩

This is the same as having a range consisting of ordered pairs or tuples.

Cardinality

Cardinality is a property of every set: any pair of sets for which a bijection exists have the same cardinality.

Natural Numbers ℕ

a+ ≝ ∪{a, {a, a}} = a ∪ {a}

ℕ ≝ { a : (a = {}) ∨ ∃b∈ℕ a = b+ }

Natural numbers are an effective way to represent discrete and indivisible quantities.

Natural Numbers ℕ: Examples

Peano 1889 CE and Von Neumann 1923 CE

  • 0 ≝ {}
  • 1 ≝ 0+ = {0} = {{}}
  • 2 ≝ 1+ = {0, 1} = {{}, {{}}}
  • 3 ≝ 2+ = {0, 1, 2} = {{}, {{}}, {{}, {{}}}}
  • 4 ≝ 3+ = {0, 1, 2, 3} =
    {{}, {{}}, {{}, {{}}}, {{{}, {{}}, {{}, {{}}}}}}

Natural Numbers ℕ: Examples

  • 5 ≝ 4+ = {0, 1, 2, 3, 4}
  • 6 ≝ 5+ = {0, 1, 2, 3, 4, 5}
  • 7 ≝ 6+ = {0, 1, 2, 3, 4, 5, 6}
  • 8 ≝ 7+ = {0, 1, 2, 3, 4, 5, 6, 7}
  • 9 ≝ 8+ = {0, 1, 2, 3, 4, 5, 6, 7, 8}

Natural Numbers ℕ: Decimal

Increment the digit to the left and then replace 9 with 0. (Unknown Indian mathematicians ~500 CE)

  • 10 ≝ 9+ = {0, 1, 2, 3, 4, 5, 6, 7, 8, 9}
  • 11 ≝ 10+ = {0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10}
  • ...
  • 19 ≝ 18+ = {0, 1, ..., 18}
  • 20 ≝ 19+ = {0, 1, ..., 19}
  • ...

Successor Subsets

∀a∈ℕ a ⊆ a+

  • a ∪ (a ∪ {a}) = (a ∪ a) ∪ {a} :: Associative Union
  • a ∪ (a ∪ {a}) = a ∪ {a} :: Axiom of Union
  • a ∪ a+ = a+ :: Definition Successor
  • a ⊆ a+ :: Definition Subset

Successor Containment

∀a,b∈ℕ (a ∈ b) ⟹ (a ∈ b+)

  • (a ∈ b) ⟹ a ∈ (b ∪ {b}) :: Axiom of Union
  • (a ∈ b) ⟹ a ∈ b+ :: Definition Successor

Equality ℕ

∀a,b∈ℕ (a = b) ≝ (a = b)

Every natural number is a distinct set. Set equality is an equivalence relation (reflexive, symmetric and transitive) so we'll use it to compare them.

Order ℕ

Every natural number contains its predecessors, so the subset predicate is a good way to define order.

∀a,b∈ℕ (a b) ≝ (a ⊆ b)
(a b) ≝ (b ⊆ a)
(a < b) ≝ ¬(a b)
(a > b) ≝ ¬(a b)

Order ℕ: Partial Order

Subset relations are always reflexive, antisymmetric and transitive so they always form a partial order. Over the natural numbers this predicate is also connex which makes it a total order. We must prove that.

Induction

Induction allows us to prove something for a set like the natural numbers by showing that it's true for some base case (usually 0) and that when it's true for some value it follows that the successor also has the same property.

Order ℕ: Connex

∀a,b∈ℕ (a ⊆ b) ∨ (b ⊆ a)

  • ∀a ({} ⊆ a) :: Subset Identity
  • ∀a∈ℕ (0 ⊆ a) :: Definition 0
  • ∀b∈ℕ (0 ⊆ b) ∨ (b ⊆ 0) :: Base

Order ℕ: Connex

∀a,b∈ℕ (a ⊆ b) ∨ (b ⊆ a)

  • ∃a∈ℕ ∀b∈ℕ (a ⊆ b) ∨ (b ⊆ a) :: Assumption
  • ∀a,b∈ℕ (a ⊆ b) ∨ (b ⊆ a) ⟹ (a+ ⊆ b) ∨ (b ⊆ a+)
    • ∀a,b∈ℕ (a ⊆ b) ⟹ (a+ ⊆ b) ∨ (b ⊆ a+)
    • ∀a,b∈ℕ (b ⊆ a) ⟹ (a+ ⊆ b) ∨ (b ⊆ a+)
  • ∀a∈ℕ a ⊆ a+ :: Successor Containment
  • ∀a,b∈ℕ (b ⊆ a) ∧ (a ⊆ a+) ⟹ (b ⊆ a+) :: Transitive Subsets

Trichotomy ℕ

∀a,b∈ℕ (a = b) ∨ (a < b) ∨ (b < a)

Natural Numbers ℕ

  • a+ ≝ ∪{a, {a, a}} = a ∪ {a}
  • ℕ ≝ { a : (a = {}) ∨ ∃b∈ℕ a = b+ }
  • Equality: ∀a,b∈ℕ (a = b) ≝ (a = b)
  • Total Order: ∀a,b∈ℕ (a ≤ b) ≝ (a ⊆ b)

Addition ℕ

Let's define addition which maps two natural numbers to another natural number (Grassman 1861 CE, Peano 1889 CE):

+: ℕ⊛ℕ ⟶ ℕ

  • Base: ∀a∈ℕ a + 0 ≝ a
  • Step: ∀a,b∈ℕ a + b+ ≝ (a + b)+

Addition ℕ Example: 3 + 2

  • 3 + 2 = 3 + 1+ :: Definition of 2
  • 3 + 2 = 3 + (0+)+ :: Definition of 1
  • 3 + 2 = (3 + 0+)+ :: Step +
  • 3 + 2 = ((3 + 0)+)+ :: Step +
  • 3 + 2 = ((3)+)+ :: Base +
  • 3 + 2 = 4+ :: Definition of 4
  • 3 + 2 = 5 :: Definition of 5

Addition ℕ: Closed

∀a,b∈ℕ a + b ∈ℕ

  • Base: ∀a∈ℕ a + 0 ≝ a
  • Step: ∀a,b∈ℕ a + b+ ≝ (a + b)+

Addition is constructed entirely from successor operations, which are closed over the natural numbers. Therefore addition is closed.

Addition ℕ: Identity

∀a∈ℕ a + 0 = a = 0 + a

  • ∀a∈ℕ a + 0 = a :: Base +
  • 0∈ℕ ⟹ 0 + 0 = 0 :: Base +
  • ∃a∈ℕ 0 + a = a :: Assumption
  • 0 + a+ = (0 + a)+ :: Step +
  • 0 + a+ = a+ :: Induction

Addition ℕ: Associative

∀a,b,c∈ℕ (a + b) + c = a + (b + c)

  • (a + b) + 0 = a + b = a + (b + 0) :: Base +
  • ∃c∈ℕ ∀a,b∈ℕ : (a + b) + c = a + (b + c)
  • (a + b) + c+ = ((a + b) + c)+ :: Step +
  • (a + b) + c+ = (a + (b + c))+ :: Induction
  • (a + b) + c+ = a + (b + c)+ :: Step + (Reverse)
  • (a + b) + c+ = a + (b + c+) :: Step + (Reverse)

Addition ℕ: Commutative

∀a,b∈ℕ a + b = b + a

We will prove two simpler results (lemmas) and use them to prove that addition is commutative

  • Successor + 1: ∀a∈ℕ a+ = a + 1
  • Commutative 1: ∀a∈ℕ a + 1 = 1 + a

Addition ℕ: Successor + 1

∀a∈ℕ a+ = a + 1

  • a+ = (a + 0)+ :: Base +
  • a+ = a + (0)+ :: Step +
  • a+ = a + 1 :: Definition of 1

Addition ℕ: Commutative 1

∀a∈ℕ a + 1 = 1 + a

  • 0 + 1 = 1 + 0 :: Identity +
  • ∃a∈ℕ : a + 1 = 1 + a :: Assumption
  • a+ + 1 = a+ + 0+ :: Definition 1
  • a+ + 1 = (a+ + 0)+ :: Step +
  • a+ + 1 = (a+)+ :: Base +
  • a+ + 1 = (a + 1)+ :: Successor + 1
  • a+ + 1 = (1 + a)+ :: Induction
  • a+ + 1 = 1 + a+ :: Step +

Addition ℕ: Commutative

∀a,b∈ℕ a + b = b + a

  • ∃b∈ℕ ∀a∈ℕ : a + b = b + a :: Assumption
  • a + b+ = a + (b + 1) :: Successor + 1
  • a + b+ = (a + b) + 1 :: Associativity
  • a + b+ = (b + a) + 1 :: Induction
  • a + b+ = b + (a + 1) :: Associativity
  • a + b+ = b + (1 + a) :: Communtative 1
  • a + b+ = (b + 1) + a :: Associativity
  • a + b+ = b+ + a :: Successor + 1

Addition ℕ

  • Definition:
    • Base: ∀a∈ℕ a + 0 ≝ a
    • Step: ∀a,b∈ℕ a + b+ ≝ (a + b)+
  • Closed: ∀a,b∈ℕ a + b ∈ℕ
  • Identity: ∀a∈ℕ a + 0 = a = 0 + a
  • Associative: ∀a,b,c∈ℕ (a + b) + c = a + (b + c)
  • Commutative: ∀a,b∈ℕ a + b = b + a

Multiplication ℕ

Let's define multiplication which maps two natural numbers to another natural number (Grassman 1861 CE, Peano 1889 CE):

×: ℕ⊛ℕ ⟶ ℕ

  • Base: ∀a∈ℕ a × 0 ≝ 0
  • Step: ∀a,b∈ℕ a × b+ ≝ a + (a × b)

Multiplication ℕ Example: 3 × 2

  • 3 × 2 = 3 × 1+ :: Definition of 2
  • 3 × 2 = 3 × (0+)+ :: Definition of 1
  • 3 × 2 = 3 + (3 × 0)+ :: Step ×
  • 3 × 2 = 3 + (3 + (3 × 0)) :: Step ×
  • 3 × 2 = 3 + (3 + 0) :: Base ×
  • 3 × 2 = 3 + 3 :: Addition
  • 3 × 2 = 6 :: Addition

Multiplication ℕ: Closed

∀a,b∈ℕ a × b ∈ℕ

  • Base: ∀a∈ℕ a × 0 ≝ 0
  • Step: ∀a,b∈ℕ a × b+ ≝ a + (a × b)

Multiplication is constructed entirely from successor operations and addition, both of which are closed for natural numbers. Therefore multiplication is closed.

Multiplication ℕ: Identity

∀a∈ℕ a × 1 = a = 1 × a

Right identity:

  • a × 1 = a × 0+ :: Definition of 1
  • a × 1 = a + (a × 0) :: Step ×
  • a × 1 = a + 0 :: Base ×
  • a × 1 = a :: Addition ℕ

Multiplication ℕ: Identity

∀a∈ℕ a × 1 = a = 1 × a

Left identity:

  • 1 × 0 = 0 :: Base ×
  • ∃a∈ℕ 1 × a = a :: Assumption
  • 1 × a+ = 1 + (1 × a) :: Step ×
  • 1 × a+ = 1 + a :: Induction
  • 1 × a+ = a+ :: Addition ℕ

Multiplication ℕ: Distributive

When we multiply a sum we can push the product through to each term.

∀a,b,c∈ℕ ((a + b) × c = (a × c) + (b × c)) ∧
(c × (a + b) = (c × a) + (c × b))

  • Right: ∀a,b,c∈ℕ ((a + b) × c = (a × c) + (b × c))
  • Left: ∀a,b,c∈ℕ (c × (a + b) = (c × a) + (c × b))

Multiplication ℕ: Distributive

∀a,b,c∈ℕ (a + b) × c = (a × c) + (b × c)

∀a,b∈ℕ (a + b) × 0 = (a × 0) + (b × 0)

  • (a + b) × 0 = 0 :: Base ×
  • (a + b) × 0 = 0 + 0 :: Addition ℕ
  • (a + b) × 0 = (a × 0) + (b × 0) :: Base ×

Multiplication ℕ: Distributive

  • (a + b) × 0 = (a × 0) + (b × 0)
  • ∃c∈ℕ ∀a,b∈ℕ
    ((a + b) × c = (a × c) + (b × c)) :: Assumption
  • (a + b) × c+ = (a + b) + ((a + b) × c) :: Step ×
  • (a + b) × c+ = (a + b) + ((a × c) + (b × c)) :: Induction
  • (a + b) × c+ = (a + (a × c)) + (b + (b × c)) :: ℕ +
  • (a + b) × c+ = (a × c+) + (b × c+) :: Step × (Reverse)

Multiplication ℕ: Distributive

∀a,b,c∈ℕ c × (a + b) = (c × a) + (c × b)

∀a,c∈ℕ c × (a + 0) = (c × a) + (c × 0)

  • c × (a + 0) = c × a :: Addition ℕ
  • c × (a + 0) = (c × a) + 0 :: Addition ℕ
  • c × (a + 0) = (c × a) + (c × 0) :: Base ×

Multiplication ℕ: Distributive

  • c × (a + 0) = (c × a) + (c × 0)
  • ∃b∈ℕ ∀a,c∈ℕ
    c × (a + b) = (c × a) + (c × b) :: Assumption
  • c × (a + b+) = c × (a + b)+ :: Addition ℕ
  • c × (a + b+) = c + (c × (a + b)) :: Step ×
  • c × (a + b+) = c + ((c × a) + (c × b)) :: Induction
  • c × (a + b+) = (c × a) + (c + (c × b)) :: Addition ℕ
  • c × (a + b+) = (c × a) + (c × b+) :: Step ×

Multiplication ℕ: Associative

∀a,b,c∈ℕ (a × b) × c = a × (b × c)

∀a,b∈ℕ (a × b) × 0 = a × (b × 0)

  • (a × b) × 0 = 0 :: Base ×
  • (a × b) × 0 = a × 0 :: Base ×
  • (a × b) × 0 = a × (b × 0) :: Base ×

Multiplication ℕ: Associative

  • (a × b) × 0 = a × (b × 0)
  • ∃c∈ℕ ∀a,b∈ℕ : (a × b) × c = a × (b × c) :: Assumption
  • (a × b) × c+ = (a × b) + ((a × b) × c) :: Step ×
  • (a × b) × c+ = (a × b) + (a × (b × c)) :: Induction
  • (a × b) × c+ = a × (b + (b × c)) :: Distributive × (R)
  • (a × b) × c+ = a × (b × c+) :: Step ×

Multiplication ℕ: Commutative

∀a,b∈ℕ a × b = b × a

∀a,b∈ℕ a × 0 = 0 × a

  • 0 × 0 = 0 × 0 :: Reflexive Equality
  • ∃a∈ℕ 0 × a = a × 0 :: Assumption
  • 0 × a+ = 0 + (0 × a) :: Step ×
  • 0 × a+ = 0 + (a × 0) :: Induction
  • 0 × a+ = 0 + 0 = 0 :: Base ×
  • 0 × a+ = a+ × 0 :: Base ×

Multiplication ℕ: Commutative

  • a × 0 = 0 × a
  • ∃b∈ℕ ∀a∈ℕ : a × b = b × a :: Assumption
  • a × b+ = a + (a × b) :: Step ×
  • a × b+ = a + (b × a) :: Induction
  • a × b+ = (b × a) + a :: Addition ℕ
  • a × b+ = (b × a) + (1 × a) :: Identity
  • a × b+ = (b + 1) × a :: Distributive
  • a × b+ = b+ × a :: Successor + 1

Multiplication ℕ

  • Definition:
    • Base: ∀a∈ℕ a × 0 ≝ 0
    • Step: ∀a,b∈ℕ a × b+ ≝ a + (a × b)
  • Closed: ∀a,b∈ℕ a × b ∈ℕ
  • Identity: ∀a∈ℕ a × 1 = a = 1 × a
  • Associative: ∀a,b,c∈ℕ (a × b) × c = a × (b × c)
  • Commutative: ∀a,b∈ℕ a × b = b × a
  • Distributive: ((a + b) × c = (a × c) + (b × c)) ∧
    (c × (a + b) = (c × a) + (c × b))

Division ℕ

∀a,b∈ℕ a|b ≝ (a ≠ 0) ∧ (∃c∈ℕ a × c = b)

A non-zero natural number divides another if and only if there's a third that can be multiplied by the first to get the second.

Division ℕ: Examples

  • 2 × 3 = 6 ⟹ 2|6 ∧ 3|6
  • 2 × 6 = 12 ⟹ 2|12 ∧ 6|12
  • 3 × 4 = 12 ⟹ 3|12 ∧ 4|12
  • ∀a∈ℕ (a × 1 = a) ⟹ 1|a
  • ∀a∈ℕ (a × 1 = a) ∧ (a ≠ 0) ⟹ a|a
  • ∀a∈ℕ (a × 0 = 0) ∧ (a ≠ 0) ⟹ a|0

Irreducible ℕ

A natural number is irreducible if it can be divided only by one and itself.

∀a∈ℕ (a is irreducible) ≝
∀b,c∈ℕ (a = b × c) ⟹ (b = 1 ∨ c = 1)

Prime ℕ

We say that a natural number greater than one is prime it divides at least one of the parts of any number it divides.

∀a∈ℕ (a is prime) ≝
(a > 1) ∧ (∀b,c∈ℕ a|(b × c) ⟹ (a|b ∨ a|c))

No Zero Divisors ℕ

No non-zero natural number multiplied by another non-zero natural number is equal to zero.

∀a∈ℕ (a ≠ 0) ⟹ ∄b∈ℕ a × b = 0

  • (1 × 1 = 1) ∧ (1 ≠ 0)
  • ∃a∈ℕ a × 1 ≠ 0 :: Assumption
  • a+ × 1 = 1 + (a × 1)

Fundamental Theorem of Arithmetic

Natural numbers greater than one can be factored into a unique tuple of ordered prime numbers.

∀a∈ℕ (a > 1) ⟹ ∃⟨a0, a1, ..., an
IS-PRIME(ai) ∧ (ai ≤ ai + 1) ∧ (1 × a0 × a1 × ... × an = a)

FToA: Examples

  • 2 = 1 × 2
  • 6 = 1 × 2 × 3
  • 110 = 1 × 2 × 5 × 11

FToA: Proof

  • Base: 2 = 1 × 2
  • ∀a∈ℕ FToA(a) ⟹ FToA(a)+
    • IS-PRIME(a)+ ⟹ 1 × a+ = a
    • ¬IS-PRIME(a)+ ⟹ ∃b,c∈ℕ (a = b × c) ⟹

Integers ℤ

ℤ ≝ { ⟨a, b⟩∈ℕ⊛ℕ }

[a - b] ≝ { ⟨c1, c2⟩∈ℕ⊛ℕ : (a + c2 = c1 + b) }

Integers extend the natural numbers. They introduce inverses for addition and negative numbers which can represent concepts like debt.

Integers ℤ: Equality

∀⟨a1, a2⟩,⟨b1, b2⟩∈ℤ (⟨a1, a2⟩ = ⟨b1, b2⟩) ≝
(a1 + b2 = a2 + b1)

  • Reflexive: ∀⟨a1, a2⟩∈ℤ a1 + a2 = a2 + a1
  • Symmetric: ∀⟨a1, a2⟩,⟨b1, b2⟩∈ℤ
    a1 + b2 = b1 + a2 ⟺ b1 + a2 = a1 + b2
  • Transitive: ∀⟨a1, a2⟩,⟨b1, b2⟩,⟨c1, c2⟩∈ℤ
    (a1 + b2 = a2 + b1) ∧ (b1 + c2 = b2 + c1) ⟺
    (a1 + c2 = a2 + c1)

Successor Equality

∀a,b∈ℕ ⟨a, b⟩ = ⟨a), SCCR(b+

  • a + b) = SCCR(a+ + b :: Integer Equality
  • a + (b + 1) = (a + 1) + b :: Successor + 1
  • (a + b) + 1 = (a + b) + 1 :: Arithmetic ℕ

Every integer has a simplest form, which has at least one member that is natural number zero.

Integers ℤ: Order

∀⟨a1, a2⟩,⟨b1, b2⟩∈ℤ (⟨a1, a2⟩ ≤ ⟨b1, b2⟩) ≝
(a1 + b2 a2 + b1)

  • Reflexive: (⟨a1, a2⟩ ≤ ⟨a1, a2⟩) ⟹ (a1 + a2 a2 + a1)
  • Antisymmetric: (⟨a1, a2⟩ ≤ ⟨b1, b2⟩) ∧
    (⟨b1, b2⟩ ≤ ⟨a1, a2⟩) ⟹ (⟨a1, a2⟩ = ⟨b1, b2⟩)
  • Transitive: (⟨a1, a2⟩ ≤ ⟨b1, b2⟩) ∧
    (⟨b1, b2⟩ ≤ ⟨c1, c2⟩) ⟹ (⟨a1, a2⟩ ≤ ⟨c1, c2⟩)
  • Connex: (⟨a1, a2⟩ ≤ ⟨b1, b2⟩) ∨ (⟨b1, b2⟩ ≤ ⟨a1, a2⟩)

Accentuate the Positive

∀a∈ℤ ∃a1,a2∈ℕ a = ⟨a1, a2

  • a is Zero ≝ (a1 = a2)
    • ⟨a1, a2⟩ = ⟨a1, a1 = ⟨0, 0⟩ = 0
    • (a1 + 0) = a1 = (0 + a1)
  • a is Positive ≝ (a1 > a2)
  • a is Non-Negative ≝ (a1 ≥ a2)
  • a is Negative ≝ (a1 < a2)
  • a is Non-Positive ≝ (a1 ≤ a2)

Integers ℤ: Examples

  • [0] ∋ ⟨0, 0⟩ = {{0}, {0, 0}} = {{{}}}
  • [1] ∋ ⟨1, 0⟩ = {{1}, {1, 0}} = {{{{}}}, {{{}}, {}}}
  • [2] ∋ ⟨2, 0⟩ = {{2}, {2, 0}} =
    {{{{{}}, {}}}, {{{{}}, {}}, {}}}
  • [-1] ∋ ⟨0, 1⟩ = {{0}, {0, 1}} = {{{}}, {{}, {{}}}}
  • [-2] ∋ ⟨0, 1⟩ = {{0}, {0, 2}} = {{{}}, {{}, {{}, {{}}}}}

Integers ℤ: Examples

  • [3] ∋ ⟨3, 0⟩ = {{3}, {3, 0}} = {{{{}, {{}}, {{}, {{}}}}}, {{{}, {{}}, {{}, {{}}}}, {}}}
  • [3] ∋ ⟨5, 2⟩ = {{5}, {5, 2}} = {{{{}, {{}}, {{{}, {{}}}}, {{{}, {{}}, {{{}, {{}}}}}}, {{{}, {{}}, {{{}, {{}}}}, {{{}, {{}}, {{{}, {{}}}}}}}}}}, {{{}, {{}}, {{{}, {{}}}}, {{{}, {{}}, {{{}, {{}}}}}}, {{{}, {{}}, {{{}, {{}}}}, {{{}, {{}}, {{{}, {{}}}}}}}}}, {{{}, {{}}}}}} (Notice: 5 + 0 = 3 + 2)

Integers ℤ

  • ℤ ≝ { ⟨a, b⟩∈ℕ⊛ℕ }
  • Equality: ∀⟨a1, a2⟩,⟨b1, b2⟩∈ℤ
    (⟨a1, a2⟩ = ⟨b1, b2⟩) ≝ (a1 + b2 = a2 + b1)
  • Total Order: ∀⟨a1, a2⟩,⟨b1, b2⟩∈ℤ
    (⟨a1, a2⟩ ≤ ⟨b1, b2⟩) ≝ (a1 + b2 a2 + b1)

Addition ℤ

Let's define addition which maps two integers to another integer.

+: ℤ⊛ℤ ⟶ ℤ

∀⟨a1, a2⟩,⟨b1, b2⟩∈ℤ
⟨a1, a2⟩ + ⟨b1, b2⟩ ≝ ⟨a1 + b1, a2 + b2

Addition ℤ Example: 3 + 2

  • 3 + 2 = ⟨3, 0⟩ + ⟨5, 3⟩
  • 3 + 2 = ⟨3 + 5, 0 + 3⟩
  • 3 + 2 = ⟨8, 3⟩
  • 3 + 2 = ⟨5, 0⟩ (Because 8 + 0 = 5 + 3)
  • 3 + 2 = 5

Addition ℤ Example: 3 + (-2)

  • 3 + (-2) = ⟨3, 0⟩ + ⟨0, 2⟩
  • 3 + (-2) = ⟨3 + 0, 0 + 2⟩
  • 3 + (-2) = ⟨3, 2⟩
  • 3 + (-2) = ⟨1, 0⟩ (3 + 0 = 1 + 2)
  • 3 + (-2) = 1

Addition ℤ: Isomorphic

∀ a,b∈ℕ ⟨a, 0⟩ + ⟨b, 0⟩ = ⟨a + b, 0 + 0⟩ = ⟨a + b, 0⟩

Adding any two integers that match natural numbers results in the natural number their sum would match.

Addition ℤ: Equivalent

∀ a,b,c∈ℤ (a = b) ⟹ ((a + c) = (b + c))

  • (a = b) ⟹ (a1 + b2 = a2 + b1) :: Equality ℤ
  • a1 + b2 + c1 + c2 = a2 + b1 + c1 + c2 :: Arithmetic ℕ
  • a1 + c1 + b2 + c2 = a2 + c2 + b1 + c1 :: Arithmetic ℕ
  • ⟨a1 + c1, a2 + c2⟩ = ⟨b1 + c1, b2 + c2⟩ :: Definition ℤ
  • ⟨a1, a2⟩ + ⟨c1, c2⟩ = ⟨b1, b2⟩ + ⟨c1, c2⟩ :: Addition ℤ
  • (a = b) ⟹ ((a + c) = (b + c))

Addition ℤ: Closed

∀a,b∈ℤ a + b ∈ℤ

∀⟨a1, a2⟩,⟨b1, b2⟩∈ℤ
⟨a1, a2⟩ + ⟨b1, b2⟩ ≝ ⟨a1 + b1, a2 + b2

Addition for integers is constructed entirely from natural number addition. The result of adding two integers is an ordered pair consisting of sums of natural numbers.

Addition ℤ: Identity

∀a∈ℤ a + 0 = a = 0 + a

  • ⟨a1, a2⟩ + ⟨0, 0⟩ = ⟨a1 + 0, a2 + 0⟩ :: Definition +
  • ⟨a1, a2⟩ + ⟨0, 0⟩ = ⟨a1, a2⟩ :: Addition ℕ
  • ⟨a1, a2⟩ + ⟨0, 0⟩ = ⟨0 + a1, 0 + a2⟩ :: Addition ℕ
  • ⟨a1, a2⟩ + ⟨0, 0⟩ = ⟨0, 0⟩ + ⟨a1, a2⟩ :: Definition +

Addition ℤ: Associative

∀a,b,c∈ℤ (a + b) + c = a + (b + c)

  • (⟨a1, a2⟩ + ⟨b1, b2⟩) + ⟨c1, c2⟩ =
    ⟨(a1 + b1) + c1, (a2 + b2) + c2)⟩ :: Definition +
  • (⟨a1, a2⟩ + ⟨b1, b2⟩) + ⟨c1, c2⟩ =
    ⟨a1 + (b1 + c1), a2 + (b2 + c2)⟩ :: Addition ℕ
  • (⟨a1, a2⟩ + ⟨b1, b2⟩) + ⟨c1, c2⟩ =
    ⟨a1, a2⟩ + (⟨b1, b2⟩ + ⟨c1, c2)⟩ :: Definition +

Addition ℤ: Commutative

∀a,b∈ℤ a + b = b + a

  • ⟨a1, a2⟩ + ⟨b1, b2⟩ = ⟨a1 + b1, a2 + b2⟩ :: Definition
  • ⟨a1, a2⟩ + ⟨b1, b2⟩ = ⟨b1 + a1, b2 + a2⟩ :: Addition ℕ
  • ⟨a1, a2⟩ + ⟨b1, b2⟩ = ⟨b1, b2⟩ + ⟨a1, a2⟩ :: Definition

Addition ℤ: Inverses

∀a∈ℤ ∃(-a)∈ℤ a + (-a) = 0

∀a=⟨a1, a2⟩∈ℤ (-a) ≝ ⟨a2, a1

  • ⟨a1, a2⟩ + ⟨a2, a1⟩ = ⟨a1 + a2, a2 + a1⟩ :: Definition
  • ⟨a1, a2⟩ + ⟨a2, a1⟩ = ⟨a1 + a2, a1 + a2⟩ :: Addition ℕ
  • ⟨a1, a2⟩ + ⟨a2, a1⟩ = 0

Addition ℤ

  • Definition: ∀⟨a1, a2⟩,⟨b1, b2⟩∈ℤ
    ⟨a1, a2⟩ + ⟨b1, b2⟩ ≝ ⟨a1 + b1, a2 + b2
  • Closed: ∀a,b∈ℤ a + b ∈ℤ
  • Identity: ∀a∈ℤ a + 0 = a = 0 + a
  • Associative: ∀a,b,c∈ℤ (a + b) + c = a + (b + c)
  • Commutative: ∀a,b∈ℤ a + b = b + a
  • Inverses: ∀a∈ℤ ∃(-a)∈ℤ a + (-a) = 0

Subtraction ℤ

Let's define subtraction which maps two integers to another integer:

-: ℤ⊛ℤ ⟶ ℤ

∀a,b∈ℤ a - b ≝ a + (-b)

Subtraction ℤ Example: 3 - 2

  • 3 - 2 = ⟨3, 0⟩ - ⟨2, 0⟩
  • 3 - 2 = ⟨3, 0⟩ + ⟨0, 2⟩
  • 3 - 2 = ⟨3 + 0, 0 + 2⟩
  • 3 - 2 = ⟨3, 2⟩
  • 3 - 2 = ⟨1, 0⟩ (Because 3 + 0 = 2 + 1)
  • 3 - 2 = 1

Subtraction ℤ Example: 3 - 5

  • 3 - 5 = ⟨3, 0⟩ - ⟨5, 0⟩
  • 3 - 5 = ⟨3, 0⟩ + ⟨0, 5⟩
  • 3 - 5 = ⟨3 + 0, 0 + 5⟩
  • 3 - 5 = ⟨3, 5⟩
  • 3 - 5 = ⟨0, 2⟩ (3 + 2 = 5 + 0)
  • 3 - 5 = -2

Subtraction ℤ: Closed

∀a,b∈ℤ a - b ∈ℤ

∀⟨a1, a2⟩,⟨b1, b2⟩∈ℤ
⟨a1, a2⟩ - ⟨b1, b2⟩ = ⟨a1 + b2, a2 + b1

Subtraction is closed because the result is always an ordered pair of natural numbers and therefore always another integer.

Subtraction ℤ: Right Identity

∀a∈ℤ a - 0 = a

  • ⟨a1, a2⟩ - ⟨0, 0⟩ = ⟨a1, a2⟩ + ⟨0, 0⟩ :: Definition -
  • ⟨a1, a2⟩ - ⟨0, 0⟩ = ⟨a1 + 0, a2 + 0⟩ :: Definition +
  • ⟨a1, a2⟩ - ⟨0, 0⟩ = ⟨a1, a2⟩ :: Addition ℕ

Subtracting zero from the right leaves the number on the left unchanged.

Subtraction ℤ: Left Identity?

∀a∈ℤ 0 - a ≟ a

  • ⟨0, 0⟩ - ⟨a1, a2⟩ = ⟨0, 0⟩ + ⟨a2, a1⟩ :: Definition -
  • ⟨0, 0⟩ - ⟨a1, a2⟩ = ⟨0 + a2, 0 + a1⟩ :: Definition +
  • ⟨0, 0⟩ - ⟨a1, a2⟩ = ⟨a2, a1⟩ :: Arithmetic ℕ
  • ⟨a1, a2⟩ ≠ ⟨a2, a1

Subtracting from zero gives the additive inverse, not the element itself, so there's no left identity.

Subtraction ℤ: Associative?

∀a,b,c∈ℤ (a - b) - c ≟ a - (b - c)

  • (a + (-b)) + (-c) ≟ a + -(b + (-c)) :: Definition -
  • (a + (-b)) + (-c) ≟ a + ((-b) + c) :: Distributive
  • (a + (-b)) + (-c) ≟ (a + (-b)) + c :: Associative +
  • -(a + (-b)) + (a + (-b)) + (-c) ≟
    -(a + (-b)) + (a + (-b)) + c :: Equality
  • -c ≟ c :: Inverses +

Subtraction is not generally associative.

Subtraction ℤ: Commutative?

∀a,b∈ℤ a - b ≟ b - a

  • a + (-b) ≟ b + (-a) :: Definition -
  • a + (-b) ≟ (-a) + b :: Associative +
  • a + (-b) ≟ -(a + (-b)) :: Distributive

Subtraction is not generally commutative. (Actually it's anticommutative: a - b = -(b - a))

Subtraction ℤ: Inverses

∀a∈ℤ a - a = 0

  • a - a = a + (-a) :: Definition -
  • a - a = 0 :: Inverses +

Every integer is its own subtractive inverse.

Subtraction ℤ

  • Definition: ∀a,b∈ℤ a - b ≝ a + (-b)
  • Closed: ∀a,b∈ℤ a - b ∈ℤ
  • Right Identity: ∀a∈ℤ a + 0 = a
  • Inverses: ∀a∈ℤ a - a = 0

Multiplication ℤ

Let's define multiplication which maps two integers to another integer:

×: ℤ⊛ℤ ⟶ ℤ

∀⟨a1, a2⟩,⟨b1, b2⟩∈ℤ ⟨a1, a2⟩ × ⟨b1, b2⟩ ≝
⟨(a1 × b1) + (a2 × b2), (a1 × b2) + (a2 × b1)⟩

Multiplication ℤ Example: 3 × 2

  • 3 × 2 = ⟨3, 0⟩ × ⟨2, 0⟩
  • 3 × 2 = ⟨(3 × 2) + (0 × 0), (3 × 0) + (0 × 2)⟩
  • 3 × 2 = ⟨6 + 0, 0 + 0⟩
  • 3 × 2 = ⟨6, 0⟩
  • 3 × 2 = 6

Multiplication ℤ Example: 3 × 2

  • 3 × 2 = ⟨3, 0⟩ × ⟨4, 2⟩
  • 3 × 2 = ⟨(3 × 4) + (0 × 2), (3 × 2) + (0 × 4)⟩
  • 3 × 2 = ⟨12 + 0, 6 + 0⟩
  • 3 × 2 = ⟨12, 6⟩
  • 3 × 2 = ⟨6, 0⟩ (Because 12 + 0 = 6 + 6)
  • 3 × 2 = 6

Multiplication ℤ Example: 3 × (-1)

  • 3 × (-1) = ⟨3, 0⟩ × ⟨0, 1⟩
  • 3 × (-1) = ⟨(3 × 0) + (0 × 1), (3 × 1) + (0 × 0)⟩
  • 3 × (-1) = ⟨0 + 0, 3 + 0⟩
  • 3 × (-1) = ⟨0, 3⟩
  • 3 × (-1) = (-3)

Multiplication ℤ Example: 3 × (-1)

  • 3 × (-1) = ⟨4, 1⟩ × ⟨1, 2⟩
  • 3 × (-1) = ⟨(4 × 1) + (1 × 2), (4 × 2) + (1 × 1)⟩
  • 3 × (-1) = ⟨4 + 2, 8 + 1⟩
  • 3 × (-1) = ⟨6, 9⟩
  • 3 × (-1) = ⟨0, 3⟩ (6 + 3 = 9 + 0)
  • 3 × (-1) = (-3)

Multiplication ℤ: Isomorphic

∀ a,b∈ℕ ⟨a, 0⟩ × ⟨b, 0⟩ =
⟨(a × b) + (0 × 0), (a × 0) + (b × 0)⟩ = ⟨a × b, 0⟩

Multiplying any two integers that match natural numbers results in the natural number their product would match.

Multiplication ℤ: Equivalent

∀ a,b,c∈ℤ (a = b) ⟹ ((a × c) = (b × c))

  • (a = b) ⟹ (a1 + b2 = a2 + b1) :: Equality ℤ
  • (a1 + b2) × c1 = (a2 + b1) × c1 :: Arithmetic ℕ
  • (a1 × c1) + (b2 × c1) =
    (a2 × c1) + (b1 × c1) :: Arithmetic ℕ
  • ...

Multiplication ℤ: Equivalent

∀ a,b,c∈ℤ (a = b) ⟹ ((a × c) = (b × c))

  • (a = b) ⟹ (b = a) ⟹ (b1 + a2 = b2 + a1) :: Equality ℤ
  • (a2 + b1 = a1 + b2) :: Arithmetic ℕ
  • (a2 + b1) × c2 = (a1 + b2) × c2 :: Arithmetic ℕ
  • (a1 × c2) + (b2 × c2) =
    (a2 × c2) + (b1 × c2) :: Arithmetic ℕ
  • ...

Multiplication ℤ: Equivalent

∀ a,b,c∈ℤ (a = b) ⟹ ((a × c) = (b × c))

  • ((a1 × c1) + (b2 × c1)) + ((a2 × c2) + (b1 × c2)) =
    ((a2 × c1) + (b1 × c1)) + ((a1 × c2) + (b2 × c2))
  • (a1 × c1) + (a2 × c2) + (b1 × c2) + (b2 × c1) = (a1 × c2) + (a2 × c1) + (b1 × c1) + (b2 × c2) :: Arithmetic
  • ⟨(a1 × c1) + (a2 × c2), (a1 × c2) + (a2 × c1)⟩ = ⟨(b1 × c1) + (b2 × c2), (b1 × c2) + (b2 × c1)⟩ :: Definition ℤ
  • ⟨a1, a2⟩ × ⟨c1, c2⟩ = ⟨b1, b2⟩ × ⟨c1, c2⟩ :: Addition ℤ
  • (a = b) ⟹ ((a × c) = (b × c))

Multiplication ℤ: Closed

∀a,b∈ℤ a × b ∈ℤ

∀⟨a1, a2⟩,⟨b1, b2⟩∈ℤ ⟨a1, a2⟩ × ⟨b1, b2⟩ ≝
⟨(a1 × b1) + (a2 × b2), (a1 × b2) + (a2 × b1)⟩

Multiplication for integers is constructed entirely from natural number addition and multiplication. The result of adding and multiplying natural numbers is an ordered pair consisting of natural numbers.

Multiplication ℤ: Identity

∀a∈ℤ a × 1 = a = 1 × a

  • ⟨a1, a2⟩ × ⟨1, 0⟩ = ⟨(a1 × 1) + (a2 × 0),
    (a1 × 0) + (a2 × 1)⟩ :: Definition ×
  • ⟨a1, a2⟩ × ⟨1, 0⟩ = ⟨a1 + 0, 0 + a2⟩ :: Multiplication ℕ
  • ⟨a1, a2⟩ × ⟨1, 0⟩ = ⟨a1, a2⟩ :: Addition ℕ
  • ⟨a1, a2⟩ × ⟨1, 0⟩ = ⟨0 + a1, a2 + 0⟩ :: Addition ℕ
  • ⟨a1, a2⟩ × ⟨1, 0⟩ = ⟨(1 × a1) + (0 × a2),
    (0 × a1) + (1 × a2)⟩ :: Multiplication ℕ
  • ⟨a1, a2⟩ × ⟨1, 0⟩ = ⟨1, 0⟩ × ⟨a1, a2⟩ :: Definition

Multiplication ℤ: Associative

∀a,b,c∈ℤ (a × b) × c = a × (b × c)

  • (⟨a1, a2⟩ × ⟨b1, b2⟩) × ⟨c1, c2⟩ = ⟨(((a1 × b1) + (a2 × b2)) × c1) + (((a1 × b2) + (a2 × b1)) × c2), (((a1 × b1) + (a2 × b2)) × c2) + (((a1 × b2) + (a2 × b1)) × c1))⟩ :: Definition ×
  • (⟨a1, a2⟩ × ⟨b1, b2⟩) × ⟨c1,c2⟩ = ⟨(a1 × ((b1 × c1) + (b2 × c2))) + (a2 × ((b1 × c2) + (b2 × c1))), (a1 × ((b1 × c2) + (b2 × c1))) + (a2 × ((b1 × c1) + (b2 × c2)))⟩ :: Arithmetic ℕ
  • (⟨a1, a2⟩ × ⟨b1, b2⟩) × ⟨c1,c2⟩ =
    ⟨a1,a2⟩ × (⟨b1, b2⟩ × ⟨c1,c2⟩) :: Definition ×

Multiplication ℤ: Commutative

∀a,b∈ℤ : a × b = b × a

  • ⟨a1, a2⟩ × ⟨b1, b2⟩ = ⟨(a1 × b1) + (a2 × b2),
    (a1 × b2) + (a2 × b1)⟩ :: Definition
  • ⟨a1, a2⟩ × ⟨b1, b2⟩ = ⟨(b1 × a1) + (b2 × a2),
    (b1 × a2) + (b2 × a1)⟩ :: Arithmetic ℕ
  • ⟨a1, a2⟩ × ⟨b1, b2⟩ = ⟨b1, b2⟩ × ⟨a1, a2⟩ :: Definition

Multiplication ℤ: Distributive

∀a,b,c∈ℤ a × (b + c) = (a × b) + (a × c)

We only need to consider the distributive property from one side because integer multiplication is commutative.

Multiplication ℤ: Distributive

∀a,b,c∈ℤ a × (b + c) = (a × b) + (a × c)

  • ⟨a1, a2⟩ × (⟨b1, b2⟩ + ⟨c1, c2⟩) =
    ⟨(a1 × (b1 + c1)) + (a2 × (b2 + c2)),
    (a1 × (b2 + c2)) + (a2 × (b1 + c1))⟩ :: Definition ×
  • ⟨a1, a2⟩ × (⟨b1, b2⟩ + ⟨c1, c2⟩) = ⟨((a1 × b1) + (a2 × b2)) + ((a1 × c1) + (a2 × c2)), ((a1 × b2) + (a2 × b1)) + ((a1 × c2) + (a2 × c1))⟩ :: Multiplication ℕ
  • ⟨a1, a2⟩ × (⟨b1, b2⟩ + ⟨c1, c2⟩) = (⟨a1, a2⟩ × ⟨b1, b2⟩) + (⟨a1, a2⟩ × ⟨c1, c2⟩) :: Definition ×

Multiplication ℤ

  • Definition: ∀⟨a1, a2⟩,⟨b1, b2⟩∈ℤ ⟨a1, a2⟩ × ⟨b1, b2⟩ ≝
    ⟨(a1 × b1) + (a2 × b2), (a1 × b2) + (a2 × b1)⟩
  • Closed: ∀a,b∈ℤ a × b ∈ℤ
  • Identity: ∀a∈ℤ a × 1 = a = 1 × a
  • Associative: ∀a,b,c∈ℤ (a × b) × c = a × (b × c)
  • Commutative: ∀a,b∈ℤ a × b = b × a
  • Distributive: ∀a,b,c∈ℤ a × (b + c) = (a × b) + (a × c)

Rational Numbers ℚ

ℚ ≝ { ⟨a, b⟩∈ℤ⊛ℤ : b > 0 }

[a / b] ≝ { ⟨c1, c2⟩∈ℤ⊛ℤ : c2 > 0 ∧ (c1 × b = c2 × a) }

Rational numbers extend the integers. They introduce inverses for multiplication and can represent fractional quantities.

Rational Numbers ℚ: Equality

∀⟨a1, a2⟩,⟨b1, b2⟩∈ℚ
(⟨a1, a2⟩ = ⟨b1,b2⟩) ≝ (a1 × b2 = a2 × b1)

  • Reflexive: ∀⟨a1, a2⟩∈ℚ a1 × a2 = a2 × a1
  • Symmetric: ∀⟨a1, a2⟩,⟨b1, b2⟩∈ℚ
    a1 × b2 = a2 × b1 ⟺ b1 × a2 = b2 × a1
  • Transitive: ∀⟨a1, a2⟩,⟨b1, b2⟩,⟨c1, c2⟩∈ℚ
    (a1 × b2 = a2 × b1) ∧ (b1 × c2 = b2 × c1) ⟺
    (a1 × c2 = a2 × c1)

Rational Numbers ℚ: Order

∀⟨a1, a2⟩,⟨b1, b2⟩∈ℚ
(⟨a1, a2⟩ ≤ ⟨b1, b2⟩) ≝ (a1 × b2 a2 × b1)

  • Reflexive: ∀⟨a1, a2⟩∈ℚ (a1 × a2 a1 × a2)
  • Antisymmetric: ∀⟨a1, a2⟩,⟨b1, b2⟩∈ℚ (a1 × b2 a2 × b1) ∧ (b1 × a2 b2 × a1) ⟹ (a1 × b2 = a2 × b1)
  • Transitive: ∀⟨a1, a2⟩,⟨b1, b2⟩,⟨c1, c2⟩∈ℚ (a1 × b2 a2 × b1) ∧ (b1 × c2 b2 × c1) ⟹ (a1 × c2 a2 × c1)
  • Connex: ∀⟨a1, a2⟩,⟨b1, b2⟩∈ℚ
    (a1 × b2 a2 × b1) ∨ (b1 × a2 b2 × a1)

Rational Numbers ℚ Examples

-4/3 = ⟨-4, 3⟩ = ⟨⟨0, 4⟩, ⟨3, 0⟩⟩ =
{{⟨0, 4⟩}, {⟨0, 4⟩, ⟨3, 0⟩}} =
{{{{0}, {0, 4}}}, {{{0}, {0, 4}}, {{3}, {3, 0}}}} =
{{{{{}}, {{}, {{}, {{}}, {{}, {{}}}, {{}, {{}}, {{}, {{}}}}}}}}, {{{{}}, {{}, {{}, {{}}, {{}, {{}}}, {{}, {{}}, {{}, {{}}}}}}}, {{{{}, {{}}, {{}, {{}}}}}, {{{}, {{}}, {{}, {{}}}}, {}}}}}

Rational Numbers ℚ Examples

2 = 2/1 = ⟨2, 1⟩ = ⟨⟨2, 0⟩, ⟨1, 0⟩⟩ =
{{⟨2, 0⟩}, {⟨2, 0⟩, ⟨1, 0⟩}} =
{{{{2}, {2, 0}}}, {{{2}, {2, 0}}, {{1}, {1, 0}}}} =
{{{{{{}, {{}}}}, {{{}, {{}}}, {}}}}, {{{{{}, {{}}}}, {{{}, {{}}}, {}}}, {{{{}}}, {{{}}, {}}}}}

Rational Numbers ℚ Examples

(⟨4, 2⟩ = ⟨2, 1⟩) ⟹
(4 × 1 = 2 × 2) ⟹ (4 = 4)

2 = 4/2 = ⟨4, 2⟩ = ⟨⟨4, 0⟩, ⟨2, 0⟩⟩ =
{{⟨4, 0⟩}, {⟨4, 0⟩, ⟨2, 0⟩}} =
{{{{4}, {4, 0}}}, {{{4}, {4, 0}}, {{2}, {2, 0}}}} =
{{{{{{}, {{}}, {{{}, {{}}}}, {{{}, {{}}, {{{}, {{}}}}}}}}, {{{}, {{}}, {{{}, {{}}}}, {{{}, {{}}, {{{}, {{}}}}}}}, {}}}}, {{{{{}, {{}}, {{{}, {{}}}}, {{{}, {{}}, {{{}, {{}}}}}}}}, {{{}, {{}}, {{{}, {{}}}}, {{{}, {{}}, {{{}, {{}}}}}}}, {}}}, {{{{}, {{}}}}, {{{}, {{}}}, {}}}}}

Rational Numbers ℚ

  • ℚ ≝ { ⟨a, b⟩∈ℤ⊛ℤ : b > 0 }
  • Equality: ∀⟨a1, a2⟩,⟨b1, b2⟩∈ℚ
    (⟨a1, a2⟩ = ⟨b1, b2⟩) ≝ (a1 × b2 = a2 × b1)
  • Total Order: ∀⟨a1, a2⟩,⟨b1, b2⟩∈ℚ
    (⟨a1, a2⟩ ≤ ⟨b1, b2⟩) ≝ (a1 × b2 a2 × b1)

Addition ℚ

Let's define addition which maps two rational numbers to another. This will preserve all properties of integer addition, including inverses:

+: ℚ⊛ℚ ⟶ ℚ

∀a,b∈ℚ a + b ≝ ⟨a1, a2⟩ + ⟨b1, b2⟩ =
⟨(a1 × b2) + (a2 × b1), a2 × b2

Addition ℚ Example: 3 + 1/2

  • 3 + 1/2 = ⟨3, 1⟩ + ⟨1, 2⟩
  • 3 + 1/2 = ⟨(3 × 2) + (1 × 1), 1 × 2⟩
  • 3 + 1/2 = ⟨6 + 1, 2⟩
  • 3 + 1/2 = ⟨7, 2⟩
  • 3 + 1/2 = 7/2

Addition ℚ: Isomorphic

∀ a,b∈ℤ ⟨a, 1⟩ + ⟨b, 1⟩ =
⟨(a × 1) + (1 × b), 1 × 1⟩ = ⟨a + b, 1

Adding any two rational numbers that match integers results in the integer their sum would match.

Addition ℚ: Closed

∀a,b∈ℚ a + b ∈ℚ

∀a,b∈ℚ a + b ≝ ⟨a1, a2⟩ + ⟨b1, b2⟩ =
⟨(a1 × b2) + (a2 × b1), a2 × b2

Addition for rational numbers is constructed entirely from integer arithmetic, which is closed. The product of two positive numbers is always positve so second element is positive.

Addition ℚ: Identity

∀a∈ℚ a + 0 = a = 0 + a

  • ⟨a1, a2⟩ + ⟨0, 1⟩ = ⟨(a1 × 1) + (a2 × 0), a2 × 1⟩ :: Definition +
  • ⟨a1, a2⟩ + ⟨0, 1⟩ = ⟨a1, a2⟩ :: Arithmetic ℤ
  • ⟨a1, a2⟩ + ⟨0, 1⟩ = ⟨(0 × a2) + (1 × a1), 1 × a2⟩ :: Arithmetic ℤ
  • ⟨a1, a2⟩ + ⟨0, 1⟩ = ⟨0, 1⟩ + ⟨a1,a2⟩ :: Definition +

Addition ℚ: Associative

∀a,b,c∈ℚ (a + b) + c = a + (b + c)

  • (⟨a1, a2⟩ + ⟨b1, b2⟩) + ⟨c1, c2⟩ =
    ⟨(a1 × b2) + (a2 × b1), a2 × b2⟩ + ⟨c1, c2⟩ :: Definition +
  • (⟨a1, a2⟩ + ⟨b1, b2⟩) + ⟨c1, c2⟩ = ⟨((a1 × b2) + (a2 × b1) × c2) + ((a2 × b2) × c1), (a2 × b2) × c2⟩ :: Definition +
  • (⟨a1, a2⟩ + ⟨b1, b2⟩) + ⟨c1, c2⟩ = ⟨(a1 × (b2 × c2)) +
    (a2 × ((b1 × c2) + (b2 × c1))), a2 × (b2 × c2)⟩
    :: Arithmetic ℤ
  • ...

Addition ℚ: Associative

∀a,b,c∈ℚ (a + b) + c = a + (b + c)

  • (⟨a1, a2⟩ + ⟨b1, b2⟩) + ⟨c1, c2⟩ = ⟨(a1 × (b2 × c2)) +
    (a2 × ((b1 × c2) + (b2 × c1))), a2 × (b2 × c2)⟩ :: Previous
  • (⟨a1, a2⟩ + ⟨b1, b2⟩) + ⟨c1, c2⟩ = ⟨a1, a2⟩ +
    ⟨(b1 × c2) + (b2 × c1), b2 × c2⟩ :: Definition +
  • (⟨a1, a2⟩ + ⟨b1, b2⟩) + ⟨c1, c2⟩ =
    ⟨a1, a2⟩ + (⟨b1, b2⟩ + ⟨c1, c2⟩) :: Definition +

Addition ℚ: Commutative

∀a,b∈ℚ a + b = b + a

  • ⟨a1, a2⟩ + ⟨b1, b2⟩ = ⟨(a1 × b2) + (a2 × b1), a2 × b2⟩ :: Definition +
  • ⟨a1, a2⟩ + ⟨b1, b2⟩ = ⟨(b1 × a2) + (b2 × a1), b2 × a2⟩ :: Arithmetic ℤ
  • ⟨a1, a2⟩ + ⟨b1, b2⟩ = ⟨b1, b2⟩ + ⟨a1, a2⟩ :: Definition +

Addition ℚ: Inverses

∀a∈ℚ ∃(-a)∈ℚ a + (-a) = 0

∀a=⟨a1, a2⟩∈ℚ (-a) ≝ ⟨-a1, a2

  • ⟨a1, a2⟩ + ⟨-a1, a2⟩ = ⟨(a1 × a2) + (-a1 × a2), a2 × a2⟩ :: Definition +
  • ⟨a1, a2⟩ + ⟨-a1, a2⟩ = ⟨(a1 + (-a1)) × a2, a2 × a2⟩ :: Addition ℤ
  • ⟨a1, a2⟩ + ⟨-a1, a2⟩ = ⟨0 × a2, a2 × a2⟩ :: Addition ℤ
  • ⟨a1, a2⟩ + ⟨-a1, a2⟩ = ⟨0, a2 × a2⟩ = 0

Addition ℚ

  • Definition: ∀a,b∈ℚ a + b ≝ ⟨a1, a2⟩ + ⟨b1, b2⟩ =
    ⟨(a1 × b2) + (a2 × b1), a2 × b2
  • Closed: ∀a,b∈ℚ a + b ∈ℚ
  • Associative: ∀a,b,c∈ℚ (a + b) + c = a + (b + c)
  • Commutative: ∀a,b∈ℚ a + b = b + a
  • Identity: ∀a∈ℚ a + 0 = a = 0 + a
  • Inverses: ∀a∈ℚ ∃(-a)∈ℚ a + (-a) = 0

Subtraction ℚ

  • Definition: ∀a,b∈ℚ a - b ≝ a + (-b)
  • Closed: ∀a,b∈ℚ a - b ∈ℚ
  • Right Identity: ∀a∈ℚ a + 0 = a
  • Inverses: ∀a∈ℚ a - a = 0

Multiplication ℚ

Let's define multiplication which maps two rational numbers to another. This will presearve all properties of integer multiplication and will add inverses for everything except zero:

×: ℚ⊛ℚ ⟶ ℚ

∀a,b∈ℚ a × b ≝ ⟨a1, a2⟩ × ⟨b1, b2⟩ = ⟨a1 × b1, a2 × b2

Multiplication ℚ Example: 3 × 5/2

  • 3 × 5/2 = ⟨3, 1⟩ × ⟨5, 2⟩
  • 3 × 5/2 = ⟨3 × 5, 1 × 2⟩
  • 3 × 5/2 = ⟨15, 2⟩
  • 3 × 5/2 = 15/2

Multiplication ℚ Example: 2/3 × 3/5

  • 2/3 × 3/5 = ⟨2, 3⟩ × ⟨3, 5⟩
  • 2/3 × 3/5 = ⟨2 × 3, 3 × 5⟩
  • 2/3 × 3/5 = ⟨6, 15⟩
  • 2/3 × 3/5 = ⟨2, 5⟩ (6 × 5 = 30 = 2 × 15)
  • 2/3 × 3/5 = 2/5

Multiplication ℚ: Isomorphic

∀ a,b∈ℤ ⟨a, 1⟩ × ⟨b, 1⟩ =
⟨a × b, 1 × 1⟩ = ⟨a × b, 1

Multiplying any two rational numbers that match integers results in the integer their product would match.

Multiplication ℚ: Closed

∀a,b∈ℚ a × b ∈ℚ

∀a,b∈ℚ a × b ≝ ⟨a1, a2⟩ × ⟨b1, b2⟩ = ⟨a1 × b1, a2 × b2

Because integer multiplication is commutative and two positive integers always multiply to another positive, rational number multiplication is closed.

Multiplication ℚ: Identity

∀a∈ℚ a × 1 = a = 1 × a

  • ⟨a1, a2⟩ × ⟨1, 1⟩ = ⟨a1 × 1, a2 × 1⟩ :: Definition ×
  • ⟨a1, a2⟩ × ⟨1, 1⟩ = ⟨a1, a2⟩ :: Multiplication ℤ
  • ⟨a1, a2⟩ × ⟨1, 1⟩ = ⟨1 × a1, 1 × a2⟩ :: Multiplication ℤ
  • ⟨a1, a2⟩ × ⟨1, 1⟩ = ⟨1, 1⟩ × ⟨a1, a2⟩ :: Definition ×

Multiplication ℚ: Associative

∀a,b,c∈ℚ (a × b) × c = a × (b × c)

  • (⟨a1, a2⟩ × ⟨b1, b2⟩) × ⟨c1, c2⟩ =
    ⟨(a1 × b1) × c1, (a2 × b2) × c2⟩ :: Definition ×
  • (⟨a1, a2⟩ × ⟨b1, b2⟩) × ⟨c1, c2⟩ =
    ⟨a1 × (b1 × c1), a2 × (b2 × c2⟩) :: Multiplication ℤ
  • (⟨a1, a2⟩ × ⟨b1, b2⟩) × ⟨c1, c2⟩ =
    ⟨a1, a2⟩ × (⟨b1, b2⟩ × ⟨c1, c2⟩) :: Definition ×

Multiplication ℚ: Commutative

∀a,b∈ℚ a × b = b × a

  • ⟨a1, a2⟩ × ⟨b1, b2⟩ = ⟨a1 × b1, a2 × b2⟩ :: Definition ×
  • ⟨a1, a2⟩ × ⟨b1, b2⟩ = ⟨b1 × a1, b2 × a2
    :: Multiplication ℤ
  • ⟨a1, a2⟩ × ⟨b1, b2⟩ = ⟨b1, b2⟩ × ⟨a1, a2⟩ :: Definition ×

Multiplication ℚ: Distributive

Before we prove the distributive property, let's notice something useful: One Invariance

∀a1, a2 >0, c>0∈ℤ ⟨a1, a2⟩ × ⟨c, c⟩ = ⟨a1, a2

  • ⟨a1, a2⟩ = ⟨a1 × c, a2 × c⟩
  • a1 × (a2 × c) = a2 × (a1 × c)
  • a1 × a2 × c = a1 × a2 × c

Multiplication ℚ: Distributive

∀a,b,c∈ℚ a × (b + c) = (a × b) + (a × c)

  • ⟨a1, a2⟩ × (⟨b1, b2⟩ + ⟨c1, c2⟩) =
    ⟨a1, a2⟩ × ⟨(b1 × c2) + (b2 × c1), b2 × c2⟩ :: Definition +
  • ⟨a1, a2⟩ × (⟨b1, b2⟩ + ⟨c1, c2⟩) =
    ⟨a1 × ((b1 × c2) + (b2 × c1)), a2 × b2 × c2⟩ :: Definition ×
  • ⟨a1, a2⟩ × (⟨b1, b2⟩ + ⟨c1, c2⟩) = ⟨a2 × a1 × ((b1 × c2) +
    (b2 × c1)), a2 × a2 × b2 × c2⟩ :: One Invariance
  • ...

Multiplication ℚ: Distributive

∀a,b,c∈ℚ a × (b + c) = (a × b) + (a × c)

  • ⟨a1, a2⟩ × (⟨b1, b2⟩ + ⟨c1, c2⟩) = ⟨a2 × a1 × ((b1 × c2) +
    (b2 × c1)), a2 × a2 × b2 × c2⟩ :: Previous
  • ⟨a1, a2⟩ × (⟨b1, b2⟩ + ⟨c1, c2⟩) = ⟨(a1 × b1 × a2 × c2) +
    (a2 × b2 × a1 × c1), a2 × b2 × a2 × c2⟩ :: Arithmetic ℤ
  • ⟨a1, a2⟩ × (⟨b1, b2⟩ + ⟨c1, c2⟩) =
    ⟨a1 × b1, a2 × b2⟩ + ⟨a1 × c1, a2 × c2⟩ :: Definition +
  • ⟨a1, a2⟩ × (⟨b1, b2⟩ + ⟨c1, c2⟩) =
    (⟨a1, a2⟩ × ⟨b1, b2⟩) + (⟨a1, a2⟩ × ⟨c1, c2⟩) :: Definition ×

Multiplication ℚ: Inverses

∀a∈ℚ a≠0 ⟹ ∃a-1∈ℚ a × a-1 = 1

∀a=⟨a1≠0, a2⟩∈ℚ
(a1 > 0 ⟹ a-1 ≝ ⟨a2, a1⟩) ∧ (a1 < 0 ⟹ a-1 ≝ ⟨-a2, -a1⟩)

  • ⟨a1, a2⟩ × ⟨a2, a1⟩ = ⟨a1 × a2, a2 × a1⟩ :: Definition ×
  • ⟨a1, a2⟩ × ⟨a2, a1⟩ = ⟨a1 × a2, a1 × a2⟩ :: Addition ℤ
  • ⟨a1, a2⟩ × ⟨a2, a1⟩ = 1

Multiplication ℚ

  • Definition: ∀a,b∈ℚ a × b ≝
    ⟨a1, a2⟩ × ⟨b1, b2⟩ = ⟨a1 × b1, a2 × b2
  • Closed: ∀a,b∈ℚ a × b ∈ℚ
  • Identity: ∀a∈ℚ a × 1 = a = 1 × a
  • Associative: ∀a,b,c∈ℚ (a × b) × c = a × (b × c)
  • Commutative: ∀a,b∈ℚ a × b = b × a
  • Distributive: ∀a,b,c∈ℚ a × (b + c) = (a × b) + (a × c)
  • Inverses: ∀a∈ℚ a≠0 ⟹ ∃a-1∈ℚ a × a-1 = 1

Real Numbers ℝ

ℝ ≝ { a∈℘ℚ : (a ≠ {}) ∧ (a ≠ ℚ) ∧
(∀b,c∈ℚ (b∈a ∧ c≤b) ⟹ c∈a) ∧
(∀b∈a ∃c∈a c>b) }

Real numbers extend the rational numbers by filing in all the holes. (Dedekind 1858-1862)

Dedekind Cuts

Dedekind cuts are continuous partitions of ℚ

  • Proper, non-empty Rational Subset:
    ∀a∈ℝ a⊆ℚ ∧ a≠ℚ ∧ a≠{} ⟹ ℝ⊆℘ℚ
  • Closed Downward: ∀a∈ℝ ∀b,c∈ℚ
    (b∈a ∧ c≤b) ⟹ c∈a
  • No Largest Member: ∀a∈ℝ ∀b∈a ∃c∈a c>b

More Complete Dedekind Cuts

∀a∈ℝ a = ⟨{ b∈ℚ : P(b) }, { b∈ℚ : ¬P(b) }⟩

This is a more conventional definition of Dedekind cuts. Ours is simpler and makes proofs easier, but proofs for the upper set are similar.

Middle ℚ

∀a,b∈ℚ (a < b) ⟹ a < ((a + b) × 1/2) < b

Given a rational number strictly less than another we can show that there is always a rational number in between the two.

Middle ℚ

∀a,b∈ℚ (a < b) ⟹ a < ((a + b) × 1/2) < b

  • (a < b) ⟹ a + a < a + b
  • (a + a) × 1/2 < (a + b) × 1/2
  • a × 2 × 1/2 < (a + b) × 1/2
  • a × 1 < (a + b) × 1/2
  • a < (a + b) × 1/2

Middle ℚ

∀a,b∈ℚ (a < b) ⟹ a < ((a + b) × 1/2) < b

  • (a < b) ⟹ a + b < b + b
  • (a + b) × 1/2 < (b + b) × 1/2
  • (a + b) × 1/2 < b × 2 × 1/2
  • (a + b) × 1/2 < b × 1
  • (a + b) × 1/2 < b

Real Numbers ℝ Non-Examples

{ a∈ℚ : a ≤ 0 } ∉ℝ

This set is closed downward but it has a largest member: 0 This set is not a real number.

Real Numbers ℝ Non-Examples

{ a∈ℚ : (a > -1) ∧ (a < 0) } ∉ℝ

This set has no largest member but it's not closed downward. -2 is not a member of this set even though it's less than -1/2 which is. This set is not a real number.

Real Numbers ℝ Examples

0 ≝ { a∈ℚ : a < 0 }

  • (-1 ∈ 0) ∧ (0 ∉ 0)
  • Closed Downward: ∀a,b∈ℚ a∈0 ⟹ a < 0
    • a < 0 ∧ b < a ⟹ b < 0 :: Transitive ≥
    • b < 0 ⟹ b∈0 :: Definition 0
  • No Largest Member: ∀a∈ℚ a∈0 ⟹ a < 0
    • a < 0 ⟹ a < ((a + 0) × 1/2) :: Middle ℚ
    • ((a + 0) × 1/2) < 0 ⟹ ((a + 0) × 1/2) ∈ 0

Real Numbers ℝ Examples

∀a∈ℚ ∃{ b∈ℚ : b < a }∈ℝ

  • (a + (-1) ∈ { b∈ℚ : b < a }) ∧ (a ∉ { b∈ℚ : b < a })
  • Closed Downward: ∀c,d∈ℚ c∈{ b∈ℚ : b < a }
    • (c < a) ∧ (d < c) ⟹ (d < a) :: Transitive ≥
    • (d < c) ⟹ (d < a) ⟹ d∈{ b∈ℚ : b < a }
  • No Largest Member: ∀c∈ℚ c∈{ b∈ℚ : b < a }
    • (c < a) ⟹ c < (c + a) × 1/2 < a :: Middle ℚ
    • ((c + a) × 1/2) ∈ { b∈ℚ : b < a }

Real Numbers ℝ Equality

∀a,b∈ℝ (a = b) ≝ (a = b)

Real numbers are equal if and only if the sets that represent them are equal. This is reflexive symmetric and transitive because set equality has these properties.

Real Numbers ℝ Order

∀a,b∈ℝ (a ≤ b) ≝ (a ⊆ b)

Real number order is defined by the subset relation. This is always reflexive, antisymmetric and transitive. We only have to prove the connex property to have a total order.

Real Numbers ℝ Connex

∀a,b∈ℝ (a ≤ b) ∨ (b ≤ a)

  • ∀a,b∈ℝ a > b ⟹ ¬(a ⊆ b) ⟹ ∃c∈ℚ (c∈a ∧ c∉b)
  • ∀d∈ℚ (d < c) ⟹ (d ∈ a) :: a is Closed Downward
  • ∀d∈ℚ (d ≥ c) ⟹ (d ∉ b) :: b is Closed Downward
  • ∀d∈ℚ (d ∈ b) ⟹ (d < c) :: Contrapositive
  • ∀d∈ℚ (d ∈ b) ⟹ (d ∈ a) :: Deduction
  • ∀a,b∈ℝ ¬(a ⊆ b) ⟹ (b ⊆ a) :: Subset
  • ∀a,b∈ℝ (a ⊆ b) ∨ (b ⊆ a) :: Disjunction Definition

Real Numbers ℝ

  • ℝ ≝ { a∈℘ℚ : (a ≠ {}) ∧ (a ≠ ℚ) ∧
    (∀b,c∈ℚ (b∈a ∧ c≤b) ⟹ c∈a) ∧
    (∀b∈a ∃c∈a c>b) }
  • Equality: ∀a,b∈ℝ (a = b) ≝ (a = b)
  • Total Order: ∀a,b∈ℝ (a ≤ b) ≝ (a ⊆ b)

Addition ℝ

Let's define addition which maps two real numbers to another. This will preserve all properties of rational addition, including inverses:

+: ℝ⊛ℝ ⟶ ℝ

∀a,b∈ℝ a + b ≝ { (c + d)∈ℚ : c∈a ∧ d∈b }

Addition ℝ Example: 3 + 2 = 5

  • 3 + 2 = 5
  • (29/10 < 3) ⟹ 29/10 ∈ 3
  • (19/10 < 2) ⟹ 19/10 ∈ 2
  • (29 + 19)/10 ∈ 3 + 2
  • (48/10 < 5) ⟹ 48/10 ∈ 5
  • (2999 + 1999)/1000 < 5 ∈ 3 + 2
  • (4998/1000 < 5) ⟹ 48/10 ∈ 5
  • ... Note: 49/10 = 195/100 + 295/100

Addition ℝ: Closed

∀a,b∈ℝ a + b ∈ℝ

  • (∃c∈a ∧ ∃d∈b) ⟹ (c + d) ∈ (a + b)
  • Closed Downward: ∀c,d∈ℚ (c∈a) ∧ (d∈b)
    • ∀e∈ℚ (e < (c + d)) ∃f>0 (e + f) = (c + d)
    • (c - f < c) ⟹ (c - f) ∈ a ⟹ (c - f) + d ∈ (a + b)
  • No Largest Member:

Addition ℝ: Associative

∀a,b,c∈ℝ (a + b) + c = a + (b + c)

TODO

Addition ℝ: Commutative

∀a,b∈ℝ a + b = b + a

{ c∈ℚ : ∃d∈a,e∈b (d + e = c) } =
{ c∈ℚ : ∃e∈b,d∈a (e + d = c) }

  • ∀d,e∈ℚ d + e = e + d :: Commutative ℚ+
  • ∀c∈ℚ c∈(a + b) ⟺ c∈(b + a)
  • ∀a,b∈ℝ (a + b) = (b + a) :: Extensionality

Addition ℝ: Identity

∀a∈ℝ a + 0 = a = 0 + a

TODO

Addition ℝ: Inverses

∀a∈ℝ ∃(-a)∈ℝ a + (-a) = 0

∀a∈ℝ -a ≝ { b∈ℚ : ∃c∈ℚ (c > b) ∧ (-c ∉ a) }

  • ∃b∉a ⟹ (b + 1)∉a ⟹ -(b + 1)∈(-a)
  • Closed Downward: ∀b,c∈ℚ
    • b∈(-a) ⟹ (-b)∉a :: Definition
    • (c < b) ⟹ (-c > -b) ⟹ (-c ∉ a) :: a ∈ ℝ
  • No Largest Element: ∀b,c∈ℚ (c > b) ∧ (-c ∉ a)
    • ∃d∈ℚ d = (c + b) × 1/2
    • (d > b) ∧ ((d < c) ⟹ (-d > -c) ⟹ (-d∉a))

Addition ℝ: Inverses

∀a∈ℝ ∃(-a)∈ℝ a + (-a) = 0

Suppose we could add something from a and (-a) to get 0 or greater.

  • ∃b∈a,c∈(-a) b + c ≥ 0
  • b ∈

Addition ℝ

  • Definition: ∀a,b∈ℝ a + b ≝
    { (c + d)∈ℚ : c∈a ∧ d∈b }
  • Closed: ∀a,b∈ℝ (a + b) ∈ℝ
  • Associative: ∀a,b,c∈ℝ (a + b) + c = a + (b + c)
  • Commutative: ∀a,b∈ℝ a + b = b + a
  • Identity: ∀a∈ℝ a + 0 = a = 0 + a
  • Inverses: ∀a∈ℝ ∃(-a)∈ℝ a + (-a) = 0

Multiplication ℝ

Let's define multiplication which maps two real numbers to another:

×: ℝ⊛ℝ ⟶ ℝ

  • ∀a,b∈ℝ ((a≥0 ∧ b≥0) ∨ (a<0 ∧ b<0)) ⟹
    a × b ≝ 0 ∪ { (|c| × |d|)∈ℚ : c∈a ∧ d∈b }
  • ∀a,b∈ℝ ((a≥0 ∧ b<0) ∨ (a<0 ∧ b≥0)) ⟹
    a × b ≝ { -(|c| × |d|)∈ℚ : c∈a ∧ d∈b }

Absolute Value ℝ

∀a∈ℝ |a| ≝ a ∪ (-a)

Multiplication ℝ

TODO

Multiplication ℝ

  • ∀a,b∈ℝ ((a≥0 ∧ b≥0) ∨ (a<0 ∧ b<0)) ⟹
    a × b ≝ 0 ∪ { (|c| × |d|)∈ℚ : c∈a ∧ d∈b }
  • ∀a,b∈ℝ ((a≥0 ∧ b<0) ∨ (a<0 ∧ b≥0)) ⟹
    a × b ≝ { -(|c| × |d|)∈ℚ : c∈a ∧ d∈b }
  • Closed: ∀a,b∈ℝ a × b ∈ℝ
  • Associative: ∀a,b,c∈ℝ (a × b) × c = a × (b × c)
  • Commutative: ∀a,b∈ℝ a × b = b × a
  • Distributive: ∀a,b,c∈ℝ a × (b + c) = (a × b) + (a × c)
  • Identity: ∀a∈ℝ a × 1 = a = 1 × a
  • Inverses: ∀a∈ℝ a≠0 ⟹ ∃a-1∈ℝ a × a-1 = 1

ℚ Revisited

ℚ ≝ { ⟨a, b⟩∈ℤ⊛ℤ : b > 0 }

Our construction excludes ordered pairs without positive integers for the second member. Why? What would the consequences be?

Negative Denominators ℚ

∀a1, a2∈ℤ ⟨a1, -a2⟩ = ⟨-a1, a2

  • a1 × a2 = (-a1) × (-a2)
  • a1 × a2 = (-1) × (-1) × a1 × a2
  • a1 × a2 = 1 × a1 × a2

Every negative denominator rational is equivalent to some positive denominator rational. Excluding negative values isn't necessary but it's convenient.

Zero Denominators ℚ

∀a,b∈ℤ ⟨a, 0⟩ = ⟨b, 0

  • a × 0 = b × 0
  • 0 = 0

All zero denominator rational numbers are equal to one another. We will use the term infinity to refert to this special rational number.

ℚ Infinity: Addition

∀a,b,c∈ℤ ⟨a, b⟩ + ⟨c, 0⟩ = ⟨c, 0

  • ⟨(a × 0) + (b × c), b × 0⟩ = ⟨c, 0
  • ((a × 0) + (b × c)) × 0 = (b × 0) × c
  • 0 = 0

Adding a rational number to infinity gives infinity.

ℚ Infinity: Multiplication

∀a,b,c∈ℤ ⟨a, b⟩ × ⟨c, 0⟩ = ⟨c, 0

  • ⟨a × c, b × 0⟩ = ⟨c, 0
  • (a × c) × 0 = (b × 0) × c
  • 0 = 0

Multiplying a rational number by infinity gives infinity.

ℚ No Zero Inverse

∀a,b∈ℤ ⟨a, 0⟩ × ⟨0, b⟩ ≟ ⟨1, 1

  • ⟨a × b, 0 × 0⟩ ≟ ⟨1, 1
  • (a × b) × 1 ≟ (0 × 0) × 1
  • a × b ≠ 0

While interesting, infinity doesn't function as an inverse for zero. Multiplying by zero destroys information and there's no way to recover it.

ℚ Breakdown

∀a,b∈ℤ ⟨a, b⟩ = ⟨0, 0

  • a × 0 = 0 × b
  • 0 = 0

Rational number zero over zero is equal to everything, which destroys the transitive property of equality. This breaks the rational numbers. We must exclude it.

Cardinality

If a bijection exists between two sets we say the sets have the same cardinality.

Finite Cardinality ℕ

If a bijection between a natural number and some other set then we say that other set has that many elements. For example, if a bijection exists between set and the natural number 3 we say that the set has three elements.

  • f = {⟨0, a⟩, ⟨1, b⟩, ⟨2, c⟩}
  • #{a, b, c} = #{0, 1, 2} = 3

Infinite Cardinality

If a bijection between a set b and the set of natural numbers itself exists then we say that b has a countably infinite number of elements.

Integers ℤ: Cardinality

How many integers are there? A bijection exists between integers and natural numbers.

f = {⟨0ℕ, 0ℤ⟩, ⟨1ℕ, 1ℤ⟩, ⟨2ℕ, -1ℤ⟩,
⟨3ℕ, 2ℤ⟩, ⟨4ℕ, -2ℤ⟩, ...}

Rational Numbers ℚ: Cardinality

How many rational numbers are there?

⟨0ℕ, 0/1ℚ⟩
⟨1ℕ, 1/1ℚ⟩ ⟨2ℕ, 1/2ℚ⟩ ⟨4ℕ, 1/3ℚ⟩ ⟨7ℕ, 1/4ℚ⟩
⟨3ℕ, 2/1ℚ⟩ ⟨5ℕ, 2/2ℚ⟩ ⟨8ℕ, 2/3ℚ⟩ ⟨12ℕ, 2/4ℚ⟩
⟨6ℕ, 3/1ℚ⟩ ⟨9ℕ, 3/2ℚ⟩ ⟨13ℕ, 3/3ℚ⟩ ⟨18ℕ, 3/4ℚ⟩
⟨10ℕ, 4/1ℚ⟩ ⟨14ℕ, 4/2ℚ⟩ ⟨19ℕ, 4/3ℚ⟩ ⟨25ℕ, 4/4ℚ⟩

Skipping values already obtained and alternating negative numbers would give a bijection between the natural and rational numbers.

Real Numbers ℝ: Cardinality

TODO: prove more reals than naturals, integers and rationals using Cantor diagonalization

Algebra

Algebra: from Arabic al-jabr, literally meaning reunion of broken parts
— Oxford English Dictionary

Group ⟬G, ∘⟭

A group is a set and a binary function
∘: G ⊛ G ⟶ G

  • Closed: ∀a,b∈G : a ∘ b ∈G
  • Associative: ∀a,b,c∈G (a ∘ b) ∘ c = a ∘ (b ∘ c)
  • Identity: ∃e∈G ∀a∈G a ∘ e = a
  • Inverses: ∀a∈G ∃a-1∈G a ∘ a-1 = e

A group is the simplest mathematical structure that makes algebra possible.

Abstraction

By definition identity and inverses work when applied from the right.

  • Identity: ∃e∈G ∀a∈G a ∘ e = a
  • Inverses: ∀a∈G ∃a-1∈G a ∘ a-1 = e

Do these work from the left?

  • ∃e∈G ∀a∈G e ∘ a ≟ a
  • ∀a∈G ∃a-1∈G a-1 ∘ a ≟ e

Proof: Left Inverses

  • e = a-1 ∘ (a-1)-1 :: Inverses
  • e = (a-1 ∘ e) ∘ (a-1)-1 :: Identity
  • e = (a-1 ∘ (a ∘ a-1)) ∘ (a-1)-1 :: Inverses
  • e = ((a-1 ∘ a) ∘ a-1) ∘ (a-1)-1 :: Associativity
  • e = (a-1 ∘ a) ∘ (a-1 ∘ (a-1)-1) :: Associativity
  • e = (a-1 ∘ a) ∘ e :: Inverses
  • e = a-1 ∘ a :: Identity

Proof: Left Identity

  • e ∘ a = (a ∘ a-1) ∘ a :: Inverses
  • e ∘ a = a ∘ (a-1 ∘ a) :: Associativity
  • e ∘ a = a ∘ e :: Left Inverses
  • e ∘ a = a :: Identity

Equation Solving

Suppose we have know a, b and (a ∘ x = b):

  • a-1 ∘ (a ∘ x) = a-1 ∘ b :: Equality
  • (a-1 ∘ a) ∘ x = a-1 ∘ b :: Associativity
  • e ∘ x = a-1 ∘ b :: Inverses
  • x = a-1 ∘ b :: Identity

Abelian Group ⟬G, ∘⟭

An abelian group has a commutative function:

  • ⟬G, ∘⟭ is a group
  • Commutative: ∀a,b∈G (a ∘ b) = (b ∘ a)

Cayley Table (Abelian)

G = {♠, , ♣, }

Ring ⟬R, ∘, ⊚⟭

A ring is a set and two binary functions
(∘: R ⊛ R ⟶ R) and (⊚: R ⊛ R ⟶ R) with four properties:

  • ⟬R, ∘⟭ is an abelian group
  • Closed: ∀a,b∈R : a ⊚ b ∈ R
  • Associative: (a ⊚ b) ⊚c = a ⊚ (b ⊚ c)
  • Distributive: ∀a,b,c∈R
    (a ⊚ (b ∘ c) = (a ⊚ b) ∘ (a ⊚ c)) ∧
    ((b ∘ c) ⊚ a = (b ⊚ a) ∘ (c ⊚ a))

Rings: Division

∀a,b∈R a|b ≝ ∃c∈R (a ⊚ c = b)

One member of a ring divides another if and only if there's a third member that that can be multiplied by the first to get the second.

Zero Divisors

∀a∈R (a is a zero divisor) ≝
∃b≠e∈R a ⊚ b = e

A zero divisor is a member of a ring which can reach the additive identity when multiplied by something other than the additive identity.

ℕ No Zero Divisors

  • ∀b∈ℕ (1 × b ≠ 0) ⟹ (b ≠ 0) :: Identity ×
  • ∃a∈ℕ ∀b∈ℕ (a × b ≠ 0) ⟹ (b ≠ 0) :: Assumption

Irreducible Element

∀a∈R (a is irreducible) ≝
∀b,c∈R (a = b ⊚ c) ⟹ (b = e ∨ c = e)

An irreducible element is a member of a ring that is not the product of any non-unit.

Prime Element

∀a∈R (a is prime) ≝
∀b,c∈R a|(b ⊚ c) ⟹ (a|b ∨ a|c)

A prime element of a ring is one that divides at least one of the terms if it divides a product.

No Zero Divisors Implies Prime = Irreducible

Commutative Ring ⟬R, ∘, ⊚⟭

A commutative ring has commutative functions:

  • ⟬R, ∘, ⊚⟭ is a ring
  • Commutative: ∀a,b,c∈R (a ⊚ b) = (b ⊚ a)

Unitary Ring ⟬R, ∘, ⊚⟭

A unitary ring has an identity element for the second function:

  • ⟬R, ∘, ⊚⟭ is a ring
  • Identity: ∃e∈R ∀a∈R a ⊚ e = a

Division Ring ⟬R, ∘, ⊚⟭

A division ring is a unitary ring with an inverse for every element under the second function:

  • ⟬R, ∘, ⊚⟭ is a ring
  • Identity: ∃e∈R ∀a∈R a ⊚ e = a
  • Inverses: ∀a∈U a ≠ e ⟹ ∃a-1∈U a ⊚ a-1 = e

Field ⟬F, ∘, ⊚⟭

A field is a commutative division ring:

  • ⟬F, ∘, ⊚⟭ is a ring
  • Unitary: ∃e∈F ∀a∈F a ⊚ e = a
  • Commutative: ∀a,b,c∈F (a ⊚ b) = (b ⊚ a)
  • Inverses: ∀a∈U a ≠ e ⟹ ∃a-1∈U a ⊚ a-1 = e

Finite Field ⟬F, ∘, ⊚⟭

A finite field is a field with a finite number of members. Finite fields can sometimes be expressed using tables (Cayley 1854 CE)

Finite Field Example

Algebra

Algebra: from Arabic al-jabr, literally meaning reunion of broken parts
— Oxford English Dictionary

Finite Field Example: ⟬ℤ/5ℤ, +, ×⟭

+012 34
0012 34
1123 40
2234 01
3340 12
4401 23
×012 34
0000 00
1012 34
2024 13
3031 42
4043 21

Ring/Field Notation

ax ≝ a ⊚ x

When it isn't likely to cause confusion we usually omit the symbol for the second operation of a ring or field. This is especially useful when working with numeric systems with a variable is named x:
ax ≝ a × x

Vector Space 𝕍 ⟬V, +, ⟬F, ∘, ⊚⟭⟭

  • ⟬F, ∘, ⊚⟭ is a field
  • V, +⟭ is an abelian group (closure, associative, identity, inverses, commutative)
  • Scalar Compatability: ∀vV ∀a,b∈F a(bv) = (ab)v
  • Scalar Identity: ∀vV ev) = v
  • Distributivity: ∀v,uV ∀a,b∈F
    (a(v + u) = av + au) ∧ (a + b)v = av + bv)

Vector Space Example: Rationals

⟬ℚ, +, ⟬ℚ, +, ×⟭⟭

Rational numbers can be used to construct a trivial example of a vector space. There isn't anything we can do with this that we couldn't also do with the field of rational numbers, but it demonstrates that at least one vector space exists.

Vector Space Example: Pairs

⟬ℚ × ℚ, +, ⟬ℚ, +, ×⟭⟭

  • V = { ⟨a, b⟩ : a∈ℚ ∧ b∈ℚ }
  • v,w ∈V v + w = ⟨va + wa, vb + wb
  • v,w ∈V ∀a∈ℚ av = ⟨ava, avb

We can make a more interesting vector space using tuples of rational numbers.

Vector Space Example: Tuples

  • v = ⟬v0, v1, v2, ...⟭
  • v + w = ⟬v0 + w0, v1 + w1, v2 + w2, ...⟭
  • av = ⟬av0, av1, av2, ...⟭

Tuples can be used to generalize the vector space created by ordered pairs.

Exponents

Pure mathematics is, in its way, the poetry of logical ideas.
— Albert Einstein

Exponents: Distributive

Repeating successor creates addition. Repeating addition creates multiplication. Repeating multiplication creates exponentiation. Addition and multiplication are connected by the distributive property. Mutiplication and exponentiantion are connected by the exponent product rule.

ab ⊚ ac = ab + c

Exponents ℕ

Any natural number can be used as an exponent in a straightforward way.

  • a0 ≝ e
  • a1 ≝ e ⊚ a
  • a2 ≝ e ⊚ a ⊚ a
  • a3 ≝ e ⊚ a ⊚ a ⊚ a
  • ...

Exponents ℤ

A natural way to extend our notation for inverses is to use integer exponents.

  • a-1 (a ≠ e)
  • a-2 ≝ a-1 ⊚ a-1
  • a-3 ≝ a-1 ⊚ a-1 ⊚ a-1
  • ...

Exponents ℚ

What could it mean to use rational numbers as exponents?

  • a1/2 ⊚ a1/2 = a1/2 + 1/2 = a1 = a
  • a2/3 ⊚ a2/3 ⊚ a2/3 = a2/3 + 2/3 + 2/3 = a6/3 = a2

A field member with a rational exponent may or may not exist, depending on the field.

Exponents ℝ

Could we use real numbers as exponents? Vectors? We can! And it will turn out to be useful (particularly for rotations).

Exponent Rules

  • Zero: a0 = e (a∈ℝ ⟹ (a0 = 1))
  • Power: (ab)c = ab × c
  • Product: ab ⊚ ac = ab + c
  • Negative: a-n = (a-1)n = (an)-1

Algebraic Numbers

a3x3 + a2x2 + a1x + a0 = 0

We can define a polynomial as a series of integer value rational numbers multiplied by powers of a variable. The degree of a polynomial is the highest power of the variable for which the coefficient is not zero (3 in this example). When we set a polynomial equal to 0 the solutions are called roots.

Algebraic Numbers: Rational

(bx - a = 0) ⟹ (x = a(b-1))

This degree one polynomial can be used to create any rational number [a / b]. This shows that all rational numbers are the root of at least one polynomial expression.

Algebraic Numbers: Irrational

x2 - 2 = 0

Are all algebraic numbers rational? There is no rational number that can solve this equation. (TODO: use fundamental theorem of arithmetic to prove this)

Infinite Series

What if we had an infinite number of terms?

  • π = ∑k=0 (8 / ((4k + 1)(4k + 3))) (Leibniz)
  • ex
  • sin(x)
  • cos(x)

Convergant Infinite Series

What if we had an infinite number of terms?

  • π = ∑k=0 (8 / ((4k + 1)(4k + 3))) (Leibniz)
  • ex
  • sin(x)
  • cos(x)

Geometry

History of Geometry

(Extremely abbreviated)

Points

Euclid defines a point as that which has no part.

A point is a position in space but has no spacial extents in any direction. We call the set of all possible points

Points

Metric Space

A metric space consists of a set of points and a distance function: ⟨ℙ, d: ℙ ⊛ ℙ ⟶ ℝ⟩

  • Non-negative: ∀A,B∈ℙ d(A, B) ≥ 0
  • Distinct: ∀A,B∈ℙ d(A, B) = 0 ⟺ A = B
  • Symmetric: ∀A,B∈ℙ d(A, B) = d(B, A)
  • Geodesic: ∀A,B,C∈ℙ d(A, C) ≤ d(A, B) + d(B, C)

Metric Space Examples

  • ⟨ℝ, d0⟩: ∀a,b∈ℙ
    ((a = b) ⟹ d0(a, b) ≝ 0) ∧ ((a ≠ b) ⟹ d0(a, b) ≝ 1)
  • ⟨ℝ, d1⟩: ∀A,B∈ℙ d1(a, b) ≝ |a - b|
  • ⟨ℝ⊛ℝ, d1⟩: ∀A,B∈ℙ d1(A, B) ≝ |A1 - B1| + |A2 - B2|
  • ⟨ℝ⊛ℝ, d2⟩: ∀A,B∈ℙ d2(A, B) ≝
    √((A1 - B1)2 + (A2 - B2)2)
  • ⟨ℝ⊛ℝ, d⟩: ∀A,B∈ℙ d(A, B) ≝
    MAX(|A1 - B1|, |A2 - B2|)

Between ℙ

∀A,B,C∈ℙ B ⧳ (A, C)
d(A, C) = d(A, B) + d(B, C)

Point B is between points A and B when the sum of the distances from B to the other points is exactly the distance between the other two points.

Lines

∀𝓁∈℘ℙ IS-LINE(𝓁) ≝

  • ∃A,B∈𝓁 d(A, B) > 0
  • ∀A,B,C∈𝓁 A ⧳ (B, C) ∨ B ⧳ (A, C) ∨ C ⧳ (A, B)
  • ∀A∈𝓁,b∈ℝ (b ≥ 0) ⟹ ∃C,D∈𝓁
    (d(A, C) = b) ∧ (d(A, D) = b) ∧ (d(C, D) = 2b)

A line is a set of points that corresponds to real numbers.

Angles

∠AOB ≝ ∃A,O,B∈ℙ (d(O,A) > 0 ∧ d(O, B) > 0)

Any point with two other points distinct from it make an angle.

Axioms of Geometry

  • Axiom I: At least two points exist in metric space
  • Axiom II: Exactly one line includes any two points
  • Axiom III: Angles map to a range of real numbers
  • Axiom IV: Triangles with a common angle and two side lengths are the same
  • Axiom V (Euclidean): Similar triangles have proportional lengths and the same angles

Axioms of Geometry

  • Axiom I: ∃A,B∈ℙ d(A, B) > 0
  • Axiom II: ∀A,B∈ℙ (d(A, B) > 0) ⟹
    ∃𝓁⊆ℙ A∈𝓁 ∧ B∈𝓁 ∧ IS-LINE(𝓁) ∧
    ∀𝓂 (A∈𝓂 ∧ B∈𝓂 ∧ IS-LINE(𝓂)) ⟹ (𝓁 = 𝓂)
  • Axiom III: ∀A,O,B∈ℙ (A ≠ O ∧ B ≠ O)
  • Axiom IV:
  • Axiom V:

Circle Inversion

Circle Inversion

Given a circle with postive radius:

  • ∀O∈ℙ, r∈ℝ r > 0
  • ∀A∈ℙ (A ≠ O) ⟹ ∃ A'
    • A ⧳ (O A') ∨ A' ⧳ (O A)
    • |A - O| × |A' - O| = r2

Every point except the center has an inversion point with the above properties.

Inversion Lengths

∀A∈ℙ (A ≠ O) ⟹ ∃ A'

  • |A - O| × |A' - O| = r2
  • |A' - O| = r2 / |A - O|

Inversion Bijection

∀A∈ℙ (A ≠ O) ∃ A' ∧ A' ≠ O ⟹ ∃ A'' ⟹ A'' = A

  • |A - O| × |A' - O| = r2 ⟹ |A' - O| = r2 / |A - O|
  • (r2 > 0) ∧ (|A - O| > 0) ⟹ r2 / |A - O| > 0
  • r2 / |A - O| > 0 ⟹ |A' - O| > 0 ⟹ A' ≠ O
  • |A'' - O| = r2 / |A' - O| = |A - O|
  • A'' ⧳ (O A') ∨ A' ⧳ (O A'')
    A'' ⧳ (O A) ∨ A ⧳ (O A'') ⟹ A'' = A

Inversion is a bijection between inside and outside.

Circles and Lines

Similar Triangles

Similar Triangles

  • ∠ A O B = ∠ A' O B' ⟹ ∡ A O B = ±∡ B' O A'
  • |A - O| / |B' - O| = |B - O| / |A' - O|
    • r2 = r2 ⟹ |A - O| × |A' - O| = |B - O| × |B' - O|
    • |A - O| / |B' - O| = |B - O| / |A' - O|
  • △AOB ~ △B'OA'
    |A' - B'| / |A - B| = |B' - O| / |A - O| =
    |A' - O| / |B - O|

Inversion Distances

We can use similar triangles to find the distance between inverted points in terms of original points

  • |A' - B'| / |A - B| = |B' - O| / |A - O|
  • |A' - B'| = |A - B| × |B' - O| / |A - O|
  • |A' - B'| = |A - B| × r2 / (|A - O| × |B - O|)

Cyclic Quadrilateral

Ptolemy's Theorem

Given a cyclic quadrilateral with points A, B, C and D we can create a inversion circle with center D and radius r > 0. Because the circle on which points A, B and C lie goes through the origin, D, the points A', B' and C' lie on a line.

|A' - B'| + |B' - C'| = |A' - C'|

Ptolemy's Theorem

  • |A' - B'| + |B' - C'| = |A' - C'|
  • |A - B| × r2 / (|A - D| × |B - D|) +
    |B - C| × r2 / (|B - D| × |C - D|) =
    |A - C| × r2 / (|A - D| × |C - D|)
  • |A - B| × |C - D| + |B - C| × |A - D| =
    |A - C| × |B - D|

Ptolemy's Theorem

Pythagoras' Theorem

Suppose our cyclic quadrilateral is a rectangle.

  • (|A - B| = |C - D|) ∧ (|B - C| = |A - D|) ∧
    (|A - C| = |B - D|)
  • |A - B| × |A - B| + |B - C| × |B - C| =
    |A - C| × |A - C|
  • |A - B|2 + |B - C|2 = |A - C|2

Vector Algebra

Vectors

A vector is the difference between two points. We will call the set of all vectors 𝕍

  • Axiom: ∀A,B∈ℙ ∃v∈𝕍 (B - A) = v
  • Axiom: ∀ v∈𝕍 ∀A∈ℙ ∃B∈ℙ (A + v) = B

Vectors

Vector Addition

Any two vectors can be added by placing the tail of the second at the head of the first: tip-to-tail

  • Closed: ∀v, u ∈𝕍 v + u ∈𝕍
  • Commutative: ∀v, u ∈𝕍 v + u = u + v
  • Associative: ∀v, u, w ∈𝕍 (v + u) + w = v + (u + w)
  • Identity: ∃0 ∈𝕍 ∀v ∈𝕍 v + 0 = v
  • Inverses: ∀v ∈𝕍 ∃-v ∈𝕍 v + (-v) = 0

Vectors

Scalars

Any real number can be multiplied by a vector to produce another vector.

  • Axiom: ∀a∈ℝ ∀v∈𝕍 a × v = av ∈ 𝕍
  • Axiom: ∀a,b∈ℝ ∀v∈𝕍 av + bv = (a + b)v

Scalar Multiples

Zero Vector

Only the zero vector lacks direction

  • ∀A∈ℙ A - A = 0
  • ∀A∈ℙ A + 0 = A
  • v∈𝕍 0v = 0
  • ∀a∈ℝ a0 = 0

Lines

Any two distinct points can be extended by taking the difference and multiplying by scalars to form a set with one point for every real number. We call such a set a line.

∀A,B∈ℙ (A ≠ B) ⟹ ∃{ A + a(B - A) : a∈ℝ }

∀A∈ℙ ∀v∈𝕍 (v0) ⟹ ∃{ A + av : a∈ℝ }

Distinct Points

Why do we need to distinct points to make a line?

  • ∀A,B∈ℙ ∃{ A + a(B - A) : a∈ℝ }
  • ∀A∈ℙ { A + a(A - A) : a∈ℝ } :: Substitute B:= A
  • { A + a0 : a∈ℝ } :: Zero Vector Axiom
  • { A + 0 } :: Zero Vector Axiom
  • { A } :: Zero Vector Axiom

We could have started with the third step for lines defined by a point and a vector.

Segments

A segment is a line with constraints.

∀A,B∈ℙ (A ≠ B) ⟹
∃{ A + a(B - A) : a∈ℝ ∧ (a ≥ 0) ∧ (a ≤ 1) }

Spanning

Any vector that can be produced by vector addition and scalar multiplication from a set of vectors is spanned by that set. The vectors that spans some set are considered a basis for that set.

V⊆𝕍 ⟹ SPAN(V) ≝
{ 0 + a0v0 + a1v1 + ... + anvn : ai∈ℝ vi∈V }

Spanning

Independence

A set of vectors is independent if no vector is spanned by the remaining vectors in the set:

V⊆𝕍 ⟹ INDEPENDENT(V) ≝
v∈V v ∉ SPAN(V ⊖ {v})

Independence

Planes

Any point with two independent vectors can form a plane. Vectors that are not independent cause this to devolve to a line or a single point.

∀A∈ℙ ∀ v, u ∈𝕍 INDEPENDENT({v, u}) ⟹
∃{ A + av + bu : a,b∈ℝ }

Basis

Any set of vectors that spans another set is called a basis for that set.

Dimensions

Any independent basis for a set of vectors has one vector for each dimension of that set.

  • 0 dimensions: {}
  • 1 dimension: {v1}
  • 2 dimensions: {v1, v2}
  • 3 dimensions: {v1, v2, v3}
  • ...

Representation

Any vector spanned by an independent basis can be unquiely represented by a set of scalars.

  • Possible (by defintion): a0v0 + a1v1 + ... + anvn
  • Unique (vectors can't reach one another):
    a0v0 + a1v1 + ... + anvn = b0v0 + b1v1 + ... + bnvn
    (a0 - b0)v0 + (a1 - b1)v1 + ... + (an - bn)vn = 0

Which Basis?

There are many possible sets of basis vectors. We conventionally think of the x axis pointing to the right, the y axis pointing up and the z axis pointing toward us.

Blechters

  • Tuple Sytle: v = ⟨v1, v2, v3
  • Column Style: v =
    v1
    v2

Most common ways to represent vectors are confusing and make dimensions rigid. Blech!

Arithmetic Vectors

Basis vectors and addition are already indispensable. Why not use them?

  • v = v1x + v2y + v3z
  • u = u1x + u2y
  • v + u = v1x + v2y + v3z + u1x + u2y =
    (v1 + u1)x + (v2 + u2)y + v3z

Zero is Literally Zero

Adding the zero vector leaves a vector unchanged. Guess what else does that?

  • v + 0u = v + 0 = v
  • 0 = 0x + 0y + 0z = 0

We could add non-zero scalars to vectors but that would be weird. Just because you can stick peas up your nose doesn't mean you should.

Trigonometry

Trigonometry of Circles

Circles and Angles

Angles and Circles

Inscribed Angles

Cyclic Quadrilateral

Geometric Algebra

Educating yourself in public is painful, but the lessons stick. — Peter Schjeldahl

Geometric Algebra extends vector spaces by introducing an invertable geometric product. Many forms of math, including complex numbers and quaternions, emerge in an intuitive way.

History

Geometric algebra is a mathematical lost city.

  • Euclid (~300 BCE): connected geometry & algebra
  • Hamilton (1843 CE): discovered quaternions
  • Grassman (1844 CE): systematic transformations
  • Clifford (1878 CE): created geometric product
  • Gibbs & Heavyside (18?? CE): vector analysis
  • Hestenes (1966): space-time algebra

Orthonormal Basis

We will use an orthonormal basis. That means all vectors are the same length and perpendicular to one another.

  • o1 = x
  • o2 = y
  • o3 = z
  • o4
  • ...

Multivectors

  • ℝ = <𝕄>0⊆𝕄 Scalars: a
  • 𝕍 = <𝕄>1⊆𝕄 Vectors: a1o1 + ...
  • <𝕄>2⊆𝕄 Bivectors: a1 o1 o2 + ...
  • <𝕄>3⊆𝕄 Trivectors: a1 o1 o2 o3 + ...
  • ...

Geometric Product

Multivectors 𝕄 and Blades 𝔹 ⊆ 𝕄

  • Closed: ∀a,b∈𝕄 (a × b) ∈𝕄
  • Associative: ∀a,b,c∈𝕄 (a × b) × c = a × (b × c)
  • Identity: ∃1𝕄∈𝕄 ∀a∈𝕄 a × 1𝕄 = 1𝕄 × a = a
  • Distributive: ∀a,b,c∈𝕄
    a × (b + c) = (a × b) + (a × c)
  • NOT Commutative: ¬(∀a,b∈𝕄 a × b = b × a)
  • Inverses: ∀a∈𝔹 ∃a-1∈𝔹 a × a-1 = a-1 × a = 1𝕄

Geometric Product

  • Hungry Zero: ∀i∈ℕ 0oi ≝ 0
  • Scalars Commute: ∀a∈ℝ ∀i∈ℕ aoioia
  • Scalars Distribute: ∀a,b∈ℝ ∀i∈ℕ
    aoi + boi ≝ (a + b) oi
  • Addition Commutes: ∀a,b∈ℝ ∀i,j∈ℕ
    aoi + boj ≝ boj + aoi
  • Bases Anticommute: ∀i,j∈ℕ (i ≠ j) ⟹ oioj ≝ -ojoi
  • Basis Signatures: ∀i∈ℕ oioi ≝ 1

First Outer Inner Last

(a + b) × (c + d) =
ac + bc + ad + bd

×cd
aacad
bbcbd

This follows from the distributive law. It could just as well be FIOL, OILF and so on.

FOIL Me Once...

(a + b + c) × (d + e + f) =
ad + ae + af + bd + be + bf + cd + ce + cf

×def
aadaeaf
bbdbebf
ccdcecf

Curses! FOIL'ed Again

(a1 + a2 + ...) × (b1 + b2 + ...) =
a1b1 + a1b2 + a2b1 + a2b2 + ...

×b1 b2...
a1 a1b1 a1b2...
a2 a2b1 a2b2...
............

Multiply Vectors

How do we multiply vectors? The same way we multiply anything.

  • v = v1o1 + v2o2 + ...
  • u = u1o1 + u2o2 + ...
  • v × u = v u = v1o1 u1o1 + v1o1 u2o2 +
    v2o2 u1o1 + v2o2 u2o2 + ...

We can think of basis vectors like variables.

Simplify

v u = v1o1 u1o1 + v1o1 u2o2 +
v2o2 u1o1 + v2o2 u2o2 + ...

  • Commute Scalars:
    v u = v1u1 o1o1 + v1u2 o1o2 + v2u1 o2o1 + v2u2 o2o2 + ...
  • Basis Signatures: o1o1 = o2o2 = ... = 1
    v u = v1u1 + v2u2 + v1u2 o1o2 + v2u1 o2o1 + ...
  • Bases Anticommunte: o2o1 = -o1o2
    v u = v1u1 + v2u2 + (v1u2 - v2u1) o1o2 + ...

Geometric Operators

  • Scalar Product: v · u ≝ < v u >0
  • Conjugate: (a o1 o2 ... on - 1 on) ≝ a on on - 1 ... o2 o1
    • Quadrance: ⊠(M) ≝ M M
    • Norm: |M| ≝ +√(M M)
    • Inverse: M-1 ≝ M / (M M)
  • Grade Involution: ∀A∈𝕄 A^∈𝕄

Scalar Product

∀A,B∈𝕄 A · B ≝ <A B>0

  • ∀i∈ℕ oi · oi = <oi oi>0 = <1>0 = 1
  • ∀i,j∈ℕ (i ≠ j) ⟹ oi · oj = <oi oj>0 = 0
  • ∀a,b∈ℝ,C,D∈𝕄 (a C) · (b D) = <(a C) (b D)>0 =
    <(a b C D)>0 = a b <(C D)>0 = a b (C · D)

Scalar Product

v u = v1u1 + v2u2 + (v1u2 - v2u1) o1o2 + ...

v · u = v1u1 + v2u2 + (v1u2 - v2u1) o1 · o2 + ...

The scalar product is the geometric product with non-scalar terms discarded. It's always commutative.

Vector Scalar Product

v·u u1o1 u2o2 u3o3 ...
v1o1 v1u1 o1 · o1 v1u2 o1 · o2 v1u3 o1 · o3 ...
v2o2 v2u1 o2 · o1 v2u2 o2 · o2 v2u3 o2 · o3 ...
v3o3 v3u1 o3 · o1 v3u2 o3 · o2 v3u3 o3 · o3 ...
...............

Conjugate

∀M∈𝕄 ∃M∈𝕄

  • Term: ∀a∈ℝ (a o1 o2 ... on - 1 on) ≝ a on on - 1 ... o2 o1
  • Sum: ∀M,N∈𝕄 (M + N) ≝ M + N
  • Product: ∀M,N∈𝕄 (M N) ≝ (N M)

A conjugate reverses basis component order.
Obviously (M) = M

Conjugate Examples

a (o1 o2 ... on - 1 on) ≝ a on on - 1 ... o2 o1 =
±a o1 o2 ... on - 1 on

  • ∀a ∈ <𝕄>0 a = a
  • v ∈ <𝕄>1 (v1o1 + v2o2 + ...) = v1o1 + v2o2 + ...
  • B ∈ <𝕄>2 (b1o1 o2 + b2o2 o3 + b3o1 o3 + ...) =
    b1o2 o1 + b2o3 o2 + b3o3 o1 + ...
    =
    -b1o1 o2 - b2o2 o3 - b3o1 o3 - ...
    B = -B
  • ∀M∈𝕄 (<M>i) = (-1)i(i - 1)/2 <M>i ⟹ + + - - + + ...

Quadrance

Multiply a multivector by its conjugate to get the quadrance (Wildberger 2005).

∀M∈𝕄 ⊠(M) ≝ M M

  • ∀a∈ℝ ⊠(a) = a a = a a = a2
  • v∈𝕍 ⊠(v) = v v = v v = v · v = v2
  • B∈ <𝕄>2 ⊠(B) = B B = B -B = -B2

Norm

A multivector with a scalar quadrance has a norm.

∀M∈𝕄 (⊠(M) = M·M) ⟹ ⊠(|M|) ≝ ⊠(M) = M M

  • |M|2 = M M
  • |M| = +√(M M)
  • |v|2 = v v = (v1o1 + v2o2 + ...) (v1o1 + v2o2 + ...) =
    v1v1 + v2v2 + (v1v2 - v2v1) o1o2 + ...
    = v1v1 + v2v2 + ...

No Norm

What kind of multivector has no norm?

  • ⊠(1 + o1) = (1 + o1) (1 + o1) = 2 + 2o1
  • ⊠(o1 o2 + o3 o4) = (o1 o2 + o3 o4) (o1 o2 + o3 o4) =
    (o1 o2 + o3 o4) (o2 o1 + o4 o3)
    = 2 - 2 o1 o2 o3 o4

Scalars, vectors, pseudo-vectors and pseudo-scalars always have norms.

Inverse

A multivector with non-zero scalar quadrance has an inverse. We call such multivectors blades.

  • 𝔹 = { B∈𝕄 : (⊠(B) = B · B) ∧ (⊠(B) ≠ 0) }
  • B𝔹 B-1B / ⊠(B) = B / (B B)
  • B B-1 = B (B / (B B)) = (B B) / (B B) = 1
  • B-1B = (B / (B B)) B = (B B) / (B B) =
    (B B) / (B B)
    = (B B) / (B B) = 1

Multivectors as Blade Sums

TODO: prove that all mutlivectors can be decomposed into sums of blades

Grade Involution

  • ∀A,B∈𝕄 (A + B)^ ≝ A^ + B^
  • ∀i∈ℕ ∀A∈<𝔹>i A^ ≝ (-1)iA

(o1 o2 ... on - 1 on)^ = (-1)n o1 o2 ... on - 1 on

on+1 (o1 o2 ... on - 1 on)^ = o1 o2 ... on - 1 on on + 1

Outer Product

∀ i∈ℕ, a∈𝕍, B∈𝔹
a ^ B ≝ (a B + B^ a) / 2
B ^ a ≝ (B a + a B^) / 2

The outer product (or wedge product) is defined in terms of the geometric product and the grade involution operator.

Outer Product

Let's observe some consequences of the definition:

  • ∀i∈ℕ oi ^ oi = (oi oi + oi^ oi) / 2 = (oi oi - oi oi) / 2 = 0
  • ∀i,j∈ℕ (i ≠ j) ⟹ oi ^ oj = (oi oj + oj^ oi) / 2 =
    (oi oj - oj oi) / 2
    = (oi oj + oi oj) / 2 = 2 oi oj / 2 = oi oj
  • ∀a,b∈ℝ,C,D∈𝕄 (a C) ^ (b D) = a b (C ^ D)
  • ∀A,B,C∈𝕄 (A + B) ^ C = (A ^ C) + (B ^ C)

Vector Outer Product

v u = v1u1 + v2u2 + (v1u2 - v2u1) o1o2 + ...

v ^ u = v1u1 o1 ^ o1 + v2u2 o2 ^ o2 +
(v1u2 - v2u1) o1 ^ o2 + ...

The outer (or wedge) product is the geometric product with all terms containing duplicate basis vectors dropped.

Vector Outer Product

v^u u1o1 u2o2 u3o3 ...
v1o1 v1u1 o1 ^ o1 v1u2 o1 ^ o2 v1u3 o1 ^ o3 ...
v2o2 v2u1 o2 ^ o1 v2u2 o2 ^ o2 v2u3 o2 ^ o3 ...
v3o3 v3u1 o3 ^ o1 v3u2 o3 ^ o2 v3u3 o3 ^ o3 ...
...............

Anticommutative Vectors

v^u u1o1 u2o2 u3o3 ...
v1o1 v1u1 o1o1 v1u2 o1o2 v1u3 o1o3 ...
v2o2 v2u1 o2o1 v2u2 o2o2 v2u3 o2o3 ...
v3o3 v3u1 o3o1 v3u2 o3o2 v3u3 o3o3 ...
...............
u^v v1o1 v2o2 v3o3 ...
u1o1 u1v1 o1o1 u1v2 o1o2 u1v3 o1o3 ...
u2o2 u2v1 o2o1 u2v2 o2o2 u2v3 o2o3 ...
u3o3 u3v1 o3o1 u3v2 o3o2 u3v3 o3o3 ...
...............
  • v^u = (v1u2 - v2u1) o1o2 + (v1u3 - v3u1) o1o3 +
    (v2u1 - v1u2) o2o1 + ... = -u^v
  • u^v = (u1v2 - u2v1) o1o2 + (u1v3 - u3v1) o1o3 +
    (u2v1 - u1v2) o2o1 + ... = -v^u

Outer Product Zen

Let's notice some important properties...

  • Zero Selfies: v ^ v = (v1v2 - v2v1) o1o2 + ... = 0
  • Stretch Out: av ^ bv = (av1bv2 - av2bv1) o1o2 + ... = av ^ bv = ab(v1v2 - v1v2) o1o2 + ... ... = 0

Outer Product Independence

  • v ^ u ^ v ^ ... = v ^ -(v ^ u) ^ ... =
    - v ^ v ^ u ^ ...
    = 0 ^ u ^ ... = 0
  • v ^ u ^ (av + bu) ^ ... =
    ((v ^ u ^ av) + (v ^ u ^ bu)) ^ ...
    =
    (-a (v ^ v ^ u) + b (v ^ u ^ u)) ^ ...
    =
    (0 + 0) ^ ... = 0

A set of vectors is independent exactly when we can wedge them together and not get zero!

Contraction

∀ i∈ℕ, a∈<𝔹>1, B∈𝔹
aB ≝ (a B - B^ a) / 2
Ba ≝ (B a - a B^) / 2

The contraction is defined in terms of the geometric product and the grade involution operator. The use of subtraction means it is not always associative.

Contraction

TODO: turn these into theorems

  • ∀a,b∈ℝ,C,D∈𝕄 (a C)⌋(b D) ≝ a b (C⌋D)
  • ∀A,B,C∈𝕄 (A + B)⌋C ≝ A⌋C + B⌋C
  • ∀A∈<𝕄>i, B∈<𝕄>j A⌋B∈<𝕄>j - i

Contraction Examples

  • o1o1o2o3 = o2o3
  • o1o2o3 = 0 = o1o2o2o3
  • o2o3o1o2o3 = -o1

Contraction

v u = v1u1 + v2u2 + (v1u2 - v2u1) o1o2 + ...

vu = v1u1 + v2u2 + v1u2 o1o2 + v2u1 o2o1 + ...

The contraction is the geometric product with terms that don't contract discarded. It's isomorphic to the scalar product for vectors but can be used to compute duals.

Vector Contraction

vu u1o1 u2o2 u3o3 ...
v1o1 v1u1 o1o1 v1u2 o1o2 v1u3 o1o3 ...
v2o2 v2u1 o2o1 v2u2 o2o2 v2u3 o2o3 ...
v3o3 v3u1 o3o1 v3u2 o3o2 v3u3 o3o3 ...
...............

Ptolemy's Identities

cos(α - β) = cosα cosβ + sinα sinβ

Angle Measure

  • ŵ = ŵ1x + ŵ2y
  • û = û1x + û2y
  • ŵ · û = ŵ1û1 + ŵ2û2
  • ŵ = cosα x + sinα y
  • û = cosβ x + sinβ y
  • ŵ · û = cosα cosβ + sinα sinβ
  • ŵ · û = cos(α - β)
  • w · u = (|w|ŵ) · (|u|û) = |w||u| ŵ · û
  • w · u = |w||u| cos(α - β)
  • α - β = cos-1(w · u (w w u u) -1/2)

Any pair of vectors can be represented in a two dimensional basis, so this formula always applies.

Vector Product Identity

v u = v·u + v^u =
(v1u1 + v2u2 + ...) + ((v1u2 - v2u1) o1o2 + ...)

Because the vector contraction and wedge products discard complementary terms their sum is equal to the geometric product. (This is not true for general multivectors.)

Geometric Miscellaneous

  • Parallel and Perpendicular
  • Pseudo-Scalars
  • Dual
  • Cross Product

Parallel and Perpendicular

We're ready to formally define some familiar terms:

  • Parallel: ∀A,B∈𝕄 A∥B ⟺ A B = A ⌋ B
  • Perpendicular: ∀A,B∈𝕄 A⟂B ⟺ A B = A ^ B

Pseudo-Scalars

  • I1 = o1
  • I2 = o1o2
  • I3 = o1o2o3
  • ...

Multiply all basis vectors in order to create a multi-vector that represents the entire space. This can only ever have a single term, much like a scalar.

Pseudo-Scalar Inverse

What does the inverse of a pseudo-scalar look like?

  • (o1 ... on)-1 = (o1 ... on) / ((o1 ... on) (o1 ... on)) =
    (on ... o1) / (o1 ... on on ... o1)
    = (on ... o1) = (o1 ... on)
  • In-1 = In

Positive signature pseudo-scalars have inverses equal to their conjugates.

Dual

∀M∈𝕄 ∃M*∈𝕄 M* = M⌋In-1

A dual subtracts parts of a space from a multivector and returns the rest.

  • (v1o1 + v2o2) ⌋I2-1 = (v1o1 + v2o2) ⌋o2 o1 = v2o1 - v1o2
  • (v1o1 + v2o2 + v3o3) ⌋I3-1 = v2o1 o3 - v1o2 o3 - v3o1 o2

Cross Product

vu =
(v ^ u)⌋ (o1 o2 o3)-1
= (v ^ u)⌋ o3 o2 o1

The cross product is the three dimensional dual of the wedge product.

And yes, it's Evil, Bad and Wrong.

Cross Product

Any time you encounter a cross product someone is trying to hide a bivector!

  • Normal vectors: dual bivectors
  • Axial vector: dual bivectors again
  • Angular momentum (r × p): actually a bivector
  • Curl (∇ × F): guess what? Bivector!
  • Maxwell's Equation (Singular!): ∇ F = (c ε0)-1 J

Rotation

Let's turn our attention to... turning.

Bivector Basis

What happens when we square o1o2?

  • (o1 o2)2 = (o1 o2) (o1 o2)
  • (o1 o2)2 = (o1 o2 o1 o2)
  • (o1 o2)2 = -(o1 o1 o2 o2)
  • (o1 o2)2 = -(1)(1) = -1
  • o1 o2 = i

Imaginary numbers are NOT imaginary!

Complex Numbers

Complex numbers are NOT complex!

The geometric product of a pair of two dimensional vectors is ismorphic to a complex number.

  • vu = (v1u1 + v2u2) + (v1u2 - v2u1)o1 o2 = a + bi
  • (vu) = (a + bo1 o2) = a + bo2 o1 = a - bo1 o2 = a - bi

Quaternions

Let's tame these too! Every product of a pair of three dimensional vectors is isomorphic to a quaternion. Quaternion multiplication is the geometric product.

  • vu = (v1u1 + v2u2 + v3u3) + (v1u2 - v2u1)o1 o2 +
    (v2u3 - v3u2)o2 o3 + (v1u3 - v3u1)o1 o3 = a + bi + cj + dk
  • (vu) = a - bi - cj - dk
  • ij = (o1 o2)(o2 o3) = o1 o3 = k
  • ji = (o2 o3)(o1 o2) = o3 o1 = -o1 o3 = -k

Octonians

Curiously, octonians almost match the product of a pair of four dimensional vectors, but not quite. Octonians are NOT associative, unlike the geometric product.

Octonion Basis

eiej 1e1 e2e3 e4e5 e6e7
1 1e1 e2e3 e4e5 e6e7
e1 e1-1 e3-e2 e5-e4 -e7e6
e2 e2-e3 -1e1 e6e7 -e4-e5
e3 e3e2 -e1-1 e7-e6 e5-e4
e4 e4-e5 -e6-e7 -1e1 e2e3
e5 e5e4 -e7e6 -e1-1 -e3e2
e6 e6e7 e4-e5 -e2e3 -1-e1
e7 e7-e6 e5e4 -e3-e2 e1-1

Vector Products in 4D

Basis 1o1o2 o2o3 o1o3 o1o4 o2o4 o3o4 o1o2o3o4
1 1o1o2 o2o3 o1o3 o1o4 o2o4 o3o4 o1o2o3o4
o1o2 o1o2-1 o1o3 -o2o3 -o2o4 o1o4 o1o2o3o4 -o3o4
o2o3 o2o3 -o1o3 -1 o1o2 o1o2o3o4 -o3o4 o2o4 -o1o4
o1o3 o1o3 o2o3 -o1o2-1 o3o4 o1o2o3o4 -o1o4 -o2o4
o1o4 o1o4 o2o4 o1o2o3o4 o3o4 -1 -o1o2 -o1o3 -o2o3
o2o4 o2o4 -o1o4 o3o4 -o1o2o3o4 o1o2 -1 -o2o3 o1o3
o3o4 o3o4 o1o2o3o4 -o2o4 -o1o4 o1o3 o2o3 -1 o1o2
o1o2o3o4 o1o2o3o4 -o3o4 o1o4 o2o4 -o2o3 o1o3 -o1o2 1

Interlude: Meaning of Life

Division Algebras

  • Real Numbers (1D vectors)
  • Complex Numbers (2D vectors)
  • Quaternions (3D vector)
  • Octonians (NOT 4D vectors)

Reality

  • Space
  • Space
  • Space
  • Time

Reflection

Projection and Rejection

v = v∥u + v⟂u

Any vector can be broken down into a projection and a rejection with respect to another vector.

Projection and Rejection

Rejection Reflection

Reflection is achieved by subtracting the rejection instead of adding it.

  • Original: v = v∥u + v⟂u
  • Reflection: v' = v∥u - v⟂u

Reflection

Projection

  • v∥û = |v||û| cosθ û = (v · û) û
  • u = |u|û û = u/|u|
  • v∥u = (v · (u/|u|)) u/|u| = (v·u) u/|u|2
  • u-1 = u (u u)-1 = u/|u|2
  • v∥u = (v·u) u-1

Rejection

  • v = v∥u + v⟂u v⟂u = v - v∥u
  • v⟂u = v - (v·u) u-1
  • v⟂u = v (u u-1) - (v·u) u-1 = (v u) u-1 - (v·u) u-1
  • v⟂u = (v u - v·u) u-1
  • v u = v·u + v^u v^u = v u - v·u
  • v⟂u = (v^u) u-1

Projection and Rejection

Geometric algebra gives us an elegant and compact way to understand these operations.

  • Projection: v∥u = (v·u) u-1
  • Rejection: v⟂u = (v^u) u-1
  • v∥u + v⟂u = (v·u) u-1 + (v^u) u-1 =
    (v·u + v^u) u-1
    = (v u) u-1 = v (u u-1) = v

Reflection

  • v' = v∥u - v⟂u
  • v' = (v·u) u-1 - (v^u) u-1
  • v' = (v·u - v^u) u-1
  • v' = (u·v + u^v) u-1
  • v' = (u v) u-1 = u v u-1

A reflection is performed by multiplying from the left and dividing from the right.

Reflection Reflection

What happens if we reflect twice?

Reflection Reflection

Rotation

Reflecting twice preserved the vector length but changed its orientation. What else does that?

Reflecting across two vectors is a rotation!

  • v'' = w (u v u-1) w-1
  • v'' = (w u) v (u-1 w-1)
  • v'' = (w u) v (w u)-1

Rotation

This works in any number of dimensions. Multiply by a vector product (complex number, quaternion and so on) to rotate and scale. Divide afterward to undo the scaling -- and double the rotation angle.

Notice that the sum of two vectors is halfway between them in angle. Use this in place of one of the vectors to rotate by the exact angle.

Exponential Rotation

How can we interpolate a rotation?

  • Euler's Formula: eiθ = cos(θ) + isin(θ)
  • Less Imaginary: eo1o2 θ = cos(θ) + o1o2sin(θ)
  • B ∈<𝔹>2 eBθ = eI|B|θ = cos(|B|θ) + Isin(|B|θ)
  • I ∈<𝔹>2 (I I = 1) ⟹ vrot Iθ = eIθ/2 v e-Iθ/2

Use this to produce intermediate rotations. Some irrational computation required.

Cramer's Rule

A direct way to uncover the components of a vector for a given basis.

v = v1b1 + v2b2 + ...

  • v1 = (v ^ b2 ^ ...) (b1 ^ b2 ^ ...)-1
  • v2 = (b1 ^ v ^ ...) (b1 ^ b2 ^ ...)-1
  • ...

Wedge 2D

u^v = (u1o1 + u2o2) ^ (v1o1 + v2o2)

  • u^v = u1v1 o1o1 + u1v2 o1o2 + u2v1 o2o1 + u2v2 o2o2
  • u^v = u1v2 o1o2 - u2v1 o1o2
  • u^v = (u1v2 - u2v1) o1o2

Doesn't that formula seem familiar?

Wedge 3D

u ^ v ^ w = (u1o1 + u2o2 + u3o3) ^
(v1o1 + v2o2 + v3o3) ^ (w1o1 + w2o2 + w3o3)

  • u ^ v ^ w = ((u1v2 - u2v1) o1o2 + (u2v3 - u3v2) o2o3 + (u1v3 - u3v1) o1o3) ^ (w1o1 + w2o2 + w3o3)
  • u ^ v ^ w = (u1v2 - u2v1) w3 o1o2o3 +
    (u2v3 - u3v2) w1 o2o3o1 + (u1v3 - u3v1) w2 o1o3o2
  • u ^ v ^ w = ((u2v3 - u3v2) w1 -
    (u1v3 - u3v1) w2 + (u1v2 - u2v1) w3) o1o2o3

Determinants

  • (v1 ^ v2) ⌋ (o1 o2)-1
  • (v1 ^ v2 ^ v3) ⌋ (o1 o2 o3)-1
  • (v1 ^ v2 ^ v3 ^ v4) ⌋ (o1 o2 o3 o4)-1
  • ...

A determinant is the dual of a pseudo-scalar created by wedging n n-dimensional vectors.

Wedge Solution 2D

v1b1 + v2b2 = v

Given b1, b2 and v solve for v1 and v2

  • (v1b1 + v2b2) ^ b2 =
    v ^ b2
  • v1 b1 ^ b2 + v2 b2 ^ b2 =
    v ^ b2
  • v1 b1 ^ b2 + 0 = v ^ b2
  • v1 = (v ^ b2) (b1 ^ b2)-1
  • b1 ^ (v1b1 + v2b2) =
    b1 ^ v
  • v1 b1 ^ b1 + v2 b1 ^ b2 =
    b1 ^ v
  • 0 + v2 b1 ^ b2 = b1 ^ v
  • v2 = (b1 ^ v) (b1 ^ b2)-1

System of Equations

  • 3v1 + 2v2 = 5
  • v1/2 - 2v2 = 1
  • v = 5o1 + o2
  • b1 = 3o1 + o2/2
  • b2 = 2o1 - 2o2
  • b1 ^ b2 = -7o1o2
  • (b1 ^ b2)-1 = 1/7o1o2
  • v1 = (v ^ b2) (b1 ^ b2)-1
  • v1 = -(-10 - 2)(1/7) = 12/7
  • v2 = (b1 ^ v) (b1 ^ b2)-1
  • v2 = -(3 - 5/2)(1/7) = -1/14

Wedge Solution 3D

v1b1 + v2b2 + v3b3 = v

Given b1, b2, b3 and v solve for v1, v2 and v3

  • (v1b1 + v2b2 + v3b3) ^ (b2 ^ b3) =
    v ^ (b2 ^ b3)
  • v1 b1 ^ b2 ^ b3 + v2 b2 ^ b2 ^ b3 +
    v3 b3 ^ b2 ^ b3 = v ^ b2 ^ b3
  • v1 b1 ^ b2 ^ b3 + 0 - 0 = v ^ b2 ^ b3
  • v1 = (v ^ b2 ^ b3) (b1 ^ b2 ^ b3)-1
  • b1 ^ (v1b1 + v2b2 + v3b3) ^ b3 =
    b1 ^ v ^ b3
  • v1 b1 ^ b1 ^ b3 + v2 b1 ^ b2 ^ b3 +
    v3 b1 ^ b3 ^ b3 = b1 ^ v ^ b3
  • 0 + v2 b1 ^ b2 ^ b3 + 0 = b1 ^ v ^ b3
  • v2 = (b1 ^ v ^ b3) (b1 ^ b2 ^ b3)-1
  • (b1 ^ b2) ^ (v1b1 + v2b2 + v3b3) =
    (b1 ^ b2) ^ v
  • v1 b1 ^ b2 ^ b1 + v2 b1 ^ b2 ^ b2 +
    v3 b1 ^ b2 ^ b3 = b1 ^ b2 ^ v
  • -0 + 0 + v3 b1 ^ b2 ^ b3 = b1 ^ b2 ^ v
  • v3 = (b1 ^ b2 ^ v) (b1 ^ b2 ^ b3)-1

Wedge Solution

This approach works for any number of dimensions as long as the determinant is not zero.

v1b1 + v2b2 + ... = v

  • (v1b1 + v2b2 + ...) ^ (b2 ^ ...) = v ^ (b2 ^ ...)
  • v1b1 ^ (b2 ^ ...) = v ^ b2 ^ ...
  • v1 = (v ^ b2 ^ ...) (b1 ^ b2 ^ ...)-1
  • v2 = (b1 ^ v ^ ...) (b1 ^ b2 ^ ...)-1
  • ...

Conformal Model

Models

Space Point Direction Advantage
Standard n Vector Vector Simple
Homogeneous n + 1 p · o0 ≠ 0 v · o0 = 0 Linear
Conformal n + 1, 1 p · p = 0 ∧
- · p ≠ 0
v · v ≠ 0 ∧
- · v = 0
Structure
Preserving

Standard Points

p∈𝔼 pp

  • p∈ℙ ∃p∈𝔼 p = p
  • p∈ℙ ∀p, q ∈𝔼 (p = p) ∧ (p = q) ⟹ p = q
  • Origin: o0 = 0

There's a one-to-one correspondence between points and vectors in the standard model.

Standard Distance

distance2(p, q) ≝ ⊠(p - q) = (p - q) (p - q)

Subtract to get a vector between the points and then take the norm of that.

Signature Change

Basis signatures, updated:

∀i∈ℕ oioi = 1

To support the homogeneous model we introduce a non-Euclidean o0 lexigraphically before the x axis. This extra dimension gives a weight to each point representation.

Homogeneous Points

∀a∈ℝ, p∈𝔼 p ≝ a (o0 + p)

  • WEIGHT(p) ≝ p · o0 = a o0 · o0 + a p · o0 = a
  • NORMAL(p) ≝ p / WEIGHT(p) = p / (p · o0)
  • ∀a∈ℝ (a ≠ 0) ⟹ NORMAL(ap) = NORMAL(p)
  • p = ((p / (p · o0)) ^ o0) o0-1 Rejection!

Homogeneous Distance

distance2(p, q) ≝ ⊠((p / p · o0) - (q / q · o0)) =
((p / p · o0) - (q / q · o0)) ((p / p · o0) - (q / q · o0))

Normalizing first ensures that the o0 component does not contribute to the distance metric.

Negative Signature

Basis signatures, updated:

  • ∀a∈ℕ oaoa = 1
  • ∀a∈ℕ iaia = -1

To support the conformal model we introduce o0 with positive signature (o02 = 1) and i0 with negative signature (i02 = -1).

Euclidean Vectors

𝔼 ≝ { v : v ∈ <𝕄>1 ∧ (v · o0 = 0) ∧ ∀a∈ℕ (v · ia = 0)}

All vectors we've considered so far can be represented using positive signature orthonormal basis terms with indices greater than zero. Before we expand on this, let's name them.

Minkowski Plane

o0i0

A Minkowski space mixes basis vectors of positive and negative signature. We will refer to the two basis vectors we've added to the Euclidean space as the Minkowski plane for this reason.

Origin and Infinity

Meet the null vectors:

o ≝ (i0 + o0) / 2 i0 - o0
  • o2 = (i02 + i0 o0 + o0 i0 + o02) / 4 = (-1 + 1) / 4 = 0
  • 2 = i02 - i0 o0 - o0 i0 + o02 = -1 + 1 = 0

Both have zero quadrance and exist entirely within the Minkowski plane.

Origin and Infinity

Both are orthogonal to the base space:

  • v∈𝔼 o · v = (i0 + o0)/2 · (v1o1 + v2o2 ...) = 0 =
    v1/2 i0 o1 + v1/2 o0 o1 + v2/2 i0 o2 + v2/2 o0 o2 + ...
  • v∈𝔼 · v = (i0 - o0) · (v1o1 + v2o2 ...) = 0 =
    v1 i0 o1 - v1 o0 o1 + v2 i0 o2 - v2 o0 o2 + ...
  • o v = o ^ v + o · v = - v ^ o - v · o = - v o
  • v = ^ v + · v = - v ^ - v · = - v

Origin and Infinity

Putting them together...

  • o · = (i0i0 - o0o0)/2 = (-1 - 1) / 2 = -1 = · o
  • o ^ = (-i0o0 + o0i0) / 2 = (o0i0 + o0i0) / 2 = o0i0
  • o = o ^ + o · = o0i0 - 1
  • o = (i0 - o0) (o0i0 - 1) = i0o0i0 - i0 - o0o0i0 + o0 =
    o0 - i0 - i0 + o0
    = 2o0 - 2i0 = 2(o0 - i0) = -2

Other Null Vectors

p = o + p + a

  • p2 = (o + p + a) (o + p + a) = o2 + o p + a o ∞ + p o + p2 + a p + a ∞ o + a p + a2 2
  • p2 = p2 + o p + p o + a p + a p + a (o ∞ + ∞ o)
  • p2 = p2 + 2a (o · ) = p2 + 2a (-1) = p2 - 2a
  • p2 = 0 ⟺ p2 - 2a = 0 ⟺ a = p2/2

Conformal Points

p ≝ w (o + p + p2/2 )

  • WEIGHT(p) ≝ - · p =
    -w · o + -w · p + -w · p2/2
    = -w (-1) = w
  • WEIGHT(o) = - · o = -(-1) = 1
  • NORMAL(p) ≝ p / WEIGHT(p) = p / (- · p)
  • ∀a∈ℝ (a ≠ 0) ⟹ NORMAL(ap) = NORMAL(p)
  • p = ((p / (- · p)) ^ o ^ ) (o ^ )-1

Conformal Distance

distance2(p, q) ≝ -2 (p / (- · p)) · (q / (- · q))

No subtraction is necessary?

  • p · q = (o + p + p2/2 ) · (o + q + q2/2 )
  • p · q = o · o + o · q + o · q2/2 + p · o + p · q + p · q2/2 + p2/2 · o + p2/2 · q + p2/2 · q2/2
  • p · q = p · q - q2/2 - p2/2
  • p · q = -1/2 (p · p - 2 p · q + q · q)
  • p · q = -1/2 (p - q) · (p - q) = -1/2 ⊠(p - q)
  • -2 (p · q) = ⊠(p - q)

Euclidean Versors

pv = V p V-1

  • Rotation(θ, I): Vr = eIθ/2 = cos(θ/2) + Isin(θ/2)
  • Translation(t): Vt = et/2 = 1 + t/2
  • Dilation(a): Vd = eao^/2 = cosh(a/2) + o^ sinh(a/2)

Euclidean versors preserve the point at infinity:
V V-1 =

Translation

Vt ≝ et/2 = 1 + t/2 = 1 - t/2

  • pt = Vt p Vt-1 = (1 + t/2) (o + p + p2/2) (1 - t/2)
  • pt = (o + p + p2/2 + to/2 + tp/2 +
    p2/4 t ) (1 - t/2)
  • pt = o + p + p2/2 + to/2 + tp/2 - ot/2 - pt/2 - p2 t/4 - to∞t/4 - t p t/4
  • pt = o + p + p2/2 + to/2 - ot/2 +
    tp/2 - pt/2 - to∞t/4
  • ...

Translation (Continued)

  • pt = o + p + p2/2 + (to/2 - ot/2) + (tp/2 - pt/2) - to∞t/4
  • pt = o + p + p2/2 - (o + o) t/2 + (tp + pt)/2 + to∞t/4
  • pt = o + p + p2/2 - ( · o) t + (t · p) + t(-2)t/4
  • pt = o + p + p2/2 + t + (t · p) + t2 /2
  • pt = o + (p + t) + (p2 + 2p·t + t2)/2
  • pt = o + (p + t) + (p + t)2/2

Translation of Infinity

Vt Vt-1 = (1 + t/2) (1 - t/2)

  • Vt Vt-1 = ( + t /2) (1 - t/2)
  • Vt Vt-1 = - t/2
  • Vt Vt-1 =

Translation preserves the point at infinity, which makes it a Euclidean transformation.

Rotation of Infinity

Vr Vr-1 = (cos(θ/2) + Isin(θ/2)) (cos(θ/2) - Isin(θ/2))

  • Vr Vr-1 = (cos(θ/2) + Isin(θ/2))
    (cos(θ/2) - Isin(θ/2)) = cos2(θ/2) - sin(θ/2) cos(θ/2) I + sin(θ/2) cos(θ/2) I - sin2(θ/2) I I
  • Vr Vr-1 = cos2(θ/2) - sin2(θ/2) I2 =
    (cos2(θ/2) + sin2(θ/2))
    = (1)
  • Vr Vr-1 =

Euclidean rotation preserves the point at infinity.

Versor Composition

What if we want to do more than one operation?

pab = Vb (Va p Va-1) Vb-1 =
(Vb Va) p (Vb Va)-1

Versors can be composed using multiplication, which is efficient when many objects must be transformed. Order must be reversed as shown.

Conformal Shapes

Conformal Rounds

A conformal round represents a set of points a fixed distance from some center.

  • Test: ∀p∈ℙ p∈R ⟺ R ^ p = 0
  • Discriminant: ∆R ≝ R (R ^ )-1
  • Radius2: ⊠(∆R) = (R (R ^ )-1) (R (R ^ )-1)
  • Center: (∆R)2 - ∆R

Conformal Circle

A direct circle is a wedge of three distinct points:

C = p1 ^ p2 ^ p3

Conformal Circle

Any three distinct points define a circumcircle.

Conformal Sphere

A direct sphere is a wedge of four distinct points:

S = p1 ^ p2 ^ p3 ^ p4

Conformal Point Pair

What does a circle look like in one dimension? A pair of points.
P = p1 ^ p2

  • p1 = (P + √⊠(P)) (-⌋P)-1
  • p2 = (P - √⊠(P)) (-⌋P)-1

Conformal Flats

Radius2: ⊠(R (R ^ )-1) ...but what if (R ^ = 0)?

Conformal Flats

As with rounds, we can test whether a point is part of a flat by checking whether it wedges to zero:

Test: ∀p∈ℙ p∈F ⟺ F ^ p = 0

F ^ = 0

The point at infinity is always part of a flat. This is what distinguishes them from rounds.

Conformal Line

A circle that passes through infinity is a line:

L = p1 ^ p2 ^

Alternative: L = p1 ^ v ^

COLINEAR(p1, p2, p3) ≝ p1 ^ p2 ^ p3 ^ = 0

Conformal Plane

A sphere that passes through infinity is a plane:

P = p1 ^ p2 ^ p3 ^

Alternative: P = p1 ^ B ^

COPLANAR(p1, p2, p3, p4) ≝ p1 ^ p2 ^ p3 ^ p4 ^ = 0

Flat Points

A single point wedged with infinity is the flat equivalent of a point pair.
F = p ^

p = - ((o^) ⌋ (o ^ F)) ((o^) ⌋ F)-1

p = o + p + p2/2

Carrier Flats

Consider a conformal round R. What is R ^ ?

It's a conformal flat of one dimension more!

  • Pair = p1 ^ p2 ⟹ Line = Pair ^
  • Circle = p1 ^ p2 ^ p3 ⟹ Plane = Circle ^
  • Sphere = p1 ^ p2 ^ p3 ^ p4 ⟹ Volume = Sphere ^

Radius2(R) = ⊠(R (R ^ )-1)

Dual Rounds

Using the conformal pseudo-scalar we can construct a dual round.

D = R ⌋ (R ^ )-1

Dual rounds are vectors so unlike rounds they have no carrier flat or readily identifiable dimension. Many rounds may have the same dual round.

Dual Flats

Dual flats have a direction and position but no dimension. They serve the same purpose as normal vectors in traditional linear algebra.

D = F ⌋ (o ^ I ^ )-1

F = D ⌋ (o ^ I ^ )

Conformal Vectors

Formula Quad Weight
Point w (o + p + p2/2 ) ⊠(p) = 0 - · p ≠ 0
Dual Round w (p - r2/2 ) ⊠(r) > 0 - · r ≠ 0
Dual Imaginary w (p + r2/2 ) ⊠(i) < 0 - · i ≠ 0
Direction v ⊠(v) > 0 - · v = 0
Dual Flat n + d ⊠(f) > 0 - · f = 0

Components 𝕄

∀a∈ℝ ∀i∈ℤ ∀t
(⟨a, {}⟩ ∈ 𝕄) ∧ (⟨a, t⟩∈𝕄 ⟹ ⟨a, ⟨i, t⟩⟩∈𝕄)

A multivector component consists of a real number and an integer tuple in an ordered pair. The tuple may be empty or have any number of integers.

Components 𝕄 : Equality

  • ∀a,b∈ℝ (⟨a, {}⟩ =𝕄 ⟨b, {}⟩) ⟺ (a =ℝ b)
  • ∀i∈ℤ ∀⟨a, at⟩,⟨b, bt⟩∈𝕄
    (⟨a, at⟩ =𝕄 ⟨b, bt⟩) ⟺ (⟨a, ⟨i, at⟩⟩ =𝕄 ⟨b, ⟨i, bt⟩⟩)
  • ∀a∈ℝ ∀i>0∈ℤ ⟨a, ⟨i, ⟨i, t⟩⟩⟩ =𝕄 ⟨a, t⟩
  • ∀a∈ℝ ∀i<0∈ℤ ⟨a, ⟨i, ⟨i, t⟩⟩⟩ =𝕄 ⟨-a, t⟩
  • ∀a∈ℝ ∀i,j∈ℤ (i ≠ j) ⟹
    ⟨a, ⟨i, ⟨j, t⟩⟩⟩ =𝕄 ⟨-a, ⟨j, ⟨i, t⟩⟩⟩

Equal integers can be combined. Unequal integers can be swapped by negating the real number.

Multivector 𝔾

  • ∀⟨a,t⟩∈𝕄 ⟨⟨a,t⟩, {}⟩ ∈𝔾
  • ∀⟨a,t⟩∈𝕄 ∀b∈𝔾 ⟨⟨a,t⟩, b⟩ ∈𝔾

A multivector is a tuple consisting of one or more multivector components.

Multivector 𝔾 : Equality

  • ∀⟨0, t⟩∈𝕄 ∀c∈𝔾 (⟨⟨0, t⟩, c⟩ =𝔾 c)
  • ∀⟨a, t⟩,⟨b, t⟩∈𝕄 ∀c∈({{}} ∪ 𝔾)
    (⟨⟨a, t⟩, ⟨⟨b, t⟩, c⟩⟩ =𝔾 ⟨⟨(a + b), t⟩, c⟩)
  • ∀⟨a, ta⟩,⟨b, tb⟩∈𝕄 ∀c∈({{}} ∪ 𝔾)
    (⟨a, ta⟩ =𝕄 ⟨b, tb⟩) ⟺ (⟨⟨a, ta⟩, c⟩ =𝔾 ⟨⟨b, tb⟩, c⟩)
  • ∀⟨a, ta⟩,⟨b, tb⟩∈𝕄 ∀c∈({{}} ∪ 𝔾)
    (⟨⟨a, ta⟩, ⟨⟨b, tb⟩, c⟩⟩ =𝔾 ⟨⟨b, tb⟩, ⟨⟨a, ta⟩, c⟩⟩)

Multivectors the same if their components are the same. Swapping is allowed and components with matching tuples can be merged.

Multivector Notation

  • ∀a∈ℝ a ∈𝔾 ≝ ⟨⟨a, {}⟩, {}⟩
  • ∀a∈ℝ ∀i∈ℤ aoi ∈𝔾 ≝ ⟨⟨a, ⟨i, {}⟩⟩, {}⟩
  • ∀a∈ℝ ∀i,j∈ℤ aoioj ∈𝔾 ≝ ⟨⟨a, ⟨i, ⟨j, {}⟩⟩⟩, {}⟩
  • ∀a,b∈ℝ ∀i,j∈ℤ (aoi + boj) ∈𝔾 ≝
    ⟨⟨a, ⟨i, {}⟩⟩, ⟨⟨b, ⟨j, {}⟩⟩ {}⟩⟩
  • ...

Representing multivectors as sums of vectors is more convenient than using ordered pairs.

Addition 𝔾

∀⟨a, ta⟩,⟨b, tb⟩∈𝕄 ∀c∈({{}} ∪ 𝔾) ∀d∈𝔾
⟨⟨a, ta⟩, c⟩ + ⟨⟨b, tb⟩, {}⟩ ≝ ⟨⟨b, tb⟩, ⟨⟨a, ta⟩, c⟩⟩ ∧
⟨⟨a, ta⟩, c⟩ + ⟨⟨b, tb⟩, d⟩ ≝ ⟨⟨b, tb⟩, ⟨⟨a, ta⟩, c⟩⟩ + d

Multivector addition merges the components of both into a single chain which can then be manipulated according to equality rules.

Addition 𝔾 Examples

  • 3o1 + 2o1 = 5o1
  • (2o1 + o2) + (3o1 - o2) = 5o1 + 0o2 = 5o1
  • 3o1o2 + 2o1o2 = 5o1o2
  • 3o1o2 + 2o2o1 = 3o1o2 - 2o1o2 = o1o2

Addition 𝔾 : Closed

∀a,b∈𝔾 a + b ∈𝔾

Multivector addition moves components from one to another. At each step parts of the sum are multivectors.

Addition 𝔾 : Identity

∀a∈𝔾 a + 0 = a = 0 + a

Multivector 0 is the identity. Multivector addition allows swapping pairs of components and dropping zero components.

Addition 𝔾 : Associative

∀a,b,c∈𝔾 (a + b) + c = a + (b + c)

Multivector equality allows us to swap components into any order.

Addition 𝔾 : Commutative

∀a,b∈𝔾 a + b = b + a

Multivector equality allows us to swap components into any order.

Addition 𝔾 : Inverses

∀a∈𝔾 ∃(-a)∈𝔾 a + (-a) = 0

Each multivector component can be negated by replacing the real number with its addative inverse. Adding a multivector to its inverse results in pairs of zero valued components.

Addition 𝔾

  • Definition: ∀⟨a, ta⟩,⟨b, tb⟩∈𝕄 ∀c∈({{}} ∪ 𝔾) ∀d∈𝔾
    ⟨⟨a, ta⟩, c⟩ + ⟨⟨b, tb⟩, {}⟩ ≝ ⟨⟨b, tb⟩, ⟨⟨a, ta⟩, c⟩⟩ ∧
    ⟨⟨a, ta⟩, c⟩ + ⟨⟨b, tb⟩, d⟩ ≝ ⟨⟨b, tb⟩, ⟨⟨a, ta⟩, c⟩⟩ + d
  • Closed: ∀a,b∈𝔾 a + b ∈𝔾
  • Identity: ∀a∈𝔾 a + 0 = a = 0 + a
  • Associative: ∀a,b,c∈𝔾 (a + b) + c = a + (b + c)
  • Commutative: ∀a,b∈𝔾 a + b = b + a
  • Inverses: ∀a∈𝔾 ∃(-a)∈𝔾 a + (-a) = 0

Geometric Product 𝔾

∀⟨a, ta⟩,⟨b, tb⟩∈𝕄 ∀c∈({{}} ∪ 𝔾) ∀d∈𝔾

Component Product 𝔾

  • ∀a,b∈ℝ ∀i≠j∈ℤ ∀xt ⟨⟨a, t⟩, {}⟩ × ⟨⟨b, {}⟩, {}⟩ = ⟨⟨(a × b), t⟩, {}⟩
  • ∀a∈ℝ ∀i,j∈ℤ (i ≠ j) ⟹
    ⟨a, ⟨i, ⟨j, t⟩⟩⟩ =𝕄 ⟨-a, ⟨j, ⟨i, t⟩⟩⟩

Product 𝔾 : Closed

Product 𝔾 : Identity

Product 𝔾 : Associative

Product 𝔾 : Commutative

Product 𝔾 : Inverses

Geometric Product 𝔾

  • Closed
  • Identity
  • Associative
  • Commutative
  • Inverses