Skip to content

feat: create physlean announcement#131

Open
herostrat wants to merge 2 commits intoleanprover-community:masterfrom
herostrat:master
Open

feat: create physlean announcement#131
herostrat wants to merge 2 commits intoleanprover-community:masterfrom
herostrat:master

Conversation

@herostrat
Copy link
Copy Markdown
Contributor

Hey @jstoobysmith

it took a long time but I as I was looking through my open issue I found the blog post one from long ago.
I decided to write something up (together with claudes help) and ask what you think about it.

LMK what you think :)

Fixes: leanprover-community/physlib#158

@jstoobysmith
Copy link
Copy Markdown
Member

Hey @herostrat, many thanks for doing this! I think there are some inaccuracies in the post, but more importantly, we currently undergoing a merger with the QuantumInfo library to make a single PhysLib.

https://leanprover.zulipchat.com/#narrow/channel/479953-PhysLib/topic/PhysLean.20moving.20again/with/576692798

which probably changes things a lot

@herostrat
Copy link
Copy Markdown
Contributor Author

herostrat commented Mar 9, 2026

Oh, I didn't know this!
Would be a good time to publish a modified/corrected version of the blog entry when the merge is completed.

I added my proposal. If there is interest from your side: feel free to change or suggest changes for me to implement. Btw: I love it that there is increasing traction on the physics side. Imo that's because of your dedication!

Copy link
Copy Markdown
Contributor

@Vierkantor Vierkantor left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please let me know when the blogpost is ready and I will check it in detail!

- **Quantum information theory**: formalizations of quantum channels, entanglement, and related concepts from the QuantumInfo project.
- **Statistical mechanics and condensed matter**: early formalizations of foundational concepts.

To give a flavor of what formalized physics looks like in Lean, here is a simplified example. The commutation relation between creation and annihilation operators for the quantum harmonic oscillator, $[a, a^\dagger] = 1$, can be stated and proved as a theorem in Physlib, building on Mathlib's algebra and analysis libraries.
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you give a link to the statement here? Or perhaps even an editable snippet, a la https://live.lean-lang.org/?

Copy link
Copy Markdown
Member

@jstoobysmith jstoobysmith left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Some small comments

@@ -0,0 +1,86 @@
---
author: 'Joseph Tooby-Smith'
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Author may need to be the author of the blog post.

type: text
---

Joseph Tooby-Smith introduces [Physlib](https://physlib.io)<!-- TODO: update URL -->, a community project to formalize physics in Lean 4.
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe

We introduce [Physlib](...)... 

- **Classical mechanics and electromagnetism**: including formalized versions of the Lorentz group and its properties.
- **Quantum mechanics**: the quantum harmonic oscillator, creation and annihilation operators, and their algebraic relations.
- **Quantum field theory**: Wick's theorem for both bosonic and fermionic fields, a key result used throughout perturbative QFT.
- **Particle physics**: the structure of the Standard Model, including its gauge group $SU(3) \times SU(2) \times U(1)$, the Higgs mechanism, and anomaly cancellation conditions.
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not quite the structure of the SM


The combined library, now hosted under the leanprover-community organization as Physlib, covers a broad range of physics. The library currently includes formalized material spanning:

- **Classical mechanics and electromagnetism**: including formalized versions of the Lorentz group and its properties.
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Lorentz group should probably be under special relativity.


Beyond building a library, Physlib has several longer-term aspirations:

- **Making physics results easier to locate and reference.** A formalized library is also a searchable, cross-referenced database. Instead of hunting through textbooks for the right form of a result, you could query Physlib directly. We already have a search tool at [loogle.physlean.com](https://loogle.physlean.com)<!-- TODO: update URL --> for this purpose.
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

loogle doesn't work anymore for PhysLean :(. Couldn't justify the server costs


To help you get started, we provide:

- A **live editor** at [live.physlean.com](https://live.physlean.com)<!-- TODO: update URL --> where you can experiment with Physlib in your browser.
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No longer works :(

To help you get started, we provide:

- A **live editor** at [live.physlean.com](https://live.physlean.com)<!-- TODO: update URL --> where you can experiment with Physlib in your browser.
- A **search tool** at [loogle.physlean.com](https://loogle.physlean.com)<!-- TODO: update URL --> for finding definitions and theorems.
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No longer works :(

@kim-em
Copy link
Copy Markdown
Contributor

kim-em commented Apr 7, 2026

@herostrat, 🏓

@kim-em kim-em requested a review from jstoobysmith April 7, 2026 23:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Announcement Blog Post

4 participants