Zulip Chat Archive
Stream: Is there code for X?
Topic: Mordell's theorem
Ryan Smith (Sep 07 2025 at 04:29):
Has Mordell's theorem been formalized in lean? The amount of information about elliptic curves in mathlib was smaller than I expected. Even better would be Mordell-Weil but I'm going to guess that's a no?
Bryan Wang (Sep 07 2025 at 04:59):
Regarding Mordell-Weil, I'm looking to (define and) formalize some basic facts about abelian varieties, and I'd be even happier if anyone is also interested to work together on this!
Ryan Smith (Sep 07 2025 at 05:08):
Right now I feel like I'm wrestling with an anaconda trying to formalize Burnside's theorem while still being very new to lean. By the time I finish maybe I'll be good enough with lean to be useful.
Scott Carnahan (Sep 07 2025 at 06:37):
Even a proof of the fact that a proper fiberwise-connected group scheme is commutative would be an interesting test of the algebraic geometry API.
Bryan Wang (Sep 07 2025 at 06:46):
Scott Carnahan said:
Even a proof of the fact that a proper fiberwise-connected group scheme is commutative would be an interesting test of the algebraic geometry API.
Yep, that would be what I'm (hoping to) work towards.
David Ang (Sep 07 2025 at 07:57):
Ryan Smith said:
Has Mordell's theorem been formalized in lean? The amount of information about elliptic curves in mathlib was smaller than I expected. Even better would be Mordell-Weil but I'm going to guess that's a no?
No - I had a go at it a few years ago in some branches in mathlib3 but it has not been ported over
David Ang (Sep 07 2025 at 07:59):
Back then the issue was that we didn't have Galois cohomology and a good local theory (which I guess we still don't), and I only did heights over Q
Bryan Wang (Sep 07 2025 at 08:00):
David Ang said:
Ryan Smith said:
Has Mordell's theorem been formalized in lean? The amount of information about elliptic curves in mathlib was smaller than I expected. Even better would be Mordell-Weil but I'm going to guess that's a no?
No - I had a go at it a few years ago in some branches in mathlib3 but it has not been ported over
This is based on the Weierstrass curve definition of elliptic curves?
David Ang (Sep 07 2025 at 08:00):
I do have intentions to continue doing this once I finish writing my thesis this month.
David Ang (Sep 07 2025 at 08:00):
Bryan Wang said:
David Ang said:
Ryan Smith said:
Has Mordell's theorem been formalized in lean? The amount of information about elliptic curves in mathlib was smaller than I expected. Even better would be Mordell-Weil but I'm going to guess that's a no?
No - I had a go at it a few years ago in some branches in mathlib3 but it has not been ported over
This is based on the Weierstrass curve definition of elliptic curves?
Yeah, unfortunately!
David Ang (Sep 07 2025 at 08:02):
(back then we don't even have the group law :P)
David Ang (Sep 07 2025 at 08:03):
The code was very badly written (given that this was my first Lean project), and I wouldn't go for complete 2-descent if I were to do it again
Bryan Wang (Sep 07 2025 at 08:10):
David Ang said:
Bryan Wang said:
David Ang said:
Ryan Smith said:
Has Mordell's theorem been formalized in lean? The amount of information about elliptic curves in mathlib was smaller than I expected. Even better would be Mordell-Weil but I'm going to guess that's a no?
No - I had a go at it a few years ago in some branches in mathlib3 but it has not been ported over
This is based on the Weierstrass curve definition of elliptic curves?
Yeah, unfortunately!
Well, it's great that we can talk about Mordell using just the "basic" Weierstrass machinery!
David Ang (Sep 07 2025 at 08:13):
Yeah, obviously we'll eventually connect it with abelian varieties but I think a lot can be done just with the basic machinery e.g. following Silverman
Kevin Buzzard (Sep 07 2025 at 12:56):
Just to be clear -- I don't know what "Mordell's theorem" means but finiteness of rational points on curves of genus >= 2 is currently a fantasy. Mordell-Weil is certainly accessible for plane cubics over number fields but has never been done. We don't even have the definition of an abelian variety so Mordell-Weil is not the question here, what we want there is basic stuff like the theorem of the cube or whatever. The big issue with the definition of abelian variety is that there are plenty of definitions which one could choose, all of which are equivalent, but proving equivalence is hard, so there is a big design decision to be made before we even start.
Michael Stoll (Sep 07 2025 at 13:11):
I think "Mordell's Theorem" refers to the statement that the group of rational points on an elliptic curve over is finitely generated (what Mordell proved in his famous 1922 paper; I've heard that he did not like his theorem being subsumed under the heading "Mordell-Weil" :slight_smile:).
Kevin Buzzard (Sep 07 2025 at 15:26):
Oh I see; Mordell-Weil is ab vars over number fields, Mordell is elliptic curves over Q? Did Mordell also assume existence of one or more 2-torsion points? The general plane cubic proof is no harder for number fields than for Q, right?
Michael Stoll (Sep 07 2025 at 15:33):
As far as I know, Mordell did prove the general statement over . (His 1922 paper does not seem to be available online, which reminds me that I wanted to ask my son, who is in Cambridge, to dig it up for me...)
Kevin Buzzard (Sep 07 2025 at 15:47):
Cassels taught me a proof of Mordell's theorem when there's a 2-torsion point which goes via two mu_2-descents and is completely elementary because the Selmer group lives in so you can do the whole thing without cohomology or class groups/unit groups. He wrote the proof in his little blue book (I went to the lectures which became that book). But if you don't have any 2-torsion then you either do descent on the full multiplication by 2 map (which needs group cohomology, which I suspect he didn't have, although H^1 you can do in a low-level way) or you adjoin a root (in which case working over doesn't buy you anything).
Michael Stoll (Sep 07 2025 at 15:50):
You can also use the theory of binary cubic and quartic forms, which may do more to restrict you to the rationals. (You need to show that the Selmer group elements are represented by integral binary quartics with bounded invariants, and you need to know that there are only finitely many of these up to equivalence. This is how Cremona's mwrank program works.)
Kevin Buzzard (Sep 07 2025 at 16:02):
Ryan Smith said:
Right now I feel like I'm wrestling with an anaconda trying to formalize Burnside's theorem while still being very new to lean. By the time I finish maybe I'll be good enough with lean to be useful.
This is many people's experience when learning Lean. My first projects were (standard intro to proof stuff about e.g. sqrt(2), equivalence relations) -> (definition of scheme) -> (definition of a perfectoid space) and the upward curve in the mathematics was possible because of the corresponding upward curve in my ability to use the software which I was picking up along the way as I constantly asked questions on the Lean chat. Basically if you know the mathematics well and are happy to keep asking questions then you can go anywhere, although it might take some time.
Kevin Buzzard (Sep 07 2025 at 16:12):
Other things we don't have about elliptic curves (which I need for FLT): the Weil pairing (I need det of Tate module is cyclo char), basic reduction theory (I need Tate module is unram at good primes and p-torsion is flat at p if curve has good reduction), Weierstrass P-function (I need Tate curve for plane cubics over p-adic fields, and the usual approach goes via P'^2=4P^3+AP+B, see https://mathoverflow.net/questions/469021/low-level-proof-of-identity-related-to-weierstrass-p-function although the sensible approach is just to do P-function rather than avoid it, as I was suggesting in that question). In case you were looking for things to do ;-)
Ryan Smith (Sep 07 2025 at 20:26):
Actually I am looking for ways to help with FLT when I finish my first big self-assigned result in order to learn lean. It's going to be a while, right now I'm still trying to get a nonzero vector v \in V in order to prove that 1 is in fact an eigenvalue of the identity map ;) It's surprisingly hard to explain a lot of things to lean, but lemmas from two weeks ago no longer seem so bad so hopefully we're making progress.
Kevin Buzzard (Sep 07 2025 at 20:53):
If you need help on basic stuff then feel free to post a #mwe and ask in #new members , that's what it's there for.
Oisin McGuinness (Sep 08 2025 at 03:02):
An online version of the Mordell paper is linked from the references of the Wikipedia article about the Mordell Weil theorem
The link https://archive.org/details/proceedingscambr21camb/page/178/mode/2up?view=theater gives a scan of the whole volume containing the paper; pages "179-192" are what is wanted. (To extract as PDF use the left menu for downloadable files, select PDF, then just export pages 193-206 of the whole PDF.)
Enjoy!
Ryan Smith (Sep 08 2025 at 04:42):
Kevin Buzzard said:
If you need help on basic stuff then feel free to post a #mwe and ask in #new members , that's what it's there for.
I already fear I spam them a lot, there are some very patient people in New Members answering questions.
For the elliptic curve results you're looking for, is most of that in Silverman or are you thinking of other texts?
Rado Kirov (Sep 08 2025 at 06:07):
I am interested in joining formalization projects in algebraic number theory. My math is shaky - I have a PhD in an adjacent field (error-correcting codes from function fields), but I left academia ~ 15 years ago, so forgotten most of the little I knew. However, I have been learning lean since beginning of the year and have been making good progress working through Tao's Real Analysis I (~40% done with the ~2000 sorries). I work as a software engineer, so can help with generic software tasks, but haven't explored internals of Lean as a programming language, writing tactics etc.
Feel free to reach out directly, though #new members will give you better chance of reaching more knowledgable folks.
Bryan Wang (Sep 08 2025 at 06:57):
Ryan Smith said:
Kevin Buzzard said:
If you need help on basic stuff then feel free to post a #mwe and ask in #new members , that's what it's there for.
I already fear I spam them a lot, there are some very patient people in New Members answering questions.
I would just like to say that as a fellow relative newcomer to Lean, I initially had similar apprehension about asking questions, but that the community here on Zulip has been far more welcoming and helpful than I think anyone could ever hope for, and I am very grateful for that :slight_smile:
Kevin Buzzard (Sep 08 2025 at 11:14):
Nobody is obliged to reply to messages in #new members and indeed plenty of people are not even subscribed to that channel. I have an algorithm: I tend to not respond to people who are using a pseudonym and I don't look at the channel when I'm busy, but if I'm not busy and the question is clearly in good faith by someone wanting to learn, and if I know the answer, then why not answer? This is how I learnt Lean myself (and back then the community only had 20 or so regulars in it!) and I won't forget that. Now there are many many people answering questions there so it's not like you're sucking up one person's time. Ask as many beginner questions as you like there!
Snir Broshi (Sep 08 2025 at 16:08):
Regarding Burnside's theorem that was mentioned, maybe this will help a little- https://github.com/wupr/order-p-q
Michael Stoll (Sep 09 2025 at 18:31):
Oisin McGuinness said:
https://en.wikipedia.org/wiki/Mordell%E2%80%93Weil_theorem
The link https://archive.org/details/proceedingscambr21camb/page/178/mode/2up?view=theater gives a scan of the whole volume containing the paper; pages "179-192" are what is wanted.
@Oisin McGuinness thanks!
Antoine Chambert-Loir (Sep 09 2025 at 19:00):
That's a wonderful paper, it has a nice rewriting by Mordell himself in his book on Diophantine equations.
Antoine Chambert-Loir (Sep 09 2025 at 19:02):
But that proof is limited to the ground field Q. To get the mordell weil theorem for elliptic curves over number fields, one needs the language of Galois cohomology.
Antoine Chambert-Loir (Sep 09 2025 at 19:03):
(About this paper, look at the conjectures at the end!)
Kevin Buzzard (Sep 09 2025 at 21:45):
I confused Mordell's theorem and Mordell's conjecture earlier in the thread, but at least I now know that they were both from the same paper :-)
Antoine Chambert-Loir (Sep 10 2025 at 06:37):
Yes, as well as the now called Siegel's theorem on integral points !
Last updated: Dec 20 2025 at 21:32 UTC