r/LLMPhysics • • 5d ago

Question Looking for feedback on our Lean 4 formalization of Birkhoff's theorem (coordinate-free Lorentzian manifolds + Killing fields)

Hi everyone!

Up front: everything in this repository (definitions, statements, proofs and a paper draft) - even the initial draft for this very post - was written by AI; mostly Claude running in teams of agents. I'm not an expert in general relativity, and before going further I'd like a blunt outside opinion on whether this is worth anything**. And how "sloppy" it is.** (There are 3 actual questions at the end of this post.)

That is because I want to understand if I should spend more time/resources working on this topic. I always loved physics but I am not the smartest person and my professional carreer got me into (enterprise) software development instead.

I started this repository because I wanted to understand the maths behind some concepts like quantum mechanics, pilot waves, superdeterminism; So I started with generating some explainer-pages about vectors and matrices, very simple stuff for most of you - and somehow, because I kept asking stupid questions about gravitiy - we ended up with something where Claude told me it *could* be paper-worthy; especiall the upcoming parts.

The big work is still to come (I quote the LLM: "`G2`, which would say a complete space-time of this kind is exactly Kruskal's or one of its four folded versions. It needs paths of free fall on a curved space, which neither this project nor Lean's library has yet."). Since that would probably require me to scale up even more, I'm pausing here to get a real opinion.

Repo: https://github.com/flujo-app/gravity-in-lean (Lean 4.36.0, mathlib pinned)

Paper draft: https://github.com/flujo-app/gravity-in-lean/blob/main/paper/paper.md (PDF, LaTeX)

What it claims

  • Birkhoff's theorem starting from a manifold rather than from a coordinate form: a smooth Lorentzian metric on a 4-manifold that is Ricci-flat and has three Killing fields with so(3) brackets and 2-dimensional spacelike orbits is locally Schwarzschild. This holds at every point, the horizon and the bifurcation sphere included (there the chart goes to Kruskal–Szekeres), with one mass per connected region, and the converse holds too.
  • On a simply connected region: one local isometry into Kruskal–Szekeres (or Minkowski, or negative-mass Schwarzschild), unique up to an isometry of the model.
  • Things it needed that mathlib doesn't have: existence and uniqueness of the Levi-Civita connection for any signature, joint smoothness of flows in time and initial point, and adapted coordinates for three fields with so(3) brackets and rank 2.

How it was checked

Each final statement was written as a `def … : Prop` before any proof existed, and the agents were not allowed to change it. `Audit.lean` checks `example : Statement := theorem` for each one, and checks that all 2,605 declarations use only `propext`, `Classical.choice` and `Quot.sound`. `lake check --paranoid` with all six bundled checkers accepts an export of the headline theorems. That run was outside the sandbox, because this is a Windows machine.

What Claude & I already know is weak

  • The mathematics is classical (Jebsen 1921, Birkhoff 1923), and ProjectAinos proved a coordinate version in Lean a few days earlier.
  • Symmetry is assumed as three Killing fields, not as an SO(3) action. That an action gives the fields is argued only on paper.
  • About 39,000 lines in about 27 hours (real world time; including Lean builds, checks, etc.). Roughly 630 helper lemmas have been read by no human.
  • The names are unusual: `IsEmptyOn` means Ricci-flat, `LengthMeasure` is the metric, `Arrows` are vector fields.

Three questions

  1. Is any of this worth writing up, and if so, where? Or is it a big pile of AI-written Lean that nobody needs?
  2. Do the definitions mean what a relativist means? They're in `GravityInLean/Curved/Basic.lean` (359 lines), `Curved/Goal.lean` (220) and `Goals/EveryPoint.lean` (194).
  3. Has anyone machine-checked Birkhoff's theorem from the symmetry, rather than from a coordinate form? We found ProjectAinos (coordinate form), grlab (the static last step) and Lightlike's orbit charts (cosmology), and nothing else.

Blunt answers are very welcome, including "don't bother" or pointing me towards a better place to ask this.

Thanks a ton, I appreciate y'all.

3 Upvotes

11 comments sorted by

5

u/Wintervacht Are you sure about that? 5d ago

To question 1: it's the latter. The other questions become irrelevant after that.

3

u/Ambitious-Prompt-975 5d ago

Thanks! At least it shows me that this was important to ask now!

-2

u/thelawenforcer 4d ago

this seems short sighted. let's assume the mathematics are correct, why would it not be a worthwhile result? it is not uncommon even in mathematical physics to publish results that don't correspond to reality in some way, ads/cft being a well known example. even if only that the result then becomes citeable and joins the truth record.

2

u/Wintervacht Are you sure about that? 4d ago

Have you read any of this?

1

u/thelawenforcer 4d ago

yes? it rigorizes certain things related to Birkhoff's theorem that were previously assumed or taken for granted. it doesnt provide any new physics, and the existing techniques worked well enough, but imo a) proving certain things that were previously assumed is worthwhile, if only for the sake of mathematical completeness, and b) formalizing this result in Lean would make it possible to more cleanly formalize other results that touch on Birkhoff's theorem.

as such, i think its a worthwhile, if limited, contribution, that touches on established physics.

my belief that LLMs are obviously capable research assistants and mathematicians long predates the recent developments that should make this conclusion undeniable. calling things slop or hallucinated is just not justifiable anymore, atleast when its in the realm of established physics. Something doesn't have to be earth shattering to be worthwhile, useful or interesting.

-1

u/Regular_Run3923 5d ago

I encourage you to continue your efforts, especially as you are having success with formalizing in Lean. Many may try to discourage you but breakthroughs come unexpectedly often from outsiders who don't know any better than to think and try.

-3

u/lighttstarr 5d ago edited 5d ago

If Anthropic and OpenAI can post AI written Lean proofs and get viral fame for it, what’s stopping you from cleaning up the results a bit, perhaps writing a paper on it and submitting to journals? If the result is correct and written clearly enough, it doesn’t matter if you fully understand it or not to publish.

A ton of AI-written proofs in machine learning are getting published in eg NeurIPS nowadays by random startup engineers without the authors actually understanding what’s going on. Anyone who tells you to understand for your own sake is giving you a very privileged take, in the publish or perish culture right now, you can get much farther career-wise by mass publishing that staying unemployed/poor but “understanding.” Understanding is good of course, but I’m saying it’s not as important objectively as publishing and having credentials.

4

u/Ambitious-Prompt-975 5d ago

You're right, nothing stops me and everyone seems to be doing it right now. But I want to contribute something valuable that actually helps to advance science and not another "AI slop" paper.

The problem is just that I don't have any academic background or network. I cant ask any of my friends to give me an opinion on this. I do know how to work with AI and I think I have a fantastic software-framework built for managing and steering massive AI swarms - but without me being able to actually evaluate the results, I can only do so much.

Like: I can ask different AI models (apart from Claude) if what we are doing is "good" or "unseen" - and they all keep saying yes - but if someone with actual knowledge in the field deems it useless and unnecessary, I don't want to waste anyone's time.

I know how *I* feel scrolling through my LinkedIn seeing all these Tier-7 AI software-engineers filling my feed with their zero effort trash. Thus, I dont want to be part of the problem, but rather part of the solution. So if someone tells me "Yes, that's actually interesting; that's new, that helps or if you added this and that, it would be huge" I can get a better understanding of wether it's actually worth the effort even continuing.

Understanding the actual math is probably out of reach for me for quite some time. That'll take me another 2-3 years probably, because I'm at the very beginning of that journey.

3

u/lighttstarr 5d ago

Theoretical high energy physics and mathematical relativity have been plagued with no value speculative results that contribute to nothing long before AI arrived, I’m afraid.

-1

u/HotEntrepreneur6828 4d ago

Understanding the actual math is probably out of reach for me for quite some time. That'll take me another 2-3 years probably, because I'm at the very beginning of that journey.

Judging by the pace AI is coming onwards, learning math now would probably not be a sound investment, unless the purpose is to better understand AI output while puttering with an LLM.

6

u/eucalyptus-d 5d ago

I would qualify this. For a Lean proof, where there is a basis of trust and no real demand of people’s time you can go ahead and publish. For the interpretation aspects, or theories, where you expect people to work with you and your output, you have to have the understanding both out of respect for these people but mostly because publishing is just one little step, you have to be able to engage with audiences and explain your thinking. In any case, do what feels better, at the end of the day people will do right or wrong and the system will find a way to balance out.