Zulip Chat Archive
Stream: mathlib4
Topic: Formalizing Kirchhoff's theorem
Brian Nugent (Feb 12 2026 at 16:15):
I would like to work on formalizing Kirchhoff's theorem for simple graphs. Is anyone actively working on graph theory for mathlib?
Snir Broshi (Feb 12 2026 at 16:20):
Brian Nugent said:
Is anyone actively working on graph theory for mathlib?
Snir Broshi (Feb 12 2026 at 16:22):
Sounds great! What's the plan?
Brian Nugent (Feb 12 2026 at 16:24):
I was planning on following the inductive proof given here to avoid the Cauchy Binet formula. I was going to start with edge contraction since that's a useful concept for other things as well.
Snir Broshi (Feb 12 2026 at 16:36):
tbh I'm not sure edge-contraction will be in Mathlib before #33466 and the corresponding SimpleGraph refactor. I suggest reading the discussion from December 9th here
Snir Broshi (Feb 12 2026 at 16:37):
But if you have a good plan for edge-contraction it's worth a shot
Brian Nugent (Feb 12 2026 at 16:56):
I was planning on avoiding Quotient and instead defining it as a graph on a subset of V. I can see why it would be good to wait for the refactor, thank you for showing me this!
Brian Nugent (Feb 12 2026 at 16:58):
Is it reasonable to work off of it as a dependency or is that a bad idea since it will be changing?
Snir Broshi (Feb 12 2026 at 17:01):
The PR I linked is for Digraph, we'd need a similar one for SimpleGraph first.
OTOH maybe you can prove Kirchhoff's theorem for digraphs?
Yaël Dillies (Feb 12 2026 at 17:07):
We have edge deletion and contraction both in ProofBench (secret) and in FormalConjectures (in a PR). Working hard on bringing them to mathlib
Brian Nugent (Feb 12 2026 at 17:17):
Ok, seems like it might be best if I just hold off for a bit then
Brian Nugent (Feb 12 2026 at 17:18):
On the other hand, this is the first I'm hearing of the FormalConjectures repo, I think I'll give one of those a go!
Last updated: Feb 28 2026 at 14:05 UTC