Posts whose title or text contains one of these words are left out of every view.
Whole words only: ai catches "AI-generated" but not "openai". Add a star for word beginnings: llm* catches llm and llms.
99 words is the limit
https://www.johndcook.com/blog
281 posts · 34 Votes · 1 Followers
Science 53% · Tech 39% · Writing 4% · Culture 2% · Life 1% · Art 0% · 2 more 1%
Subscribe via RSS
Yesterday I posted an image on X that has gotten a lot of views, so I’ll repost it here. I wanted to visually compare the size of current and post-quantum key sizes, so I generated a pair of keys and saved them in QR codes. Keys were base64 encoded. The ML-KEM-768 private key is bigger than the maximum QR code and so it splits into two codes. Related posts Regression, modular arithmetic, and PQC How quantum computing would affect Bitcoin Digital signatures with oil and vinegar The post…
Two elements a and b in a group G are conjugate if there exists some element g in G such that a = g−1bg. A set of elements all conjugate to each other forms a conjugacy class. Abelian groups Each element of an Abelian group is in a conjugacy class of its own: g−1bg = g−1gb = b. Things are more interesting in a non-Abelian group because the calculation above is not necessarily possible. It might be possible, because b and g might commute, but not all elements commute with each other. Quaternion…
In the NSA’s recent announcement urging everyone to adopt post-quantum encryption ASAP, there’s one little line I’d like to expand on: Use Curve P-384 for all classification levels. There’s an interesting story behind this technical detail. The term P-384 means nothing to most people. Maybe the name reminds them of PT-109, a patrol boat commanded by future president John F. Kennedy during WWII. (PT-109 subsequently became the title of a book, a movie, a song, and a video game.) Curve P-384 is…
Bernoulli numbers often pop up in unexpected places. This post will discuss a connection between Bernoulli numbers and Fermat’s last theorem. Bernoulli numbers When you take a calculus class and get to Taylor series, you’ll no doubt see the series for sine and cosine. Maybe the instructor presents the series for sine and you’re asked to find the series for cosine as a homework problem. In any case, the terms of the series have a nice simple description. Then you see the series for tangent.…
A prospective client used the term “horse trading” on a call today to refer to trade-offs in data privacy. I like it. You can’t answer the question “is this piece of data PHI” in isolation. When someone says “is this field PHI” what they really mean is “can a data set containing this field meet the HIPAA standard for deidentification?” The answer to that question depends on what other data appear along with the field in question. My answer to “Can we include this?” is essentially “What’ll you…
This post will be more technical than most, presuming familiarity with Banach spaces. Personal background I was interested in functional analysis when I was an undergraduate and intended to specialize in the subject in graduate school. I quickly changed my mind. What I found interesting about functional analysis was how it provided a unified framework for various topics. For example, finite element analysis and other areas of numerical analysis make more sense from the perspective of functional…
The NSA is urging that everyone move to post-quantum cryptography (PQC) sooner rather than later. My hunch is that this is not because cryptographically relevant quantum computers (CRQCs) are around the corner. Rather it is because there are rumors of mathematical breakthroughs that could allow someone with a conventional computer to break the same encryption methods that we know could be broken by a CRQC. To understand what is and isn’t supposedly at risk, we have to distinguish between…
The Riemann Hypothesis (RH) is the first rung on a ladder of more general conjectures. The next rung is the Generalized Riemann Hypothesis (GRH). Both were proved at the same time, and now attention is focused on the third rung, the Extended Riemann Hypothesis (ERH). The ERH says that for any number field K, i.e. any finite-degree extension of ℚ, all the zeros of the corresponding zeta function ζK(s) in the critical strip 0 < Re(s) < 1 lie on the line Re(s) = ½. The Riemann zeta function ζ(s)…
Riemann Hypothesis The Riemann Hypothesis (RH) says that the zeros of (analytic continuation of [1]) the function in the critical strip (i.e. 0 < Re(s) < 1) all lie on the line Re(s) = ½. You’ll hear that all the zeros of ζ(s) have real part ½ but that’s not correct. The zeta function also has zeros at every negative even integer. These are the so-called trivial zeros. Generalized Riemann Hypothesis The Generalized Riemann Hypothesis (GRH) generalizes RH by changing the numerator of the terms…
Block designs are ways of grouping elements of a set into blocks that have some sort of specified pattern. More on the patterns below. I recently ran across quantum block designs and couldn’t imagine what that could mean. I saw Gerhard Zauner’s thesis “Quantum Designs: Foundations of a non-commutative Design Theory” and wondered what, in this setting, does or does not commute. Analogy The key to understanding the quantum connection is to think about the matrices that represent block designs…
One month ago both Anthropic and OpenAI posted proofs that the exponential time hypothesis (ETH) is false. I wrote about these proofs here. Noam Mazor and Rafael Pass have posted a new proof. Their 18-page paper begins “We here provide an alternative elementary and self-contained proof for the refutation of ETH.” The paper concludes with the following: AI Statement. OpenAI ChatGPT (Astra) was used extensively to study, learn about the problem, and explore candidate constructions. While the main…
There is speculation that AI labs are sitting on cryptography results that are too dangerous to publish. One bit of evidence for this suspicion is that cryptography is conspicuously missing from the list of areas of math that have published AI-assisted proofs recently. But supporting evidence is not proof. It is well known that public key cryptography based on the difficulty of factoring integers or on the difficulty of the discrete logarithm problem will break if and when a cryptographically…
There are multiple ways to quantify how badly a network fragments after a targeted attack on its nodes. They’re all defined using a small set of concepts. Basic definitions Given a graph G, let S denote a subset of the nodes of G. G − S denotes the new graph formed by removing the nodes in S and all edges running to a node in S. c(G − S) is the number of components in G − S. m(G − S) is the number of vertices in the largest component of G − S. The set S is called a cutset if c(G − S) > 1.…
How large can a set of lines L in ℝn be if the angle between any pair of distinct lines is the same? Clearly the answer is at least n. The coordinate axes are mutually perpendicular, so they’re equiangular with angle 90°. In the plane, you can have three lines through the origin that intersect at 120°. Another way to think of these same lines is to imagine an equilateral triangle whose center is at the origin and draw lines through the center and each of the vertices of the triangle. This…
Suppose you have a graph with n nodes and no pentagons, how many triangles can it contain? Here a pentagon means a cycle of length 5 and a triangle means a cycle of length 3. This is an abstract property of the graph, not related to the representation of the graph on a plane, unless the graph can be embedded in a plane with no edge crossings. A paper posted two days ago proves that the maximum number of triangles is bounded by The notation o(1) is a term that goes to zero as n grows. See notes…
There are a few standard examples of statements that appear to be true for a large number of examples but eventually fail. Three that come to mind are prime generating polynomials, the Borwein integrals, and Mercer’s circle problem. I’ll go into each of these briefly before discussing an example I just recently ran across. Prime generating polynomials Euler discovered that p(n) = n² − n + 41 is prime for n = 1, 2, 3, …, 40 but not for n = 41. Another example is that p(n) = n² − 79 n + 1601 is…
Monte Carlo algorithms typically have a fixed runtime but a variable error rate. Las Vegas algorithms have a variable runtime but a fixed (i.e. zero) error rate. Stanisław Ulam came up with the idea of Monte Carlo methods in 1946 and Nicholas Metropolis coined the term “Monte Carlo” the next year. László Babai coined the term “Las Vegas algorithm” in 1979 as a pun on Monte Carlo. Las Vegas factoring algorithm in the news There’s a new paper on GitHub titled Unconditional Integer Factorization…
It’s obvious that you could cover a cube with smaller cubes. You could, for example, take a cube with side 1 and cover it a cube of side ½ centered on each corner. It’s not as obvious how you would cover a ball with smaller balls, but you could cover the unit ball with balls of radius ½√3 centered at the points (±½, ±½, ±½). In fact, you could cover a ball with four smaller balls [1]. Now consider an arbitrary convex shape K in three dimensions with non-empty interior. Is it possible to cover K…
A couple days ago I wrote about how the force of gravity varies over the surface of an oblate planet. Earth is slightly oblate, i.e. it has an equatorial bulge, and this oblateness has a significant effect on satellite orbits. More on that here. The fictional planet Mesklin in Hal Clement’s novel Mission of Gravity is extremely oblate due to its rapid rotation, and apparent gravity varies by two orders of magnitude between the equator and the poles. As science fiction authors often do, Clement…
“I’m sorry but your password must contain 1 char each from: Arabic, Chinese, Thai, Korean, Klingon, Wingdings and an emoji” This was a message from Finley Creative (@FinleyCreative) to Jeff Atwood (@codinghorror) on March 3, 2016. The original post seems to have gone away. You could write a script to generate a password according to these rules. How secure would it be? Multiplying the number of characters from each category gives 153 * 20992 * 57 * 11172 * 38 * 196 * 1409 = 21463556813227081728…
There’s an old joke about having to enter a 12-digit prime number to continue using a program. I wrote about this years ago, on how to use Python to come up with a 12-digit prime. But suppose you do this often, and so you’d like memorize a 12-digit prime so you could enter it without having to run a Python script. Here’s an easy one: 999999999989. The following code verifies that this number is prime. >>> from sympy import isprime >>> isprime(999999999989) True Major system encoding Maybe…
Just as there are finite projective planes, there are also finite projective spaces of higher dimension. The axioms of a projective space are Any two distinct points lie on exactly one line. If A, B, C, and D are distinct points and the lines AB and CD meet, then the lines AC and BD also meet. Every line contains at least three points. There are at least two lines. The second axiom is subtly different from its counterpart for projective planes. It allows for skew lines but not parallel lines.…
Every finite simple group is generated by at most two elements. This is a consequence of the classification of finite simple groups (CFSG). Not only that, with high probability any two elements chosen at random will work. For non-Abelian finite simple groups G, the probability that two randomly chosen elements will generate G approaches 1 as the size of the group |G| → ∞ [1]. Note that this result was published before the CFSG was complete. The list of finite simple groups was complete, and…
A spherical planet is not a point mass, but the gravity on the surface is the same as if the mass were concentrated at a point in the center. If a planet is not spherical but rather an oblate spheroid, the point-mass approximation doesn’t work. Suppose a planet has equatorial radius a and polar radius b, with a significantly larger than b. We’ll compare the point-mass model with the uniform density model. If the surface of the planet were a massless shell, with all the mass concentrated at a…
There were two proofs of the Riemann Hypothesis (RH) announced today: one AI-generated and one human-generated.Both claimed to prove something more general, the Generalized Riemann Hypothesis (GRH) which of course includes RH as a special case. The RH says that the all the zero of the Riemann zeta function ζ(s) in the critical strip, i.e. the region of the complex plane where s has real part between 0 and 1, occur on the central line Re(s) = ½. There is a ladder of conjectures of that replace…
A word is universal if it contains every permutation of its alphabet as a subsequence: the letters must appear in order, but gaps are allowed. For example, you can find all six permutations of the digits 1, 2, and 3 inside the string 1231213. Not all permutations can be found as a contiguous substring—that would be a superpermutation—but all can be found as a subsequence. The word 01234567890123456780293451670823451960782134506978231405678213904567823109456782301 is universal for the set of 10…
In 2014 New York City released dump of trip and fare logs from NYC taxis in the previous year. In an attempt to protect privacy, the taxi license numbers and medallion numbers were hashed using the MD5 hash function. If you’re familiar with secure has functions, your first reaction might be that the problem with the scenario above is that NYC used a hash function that had been shown to be broken a decade earlier. But that was not the problem. MD5 was considered broken in 2004 because someone…
A couple days ago I wrote a post about the orbit of a new dwarf planet candidate. The article says the newly discovered object, ED138, has an orbital period of 281.1 years and is “46 times farther from the sun than Earth is.” The earlier post showed that we can infer from Kepler’s third law that the orbit must be elliptical, and that therefore the phrase “46 times farther from the sun” is ambiguous. The post worked out the orbit of ED138 under the assumption that the object is 46 AU from the…
Let p(z) be a polynomial with leading coefficient 1, i.e. a monic polynomial. What is the maximum length of the curve {z : |p(z)| = 1} for each degree n? Erdős conjectured that the maximum length was obtained by the polynomial p(z) = zn − 1. He was right, as Teng Zhang proved recently. Examples Here’s an example for degree five. The maximum length is obtained by p(z) = z5 − 1. This curve has length 15.02. Here’s the corresponding curve for p(z) = z5 − z which has length 6.909. In general the…
I have much bigger issues to be concerned with than saving a few seconds of typing with obscure bash features. But precisely because I have bigger issues on my plate, it’s fun to take a moment and solve some little tangible problem. The shell !$ saves the last part of the latest command. (Mnemonic: bang often refers to commands, such as !! to redo the previous command, and cash often refers to the last of something, such as the end of a line in a regular expression.) This comes in handy, for…