math

Natural Numbers

Peano Axioms

Precedence of logical operator

The convention is described by Herbert Enderton in A Mathematical Introduction to Logic page 78.

Operator Name Precedence
$\forall$, $\exists$ Modifier Highest, apply to as little as possible
$\lnot$ Negation Highest, apply to as little as possible
$\land$ Conjunction  
$\lor$ Disjunction  
$\implies$ Implication Right associative
$\iff$ Biconditional  

Logic

Axioms of Equality (A.7)

How equality is defined depends on the class type of objects under consideration. But all equality definition should obey the following four axioms of equality:

  1. Reflexive axiom.
    • Given any object x, we have x = x.
  2. Symmetry axiom.
    • Given any two objects x and y of the same type, if x = y, then y = x.
  3. Transitive axiom.
    • Given any three objects x, y, z of the same type, if x = y and y = z, then x = z.
  4. Substitution axiom.
    • Given any two objects x and y of the same type, if x = y, then f(x) = f(y) for all functions or operations f.
    • Similarly, for any property P(x) depending on x, if x = y, then P(x) and P(y) are equivalent statements.
    • Note, when introducing an opertion to objects of type T, it’s considered a well-defined operation only if it follows the Substitution axiom.

Set Theory

Axiom vs. Definition

An axiom is a assumption/rule that we decide we will follow/enforce. Axioms come mainly in two different kinds: existential and universal.

  1. Existential: there exists an empty set
  2. Universal: all right angles are equal (?)

ZFC Axiom of Set Theory

Functions

Cartesian Product of Set

Integers

Rationals

Gaps in rationals

Reals

Cauchy sequences

Construction of real

Ordering of real

Least upper bound

Test

Markdown rendering in Github page is buggy. It sometimes treat the underscore inside $ $ as italic and insert html tags that breaks later latex rendering.

$ x $ $|x|$: | inside $ is treated as table delimiter
$$ x $$
$$|x|$$: works    

$(a_n)_{n=0}$ $(a_n)_{n=0}$ works

$(a_n){n=0}^\infty (a_n^{-1}){n=0}^\infty$

$(a_n)_{n=0}^\infty (a_n^{-1})_{n=0}^\infty$ doesn’t work. it matches up the _ as italic.

https://nschloe.github.io/2022/05/20/math-on-github.html https://stackoverflow.com/q/77375192/2797254

When $a \ne 0$, there are two solutions to $(ax^2 + bx + c = 0)$ and they are \(x = {-b \pm \sqrt{b^2-4ac} \over 2a}\) \(R_{\mu \nu} - {1 \over 2}g_{\mu \nu}\,R + g_{\mu \nu} \Lambda = {8 \pi G \over c^4} T_{\mu \nu}\) $\frac1{x^{n}x^{m}} = \frac1{x^{n+m}} = x^{-n-m}$

The Cauchy-Schwarz Inequality \(\left( \sum_{k=1}^n a_k b_k \right)^2 \leq \left( \sum_{k=1}^n a_k^2 \right) \left( \sum_{k=1}^n b_k^2 \right)\)

inline $\left( \sum_{k=1}^n a_k b_k \right)^2 \leq \left( \sum_{k=1}^n a_k^2 \right) \left( \sum_{k=1}^n b_k^2 \right)$

This sentence uses $ delimiters to show math inline: $\sqrt{3x-1}+(1+x)^2$