An Applied Mathematician with AI
Overview
Alex Townsend argues that applied mathematicians should use AI as a research tool, progressing from single prompts and local coding agents to persistent goals and collaboration across agents, researchers, GitHub, and shared documents. He illustrates the approach with paper auditing, Lean proof visualizations, test-driven numerical software, and a reported 16-hour AI-assisted proof of Crouzeix's conjecture, while emphasizing human verification, precise problem statements, and the continuing need for researchers to connect results to real applications.
Key takeaways
- A local coding agent should be judged against researcher-designed tests that it cannot edit; Townsend uses known-answer examples and checks of numerical methods as practical, though incomplete, verification.
- AI can assist with proof comprehension as well as proof discovery: a Lean Blueprint prompt produced an interactive dependency map for a randomized SVD proof.
- Persistent AI goals can uncover a mathematical strategy, but Townsend’s Crouzeix’s conjecture example also shows that a 16-hour run and 2,500-page reasoning trace may contain extensive irrelevant exploration.
- For tasks beyond one account’s limits, Townsend links agents through GitHub or Google Docs, scheduled exchanges, and shared memory, describing a project with up to 15 agents.
- AI performs best on well-specified mathematical problems; in applied mathematics, defining a precise question and connecting a result to real-world use can remain the central human work.
- Townsend expects AI to shift graduate training toward interpreting results, collecting data, and working with domain scientists, while preserving human roles in teaching, mentoring, and application.
Chapters
- Townsend frames AI as a tool for advancing applied mathematics and understanding, rather than only as a subject for media debate.
- His five levels move from single prompts and local coding agents to persistent goals, autonomous collaboration, and more extensive looping.
- Townsend says he has run a collaborative AI effort for about 25 days with several researchers and agents.
- Townsend cites AI-assisted solutions to difficult problems, including Crouzeix's conjecture and questions involving electrostatics and graph dynamics.
- He reports that an unreleased OpenAI model solved a larger share of a difficult-problem benchmark than a publicly available model, arguing that current capabilities may still improve.
- Townsend says roughly 25% of math papers submitted to arXiv in August acknowledged AI use, and urges researchers to disclose AI contributions.
- Townsend uses detailed prompts with models such as ChatGPT to check manuscripts for errors and gaps in logic before submission.
- In work on multivariable, multiparameter eigenvalue problems, AI helped identify and correct formula errors in a reference book with frequent typos.
- The corrected techniques were extended from scalar-valued complex analysis to matrix-valued problems.
- A single prompt using instructions from the Lean Blueprint GitHub repository generated an HTML visualization of a randomized SVD proof.
- The interface displayed a dependency graph linking lemmas to the final theorem and included short descriptions of proof components.
- Lean verification increased Townsend's confidence in the dependency structure, while interactive parameter changes helped him inspect how constants behaved.
- Townsend gives a local coding agent access to a project folder so it can implement mathematical formulas in Python and run the code.
- He recommends researcher-written unit tests, including examples with known answers and checks of discretization and solver steps.
- To prevent an agent from weakening its own tests, he makes the test folder readable and executable but not writable.
- Townsend reviews the generated code and test results, treating tests as useful but partial evidence rather than formal verification.
- Persistent goal prompts can keep an agent working for hours, until it meets a specified target or exhausts its usage limits.
- Townsend describes a Chinese neuroscientist and AI hobbyist who used a long-running agent to prove Crouzeix's conjecture, a result connecting a matrix polynomial bound to a scalar polynomial bound.
- The reported run lasted about 16 hours and produced roughly 2,500 pages of conversation; Townsend identified a key cancellation idea early in the transcript.
- The agent also explored many irrelevant approaches, illustrating that long reasoning traces can contain substantial wasted effort.
- Townsend says the conjecture prompt encouraged many agents and broad exploration, which may have prolonged the run after a promising strategy had already appeared.
- Goal prompts can also support software work: he describes translating a large codebase of about 150,000 lines into Python while preserving and running tests.
- For difficult research tasks, he distinguishes chat models used for strategy from coding agents used to implement, test, and formalize ideas.
- Townsend describes linking persistent agents through GitHub or Google Docs, with scheduled exchanges that share ideas and feedback between accounts.
- A collaborative project used as many as 15 agents across different models and subscriptions to work on an open problem over more than two weeks.
- A shared memory repository helps agents resume work beyond their individual context windows and usage limits.
- Townsend raises the question of authorship when AI contributes most of the ideas, noting that he felt uncertain about putting his name on one paper.
- Townsend reviewed literature in numerical algebra, extracted precise open conjectures, checked their status, and sought permission and historical context from authors.
- He released the problems in a public repository and invited researchers and AI agents worldwide to work on them.
- Townsend argues that AI is most useful when questions are precise, while forming a precise question can itself be a major part of applied mathematics.
- The project aims to clear established conjectures and redirect research toward applying mathematical methods in science and engineering.
- Townsend says AI may reduce theoretical proof work as a bottleneck, increasing the value of translating results into practical scientific and engineering methods.
- He points to compressed sensing in MRI as an example where implementation took years after the core theory emerged.
- He expects graduate students to help understand AI-generated results, collect relevant data, and work with domain scientists to apply methods.
- Townsend cautions that introductory students still need mathematical foundations, and says AI can widen the gap between highly curious students and those who use it only to obtain answers.
- Townsend reports that agents quickly solved or partially solved many problems in a repository of about 200 questions, though progress slowed on the remaining tasks.
- He distinguishes AI-audited solutions from Lean-verified proofs, treating formal Lean verification as the strongest status.
- Some unsolved problems may require substantial Lean formalization or mathematical strategies current models cannot find.
- Townsend questions whether large-scale looping is beneficial when organizations generate papers rapidly without sustained review.
- Townsend argues that teaching, mentoring, service, and outreach still rely on human interaction and are not replaced by research automation.
- He describes teaching about 250 students, mentoring seven graduate students, and contributing to community service.
- He presents AI as a reason to shift applied mathematics training toward applications, not as a reason to eliminate graduate researchers.
- Townsend says current models are strongest on precise questions and can produce ideas that are new to a particular field, but are less capable of generating useful new research questions.
- He distinguishes paid models with extended reasoning and self-checking from free versions, cautioning that their performance is not comparable.
- He supports university-provided access to tools such as ChatGPT, Claude, and Gemini to give students a more equal opportunity to learn with AI.
- The discussion also raises permissions, copyright, and responsible use of mathematical literature in shared AI projects.
Transcript excerpt
0:00 Okay. So, uh I think that is about time to get started. Uh it's my great pleasure to uh have uh today's speaker, Professor Alice Johnson from Camil from Oxford under professor McN here. uh uh Alex has done great works in traditional mathematics, machine learning uh many things and he's won various prizes uh the Lesie Fox prize and scientist prize one of the early science one of the book early prize uh has one as a career seven fellow on and on but he uh he also had a book
0:52 is uh Stephen Stoas math for the article recently in New York Times. Uh so we're uh very happy to have them coming here especially you know we have a lot of grad students here and we're all interesting what's happening and mathematics uh so Alex was in the news talk about it but we're very happy that they can come here to give his perspectives so thank it's yours. Hello. Um, thanks for having me. I had a great time today. Um, unfortunately I'm leaving straight after this talk. So if you want to ask questions, please ask during the talk. Um, and I will answer them. Um, so I wanted to give a perspective on using AI as an applied mathematician which is maybe not so common in the media right now. And
1:43 there's so much that we can do with AI. And I'm basically telling you here uh how to use it as a tool. to uh really progress research and your understanding of mathematics. So over here this is kind of a plan. I'm going to slowly ramp up the way that I use AI for apply mathematics. Uh like level one is single prompt. You ask chapter three a question. You see the
This is the start of the transcript. Save this video free for the whole transcript, searchable and time-coded.
In this course
Related notes
Summary, takeaways, and chapters were generated by AI from the video's transcript and may contain errors. The video belongs to its creator, Alex Townsend.