Zulip Chat Archive

Stream: Is there code for X?

Topic: Counting isomorphism classes


Kevin Wilson (Nov 28 2025 at 20:53):

Hi all! It's been a bit since I was trying out formalization, and I was curious to try my hand at some (simple) arithmetic statistics. Specifically, I was hoping to formalize Schmidt's result on the number of isomorphism classes of number fields of degree n and discriminant at most X. See https://www.numdam.org/article/AST_1995__228__189_0.pdf

I think the proof details won't be too bad given what's in mathlib today, but I was struggling to actually state the theorem itself.

Specifically, how to define the collection/type/set/... of all isomorphism classes of number fields of a fixed degree and a given discriminant.

I was curious if there were good examples in mathlib or elsewhere of defining such things with an eye toward counting them.

Thanks in advance!

Bryan Wang (Nov 28 2025 at 21:12):

As for mathlib examples, there is docs#NumberField.finite_of_discr_bdd (Hermite-Minkowski), which seems like it might give a pretty good start.

Kevin Wilson (Nov 28 2025 at 21:14):

Funny right after I sent this message I found exactly that theorem :-)

Definitely looks like it is a good start! Thank you!

Kevin Buzzard (Nov 28 2025 at 21:50):

My impression from the paper is that what he actually proves is something like the following: first, given XX and d1d\geq1, the number of algebraic integers α\alpha in C\mathbb{C} (say) such that α\alpha has some slightly complicated to write down property is (obviously) <<X(d+2)/4<<X^{(d+2)/4}, and second that every number field in C\mathbb{C} of degree dd and discriminant bounded in abs value by XX is of the form Q(α)\mathbb{Q}(\alpha) with α\alpha having this property. It's a bit more complicated because actually the main result is counting chains QK1K2K\mathbb{Q}\subset K_1\subset K_2\subset \cdots \subset K but that seems to be the basic idea.

Kevin Wilson (Nov 28 2025 at 22:06):

Indeed. There are several improvements on these bounds that push this idea further, e.g., Ellenberg-Venkatesh: https://annals.math.princeton.edu/wp-content/uploads/annals-v163-n2-p11.pdf (see the top of Section 2)

Kevin Wilson (Nov 28 2025 at 22:08):

Since the Minkowski bound is now in Mathlib, that's why I figured this wouldn't be too bad to prove now :-)

Kevin Buzzard (Nov 28 2025 at 23:55):

It will be a challenging but doable project!


Last updated: Dec 20 2025 at 21:32 UTC