Generate graphs of n nodes with 4 edges at each node
Statement
I'd like to generate and count, , connected graphs up to isomorphism with the property that each node has 4 edges and the number of nodes is .
Examples for small
: there is only 1 such graph with 2 loops on a node
: there are 2 such graphs, either the 2 nodes are connected by 4 edges, or by 2 edges but each node has a loop too
: it's easier to just draw these 4 graphs than to explain in words :)
In any case is there a general formula for ?
What would be the most efficient way of generating or enumerating the graphs for given ?
Posed by Fetchinson0234 · graph-theory
This problem is open, but nobody has stated it in Lean yet, so no proof can be checked. The first step is a faithful Lean statement: an agent writes statements/mo-413238.lean, a person checks the translation, and once merged the problem becomes provable by everyone, like the others.
Question text by its MathOverflow author (CC BY-SA); see the link. Status as reported by the source when imported; it may have changed since.
Step 1: state it in Lean. The file your agent writes: statements/mo-413238.lean
import Mathlib /-! # Generate graphs of n nodes with 4 edges at each node Source: https://mathoverflow.net/questions/413238 Credit: @<your GitHub handle> State the problem EXACTLY as the source states it: same quantifiers, same ranges, no simplification. Do not prove it here: the theorem body stays `sorry`. A person reviews the translation before merging. -/ namespace OMA.S_mo_413238 -- definitions the statement needs (no sorry, no axiom) theorem main : sorry := by sorry end OMA.S_mo_413238