Logic, sets, and the axiomatic basis of mathematics.
July 2026
Algebraic numbers are complex numbers that are roots of non-zero polynomials with rational coefficients.
A number is algebraic if there exists a polynomial such that . The unique monic polynomial of lowest degree that satisfies is called its minimal polynomial.
An algebraic integer is a root of a monic polynomial with integer coefficients. For example, is an algebraic integer, but is not (it is an algebraic number, but its minimal polynomial is , which is not monic).
Numbers that are not algebraic are called transcendental. Proving a number is transcendental is usually much harder. Famous examples include and .
Mathematics is not built on thin air; it is built on Axioms. An axiom is a statement that is taken to be true, to serve as a premise or starting point for further reasoning.
Almost all modern mathematics is built on Zermeio-Fraenkel Set Theory (ZFC). Think of these as the “low-level assembly instructions” of math.
Two sets are equal if they have the same elements.
set behaves exactly like this.There exists an infinite set. Without this, we couldn’t formally prove that the set of Natural Numbers () exists in its entirety. It allows us to build the infinite sequence .
If you have a collection of bins, you can choose one item from each bin. This seems obvious, but for infinitely many bins, it leads to strange results like the Banach-Tarski Paradox, where you can disassemble a sphere and reassemble it into two identical spheres.
Before ZFC, mathematicians used “Naive Set Theory.” Bertrand Russell showed this was broken with a simple logical trap:
Consider the set of all sets that do not contain themselves. Does contain itself?
ZFC fixes this by making it impossible to define “the set of all sets.” You can only create sub-sets of existing sets (the Axiom of Specification).
We formalize mathematics to ensure that our proofs are not just “convincing” but mechanically certain. If our foundational axioms have a contradiction, everything we build on top of them (calculus, physics, computer science) would collapse.
Cardinality is a measure of the “number of elements” of a set. For finite sets, this is just a natural number, but for infinite sets, things become more complex.
Two sets and have the same cardinality, , if there exists a bijection .
A set is countably infinite if it has the same cardinality as the natural numbers . Surprisingly, the set of rational numbers is countable, while the set of real numbers is not.
Georg Cantor proved that the cardinality of the real numbers (the Continuum, ) is strictly greater than the cardinality of the natural numbers (). He used a technique called diagonalization.
Cantor’s Theorem states that for any set , the cardinality of its power set is strictly greater than the cardinality of : This results in an infinite hierarchy of infinities:
Category theory formalizes mathematical structure and its concepts in terms of a collection of objects and arrows (morphisms).
A category consists of:
Examples include Set (sets and functions), Grp (groups and homomorphisms), and Top (topological spaces and continuous maps).
A Functor is a mapping that preserves the category structure:
A natural transformation provides a way of transforming one functor into another while respecting the internal structure of the categories involved. It is often described as a “morphism between functors.”
The Yoneda Lemma suggests that an object is entirely determined by its relationships (morphisms) with other objects in the category. This is a foundational result that allows one to embed any category into a category of functors.
Chaos theory explores systems that are highly sensitive to initial conditions—a concept popularly known as the “Butterfly Effect.” Fractals are complex geometric shapes that exhibit self-similarity across different scales.
In a chaotic system, small differences in initial state lead to vastly different outcomes over time. This makes long-term prediction impossible, even for deterministic systems.
As a system parameter (like in the logistic map) changes, the qualitative behavior of the system can change abruptly at certain values, called bifurcation points.
Fractals are objects with non-integer dimensions. The Hausdorff dimension measures how a set fills space as it is scaled. For the Cantor set or the Koch snowflake, this dimension is a fraction.
A strange attractor is an attractor that exhibits chaotic behavior. The most famous example is the Lorenz Attractor, which arises from a simplified model of atmospheric convection.
Complex numbers expand the real number system by introducing the imaginary unit , where .
A complex number is written as , where is the real part and is the imaginary part. Addition and multiplication follow standard algebraic rules, with .
Complex numbers can be represented in polar coordinates . Euler’s Formula connects the exponential function to trigonometry: Thus, .
The Fundamental Theorem of Algebra states that every non-constant polynomial of degree with complex coefficients has exactly complex roots (counting multiplicity).
Diophantine equations are polynomial equations for which only integer or rational solutions are sought.
A linear Diophantine equation has the form . This has integer solutions if and only if divides .
The equation is one of the most famous Diophantine equations. Primitive solutions can be generated using Euclid’s formula: for .
Fermat’s Last Theorem states that has no positive integer solutions for . This was conjectured by Pierre de Fermat in 1637 and finally proven by Andrew Wiles in 1994 using the theory of modular forms.
Diophantine equations of the form are known as Elliptic Curves. They have profound applications in modern cryptography and were crucial in the proof of Fermat’s Last Theorem.
In many physical applications, we encounter objects like the Dirac delta function that are not “functions” in the classical sense. Distribution theory provides a rigorous mathematical framework for these entities.
A classical function has a value at every point. However, an idealized point mass or a sudden impulse has a “value” of infinity at a point and zero elsewhere, yet its integral is finite.
A distribution is a continuous linear functional on the space of test functions (smooth functions with compact support). We denote the action of a distribution on a test function as .
The Dirac delta is defined by its effect under an integral (or pairing): For any test function .
Distribution theory allows us to define the derivative of any locally integrable function. If is a distribution, its weak derivative is defined by: This formula is inspired by the integration by parts formula where boundary terms vanish for test functions.
Sobolev spaces are spaces of functions whose weak derivatives exist and belong to spaces. They are essential in the study of partial differential equations.
Divisibility is the fundamental relation of number theory. We say divides () if there exists an integer such that .
For any integers and (with ), there exist unique integers (quotient) and (remainder) such that:
Gauss introduced the notation to signify that and have the same remainder when divided by . This is an equivalence relation, meaning it is reflexive, symmetric, and transitive.
Properties of Congruence:
In cryptography, we often calculate where is a massive number. We use the “Square and Multiply” algorithm to do this in logarithmic time.
If is prime and is not divisible by , then . This provides a fast way to check if a number is probably prime (the Fermat Primality Test).
A Dynamical System is a triplet where is the time domain, is the Phase Space (manifold of possible states), and is an evolution function satisfying:
In a discrete system, the state is updated by a map :
The sequence is called the Orbit of .
A fixed point satisfies .
Continuous systems are defined by a vector field and an autonomous differential equation:
The solution through is the Integral Curve or Flow Line. Stability is determined by the eigenvalues of the Jacobian Matrix . If all eigenvalues have negative real parts, the equilibrium is stable.
We have traveled from the building blocks of set theory and logic, through the structures of algebra and the continuity of calculus, to the advanced landscapes of topology and manifolds.
Mathematics is not a collection of isolated subjects but a deeply interconnected web. The tools you learned in linear algebra are used to solve differential equations, which in turn describe the curvature of manifolds in topology.
Despite centuries of progress, many fundamental questions remain unanswered. Solving any of these would revolutionize our understanding of the universe:
Mathematics is a creative endeavor. The skills of abstraction, logical deduction, and problem-solving you’ve developed are applicable far beyond the textbook. Whether you pursue theoretical research or apply these principles in engineering, finance, or data science, the language of mathematics will remain your most powerful tool.
Homological algebra is the branch of mathematics that studies homology in a general algebraic setting. It is a powerful tool used in algebraic topology, algebraic geometry, and number theory.
A chain complex is a sequence of abelian groups (or modules) and homomorphisms: such that the composition of any two consecutive maps is zero: .
This condition implies that the image of is contained in the kernel of : .
The -th homology group is the quotient group: Elements of are called cycles, and elements of are called boundaries. Homology measures the extent to which the complex is not “exact.”
A sequence is exact if the image of each map is exactly the kernel of the next. A short exact sequence is a sequence of the form: which implies that is injective, is surjective, and .
Diagram chasing is a method of proof used in homological algebra to establish properties of morphisms by tracing elements through commutative diagrams. The Snake Lemma is a fundamental result that relates the kernels and cokernels of two morphisms between short exact sequences.
Mathematics is the science of structure, order, and relation that has evolved from elemental practices of counting, measuring, and describing the shapes of objects. It deals with logical reasoning and quantitative calculation.
The power of mathematics lies in its ability to abstract. By stripping away the specific details of a problem, we can find universal patterns that apply to many different situations. For example, the number “3” is an abstraction that represents the commonality between 3 apples, 3 planets, and 3 ideas.
Mathematics is not just about calculation; it is about rigorous proof. A mathematical truth is one that follows logically from a set of starting assumptions (axioms). Once a theorem is proven, it remains true forever.
While pure mathematics focuses on the intrinsic properties of mathematical structures, applied mathematics uses these structures to model the world around us—from the motion of stars to the behavior of financial markets.
Once we have the rules of deduction, we must ask ourselves about the power and reliability of the system itself. This is the domain of Meta-logic.
Propositional logic is both sound and complete. This means the “mechanical” process of manipulation perfectly matches the “semantic” truth of the universe.
Model theory studies the relationship between formal languages and their interpretations. A Model is a mathematical structure that makes the statements of a theory true.
If a set of statements has at least one model, it is Satisfiable. If it is true in all models, it is Valid.
Let’s use Python to check if a simple set of constraints is satisfiable (the SAT problem).
In computer science, solving this efficiently ( vs ) is one of the most important open questions in mathematics.
In 1900, David Hilbert challenged the world to find a complete and consistent set of axioms for all of mathematics. He wanted a “Master Algorithm” that could prove or disprove any statement. In 1931, Kurt Gödel proved this dream was impossible.
Gödel showed that in any system capable of arithmetic, there are statements that are True but Unprovable.
He did this by creating a “Gödel Sentence” (), which states:
“This statement cannot be proved within this axiomatic system.”
Let’s look at the logical trap:
We prefer Consistency over Completeness. Thus, math is incomplete.
The Halting Problem in computer science is the direct descendant of Gödel’s work. It proves that you cannot write a program will_halt(code) that correctly predicts if any given piece of code will eventually stop or run forever.
Gödel’s second theorem is even more startling: A system cannot prove its own consistency.
If you use a system (like ZFC) to prove that ZFC has no contradictions, you are essentially “grading your own homework.” To prove ZFC is consistent, you need a stronger system with more axioms. But that stronger system then needs an even stronger one to prove its consistency, and so on, forever.
We have climbed the ladder of abstraction:
Propositional logic is the branch of logic that deals with propositions—statements that are either definitely True (T) or definitely False (F). It is the language that computers reflect in their hardware, where every signal is high (1) or low (0).
A proposition must have a fixed truth value.
In programming, we use operators to combine these truth values. Let’s see how the basic connectives behave using Python’s boolean logic.
The implication “If , then ” is a promise. It is only broken (False) if is True but fails to happen (is False).
Example: “If you pass the exam (), I will buy you a car ().”
De Morgan’s laws allow us to simplify complex logic. In code, this is vital for readability.
not (A and B) is the same as (not A) or (not B)not (A or B) is the same as (not A) and (not B)Mathematics uses a concise symbolic language to express complex ideas. Understanding this notation is essential for reading and writing formal proofs.
The building blocks of mathematical logic are propositions and operators:
Quantifiers allow us to make statements about sets of elements:
Number theory is the study of the set of integers . While the objects of study are simple, the problems are among the most difficult and beautiful in all of mathematics.
A prime number is an integer whose only divisors are and itself. The Fundamental Theorem of Arithmetic states that every integer has a unique prime factorization.
Primes are the “atoms” of the number system. We can find them efficiently using the Sieve of Eratosthenes.
The GCD of two integers and is the largest positive integer that divides both. The Euclidean Algorithm calculates this by repeatedly applying the remainder operation: .
In modular arithmetic, we work with remainders. We say if divides . This system forms a Ring, which is the basis for modern cryptography (like RSA).
Bezout’s Identity states that for any non-zero , there exist integers such that . We can find these coefficients using the Extended Euclidean Algorithm. This is how we find Modular Inverses, which allow us to “divide” in modular arithmetic.
The study of mathematics begins with numbers. We build complex systems from simple foundations, starting with the natural numbers.
The natural numbers are rigorously defined by the Peano axioms, which use a single constant and a successor function .
Every integer greater than 1 either is a prime number itself or can be represented as a unique product of prime numbers.
Numerical root finding is the process of finding an approximate value such that for a given continuous function .
The Bisection method is a robust but slow root-finding algorithm. It works by repeatedly bisecting an interval and then selecting a subinterval in which a root must lie for further processing. It requires that the function values at the endpoints of the interval have opposite signs (Bolzano’s Theorem).
The Newton-Raphson method uses the first two terms of the Taylor series to iteratively improve an estimate.
Newton’s method converges quadratically (), meaning the number of correct digits roughly doubles each iteration. However, it can fail or diverge if is near zero or if the initial guess is far from a root.
Propositional logic is great for simple true/false statements, but it can’t handle variables. We cannot say “x is even” in propositional logic because is unknown. Predicate Logic solves this by introducing variables and Quantifiers.
A Predicate is a statement whose truth depends on one or more variables. In programming, a predicate is simply a function that returns a Boolean.
The expression ” is even” is written as . It is not true or false until you provide an .
Quantifiers describe the scope of a predicate over a Domain (a set of objects).
In Python, we use the all() and any() functions to represent these quantifiers.
Negating a quantifier flips its type. This is a common point of confusion in both math and natural language.
When you nest quantifiers, the order matters immensely for the meaning of the statement.
Primes are scattered along the number line in a way that appears random at small scales, but follows strict mathematical laws at large scales.
The function counts the number of primes less than or equal to . For example, (the primes are 2, 3, 5, 7).
The PNT describes the asymptotic distribution of primes. It states that: This means that the density of primes near is approximately .
The distribution of primes is perfectly encoded in the Riemann Zeta Function:
This link, discovered by Euler and expanded by Riemann, connects prime numbers (arithmetic) to complex analysis (calculus over complex numbers).
Twin primes are pairs of primes that differ by 2, such as and . The conjecture states that there are infinitely many such pairs.
Projective geometry studies geometric properties that are invariant under projective transformations. It extends Euclidean geometry by adding “points at infinity.”
In -dimensional projective space , a point is represented by coordinates , where not all are zero. Two sets of coordinates represent the same point if they are scalar multiples of each other:
For the projective line , the point represents the point at infinity.
One of the most profound features of projective geometry is the principle of duality: for any theorem in two-dimensional projective geometry, there is a dual theorem obtained by interchanging the roles of “points” and “lines.”
The cross-ratio is the fundamental invariant of projective geometry. For four collinear points , the cross-ratio is defined as: where denotes the signed distance from to .
Projective geometry provides the mathematical foundation for computer vision and 3D graphics, where 3D scenes are projected onto 2D image planes (cameras).
A mathematical proof is an Inferential argument for a mathematical statement. It uses previously established statements, such as theorems, and follows logically sound rules. In mathematics, we are not looking for “evidence” (as in science), but for absolute certainty.
In a direct proof, we assume is true and use logic to show that must follow.
Example: Prove that if is an even integer, then is even.
To prove , we assume is false and show that this leads to an impossible logical contradiction ( or ).
Example: Prove that is irrational.
Induction is like a row of falling dominoes. To prove a statement is true for all :
Let’s test the formula for the sum of the first integers: .
By proving the inductive step, we show that if it works for , it guarantees work for , creating an infinite chain of truth.
The real numbers extend the rationals by filling in the “gaps,” allowing for a continuous number line.
A Dedekind cut is a partition of such that has no largest element and everything in is less than everything in . This construction formally defines irrational numbers like .
The Completeness Axiom states that every non-empty set of real numbers that is bounded above has a Least Upper Bound (Supremum) in . This is what distinguishes from .
The Archimedean Property states that for any , there exists an such that . This implies that there are no “infinitely large” real numbers.
The Cantor Set is constructed by repeatedly removing the middle third of line segments. It is a classic example of a set that is uncountable but has “measure zero.”
RSA (Rivest–Shamir–Adleman) is the algorithmic backbone of modern digital security. It relies on the practical difficulty of factoring the product of two large prime numbers.
The security of RSA rests on three main steps:
A message is encrypted into ciphertext using the public key :
The original message is recovered using the private key :
RSA works because . According to Euler’s Totient Theorem, if , then .