Constructing a graph with a given number of edges and a given triangle distribution
Statement
Give a number of edges , number of vertices and a vector of integers , I wish to construct an undirected graph with vertices, edges such that the first vertex participates in exactly triangles, the second vertex participates in exactly triangles and so on, to that should participate in exactly triangles. Given that I know that such graph exists, is there an algorithm to construct such graph?
Posed by Student88 · graph-theory, algorithms
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-299522.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-299522.lean
import Mathlib /-! # Constructing a graph with a given number of edges and a given triangle distribution Source: https://mathoverflow.net/questions/299522 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_299522 -- definitions the statement needs (no sorry, no axiom) theorem main : sorry := by sorry end OMA.S_mo_299522