You've come to the right place to see how Sridhar thinks about math. Keep in mind, nothing here is polished, it's full of TODOs, you shouldn't be reading this site, who told you it even exists? (Atom feed)

Reflection Rules for Modal Logics

By a reflection rule for a modal logic, I mean a rule that allows the derivation of $$\vdash p$$ from $$\vdash \Box p$$. In this post, I sketch out an interesting technique for establishing such reflection rule for logics such as K, K4, and GL. (For simplicity of exposition, I'll…
Read more...

Fixed Points of Cycled Compositions

Suppose given 1-cells $$F : C \to D$$ and $$G : D \to C$$ in some 2-category. $$\newcommand{\id}{\mathrm{id}}$$ If we now have 2-cells $$\eta : \id_C \to GF$$ and $$\epsilon : FG \to \id_D$$ satisfying the triangle/zig-zag laws, this is an adjunction. In the further case where $$…
Read more...

The Hurwitz and Riemann functional equations

Where the celebrated "functional equation" for the Riemann zeta function comes from, as well as for the Hurwitz zeta function more generally. I believe the approach here is cleaner and better motivated than either the contour integration or theta function approaches people usuall…
Read more...

Conjugate Partitions As Adjoints

Just a small note on conjugate partitions as adjoint functors (more specifically, Galois connections). Nothing earth-shattering but I wished to remember these thoughts for myself: By a partition of a natural number n is meant a multiset of positive integers which sum to n. We can…
Read more...

Defining Predecessor

There is a famous story about Kleene trying to define a predecessor function on the natural numbers (or the Church numerals, to be clear) in the lambda calculus, not having any idea how to do it, and then figuring it out while at the dentist. In the same vein, I put forth this pu…
Read more...

Hylomorphisms

Here I record some simple thoughts on hylomorphism correspondences. Let $$F$$ be an endofunctor on some category, let $$W : w \to F(w)$$ be an $$F$$-coalgebra, and let $$M : m \to F(m)$$ be an $$F$$-algebra. Then by an $$F$$-hylomorphism, we mean a commutative square of the follo…
Read more...

Small Free Nondeterministic Structures

The following generalization of a certain traditional argument occurred to me today, my needing it in some argument, and so I thought I would record it for my own future use if ever I need it again: Suppose given a (possibly large collection) V, along with a small number of opera…
Read more...

Yoneda Extension

Why is the Yoneda embedding the free cocompletion? Let $$\newcommand{\Set}{\mathrm{Set}} \newcommand{\Hom}{\mathrm{Hom}} \newcommand{\Psh}{\mathrm{Psh}} \newcommand{\Rsh}{\mathrm{Rsh}} A$$ and $$B$$ be arbitrary categories, with $$y : A \to \Set^{A^{op}}$$ and $$Y : B \to (\Set^B…
Read more...

Abelian Categories

Here, we give a manifestly self-dual presentation of the concept of abelian categories. (We previously discussed abelian categories in terms of their relationship to regular categories.) Consider the following properties a category may have: Has finite limits and finite colimits…
Read more...

Presheaf Categories Are Toposes

The category Psh(C) of presheaves on a small category C is a topos (presuming Set itself is one). Why is this? I keep forgetting the cleanest proofs of these facts. I record them here for myself for posterity. For our purposes here, a topos is a category with finite limits, carte…
Read more...

Non-Elementary Prime Counting with the Riemann Zeta Function

This is a much more advanced follow-up to our post on elementary prime counting.

Read more...

Indexed, Enriched, and Internal Categories

In general, there are many things to say about these. I just wanted to record for myself some thoughts I realized today. (There's things to say about indexed, enriched, and internal STRUCTURES in general, but the particular observation I want to make involves some aspects that ar…
Read more...

The Universal Cover of SO(3) is a Double Cover

Let us prove that the universal cover of SO(3) is a double cover (thus, the homotopy group of SO(3) is $$\mathbb{Z}_2$$). This explains the famed Dirac belt trick and the concept of half-spin particles, among other things. The proof is in three parts: The first part is the obser…
Read more...

Subgroups of Free Groups

Let me describe how the free group on countably infinitely many generators embeds inside the free group on two generators: First of all, let's make the observation of Cayley's theorem: Any group embeds into the "concrete" group of its own self-bijections. We can think of each gro…
Read more...

Löb's Theorem Entails 4

A curious fact about modal logic is that any normal (in the Kripke sense) modal logic containing Löb's theorem ($$\Box (\Box A \Rightarrow A) \vdash \Box A$$) as an axiom also contains 4 ($$\Box A \vdash \Box \Box A$$) as an axiom. Proof: $$A \vdash \Box(A \wedge \Box A) \Rightar…
Read more...

The Yoneda Lemma

The Yoneda Lemma is considered one of the most important observations of category theory. Well, I don't know who decides what things are to be considered important, but it is certainly good to understand. There are multiple perspectives worth understanding it from, even. We alrea…
Read more...

Alternating Series, Generalized Summation, and the Dirichlet Eta Function

A standard observation is that, if $$f$$ is a monotonically decreasing function from some point on, approaching zero asymptotically, then the alternating series $$f(0) - f(1) + f(2) - f(3) + f(4) - f(5) + \ldots$$ converges. This is easy to see: the partial sums jump up and down …
Read more...

A straight line is the shortest path

A straight line is the shortest path between two points. Why is that? Well, for any path between points $$A$$ and $$B$$ we can consider projecting it onto the line through $$A$$ and $$B$$. That is, each infinitesimal movement $$dv$$ along our path can be decomposed into $$dx + dy…
Read more...

Egyptian Fractions

Any rational in $$[0, 1)$$ can be written as a finite sum of reciprocals of natural numbers. For zero, this is trivial, as an empty sum. As for other such values, specifically, if $$\frac{x}{y}$$ is the fraction to be represented (whether in lowest terms or not, we can apply this…
Read more...

The Y Combinator (aka, diagonalization)

TODO: Rewrite the following into the post I want it to be, about how diagonalization in the Cantor/Russell/Gödel/Lawvere/Yanofsky sense is the same as the Y combinator and also the Y combinator is obvious in retrospect. For now, this post is taken from an old Quora thing I once w…
Read more...

Arrow's Impossibility Theorem

The content of Arrow's Impossibility theorem is actually extremely closely related to ultrafilters, and, in fact, the eponymous “impossibility” is essentially the same as a very basic fact about ultrafilters on finite sets. Yet, for some reason, I have rarely (if ever) seen the t…
Read more...

The Fundamental Theorem of Equal Temperament Arithmetic

The Fundamental Theorem of Equal Temperament Arithmetic is that log(2) : log(3) : log(5) is 12 : 19 : 28. What do I mean by this? This is a statement about music theory. Consonant intervals are generally characterized by nice frequency ratios. In particular, n + 1 : n ratios are…
Read more...

Stirling's approximation

Where does Stirling's approximation $$n! \sim \sqrt{2\pi n} \left(\frac{n}{e}\right)^n$$ come from? Well, $$n! = \prod_{t = 1}^{n} t$$, a discrete product. One obvious way to try to approximate a solution for $$n!$$ is to switch from discrete series to continuous series. People d…
Read more...

Stupid Digit Tricks

One thing people are often amused by is observations like that $$\frac{1}{998001}$$ comes out to .000 001 002 003 004…, with every three digit string appearing in order except for 998, and then repeating back from 999 to 000. Why does this happen? Well, .000 001 002 003… times (1…
Read more...

Queues and the Erlang B-Theorem

Suppose you have a queue with finite capacity C, such that the queue can be entered whenever it has less than C people in it already, but the queue permanently turns away anyone who shows up while it has C people in it. Suppose also that people show up to the queue as a Poisson p…
Read more...

Gauss-Bonnet

Euler characteristic is the sort of thing which adds up as you combine regions (combining them not in the union sense, but in the addition sense. So $$F(A \cup B) + F(A \cap B) = F(A) + F(B)$$). Also adding up in the same way, albeit this is less obvious perhaps, is "How much doe…
Read more...

Partitions

There’s lots to say about partitions. I’ll just write some things scattershot, most of which are due to Euler or from thinking about transposing Ferrers/Young diagrams: The number of partitions of N with distinct parts matches the number of partitions of N with odd parts: Proof: …
Read more...

Mean Monkey Time

Suppose you have a monkey banging away at a typewriter with N keys, each keystroke at independent uniform random. Suppose you're waiting for the first occurrence of a particular string S. On average (in the sense of probabilistic mean), how many keystrokes will it take? This is b…
Read more...

Greatest Common Divisors and Unique Prime Factorization

A general discussion of jewels of math concerning GCDs in various contexts. [TODO: Rewrite throughout for general audience, not just people who know math jargon] One of the jewels of mathematics is that a commutative monoid is freely generated on a set (thus, has unique prime fac…
Read more...

Counting Works

A basic fact, so perfectly figured out by ancient mathematicians and internalized by human society ever since that no one ever bothers to think about or question it anymore, is that any two orders in which to count the same finite set yield the same number. That is, each finite c…
Read more...

Eulerian Graphs

Suppose given a directed multigraph, and suppose also that at each vertex, we are given a bijection between the edges into the vertex and the edges out of that vertex (think of this bijection as saying that the former edge is "followed by" the latter edge). Then every edge is in …
Read more...

Heron's Formula

When I was young, in middle school, high school, and even college, Heron's formula was such a bother to me; the one formula in geometry I was aware of, which would be listed in each geometry textbook formula "cheat sheet", that I didn't know how to prove. Well, here's the clean w…
Read more...

Permutation Parity

I am fond of saying that the two theorems that laypeople do not know because curricula arbitrarily do not bother to show them, yet which are about phenomena of ubiquitous generality in down-to-Earth grade school mathematics, are Bezout's theorem and the fact that permutations car…
Read more...

Partial Fractions, Jordan, Bezout, Euclid, and the Chinese

There are a number of results which are all essentially the same: 1. Jordan decomposition of linear operators. 2. Partial fraction decomposition. 3.1. The Chinese Remainder Theorem. 3.2. Bezout's theorem expressing GCDs as linear combinations 3.3. The Euclidean algorithm for calc…
Read more...

Galois Theory and the Fourier Transform

Consider a base field with a finite degree Galois extension with Galois group cyclic of order $$N$$ with generator $$\varphi$$. Suppose the base field also contains a primitive $$N$$th root of unity (thus, by the general theory of primitive roots of unity in a field, its $$N$$th …
Read more...

Induction and Recursion

It is often thought that induction only applies to well-founded orderings, not to structures like the reals. But actually, it is very common in mathematics to do induction arguments over the reals, only people do not recognize them as such when they do so. The principle in play i…
Read more...

Convergence Entails Countable Support

Consider a multiset of values, all $$\geq 0$$ ("semipositive", as I often say in my head). It is clear how any finite submultiset of these are to be summed, and we can define the sum of the multiset overall as the supremum of the sum of its finite submultisets. This reproduces th…
Read more...

Unusual Uncountability Proofs

Everyone knows the diagonalization proof of uncountability. Some are familiar with other uncountability proofs as well; e.g., Cantor's original proof of the uncountability of R [TODO: discuss this, relate it to the diagonalization proof] [TODO: Discuss all the famed antinomies an…
Read more...

Euler Characteristic

Let's start with Euler's polyhedron formula. Vertices - Edges + Faces = 2 on a sphere. Why is this? Well, take the sphere, considered as one big face, and draw all the vertices onto it. Then, draw the edges onto it, one by one. Each time you draw an edge connecting two vertices t…
Read more...

0.999... = 1

This comes up a lot in pop math discussion, so I’ll just post here the thing I’ve written about it in various other places previously. One must distinguish between notation and what that notation represents. Different notation can represent the same entity, as in, for example, th…
Read more...

Circular Proofs Aren't Useless

Suppose you prove B from A and later also prove A from B. Useless, right? Well, no. You’ve proven a wonderful fact. You’ve proven that A and B are equivalent. Each follows, by whatever story you gave, from the other. What you haven’t accomplished is to reach this entailment back …
Read more...

Mac Lane "Parameters" Theorem

Suppose given an isomorphism square in Cat; that is, categories A, B, C, and D, functors e : A -> B, f: A -> C, g : B -> D, and h : C -> D, and a natural isomorphism between the two paths from A to D. Suppose furthermore that e is essentially surjective on objects (i.…
Read more...

Margin of Error

When polls report a “margin of error”, it doesn’t mean what almost everyone takes it to mean. Tl;dr: In the sense of “margin of error” that you typically see reported for polls, it just means 98% / sqrt(the number of people polled). —— When polls list a margin of error, generally…
Read more...

Coproducts of Abelian Monoids

Two classic facts are: For symmetric (aka commutative, or abelian, or whatever term you like) monoids, finitary coproducts and finitary products coincide (thus, the underlying set of the finitary coproduct is the Cartesian product of the underlying sets of the individual monoid…
Read more...

Categorical Asymmetry

All of the asymmetries1 of category theory arise from the fact that we generally talk and think in terms of Set(/Cat/etc.)-like categories and not Set^op-like ones, and in these, everything is a big colimit of simple pieces, but not a big limit. Vaguer thoughts: Indeed, in Set/C…
Read more...

The Irrationality of e

This is actually quite easy to show. Let’s look at $$e^{-1} = \frac{1}{0!} - \frac{1}{1!} + \frac{1}{2!} - \frac{1}{3!} + \ldots$$. As an alternating series whose terms’ magnitudes keep diminishing (from the second term onward), its limiting value lies strictly inbetween any two …
Read more...

Prime-Generating Polynomial

Some numbers p have the property that multiplying two consecutive integers and then adding p generates only prime number outputs, so long as both consecutive integers are less than p in size. (By symmetry of multiplication under negation, it suffices to consider just consecutive …
Read more...

Commas and Collages

Subjects: Commas and Cocommas/Collages, Bifibrations (by which I mean two-sided fibrations, which apparently is not what people usually mean by this, oh well...), the Grothendieck construction, (bi)-indexed categories, perhaps profunctors, etc. A span is a pair of maps with a co…
Read more...

The Internal Logic of Effective Regular and Abelian Categories

The internal logic of effective regular categories (aka, "exact categories", though this term is overloaded, or "Barr-exact categories") can be given in many different ways, but is perhaps most easily spelt out in terms of thinking of relations, rather than functions as such. Any…
Read more...

Borwein Integrals

A result sometimes observed as surprising, shocking, etc, is that $$\int_{0}^{\infty} \mathrm{sinc}(x) dx = \pi/2$$, and indeed $$\int_{0}^{\infty} \mathrm{sinc}(x) \mathrm{sinc}(x/3) dx = \pi/2$$ and $$\int_{0}^{\infty} \mathrm{sinc}(x) \mathrm{sinc}(x/3) \mathrm{sinc}(x/5) dx =…
Read more...